@repobit/dex-system-design 4.4.0 → 5.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/src/components/cta-banner/cta-banner.css.js +1 -1
  3. package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
  4. package/dist/src/components/cta-banner/cta-banner.d.ts +15 -6
  5. package/dist/src/components/cta-banner/cta-banner.js +14 -11
  6. package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
  7. package/dist/src/components/features-tab/features-tab.css.js +1 -1
  8. package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
  9. package/dist/src/components/features-tab/features-tab.d.ts +1 -0
  10. package/dist/src/components/features-tab/features-tab.js +4 -4
  11. package/dist/src/components/features-tab/features-tab.js.map +1 -1
  12. package/dist/src/components/{pricing-card/pricing-group.css.d.ts → icon-columns-banner/icon-columns-banner-item.css.d.ts} +0 -1
  13. package/dist/src/components/icon-columns-banner/icon-columns-banner-item.css.js +2 -0
  14. package/dist/src/components/icon-columns-banner/icon-columns-banner-item.css.js.map +1 -0
  15. package/dist/src/components/icon-columns-banner/icon-columns-banner-item.d.ts +25 -0
  16. package/dist/src/components/icon-columns-banner/icon-columns-banner-item.js +6 -0
  17. package/dist/src/components/icon-columns-banner/icon-columns-banner-item.js.map +1 -0
  18. package/dist/src/components/icon-columns-banner/icon-columns-banner.css.d.ts +2 -0
  19. package/dist/src/components/icon-columns-banner/icon-columns-banner.css.js +2 -0
  20. package/dist/src/components/icon-columns-banner/icon-columns-banner.css.js.map +1 -0
  21. package/dist/src/components/icon-columns-banner/icon-columns-banner.d.ts +36 -0
  22. package/dist/src/components/icon-columns-banner/icon-columns-banner.js +9 -0
  23. package/dist/src/components/icon-columns-banner/icon-columns-banner.js.map +1 -0
  24. package/dist/src/components/icons/arrow-back.d.ts +1 -0
  25. package/dist/src/components/icons/arrow-back.js +6 -0
  26. package/dist/src/components/icons/arrow-back.js.map +1 -0
  27. package/dist/src/components/icons/icons.d.ts +1 -0
  28. package/dist/src/components/icons/icons.js +1 -1
  29. package/dist/src/components/pricing-card/pricing-card.css.d.ts +1 -0
  30. package/dist/src/components/pricing-card/pricing-card.css.js +1 -1
  31. package/dist/src/components/pricing-card/pricing-card.css.js.map +1 -1
  32. package/dist/src/components/pricing-card/pricing-card.d.ts +65 -49
  33. package/dist/src/components/pricing-card/pricing-card.js +7 -9
  34. package/dist/src/components/pricing-card/pricing-card.js.map +1 -1
  35. package/dist/src/components/pricing-card/pricing-feature-group.css.js +1 -1
  36. package/dist/src/components/pricing-card/pricing-feature-group.css.js.map +1 -1
  37. package/dist/src/components/pricing-card/pricing-feature-group.d.ts +7 -1
  38. package/dist/src/components/pricing-card/pricing-feature-group.js +5 -2
  39. package/dist/src/components/pricing-card/pricing-feature-group.js.map +1 -1
  40. package/dist/src/components/pricing-card/pricing-feature.css.js +1 -1
  41. package/dist/src/components/pricing-card/pricing-feature.css.js.map +1 -1
  42. package/dist/src/components/pricing-card/pricing-price.css.js +1 -1
  43. package/dist/src/components/pricing-card/pricing-price.css.js.map +1 -1
  44. package/dist/src/components/pricing-card/pricing-price.d.ts +31 -2
  45. package/dist/src/components/pricing-card/pricing-price.js +3 -3
  46. package/dist/src/components/pricing-card/pricing-price.js.map +1 -1
  47. package/dist/src/components/shared/prop-vocabulary.js +1 -1
  48. package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
  49. package/dist/src/loader/registry.js +1 -1
  50. package/dist/src/loader/registry.js.map +1 -1
  51. package/package.json +6 -2
  52. package/schemas/component-manifest.json +214 -99
  53. package/schemas/figma-component-map.json +15 -10
  54. package/dist/src/components/pricing-card/pricing-group.css.js +0 -2
  55. package/dist/src/components/pricing-card/pricing-group.css.js.map +0 -1
  56. package/dist/src/components/pricing-card/pricing-group.d.ts +0 -48
  57. package/dist/src/components/pricing-card/pricing-group.js +0 -6
  58. package/dist/src/components/pricing-card/pricing-group.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,40 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.0.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@4.5.0...@repobit/dex-system-design@5.0.0) (2026-11-25)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * **DEX-1000:** bd-pricing-card is replaced by the new card, with its own
11
+ markup (bd-p descriptions, a caption slot, a bd-pricing-price size="lg").
12
+ bd-pricing-group is removed: lay cards out in
13
+ <bd-grid cols="1" cols-md="2" cols-lg="3" item-rows="8">. The v4 codemod and
14
+ the migration guide now write a bd-grid for 3.x's pricing-cards-container.
15
+
16
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17
+
18
+ ### Features
19
+
20
+ * **DEX-1000:** replace bd-pricing-card with the Figma pricing card
21
+
22
+ ### Bug Fixes
23
+
24
+ * **DEX-1000:** regenerate the figma map and the element-api baseline as CI does
25
+
26
+
27
+ ## [4.5.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@4.4.0...@repobit/dex-system-design@4.5.0) (2026-11-25)
28
+
29
+ ### Features
30
+
31
+ * **DEX-29434:** split columns
32
+
33
+ ### Bug Fixes
34
+
35
+ * **DEX-29434:** clear remaining design-system checks
36
+ * **DEX-29434:** mark icon-columns-banner measures as not the column
37
+ * **DEX-29434:** satisfy ensemble, token and breakpoint gates for icon-columns-banner
38
+
39
+
6
40
  ## [4.4.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@4.3.3...@repobit/dex-system-design@4.4.0) (2026-11-25)
7
41
 
8
42
  ### Features
@@ -1,2 +1,2 @@
1
- import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{isolation:isolate;font-family:var(--typography-fontFamily-sans);background:linear-gradient(160deg, var(--color-surface-brand) 0%, var(--color-brand-700) 48%, var(--color-brand-950) 100%);display:block;position:relative}:host:before{content:"";z-index:var(--z-below);pointer-events:none;background:radial-gradient(1200px 600px at 78% -10%, var(--color-brand-400) 0%, transparent 55%);position:absolute;inset:0}.bd-ctabanner-container{padding-block:var(--spacing-64);box-sizing:border-box;text-align:center;align-items:center;gap:var(--spacing-16);flex-direction:column;display:flex}.bd-ctabanner-footer{margin-top:var(--spacing-24);align-items:center;gap:var(--spacing-8);text-align:center;flex-direction:column;display:flex}.bd-ctabanner-title[hidden],.bd-ctabanner-description[hidden],.bd-ctabanner-cta[hidden],.bd-ctabanner-caption[hidden],.bd-ctabanner-footer[hidden]{display:none}.bd-ctabanner-title{max-width:800px}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h2-fontSize);--bd-heading-font-weight:var(--typography-heading-h2-fontWeight);--bd-heading-line-height:var(--typography-heading-h2-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h2-letterSpacing);--bd-heading-font-family:var(--typography-heading-h2-fontFamily);--bd-heading-color:var(--color-brand-on-fill);--bd-paragraph-color:var(--color-brand-on-fill);margin:0}.bd-ctabanner-description{margin-bottom:var(--spacing-16);max-width:640px}::slotted(bd-p[slot=description]){--bd-paragraph-font-size:var(--typography-body-large-fontSize);--bd-paragraph-font-weight:var(--typography-body-large-fontWeight);--bd-paragraph-line-height:var(--typography-body-large-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-large-letterSpacing);--bd-heading-color:var(--color-brand-on-fill);--bd-paragraph-color:var(--color-brand-on-fill)}.bd-ctabanner-cta{justify-content:center;gap:var(--spacing-16);flex-wrap:wrap;display:flex}.bd-ctabanner-caption{margin:var(--spacing-8) 0 0;font-family:var(--typography-fontFamily-mono);font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing);color:var(--color-brand-on-fill)}@media (width<576px){.bd-ctabanner-container{padding-block:var(--spacing-48)}.bd-ctabanner-cta{flex-direction:column;width:100%}}`;export{t as default};
1
+ import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{isolation:isolate;font-family:var(--typography-fontFamily-sans);background:linear-gradient(160deg, var(--color-surface-brand) 0%, var(--color-brand-700) 48%, var(--color-brand-950) 100%);display:block;position:relative}:host([appearance=brand-soft]){color-scheme:light;background:var(--status-brand-surface)}:host([appearance=brand-deep]){background:var(--color-brand-700)}:host:before{content:"";z-index:var(--z-below);pointer-events:none;background:radial-gradient(1200px 600px at 78% -10%, var(--color-brand-400) 0%, transparent 55%);position:absolute;inset:0}:host([appearance=brand-soft]):before,:host([appearance=brand-deep]):before,:host([width=contained]):before{display:none}:host([width=contained]){background:0 0}.bd-ctabanner-container{padding-block:var(--spacing-64);box-sizing:border-box;text-align:center;align-items:center;gap:var(--spacing-16);flex-direction:column;display:flex}:host([width=contained]) .bd-ctabanner-container{box-sizing:border-box;width:min(calc(100% - var(--spacing-32)), var(--content-width-max));max-width:var(--content-width-max);border-radius:var(--shape-radius-2xl);background:var(--color-surface-brand);margin-inline:auto}:host([width=contained][appearance=brand-soft]) .bd-ctabanner-container{background:var(--status-brand-surface)}:host([width=contained][appearance=brand-deep]) .bd-ctabanner-container{background:var(--color-brand-700)}.bd-ctabanner-footer{margin-top:var(--spacing-24);align-items:center;gap:var(--spacing-8);text-align:center;flex-direction:column;display:flex}.bd-ctabanner-title[hidden],.bd-ctabanner-description[hidden],.bd-ctabanner-cta[hidden],.bd-ctabanner-caption[hidden],.bd-ctabanner-media[hidden],.bd-ctabanner-footer[hidden]{display:none}.bd-ctabanner-media{color:var(--color-brand-on-fill);justify-content:center;display:flex}.bd-ctabanner-media ::slotted(*){display:block}:host([appearance=brand-soft]) .bd-ctabanner-media{color:var(--color-text-primary)}.bd-ctabanner-title{max-width:800px}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h2-fontSize);--bd-heading-font-weight:var(--typography-heading-h2-fontWeight);--bd-heading-line-height:var(--typography-heading-h2-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h2-letterSpacing);--bd-heading-font-family:var(--typography-heading-h2-fontFamily);--bd-heading-color:var(--color-brand-on-fill);--bd-paragraph-color:var(--color-brand-on-fill);margin:0}:host([appearance=brand-soft]) ::slotted(bd-h[slot=title]),:host([appearance=brand-soft]) ::slotted(bd-display[slot=title]){--bd-heading-color:var(--color-text-primary);--bd-paragraph-color:var(--color-text-primary)}.bd-ctabanner-description{margin-bottom:var(--spacing-16);max-width:640px}::slotted(bd-p[slot=description]){--bd-paragraph-font-size:var(--typography-body-large-fontSize);--bd-paragraph-font-weight:var(--typography-body-large-fontWeight);--bd-paragraph-line-height:var(--typography-body-large-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-large-letterSpacing);--bd-heading-color:var(--color-brand-on-fill);--bd-paragraph-color:var(--color-brand-on-fill)}:host([appearance=brand-soft]) ::slotted(bd-p[slot=description]){--bd-heading-color:var(--color-text-primary);--bd-paragraph-color:var(--color-text-primary)}.bd-ctabanner-cta{justify-content:center;gap:var(--spacing-16);flex-wrap:wrap;display:flex}.bd-ctabanner-caption{margin:var(--spacing-8) 0 0;font-family:var(--typography-fontFamily-mono);font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing);color:var(--color-brand-on-fill)}:host([appearance=brand-soft]) .bd-ctabanner-caption{color:var(--color-text-primary)}@media (width<576px){.bd-ctabanner-container{padding-block:var(--spacing-48)}.bd-ctabanner-cta{flex-direction:column;width:100%}}`;export{t as default};
2
2
  //# sourceMappingURL=cta-banner.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cta-banner.css.js","names":["cta_banner_css_default"],"sources":["../../../../src/components/cta-banner/cta-banner.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, bodyRole, headingRole, ink } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n /* the light spot below is drawn behind the copy, inside this box */\n position: relative;\n isolation: isolate;\n font-family: var(--typography-fontFamily-sans);\n /* The band runs full-bleed on the host; the column inside it is\n bd-ensemble. Its ground is the brand fill, --color-surface-brand,\n deepening along the ramp: the ground --color-brand-on-fill is held to,\n and the same in both themes, as a brand band is. */\n background: linear-gradient(160deg, var(--color-surface-brand) 0%, var(--color-brand-700) 48%, var(--color-brand-950) 100%);\n }\n\n /* The light spot at the band's top right: decoration over the ground,\n under the copy. It was the first layer of the host's background, so a\n reading of the band's ground from its first stop -- the theme and brand\n sweeps' -- took brand-400 for the ground under every word, where the\n copy never sits: the spot is centred above the band and mostly outside\n it (Foundations/Text on a surface). */\n :host::before {\n content: \"\";\n position: absolute;\n inset: 0;\n z-index: var(--z-below);\n pointer-events: none;\n background: radial-gradient(1200px 600px at 78% -10%, var(--color-brand-400) 0%, transparent 55%);\n }\n\n .bd-ctabanner-container {\n padding-block: var(--spacing-64);\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n gap: var(--spacing-16);\n }\n .bd-ctabanner-footer {\n margin-top: var(--spacing-24);\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n text-align: center;\n }\n\n /* Each part's box is left out while its slot is empty (cta-banner.ts). The\n footer's used to be hidden by :not(:has(*)), which its own <slot> always\n defeated, so an empty footer kept its 24 above it. */\n .bd-ctabanner-title[hidden],\n .bd-ctabanner-description[hidden],\n .bd-ctabanner-cta[hidden],\n .bd-ctabanner-caption[hidden],\n .bd-ctabanner-footer[hidden] {\n display: none;\n }\n\n .bd-ctabanner-title {\n max-width: 800px;\n }\n\n /* The page's heading, at the page-section role whatever level it chose,\n in the band's ink -- what as=\"h2\" color=\"on-brand\" on the banner's own\n bd-h used to say. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h2\"))}\n ${unsafeCSS(ink(\"on-brand\"))}\n margin: 0;\n }\n\n .bd-ctabanner-description {\n margin-bottom: var(--spacing-16);\n max-width: 640px;\n }\n\n /* Solid on-brand ink, the title's. It was 85% white, translucent so the\n gradient showed through, and recorded as 4.67:1. Measured from\n screenshots of the Default story on 2026-10-29 -- text hidden, the ground\n under the glyph band sampled, the ink composited -- it was 4.07:1 at 375,\n 4.24 at 768 and 4.41 at 1024, at 18px/400 against a 4.5 bar: on a narrow\n screen it wraps up into the gradient's light spot. Nothing under 93%\n white clears that, so it is solid: worst point rgb(18,106,226) at 375,\n 5.02:1.\n .\n bd-p's flow margin is left on, as it was on the banner's own bd-p: with\n the box's 16 and the gap it holds the buttons and the caption where the\n caption's contrast was measured (below). */\n ::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-large\"))}\n ${unsafeCSS(ink(\"on-brand\"))}\n }\n\n .bd-ctabanner-cta {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--spacing-16);\n }\n\n /* The caption is text, so the page writes the words and this box sets\n them: body-small in mono, what <bd-p appearance=\"small\"\n font-family=\"mono\"> drew. */\n .bd-ctabanner-caption {\n margin: var(--spacing-8) 0 0;\n font-family: var(--typography-fontFamily-mono);\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n /* The band's ink, solid, as the description's became. It was that ink\n at 65%, no role, sampled from screenshots where it sat -- 4.92:1 at\n its worst, rgb(0,63,158) at 1600, on 2026-11-04 -- and re-measured\n each time the band's height or copy moved it. Against the band's own\n fill, the ground --color-brand-on-fill is held to under every theme,\n 65% is 2.7:1. Solid, it is that pair's 4.5:1 or more wherever the\n caption lands, under a partner's dark ink as under Bitdefender's white\n (9.5:1 at the worst point above). */\n color: var(--color-brand-on-fill);\n }\n\n @media ${unsafeCSS(below('sm'))} {\n .bd-ctabanner-container {\n padding-block: var(--spacing-48);\n }\n\n .bd-ctabanner-cta {\n flex-direction: column;\n width: 100%;\n }\n }\n`;"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,o5E"}
