@repobit/dex-system-design 2.7.1 → 3.0.0
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 +37 -0
- package/README.md +10 -3
- package/dist/src/components/accordion/accordion-bg.css.d.ts +2 -0
- package/dist/src/components/accordion/accordion-bg.css.js +289 -0
- package/dist/src/components/accordion/accordion-bg.css.js.map +1 -0
- package/dist/src/components/accordion/accordion-bg.d.ts +52 -0
- package/dist/src/components/accordion/accordion-bg.js +271 -0
- package/dist/src/components/accordion/accordion-bg.js.map +1 -0
- package/dist/src/components/accordion/accordion-keyboard.d.ts +46 -0
- package/dist/src/components/accordion/accordion-keyboard.js +90 -0
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -0
- package/dist/src/components/accordion/accordion-panel.d.ts +22 -0
- package/dist/src/components/accordion/accordion-panel.js +23 -0
- package/dist/src/components/accordion/accordion-panel.js.map +1 -0
- package/dist/src/components/accordion/accordion.css.d.ts +2 -0
- package/dist/src/components/accordion/accordion.css.js +381 -0
- package/dist/src/components/accordion/accordion.css.js.map +1 -0
- package/dist/src/components/accordion/accordion.d.ts +39 -0
- package/dist/src/components/accordion/accordion.js +190 -0
- package/dist/src/components/accordion/accordion.js.map +1 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.css.d.ts +2 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +89 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +29 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.js +106 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -0
- package/dist/src/components/alert/alert.css.d.ts +38 -0
- package/dist/src/components/alert/alert.css.js +218 -0
- package/dist/src/components/alert/alert.css.js.map +1 -0
- package/dist/src/components/alert/alert.d.ts +55 -0
- package/dist/src/components/alert/alert.js +132 -0
- package/dist/src/components/alert/alert.js.map +1 -0
- package/dist/src/components/anchor/anchor-nav.css.d.ts +1 -0
- package/dist/src/components/anchor/anchor-nav.css.js +547 -0
- package/dist/src/components/anchor/anchor-nav.css.js.map +1 -0
- package/dist/src/components/anchor/anchor-nav.d.ts +85 -0
- package/dist/src/components/anchor/anchor-nav.js +611 -0
- package/dist/src/components/anchor/anchor-nav.js.map +1 -0
- package/dist/src/components/annotation/annotation.css.d.ts +3 -0
- package/dist/src/components/annotation/annotation.css.js +65 -0
- package/dist/src/components/annotation/annotation.css.js.map +1 -0
- package/dist/src/components/annotation/annotation.d.ts +28 -0
- package/dist/src/components/annotation/annotation.js +75 -0
- package/dist/src/components/annotation/annotation.js.map +1 -0
- package/dist/src/components/audience-card/audience-card.css.d.ts +1 -0
- package/dist/src/components/audience-card/audience-card.css.js +123 -0
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -0
- package/dist/src/components/audience-card/audience-card.d.ts +38 -0
- package/dist/src/components/audience-card/audience-card.js +94 -0
- package/dist/src/components/audience-card/audience-card.js.map +1 -0
- package/dist/src/components/avatar/avatar.css.d.ts +3 -0
- package/dist/src/components/avatar/avatar.css.js +66 -0
- package/dist/src/components/avatar/avatar.css.js.map +1 -0
- package/dist/src/components/avatar/avatar.d.ts +18 -0
- package/dist/src/components/avatar/avatar.js +81 -0
- package/dist/src/components/avatar/avatar.js.map +1 -0
- package/dist/src/components/awards/awards-flex.css.d.ts +1 -0
- package/dist/src/components/awards/awards-flex.css.js +274 -0
- package/dist/src/components/awards/awards-flex.css.js.map +1 -0
- package/dist/src/components/awards/awards-flex.d.ts +64 -0
- package/dist/src/components/awards/awards-flex.js +299 -0
- package/dist/src/components/awards/awards-flex.js.map +1 -0
- package/dist/src/components/awards/awards-spotlight.css.d.ts +1 -0
- package/dist/src/components/awards/awards-spotlight.css.js +162 -0
- package/dist/src/components/awards/awards-spotlight.css.js.map +1 -0
- package/dist/src/components/awards/awards-spotlight.d.ts +59 -0
- package/dist/src/components/awards/awards-spotlight.js +167 -0
- package/dist/src/components/awards/awards-spotlight.js.map +1 -0
- package/dist/src/components/awards/awards.css.d.ts +1 -0
- package/dist/src/components/awards/awards.css.js +402 -0
- package/dist/src/components/awards/awards.css.js.map +1 -0
- package/dist/src/components/awards/awards.d.ts +79 -0
- package/dist/src/components/awards/awards.js +215 -0
- package/dist/src/components/awards/awards.js.map +1 -0
- package/dist/src/components/awards/scroll-slides.d.ts +55 -0
- package/dist/src/components/awards/scroll-slides.js +132 -0
- package/dist/src/components/awards/scroll-slides.js.map +1 -0
- package/dist/src/components/back/back.css.d.ts +2 -0
- package/dist/src/components/back/back.css.js +92 -0
- package/dist/src/components/back/back.css.js.map +1 -0
- package/dist/src/components/back/back.d.ts +29 -0
- package/dist/src/components/back/back.js +81 -0
- package/dist/src/components/back/back.js.map +1 -0
- package/dist/src/components/badge/badge.css.d.ts +7 -0
- package/dist/src/components/badge/badge.css.js +205 -0
- package/dist/src/components/badge/badge.css.js.map +1 -0
- package/dist/src/components/badge/badge.d.ts +37 -0
- package/dist/src/components/badge/badge.js +122 -0
- package/dist/src/components/badge/badge.js.map +1 -0
- package/dist/src/components/bento-grid/bento-grid.css.d.ts +10 -0
- package/dist/src/components/bento-grid/bento-grid.css.js +162 -0
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -0
- package/dist/src/components/bento-grid/bento-grid.d.ts +32 -0
- package/dist/src/components/bento-grid/bento-grid.js +209 -0
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -0
- package/dist/src/components/bento-grid/bento-item.css.d.ts +2 -0
- package/dist/src/components/bento-grid/bento-item.css.js +339 -0
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -0
- package/dist/src/components/bento-grid/bento-item.d.ts +26 -0
- package/dist/src/components/bento-grid/bento-item.js +114 -0
- package/dist/src/components/bento-grid/bento-item.js.map +1 -0
- package/dist/src/components/blockquote/blockquote.css.d.ts +3 -0
- package/dist/src/components/blockquote/blockquote.css.js +55 -0
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -0
- package/dist/src/components/blockquote/blockquote.d.ts +13 -0
- package/dist/src/components/blockquote/blockquote.js +45 -0
- package/dist/src/components/blockquote/blockquote.js.map +1 -0
- package/dist/src/components/breadcrumb/breadcrumb.css.d.ts +2 -0
- package/dist/src/components/breadcrumb/breadcrumb.css.js +169 -0
- package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -0
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +44 -0
- package/dist/src/components/breadcrumb/breadcrumb.js +177 -0
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/src/components/button/button.css.d.ts +12 -0
- package/dist/src/components/button/button.css.js +844 -0
- package/dist/src/components/button/button.css.js.map +1 -0
- package/dist/src/components/button/button.d.ts +139 -0
- package/dist/src/components/button/button.js +444 -0
- package/dist/src/components/button/button.js.map +1 -0
- package/dist/src/components/caption/caption.css.d.ts +3 -0
- package/dist/src/components/caption/caption.css.js +30 -0
- package/dist/src/components/caption/caption.css.js.map +1 -0
- package/dist/src/components/caption/caption.d.ts +14 -0
- package/dist/src/components/caption/caption.js +38 -0
- package/dist/src/components/caption/caption.js.map +1 -0
- package/dist/src/components/card-features/card-features.css.d.ts +2 -0
- package/dist/src/components/card-features/card-features.css.js +121 -0
- package/dist/src/components/card-features/card-features.css.js.map +1 -0
- package/dist/src/components/card-features/card-features.d.ts +43 -0
- package/dist/src/components/card-features/card-features.js +170 -0
- package/dist/src/components/card-features/card-features.js.map +1 -0
- package/dist/src/components/cards/card.css.d.ts +2 -0
- package/dist/src/components/cards/card.css.js +370 -0
- package/dist/src/components/cards/card.css.js.map +1 -0
- package/dist/src/components/cards/card.d.ts +61 -0
- package/dist/src/components/cards/card.js +345 -0
- package/dist/src/components/cards/card.js.map +1 -0
- package/dist/src/components/carousel/carousel.css.d.ts +2 -0
- package/dist/src/components/carousel/carousel.css.js +262 -0
- package/dist/src/components/carousel/carousel.css.js.map +1 -0
- package/dist/src/components/carousel/carousel.d.ts +66 -0
- package/dist/src/components/carousel/carousel.js +334 -0
- package/dist/src/components/carousel/carousel.js.map +1 -0
- package/dist/src/components/checkbox/checkbox.css.d.ts +11 -0
- package/dist/src/components/checkbox/checkbox.css.js +174 -0
- package/dist/src/components/checkbox/checkbox.css.js.map +1 -0
- package/dist/src/components/checkbox/checkbox.d.ts +35 -0
- package/dist/src/components/checkbox/checkbox.js +153 -0
- package/dist/src/components/checkbox/checkbox.js.map +1 -0
- package/dist/src/components/code/code.css.d.ts +3 -0
- package/dist/src/components/code/code.css.js +74 -0
- package/dist/src/components/code/code.css.js.map +1 -0
- package/dist/src/components/code/code.d.ts +21 -0
- package/dist/src/components/code/code.js +89 -0
- package/dist/src/components/code/code.js.map +1 -0
- package/dist/src/components/compare/compare.css.d.ts +2 -0
- package/dist/src/components/compare/compare.css.js +479 -0
- package/dist/src/components/compare/compare.css.js.map +1 -0
- package/dist/src/components/compare/compare.d.ts +79 -0
- package/dist/src/components/compare/compare.js +575 -0
- package/dist/src/components/compare/compare.js.map +1 -0
- package/dist/src/components/comparison-panel/comparison-panel.css.d.ts +2 -0
- package/dist/src/components/comparison-panel/comparison-panel.css.js +142 -0
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -0
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +23 -0
- package/dist/src/components/comparison-panel/comparison-panel.js +121 -0
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -0
- package/dist/src/components/compatibility-table/compatibility-table.css.d.ts +2 -0
- package/dist/src/components/compatibility-table/compatibility-table.css.js +392 -0
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -0
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +51 -0
- package/dist/src/components/compatibility-table/compatibility-table.js +177 -0
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -0
- package/dist/src/components/cta-banner/cta-banner.css.d.ts +2 -0
- package/dist/src/components/cta-banner/cta-banner.css.js +98 -0
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -0
- package/dist/src/components/cta-banner/cta-banner.d.ts +16 -0
- package/dist/src/components/cta-banner/cta-banner.js +77 -0
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -0
- package/dist/src/components/display/display.css.d.ts +2 -0
- package/dist/src/components/display/display.css.js +96 -0
- package/dist/src/components/display/display.css.js.map +1 -0
- package/dist/src/components/display/display.d.ts +23 -0
- package/dist/src/components/display/display.js +87 -0
- package/dist/src/components/display/display.js.map +1 -0
- package/dist/src/components/divider/divider-horizontal.d.ts +15 -0
- package/dist/src/components/divider/divider-horizontal.js +70 -0
- package/dist/src/components/divider/divider-horizontal.js.map +1 -0
- package/dist/src/components/divider/divider-vertical.d.ts +16 -0
- package/dist/src/components/divider/divider-vertical.js +67 -0
- package/dist/src/components/divider/divider-vertical.js.map +1 -0
- package/dist/src/components/divider/divider.css.d.ts +2 -0
- package/dist/src/components/divider/divider.css.js +21 -0
- package/dist/src/components/divider/divider.css.js.map +1 -0
- package/dist/src/components/dropdown/dropdown.css.d.ts +9 -0
- package/dist/src/components/dropdown/dropdown.css.js +122 -0
- package/dist/src/components/dropdown/dropdown.css.js.map +1 -0
- package/dist/src/components/dropdown/dropdown.d.ts +49 -0
- package/dist/src/components/dropdown/dropdown.js +302 -0
- package/dist/src/components/dropdown/dropdown.js.map +1 -0
- package/dist/src/components/features/features.css.d.ts +2 -0
- package/dist/src/components/features/features.css.js +124 -0
- package/dist/src/components/features/features.css.js.map +1 -0
- package/dist/src/components/features/features.d.ts +21 -0
- package/dist/src/components/features/features.js +88 -0
- package/dist/src/components/features/features.js.map +1 -0
- package/dist/src/components/features-tab/features-tab.css.d.ts +2 -0
- package/dist/src/components/features-tab/features-tab.css.js +101 -0
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -0
- package/dist/src/components/features-tab/features-tab.d.ts +21 -0
- package/dist/src/components/features-tab/features-tab.js +87 -0
- package/dist/src/components/features-tab/features-tab.js.map +1 -0
- package/dist/src/components/fieldset/fieldset.css.d.ts +3 -0
- package/dist/src/components/fieldset/fieldset.css.js +29 -0
- package/dist/src/components/fieldset/fieldset.css.js.map +1 -0
- package/dist/src/components/fieldset/fieldset.d.ts +12 -0
- package/dist/src/components/fieldset/fieldset.js +35 -0
- package/dist/src/components/fieldset/fieldset.js.map +1 -0
- package/dist/src/components/footer/footer-images.d.ts +3 -0
- package/dist/src/components/footer/footer-images.js +31 -0
- package/dist/src/components/footer/footer-images.js.map +1 -0
- package/dist/src/components/footer/footer-links-group.css.d.ts +2 -0
- package/dist/src/components/footer/footer-links-group.css.js +34 -0
- package/dist/src/components/footer/footer-links-group.css.js.map +1 -0
- package/dist/src/components/footer/footer-links-group.d.ts +13 -0
- package/dist/src/components/footer/footer-links-group.js +34 -0
- package/dist/src/components/footer/footer-links-group.js.map +1 -0
- package/dist/src/components/footer/footer-locale.d.ts +3 -0
- package/dist/src/components/footer/footer-locale.js +46 -0
- package/dist/src/components/footer/footer-locale.js.map +1 -0
- package/dist/src/components/footer/footer-lp.d.ts +26 -0
- package/dist/src/components/footer/footer-lp.js +158 -0
- package/dist/src/components/footer/footer-lp.js.map +1 -0
- package/dist/src/components/footer/footer-nav-menu.css.d.ts +2 -0
- package/dist/src/components/footer/footer-nav-menu.css.js +62 -0
- package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -0
- package/dist/src/components/footer/footer-nav-menu.d.ts +14 -0
- package/dist/src/components/footer/footer-nav-menu.js +50 -0
- package/dist/src/components/footer/footer-nav-menu.js.map +1 -0
- package/dist/src/components/footer/footer.css.d.ts +2 -0
- package/dist/src/components/footer/footer.css.js +665 -0
- package/dist/src/components/footer/footer.css.js.map +1 -0
- package/dist/src/components/footer/footer.d.ts +53 -0
- package/dist/src/components/footer/footer.js +418 -0
- package/dist/src/components/footer/footer.js.map +1 -0
- package/dist/src/components/footer/localeMap.d.ts +1 -0
- package/dist/src/components/footer/localeMap.js +2 -0
- package/dist/src/components/footer/localeMap.js.map +1 -0
- package/dist/src/components/grid/grid.css.d.ts +2 -0
- package/dist/src/components/grid/grid.css.js +79 -0
- package/dist/src/components/grid/grid.css.js.map +1 -0
- package/dist/src/components/grid/grid.d.ts +27 -0
- package/dist/src/components/grid/grid.js +139 -0
- package/dist/src/components/grid/grid.js.map +1 -0
- package/dist/src/components/header/header-code.css.d.ts +2 -0
- package/dist/src/components/header/header-code.css.js +370 -0
- package/dist/src/components/header/header-code.css.js.map +1 -0
- package/dist/src/components/header/header-code.d.ts +49 -0
- package/dist/src/components/header/header-code.js +228 -0
- package/dist/src/components/header/header-code.js.map +1 -0
- package/dist/src/components/header/header.css.d.ts +2 -0
- package/dist/src/components/header/header.css.js +758 -0
- package/dist/src/components/header/header.css.js.map +1 -0
- package/dist/src/components/header/header.d.ts +32 -0
- package/dist/src/components/header/header.js +373 -0
- package/dist/src/components/header/header.js.map +1 -0
- package/dist/src/components/heading/heading.css.d.ts +2 -0
- package/dist/src/components/heading/heading.css.js +90 -0
- package/dist/src/components/heading/heading.css.js.map +1 -0
- package/dist/src/components/heading/heading.d.ts +42 -0
- package/dist/src/components/heading/heading.js +109 -0
- package/dist/src/components/heading/heading.js.map +1 -0
- package/dist/src/components/help-text/help-text.css.d.ts +3 -0
- package/dist/src/components/help-text/help-text.css.js +20 -0
- package/dist/src/components/help-text/help-text.css.js.map +1 -0
- package/dist/src/components/help-text/help-text.d.ts +14 -0
- package/dist/src/components/help-text/help-text.js +32 -0
- package/dist/src/components/help-text/help-text.js.map +1 -0
- package/dist/src/components/hero/hero.css.d.ts +1 -0
- package/dist/src/components/hero/hero.css.js +363 -0
- package/dist/src/components/hero/hero.css.js.map +1 -0
- package/dist/src/components/hero/hero.d.ts +58 -0
- package/dist/src/components/hero/hero.js +198 -0
- package/dist/src/components/hero/hero.js.map +1 -0
- package/dist/src/components/highlight/highlight.css.d.ts +2 -0
- package/dist/src/components/highlight/highlight.css.js +176 -0
- package/dist/src/components/highlight/highlight.css.js.map +1 -0
- package/dist/src/components/highlight/highlight.d.ts +21 -0
- package/dist/src/components/highlight/highlight.js +116 -0
- package/dist/src/components/highlight/highlight.js.map +1 -0
- package/dist/src/components/icons/analysis-icon.d.ts +11 -0
- package/dist/src/components/icons/analysis-icon.js +24 -0
- package/dist/src/components/icons/analysis-icon.js.map +1 -0
- package/dist/src/components/icons/arrow-down-icon.d.ts +11 -0
- package/dist/src/components/icons/arrow-down-icon.js +24 -0
- package/dist/src/components/icons/arrow-down-icon.js.map +1 -0
- package/dist/src/components/icons/arrow-icon.d.ts +37 -0
- package/dist/src/components/icons/arrow-icon.js +52 -0
- package/dist/src/components/icons/arrow-icon.js.map +1 -0
- package/dist/src/components/icons/arrow-right-icon.d.ts +34 -0
- package/dist/src/components/icons/arrow-right-icon.js +49 -0
- package/dist/src/components/icons/arrow-right-icon.js.map +1 -0
- package/dist/src/components/icons/arrow-up-icon.d.ts +24 -0
- package/dist/src/components/icons/arrow-up-icon.js +37 -0
- package/dist/src/components/icons/arrow-up-icon.js.map +1 -0
- package/dist/src/components/icons/av-comparatives-icon.d.ts +13 -0
- package/dist/src/components/icons/av-comparatives-icon.js +42 -0
- package/dist/src/components/icons/av-comparatives-icon.js.map +1 -0
- package/dist/src/components/icons/bd-ai-icon.d.ts +13 -0
- package/dist/src/components/icons/bd-ai-icon.js +35 -0
- package/dist/src/components/icons/bd-ai-icon.js.map +1 -0
- package/dist/src/components/icons/best-brands-icon.d.ts +13 -0
- package/dist/src/components/icons/best-brands-icon.js +44 -0
- package/dist/src/components/icons/best-brands-icon.js.map +1 -0
- package/dist/src/components/icons/brand-signature-icon.d.ts +37 -0
- package/dist/src/components/icons/brand-signature-icon.js +50 -0
- package/dist/src/components/icons/brand-signature-icon.js.map +1 -0
- package/dist/src/components/icons/check-icon.d.ts +22 -0
- package/dist/src/components/icons/check-icon.js +35 -0
- package/dist/src/components/icons/check-icon.js.map +1 -0
- package/dist/src/components/icons/circle-info-icon.d.ts +26 -0
- package/dist/src/components/icons/circle-info-icon.js +41 -0
- package/dist/src/components/icons/circle-info-icon.js.map +1 -0
- package/dist/src/components/icons/close-icon.d.ts +11 -0
- package/dist/src/components/icons/close-icon.js +24 -0
- package/dist/src/components/icons/close-icon.js.map +1 -0
- package/dist/src/components/icons/enterprise-icon.d.ts +11 -0
- package/dist/src/components/icons/enterprise-icon.js +26 -0
- package/dist/src/components/icons/enterprise-icon.js.map +1 -0
- package/dist/src/components/icons/family-icon.d.ts +11 -0
- package/dist/src/components/icons/family-icon.js +26 -0
- package/dist/src/components/icons/family-icon.js.map +1 -0
- package/dist/src/components/icons/globe-icon.d.ts +11 -0
- package/dist/src/components/icons/globe-icon.js +24 -0
- package/dist/src/components/icons/globe-icon.js.map +1 -0
- package/dist/src/components/icons/guide-icon.d.ts +11 -0
- package/dist/src/components/icons/guide-icon.js +24 -0
- package/dist/src/components/icons/guide-icon.js.map +1 -0
- package/dist/src/components/icons/home-icon.d.ts +11 -0
- package/dist/src/components/icons/home-icon.js +26 -0
- package/dist/src/components/icons/home-icon.js.map +1 -0
- package/dist/src/components/icons/icon-element.d.ts +58 -0
- package/dist/src/components/icons/icon-element.js +163 -0
- package/dist/src/components/icons/icon-element.js.map +1 -0
- package/dist/src/components/icons/icons.d.ts +40 -0
- package/dist/src/components/icons/icons.js +42 -0
- package/dist/src/components/icons/icons.js.map +1 -0
- package/dist/src/components/icons/individual-icon.d.ts +11 -0
- package/dist/src/components/icons/individual-icon.js +24 -0
- package/dist/src/components/icons/individual-icon.js.map +1 -0
- package/dist/src/components/icons/laurel-icon.d.ts +11 -0
- package/dist/src/components/icons/laurel-icon.js +36 -0
- package/dist/src/components/icons/laurel-icon.js.map +1 -0
- package/dist/src/components/icons/machine-learning-icon.d.ts +11 -0
- package/dist/src/components/icons/machine-learning-icon.js +24 -0
- package/dist/src/components/icons/machine-learning-icon.js.map +1 -0
- package/dist/src/components/icons/marks.d.ts +40 -0
- package/dist/src/components/icons/marks.js +41 -0
- package/dist/src/components/icons/marks.js.map +1 -0
- package/dist/src/components/icons/minus-icon.d.ts +11 -0
- package/dist/src/components/icons/minus-icon.js +24 -0
- package/dist/src/components/icons/minus-icon.js.map +1 -0
- package/dist/src/components/icons/missing-icon.d.ts +41 -0
- package/dist/src/components/icons/missing-icon.js +58 -0
- package/dist/src/components/icons/missing-icon.js.map +1 -0
- package/dist/src/components/icons/pause-icon.d.ts +11 -0
- package/dist/src/components/icons/pause-icon.js +27 -0
- package/dist/src/components/icons/pause-icon.js.map +1 -0
- package/dist/src/components/icons/pc-mag-2024-icon.d.ts +13 -0
- package/dist/src/components/icons/pc-mag-2024-icon.js +43 -0
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -0
- package/dist/src/components/icons/pc-mag-business-icon.d.ts +13 -0
- package/dist/src/components/icons/pc-mag-business-icon.js +43 -0
- package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -0
- package/dist/src/components/icons/pc-mag-icon.d.ts +13 -0
- package/dist/src/components/icons/pc-mag-icon.js +43 -0
- package/dist/src/components/icons/pc-mag-icon.js.map +1 -0
- package/dist/src/components/icons/pc-mag-readers-icon.d.ts +13 -0
- package/dist/src/components/icons/pc-mag-readers-icon.js +42 -0
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -0
- package/dist/src/components/icons/play-icon.d.ts +11 -0
- package/dist/src/components/icons/play-icon.js +26 -0
- package/dist/src/components/icons/play-icon.js.map +1 -0
- package/dist/src/components/icons/plus-icon.d.ts +11 -0
- package/dist/src/components/icons/plus-icon.js +23 -0
- package/dist/src/components/icons/plus-icon.js.map +1 -0
- package/dist/src/components/icons/quote-icon.d.ts +20 -0
- package/dist/src/components/icons/quote-icon.js +34 -0
- package/dist/src/components/icons/quote-icon.js.map +1 -0
- package/dist/src/components/icons/small-business-icon.d.ts +11 -0
- package/dist/src/components/icons/small-business-icon.js +26 -0
- package/dist/src/components/icons/small-business-icon.js.map +1 -0
- package/dist/src/components/icons/top-product-icon.d.ts +13 -0
- package/dist/src/components/icons/top-product-icon.js +43 -0
- package/dist/src/components/icons/top-product-icon.js.map +1 -0
- package/dist/src/components/image/image.css.d.ts +2 -0
- package/dist/src/components/image/image.css.js +107 -0
- package/dist/src/components/image/image.css.js.map +1 -0
- package/dist/src/components/image/image.d.ts +35 -0
- package/dist/src/components/image/image.js +122 -0
- package/dist/src/components/image/image.js.map +1 -0
- package/dist/src/components/input/input-clipboard.css.d.ts +9 -0
- package/dist/src/components/input/input-clipboard.css.js +94 -0
- package/dist/src/components/input/input-clipboard.css.js.map +1 -0
- package/dist/src/components/input/input-clipboard.d.ts +52 -0
- package/dist/src/components/input/input-clipboard.js +299 -0
- package/dist/src/components/input/input-clipboard.js.map +1 -0
- package/dist/src/components/input/input.css.d.ts +9 -0
- package/dist/src/components/input/input.css.js +10 -0
- package/dist/src/components/input/input.css.js.map +1 -0
- package/dist/src/components/input/input.d.ts +48 -0
- package/dist/src/components/input/input.js +215 -0
- package/dist/src/components/input/input.js.map +1 -0
- package/dist/src/components/install-options/install-options.css.d.ts +2 -0
- package/dist/src/components/install-options/install-options.css.js +309 -0
- package/dist/src/components/install-options/install-options.css.js.map +1 -0
- package/dist/src/components/install-options/install-options.d.ts +42 -0
- package/dist/src/components/install-options/install-options.js +240 -0
- package/dist/src/components/install-options/install-options.js.map +1 -0
- package/dist/src/components/label/label.css.d.ts +3 -0
- package/dist/src/components/label/label.css.js +34 -0
- package/dist/src/components/label/label.css.js.map +1 -0
- package/dist/src/components/label/label.d.ts +33 -0
- package/dist/src/components/label/label.js +138 -0
- package/dist/src/components/label/label.js.map +1 -0
- package/dist/src/components/light-carousel/light-carousel.css.d.ts +2 -0
- package/dist/src/components/light-carousel/light-carousel.css.js +271 -0
- package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -0
- package/dist/src/components/light-carousel/light-carousel.d.ts +74 -0
- package/dist/src/components/light-carousel/light-carousel.js +199 -0
- package/dist/src/components/light-carousel/light-carousel.js.map +1 -0
- package/dist/src/components/link/link.css.d.ts +15 -0
- package/dist/src/components/link/link.css.js +289 -0
- package/dist/src/components/link/link.css.js.map +1 -0
- package/dist/src/components/link/link.d.ts +75 -0
- package/dist/src/components/link/link.js +238 -0
- package/dist/src/components/link/link.js.map +1 -0
- package/dist/src/components/list/list-item/list-item.css.d.ts +2 -0
- package/dist/src/components/list/list-item/list-item.css.js +168 -0
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -0
- package/dist/src/components/list/list-item/list-item.d.ts +33 -0
- package/dist/src/components/list/list-item/list-item.js +128 -0
- package/dist/src/components/list/list-item/list-item.js.map +1 -0
- package/dist/src/components/list/list.css.d.ts +2 -0
- package/dist/src/components/list/list.css.js +181 -0
- package/dist/src/components/list/list.css.js.map +1 -0
- package/dist/src/components/list/list.d.ts +28 -0
- package/dist/src/components/list/list.js +87 -0
- package/dist/src/components/list/list.js.map +1 -0
- package/dist/src/components/logo-marquee/logo-marquee.css.d.ts +1 -0
- package/dist/src/components/logo-marquee/logo-marquee.css.js +94 -0
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -0
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +51 -0
- package/dist/src/components/logo-marquee/logo-marquee.js +153 -0
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -0
- package/dist/src/components/modal/modal.css.d.ts +2 -0
- package/dist/src/components/modal/modal.css.js +204 -0
- package/dist/src/components/modal/modal.css.js.map +1 -0
- package/dist/src/components/modal/modal.d.ts +52 -0
- package/dist/src/components/modal/modal.js +145 -0
- package/dist/src/components/modal/modal.js.map +1 -0
- package/dist/src/components/motion-art/motion-art.d.ts +42 -0
- package/dist/src/components/motion-art/motion-art.js +115 -0
- package/dist/src/components/motion-art/motion-art.js.map +1 -0
- package/dist/src/components/overview/overview.css.d.ts +2 -0
- package/dist/src/components/overview/overview.css.js +126 -0
- package/dist/src/components/overview/overview.css.js.map +1 -0
- package/dist/src/components/overview/overview.d.ts +20 -0
- package/dist/src/components/overview/overview.js +72 -0
- package/dist/src/components/overview/overview.js.map +1 -0
- package/dist/src/components/page-switcher/page-switcher.css.d.ts +1 -0
- package/dist/src/components/page-switcher/page-switcher.css.js +175 -0
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -0
- package/dist/src/components/page-switcher/page-switcher.d.ts +46 -0
- package/dist/src/components/page-switcher/page-switcher.js +74 -0
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -0
- package/dist/src/components/pagination-dots/pagination-dots.css.d.ts +11 -0
- package/dist/src/components/pagination-dots/pagination-dots.css.js +161 -0
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -0
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +43 -0
- package/dist/src/components/pagination-dots/pagination-dots.js +216 -0
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -0
- package/dist/src/components/paragraph/paragraph.css.d.ts +2 -0
- package/dist/src/components/paragraph/paragraph.css.js +102 -0
- package/dist/src/components/paragraph/paragraph.css.js.map +1 -0
- package/dist/src/components/paragraph/paragraph.d.ts +41 -0
- package/dist/src/components/paragraph/paragraph.js +122 -0
- package/dist/src/components/paragraph/paragraph.js.map +1 -0
- package/dist/src/components/partner-banner/partner-banner.css.d.ts +1 -0
- package/dist/src/components/partner-banner/partner-banner.css.js +246 -0
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -0
- package/dist/src/components/partner-banner/partner-banner.d.ts +35 -0
- package/dist/src/components/partner-banner/partner-banner.js +99 -0
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -0
- package/dist/src/components/picture/picture.css.d.ts +2 -0
- package/dist/src/components/picture/picture.css.js +209 -0
- package/dist/src/components/picture/picture.css.js.map +1 -0
- package/dist/src/components/picture/picture.d.ts +37 -0
- package/dist/src/components/picture/picture.js +197 -0
- package/dist/src/components/picture/picture.js.map +1 -0
- package/dist/src/components/post-card/post-card.css.d.ts +1 -0
- package/dist/src/components/post-card/post-card.css.js +150 -0
- package/dist/src/components/post-card/post-card.css.js.map +1 -0
- package/dist/src/components/post-card/post-card.d.ts +38 -0
- package/dist/src/components/post-card/post-card.js +107 -0
- package/dist/src/components/post-card/post-card.js.map +1 -0
- package/dist/src/components/pricing-cards/adopt-styles.d.ts +10 -0
- package/dist/src/components/pricing-cards/adopt-styles.js +19 -0
- package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -0
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +18 -0
- package/dist/src/components/pricing-cards/new-pricing-card.js +57 -0
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -0
- package/dist/src/components/pricing-cards/new-pricing.css.d.ts +2 -0
- package/dist/src/components/pricing-cards/new-pricing.css.js +75 -0
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-card-actions.css.d.ts +2 -0
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +12 -0
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +19 -0
- package/dist/src/components/pricing-cards/pricing-card-actions.js +82 -0
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-card-container.css.d.ts +2 -0
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +42 -0
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +14 -0
- package/dist/src/components/pricing-cards/pricing-card-container.js +44 -0
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-card-header.css.d.ts +2 -0
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +83 -0
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +22 -0
- package/dist/src/components/pricing-cards/pricing-card-header.js +81 -0
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.d.ts +2 -0
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +93 -0
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +39 -0
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +129 -0
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.d.ts +2 -0
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +30 -0
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +16 -0
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +48 -0
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-card.css.d.ts +2 -0
- package/dist/src/components/pricing-cards/pricing-card.css.js +661 -0
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-card.d.ts +155 -0
- package/dist/src/components/pricing-cards/pricing-card.js +844 -0
- package/dist/src/components/pricing-cards/pricing-card.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-feature-item.css.d.ts +2 -0
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +35 -0
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -0
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +13 -0
- package/dist/src/components/pricing-cards/pricing-feature-item.js +25 -0
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -0
- package/dist/src/components/process-steps/process-steps.css.d.ts +2 -0
- package/dist/src/components/process-steps/process-steps.css.js +107 -0
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -0
- package/dist/src/components/process-steps/process-steps.d.ts +25 -0
- package/dist/src/components/process-steps/process-steps.js +97 -0
- package/dist/src/components/process-steps/process-steps.js.map +1 -0
- package/dist/src/components/progress/progress.css.d.ts +3 -0
- package/dist/src/components/progress/progress.css.js +124 -0
- package/dist/src/components/progress/progress.css.js.map +1 -0
- package/dist/src/components/progress/progress.d.ts +19 -0
- package/dist/src/components/progress/progress.js +77 -0
- package/dist/src/components/progress/progress.js.map +1 -0
- package/dist/src/components/quick-answer/quick-answer.css.d.ts +2 -0
- package/dist/src/components/quick-answer/quick-answer.css.js +131 -0
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -0
- package/dist/src/components/quick-answer/quick-answer.d.ts +20 -0
- package/dist/src/components/quick-answer/quick-answer.js +72 -0
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -0
- package/dist/src/components/radio/radio-group.css.d.ts +10 -0
- package/dist/src/components/radio/radio-group.css.js +42 -0
- package/dist/src/components/radio/radio-group.css.js.map +1 -0
- package/dist/src/components/radio/radio-group.d.ts +43 -0
- package/dist/src/components/radio/radio-group.js +99 -0
- package/dist/src/components/radio/radio-group.js.map +1 -0
- package/dist/src/components/radio/radio.css.d.ts +14 -0
- package/dist/src/components/radio/radio.css.js +194 -0
- package/dist/src/components/radio/radio.css.js.map +1 -0
- package/dist/src/components/radio/radio.d.ts +65 -0
- package/dist/src/components/radio/radio.js +276 -0
- package/dist/src/components/radio/radio.js.map +1 -0
- package/dist/src/components/radio/toggle-radio.d.ts +28 -0
- package/dist/src/components/radio/toggle-radio.js +51 -0
- package/dist/src/components/radio/toggle-radio.js.map +1 -0
- package/dist/src/components/review/review-grid.css.d.ts +2 -0
- package/dist/src/components/review/review-grid.css.js +47 -0
- package/dist/src/components/review/review-grid.css.js.map +1 -0
- package/dist/src/components/review/review-grid.d.ts +17 -0
- package/dist/src/components/review/review-grid.js +59 -0
- package/dist/src/components/review/review-grid.js.map +1 -0
- package/dist/src/components/review/review.css.d.ts +2 -0
- package/dist/src/components/review/review.css.js +55 -0
- package/dist/src/components/review/review.css.js.map +1 -0
- package/dist/src/components/review/review.d.ts +35 -0
- package/dist/src/components/review/review.js +72 -0
- package/dist/src/components/review/review.js.map +1 -0
- package/dist/src/components/section/section.css.d.ts +2 -0
- package/dist/src/components/section/section.css.js +38 -0
- package/dist/src/components/section/section.css.js.map +1 -0
- package/dist/src/components/section/section.d.ts +32 -0
- package/dist/src/components/section/section.js +51 -0
- package/dist/src/components/section/section.js.map +1 -0
- package/dist/src/components/section-header/section-header.css.d.ts +1 -0
- package/dist/src/components/section-header/section-header.css.js +100 -0
- package/dist/src/components/section-header/section-header.css.js.map +1 -0
- package/dist/src/components/section-header/section-header.d.ts +40 -0
- package/dist/src/components/section-header/section-header.js +93 -0
- package/dist/src/components/section-header/section-header.js.map +1 -0
- package/dist/src/components/shared/announcer.d.ts +24 -0
- package/dist/src/components/shared/announcer.js +35 -0
- package/dist/src/components/shared/announcer.js.map +1 -0
- package/dist/src/components/shared/controller.media-query.d.ts +33 -0
- package/dist/src/components/shared/controller.media-query.js +58 -0
- package/dist/src/components/shared/controller.media-query.js.map +1 -0
- package/dist/src/components/shared/define-element.d.ts +13 -0
- package/dist/src/components/shared/define-element.js +17 -0
- package/dist/src/components/shared/define-element.js.map +1 -0
- package/dist/src/components/shared/ensemble.css.d.ts +46 -0
- package/dist/src/components/shared/ensemble.css.js +102 -0
- package/dist/src/components/shared/ensemble.css.js.map +1 -0
- package/dist/src/components/shared/events.d.ts +34 -0
- package/dist/src/components/shared/events.js +13 -0
- package/dist/src/components/shared/events.js.map +1 -0
- package/dist/src/components/shared/fill-width.css.d.ts +1 -0
- package/dist/src/components/shared/fill-width.css.js +28 -0
- package/dist/src/components/shared/fill-width.css.js.map +1 -0
- package/dist/src/components/shared/form-control.d.ts +66 -0
- package/dist/src/components/shared/form-control.js +199 -0
- package/dist/src/components/shared/form-control.js.map +1 -0
- package/dist/src/components/shared/form-field.css.d.ts +23 -0
- package/dist/src/components/shared/form-field.css.js +259 -0
- package/dist/src/components/shared/form-field.css.js.map +1 -0
- package/dist/src/components/shared/prop-vocabulary.d.ts +46 -0
- package/dist/src/components/shared/prop-vocabulary.js +50 -0
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -0
- package/dist/src/components/shared/token-scales.d.ts +230 -0
- package/dist/src/components/shared/token-scales.js +352 -0
- package/dist/src/components/shared/token-scales.js.map +1 -0
- package/dist/src/components/skeleton/skeleton.css.d.ts +3 -0
- package/dist/src/components/skeleton/skeleton.css.js +33 -0
- package/dist/src/components/skeleton/skeleton.css.js.map +1 -0
- package/dist/src/components/skeleton/skeleton.d.ts +15 -0
- package/dist/src/components/skeleton/skeleton.js +41 -0
- package/dist/src/components/skeleton/skeleton.js.map +1 -0
- package/dist/src/components/spinner/spinner.css.d.ts +3 -0
- package/dist/src/components/spinner/spinner.css.js +88 -0
- package/dist/src/components/spinner/spinner.css.js.map +1 -0
- package/dist/src/components/spinner/spinner.d.ts +22 -0
- package/dist/src/components/spinner/spinner.js +71 -0
- package/dist/src/components/spinner/spinner.js.map +1 -0
- package/dist/src/components/spotlight-section/spotlight-section.css.d.ts +2 -0
- package/dist/src/components/spotlight-section/spotlight-section.css.js +106 -0
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -0
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +21 -0
- package/dist/src/components/spotlight-section/spotlight-section.js +107 -0
- package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -0
- package/dist/src/components/stat/stat-highlight.d.ts +30 -0
- package/dist/src/components/stat/stat-highlight.js +84 -0
- package/dist/src/components/stat/stat-highlight.js.map +1 -0
- package/dist/src/components/stat/stat-tile.d.ts +23 -0
- package/dist/src/components/stat/stat-tile.js +54 -0
- package/dist/src/components/stat/stat-tile.js.map +1 -0
- package/dist/src/components/stat/stat.css.d.ts +2 -0
- package/dist/src/components/stat/stat.css.js +146 -0
- package/dist/src/components/stat/stat.css.js.map +1 -0
- package/dist/src/components/stat/stat.d.ts +2 -0
- package/dist/src/components/stat/stat.js +3 -0
- package/dist/src/components/stat/stat.js.map +1 -0
- package/dist/src/components/switch/switch.css.d.ts +3 -0
- package/dist/src/components/switch/switch.css.js +176 -0
- package/dist/src/components/switch/switch.css.js.map +1 -0
- package/dist/src/components/switch/switch.d.ts +30 -0
- package/dist/src/components/switch/switch.js +111 -0
- package/dist/src/components/switch/switch.js.map +1 -0
- package/dist/src/components/tab-list/tab-list.css.d.ts +16 -0
- package/dist/src/components/tab-list/tab-list.css.js +290 -0
- package/dist/src/components/tab-list/tab-list.css.js.map +1 -0
- package/dist/src/components/tab-list/tab-list.d.ts +99 -0
- package/dist/src/components/tab-list/tab-list.js +203 -0
- package/dist/src/components/tab-list/tab-list.js.map +1 -0
- package/dist/src/components/tabs/tabs.css.d.ts +2 -0
- package/dist/src/components/tabs/tabs.css.js +78 -0
- package/dist/src/components/tabs/tabs.css.js.map +1 -0
- package/dist/src/components/tabs/tabs.d.ts +69 -0
- package/dist/src/components/tabs/tabs.js +241 -0
- package/dist/src/components/tabs/tabs.js.map +1 -0
- package/dist/src/components/tag/tag.css.d.ts +3 -0
- package/dist/src/components/tag/tag.css.js +53 -0
- package/dist/src/components/tag/tag.css.js.map +1 -0
- package/dist/src/components/tag/tag.d.ts +17 -0
- package/dist/src/components/tag/tag.js +39 -0
- package/dist/src/components/tag/tag.js.map +1 -0
- package/dist/src/components/terminal/terminal-cursor.d.ts +12 -0
- package/dist/src/components/terminal/terminal-cursor.js +66 -0
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -0
- package/dist/src/components/terminal/terminal-message.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal-message.css.js +410 -0
- package/dist/src/components/terminal/terminal-message.css.js.map +1 -0
- package/dist/src/components/terminal/terminal-message.d.ts +43 -0
- package/dist/src/components/terminal/terminal-message.js +223 -0
- package/dist/src/components/terminal/terminal-message.js.map +1 -0
- package/dist/src/components/termsOfUse/terms.css.d.ts +2 -0
- package/dist/src/components/termsOfUse/terms.css.js +56 -0
- package/dist/src/components/termsOfUse/terms.css.js.map +1 -0
- package/dist/src/components/termsOfUse/terms.d.ts +22 -0
- package/dist/src/components/termsOfUse/terms.js +151 -0
- package/dist/src/components/termsOfUse/terms.js.map +1 -0
- package/dist/src/components/textarea/textarea.css.d.ts +13 -0
- package/dist/src/components/textarea/textarea.css.js +50 -0
- package/dist/src/components/textarea/textarea.css.js.map +1 -0
- package/dist/src/components/textarea/textarea.d.ts +49 -0
- package/dist/src/components/textarea/textarea.js +171 -0
- package/dist/src/components/textarea/textarea.js.map +1 -0
- package/dist/src/components/tooltip/tooltip.css.d.ts +3 -0
- package/dist/src/components/tooltip/tooltip.css.js +97 -0
- package/dist/src/components/tooltip/tooltip.css.js.map +1 -0
- package/dist/src/components/tooltip/tooltip.d.ts +47 -0
- package/dist/src/components/tooltip/tooltip.js +293 -0
- package/dist/src/components/tooltip/tooltip.js.map +1 -0
- package/dist/src/components/trust-panel/trust-panel.css.d.ts +2 -0
- package/dist/src/components/trust-panel/trust-panel.css.js +229 -0
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -0
- package/dist/src/components/trust-panel/trust-panel.d.ts +34 -0
- package/dist/src/components/trust-panel/trust-panel.js +139 -0
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -0
- package/dist/src/components/video/video.css.d.ts +3 -0
- package/dist/src/components/video/video.css.js +21 -0
- package/dist/src/components/video/video.css.js.map +1 -0
- package/dist/src/components/video/video.d.ts +24 -0
- package/dist/src/components/video/video.js +96 -0
- package/dist/src/components/video/video.js.map +1 -0
- package/dist/src/components/video-player/video-player.css.d.ts +2 -0
- package/dist/src/components/video-player/video-player.css.js +168 -0
- package/dist/src/components/video-player/video-player.css.js.map +1 -0
- package/dist/src/components/video-player/video-player.d.ts +44 -0
- package/dist/src/components/video-player/video-player.js +188 -0
- package/dist/src/components/video-player/video-player.js.map +1 -0
- package/dist/src/components/visually-hidden/visually-hidden.css.d.ts +3 -0
- package/dist/src/components/visually-hidden/visually-hidden.css.js +23 -0
- package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -0
- package/dist/src/components/visually-hidden/visually-hidden.d.ts +11 -0
- package/dist/src/components/visually-hidden/visually-hidden.js +24 -0
- package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -0
- package/dist/src/tokens/brand-layer.d.ts +66 -0
- package/dist/src/tokens/brand-layer.js +170 -0
- package/dist/src/tokens/brand-layer.js.map +1 -0
- package/dist/src/tokens/dark-derivation.d.ts +70 -0
- package/dist/src/tokens/dark-derivation.js +326 -0
- package/dist/src/tokens/dark-derivation.js.map +1 -0
- package/dist/src/tokens/dark-findings.d.ts +59 -0
- package/dist/src/tokens/dark-findings.js +205 -0
- package/dist/src/tokens/dark-findings.js.map +1 -0
- package/dist/src/tokens/story-chrome.d.ts +72 -0
- package/dist/src/tokens/story-chrome.js +486 -0
- package/dist/src/tokens/story-chrome.js.map +1 -0
- package/dist/src/tokens/themes/bitdefender.d.ts +25 -0
- package/dist/src/tokens/themes/bitdefender.js +31 -0
- package/dist/src/tokens/themes/bitdefender.js.map +1 -0
- package/dist/src/tokens/themes/contract.d.ts +4 -0
- package/dist/src/tokens/themes/contract.js +8 -0
- package/dist/src/tokens/themes/contract.js.map +1 -0
- package/dist/src/tokens/themes/index.d.ts +27 -0
- package/dist/src/tokens/themes/index.js +40 -0
- package/dist/src/tokens/themes/index.js.map +1 -0
- package/dist/src/tokens/token-map.d.ts +114 -0
- package/dist/src/tokens/token-map.js +237 -0
- package/dist/src/tokens/token-map.js.map +1 -0
- package/dist/src/tokens/token-purposes.d.ts +63 -0
- package/dist/src/tokens/token-purposes.js +260 -0
- package/dist/src/tokens/token-purposes.js.map +1 -0
- package/dist/src/tokens/tokens.css +1809 -0
- package/dist/src/tokens/tokens.d.ts +31 -0
- package/dist/src/tokens/tokens.js +1866 -0
- package/dist/src/tokens/tokens.js.map +1 -0
- package/dist/src/tokens/type-ceiling-words.d.ts +96 -0
- package/dist/src/tokens/type-ceiling-words.js +294 -0
- package/dist/src/tokens/type-ceiling-words.js.map +1 -0
- package/dist/src/vendor/motion-art/README.md +30 -0
- package/dist/src/vendor/motion-art/motion-art-element.d.ts +32 -0
- package/package.json +318 -85
- package/schemas/component-manifest.json +197 -146
- package/schemas/manifest-omissions.json +2 -174
- package/src/assets/fonts/bd-ibm-plex-mono.zip +0 -0
- package/src/assets/fonts/bd-ibm-plex-sans.zip +0 -0
- package/src/assets/icons/Identity_protection.png +0 -0
- package/src/assets/icons/badge-icon-individual.png +0 -0
- package/src/assets/icons/bd-icon-family-white.png +0 -0
- package/src/assets/icons/bd-icon-family.png +0 -0
- package/src/assets/icons/bd-icon-user.png +0 -0
- package/src/assets/icons/device_protection.png +0 -0
- package/src/assets/icons/financial_insurance.png +0 -0
- package/src/assets/icons/left_clicked.png +0 -0
- package/src/assets/icons/left_disabled.png +0 -0
- package/src/assets/icons/left_hover.png +0 -0
- package/src/assets/icons/left_normal.png +0 -0
- package/src/assets/icons/light-carousel-img1.png +0 -0
- package/src/assets/icons/light-carousel-img2.png +0 -0
- package/src/assets/icons/light-carousel-img3.png +0 -0
- package/src/assets/icons/more_hover.png +0 -0
- package/src/assets/icons/more_normal.png +0 -0
- package/src/assets/icons/more_pressed.png +0 -0
- package/src/assets/icons/pic1.png +0 -0
- package/src/assets/icons/pic2.png +0 -0
- package/src/assets/icons/pic3.png +0 -0
- package/src/assets/icons/privacy_protection.png +0 -0
- package/src/assets/icons/right_clicked.png +0 -0
- package/src/assets/icons/right_disabled.png +0 -0
- package/src/assets/icons/right_hover.png +0 -0
- package/src/assets/icons/right_normal.png +0 -0
- package/src/assets/icons/user_guide.png +0 -0
- package/src/assets/icons/verified_arrow.png +0 -0
- package/src/assets/images/ai/bento-consumer-art.jpg +0 -0
- package/src/assets/images/ai/bento-enterprise-art.jpg +0 -0
- package/src/assets/images/ai/bento-labs-art.jpg +0 -0
- package/src/assets/images/award-marks/av-comparatives-top-rated.png +0 -0
- package/src/assets/images/award-marks/av-test-top-product.png +0 -0
- package/src/assets/images/award-marks/crn-partner-guide.png +0 -0
- package/src/assets/images/award-marks/forrester.png +0 -0
- package/src/assets/images/award-marks/gartner.png +0 -0
- package/src/assets/images/award-marks/idc.png +0 -0
- package/src/assets/images/award-marks/mitre-engenuity.png +0 -0
- package/src/assets/images/award-marks/omdia.png +0 -0
- package/src/assets/images/award-marks/pcmag-best-of-2026.png +0 -0
- package/src/assets/images/award-marks/pcmag-editors-choice.png +0 -0
- package/src/assets/images/award-marks/pcmag-readers-choice.png +0 -0
- package/src/assets/images/awards/av-comparatives-2025.png +0 -0
- package/src/assets/images/awards/av-test-top-product.png +0 -0
- package/src/assets/images/awards/gartner-peer-insights.png +0 -0
- package/src/assets/images/awards/idc.png +0 -0
- package/src/assets/images/awards/pcmag-best-of-2026.png +0 -0
- package/src/assets/images/badges/app-store-badge.png +0 -0
- package/src/assets/images/badges/google-play-badge.png +0 -0
- package/src/assets/images/bd-header-img.jpg +0 -0
- package/src/assets/images/bd-header-us.jpg +0 -0
- package/src/assets/images/hero/ai-sphere-poster.jpg +0 -0
- package/src/assets/images/insights/post-1.jpg +0 -0
- package/src/assets/images/insights/post-2.jpg +0 -0
- package/src/assets/images/insights/post-3.jpg +0 -0
- package/src/assets/images/partner/ferrari-lockup.png +0 -0
- package/src/assets/images/partner/ferrari-photo.jpg +0 -0
- package/src/assets/images/partners/ferrari.svg +0 -6
- package/src/assets/images/partners/konica-minolta.svg +0 -12
- package/src/assets/images/partners/logmein.svg +0 -6
- package/src/assets/images/partners/netgear.svg +0 -10
- package/src/assets/images/partners/sharp.svg +0 -5
- package/src/assets/images/partners/spurs.svg +0 -33
- package/src/assets/images/tabs-img1.png +0 -0
- package/src/assets/images/tabs-img2.png +0 -0
- package/src/assets/images/tabs-img3.png +0 -0
- package/src/blog/assets/articles/fbi-crypto-scam-1.jpeg +0 -0
- package/src/blog/assets/articles/fbi-crypto-scam-cover.png +0 -0
- package/src/blog/assets/fonts/IBMPlexSans-Bold.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSans-BoldItalic.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSans-Italic.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSans-Light.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSans-LightItalic.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSans-Medium.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSans-MediumItalic.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSans-Regular.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSans-SemiBold.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSans-SemiBoldItalic.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSansCondensed-Bold.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSansCondensed-BoldItalic.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSansCondensed-Italic.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSansCondensed-Light.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSansCondensed-LightItalic.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSansCondensed-Medium.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSansCondensed-MediumItalic.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSansCondensed-Regular.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2 +0 -0
- package/src/blog/assets/fonts/IBMPlexSansCondensed-SemiBoldItalic.woff2 +0 -0
- package/src/blog/assets/global-scam-intelligence-report-2026.png +0 -0
- package/src/blog/assets/psd-4.jpg +0 -0
- package/src/blog/src/articles/FBI warns of crypto investment scam that sends couriers to collect victims' cash-editedAB.docx +0 -0
- package/src/blog/src/articles/FBI-crypto-scam-courier-cash.png +0 -0
- package/src/blog/src/articles/fbi-crypto-scam.js +0 -324
- package/src/blog/src/articles/~$I warns of crypto investment scam that sends couriers to collect victims' cash-editedAB.docx +0 -0
- package/src/blog/src/atoms/blog-abstract.js +0 -51
- package/src/blog/src/atoms/blog-authors.js +0 -70
- package/src/blog/src/atoms/blog-avatar.js +0 -44
- package/src/blog/src/atoms/blog-blockquote.js +0 -92
- package/src/blog/src/atoms/blog-caption.js +0 -31
- package/src/blog/src/atoms/blog-code-block.js +0 -89
- package/src/blog/src/atoms/blog-dek.js +0 -30
- package/src/blog/src/atoms/blog-featured-image.js +0 -65
- package/src/blog/src/atoms/blog-heading.js +0 -63
- package/src/blog/src/atoms/blog-image.js +0 -50
- package/src/blog/src/atoms/blog-key-takeaways.js +0 -101
- package/src/blog/src/atoms/blog-link.js +0 -68
- package/src/blog/src/atoms/blog-meta.js +0 -87
- package/src/blog/src/atoms/blog-most-popular.js +0 -146
- package/src/blog/src/atoms/blog-newsletter-signup.js +0 -342
- package/src/blog/src/atoms/blog-paragraph.js +0 -61
- package/src/blog/src/atoms/blog-product-upsell.js +0 -168
- package/src/blog/src/atoms/blog-related-articles.js +0 -326
- package/src/blog/src/atoms/blog-related-label.js +0 -30
- package/src/blog/src/atoms/blog-report-promo.js +0 -250
- package/src/blog/src/atoms/blog-standout.js +0 -78
- package/src/blog/src/atoms/blog-subhead.js +0 -32
- package/src/blog/src/atoms/blog-table-of-contents.js +0 -447
- package/src/blog/src/atoms/blog-tag.js +0 -86
- package/src/blog/src/atoms/blog-title.js +0 -31
- package/src/blog/src/base/blog-element.js +0 -10
- package/src/blog/src/breakpoints.js +0 -23
- package/src/blog/src/content/blog-article.js +0 -736
- package/src/blog/src/content/blog-atoms-showcase.js +0 -401
- package/src/blog/src/content/blog-page-layout.js +0 -73
- package/src/blog/src/content/render-inline-content.js +0 -18
- package/src/blog/src/data/popular-articles.js +0 -43
- package/src/blog/src/data/related-articles.js +0 -58
- package/src/blog/src/index.js +0 -104
- package/src/blog/src/lib/article-toc.js +0 -206
- package/src/blog/src/lib/load-prism.js +0 -23
- package/src/blog/src/shell/blog-shell.js +0 -31
- package/src/blog/src/styles/prism-theme.js +0 -65
- package/src/blog/src/tokens/blog.js +0 -406
- package/src/blog/src/tokens/core.js +0 -810
- package/src/blog/src/tokens/fonts.css +0 -241
- package/src/blog/src/tokens/index.js +0 -27
- package/src/blog/src/tokens/legacy.js +0 -49
- package/src/blog/tokens/blog.js +0 -406
- package/src/blog/tokens/core.js +0 -810
- package/src/blog/tokens/fonts.css +0 -241
- package/src/blog/tokens/index.js +0 -27
- package/src/blog/tokens/legacy.js +0 -49
- package/src/blog/tokens.css +0 -1502
- package/src/blog/tokens.js +0 -1
- package/src/blog/vendor/prism/prism.css +0 -120
- package/src/blog/vendor/prism/prism.js +0 -300
- package/src/components/accordion/accordion-bg.css.js +0 -289
- package/src/components/accordion/accordion-bg.js +0 -261
- package/src/components/accordion/accordion-bg.stories.js +0 -354
- package/src/components/accordion/accordion-indicators.js +0 -2
- package/src/components/accordion/accordion-keyboard.js +0 -80
- package/src/components/accordion/accordion-panel.js +0 -24
- package/src/components/accordion/accordion.css.js +0 -382
- package/src/components/accordion/accordion.js +0 -176
- package/src/components/accordion/accordion.stories.js +0 -390
- package/src/components/agent-endpoints/agent-endpoints.css.js +0 -89
- package/src/components/agent-endpoints/agent-endpoints.js +0 -96
- package/src/components/agent-endpoints/agent-endpoints.stories.js +0 -148
- package/src/components/ai-guardian-demo.stories.js +0 -1487
- package/src/components/alert/alert.css.js +0 -219
- package/src/components/alert/alert.js +0 -103
- package/src/components/alert/alert.stories.js +0 -206
- package/src/components/anchor/anchor-nav.css.js +0 -547
- package/src/components/anchor/anchor-nav.js +0 -617
- package/src/components/anchor/anchor.stories.js +0 -536
- package/src/components/annotation/annotation.css.js +0 -66
- package/src/components/annotation/annotation.js +0 -67
- package/src/components/annotation/annotation.stories.js +0 -63
- package/src/components/architecture.stories.js +0 -288
- package/src/components/atoms.stories.js +0 -342
- package/src/components/audience-card/audience-card.css.js +0 -123
- package/src/components/audience-card/audience-card.js +0 -75
- package/src/components/audience-card/audience-card.stories.js +0 -125
- package/src/components/avatar/avatar.css.js +0 -67
- package/src/components/avatar/avatar.js +0 -68
- package/src/components/avatar/avatar.stories.js +0 -99
- package/src/components/awards/awards-flex.css.js +0 -274
- package/src/components/awards/awards-flex.js +0 -293
- package/src/components/awards/awards-flex.stories.js +0 -659
- package/src/components/awards/awards-spotlight.css.js +0 -162
- package/src/components/awards/awards-spotlight.js +0 -142
- package/src/components/awards/awards-spotlight.stories.js +0 -205
- package/src/components/awards/awards-summary.stories.js +0 -344
- package/src/components/awards/awards.css.js +0 -402
- package/src/components/awards/awards.js +0 -201
- package/src/components/awards/awards.stories.js +0 -396
- package/src/components/awards/scroll-slides.js +0 -128
- package/src/components/back/back.css.js +0 -92
- package/src/components/back/back.js +0 -72
- package/src/components/back/back.stories.js +0 -153
- package/src/components/badge/badge.css.js +0 -205
- package/src/components/badge/badge.js +0 -104
- package/src/components/badge/badge.stories.js +0 -234
- package/src/components/bento-grid/bento-grid.css.js +0 -171
- package/src/components/bento-grid/bento-grid.js +0 -200
- package/src/components/bento-grid/bento-grid.stories.js +0 -563
- package/src/components/bento-grid/bento-item.css.js +0 -339
- package/src/components/bento-grid/bento-item.js +0 -94
- package/src/components/blockquote/blockquote.css.js +0 -56
- package/src/components/blockquote/blockquote.js +0 -36
- package/src/components/blockquote/blockquote.stories.js +0 -64
- package/src/components/breadcrumb/breadcrumb.css.js +0 -169
- package/src/components/breadcrumb/breadcrumb.js +0 -182
- package/src/components/breadcrumb/breadcrumb.stories.js +0 -272
- package/src/components/button/button.css.js +0 -844
- package/src/components/button/button.js +0 -410
- package/src/components/button/button.stories.js +0 -742
- package/src/components/caption/caption.css.js +0 -31
- package/src/components/caption/caption.js +0 -31
- package/src/components/caption/caption.stories.js +0 -62
- package/src/components/card-features/card-features.css.js +0 -121
- package/src/components/card-features/card-features.js +0 -162
- package/src/components/card-features/card-features.stories.js +0 -165
- package/src/components/cards/card.css.js +0 -370
- package/src/components/cards/card.js +0 -334
- package/src/components/cards/card.stories.js +0 -512
- package/src/components/carousel/carousel.css.js +0 -264
- package/src/components/carousel/carousel.js +0 -332
- package/src/components/carousel/carousel.stories.js +0 -207
- package/src/components/checkbox/checkbox.css.js +0 -174
- package/src/components/checkbox/checkbox.js +0 -139
- package/src/components/checkbox/checkbox.stories.js +0 -232
- package/src/components/code/code.css.js +0 -75
- package/src/components/code/code.js +0 -81
- package/src/components/code/code.stories.js +0 -76
- package/src/components/compare/compare.css.js +0 -479
- package/src/components/compare/compare.js +0 -566
- package/src/components/compare/compare.stories.js +0 -736
- package/src/components/comparison-panel/comparison-panel.css.js +0 -142
- package/src/components/comparison-panel/comparison-panel.js +0 -106
- package/src/components/comparison-panel/comparison-panel.stories.js +0 -223
- package/src/components/compatibility-table/compatibility-table.css.js +0 -392
- package/src/components/compatibility-table/compatibility-table.js +0 -164
- package/src/components/compatibility-table/compatibility-table.stories.js +0 -266
- package/src/components/control-alignment.stories.js +0 -393
- package/src/components/cta-banner/cta-banner.css.js +0 -99
- package/src/components/cta-banner/cta-banner.js +0 -71
- package/src/components/cta-banner/cta-banner.stories.js +0 -67
- package/src/components/display/display.css.js +0 -96
- package/src/components/display/display.js +0 -71
- package/src/components/display/display.stories.js +0 -357
- package/src/components/divider/divider-horizontal.js +0 -59
- package/src/components/divider/divider-vertical.js +0 -56
- package/src/components/divider/divider.css.js +0 -22
- package/src/components/divider/divider.stories.js +0 -206
- package/src/components/dropdown/dropdown.css.js +0 -122
- package/src/components/dropdown/dropdown.js +0 -281
- package/src/components/dropdown/dropdown.stories.js +0 -276
- package/src/components/features/features.css.js +0 -124
- package/src/components/features/features.js +0 -82
- package/src/components/features/features.stories.js +0 -252
- package/src/components/features-tab/features-tab.css.js +0 -101
- package/src/components/features-tab/features-tab.js +0 -76
- package/src/components/features-tab/features-tab.stories.js +0 -439
- package/src/components/fieldset/fieldset.css.js +0 -30
- package/src/components/fieldset/fieldset.js +0 -28
- package/src/components/fieldset/fieldset.stories.js +0 -177
- package/src/components/footer/footer-images.js +0 -34
- package/src/components/footer/footer-links-group.css.js +0 -34
- package/src/components/footer/footer-links-group.js +0 -26
- package/src/components/footer/footer-locale.js +0 -47
- package/src/components/footer/footer-lp.js +0 -162
- package/src/components/footer/footer-lp.stories.js +0 -365
- package/src/components/footer/footer-nav-menu.css.js +0 -62
- package/src/components/footer/footer-nav-menu.js +0 -42
- package/src/components/footer/footer.css.js +0 -665
- package/src/components/footer/footer.js +0 -435
- package/src/components/footer/footer.stories.js +0 -225
- package/src/components/footer/localeMap.js +0 -1
- package/src/components/grid/grid.css.js +0 -79
- package/src/components/grid/grid.js +0 -111
- package/src/components/grid/grid.stories.js +0 -144
- package/src/components/header/header-code.css.js +0 -370
- package/src/components/header/header-code.js +0 -226
- package/src/components/header/header-code.stories.js +0 -279
- package/src/components/header/header.css.js +0 -758
- package/src/components/header/header.js +0 -345
- package/src/components/header/header.stories.js +0 -1012
- package/src/components/heading/heading.css.js +0 -90
- package/src/components/heading/heading.js +0 -97
- package/src/components/heading/heading.stories.js +0 -228
- package/src/components/help-text/help-text.css.js +0 -21
- package/src/components/help-text/help-text.js +0 -25
- package/src/components/help-text/help-text.stories.js +0 -66
- package/src/components/hero/hero.css.js +0 -363
- package/src/components/hero/hero.js +0 -179
- package/src/components/hero/hero.stories.js +0 -146
- package/src/components/highlight/highlight.css.js +0 -176
- package/src/components/highlight/highlight.js +0 -112
- package/src/components/highlight/highlight.stories.js +0 -180
- package/src/components/icons/analysis-icon.js +0 -15
- package/src/components/icons/arrow-down-icon.js +0 -15
- package/src/components/icons/arrow-icon.js +0 -47
- package/src/components/icons/arrow-right-icon.js +0 -42
- package/src/components/icons/arrow-up-icon.js +0 -29
- package/src/components/icons/av-comparatives-icon.js +0 -34
- package/src/components/icons/bd-ai-icon.js +0 -27
- package/src/components/icons/best-brands-icon.js +0 -36
- package/src/components/icons/brand-marks.stories.js +0 -279
- package/src/components/icons/brand-signature-icon.js +0 -42
- package/src/components/icons/check-icon.js +0 -27
- package/src/components/icons/circle-info-icon.js +0 -33
- package/src/components/icons/close-icon.js +0 -16
- package/src/components/icons/enterprise-icon.js +0 -19
- package/src/components/icons/family-icon.js +0 -19
- package/src/components/icons/globe-icon.js +0 -16
- package/src/components/icons/guide-icon.js +0 -16
- package/src/components/icons/home-icon.js +0 -19
- package/src/components/icons/icon-element.js +0 -160
- package/src/components/icons/icons.js +0 -41
- package/src/components/icons/icons.stories.js +0 -391
- package/src/components/icons/individual-icon.js +0 -17
- package/src/components/icons/laurel-icon.js +0 -29
- package/src/components/icons/machine-learning-icon.js +0 -15
- package/src/components/icons/marks.js +0 -41
- package/src/components/icons/minus-icon.js +0 -17
- package/src/components/icons/missing-icon.js +0 -52
- package/src/components/icons/pause-icon.js +0 -20
- package/src/components/icons/pc-mag-2024-icon.js +0 -35
- package/src/components/icons/pc-mag-business-icon.js +0 -35
- package/src/components/icons/pc-mag-icon.js +0 -35
- package/src/components/icons/pc-mag-readers-icon.js +0 -34
- package/src/components/icons/play-icon.js +0 -19
- package/src/components/icons/plus-icon.js +0 -16
- package/src/components/icons/quote-icon.js +0 -28
- package/src/components/icons/small-business-icon.js +0 -19
- package/src/components/icons/top-product-icon.js +0 -35
- package/src/components/image/image.css.js +0 -107
- package/src/components/image/image.js +0 -98
- package/src/components/image/image.stories.js +0 -239
- package/src/components/input/custom-form.stories.js +0 -1000
- package/src/components/input/input-clipboard.css.js +0 -94
- package/src/components/input/input-clipboard.js +0 -264
- package/src/components/input/input.css.js +0 -10
- package/src/components/input/input.js +0 -182
- package/src/components/install-options/install-options.css.js +0 -309
- package/src/components/install-options/install-options.js +0 -226
- package/src/components/install-options/install-options.stories.js +0 -219
- package/src/components/label/label.css.js +0 -35
- package/src/components/label/label.js +0 -124
- package/src/components/label/label.stories.js +0 -91
- package/src/components/light-carousel/light-carousel.css.js +0 -276
- package/src/components/light-carousel/light-carousel.js +0 -187
- package/src/components/light-carousel/light-carousel.stories.js +0 -576
- package/src/components/link/link.css.js +0 -289
- package/src/components/link/link.js +0 -207
- package/src/components/link/link.stories.js +0 -402
- package/src/components/list/list-item/list-item.css.js +0 -168
- package/src/components/list/list-item/list-item.js +0 -119
- package/src/components/list/list-item/list-item.stories.js +0 -187
- package/src/components/list/list.css.js +0 -181
- package/src/components/list/list.js +0 -72
- package/src/components/list/list.stories.js +0 -222
- package/src/components/logo-marquee/logo-marquee.css.js +0 -94
- package/src/components/logo-marquee/logo-marquee.js +0 -138
- package/src/components/logo-marquee/logo-marquee.stories.js +0 -129
- package/src/components/modal/modal.css.js +0 -204
- package/src/components/modal/modal.js +0 -129
- package/src/components/modal/modal.stories.js +0 -199
- package/src/components/motion-art/motion-art.js +0 -108
- package/src/components/motion-art/motion-art.stories.js +0 -98
- package/src/components/overview/overview.css.js +0 -126
- package/src/components/overview/overview.js +0 -64
- package/src/components/overview/overview.stories.js +0 -193
- package/src/components/page-switcher/page-switcher.css.js +0 -175
- package/src/components/page-switcher/page-switcher.js +0 -68
- package/src/components/page-switcher/page-switcher.stories.js +0 -95
- package/src/components/pagination-dots/pagination-dots.css.js +0 -161
- package/src/components/pagination-dots/pagination-dots.js +0 -202
- package/src/components/pagination-dots/pagination-dots.stories.js +0 -171
- package/src/components/paragraph/paragraph.css.js +0 -102
- package/src/components/paragraph/paragraph.js +0 -99
- package/src/components/paragraph/paragraph.stories.js +0 -187
- package/src/components/partner-banner/partner-banner.css.js +0 -246
- package/src/components/partner-banner/partner-banner.js +0 -84
- package/src/components/partner-banner/partner-banner.stories.js +0 -86
- package/src/components/picture/picture.css.js +0 -209
- package/src/components/picture/picture.js +0 -172
- package/src/components/picture/picture.stories.js +0 -232
- package/src/components/post-card/post-card.css.js +0 -150
- package/src/components/post-card/post-card.js +0 -80
- package/src/components/post-card/post-card.stories.js +0 -79
- package/src/components/pricing-cards/adopt-styles.js +0 -16
- package/src/components/pricing-cards/new-pricing-card.js +0 -43
- package/src/components/pricing-cards/new-pricing-card.stories.js +0 -424
- package/src/components/pricing-cards/new-pricing.css.js +0 -75
- package/src/components/pricing-cards/pricing-card-actions.css.js +0 -12
- package/src/components/pricing-cards/pricing-card-actions.js +0 -72
- package/src/components/pricing-cards/pricing-card-container.css.js +0 -42
- package/src/components/pricing-cards/pricing-card-container.js +0 -38
- package/src/components/pricing-cards/pricing-card-header.css.js +0 -83
- package/src/components/pricing-cards/pricing-card-header.js +0 -68
- package/src/components/pricing-cards/pricing-card-pricing.css.js +0 -93
- package/src/components/pricing-cards/pricing-card-pricing.js +0 -117
- package/src/components/pricing-cards/pricing-card-show-more.css.js +0 -30
- package/src/components/pricing-cards/pricing-card-show-more.js +0 -43
- package/src/components/pricing-cards/pricing-card.css.js +0 -661
- package/src/components/pricing-cards/pricing-card.js +0 -842
- package/src/components/pricing-cards/pricing-card.stories.js +0 -14
- package/src/components/pricing-cards/pricing-feature-item.css.js +0 -35
- package/src/components/pricing-cards/pricing-feature-item.js +0 -19
- package/src/components/process-steps/process-steps.css.js +0 -107
- package/src/components/process-steps/process-steps.js +0 -89
- package/src/components/process-steps/process-steps.stories.js +0 -144
- package/src/components/progress/progress.css.js +0 -125
- package/src/components/progress/progress.js +0 -65
- package/src/components/progress/progress.stories.js +0 -83
- package/src/components/quick-answer/quick-answer.css.js +0 -131
- package/src/components/quick-answer/quick-answer.js +0 -64
- package/src/components/quick-answer/quick-answer.stories.js +0 -160
- package/src/components/radio/radio-group.css.js +0 -42
- package/src/components/radio/radio-group.js +0 -89
- package/src/components/radio/radio.css.js +0 -194
- package/src/components/radio/radio.js +0 -269
- package/src/components/radio/radio.stories.js +0 -342
- package/src/components/radio/toggle-radio.js +0 -44
- package/src/components/review/review-grid.css.js +0 -47
- package/src/components/review/review-grid.js +0 -55
- package/src/components/review/review.css.js +0 -55
- package/src/components/review/review.js +0 -67
- package/src/components/review/review.stories.js +0 -228
- package/src/components/section/section.css.js +0 -38
- package/src/components/section/section.js +0 -43
- package/src/components/section/section.stories.js +0 -246
- package/src/components/section-header/section-header.css.js +0 -100
- package/src/components/section-header/section-header.js +0 -79
- package/src/components/section-header/section-header.stories.js +0 -129
- package/src/components/shared/announcer.js +0 -37
- package/src/components/shared/ensemble.css.js +0 -102
- package/src/components/shared/fill-width.css.js +0 -29
- package/src/components/shared/form-control.js +0 -194
- package/src/components/shared/form-field.css.js +0 -260
- package/src/components/shared/prop-vocabulary.js +0 -48
- package/src/components/shared/token-scales.js +0 -384
- package/src/components/skeleton/skeleton.css.js +0 -34
- package/src/components/skeleton/skeleton.js +0 -32
- package/src/components/skeleton/skeleton.stories.js +0 -70
- package/src/components/spinner/spinner.css.js +0 -89
- package/src/components/spinner/spinner.js +0 -60
- package/src/components/spinner/spinner.stories.js +0 -95
- package/src/components/spotlight-section/spotlight-section.css.js +0 -106
- package/src/components/spotlight-section/spotlight-section.js +0 -95
- package/src/components/spotlight-section/spotlight-section.stories.js +0 -259
- package/src/components/stat/stat-highlight.js +0 -75
- package/src/components/stat/stat-tile.js +0 -43
- package/src/components/stat/stat.css.js +0 -147
- package/src/components/stat/stat.js +0 -2
- package/src/components/stat/stat.stories.js +0 -92
- package/src/components/switch/switch.css.js +0 -177
- package/src/components/switch/switch.js +0 -99
- package/src/components/switch/switch.stories.js +0 -109
- package/src/components/tab-list/content-switcher.stories.js +0 -189
- package/src/components/tab-list/tab-list.css.js +0 -293
- package/src/components/tab-list/tab-list.js +0 -189
- package/src/components/tab-list/tab-list.stories.js +0 -221
- package/src/components/tabs/tabs.css.js +0 -78
- package/src/components/tabs/tabs.js +0 -232
- package/src/components/tabs/tabs.stories.js +0 -517
- package/src/components/tag/tag.css.js +0 -54
- package/src/components/tag/tag.js +0 -32
- package/src/components/tag/tag.stories.js +0 -126
- package/src/components/terminal/terminal-cursor.js +0 -60
- package/src/components/terminal/terminal-message.css.js +0 -410
- package/src/components/terminal/terminal-message.js +0 -195
- package/src/components/terminal/terminal-message.stories.js +0 -390
- package/src/components/termsOfUse/terms.css.js +0 -56
- package/src/components/termsOfUse/terms.js +0 -145
- package/src/components/termsOfUse/terms.stories.js +0 -230
- package/src/components/textarea/textarea.css.js +0 -51
- package/src/components/textarea/textarea.js +0 -151
- package/src/components/textarea/textarea.stories.js +0 -217
- package/src/components/tooltip/tooltip.css.js +0 -98
- package/src/components/tooltip/tooltip.js +0 -286
- package/src/components/tooltip/tooltip.stories.js +0 -167
- package/src/components/trust-panel/trust-panel.css.js +0 -229
- package/src/components/trust-panel/trust-panel.js +0 -124
- package/src/components/trust-panel/trust-panel.stories.js +0 -234
- package/src/components/ultimate-security-demo.stories.js +0 -431
- package/src/components/video/video.css.js +0 -22
- package/src/components/video/video.js +0 -80
- package/src/components/video/video.stories.js +0 -123
- package/src/components/video-player/video-player.css.js +0 -168
- package/src/components/video-player/video-player.js +0 -178
- package/src/components/video-player/video-player.stories.js +0 -202
- package/src/components/visual-alignment.stories.js +0 -411
- package/src/components/visually-hidden/visually-hidden.css.js +0 -24
- package/src/components/visually-hidden/visually-hidden.js +0 -16
- package/src/components/visually-hidden/visually-hidden.stories.js +0 -56
- package/src/index.js +0 -0
- package/src/tokens/borders.stories.js +0 -339
- package/src/tokens/brand-layer.js +0 -185
- package/src/tokens/brands.stories.js +0 -235
- package/src/tokens/color-responsibilities.stories.js +0 -227
- package/src/tokens/dark-derivation.js +0 -318
- package/src/tokens/dark-findings.js +0 -204
- package/src/tokens/dark-mode.stories.js +0 -207
- package/src/tokens/dimension.stories.js +0 -251
- package/src/tokens/elevation.stories.js +0 -142
- package/src/tokens/focus.stories.js +0 -342
- package/src/tokens/fonts.stories.js +0 -380
- package/src/tokens/motion.stories.js +0 -225
- package/src/tokens/shape.stories.js +0 -277
- package/src/tokens/spacing-rhythm.stories.js +0 -359
- package/src/tokens/spacing.stories.js +0 -228
- package/src/tokens/story-chrome.js +0 -503
- package/src/tokens/surfaces.stories.js +0 -224
- package/src/tokens/text-on-surface.stories.js +0 -164
- package/src/tokens/themes/bitdefender.js +0 -30
- package/src/tokens/themes/contract.js +0 -27
- package/src/tokens/themes/index.js +0 -41
- package/src/tokens/token-map.js +0 -220
- package/src/tokens/token-map.stories.js +0 -257
- package/src/tokens/token-purposes.js +0 -266
- package/src/tokens/tokens-grid.stories.js +0 -421
- package/src/tokens/tokens.css +0 -1808
- package/src/tokens/tokens.js +0 -1869
- package/src/tokens/tokens.stories.js +0 -158
- package/src/tokens/type-ceiling-words.js +0 -299
- package/src/tokens/typography.stories.js +0 -1050
- package/src/tokens/vertical-rhythm.stories.js +0 -224
- package/src/vendor/motion-art/README.md +0 -30
- /package/{src → dist/src}/assets/fonts/IBMPlexMono-Bold.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexMono-BoldItalic.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexMono-Italic.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexMono-Light.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexMono-LightItalic.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexMono-Medium.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexMono-MediumItalic.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexMono-Regular.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexMono-SemiBold.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexMono-SemiBoldItalic.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexSans-Bold.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexSans-BoldItalic.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexSans-Italic.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexSans-Light.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexSans-LightItalic.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexSans-Medium.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexSans-MediumItalic.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexSans-Regular.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexSans-SemiBold.woff2 +0 -0
- /package/{src → dist/src}/assets/fonts/IBMPlexSans-SemiBoldItalic.woff2 +0 -0
- /package/{src → dist/src}/tokens/fonts.css +0 -0
- /package/{src → dist/src}/tokens/layout.css +0 -0
- /package/{src → dist/src}/vendor/motion-art/motion-art-element.js +0 -0
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import { html } from "lit";
|
|
2
|
-
import "./tab-list.js";
|
|
3
|
-
import { contentSwitcherCSS, tabListCSS } from "./tab-list.css.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The Content Switcher is `bd-tab-list` wearing `appearance="switcher"`, so it
|
|
7
|
-
* renders into light DOM like the strip does and needs both sheets in scope —
|
|
8
|
-
* see the note in tab-list.js. Inside a real component you add them to that
|
|
9
|
-
* component's own `static styles` instead of doing this.
|
|
10
|
-
*/
|
|
11
|
-
const withStyles = template => html`
|
|
12
|
-
<style>${tabListCSS.cssText}${contentSwitcherCSS.cssText}</style>
|
|
13
|
-
<div style="font-family: var(--typography-fontFamily-sans);">${template}</div>
|
|
14
|
-
`;
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
title : "Components/Content Switcher",
|
|
18
|
-
tags : ["autodocs"],
|
|
19
|
-
parameters: {
|
|
20
|
-
docs: {
|
|
21
|
-
description: {
|
|
22
|
-
component: `
|
|
23
|
-
**The Content Switcher** is a pill track of mutually exclusive options with the
|
|
24
|
-
selected one on a white pill. Designed in Figma as *Content switcher*
|
|
25
|
-
(node \`311:931\`).
|
|
26
|
-
|
|
27
|
-
### It is an appearance, not its own element
|
|
28
|
-
|
|
29
|
-
It is \`<bd-tab-list appearance="switcher">\`. Everything underneath —
|
|
30
|
-
\`role="tablist"\`, \`role="tab"\`, \`aria-selected\`, the roving \`tabindex\` and the
|
|
31
|
-
Arrow/Home/End pattern with automatic activation — is the same control the
|
|
32
|
-
underlined strip uses, so a second element would have meant a second copy of
|
|
33
|
-
that keyboard pattern to keep in step. CLAUDE.md's own rule: *when two
|
|
34
|
-
components implement the same visual role, prefer extracting the role over
|
|
35
|
-
spelling it twice.*
|
|
36
|
-
|
|
37
|
-
### Both options are as wide as the longer label
|
|
38
|
-
|
|
39
|
-
This is the part the design is built around: a translation cannot make one
|
|
40
|
-
option wider than the other, because every option is as wide as the **longest**
|
|
41
|
-
label.
|
|
42
|
-
|
|
43
|
-
**CSS alone cannot express that**, and the two obvious declarations were both
|
|
44
|
-
tried and measured on the *Unequal labels* story below:
|
|
45
|
-
|
|
46
|
-
| | result |
|
|
47
|
-
|---|---|
|
|
48
|
-
| \`grid-auto-columns: 1fr\` | 127.21px and 141.79px — unequal, and both narrower than their content, so the labels wrapped to four lines |
|
|
49
|
-
| \`grid-auto-columns: minmax(max-content, 1fr)\` | 78.35px and 248.77px — no wrapping, still unequal |
|
|
50
|
-
|
|
51
|
-
An \`fr\` track needs definite free space to equalise and a shrink-to-fit
|
|
52
|
-
container has none; once the width *is* definite, \`fr\` splits it evenly rather
|
|
53
|
-
than matching the widest. Hug, equal, and equal-to-the-widest cannot all come
|
|
54
|
-
from one grid declaration.
|
|
55
|
-
|
|
56
|
-
So the width is measured. \`_sizeSwitcherOptions\` in tab-list.js reads the
|
|
57
|
-
widest option after each render and publishes it as
|
|
58
|
-
\`--bd-switcher-option-width\`, which \`grid-auto-columns\` consumes; it clears
|
|
59
|
-
the property before measuring, so the track can shrink again when labels get
|
|
60
|
-
shorter, and it re-measures once \`document.fonts.ready\` settles, because a
|
|
61
|
-
width measured on a fallback face does not match IBM Plex.
|
|
62
|
-
|
|
63
|
-
Figma cannot express it either: in the file one option hugs and the other is
|
|
64
|
-
fixed at the same width, which is equal at this text and stops being equal as
|
|
65
|
-
soon as a label changes length. The code carries the rule; the file carries a
|
|
66
|
-
snapshot of it.
|
|
67
|
-
|
|
68
|
-
### Usage
|
|
69
|
-
|
|
70
|
-
\`\`\`js
|
|
71
|
-
import "@repobit/dex-system-design/tab-list";
|
|
72
|
-
import { tabListCSS, contentSwitcherCSS } from "@repobit/dex-system-design/tab-list-css";
|
|
73
|
-
|
|
74
|
-
static styles = [tabListCSS, contentSwitcherCSS, myComponentCSS];
|
|
75
|
-
\`\`\`
|
|
76
|
-
|
|
77
|
-
\`\`\`js
|
|
78
|
-
html\`
|
|
79
|
-
<bd-tab-list
|
|
80
|
-
appearance="switcher"
|
|
81
|
-
label="Plan type"
|
|
82
|
-
.tabs=\${[{ label: "Individual" }, { label: "Family" }]}
|
|
83
|
-
.selected=\${0}
|
|
84
|
-
@bd-tab-select=\${e => (this.plan = e.detail.index)}
|
|
85
|
-
></bd-tab-list>
|
|
86
|
-
\`
|
|
87
|
-
\`\`\`
|
|
88
|
-
|
|
89
|
-
### Accessibility
|
|
90
|
-
|
|
91
|
-
\`label\` becomes the \`aria-label\` on the \`tablist\` and is not optional in
|
|
92
|
-
practice — without it a screen reader announces a tab list with no name. The
|
|
93
|
-
selected option is the only one in the tab order; arrow keys move between them
|
|
94
|
-
and select in one step.
|
|
95
|
-
|
|
96
|
-
The unselected label is white on \`--color-action-primary\`, which measures
|
|
97
|
-
**4.53:1** — it passes the 4.5:1 minimum for 16px/500 text with very little to
|
|
98
|
-
spare. CLAUDE.md names blue-500 as the step with no headroom, so if this track
|
|
99
|
-
ever needs to sit on a tint, re-measure before assuming it still passes.
|
|
100
|
-
`
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
const switcher = (tabs, selected = 0, label = "Plan type") => withStyles(html`
|
|
107
|
-
<bd-tab-list
|
|
108
|
-
appearance="switcher"
|
|
109
|
-
label=${label}
|
|
110
|
-
.tabs=${tabs}
|
|
111
|
-
.selected=${selected}
|
|
112
|
-
></bd-tab-list>
|
|
113
|
-
`);
|
|
114
|
-
|
|
115
|
-
export const Default = {
|
|
116
|
-
name : "Default",
|
|
117
|
-
render : () => switcher([{ label: "Individual" }, { label: "Family" }], 0),
|
|
118
|
-
parameters: {
|
|
119
|
-
docs: { description: { story: "The design as drawn: the first option selected." } }
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
export const SecondSelected = {
|
|
124
|
-
name : "Second selected",
|
|
125
|
-
render : () => switcher([{ label: "Individual" }, { label: "Family" }], 1),
|
|
126
|
-
parameters: {
|
|
127
|
-
docs: {
|
|
128
|
-
description: {
|
|
129
|
-
story: "The other variant in the Figma set. Only the pill and the ink move — "
|
|
130
|
-
+ "both labels stay at the action-label weight, so nothing reflows on switch."
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export const UnequalLabels = {
|
|
137
|
-
name : "Unequal labels",
|
|
138
|
-
render : () => switcher([{ label: "One" }, { label: "A considerably longer label" }], 0),
|
|
139
|
-
parameters: {
|
|
140
|
-
docs: {
|
|
141
|
-
description: {
|
|
142
|
-
story: "The equal-width rule under load. \"One\" is far shorter than its "
|
|
143
|
-
+ "sibling and still occupies exactly the same width, which is what makes "
|
|
144
|
-
+ "the control safe to translate. Measure both options in this story rather "
|
|
145
|
-
+ "than the one above — in Default the two labels are close enough that a "
|
|
146
|
-
+ "plain flex row would look almost the same."
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
export const ThreeOptions = {
|
|
153
|
-
name : "Three options",
|
|
154
|
-
render : () => switcher([{ label: "Monthly" }, { label: "Yearly" }, { label: "Lifetime" }], 1),
|
|
155
|
-
parameters: {
|
|
156
|
-
docs: {
|
|
157
|
-
description: {
|
|
158
|
-
story: "Nothing in the control assumes two. The Figma component is drawn with "
|
|
159
|
-
+ "two because that is what pricing needs; the grid adds a column per option "
|
|
160
|
-
+ "and they all stay equal."
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
export const LongestLabelDrivesBoth = {
|
|
167
|
-
name : "In a narrow container",
|
|
168
|
-
render: () => withStyles(html`
|
|
169
|
-
<div style="width: 320px; outline: 1px dashed var(--color-border-subtle); padding: var(--spacing-16);">
|
|
170
|
-
<bd-tab-list
|
|
171
|
-
appearance="switcher"
|
|
172
|
-
label="Plan type"
|
|
173
|
-
.tabs=${[{ label: "Individual" }, { label: "Family" }]}
|
|
174
|
-
.selected=${0}
|
|
175
|
-
></bd-tab-list>
|
|
176
|
-
</div>
|
|
177
|
-
`),
|
|
178
|
-
parameters: {
|
|
179
|
-
docs: {
|
|
180
|
-
description: {
|
|
181
|
-
story: "The track hugs its content rather than filling its parent, so it does "
|
|
182
|
-
+ "not stretch in a wide column. At 320px both options plus the track "
|
|
183
|
-
+ "padding still fit — measured, the pair comes to 256px — which is why the "
|
|
184
|
-
+ "switcher holds its 12/24 option padding below `sm` instead of taking the "
|
|
185
|
-
+ "strip's narrower step."
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
};
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
import { css, unsafeCSS } from "lit";
|
|
2
|
-
/* unsafeCSS is how a Lit css`` template accepts a computed string. The
|
|
3
|
-
value is not arbitrary: below() resolves a name from the closed
|
|
4
|
-
breakpoint set and throws on anything else, so the only strings that
|
|
5
|
-
reach here are the ones the scale produced. */
|
|
6
|
-
import { below } from "../shared/token-scales.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Base styling for <bd-tab-list>.
|
|
10
|
-
*
|
|
11
|
-
* The element renders into light DOM (see tab-list.js), so this sheet is not
|
|
12
|
-
* applied automatically — a consumer adds it to its own `static styles` ahead
|
|
13
|
-
* of its overrides:
|
|
14
|
-
*
|
|
15
|
-
* static styles = [tabListCSS, myComponentCSS];
|
|
16
|
-
*
|
|
17
|
-
* Everything that varies between the sections that use a tab strip is a custom
|
|
18
|
-
* property, so an override is a token change rather than a re-declaration of
|
|
19
|
-
* the whole button.
|
|
20
|
-
*/
|
|
21
|
-
export const tabListCSS = css`
|
|
22
|
-
/* The element is a pass-through wrapper: the strip itself stays the flex/grid
|
|
23
|
-
item it was before the extraction, so surrounding layout is unaffected. */
|
|
24
|
-
bd-tab-list {
|
|
25
|
-
display: contents;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.bd-tabs-container {
|
|
29
|
-
display: inline-flex;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
flex-wrap: wrap;
|
|
32
|
-
border-bottom: var(--border-width-1) solid var(--bd-tab-border-color, var(--color-border-container));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.bd-tab-button {
|
|
36
|
-
display: inline-flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
justify-content: center;
|
|
39
|
-
gap: var(--bd-tab-gap, var(--spacing-8));
|
|
40
|
-
background: none;
|
|
41
|
-
border: none;
|
|
42
|
-
padding: var(--bd-tab-padding, var(--spacing-10) var(--spacing-16));
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
position: relative;
|
|
45
|
-
color: var(--bd-tab-color, var(--color-text-brand));
|
|
46
|
-
font-family: var(--typography-fontFamily-sans);
|
|
47
|
-
/* body-regular, the same role bd-anchor-nav's and bd-page-switcher's items
|
|
48
|
-
resolve through.
|
|
49
|
-
|
|
50
|
-
This was body-large at semibold -- 18px/600 -- with no leading declared
|
|
51
|
-
at all, on the argument that a tab's type is a control's rather than a
|
|
52
|
-
text role's. The wayfinding family review settled it the other way: all
|
|
53
|
-
three of these components are labels with an action attached, they mark
|
|
54
|
-
the current one the same way, and there was no reason for one of them to
|
|
55
|
-
be a size and a weight apart. At 16/1.5 the tab box is 10 + 24 + 10, so
|
|
56
|
-
all three now measure 44px.
|
|
57
|
-
|
|
58
|
-
The leading is declared either way, and that part was a defect on its
|
|
59
|
-
own. An 18px label sat on IBM Plex Sans's own metric while the nav bars
|
|
60
|
-
beside it sat on a declared 24px -- and a leading nobody declares is the
|
|
61
|
-
blind spot neither gate can see: lint:tokens needs a DECLARED value to
|
|
62
|
-
report, and typography coverage only fails on multi-line text, which a
|
|
63
|
-
single-line tab label never is. */
|
|
64
|
-
font-size: var(--bd-tab-font-size, var(--typography-body-regular-fontSize));
|
|
65
|
-
line-height: var(--bd-tab-line-height, var(--typography-body-regular-lineHeight));
|
|
66
|
-
font-weight: var(--bd-tab-font-weight, var(--typography-body-regular-fontWeight));
|
|
67
|
-
transition: color var(--transition-duration-fast) var(--transition-easing-smooth);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.bd-tab-button::after {
|
|
71
|
-
content: "";
|
|
72
|
-
height: var(--bd-tab-underline-height, var(--indicator-underline-height));
|
|
73
|
-
background: var(--bd-tab-underline-color, var(--indicator-color));
|
|
74
|
-
position: absolute;
|
|
75
|
-
left: 0;
|
|
76
|
-
bottom: 0;
|
|
77
|
-
/* Full width, scaled to nothing at rest and grown with scale, as
|
|
78
|
-
bd-pagination-dots grows its fill: the compositor draws it, where the
|
|
79
|
-
width transition that stood here re-laid the line out every frame. It
|
|
80
|
-
grows from the inline start. :dir() on the button rather than :host(),
|
|
81
|
-
because the stories use this sheet at document scope, where :host()
|
|
82
|
-
matches nothing. */
|
|
83
|
-
width: 100%;
|
|
84
|
-
scale: 0 1;
|
|
85
|
-
transform-origin: left center;
|
|
86
|
-
transition: scale var(--bd-tab-underline-duration, var(--indicator-underline-duration))
|
|
87
|
-
var(--indicator-underline-easing);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.bd-tab-button:dir(rtl)::after {
|
|
91
|
-
transform-origin: right center;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/* The transition two rules up had nothing to animate on pointer: this sheet
|
|
95
|
-
declared a colour transition and then no :hover rule anywhere, so a tab
|
|
96
|
-
was the one control in the package that gave no feedback under the
|
|
97
|
-
cursor.
|
|
98
|
-
|
|
99
|
-
action/primary-active is the step this system already uses for an
|
|
100
|
-
interactive element under the pointer -- bd-link's :hover and the anchor
|
|
101
|
-
nav's engaged dropdown option both resolve to it -- and it is a step
|
|
102
|
-
darker than the resting --color-text-brand, so the change is visible
|
|
103
|
-
without becoming the selected ink. Excluding the selected tab keeps its
|
|
104
|
-
text/primary from moving under the cursor.
|
|
105
|
-
|
|
106
|
-
Selected is read off aria-selected, the attribute the tab already
|
|
107
|
-
carries for a screen reader, rather than a class kept in step with it:
|
|
108
|
-
what is drawn and what is announced cannot disagree. */
|
|
109
|
-
.bd-tab-button:hover:not([aria-selected="true"]) {
|
|
110
|
-
color: var(--color-action-primary-active);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.bd-tab-button[aria-selected="true"]::after {
|
|
114
|
-
scale: 1;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.bd-tab-button[aria-selected="true"] {
|
|
118
|
-
color: var(--bd-tab-color-selected, var(--color-text-primary));
|
|
119
|
-
/* no role: the weight that marks the current item -- a state or modifier
|
|
120
|
-
weight, not a text-content type. See button.css.js's .button--bold for
|
|
121
|
-
the argument, and bd-link's current link, which is the same 700 on
|
|
122
|
-
the same job in the other two components of this family. The tab used to
|
|
123
|
-
carry semibold at rest AND selected, so its weight said nothing about
|
|
124
|
-
which item you were on -- colour and the indicator carried it alone. */
|
|
125
|
-
font-weight: var(--bd-tab-font-weight-selected, var(--typography-fontWeight-bold));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.bd-tab-button:focus-visible {
|
|
129
|
-
/* the one focus ring — see Foundations/Focus */
|
|
130
|
-
/* forced-colors mode does not paint box-shadow, so the ring
|
|
131
|
-
vanishes there; it does paint an outline, in a system colour. This one
|
|
132
|
-
is transparent everywhere else, and the offset lands it on the ring's
|
|
133
|
-
outer band. */
|
|
134
|
-
outline: var(--border-width-2) solid transparent;
|
|
135
|
-
outline-offset: var(--focus-outline-offset);
|
|
136
|
-
box-shadow: var(--focus-outline-primary);
|
|
137
|
-
border-radius: var(--focus-outline-radius);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/* Icon sizing is deliberately not defaulted here: the two sections that use
|
|
141
|
-
icons size them differently and neither value has a dimension token, so
|
|
142
|
-
each keeps its own rule rather than this atom inventing a size. */
|
|
143
|
-
|
|
144
|
-
.bd-tab-label {
|
|
145
|
-
pointer-events: none;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
@media (prefers-reduced-motion: reduce) {
|
|
149
|
-
.bd-tab-button,
|
|
150
|
-
.bd-tab-button::after {
|
|
151
|
-
transition: none;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/* The underline is a background, and forced colours repaint every
|
|
156
|
-
background as Canvas, so the selected tab lost its line and kept only
|
|
157
|
-
its weight. It opts out and draws in Highlight, the system colour for a
|
|
158
|
-
selected thing. */
|
|
159
|
-
@media (forced-colors: active) {
|
|
160
|
-
.bd-tab-button::after {
|
|
161
|
-
forced-color-adjust: none;
|
|
162
|
-
background: Highlight;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/* Narrower than sm. A media condition cannot read a custom property, so
|
|
167
|
-
below() interpolates the value; 600px was on no scale at all, and the
|
|
168
|
-
576px that replaced it still matched at exactly 576px, where sm begins. */
|
|
169
|
-
@media ${unsafeCSS(below('sm'))} {
|
|
170
|
-
.bd-tabs-container {
|
|
171
|
-
gap: var(--spacing-4);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.bd-tab-button {
|
|
175
|
-
padding: var(--bd-tab-padding-mobile, var(--spacing-8) var(--spacing-12));
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
`;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
/* ---- appearance="switcher": the Content Switcher --------------------------
|
|
182
|
-
Figma: Content switcher, node 311:931. Every value below is the one the
|
|
183
|
-
component carries there, and the geometry reconciles: label 24 tall + 12/24
|
|
184
|
-
padding = a 48px option, + 4px track padding top and bottom = 56, which is
|
|
185
|
-
the frame height. "Individual" at 16/500 measures 75, + 24 + 24 = the 123px
|
|
186
|
-
option, and 4 + 123 + 4 + 123 + 4 = the 258px track.
|
|
187
|
-
|
|
188
|
-
THE EQUAL-WIDTH RULE IS THE POINT, and CSS expresses it where Figma cannot.
|
|
189
|
-
The design asks for both options to be as wide as the LONGER label so a
|
|
190
|
-
translation cannot make one tab bigger than the other. In the file one
|
|
191
|
-
option HUGs and the other is FIXED at the same width, which is equal at this
|
|
192
|
-
text and stops being equal the moment a label changes length. An auto-sized
|
|
193
|
-
inline grid whose columns are 1fr sizes every column to the widest column's
|
|
194
|
-
max-content, so the track still hugs its content AND the two options stay
|
|
195
|
-
identical -- which is the stated intent rather than a snapshot of it.
|
|
196
|
-
|
|
197
|
-
The selected option is marked by the white pill alone. The base sheet moves
|
|
198
|
-
the selected tab to bold, and that is right for an underlined strip where
|
|
199
|
-
weight and the indicator carry the state together; here the fill carries it,
|
|
200
|
-
so both weights stay at the action-label step and the label does not reflow
|
|
201
|
-
when you switch. That is also why every override here goes through the
|
|
202
|
-
--bd-tab-* custom properties the base sheet exposes rather than
|
|
203
|
-
re-declaring the button. */
|
|
204
|
-
export const contentSwitcherCSS = css`
|
|
205
|
-
.bd-tabs-container--switcher {
|
|
206
|
-
display: inline-grid;
|
|
207
|
-
grid-auto-flow: column;
|
|
208
|
-
/* minmax(max-content, 1fr), NOT 1fr. Measured on the Unequal labels story:
|
|
209
|
-
a bare 1fr gave 127.21px and 141.79px -- two unequal columns, both
|
|
210
|
-
narrower than their content, so the labels wrapped to four lines. An fr
|
|
211
|
-
track under a shrink-to-fit container does not equalise to the widest
|
|
212
|
-
sibling, which is the assumption that was wrong.
|
|
213
|
-
.
|
|
214
|
-
minmax(max-content, 1fr) was the next attempt and gave 78.35 and 248.77
|
|
215
|
-
-- each column at its own max-content, still unequal. Once the width IS
|
|
216
|
-
definite an fr track splits it evenly instead, which is a different
|
|
217
|
-
wrong answer. There is no grid declaration that gives all three of hug,
|
|
218
|
-
equal, and equal-to-the-widest.
|
|
219
|
-
.
|
|
220
|
-
So the width arrives measured: _sizeSwitcherOptions in tab-list.js
|
|
221
|
-
publishes the widest option's width and this reads it. max-content is
|
|
222
|
-
the fallback for the frame before the first measurement, which is also
|
|
223
|
-
what keeps the geometry right if the property is ever absent -- and it
|
|
224
|
-
is a component-local property, the one place CLAUDE.md allows a
|
|
225
|
-
fallback. */
|
|
226
|
-
grid-auto-columns: var(--bd-switcher-option-width, max-content);
|
|
227
|
-
gap: var(--spacing-4);
|
|
228
|
-
padding: var(--spacing-4);
|
|
229
|
-
border-bottom: none;
|
|
230
|
-
border-radius: var(--radius-full);
|
|
231
|
-
background: var(--color-action-primary);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.bd-tabs-container--switcher .bd-tab-button {
|
|
235
|
-
/* the action-label step, which is what a button's label carries */
|
|
236
|
-
--bd-tab-font-weight: var(--typography-control-label-large-fontWeight);
|
|
237
|
-
--bd-tab-font-weight-selected: var(--typography-control-label-large-fontWeight);
|
|
238
|
-
--bd-tab-color: var(--color-brand-on-fill); /* on the brand track */
|
|
239
|
-
--bd-tab-color-selected: var(--color-text-primary);
|
|
240
|
-
--bd-tab-padding: var(--spacing-12) var(--spacing-24);
|
|
241
|
-
/* held at the same padding below sm: the base sheet drops to 8/12 there,
|
|
242
|
-
which would take the pill off the 48px option the design specifies, and
|
|
243
|
-
two 123px options plus the track padding still fit a 375px viewport. */
|
|
244
|
-
--bd-tab-padding-mobile: var(--spacing-12) var(--spacing-24);
|
|
245
|
-
border-radius: var(--radius-full);
|
|
246
|
-
/* An option is a control label, so it is one line by definition. The base
|
|
247
|
-
sheet lets a tab wrap, which is right for a strip that reflows; here a
|
|
248
|
-
wrap would break the pill geometry the design specifies. */
|
|
249
|
-
white-space: nowrap;
|
|
250
|
-
transition: color var(--transition-duration-fast) var(--transition-easing-smooth),
|
|
251
|
-
background-color var(--transition-duration-fast) var(--transition-easing-smooth);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.bd-tabs-container--switcher .bd-tab-button[aria-selected="true"] {
|
|
255
|
-
background: var(--color-surface-default);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/* The underline belongs to the other appearance. Left as display:none rather
|
|
259
|
-
than content:none so the base rule's scale transition has nothing to
|
|
260
|
-
animate either. */
|
|
261
|
-
.bd-tabs-container--switcher .bd-tab-button::after {
|
|
262
|
-
display: none;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/* The base hover goes to action/primary-active, a darker blue, which on this
|
|
266
|
-
blue track would be close to invisible and is the wrong direction anyway.
|
|
267
|
-
The unselected option is already white, so the pointer affordance is the
|
|
268
|
-
pill appearing under it -- white at 12%, which reads on blue-500 without
|
|
269
|
-
competing with the selected option's solid white. */
|
|
270
|
-
.bd-tabs-container--switcher .bd-tab-button:hover:not([aria-selected="true"]) {
|
|
271
|
-
color: var(--color-brand-on-fill);
|
|
272
|
-
background: var(--color-border-container-inverse);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
@media (prefers-reduced-motion: reduce) {
|
|
276
|
-
.bd-tabs-container--switcher .bd-tab-button {
|
|
277
|
-
transition: none;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/* The pill is the whole of the selected state here, and forced colours
|
|
282
|
-
repaint it -- and the track under it -- as Canvas: every option read the
|
|
283
|
-
same. The selected one opts out into the system's selected pair. */
|
|
284
|
-
@media (forced-colors: active) {
|
|
285
|
-
.bd-tabs-container--switcher .bd-tab-button[aria-selected="true"] {
|
|
286
|
-
forced-color-adjust: none;
|
|
287
|
-
background: Highlight;
|
|
288
|
-
color: HighlightText;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
`;
|
|
292
|
-
|
|
293
|
-
export default tabListCSS;
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import { LitElement, html, nothing } from "lit";
|
|
2
|
-
// Installs the design tokens into document scope; see src/tokens/tokens.js
|
|
3
|
-
import "../../tokens/tokens.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The tab strip on its own — the row of buttons, the selected underline, and
|
|
7
|
-
* the WAI-ARIA tabs keyboard pattern. It owns no panel and no layout; the
|
|
8
|
-
* section that uses it decides what a panel is and how the page around it is
|
|
9
|
-
* arranged.
|
|
10
|
-
*
|
|
11
|
-
* ## Light DOM, on purpose
|
|
12
|
-
*
|
|
13
|
-
* `aria-controls` and `aria-labelledby` are IDREFs, and an IDREF does not
|
|
14
|
-
* resolve across a shadow boundary. A tab inside this element's shadow root
|
|
15
|
-
* therefore could not point at a panel living in the consumer's shadow root.
|
|
16
|
-
* Rendering into light DOM keeps the buttons in the same node tree as the
|
|
17
|
-
* panel, so the wiring is real rather than decorative.
|
|
18
|
-
*
|
|
19
|
-
* The consequence is that `static styles` would never apply. Import
|
|
20
|
-
* `tabListCSS` from ./tab-list.css.js and add it to the consuming component's
|
|
21
|
-
* own `static styles` instead.
|
|
22
|
-
*
|
|
23
|
-
* ## Two appearances, one control
|
|
24
|
-
*
|
|
25
|
-
* `appearance="switcher"` draws the Content Switcher: a pill track with the
|
|
26
|
-
* selected option on a white pill. It is a skin rather than its own element
|
|
27
|
-
* because everything below it -- role="tablist", role="tab", aria-selected,
|
|
28
|
-
* the roving tabindex and the Arrow/Home/End pattern with automatic
|
|
29
|
-
* activation -- is identical, and the light-DOM decision above is the whole
|
|
30
|
-
* reason this element exists. A separate <bd-content-switcher> would have had
|
|
31
|
-
* to re-solve the IDREF problem and keep a second copy of the keyboard
|
|
32
|
-
* pattern in step with this one.
|
|
33
|
-
*
|
|
34
|
-
* Storybook lists it as Components/Content Switcher so it is findable by the
|
|
35
|
-
* name it was designed under.
|
|
36
|
-
*/
|
|
37
|
-
export class BdTabList extends LitElement {
|
|
38
|
-
static properties = {
|
|
39
|
-
tabs : { type: Array },
|
|
40
|
-
selected : { type: Number, reflect: true },
|
|
41
|
-
label : { type: String },
|
|
42
|
-
panelId : { type: String, attribute: "panel-id" },
|
|
43
|
-
idPrefix : { type: String, attribute: "id-prefix" },
|
|
44
|
-
/**
|
|
45
|
-
* The skin. Omitted gives the underlined strip this element has always
|
|
46
|
-
* drawn; "switcher" gives the pill-track content switcher. It is an
|
|
47
|
-
* appearance and not a second element on purpose -- see the note above
|
|
48
|
-
* the class for why.
|
|
49
|
-
*/
|
|
50
|
-
appearance: { type: String, reflect: true }
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
// See the note above: light DOM is what makes the ARIA wiring work.
|
|
54
|
-
createRenderRoot() {
|
|
55
|
-
return this;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
constructor() {
|
|
59
|
-
super();
|
|
60
|
-
this.tabs = [];
|
|
61
|
-
this.selected = 0;
|
|
62
|
-
this.label = "";
|
|
63
|
-
this.panelId = "";
|
|
64
|
-
this.idPrefix = "bd-tab";
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
tabId(index) {
|
|
68
|
-
return `${this.idPrefix}-${index}`;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
_select(index, { focus = false } = {}) {
|
|
72
|
-
if (index === this.selected) return;
|
|
73
|
-
this.selected = index;
|
|
74
|
-
this.dispatchEvent(new CustomEvent("bd-tab-select", {
|
|
75
|
-
detail : { index },
|
|
76
|
-
bubbles : true,
|
|
77
|
-
composed: true
|
|
78
|
-
}));
|
|
79
|
-
if (focus) this.updateComplete.then(() => this._focusSelected());
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* The switcher's equal-width rule, which CSS alone cannot express.
|
|
84
|
-
*
|
|
85
|
-
* The design asks for every option to be as wide as the LONGEST label, so a
|
|
86
|
-
* translation cannot make one option wider than another. That needs three
|
|
87
|
-
* things at once -- the track hugs its content, the columns are equal, and
|
|
88
|
-
* the equal width is the widest option's -- and no grid declaration gives
|
|
89
|
-
* all three. Measured on the Unequal labels story: `1fr` produced 127.21 and
|
|
90
|
-
* 141.79 and wrapped both labels, and `minmax(max-content, 1fr)` produced
|
|
91
|
-
* 78.35 and 248.77. Both are correct CSS; an `fr` track needs definite free
|
|
92
|
-
* space to equalise, and a shrink-to-fit container has none -- and once the
|
|
93
|
-
* width IS definite, `fr` splits it evenly rather than matching the widest.
|
|
94
|
-
*
|
|
95
|
-
* So the widest option is measured and published as a custom property the
|
|
96
|
-
* grid reads. The property is cleared first: without that, a re-render after
|
|
97
|
-
* the labels get SHORTER would measure the widths this rule had already
|
|
98
|
-
* equalised and the track could never shrink again.
|
|
99
|
-
*/
|
|
100
|
-
_sizeSwitcherOptions() {
|
|
101
|
-
if (this.appearance !== "switcher") return;
|
|
102
|
-
const track = this.querySelector(".bd-tabs-container");
|
|
103
|
-
const options = [...this.querySelectorAll(".bd-tab-button")];
|
|
104
|
-
if (!track || !options.length) return;
|
|
105
|
-
|
|
106
|
-
track.style.removeProperty("--bd-switcher-option-width");
|
|
107
|
-
const widest = Math.max(...options.map(o => o.getBoundingClientRect().width));
|
|
108
|
-
if (widest > 0) track.style.setProperty("--bd-switcher-option-width", `${widest}px`);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
updated(changed) {
|
|
112
|
-
super.updated(changed);
|
|
113
|
-
this._sizeSwitcherOptions();
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
firstUpdated() {
|
|
117
|
-
/* The measurement is only as good as the font that was loaded when it ran.
|
|
118
|
-
IBM Plex arrives after first paint, and a fallback face has different
|
|
119
|
-
advance widths -- so a switcher measured on the fallback keeps a width
|
|
120
|
-
that no longer matches its own text. One re-measure once the faces are
|
|
121
|
-
in is enough; fonts.ready settles once per document. */
|
|
122
|
-
document.fonts?.ready.then(() => this._sizeSwitcherOptions());
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
_focusSelected() {
|
|
126
|
-
this.querySelector(`#${CSS.escape(this.tabId(this.selected))}`)?.focus();
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Arrow keys move and activate in one step (automatic activation), which is
|
|
131
|
-
* the WAI-ARIA recommendation when revealing a panel is cheap — it is here,
|
|
132
|
-
* the panels are already in the DOM.
|
|
133
|
-
*/
|
|
134
|
-
_onKeydown(event) {
|
|
135
|
-
const last = this.tabs.length - 1;
|
|
136
|
-
if (last < 0) return;
|
|
137
|
-
|
|
138
|
-
/* The arrows follow the strip as it is drawn: on a right-to-left page the
|
|
139
|
-
next tab is to the left, so ArrowLeft moves to it. */
|
|
140
|
-
const rtl = this.matches(":dir(rtl)");
|
|
141
|
-
const key = rtl ? { ArrowRight: "ArrowLeft", ArrowLeft: "ArrowRight" }[event.key] ?? event.key : event.key;
|
|
142
|
-
|
|
143
|
-
let next;
|
|
144
|
-
switch (key) {
|
|
145
|
-
case "ArrowRight": next = this.selected === last ? 0 : this.selected + 1; break;
|
|
146
|
-
case "ArrowLeft": next = this.selected === 0 ? last : this.selected - 1; break;
|
|
147
|
-
case "Home": next = 0; break;
|
|
148
|
-
case "End": next = last; break;
|
|
149
|
-
default: return;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
event.preventDefault();
|
|
153
|
-
this._select(next, { focus: true });
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
render() {
|
|
157
|
-
return html`
|
|
158
|
-
<div
|
|
159
|
-
class="bd-tabs-container ${this.appearance === "switcher" ? "bd-tabs-container--switcher" : ""}"
|
|
160
|
-
role="tablist"
|
|
161
|
-
aria-label=${this.label || nothing}
|
|
162
|
-
@keydown=${this._onKeydown}
|
|
163
|
-
>
|
|
164
|
-
${this.tabs.map((tab, index) => {
|
|
165
|
-
const isSelected = this.selected === index;
|
|
166
|
-
return html`
|
|
167
|
-
<button
|
|
168
|
-
type="button"
|
|
169
|
-
role="tab"
|
|
170
|
-
id=${this.tabId(index)}
|
|
171
|
-
aria-selected=${isSelected ? "true" : "false"}
|
|
172
|
-
aria-controls=${this.panelId || nothing}
|
|
173
|
-
tabindex=${isSelected ? "0" : "-1"}
|
|
174
|
-
class="bd-tab-button"
|
|
175
|
-
@click=${() => this._select(index)}
|
|
176
|
-
>
|
|
177
|
-
${tab.icon
|
|
178
|
-
? html`<img src=${tab.icon} alt=${tab.iconAlt || ""} class="bd-tab-icon" />`
|
|
179
|
-
: ""}
|
|
180
|
-
<span class="bd-tab-label">${tab.content ?? tab.label}</span>
|
|
181
|
-
</button>
|
|
182
|
-
`;
|
|
183
|
-
})}
|
|
184
|
-
</div>
|
|
185
|
-
`;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
customElements.define("bd-tab-list", BdTabList);
|