1
+ {"version":3,"file":"cta-banner.css.js","names":["cta_banner_css_default"],"sources":["../../../../src/components/cta-banner/cta-banner.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, bodyRole, headingRole, ink } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n /* the light spot below is drawn behind the copy, inside this box */\n position: relative;\n isolation: isolate;\n font-family: var(--typography-fontFamily-sans);\n /* The band runs full-bleed on the host; the column inside it is\n bd-ensemble. Its ground is the brand fill, --color-surface-brand,\n deepening along the ramp: the ground --color-brand-on-fill is held to,\n and the same in both themes, as a brand band is. */\n background: linear-gradient(160deg, var(--color-surface-brand) 0%, var(--color-brand-700) 48%, var(--color-brand-950) 100%);\n }\n\n :host([appearance=\"brand-soft\"]) {\n color-scheme: light;\n background: var(--status-brand-surface);\n }\n\n :host([appearance=\"brand-deep\"]) {\n /* no token: a deep brand band, dark in every theme; no role names the\n brand ramp's 700 as a ground */\n background: var(--color-brand-700);\n }\n\n /* The light spot at the band's top right: decoration over the ground,\n under the copy. It was the first layer of the host's background, so a\n reading of the band's ground from its first stop -- the theme and brand\n sweeps' -- took brand-400 for the ground under every word, where the\n copy never sits: the spot is centred above the band and mostly outside\n it (Foundations/Text on a surface). */\n :host::before {\n content: \"\";\n position: absolute;\n inset: 0;\n z-index: var(--z-below);\n pointer-events: none;\n background: radial-gradient(1200px 600px at 78% -10%, var(--color-brand-400) 0%, transparent 55%);\n }\n\n :host([appearance=\"brand-soft\"])::before,\n :host([appearance=\"brand-deep\"])::before,\n :host([width=\"contained\"])::before {\n display: none;\n }\n\n :host([width=\"contained\"]) {\n background: transparent;\n }\n\n .bd-ctabanner-container {\n padding-block: var(--spacing-64);\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n gap: var(--spacing-16);\n }\n\n :host([width=\"contained\"]) .bd-ctabanner-container {\n box-sizing: border-box;\n width: min(calc(100% - var(--spacing-32)), var(--content-width-max));\n /* not the column: a contained surface, inset from the page's edges */\n max-width: var(--content-width-max);\n margin-inline: auto;\n border-radius: var(--shape-radius-2xl);\n background: var(--color-surface-brand);\n }\n\n :host([width=\"contained\"][appearance=\"brand-soft\"]) .bd-ctabanner-container {\n background: var(--status-brand-surface);\n }\n\n :host([width=\"contained\"][appearance=\"brand-deep\"]) .bd-ctabanner-container {\n /* no token: the deep band's ground, as the host's above */\n background: var(--color-brand-700);\n }\n .bd-ctabanner-footer {\n margin-top: var(--spacing-24);\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n text-align: center;\n }\n\n /* Each part's box is left out while its slot is empty (cta-banner.ts). The\n footer's used to be hidden by :not(:has(*)), which its own <slot> always\n defeated, so an empty footer kept its 24 above it. */\n .bd-ctabanner-title[hidden],\n .bd-ctabanner-description[hidden],\n .bd-ctabanner-cta[hidden],\n .bd-ctabanner-caption[hidden],\n .bd-ctabanner-media[hidden],\n .bd-ctabanner-footer[hidden] {\n display: none;\n }\n\n .bd-ctabanner-media {\n display: flex;\n justify-content: center;\n color: var(--color-brand-on-fill);\n }\n\n .bd-ctabanner-media ::slotted(*) {\n display: block;\n }\n\n :host([appearance=\"brand-soft\"]) .bd-ctabanner-media {\n color: var(--color-text-primary);\n }\n\n .bd-ctabanner-title {\n max-width: 800px;\n }\n\n /* The page's heading, at the page-section role whatever level it chose,\n in the band's ink -- what as=\"h2\" color=\"on-brand\" on the banner's own\n bd-h used to say. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h2\"))}\n ${unsafeCSS(ink(\"on-brand\"))}\n margin: 0;\n }\n\n :host([appearance=\"brand-soft\"]) ::slotted(bd-h[slot=\"title\"]),\n :host([appearance=\"brand-soft\"]) ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(ink(\"strong\"))}\n }\n\n .bd-ctabanner-description {\n margin-bottom: var(--spacing-16);\n max-width: 640px;\n }\n\n /* Solid on-brand ink, the title's. It was 85% white, translucent so the\n gradient showed through, and recorded as 4.67:1. Measured from\n screenshots of the Default story on 2026-10-29 -- text hidden, the ground\n under the glyph band sampled, the ink composited -- it was 4.07:1 at 375,\n 4.24 at 768 and 4.41 at 1024, at 18px/400 against a 4.5 bar: on a narrow\n screen it wraps up into the gradient's light spot. Nothing under 93%\n white clears that, so it is solid: worst point rgb(18,106,226) at 375,\n 5.02:1.\n .\n bd-p's flow margin is left on, as it was on the banner's own bd-p: with\n the box's 16 and the gap it holds the buttons and the caption where the\n caption's contrast was measured (below). */\n ::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-large\"))}\n ${unsafeCSS(ink(\"on-brand\"))}\n }\n\n :host([appearance=\"brand-soft\"]) ::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(ink(\"strong\"))}\n }\n\n .bd-ctabanner-cta {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--spacing-16);\n }\n\n /* The caption is text, so the page writes the words and this box sets\n them: body-small in mono, what <bd-p appearance=\"small\"\n font-family=\"mono\"> drew. */\n .bd-ctabanner-caption {\n margin: var(--spacing-8) 0 0;\n font-family: var(--typography-fontFamily-mono);\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n /* The band's ink, solid, as the description's became. It was that ink\n at 65%, no role, sampled from screenshots where it sat -- 4.92:1 at\n its worst, rgb(0,63,158) at 1600, on 2026-11-04 -- and re-measured\n each time the band's height or copy moved it. Against the band's own\n fill, the ground --color-brand-on-fill is held to under every theme,\n 65% is 2.7:1. Solid, it is that pair's 4.5:1 or more wherever the\n caption lands, under a partner's dark ink as under Bitdefender's white\n (9.5:1 at the worst point above). */\n color: var(--color-brand-on-fill);\n }\n\n :host([appearance=\"brand-soft\"]) .bd-ctabanner-caption {\n color: var(--color-text-primary);\n }\n\n @media ${unsafeCSS(below('sm'))} {\n .bd-ctabanner-container {\n padding-block: var(--spacing-48);\n }\n\n .bd-ctabanner-cta {\n flex-direction: column;\n width: 100%;\n }\n }\n`;"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,s3H"}
@@ -1,22 +1,30 @@
1
- import { LitElement } from "lit";
1
+ import { LitElement, type PropertyValues } from "lit";
2
2
  import { SlotController } from "../shared/controller.slot.js";
3
3
  import "../../tokens/tokens.js";
4
4
  import "../h/h.js";
5
5
  import "../p/p.js";
6
+ declare const APPEARANCES: readonly ["brand", "brand-soft", "brand-deep"];
7
+ declare const WIDTHS: readonly ["full", "contained"];
8
+ type Appearance = typeof APPEARANCES[number];
9
+ type Width = typeof WIDTHS[number];
6
10
  /**
7
- * A full-width closing call to action on a brand gradient: a title, a
8
- * supporting line, one or two buttons, and an optional caption underneath.
11
+ * A centred closing call to action: a title, supporting line, one or two
12
+ * buttons, and an optional caption underneath. The surface can be full-width
13
+ * or contained, with optional media above the copy.
9
14
  *
10
15
  * Every word is the page's (ADR 0003): `<bd-h slot="title" as="h2">`,
11
16
  * `<bd-p slot="description">`, `<bd-button slot="actions">` (one or two, in
12
17
  * source order) and `<span slot="caption">`. The page picks the title's
13
18
  * level; the banner sets the title's size (heading-h2), the description's
14
- * (body-large) and the brand band's ink on both. Each part's box is left out
15
- * while its slot is empty.
19
+ * (body-large) and the ink for its appearance. `media` takes an icon or image.
20
+ * Each part's box is left out while its slot is empty.
16
21
  */
17
22
  export declare class BdCtaBanner extends LitElement {
18
23
  static styles: import("lit").CSSResult[];
19
- _slots: SlotController<"title" | "description" | "caption" | "actions" | "footer">;
24
+ appearance: Appearance;
25
+ width: Width;
26
+ _slots: SlotController<"title" | "description" | "caption" | "media" | "actions" | "footer">;
27
+ willUpdate(changed: PropertyValues<this>): void;
20
28
  render(): import("lit-html").TemplateResult<1>;
21
29
  }
22
30
  declare global {
@@ -24,3 +32,4 @@ declare global {
24
32
  "bd-cta-banner": BdCtaBanner;
25
33
  }
26
34
  }
35
+ export {};
@@ -1,14 +1,17 @@
1
- import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as n}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import i from"./cta-banner.css.js";import{LitElement as a,html as o}from"lit";var s=class extends a{constructor(...e){super(...e),this._slots=new n(this,{slots:[`title`,`description`,`actions`,`caption`,`footer`]})}static{this.styles=[r,i]}render(){let e=e=>this._slots.has(e);return o`
2
- <div class="bd-ensemble bd-ctabanner-container">
3
- <div class="bd-ctabanner-title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
4
- <div class="bd-ctabanner-description" ?hidden=${!e(`description`)}><slot name="description"></slot></div>
5
- <div class="bd-ctabanner-cta" ?hidden=${!e(`actions`)}><slot name="actions"></slot></div>
6
- <div class="bd-ctabanner-caption" ?hidden=${!e(`caption`)}><slot name="caption"></slot></div>
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{resolveEnum as t}from"../shared/prop-vocabulary.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as r}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as i}from"../shared/ensemble.css.js";import a from"./cta-banner.css.js";import{LitElement as o,html as s}from"lit";import{property as c}from"lit/decorators.js";var l=[`brand`,`brand-soft`,`brand-deep`],u=[`full`,`contained`],d=class extends o{constructor(...e){super(...e),this.appearance=`brand`,this.width=`full`,this._slots=new r(this,{slots:[`media`,`title`,`description`,`actions`,`caption`,`footer`]})}static{this.styles=[i,a]}willUpdate(e){e.has(`appearance`)&&(this.appearance=t(this.appearance,{allowed:l,fallback:`brand`})),e.has(`width`)&&(this.width=t(this.width,{allowed:u,fallback:`full`}))}render(){let e=e=>this._slots.has(e);return s`
2
+ <div class="bd-ctabanner-surface">
3
+ <div class="bd-ensemble bd-ctabanner-container">
4
+ <div class="bd-ctabanner-media" ?hidden=${!e(`media`)}><slot name="media"></slot></div>
5
+ <div class="bd-ctabanner-title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
6
+ <div class="bd-ctabanner-description" ?hidden=${!e(`description`)}><slot name="description"></slot></div>
7
+ <div class="bd-ctabanner-cta" ?hidden=${!e(`actions`)}><slot name="actions"></slot></div>
8
+ <div class="bd-ctabanner-caption" ?hidden=${!e(`caption`)}><slot name="caption"></slot></div>
7
9
 
8
- <!-- Freeform slot for extra content below the caption -- contact
9
- info, legal disclaimers, links, etc. Empty by default,
10
- collapses to nothing when unused. -->
11
- <div class="bd-ctabanner-footer" ?hidden=${!e(`footer`)}><slot name="footer"></slot></div>
10
+ <!-- Freeform slot for extra content below the caption -- contact
11
+ info, legal disclaimers, links, etc. Empty by default,
12
+ collapses to nothing when unused. -->
13
+ <div class="bd-ctabanner-footer" ?hidden=${!e(`footer`)}><slot name="footer"></slot></div>
14
+ </div>
12
15
  </div>
13
- `}};s=t([e(`bd-cta-banner`)],s);export{s as BdCtaBanner};
16
+ `}};n([c({type:String,reflect:!0})],d.prototype,`appearance`,void 0),n([c({type:String,reflect:!0})],d.prototype,`width`,void 0),d=n([e(`bd-cta-banner`)],d);export{d as BdCtaBanner};
14
17
  //# sourceMappingURL=cta-banner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cta-banner.js","names":["ctaBannerCSS","_decorate","__decorate","cta_banner_css_default","BdCtaBanner","LitElement","_args","SlotController","ensembleCSS","has","name","defineElement"],"sources":["../../../../src/components/cta-banner/cta-banner.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\n/* The atoms the page writes into the banner's title and description. It\n renders neither now, but 3.x's module registered both, and a page\n importing only this module still gets them. */\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport ctaBannerCSS from \"./cta-banner.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\n/**\n * A full-width closing call to action on a brand gradient: a title, a\n * supporting line, one or two buttons, and an optional caption underneath.\n *\n * Every word is the page's (ADR 0003): `<bd-h slot=\"title\" as=\"h2\">`,\n * `<bd-p slot=\"description\">`, `<bd-button slot=\"actions\">` (one or two, in\n * source order) and `<span slot=\"caption\">`. The page picks the title's\n * level; the banner sets the title's size (heading-h2), the description's\n * (body-large) and the brand band's ink on both. Each part's box is left out\n * while its slot is empty.\n */\n@defineElement(\"bd-cta-banner\")\nexport class BdCtaBanner extends LitElement {\n static styles = [ensembleCSS, ctaBannerCSS];\n\n _slots = new SlotController(this, { slots: [\"title\", \"description\", \"actions\", \"caption\", \"footer\"] });\n\n render() {\n const has = (name: \"title\" | \"description\" | \"actions\" | \"caption\" | \"footer\") => this._slots.has(name);\n return html`\n <div class=\"bd-ensemble bd-ctabanner-container\">\n <div class=\"bd-ctabanner-title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"bd-ctabanner-description\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></div>\n <div class=\"bd-ctabanner-cta\" ?hidden=${!has(\"actions\")}><slot name=\"actions\"></slot></div>\n <div class=\"bd-ctabanner-caption\" ?hidden=${!has(\"caption\")}><slot name=\"caption\"></slot></div>\n\n <!-- Freeform slot for extra content below the caption -- contact\n info, legal disclaimers, links, etc. Empty by default,\n collapses to nothing when unused. -->\n <div class=\"bd-ctabanner-footer\" ?hidden=${!has(\"footer\")}><slot name=\"footer\"></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-cta-banner\": BdCtaBanner;\n }\n}\n"],"mappings":"A,6YAyBO,IAAMI,EAAN,cAA0BC,CAAW,C,8BAGjC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,QAAS,cAAe,UAAW,UAAW,QAAQ,CAAE,CAAC,C,QAFrF,KAAA,OAAA,CAACC,EAAaR,CAAY,C,CAI1C,QAAS,CACP,IAAMS,EAAO,GAAqE,KAAK,OAAO,IAAIC,CAAI,EACtG,MAAO,EAAI;;kDAEmC,CAACD,EAAI,OAAO,EAAE;wDACR,CAACA,EAAI,aAAa,EAAE;gDAC5B,CAACA,EAAI,SAAS,EAAE;oDACZ,CAACA,EAAI,SAAS,EAAE;;;;;mDAKjB,CAACA,EAAI,QAAQ,EAAE;;KAGhE,CACF,EAtBC,EAAAR,EAAA,CAAAU,EAAc,eAAe,CAAA,EAAAP,CAAA,E"}
1
+ {"version":3,"file":"cta-banner.js","names":["ctaBannerCSS","_decorate","__decorate","cta_banner_css_default","APPEARANCES","WIDTHS","BdCtaBanner","LitElement","_args","SlotController","ensembleCSS","changed","resolveEnum","has","name","property","defineElement"],"sources":["../../../../src/components/cta-banner/cta-banner.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { resolveEnum } from \"#shared/prop-vocabulary.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\n/* The atoms the page writes into the banner's title and description. It\n renders neither now, but 3.x's module registered both, and a page\n importing only this module still gets them. */\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport ctaBannerCSS from \"./cta-banner.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\nconst APPEARANCES = [\"brand\", \"brand-soft\", \"brand-deep\"] as const;\nconst WIDTHS = [\"full\", \"contained\"] as const;\n\ntype Appearance = typeof APPEARANCES[number];\ntype Width = typeof WIDTHS[number];\n\n/**\n * A centred closing call to action: a title, supporting line, one or two\n * buttons, and an optional caption underneath. The surface can be full-width\n * or contained, with optional media above the copy.\n *\n * Every word is the page's (ADR 0003): `<bd-h slot=\"title\" as=\"h2\">`,\n * `<bd-p slot=\"description\">`, `<bd-button slot=\"actions\">` (one or two, in\n * source order) and `<span slot=\"caption\">`. The page picks the title's\n * level; the banner sets the title's size (heading-h2), the description's\n * (body-large) and the ink for its appearance. `media` takes an icon or image.\n * Each part's box is left out while its slot is empty.\n */\n@defineElement(\"bd-cta-banner\")\nexport class BdCtaBanner extends LitElement {\n static styles = [ensembleCSS, ctaBannerCSS];\n\n @property({ type: String, reflect: true })\n appearance: Appearance = \"brand\";\n\n @property({ type: String, reflect: true })\n width: Width = \"full\";\n\n _slots = new SlotController(this, { slots: [\"media\", \"title\", \"description\", \"actions\", \"caption\", \"footer\"] });\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"appearance\")) {\n this.appearance = resolveEnum(this.appearance, { allowed: APPEARANCES, fallback: \"brand\" });\n }\n if (changed.has(\"width\")) {\n this.width = resolveEnum(this.width, { allowed: WIDTHS, fallback: \"full\" });\n }\n }\n\n render() {\n const has = (name: \"media\" | \"title\" | \"description\" | \"actions\" | \"caption\" | \"footer\") => this._slots.has(name);\n return html`\n <div class=\"bd-ctabanner-surface\">\n <div class=\"bd-ensemble bd-ctabanner-container\">\n <div class=\"bd-ctabanner-media\" ?hidden=${!has(\"media\")}><slot name=\"media\"></slot></div>\n <div class=\"bd-ctabanner-title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"bd-ctabanner-description\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></div>\n <div class=\"bd-ctabanner-cta\" ?hidden=${!has(\"actions\")}><slot name=\"actions\"></slot></div>\n <div class=\"bd-ctabanner-caption\" ?hidden=${!has(\"caption\")}><slot name=\"caption\"></slot></div>\n\n <!-- Freeform slot for extra content below the caption -- contact\n info, legal disclaimers, links, etc. Empty by default,\n collapses to nothing when unused. -->\n <div class=\"bd-ctabanner-footer\" ?hidden=${!has(\"footer\")}><slot name=\"footer\"></slot></div>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-cta-banner\": BdCtaBanner;\n }\n}\n"],"mappings":"A,qfAeA,IAAMI,EAAc,CAAC,QAAS,aAAc,YAAY,EAClDC,EAAS,CAAC,OAAQ,WAAW,EAkBtBC,EAAN,cAA0BC,CAAW,C,8BAIjB,KAAA,WAAA,QAGV,KAAA,MAAA,OAEN,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,QAAS,QAAS,cAAe,UAAW,UAAW,QAAQ,CAAE,CAAC,C,QAR9F,KAAA,OAAA,CAACC,EAAaV,CAAY,C,CAU1C,WAAW,EAA+B,CACpCW,EAAQ,IAAI,YAAY,IAC1B,KAAK,WAAaC,EAAY,KAAK,WAAY,CAAE,QAASR,EAAa,SAAU,OAAQ,CAAC,GAExFO,EAAQ,IAAI,OAAO,IACrB,KAAK,MAAQC,EAAY,KAAK,MAAO,CAAE,QAASP,EAAQ,SAAU,MAAO,CAAC,EAE9E,CAEA,QAAS,CACP,IAAMQ,EAAO,GAA+E,KAAK,OAAO,IAAIC,CAAI,EAChH,MAAO,EAAI;;;oDAGqC,CAACD,EAAI,OAAO,EAAE;oDACd,CAACA,EAAI,OAAO,EAAE;0DACR,CAACA,EAAI,aAAa,EAAE;kDAC5B,CAACA,EAAI,SAAS,EAAE;sDACZ,CAACA,EAAI,SAAS,EAAE;;;;;qDAKjB,CAACA,EAAI,QAAQ,EAAE;;;KAIlE,CACF,EApCGZ,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAT,EAAA,UAAA,aAAA,IAAA,EAAA,EAGxCL,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAT,EAAA,UAAA,QAAA,IAAA,EAAA,EAP1C,EAAAL,EAAA,CAAAe,EAAc,eAAe,CAAA,EAAAV,CAAA,E"}
@@ -1,2 +1,2 @@
1
- import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{box-sizing:border-box;width:100%;display:block}.bd-features-tab-container{align-items:center;gap:var(--spacing-64);width:100%;animation:bd-fade-slide-right var(--transition-duration-slow) var(--transition-easing-ease) forwards;display:flex}.bd-features-tab-left{align-items:flex-start;gap:var(--spacing-24);flex-direction:column;flex:1;display:flex}.bd-features-tab-content{gap:var(--spacing-8);flex-direction:column;display:flex}.bd-features-tab-content[hidden]{display:none}.bd-features-tab-right{flex:1;justify-content:center;align-items:center;display:flex}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h3-fontSize);--bd-heading-font-weight:var(--typography-heading-h3-fontWeight);--bd-heading-line-height:var(--typography-heading-h3-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h3-letterSpacing);--bd-heading-font-family:var(--typography-heading-h3-fontFamily);--bd-heading-color:var(--color-text-brand);--bd-paragraph-color:var(--color-text-brand);margin:0}::slotted([slot=media]){border-radius:var(--shape-radius-lg);width:100%;max-width:520px;height:auto;display:block}@media (prefers-reduced-motion:reduce){.bd-features-tab-container{animation:none}}@keyframes bd-fade-slide-right{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:translate(0)}}@media (width<992px){.bd-features-tab-container{gap:var(--spacing-32);flex-direction:column-reverse}.bd-features-tab-container.bd-features-tab-reverse{flex-direction:column-reverse}.bd-features-tab-left{text-align:center;align-items:center}::slotted([slot=media]){max-width:100%}}@media (width<576px){.bd-features-tab-container{gap:var(--spacing-24)}}`;export{t as default};
1
+ import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{box-sizing:border-box;width:100%;display:block}.bd-features-tab-container{align-items:center;gap:var(--spacing-64);width:100%;animation:bd-fade-slide-right var(--transition-duration-slow) var(--transition-easing-ease) forwards;display:flex}.bd-features-tab-left{align-items:flex-start;gap:var(--spacing-24);flex-direction:column;flex:1;display:flex}.bd-features-tab-content{gap:var(--spacing-8);flex-direction:column;display:flex}.bd-features-tab-content[hidden]{display:none}.bd-features-tab-right{flex:1;justify-content:center;align-items:center;display:flex}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h3-fontSize);--bd-heading-font-weight:var(--typography-heading-h3-fontWeight);--bd-heading-line-height:var(--typography-heading-h3-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h3-letterSpacing);--bd-heading-font-family:var(--typography-heading-h3-fontFamily);--bd-heading-color:var(--color-text-brand);--bd-paragraph-color:var(--color-text-brand);margin:0}::slotted([slot=media]){border-radius:var(--shape-radius-lg);width:100%;max-width:520px;height:auto;display:block}:host([appearance=contained]) .bd-features-tab-container{background:var(--color-surface-container);border-radius:var(--shape-radius-2xl);align-items:stretch;gap:0;overflow:clip}:host([appearance=contained]) .bd-features-tab-left,:host([appearance=contained]) .bd-features-tab-right{box-sizing:border-box;flex:0 0 50%;min-width:0}:host([appearance=contained]) .bd-features-tab-left{padding:var(--spacing-64);justify-content:center}:host([appearance=contained]) .bd-features-tab-right{aspect-ratio:16/9;position:relative}:host([appearance=contained]) ::slotted(img[slot=media]){border-radius:var(--radius-none);object-fit:cover;width:100%;max-width:none;height:100%;position:absolute;inset:0}@media (prefers-reduced-motion:reduce){.bd-features-tab-container{animation:none}}@keyframes bd-fade-slide-right{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:translate(0)}}@media (width<992px){.bd-features-tab-container{gap:var(--spacing-32);flex-direction:column-reverse}.bd-features-tab-container.bd-features-tab-reverse{flex-direction:column-reverse}.bd-features-tab-left{text-align:center;align-items:center}::slotted([slot=media]){max-width:100%}:host([appearance=contained]) .bd-features-tab-container{gap:0}:host([appearance=contained]) .bd-features-tab-left,:host([appearance=contained]) .bd-features-tab-right{flex:none;width:100%}:host([appearance=contained]) .bd-features-tab-left{padding:var(--spacing-32)}:host([appearance=contained]) .bd-features-tab-right{aspect-ratio:auto}:host([appearance=contained]) ::slotted(img[slot=media]){height:auto;position:static}}@media (width<576px){.bd-features-tab-container{gap:var(--spacing-24)}}`;export{t as default};
2
2
  //# sourceMappingURL=features-tab.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"features-tab.css.js","names":["features_tab_css_default"],"sources":["../../../../src/components/features-tab/features-tab.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, headingRole, ink } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n width: 100%;\n box-sizing: border-box;\n }\n\n .bd-features-tab-container {\n display: flex;\n align-items: center;\n gap: var(--spacing-64);\n width: 100%;\n /* slow, not 350ms: a 50ms difference nobody chose, on a one-shot\n entrance that is not repeated. */\n animation: bd-fade-slide-right var(--transition-duration-slow) var(--transition-easing-ease) forwards;\n }\n\n .bd-features-tab-left {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-24);\n }\n\n .bd-features-tab-content {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-8);\n }\n\n /* The body's wrapper while the default slot is empty; display above\n outranks the hidden attribute's own rule. */\n .bd-features-tab-content[hidden] {\n display: none;\n }\n\n .bd-features-tab-right {\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n /* The panel owns its title's size and ink, never its level: heading-h3 in\n brand ink. In 3.x the page's bd-h chose both, and the two places that\n follow the design -- the Figma component's Code Connect snippet and the\n Ultimate Security page rebuilt from the reference -- both wrote\n visual-level=\"h3\" color=\"primary\" (this file's own stories wrote h4). A\n visual-level or color on the page's bd-h still wins. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n margin: 0;\n ${unsafeCSS(headingRole('heading-h3'))}\n ${unsafeCSS(ink('primary'))}\n }\n\n ::slotted([slot=\"media\"]) {\n width: 100%;\n max-width: 520px;\n height: auto;\n border-radius: var(--shape-radius-lg);\n display: block;\n }\n\n /* The entrance is skipped rather than shortened. Its first frame is\n opacity 0 and a 24px offset, so under reduced motion the container simply\n renders where it belongs, fully opaque: it declares no opacity of its own,\n and none is what the keyframes stop supplying. Content is present\n immediately rather than waiting to be revealed. */\n @media (prefers-reduced-motion: reduce) {\n .bd-features-tab-container {\n animation: none;\n }\n }\n\n @keyframes bd-fade-slide-right {\n from {\n opacity: 0;\n transform: translateX(24px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n\n @media ${unsafeCSS(below('lg'))} {\n .bd-features-tab-container {\n flex-direction: column-reverse;\n gap: var(--spacing-32);\n }\n\n .bd-features-tab-container.bd-features-tab-reverse {\n flex-direction: column-reverse;\n }\n\n .bd-features-tab-left {\n align-items: center;\n text-align: center;\n }\n\n ::slotted([slot=\"media\"]) {\n max-width: 100%;\n }\n }\n\n @media ${unsafeCSS(below('sm'))} {\n .bd-features-tab-container {\n gap: var(--spacing-24);\n }\n }\n`;"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,8qD"}
1
+ {"version":3,"file":"features-tab.css.js","names":["features_tab_css_default"],"sources":["../../../../src/components/features-tab/features-tab.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, headingRole, ink } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n width: 100%;\n box-sizing: border-box;\n }\n\n .bd-features-tab-container {\n display: flex;\n align-items: center;\n gap: var(--spacing-64);\n width: 100%;\n /* slow, not 350ms: a 50ms difference nobody chose, on a one-shot\n entrance that is not repeated. */\n animation: bd-fade-slide-right var(--transition-duration-slow) var(--transition-easing-ease) forwards;\n }\n\n .bd-features-tab-left {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-24);\n }\n\n .bd-features-tab-content {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-8);\n }\n\n /* The body's wrapper while the default slot is empty; display above\n outranks the hidden attribute's own rule. */\n .bd-features-tab-content[hidden] {\n display: none;\n }\n\n .bd-features-tab-right {\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n /* The panel owns its title's size and ink, never its level: heading-h3 in\n brand ink. In 3.x the page's bd-h chose both, and the two places that\n follow the design -- the Figma component's Code Connect snippet and the\n Ultimate Security page rebuilt from the reference -- both wrote\n visual-level=\"h3\" color=\"primary\" (this file's own stories wrote h4). A\n visual-level or color on the page's bd-h still wins. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n margin: 0;\n ${unsafeCSS(headingRole('heading-h3'))}\n ${unsafeCSS(ink('primary'))}\n }\n\n ::slotted([slot=\"media\"]) {\n width: 100%;\n max-width: 520px;\n height: auto;\n border-radius: var(--shape-radius-lg);\n display: block;\n }\n\n :host([appearance=\"contained\"]) .bd-features-tab-container {\n gap: 0;\n align-items: stretch;\n background: var(--color-surface-container);\n border-radius: var(--shape-radius-2xl);\n overflow: clip;\n }\n\n :host([appearance=\"contained\"]) .bd-features-tab-left,\n :host([appearance=\"contained\"]) .bd-features-tab-right {\n box-sizing: border-box;\n flex: 0 0 50%;\n min-width: 0;\n }\n\n :host([appearance=\"contained\"]) .bd-features-tab-left {\n justify-content: center;\n padding: var(--spacing-64);\n }\n\n :host([appearance=\"contained\"]) .bd-features-tab-right {\n position: relative;\n aspect-ratio: 16 / 9;\n }\n\n :host([appearance=\"contained\"]) ::slotted(img[slot=\"media\"]) {\n position: absolute;\n inset: 0;\n width: 100%;\n max-width: none;\n height: 100%;\n border-radius: var(--radius-none);\n object-fit: cover;\n }\n\n /* The entrance is skipped rather than shortened. Its first frame is\n opacity 0 and a 24px offset, so under reduced motion the container simply\n renders where it belongs, fully opaque: it declares no opacity of its own,\n and none is what the keyframes stop supplying. Content is present\n immediately rather than waiting to be revealed. */\n @media (prefers-reduced-motion: reduce) {\n .bd-features-tab-container {\n animation: none;\n }\n }\n\n @keyframes bd-fade-slide-right {\n from {\n opacity: 0;\n transform: translateX(24px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n\n @media ${unsafeCSS(below('lg'))} {\n .bd-features-tab-container {\n flex-direction: column-reverse;\n gap: var(--spacing-32);\n }\n\n .bd-features-tab-container.bd-features-tab-reverse {\n flex-direction: column-reverse;\n }\n\n .bd-features-tab-left {\n align-items: center;\n text-align: center;\n }\n\n ::slotted([slot=\"media\"]) {\n max-width: 100%;\n }\n\n :host([appearance=\"contained\"]) .bd-features-tab-container {\n gap: 0;\n }\n\n :host([appearance=\"contained\"]) .bd-features-tab-left,\n :host([appearance=\"contained\"]) .bd-features-tab-right {\n flex: none;\n width: 100%;\n }\n\n :host([appearance=\"contained\"]) .bd-features-tab-left {\n padding: var(--spacing-32);\n }\n\n :host([appearance=\"contained\"]) .bd-features-tab-right {\n aspect-ratio: auto;\n }\n\n :host([appearance=\"contained\"]) ::slotted(img[slot=\"media\"]) {\n position: static;\n height: auto;\n }\n }\n\n @media ${unsafeCSS(below('sm'))} {\n .bd-features-tab-container {\n gap: var(--spacing-24);\n }\n }\n`;"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,uwF"}
@@ -25,6 +25,7 @@ import { SlotController } from "../shared/controller.slot.js";
25
25
  declare class BdFeaturesTab extends LitElement {
26
26
  static styles: import("lit").CSSResult[];
27
27
  reverse: boolean;
28
+ appearance: "default" | "contained";
28
29
  _slots: SlotController<"">;
29
30
  render(): import("lit-html").TemplateResult<1>;
30
31
  }
@@ -1,4 +1,4 @@
1
- import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as n}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../button/button.js";import i from"./features-tab.css.js";import"../video-player/video-player.js";import{LitElement as a,html as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends a{constructor(...e){super(...e),this.reverse=!1,this._slots=new n(this,{slots:[``]})}static{this.styles=[r,i]}render(){let e=o`
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as n}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../button/button.js";import i from"./features-tab.css.js";import"../video-player/video-player.js";import{LitElement as a,html as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends a{constructor(...e){super(...e),this.reverse=!1,this.appearance=`default`,this._slots=new n(this,{slots:[``]})}static{this.styles=[r,i]}render(){let e=o`
2
2
  <div class="bd-features-tab-left">
3
3
  <slot name="title"></slot>
4
4
  <div class="bd-features-tab-content" ?hidden=${!this._slots.has(``)}><slot></slot></div>
@@ -6,9 +6,9 @@ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/
6
6
  </div>
7
7
  `,t=o`
8
8
  <div class="bd-features-tab-right"><slot name="media"></slot></div>
9
- `;return o`
10
- <div class="bd-ensemble bd-features-tab-container ${this.reverse?`bd-features-tab-reverse`:``}">
9
+ `,n=this.appearance===`contained`,r=o`
10
+ <div class="${n?``:`bd-ensemble`} bd-features-tab-container ${this.reverse?`bd-features-tab-reverse`:``}">
11
11
  ${this.reverse?o`${t}${e}`:o`${e}${t}`}
12
12
  </div>
13
- `}};t([s({type:Boolean,reflect:!0})],c.prototype,`reverse`,void 0),c=t([e(`bd-features-tab`)],c);
13
+ `;return n?o`<div class="bd-ensemble">${r}</div>`:r}};t([s({type:Boolean,reflect:!0})],c.prototype,`reverse`,void 0),t([s({type:String,reflect:!0})],c.prototype,`appearance`,void 0),c=t([e(`bd-features-tab`)],c);
14
14
  //# sourceMappingURL=features-tab.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"features-tab.js","names":["featuresTabCSS","_decorate","__decorate","features_tab_css_default","BdFeaturesTab","LitElement","_args","SlotController","ensembleCSS","leftContent","rightContent","property","defineElement"],"sources":["../../../../src/components/features-tab/features-tab.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/button/button.ts\";\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport \"#components/video-player/video-player.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport featuresTabCSS from \"./features-tab.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\n/**\n * Copy on one side, media on the other: a title, the body, the actions and a\n * picture, a video or an embed.\n *\n * <bd-features-tab>\n * <bd-h slot=\"title\" as=\"h3\">Keep your loved ones protected.</bd-h>\n * <bd-p appearance=\"regular\">As the Subscription Manager, you can…</bd-p>\n * <bd-button slot=\"actions\" href=\"#plans\" appearance=\"accent\">Stay worry free</bd-button>\n * <img slot=\"media\" src=\"/family.png\" alt=\"…\" width=\"520\" height=\"390\">\n * </bd-features-tab>\n *\n * Everything is the page's. 3.x's CTA attributes (cta-label, cta-href,\n * cta-kind, cta-size) drew a bd-button here; the page writes that button into\n * `actions` now, with its own appearance and size. The title is drawn at\n * heading-h3 in brand ink, as the design draws it (features-tab.css.ts); the\n * level is the page's.\n */\n@defineElement(\"bd-features-tab\")\nclass BdFeaturesTab extends LitElement {\n static styles = [ensembleCSS, featuresTabCSS];\n\n @property({ type: Boolean, reflect: true })\n reverse = false;\n\n _slots = new SlotController(this, { slots: [\"\"] });\n\n render() {\n /* The title and the actions are flex items of the column themselves, so\n an empty one takes no box and leaves no gap. The body has a wrapper of\n its own, its paragraphs closer together, hidden while it is empty. */\n const leftContent = html`\n <div class=\"bd-features-tab-left\">\n <slot name=\"title\"></slot>\n <div class=\"bd-features-tab-content\" ?hidden=${!this._slots.has(\"\")}><slot></slot></div>\n <slot name=\"actions\"></slot>\n </div>\n `;\n\n const rightContent = html`\n <div class=\"bd-features-tab-right\"><slot name=\"media\"></slot></div>\n `;\n\n return html`\n <div class=\"bd-ensemble bd-features-tab-container ${this.reverse ? \"bd-features-tab-reverse\" : \"\"}\">\n ${this.reverse\n ? html`${rightContent}${leftContent}`\n : html`${leftContent}${rightContent}`}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-features-tab\": BdFeaturesTab;\n }\n}\n"],"mappings":"A,ggBA8BA,IACMI,EADN,cAC4BC,CAAW,C,8BAI3B,KAAA,QAAA,GAED,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,EAAE,CAAE,CAAC,C,QALjC,KAAA,OAAA,CAACC,EAAaR,CAAc,C,CAO5C,QAAS,CAIP,IAAMS,EAAc,CAAI;;;uDAG2B,CAAC,KAAK,OAAO,IAAI,EAAE,EAAE;;;MAKlEC,EAAe,CAAI;;MAIzB,MAAO,EAAI;0DAC2C,KAAK,QAAU,0BAA4B,GAAG;UAC9F,KAAK,QACH,CAAI,GAAGA,IAAeD,IACtB,CAAI,GAAGA,IAAcC,IAAe;;KAG9C,CACF,EA7BGT,EAAA,CAAAU,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAP,EAAA,UAAA,UAAA,IAAA,EAAA,EAJ3C,EAAAH,EAAA,CAAAW,EAAc,iBAAiB,CAAA,EAAAR,CAAA"}
1
+ {"version":3,"file":"features-tab.js","names":["featuresTabCSS","_decorate","__decorate","features_tab_css_default","BdFeaturesTab","LitElement","_args","SlotController","ensembleCSS","leftContent","rightContent","contained","content","property","defineElement"],"sources":["../../../../src/components/features-tab/features-tab.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/button/button.ts\";\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport \"#components/video-player/video-player.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport featuresTabCSS from \"./features-tab.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\n/**\n * Copy on one side, media on the other: a title, the body, the actions and a\n * picture, a video or an embed.\n *\n * <bd-features-tab>\n * <bd-h slot=\"title\" as=\"h3\">Keep your loved ones protected.</bd-h>\n * <bd-p appearance=\"regular\">As the Subscription Manager, you can…</bd-p>\n * <bd-button slot=\"actions\" href=\"#plans\" appearance=\"accent\">Stay worry free</bd-button>\n * <img slot=\"media\" src=\"/family.png\" alt=\"…\" width=\"520\" height=\"390\">\n * </bd-features-tab>\n *\n * Everything is the page's. 3.x's CTA attributes (cta-label, cta-href,\n * cta-kind, cta-size) drew a bd-button here; the page writes that button into\n * `actions` now, with its own appearance and size. The title is drawn at\n * heading-h3 in brand ink, as the design draws it (features-tab.css.ts); the\n * level is the page's.\n */\n@defineElement(\"bd-features-tab\")\nclass BdFeaturesTab extends LitElement {\n static styles = [ensembleCSS, featuresTabCSS];\n\n @property({ type: Boolean, reflect: true })\n reverse = false;\n\n @property({ type: String, reflect: true })\n appearance: \"default\" | \"contained\" = \"default\";\n\n _slots = new SlotController(this, { slots: [\"\"] });\n\n render() {\n /* The title and the actions are flex items of the column themselves, so\n an empty one takes no box and leaves no gap. The body has a wrapper of\n its own, its paragraphs closer together, hidden while it is empty. */\n const leftContent = html`\n <div class=\"bd-features-tab-left\">\n <slot name=\"title\"></slot>\n <div class=\"bd-features-tab-content\" ?hidden=${!this._slots.has(\"\")}><slot></slot></div>\n <slot name=\"actions\"></slot>\n </div>\n `;\n\n const rightContent = html`\n <div class=\"bd-features-tab-right\"><slot name=\"media\"></slot></div>\n `;\n\n const contained = this.appearance === \"contained\";\n const content = html`\n <div class=\"${contained ? \"\" : \"bd-ensemble\"} bd-features-tab-container ${this.reverse ? \"bd-features-tab-reverse\" : \"\"}\">\n ${this.reverse\n ? html`${rightContent}${leftContent}`\n : html`${leftContent}${rightContent}`}\n </div>\n `;\n return contained ? html`<div class=\"bd-ensemble\">${content}</div>` : content;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-features-tab\": BdFeaturesTab;\n }\n}\n"],"mappings":"A,ggBA8BA,IACMI,EADN,cAC4BC,CAAW,C,8BAI3B,KAAA,QAAA,GAG4B,KAAA,WAAA,UAE7B,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,EAAE,CAAE,CAAC,C,QARjC,KAAA,OAAA,CAACC,EAAaR,CAAc,C,CAU5C,QAAS,CAIP,IAAMS,EAAc,CAAI;;;uDAG2B,CAAC,KAAK,OAAO,IAAI,EAAE,EAAE;;;MAKlEC,EAAe,CAAI;;MAInBC,EAAY,KAAK,aAAe,YAChCC,EAAU,CAAI;oBACJD,EAAY,GAAK,cAAc,6BAA6B,KAAK,QAAU,0BAA4B,GAAG;UACpH,KAAK,QACH,CAAI,GAAGD,IAAeD,IACtB,CAAI,GAAGA,IAAcC,IAAe;;MAG5C,OAAOC,EAAY,CAAI,4BAA4BC,EAAQ,QAAUA,CACvE,CACF,EAlCGX,EAAA,CAAAY,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAT,EAAA,UAAA,UAAA,IAAA,EAAA,EAGzCH,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAT,EAAA,UAAA,aAAA,IAAA,EAAA,EAP1C,EAAAH,EAAA,CAAAa,EAAc,iBAAiB,CAAA,EAAAV,CAAA"}
@@ -1,3 +1,2 @@
1
1
  declare const _default: import("lit").CSSResult;
2
2
  export default _default;
3
- export declare const storeWrapperCSS: import("lit").CSSResult;
@@ -0,0 +1,2 @@
1
+ import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{grid-row:span 3;grid-template-rows:subgrid;font-family:var(--typography-fontFamily-sans);display:grid}:host([hidden]),.icon[hidden],.title[hidden],.description[hidden]{display:none}.icon{color:var(--color-text-brand);margin-bottom:var(--spacing-24);align-items:flex-start;display:flex}.title{margin-bottom:var(--spacing-16)}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h4-fontSize);--bd-heading-font-weight:var(--typography-heading-h4-fontWeight);--bd-heading-line-height:var(--typography-heading-h4-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h4-letterSpacing);--bd-heading-font-family:var(--typography-heading-h4-fontFamily)}`;export{t as default};
2
+ //# sourceMappingURL=icon-columns-banner-item.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-columns-banner-item.css.js","names":["icon_columns_banner_item_css_default"],"sources":["../../../../src/components/icon-columns-banner/icon-columns-banner-item.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { headingRole } from \"#shared/token-scales.ts\";\n\nexport default css`\n /* The host takes three rows of the banner's grid and lays its parts on\n them, so the parts of neighbouring columns line up. */\n :host {\n display: grid;\n grid-row: span 3;\n grid-template-rows: subgrid;\n font-family: var(--typography-fontFamily-sans);\n }\n\n :host([hidden]),\n .icon[hidden],\n .title[hidden],\n .description[hidden] {\n display: none;\n }\n\n .icon {\n display: flex;\n align-items: flex-start;\n color: var(--color-text-brand);\n margin-bottom: var(--spacing-24);\n }\n\n .title {\n margin-bottom: var(--spacing-16);\n }\n\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h4\"))}\n }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,ktB"}
@@ -0,0 +1,25 @@
1
+ import { LitElement } from "lit";
2
+ import { SlotController } from "../shared/controller.slot.js";
3
+ import "../../tokens/tokens.js";
4
+ /**
5
+ * One column of bd-icon-columns-banner: an icon, a title and a description.
6
+ *
7
+ * <bd-icon-columns-banner-item>
8
+ * <bd-img slot="icon" src="…" alt="" width="56" height="56"></bd-img>
9
+ * <bd-h slot="title" as="h3">Powered by 20+ years of expertise</bd-h>
10
+ * <bd-p slot="description">…</bd-p>
11
+ * </bd-icon-columns-banner-item>
12
+ *
13
+ * The three parts take a row each of the banner's grid, so every column's
14
+ * icon, title and description line up with its neighbours'.
15
+ */
16
+ export declare class BdIconColumnsBannerItem extends LitElement {
17
+ static styles: import("lit").CSSResult[];
18
+ _slots: SlotController<"title" | "description" | "icon">;
19
+ render(): import("lit-html").TemplateResult<1>;
20
+ }
21
+ declare global {
22
+ interface HTMLElementTagNameMap {
23
+ "bd-icon-columns-banner-item": BdIconColumnsBannerItem;
24
+ }
25
+ }
@@ -0,0 +1,6 @@
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{SlotController as n}from"../shared/controller.slot.js";import r from"./icon-columns-banner-item.css.js";import{LitElement as i,html as a}from"lit";var o=class extends i{constructor(...e){super(...e),this._slots=new n(this,{slots:[`icon`,`title`,`description`]})}static{this.styles=[r]}render(){return a`
2
+ <div class="icon" ?hidden=${!this._slots.has(`icon`)}><slot name="icon"></slot></div>
3
+ <div class="title" ?hidden=${!this._slots.has(`title`)}><slot name="title"></slot></div>
4
+ <div class="description" ?hidden=${!this._slots.has(`description`)}><slot name="description"></slot></div>
5
+ `}};o=t([e(`bd-icon-columns-banner-item`)],o);export{o as BdIconColumnsBannerItem};
6
+ //# sourceMappingURL=icon-columns-banner-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-columns-banner-item.js","names":["itemCSS","_decorate","__decorate","icon_columns_banner_item_css_default","BdIconColumnsBannerItem","LitElement","_args","SlotController","defineElement"],"sources":["../../../../src/components/icon-columns-banner/icon-columns-banner-item.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport itemCSS from \"./icon-columns-banner-item.css.ts\";\n\n/**\n * One column of bd-icon-columns-banner: an icon, a title and a description.\n *\n * <bd-icon-columns-banner-item>\n * <bd-img slot=\"icon\" src=\"…\" alt=\"\" width=\"56\" height=\"56\"></bd-img>\n * <bd-h slot=\"title\" as=\"h3\">Powered by 20+ years of expertise</bd-h>\n * <bd-p slot=\"description\">…</bd-p>\n * </bd-icon-columns-banner-item>\n *\n * The three parts take a row each of the banner's grid, so every column's\n * icon, title and description line up with its neighbours'.\n */\n@defineElement(\"bd-icon-columns-banner-item\")\nexport class BdIconColumnsBannerItem extends LitElement {\n static styles = [itemCSS];\n\n _slots = new SlotController(this, { slots: [\"icon\", \"title\", \"description\"] });\n\n render() {\n return html`\n <div class=\"icon\" ?hidden=${!this._slots.has(\"icon\")}><slot name=\"icon\"></slot></div>\n <div class=\"title\" ?hidden=${!this._slots.has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"description\" ?hidden=${!this._slots.has(\"description\")}><slot name=\"description\"></slot></div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-icon-columns-banner-item\": BdIconColumnsBannerItem;\n }\n}\n"],"mappings":"A,+TAoBO,IAAMI,EAAN,cAAsCC,CAAW,C,8BAG7C,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,OAAQ,QAAS,aAAa,CAAE,CAAC,C,QAF7D,KAAA,OAAA,CAACP,CAAO,C,CAIxB,QAAS,CACP,MAAO,EAAI;kCACmB,CAAC,KAAK,OAAO,IAAI,MAAM,EAAE;mCACxB,CAAC,KAAK,OAAO,IAAI,OAAO,EAAE;yCACpB,CAAC,KAAK,OAAO,IAAI,aAAa,EAAE;KAEvE,CACF,EAbC,EAAAC,EAAA,CAAAO,EAAc,6BAA6B,CAAA,EAAAJ,CAAA,E"}
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{box-sizing:border-box;font-family:var(--typography-fontFamily-sans);color-scheme:light;padding-inline:var(--spacing-16);display:block;container-type:inline-size}.surface{isolation:isolate;box-sizing:border-box;width:100%;max-width:var(--content-width-max);padding:var(--spacing-64) var(--spacing-24);border-radius:var(--shape-radius-2xl);background:var(--status-brand-surface);margin-inline:auto;position:relative;overflow:hidden}.surface>[hidden]{display:none}.corner{z-index:var(--z-below);pointer-events:none;width:24%;height:40%;position:absolute;top:0}.corner-start{inset-inline-start:0}.corner-end{inset-inline-end:0}.corner ::slotted(*){object-fit:cover;width:100%;height:100%;display:block}.corner-start ::slotted(*){object-position:left top}.corner-end ::slotted(*){object-position:right top}.title{margin:0 auto var(--spacing-48);max-width:var(--grid-container-max-lg);text-align:center}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h2-fontSize);--bd-heading-font-weight:var(--typography-heading-h2-fontWeight);--bd-heading-line-height:var(--typography-heading-h2-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h2-letterSpacing);--bd-heading-font-family:var(--typography-heading-h2-fontFamily)}.columns{column-gap:var(--spacing-48);max-width:var(--grid-container-max-lg);grid-template-columns:repeat(3,minmax(0,1fr));row-gap:0;margin-inline:auto;display:grid}@container (width<=600px){.surface{padding-block:var(--spacing-48)}.columns{row-gap:var(--spacing-32);grid-template-columns:1fr}.corner{width:32%;height:24%}}`;export{t as default};
2
+ //# sourceMappingURL=icon-columns-banner.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-columns-banner.css.js","names":["icon_columns_banner_css_default"],"sources":["../../../../src/components/icon-columns-banner/icon-columns-banner.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { headingRole } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n /* the banner is the container that decides when the columns stack */\n container-type: inline-size;\n box-sizing: border-box;\n font-family: var(--typography-fontFamily-sans);\n /* a soft brand surface drawn in the light scheme in every theme, as\n bd-cta-banner's brand-soft is */\n color-scheme: light;\n padding-inline: var(--spacing-16);\n }\n\n .surface {\n position: relative;\n overflow: hidden;\n isolation: isolate;\n box-sizing: border-box;\n width: 100%;\n /* not the column: a contained surface, inset from the page's edges */\n max-width: var(--content-width-max);\n margin-inline: auto;\n padding: var(--spacing-64) var(--spacing-24);\n border-radius: var(--shape-radius-2xl);\n background: var(--status-brand-surface);\n }\n\n .surface > [hidden] {\n display: none;\n }\n\n /* The page's corner art, behind the copy, anchored to its top corner. */\n .corner {\n position: absolute;\n top: 0;\n z-index: var(--z-below);\n width: 24%;\n height: 40%;\n pointer-events: none;\n }\n\n .corner-start {\n inset-inline-start: 0;\n }\n\n .corner-end {\n inset-inline-end: 0;\n }\n\n .corner ::slotted(*) {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n .corner-start ::slotted(*) {\n object-position: left top;\n }\n\n .corner-end ::slotted(*) {\n object-position: right top;\n }\n\n .title {\n margin: 0 auto var(--spacing-48);\n /* not the column: the title's centred measure, as the columns' below */\n max-width: var(--grid-container-max-lg);\n text-align: center;\n }\n\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h2\"))}\n }\n\n /* Each column takes three rows of this grid and shares them (subgrid), so\n a title that wraps or a longer description moves the next row down in\n every column. */\n .columns {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n column-gap: var(--spacing-48);\n row-gap: 0;\n /* not the column: three columns' measure, narrower than the surface */\n max-width: var(--grid-container-max-lg);\n margin-inline: auto;\n }\n\n @container (max-width: 600px) {\n .surface {\n padding-block: var(--spacing-48);\n }\n\n .columns {\n grid-template-columns: 1fr;\n row-gap: var(--spacing-32);\n }\n\n .corner {\n width: 32%;\n height: 24%;\n }\n }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,klD"}
@@ -0,0 +1,36 @@
1
+ import { LitElement } from "lit";
2
+ import { SlotController } from "../shared/controller.slot.js";
3
+ import "../../tokens/tokens.js";
4
+ import "./icon-columns-banner-item.js";
5
+ import "../h/h.js";
6
+ import "../img/img.js";
7
+ import "../p/p.js";
8
+ /**
9
+ * A soft brand surface with a centred title and a row of columns, each an
10
+ * icon, a title and a description. Decorative art sits in the surface's two
11
+ * top corners.
12
+ *
13
+ * <bd-icon-columns-banner>
14
+ * <bd-img slot="corner-start" src="…" alt=""></bd-img>
15
+ * <bd-img slot="corner-end" src="…" alt=""></bd-img>
16
+ * <bd-h slot="title" as="h2">Why trust Bitdefender Link Checker?</bd-h>
17
+ * <bd-icon-columns-banner-item>…</bd-icon-columns-banner-item>
18
+ * </bd-icon-columns-banner>
19
+ *
20
+ * The corner art is the page's content, not the component's: whatever is in
21
+ * `corner-start` and `corner-end` is clipped to the surface and anchored to
22
+ * its top corner, behind the copy, and hidden from assistive technology. The
23
+ * columns are the default slot and share their rows, so a title that wraps
24
+ * moves the descriptions down in every column. They stack at 600px wide or
25
+ * narrower. The page picks the title's level; the banner sets its size.
26
+ */
27
+ export declare class BdIconColumnsBanner extends LitElement {
28
+ static styles: import("lit").CSSResult[];
29
+ _slots: SlotController<"" | "title" | "corner-start" | "corner-end">;
30
+ render(): import("lit-html").TemplateResult<1>;
31
+ }
32
+ declare global {
33
+ interface HTMLElementTagNameMap {
34
+ "bd-icon-columns-banner": BdIconColumnsBanner;
35
+ }
36
+ }
@@ -0,0 +1,9 @@
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as n}from"../shared/controller.slot.js";import"../h/h.js";import"../img/img.js";import"./icon-columns-banner-item.js";import r from"./icon-columns-banner.css.js";import{LitElement as i,html as a}from"lit";var o=class extends i{constructor(...e){super(...e),this._slots=new n(this,{slots:[`corner-start`,`corner-end`,`title`,``]})}static{this.styles=[r]}render(){let e=e=>this._slots.has(e);return a`
2
+ <div class="surface">
3
+ <div class="corner corner-start" aria-hidden="true" ?hidden=${!e(`corner-start`)}><slot name="corner-start"></slot></div>
4
+ <div class="corner corner-end" aria-hidden="true" ?hidden=${!e(`corner-end`)}><slot name="corner-end"></slot></div>
5
+ <div class="title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
6
+ <div class="columns" ?hidden=${!e(``)}><slot></slot></div>
7
+ </div>
8
+ `}};o=t([e(`bd-icon-columns-banner`)],o);export{o as BdIconColumnsBanner};
9
+ //# sourceMappingURL=icon-columns-banner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-columns-banner.js","names":["iconColumnsBannerCSS","_decorate","__decorate","icon_columns_banner_css_default","BdIconColumnsBanner","LitElement","_args","SlotController","has","name","defineElement"],"sources":["../../../../src/components/icon-columns-banner/icon-columns-banner.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"./icon-columns-banner-item.ts\";\nimport \"#components/h/h.ts\";\nimport \"#components/img/img.ts\";\nimport \"#components/p/p.ts\";\nimport iconColumnsBannerCSS from \"./icon-columns-banner.css.ts\";\n\n/**\n * A soft brand surface with a centred title and a row of columns, each an\n * icon, a title and a description. Decorative art sits in the surface's two\n * top corners.\n *\n * <bd-icon-columns-banner>\n * <bd-img slot=\"corner-start\" src=\"…\" alt=\"\"></bd-img>\n * <bd-img slot=\"corner-end\" src=\"…\" alt=\"\"></bd-img>\n * <bd-h slot=\"title\" as=\"h2\">Why trust Bitdefender Link Checker?</bd-h>\n * <bd-icon-columns-banner-item>…</bd-icon-columns-banner-item>\n * </bd-icon-columns-banner>\n *\n * The corner art is the page's content, not the component's: whatever is in\n * `corner-start` and `corner-end` is clipped to the surface and anchored to\n * its top corner, behind the copy, and hidden from assistive technology. The\n * columns are the default slot and share their rows, so a title that wraps\n * moves the descriptions down in every column. They stack at 600px wide or\n * narrower. The page picks the title's level; the banner sets its size.\n */\n@defineElement(\"bd-icon-columns-banner\")\nexport class BdIconColumnsBanner extends LitElement {\n static styles = [iconColumnsBannerCSS];\n\n _slots = new SlotController(this, { slots: [\"corner-start\", \"corner-end\", \"title\", \"\"] });\n\n render() {\n const has = (name: \"corner-start\" | \"corner-end\" | \"title\" | \"\") => this._slots.has(name);\n return html`\n <div class=\"surface\">\n <div class=\"corner corner-start\" aria-hidden=\"true\" ?hidden=${!has(\"corner-start\")}><slot name=\"corner-start\"></slot></div>\n <div class=\"corner corner-end\" aria-hidden=\"true\" ?hidden=${!has(\"corner-end\")}><slot name=\"corner-end\"></slot></div>\n <div class=\"title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"columns\" ?hidden=${!has(\"\")}><slot></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-icon-columns-banner\": BdIconColumnsBanner;\n }\n}\n"],"mappings":"A,0ZA+BO,IAAMI,EAAN,cAAkCC,CAAW,C,8BAGzC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,eAAgB,aAAc,QAAS,EAAE,CAAE,CAAC,C,QAFxE,KAAA,OAAA,CAACP,CAAoB,C,CAIrC,QAAS,CACP,IAAMQ,EAAO,GAAuD,KAAK,OAAO,IAAIC,CAAI,EACxF,MAAO,EAAI;;sEAEuD,CAACD,EAAI,cAAc,EAAE;oEACvB,CAACA,EAAI,YAAY,EAAE;qCAClD,CAACA,EAAI,OAAO,EAAE;uCACZ,CAACA,EAAI,EAAE,EAAE;;KAG9C,CACF,EAjBC,EAAAP,EAAA,CAAAS,EAAc,wBAAwB,CAAA,EAAAN,CAAA,E"}
@@ -0,0 +1 @@
1
+ import "./icon.js";
@@ -0,0 +1,6 @@
1
+ import{registerIcon as e}from"./registry.js";import"./icon.js";e(`arrow-back`,`
2
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.518 11.2501L9.0673 14.7993L7.2995 16.5671L0.7325 10L7.2995 3.43298L9.0673 5.20075L5.518 8.75006L18.125 8.75006V11.2501L5.518 11.2501Z" fill="currentColor"/>
4
+ </svg>
5
+ `,{size:`sm`,mirror:!0});
6
+ //# sourceMappingURL=arrow-back.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrow-back.js","names":["registerIcon"],"sources":["../../../../src/components/icons/arrow-back.ts"],"sourcesContent":["// icons/arrow-back.ts\nimport { registerIcon } from \"./registry.ts\";\nimport \"./icon.ts\";\n\n/**\n * The arrow pointing back: against the way the line reads.\n *\n * bd-pricing-card draws it before a feature list's heading --\n * \"Everything from Total Security and:\" -- pointing at the plan before, the\n * one whose features the list builds on.\n *\n * ARTWORK. `arrow` (Eclipse `arrow right fill`) mirrored across its 20-unit\n * box, every x read as 20 - x, so the two are one drawing facing two ways\n * and agree on weight, head and box. It is not a chevron: arrow-up,\n * arrow-down and arrow-right are (arrow.ts says why the names mislead).\n *\n * Back, so it mirrors, as `arrow` does: right to left, back points right.\n */\nregisterIcon(\"arrow-back\", `\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"none\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.518 11.2501L9.0673 14.7993L7.2995 16.5671L0.7325 10L7.2995 3.43298L9.0673 5.20075L5.518 8.75006L18.125 8.75006V11.2501L5.518 11.2501Z\" fill=\"currentColor\"/>\n </svg>\n`, { size: 'sm', mirror: true });\n"],"mappings":"A,+DAkBAA,EAAa,aAAc;;;;EAIxB,CAAE,KAAM,KAAM,OAAQ,EAAK,CAAC"}
@@ -22,6 +22,7 @@
22
22
  import "./icon.js";
23
23
  import "./analysis.js";
24
24
  import "./arrow.js";
25
+ import "./arrow-back.js";
25
26
  import "./arrow-down.js";
26
27
  import "./arrow-right.js";
27
28
  import "./arrow-up.js";
@@ -1 +1 @@
1
- import"./icon.js";import"./arrow.js";import"./family.js";import"./individual.js";import"./check.js";import"./close.js";import"./arrow-down.js";import"./arrow-up.js";import"./minus.js";import"./plus.js";import"./arrow-right.js";import"./quote.js";import"./envelope.js";import"./laurel.js";import"./circle-info.js";import"./globe.js";import"./pause.js";import"./play.js";import"./analysis.js";import"./brand-signature.js";import"./clipboard.js";import"./enterprise.js";import"./guide.js";import"./home.js";import"./machine-learning.js";import"./small-business.js";
1
+ import"./icon.js";import"./arrow.js";import"./family.js";import"./individual.js";import"./check.js";import"./close.js";import"./arrow-down.js";import"./arrow-up.js";import"./minus.js";import"./plus.js";import"./arrow-right.js";import"./quote.js";import"./envelope.js";import"./laurel.js";import"./circle-info.js";import"./globe.js";import"./pause.js";import"./play.js";import"./analysis.js";import"./arrow-back.js";import"./brand-signature.js";import"./clipboard.js";import"./enterprise.js";import"./guide.js";import"./home.js";import"./machine-learning.js";import"./small-business.js";
@@ -1,2 +1,3 @@
1
1
  declare const _default: import("lit").CSSResult;
2
2
  export default _default;
3
+ export declare const pageCSS: import("lit").CSSResult;
@@ -1,2 +1,2 @@
1
- import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{box-sizing:border-box;width:100%;max-width:426px;font-family:var(--typography-fontFamily-sans);flex-direction:column;display:flex}:host([hidden]){display:none}.card{box-sizing:border-box;background:var(--color-surface-default);border:var(--border-width-1) solid var(--color-border-container);border-radius:var(--card-radius);padding:var(--card-padding);text-align:start;--bd-ensemble-max-width:none;--bd-ensemble-inline-padding:0;flex-direction:column;flex:auto;display:flex;position:relative}:host([highlight]) .card{border:var(--border-width-2) solid var(--status-success-fill)}.card [hidden]{display:none}.banner{top:calc(-1 * var(--spacing-28));width:85%;padding:var(--spacing-16) var(--spacing-8);background:var(--status-success-fill);color:var(--status-success-on-fill);text-align:center;font-size:var(--typography-heading-h6-fontSize);font-weight:var(--typography-heading-h6-fontWeight);line-height:var(--typography-heading-h6-lineHeight);letter-spacing:var(--typography-heading-h6-letterSpacing);font-family:var(--typography-heading-h6-fontFamily);z-index:var(--z-base);border-start-start-radius:var(--shape-radius-2xl);border-start-end-radius:var(--shape-radius-2xl);position:absolute;left:50%;transform:translate(-50%)}.header{flex-direction:column;align-items:flex-start;display:flex}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h4-fontSize);--bd-heading-font-weight:var(--typography-heading-h4-fontWeight);--bd-heading-line-height:var(--typography-heading-h4-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h4-letterSpacing);--bd-heading-font-family:var(--typography-heading-h4-fontFamily);margin:0}.badges{gap:var(--spacing-8);flex-wrap:wrap;display:flex}.description{margin-top:var(--spacing-8);font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing);font-family:var(--typography-body-small-fontFamily);color:var(--color-text-primary)}.header+.rule{margin-top:var(--spacing-16)}.price{margin-block:var(--spacing-16) var(--spacing-32)}.actions{gap:var(--spacing-12);margin-bottom:var(--spacing-20);flex-direction:column;display:flex}@media (width<768px){.banner{padding:var(--spacing-8)}.actions{gap:var(--spacing-8)}}`;export{t as default};
1
+ import"../shared/token-scales.js";import"../shared/fill-width.css.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);grid-template-rows:repeat(7,auto) 1fr;width:100%;display:grid}@supports (width:-moz-available){:host{width:-moz-available}}@supports (width:-webkit-fill-available){:host{width:-webkit-fill-available}}@supports (width:stretch){:host{width:-webkit-fill-available;width:-moz-available;width:stretch}}:host([hidden]){display:none}.card{grid-row:1/-1;grid-template-rows:subgrid;box-sizing:border-box;background:var(--color-surface-default);border:var(--border-width-1) solid var(--color-border-container);border-radius:var(--card-radius);padding:var(--card-padding-compact);text-align:start;--bd-ensemble-max-width:none;--bd-ensemble-inline-padding:0;grid-template-columns:minmax(0,1fr);row-gap:0;display:grid;position:relative}:host([highlight]) .card{border-color:var(--color-border-brand);outline:var(--border-width-1) solid var(--color-border-brand)}.card [hidden]{display:none}.banner{padding:var(--spacing-4) var(--spacing-16);background:var(--status-brand-fill);color:var(--status-brand-on-fill);white-space:nowrap;font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-fontWeight-bold);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing);font-family:var(--typography-body-small-fontFamily);z-index:var(--z-base);border-start-start-radius:var(--shape-radius-md);border-start-end-radius:var(--shape-radius-md);position:absolute;bottom:100%;left:50%;transform:translate(-50%)}.badge{align-items:flex-start;gap:var(--spacing-8);margin-bottom:var(--spacing-16);flex-wrap:wrap;grid-row:1;display:flex}.title{margin-bottom:var(--spacing-8);grid-row:2}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h5-fontSize);--bd-heading-font-weight:var(--typography-fontWeight-bold);--bd-heading-line-height:var(--typography-heading-h5-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h5-letterSpacing);--bd-heading-font-family:var(--typography-heading-h5-fontFamily);--bd-heading-color:var(--color-text-primary);margin:0}.description{gap:var(--spacing-16);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-body-regular-fontWeight);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing);font-family:var(--typography-body-regular-fontFamily);color:var(--color-text-primary);flex-direction:column;grid-row:3;display:flex}::slotted(bd-p[slot=description]){--bd-paragraph-font-size:var(--typography-body-regular-fontSize);--bd-paragraph-font-weight:var(--typography-body-regular-fontWeight);--bd-paragraph-line-height:var(--typography-body-regular-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-regular-letterSpacing);--bd-heading-color:var(--color-text-primary);--bd-paragraph-color:var(--color-text-primary);--bd-paragraph-margin-bottom:0}.rule{margin-block:var(--spacing-16);grid-row:4}.price{margin-bottom:var(--spacing-24);--bd-pricing-price-full-font-size:var(--typography-label-large-fontSize);--bd-pricing-price-full-font-weight:var(--typography-label-large-fontWeight);--bd-pricing-price-full-line-height:var(--typography-label-large-lineHeight);--bd-pricing-price-full-letter-spacing:var(--typography-label-large-letterSpacing);--bd-pricing-price-amount-font-weight:var(--typography-fontWeight-bold);--bd-pricing-price-reference-gap:0;--bd-pricing-price-reference-direction-narrow:row;--bd-pricing-price-reference-spacing-narrow:var(--spacing-8);--bd-pricing-price-caption-gap:0;grid-row:5}.actions{gap:var(--spacing-8);flex-direction:column;grid-row:6;display:flex}.caption{margin-top:var(--spacing-8);font-size:var(--typography-caption-default-fontSize);font-weight:var(--typography-caption-default-fontWeight);line-height:var(--typography-caption-default-lineHeight);letter-spacing:var(--typography-caption-default-letterSpacing);font-family:var(--typography-caption-default-fontFamily);color:var(--color-text-primary);grid-row:7}.features{gap:var(--spacing-24);margin-top:var(--spacing-24);--bd-pricing-feature-group-inset:0;--bd-pricing-feature-group-title-gap:var(--spacing-8);--bd-pricing-feature-group-list-gap:var(--spacing-8);--bd-pricing-feature-group-title-font-size:var(--typography-heading-h6-fontSize);--bd-pricing-feature-group-title-font-weight:var(--typography-fontWeight-bold);--bd-pricing-feature-group-title-line-height:var(--typography-heading-h6-lineHeight);--bd-pricing-feature-row-gap:var(--spacing-12);--bd-pricing-feature-name-gap:0;--bd-pricing-feature-font-size:var(--typography-body-small-fontSize);--bd-pricing-feature-font-weight:var(--typography-body-small-fontWeight);--bd-pricing-feature-line-height:var(--typography-body-small-lineHeight);flex-direction:column;grid-row:8;display:flex}`,n=e`bd-pricing-card>:is(bd-h,bd-display)[slot=title] em{color:var(--color-text-brand);font-style:normal}:where(bd-grid[item-rows]) :is(bd-context,bd-product,bd-option):has(bd-pricing-card):not(bd-pricing-card *):not(bd-grid>*),:where(bd-grid[item-rows]) :is(bd-context,bd-product,bd-option)>bd-pricing-card{grid-row:1/-1;grid-template-rows:subgrid;grid-template-columns:minmax(0,1fr);row-gap:0;display:grid}:where(bd-grid:not([item-rows])) :is(bd-context,bd-product,bd-option):has(bd-pricing-card):not(bd-pricing-card *){display:contents}`;export{t as default,n as pageCSS};
2
2
  //# sourceMappingURL=pricing-card.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pricing-card.css.js","names":["pricing_card_css_default"],"sources":["../../../../src/components/pricing-card/pricing-card.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, headingRole } from \"#shared/token-scales.ts\";\n\n/* bd-pricing-card: 3.x v1's card (pricing-card.css.ts's .card,\n .highlight-banner, .card-header, .actions), the look that shipped. Its\n price zone is bd-pricing-price's, its features bd-pricing-feature-group's\n and bd-pricing-feature's, and the band under it bd-pricing-group's. */\nexport default css`\n /* As wide as its column, up to 3.x's card: .card's 360 measure, its 32\n inset either side and its edge. */\n :host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 100%;\n /* no token: 3.x's card measure, .card's max-width: 360px plus its\n --card-padding either side and its edge; no width on the scale is a\n card's */\n max-width: 426px;\n font-family: var(--typography-fontFamily-sans);\n }\n\n :host([hidden]) {\n display: none;\n }\n\n /* White, with the border/container edge: the second clause of CLAUDE.md's\n ground-and-edge rule, for a card on the tint bd-pricing-group draws.\n As tall as its row. A page column met inside the card -- a billing\n bd-tab-group in the price slot -- draws none: the card is not a\n section. */\n .card {\n position: relative;\n flex: 1 1 auto;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n background: var(--color-surface-default);\n border: var(--border-width-1) solid var(--color-border-container);\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n text-align: start;\n --bd-ensemble-max-width: none;\n --bd-ensemble-inline-padding: 0;\n }\n\n /* The highlighted plan's edge. */\n :host([highlight]) .card {\n /* The banner's green, so the edge is the banner's own fill role: no\n BORDER role carries it -- --status-success-border is a hairline four\n steps lighter, which a dark page turns dark. The fill is the same\n green-700 in both themes, as the banner is. */\n border: var(--border-width-2) solid var(--status-success-fill);\n }\n\n /* Each part's box is hidden while its slot is empty; the attribute's\n selector outweighs the display a box sets below. */\n .card [hidden] {\n display: none;\n }\n\n /* The highlighted card's ribbon, over its top edge: the success fill and\n its ink (bd-badge's fill pair), 85% of the card wide, centred, the top\n corners rounded. 3.x's -30px, on the scale. It is a label, not a\n heading, set in the heading-h6 role as bd-product-hero sets its kicker\n in heading-h4: 16 at 320 to 18 from 992. */\n .banner {\n position: absolute;\n top: calc(-1 * var(--spacing-28));\n left: 50%;\n transform: translateX(-50%);\n width: 85%;\n padding: var(--spacing-16) var(--spacing-8);\n background: var(--status-success-fill);\n color: var(--status-success-on-fill);\n border-start-start-radius: var(--shape-radius-2xl);\n border-start-end-radius: var(--shape-radius-2xl);\n text-align: center;\n font-size: var(--typography-heading-h6-fontSize);\n font-weight: var(--typography-heading-h6-fontWeight);\n line-height: var(--typography-heading-h6-lineHeight);\n letter-spacing: var(--typography-heading-h6-letterSpacing);\n font-family: var(--typography-heading-h6-fontFamily);\n z-index: var(--z-base);\n }\n\n .header {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n\n /* The plan's name: 3.x's h4, the heading-h4 role, at the level the page\n picks. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h4\"))}\n margin: 0;\n }\n\n .badges {\n display: flex;\n flex-wrap: wrap;\n gap: var(--spacing-8);\n }\n\n /* What the plan covers (\"1 account & 5 devices\"): 3.x's bd-p small, 8\n under the badge, in primary ink. */\n .description {\n margin-top: var(--spacing-8);\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n font-family: var(--typography-body-small-fontFamily);\n color: var(--color-text-primary);\n }\n\n /* 16 under the header, where 3.x's line under the description stood after\n its paragraph's margin. */\n .header + .rule {\n margin-top: var(--spacing-16);\n }\n\n /* 3.x's .pricing: 16 above the price zone, and 32 below it -- its own 16\n and the 16 its small print's paragraph carried. */\n .price {\n margin-block: var(--spacing-16) var(--spacing-32);\n }\n\n /* The buttons, stacked and as wide as the card, 12 apart (8 below md), 20\n above the rule over the features. */\n .actions {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-12);\n margin-bottom: var(--spacing-20);\n }\n\n @media ${unsafeCSS(below(\"md\"))} {\n .banner {\n padding: var(--spacing-8);\n }\n\n .actions {\n gap: var(--spacing-8);\n }\n }\n`;\n"],"mappings":"A,4DAOA,IAAAA,EAAe,CAAG,w0E"}
1
+ {"version":3,"file":"pricing-card.css.js","names":["pricing_card_css_default","pageCSS"],"sources":["../../../../src/components/pricing-card/pricing-card.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { bodyRole, headingRole, ink } from \"#shared/token-scales.ts\";\nimport { hostFillsWidth } from \"#shared/fill-width.css.ts\";\n\n/* bd-pricing-card: the pricing card's second version. Its price zone is\n bd-pricing-price's and its features bd-pricing-feature-group's and\n bd-pricing-feature's, set in this card's scale through their hooks; the\n row it lines up in is bd-grid's, with item-rows=\"8\".\n\n EIGHT ROWS, ONE PER PART: badge, title, description, the rule, price,\n actions, caption, features. The host is a grid of its own eight, and the\n card a subgrid of them; in a bd-grid with item-rows=\"8\" the host is in turn\n a subgrid of the grid's rows (grid.css.ts), so the parts of a row of cards\n line up however differently each one's words wrap. Each part names its\n row, so a part a card leaves out leaves its row empty rather than pulling\n the parts under it up a row. The parts are spaced by margins rather than\n the row gap, so an empty row in one card takes no room of its own. */\nexport default css`\n /* bd-grid places its items at start, so the host asks for its column's\n whole width rather than its content's (shared/fill-width.css.ts). The\n last row, the features, takes what the row of cards leaves. */\n :host {\n display: grid;\n grid-template-rows: repeat(7, auto) 1fr;\n font-family: var(--typography-fontFamily-sans);\n }\n\n ${hostFillsWidth()}\n\n :host([hidden]) {\n display: none;\n }\n\n /* White with the border/container edge: the cards of a row are a\n comparison set, which the tonal step alone does not sharpen (CLAUDE.md,\n A card's ground and its edge), on the page and on a tint alike. The card\n corner and the compact inset. A page column met inside the card -- a\n billing bd-tab-group in the price slot -- draws none. */\n .card {\n position: relative;\n display: grid;\n grid-row: 1 / -1;\n grid-template-rows: subgrid;\n grid-template-columns: minmax(0, 1fr);\n row-gap: 0;\n box-sizing: border-box;\n background: var(--color-surface-default);\n border: var(--border-width-1) solid var(--color-border-container);\n border-radius: var(--card-radius);\n padding: var(--card-padding-compact);\n text-align: start;\n --bd-ensemble-max-width: none;\n --bd-ensemble-inline-padding: 0;\n }\n\n /* The recommended plan's edge, two wide: the border takes the brand and an\n outline doubles it outside, so the card's content box stays where its\n neighbours' is and the rows still line up to the pixel. */\n :host([highlight]) .card {\n border-color: var(--color-border-brand);\n outline: var(--border-width-1) solid var(--color-border-brand);\n }\n\n /* Each part's box is hidden while its slot is empty; the attribute's\n selector outweighs the display a box sets below. */\n .card [hidden] {\n display: none;\n }\n\n /* The recommended plan's tab, standing on the card's top edge, centred:\n the brand fill and its ink, its top corners rounded: Figma's\n Recommended ribbon, 4/16 padding at radius/md, its words 14/700/145%. Out of the rows -- absolutely placed -- so a highlighted card's\n parts sit where its neighbours' do. */\n .banner {\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n padding: var(--spacing-4) var(--spacing-16);\n background: var(--status-brand-fill);\n color: var(--status-brand-on-fill);\n border-start-start-radius: var(--shape-radius-md);\n border-start-end-radius: var(--shape-radius-md);\n white-space: nowrap;\n font-size: var(--typography-body-small-fontSize);\n /* no role: the body-small role at 700, as Figma's ribbon sets it (IBM\n Plex Sans Bold, font-size/sm, 145%); no role carries 14px at that\n weight. */\n font-weight: var(--typography-fontWeight-bold);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n font-family: var(--typography-body-small-fontFamily);\n z-index: var(--z-base);\n }\n\n /* The plan's badge (\"Device Protection\"), 16 over the title. */\n .badge {\n grid-row: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--spacing-8);\n margin-bottom: var(--spacing-16);\n }\n\n /* The plan's name, 8 over what it covers. */\n .title {\n grid-row: 2;\n margin-bottom: var(--spacing-8);\n }\n\n /* The heading-h5 role in bold, at the level the page picks. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h5\"))}\n /* no role: the h5 role at 700, the plan's name as the design draws it;\n no heading role carries the h5 size at that weight (bd-card's title\n is the same pair). */\n --bd-heading-font-weight: var(--typography-fontWeight-bold);\n --bd-heading-color: var(--color-text-primary);\n margin: 0;\n }\n\n /* What the plan covers -- its accounts and devices, then the line on what\n it protects -- one bd-p per paragraph, 16 apart, at body-regular in\n primary ink, Figma's body/regular, set through bd-p's hooks with no flow\n margin: the gap is the spacing here. A <strong> the page writes is its\n own: Figma sets the pitch's first word at 700. The box sets the same\n role, so words slotted bare read alike. */\n .description {\n grid-row: 3;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n font-family: var(--typography-body-regular-fontFamily);\n color: var(--color-text-primary);\n }\n\n ::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-regular\"))}\n ${unsafeCSS(ink(\"strong\"))}\n --bd-paragraph-margin-bottom: 0;\n }\n\n /* The rule between what the plan is and what it costs, 16 either side.\n Its row is the one every card's rule shares, so the prices start on one\n line. */\n .rule {\n grid-row: 4;\n margin-block: var(--spacing-16);\n }\n\n /* The price zone in Figma's type, through bd-pricing-price's hooks: the\n struck price is price/was, the label-large role (16, medium, 150%),\n and the price is bold. */\n .price {\n grid-row: 5;\n margin-bottom: var(--spacing-24);\n --bd-pricing-price-full-font-size: var(--typography-label-large-fontSize);\n --bd-pricing-price-full-font-weight: var(--typography-label-large-fontWeight);\n --bd-pricing-price-full-line-height: var(--typography-label-large-lineHeight);\n --bd-pricing-price-full-letter-spacing: var(--typography-label-large-letterSpacing);\n /* no role: the heading-h3 price at 700, bold as Figma draws it; no role\n carries the h3 size at that weight. */\n --bd-pricing-price-amount-font-weight: var(--typography-fontWeight-bold);\n /* The struck price and the discount sit on one line at every width, as\n Figma draws them on a phone too, with nothing under them but the\n price's own leading: the zone's default 16 under each, and its\n stacking below md, spread the zone out on a phone. */\n --bd-pricing-price-reference-gap: 0;\n --bd-pricing-price-reference-direction-narrow: row;\n --bd-pricing-price-reference-spacing-narrow: var(--spacing-8);\n /* The small print sits right under the price, on the price's leading. */\n --bd-pricing-price-caption-gap: 0;\n }\n\n /* The buttons, stacked and as wide as the card, 8 apart. */\n .actions {\n grid-row: 6;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-8);\n }\n\n /* The guarantee under the buttons, in the caption role. */\n .caption {\n grid-row: 7;\n margin-top: var(--spacing-8);\n font-size: var(--typography-caption-default-fontSize);\n font-weight: var(--typography-caption-default-fontWeight);\n line-height: var(--typography-caption-default-lineHeight);\n letter-spacing: var(--typography-caption-default-letterSpacing);\n font-family: var(--typography-caption-default-fontFamily);\n color: var(--color-text-primary);\n }\n\n /* The features, 24 under the buttons, in the card's scale: each list's\n heading at heading-h6 in bold, 8 over its first feature and no inset of\n its own, the features at body-small 12 apart. The hooks inherit through\n the slot into bd-pricing-feature-group's and bd-pricing-feature's shadow\n roots; a list 24 under the one before it. */\n .features {\n grid-row: 8;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-24);\n margin-top: var(--spacing-24);\n --bd-pricing-feature-group-inset: 0;\n --bd-pricing-feature-group-title-gap: var(--spacing-8);\n --bd-pricing-feature-group-list-gap: var(--spacing-8);\n --bd-pricing-feature-group-title-font-size: var(--typography-heading-h6-fontSize);\n /* no role: the h6 role at 700, \"Includes:\" as the design draws it; no\n heading role carries the h6 size at that weight. */\n --bd-pricing-feature-group-title-font-weight: var(--typography-fontWeight-bold);\n --bd-pricing-feature-group-title-line-height: var(--typography-heading-h6-lineHeight);\n --bd-pricing-feature-row-gap: var(--spacing-12);\n --bd-pricing-feature-name-gap: 0;\n --bd-pricing-feature-font-size: var(--typography-body-small-fontSize);\n --bd-pricing-feature-font-weight: var(--typography-body-small-fontWeight);\n --bd-pricing-feature-line-height: var(--typography-body-small-lineHeight);\n }\n`;\n\n/* Adopted into the tree the card sits in (adoptStyles, in connectedCallback).\n\n bd-context, bd-product and bd-option set no display of their own: each is\n an inline box with a slot in it, and a card inside them would be the block\n inside an inline, never the grid's item. Only the wrappers around a card\n are touched, none inside one.\n\n IN A bd-grid WITH item-rows the wrapper the grid slots is its item, and\n bd-grid's own ::slotted() rule makes it the subgrid of the grid's rows,\n spaced as any item is; the wrappers inside it and the card are each a\n subgrid of the one around them, spanning all its rows. So the card's parts\n sit in the grid's rows through the chain, and nothing here reads the\n grid's private properties. The wrapper the grid slots is left to that\n rule: a document rule beats a shadow root's ::slotted(), so this one must\n not match it.\n\n IN ANY OTHER bd-grid the wrappers draw no box, and the card is the item.\n\n THE NAME'S ACCENT. A word the page writes in <em> inside the title --\n \"Ultimate Security <em>Plus</em>\" -- is drawn upright in the brand's text\n ink, Figma's text/brand. It is the page's markup, so it is styled where the\n page's markup is, in this document-scope sheet: no rule in the card's or\n bd-h's shadow root reaches a word inside a slotted heading. Nothing is\n parsed out of the words; 3.x found and coloured \"Plus\" itself, and v4\n leaves which word to the page. */\nexport const pageCSS = css`\n bd-pricing-card > :is(bd-h, bd-display)[slot=\"title\"] em {\n font-style: normal;\n color: var(--color-text-brand);\n }\n\n :where(bd-grid[item-rows]) :is(bd-context, bd-product, bd-option):has(bd-pricing-card):not(bd-pricing-card *):not(bd-grid > *),\n :where(bd-grid[item-rows]) :is(bd-context, bd-product, bd-option) > bd-pricing-card {\n display: grid;\n grid-row: 1 / -1;\n grid-template-rows: subgrid;\n grid-template-columns: minmax(0, 1fr);\n row-gap: 0;\n }\n\n :where(bd-grid:not([item-rows])) :is(bd-context, bd-product, bd-option):has(bd-pricing-card):not(bd-pricing-card *) {\n display: contents;\n }\n`;\n"],"mappings":"A,gGAiBA,IAAAA,EAAe,CAAG,6tJA2OLC,EAAU,CAAG,yhB"}