@repobit/dex-system-design 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
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
+ ## [4.2.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@4.1.0...@repobit/dex-system-design@4.2.0) (2026-11-17)
7
+
8
+ ### Features
9
+
10
+ * **DEX-1000:** add review carousel and review background none
11
+ * **DEX-1000:** move review carousel heading into slots and record its api
12
+
13
+ ### Bug Fixes
14
+
15
+ * **DEX-1000:** base review styles on main and add divider and background none
16
+ * **DEX-1000:** let reviews in bd-logo-marquee keep their own height
17
+ * **DEX-1000:** new variant for review component - review carousel
18
+ * **DEX-1000:** new variant for review component - review carousel
19
+ * **DEX-1000:** place review carousel in element api baseline order
20
+ * **DEX-1000:** rename review carousel subtitle slot to description
21
+ * **DEX-1000:** use breakpoint tokens and marked masks in review carousel
22
+ * **DEX-1000:** write review carousel story headings as slotted content
23
+
24
+
6
25
  ## [4.1.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@4.0.0...@repobit/dex-system-design@4.1.0) (2026-11-11)
7
26
 
8
27
  ### Features
@@ -1,2 +1,2 @@
1
- import{css as e}from"lit";var t=e`:host{display:block}.root{align-items:center;gap:var(--spacing-16);display:flex}.viewport{flex:auto;min-width:0;overflow:hidden;mask-image:linear-gradient(90deg,#0000,#000 12% 88%,#0000)}.track{width:max-content;animation:bd-logo-marquee var(--bd-logo-marquee-duration) var(--transition-easing-linear) infinite;display:flex}@keyframes bd-logo-marquee{to{transform:translateX(calc(-100% / var(--bd-logo-marquee-copies)))}}.viewport:hover .track,.viewport:focus-within .track,:host([paused]) .track{animation-play-state:paused}.group{align-items:center;gap:var(--bd-logo-marquee-gap);flex:none;padding-inline-end:var(--bd-logo-marquee-gap);display:flex}::slotted(*),.copy>*{flex:none}::slotted(:is(img,picture,bd-img,bd-picture)),.copy>:is(img,picture,bd-img,bd-picture){background-color:var(--color-surface-mark)}.toggle{flex:none}@media (prefers-reduced-motion:reduce){.viewport{mask-image:none}.track{width:100%;animation:none}.group{flex-wrap:wrap;flex:auto;justify-content:center;padding-inline-end:0}.copy,.toggle{display:none}}`;export{t as logoMarqueeCSS};
1
+ import{css as e}from"lit";var t=e`:host{display:block}.root{align-items:center;gap:var(--spacing-16);display:flex}.viewport{flex:auto;min-width:0;overflow:hidden;mask-image:linear-gradient(90deg,#0000,#000 12% 88%,#0000)}.track{width:max-content;animation:bd-logo-marquee var(--bd-logo-marquee-duration) var(--transition-easing-linear) infinite;display:flex}@keyframes bd-logo-marquee{to{transform:translateX(calc(-100% / var(--bd-logo-marquee-copies)))}}.viewport:hover .track,.viewport:focus-within .track,:host([paused]) .track{animation-play-state:paused}.group{align-items:center;gap:var(--bd-logo-marquee-gap);flex:none;padding-inline-end:var(--bd-logo-marquee-gap);display:flex}::slotted(*),.copy>*{flex:none}::slotted(bd-review),.copy>bd-review{align-self:flex-start;width:320px;height:auto}::slotted(:is(img,picture,bd-img,bd-picture)),.copy>:is(img,picture,bd-img,bd-picture){background-color:var(--color-surface-mark)}.toggle{flex:none}@media (prefers-reduced-motion:reduce){.viewport{mask-image:none}.track{width:100%;animation:none}.group{flex-wrap:wrap;flex:auto;justify-content:center;padding-inline-end:0}.copy,.toggle{display:none}}`;export{t as logoMarqueeCSS};
2
2
  //# sourceMappingURL=logo-marquee.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logo-marquee.css.js","names":["logoMarqueeCSS"],"sources":["../../../../src/components/logo-marquee/logo-marquee.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/* The track holds the slotted set and its copies side by side and moves left\n by exactly one of them -- 100% of the track divided by how many there are --\n then starts again. Each set carries the gap after its last logo as padding,\n so the space across the seam is the same as the space inside a set. */\nexport const logoMarqueeCSS = css`\n :host {\n display: block;\n }\n\n .root {\n display: flex;\n align-items: center;\n gap: var(--spacing-16);\n }\n\n .viewport {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n /* no token: a mask is read for its alpha only, so the colour is a\n placeholder for \"opaque\" and carries no ink. Solid from 12% to 88%, the\n fade the Figma Logo marquee draws. */\n mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);\n }\n\n .track {\n display: flex;\n width: max-content;\n animation: bd-logo-marquee var(--bd-logo-marquee-duration) var(--transition-easing-linear) infinite;\n }\n\n @keyframes bd-logo-marquee {\n to {\n transform: translateX(calc(-100% / var(--bd-logo-marquee-copies)));\n }\n }\n\n /* Held while the pointer or focus is on the row, and stopped by the paused\n attribute, which the button sets. */\n .viewport:hover .track,\n .viewport:focus-within .track,\n :host([paused]) .track {\n animation-play-state: paused;\n }\n\n .group {\n display: flex;\n flex: none;\n align-items: center;\n gap: var(--bd-logo-marquee-gap);\n padding-inline-end: var(--bd-logo-marquee-gap);\n }\n\n ::slotted(*),\n .copy > * {\n flex: none;\n }\n\n /* A logo is an image in its owner's colours, drawn for a white page -- the\n partners' wordmarks are near-black, an award badge has dark type on a\n transparent ground -- so on a dark page it would sink into the ground.\n Each sits on the mark plate, --color-surface-mark, a light ground in\n every theme, on its own box: on a white page that is the page, so light\n does not move. Words the page sets beside the logos (the trusted line's\n \"#1 most awarded\") are type, follow the theme, and take no plate; nor\n does a bd-mark, which paints its own (icons/mark.ts). */\n ::slotted(:is(img, picture, bd-img, bd-picture)),\n .copy > :is(img, picture, bd-img, bd-picture) {\n background-color: var(--color-surface-mark);\n }\n\n /* the pause button, at the row's inline end, outside the fade */\n .toggle {\n flex: none;\n }\n\n /* Still, and nothing hidden: the set wraps in place, and the copies and\n the fade go. */\n @media (prefers-reduced-motion: reduce) {\n .viewport {\n mask-image: none;\n }\n\n .track {\n width: 100%;\n animation: none;\n }\n\n .group {\n flex: 1 1 auto;\n flex-wrap: wrap;\n justify-content: center;\n padding-inline-end: 0;\n }\n\n .copy {\n display: none;\n }\n\n /* nothing moves, so there is nothing to pause */\n .toggle {\n display: none;\n }\n }\n`;\n"],"mappings":"A,0BAMA,IAAaA,EAAiB,CAAG,2gC"}
1
+ {"version":3,"file":"logo-marquee.css.js","names":["logoMarqueeCSS"],"sources":["../../../../src/components/logo-marquee/logo-marquee.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/* The track holds the slotted set and its copies side by side and moves left\n by exactly one of them -- 100% of the track divided by how many there are --\n then starts again. Each set carries the gap after its last logo as padding,\n so the space across the seam is the same as the space inside a set. */\nexport const logoMarqueeCSS = css`\n :host {\n display: block;\n }\n\n .root {\n display: flex;\n align-items: center;\n gap: var(--spacing-16);\n }\n\n .viewport {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n /* no token: a mask is read for its alpha only, so the colour is a\n placeholder for \"opaque\" and carries no ink. Solid from 12% to 88%, the\n fade the Figma Logo marquee draws. */\n mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);\n }\n\n .track {\n display: flex;\n width: max-content;\n animation: bd-logo-marquee var(--bd-logo-marquee-duration) var(--transition-easing-linear) infinite;\n }\n\n @keyframes bd-logo-marquee {\n to {\n transform: translateX(calc(-100% / var(--bd-logo-marquee-copies)));\n }\n }\n\n /* Held while the pointer or focus is on the row, and stopped by the paused\n attribute, which the button sets. */\n .viewport:hover .track,\n .viewport:focus-within .track,\n :host([paused]) .track {\n animation-play-state: paused;\n }\n\n .group {\n display: flex;\n flex: none;\n align-items: center;\n gap: var(--bd-logo-marquee-gap);\n padding-inline-end: var(--bd-logo-marquee-gap);\n }\n\n ::slotted(*),\n .copy > * {\n flex: none;\n }\n\n /* A review is a card of text, not a mark: it takes a card's width so its\n quote wraps instead of running the row out on one line, and its own\n height, standing at the top of the row, so reviews of different lengths\n line up along their tops. A review fills its row's height in a grid; in\n the marquee that would stretch every card to the tallest. */\n ::slotted(bd-review),\n .copy > bd-review {\n /* no token: the card width the review row was drawn at; no dimension\n token is a card's width */\n width: 320px;\n height: auto;\n align-self: flex-start;\n }\n\n /* A logo is an image in its owner's colours, drawn for a white page -- the\n partners' wordmarks are near-black, an award badge has dark type on a\n transparent ground -- so on a dark page it would sink into the ground.\n Each sits on the mark plate, --color-surface-mark, a light ground in\n every theme, on its own box: on a white page that is the page, so light\n does not move. Words the page sets beside the logos (the trusted line's\n \"#1 most awarded\") are type, follow the theme, and take no plate; nor\n does a bd-mark, which paints its own (icons/mark.ts). */\n ::slotted(:is(img, picture, bd-img, bd-picture)),\n .copy > :is(img, picture, bd-img, bd-picture) {\n background-color: var(--color-surface-mark);\n }\n\n /* the pause button, at the row's inline end, outside the fade */\n .toggle {\n flex: none;\n }\n\n /* Still, and nothing hidden: the set wraps in place, and the copies and\n the fade go. */\n @media (prefers-reduced-motion: reduce) {\n .viewport {\n mask-image: none;\n }\n\n .track {\n width: 100%;\n animation: none;\n }\n\n .group {\n flex: 1 1 auto;\n flex-wrap: wrap;\n justify-content: center;\n padding-inline-end: 0;\n }\n\n .copy {\n display: none;\n }\n\n /* nothing moves, so there is nothing to pause */\n .toggle {\n display: none;\n }\n }\n`;"],"mappings":"A,0BAMA,IAAaA,EAAiB,CAAG,8lC"}
@@ -8,6 +8,11 @@ import "../icons/play.js";
8
8
  * line ("#1 most awarded" and the partner marks) and the award strip under
9
9
  * Proven. Drawn in the foundation Figma file as Logo marquee.
10
10
  *
11
+ * It takes bd-review cards as well as logos: a review row is the same
12
+ * behaviour (the copies, the loop, the pause), so it is this element rather
13
+ * than a second one. A review takes a card's width and stands at the top of
14
+ * the row; see logo-marquee.css.ts.
15
+ *
11
16
  * The logos are the page's: slot them as they are (an <img> with its width
12
17
  * and height, an icon, a label). To loop without a seam the row has to be
13
18
  * longer than the window, so this element clones the slotted set into its
@@ -1 +1 @@
1
- {"version":3,"file":"logo-marquee.js","names":["_decorate","__decorate","LogoMarquee","LitElement","ensembleCSS","logoMarqueeCSS","viewport","group","copies","slot","items","copy","item","changed","spacing","nothing","property","state","defineElement"],"sources":["../../../../src/components/logo-marquee/logo-marquee.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/button/button.ts\";\nimport \"#components/icons/pause.ts\";\nimport \"#components/icons/play.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { spacing } from \"#shared/token-scales.ts\";\nimport { logoMarqueeCSS } from \"./logo-marquee.css.ts\";\n\n/**\n * A row of logos sliding sideways behind an edge fade: the homepage's trusted\n * line (\"#1 most awarded\" and the partner marks) and the award strip under\n * Proven. Drawn in the foundation Figma file as Logo marquee.\n *\n * The logos are the page's: slot them as they are (an <img> with its width\n * and height, an icon, a label). To loop without a seam the row has to be\n * longer than the window, so this element clones the slotted set into its\n * own shadow root as many times as the width needs and moves the whole track\n * by one copy -- the jump back is then exactly one repeat, and invisible. The\n * copies are aria-hidden and inert: a screen reader reads the set once.\n *\n * It moves on its own for longer than five seconds, so it has a pause button\n * (WCAG 2.2.2): holding it on hover or focus was not enough, because the\n * logos are usually images and nothing in the row takes focus. The button\n * sets `paused`, which a page can also set. The pointer or focus on the row\n * still holds it. Under prefers-reduced-motion it never moves -- the set\n * wraps in place instead, so nothing is hidden behind the fade -- and the\n * button goes with the motion.\n *\n * `without-pause-button` leaves the button out, and that is the page's call,\n * never the default: it takes away the one control that stops the motion,\n * which WCAG 2.2.2 (Pause, Stop, Hide, level A) asks of anything that moves\n * on its own for more than five seconds. What stays does not replace it. The\n * pointer on the row holds it only while it is there, focus only if the row\n * holds something focusable (a row of images holds nothing), and reduced\n * motion only for a reader who has asked their system for it. `paused` still\n * stops it, so a page that leaves the button out and stays within 2.2.2 gives\n * the reader its own control that sets `paused`; without one, the row no\n * longer meets 2.2.2.\n */\n@defineElement(\"bd-logo-marquee\")\nexport class LogoMarquee extends LitElement {\n @property({ type: String })\n label = \"\";\n // seconds for one copy to pass: 35 for the partners and the awards alike\n @property({ type: Number })\n duration = 35;\n // a step on the spacing scale, between two logos\n @property({ type: String })\n gap = \"48\";\n @property({ type: Boolean, reflect: true })\n paused = false;\n @property({ type: String, attribute: \"pause-label\" })\n pauseLabel = \"Pause the moving logos\";\n @property({ type: String, attribute: \"play-label\" })\n playLabel = \"Play the moving logos\";\n /** No pause button: the page takes the WCAG 2.2.2 control away, and owns\n stopping the motion from then on (see the class comment). */\n @property({ type: Boolean, attribute: \"without-pause-button\" })\n withoutPauseButton = false;\n // copies of the set after the original; at least one, or there is no loop\n @state()\n _copies = 1;\n\n _resize: ResizeObserver;\n _frame = 0;\n\n static styles = [ensembleCSS, logoMarqueeCSS];\n\n /* A resize is measured on the next frame, not inside the observer's\n delivery. A new copy count re-renders the track, and in WebKit that\n resizes a box this observer watches while the delivery is still running:\n Safari reported \"ResizeObserver loop completed with undelivered\n notifications\" on every homepage load. Measured a frame later, the new\n size is an ordinary delivery of its own. */\n constructor() {\n super();\n this._resize = new ResizeObserver(() => {\n cancelAnimationFrame(this._frame);\n this._frame = requestAnimationFrame(() => this._measure());\n });\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.hasUpdated) this._observe();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._resize.disconnect();\n cancelAnimationFrame(this._frame);\n }\n\n firstUpdated() {\n this._observe();\n }\n\n _observe() {\n this._resize.observe(this.renderRoot.querySelector(\".viewport\")!);\n this._resize.observe(this.renderRoot.querySelector(\".group\")!);\n }\n\n /* One copy must cover the window on its own while the original slides out,\n so a set narrower than the window takes more than one. */\n _measure() {\n const viewport = this.renderRoot.querySelector<HTMLElement>(\".viewport\");\n const group = this.renderRoot.querySelector<HTMLElement>(\".group\");\n if (!viewport || !group || !group.offsetWidth) return;\n const copies = Math.max(1, Math.ceil(viewport.offsetWidth / group.offsetWidth));\n if (copies !== this._copies) this._copies = copies;\n }\n\n _onSlotChange() {\n this._fillCopies();\n this._measure();\n }\n\n _fillCopies() {\n const slot = this.renderRoot.querySelector(\"slot\");\n if (!slot) return;\n const items = slot.assignedElements({ flatten: true });\n for (const copy of this.renderRoot.querySelectorAll(\".copy\")) {\n copy.replaceChildren(...items.map(item => item.cloneNode(true)));\n }\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has(\"_copies\")) this._fillCopies();\n }\n\n _toggle() {\n this.paused = !this.paused;\n }\n\n render() {\n const copies = Array.from({ length: this._copies });\n return html`\n <section\n class=\"bd-ensemble root\"\n aria-label=\"${this.label}\"\n style=\"--bd-logo-marquee-gap: ${spacing(this.gap) || \"var(--spacing-48)\"}; --bd-logo-marquee-duration: ${this.duration}s; --bd-logo-marquee-copies: ${this._copies + 1};\"\n >\n <div class=\"viewport\">\n <div class=\"track\">\n <div class=\"group\"><slot @slotchange=${this._onSlotChange}></slot></div>\n ${copies.map(() => html`<div class=\"group copy\" aria-hidden=\"true\" inert></div>`)}\n </div>\n </div>\n ${this.withoutPauseButton\n ? nothing\n : html`<bd-button\n class=\"toggle\"\n appearance=\"ghost\"\n size=\"sm\"\n @click=${this._toggle}\n >${this.paused\n ? html`<bd-icon name=\"play\" size=\"sm\" label=\"${this.playLabel}\"></bd-icon>`\n : html`<bd-icon name=\"pause\" size=\"sm\" label=\"${this.pauseLabel}\"></bd-icon>`}</bd-button>`}\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-logo-marquee\": LogoMarquee;\n }\n}\n"],"mappings":"A,ugBA4CO,IAAME,EAAN,cAA0BC,CAAW,C,OA0B1B,KAAA,OAAA,CAACC,EAAaC,CAAc,C,CAQ5C,aAAc,CACZ,MAAM,EAjCA,KAAA,MAAA,GAGG,KAAA,SAAA,GAGL,KAAA,IAAA,KAEG,KAAA,OAAA,GAEI,KAAA,WAAA,yBAED,KAAA,UAAA,wBAIS,KAAA,mBAAA,GAGX,KAAA,QAAA,EAGD,KAAA,OA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hB,CAAA,E"}
1
+ {"version":3,"file":"logo-marquee.js","names":["_decorate","__decorate","LogoMarquee","LitElement","ensembleCSS","logoMarqueeCSS","viewport","group","copies","slot","items","copy","item","changed","spacing","nothing","property","state","defineElement"],"sources":["../../../../src/components/logo-marquee/logo-marquee.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/button/button.ts\";\nimport \"#components/icons/pause.ts\";\nimport \"#components/icons/play.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { spacing } from \"#shared/token-scales.ts\";\nimport { logoMarqueeCSS } from \"./logo-marquee.css.ts\";\n\n/**\n * A row of logos sliding sideways behind an edge fade: the homepage's trusted\n * line (\"#1 most awarded\" and the partner marks) and the award strip under\n * Proven. Drawn in the foundation Figma file as Logo marquee.\n *\n * It takes bd-review cards as well as logos: a review row is the same\n * behaviour (the copies, the loop, the pause), so it is this element rather\n * than a second one. A review takes a card's width and stands at the top of\n * the row; see logo-marquee.css.ts.\n *\n * The logos are the page's: slot them as they are (an <img> with its width\n * and height, an icon, a label). To loop without a seam the row has to be\n * longer than the window, so this element clones the slotted set into its\n * own shadow root as many times as the width needs and moves the whole track\n * by one copy -- the jump back is then exactly one repeat, and invisible. The\n * copies are aria-hidden and inert: a screen reader reads the set once.\n *\n * It moves on its own for longer than five seconds, so it has a pause button\n * (WCAG 2.2.2): holding it on hover or focus was not enough, because the\n * logos are usually images and nothing in the row takes focus. The button\n * sets `paused`, which a page can also set. The pointer or focus on the row\n * still holds it. Under prefers-reduced-motion it never moves -- the set\n * wraps in place instead, so nothing is hidden behind the fade -- and the\n * button goes with the motion.\n *\n * `without-pause-button` leaves the button out, and that is the page's call,\n * never the default: it takes away the one control that stops the motion,\n * which WCAG 2.2.2 (Pause, Stop, Hide, level A) asks of anything that moves\n * on its own for more than five seconds. What stays does not replace it. The\n * pointer on the row holds it only while it is there, focus only if the row\n * holds something focusable (a row of images holds nothing), and reduced\n * motion only for a reader who has asked their system for it. `paused` still\n * stops it, so a page that leaves the button out and stays within 2.2.2 gives\n * the reader its own control that sets `paused`; without one, the row no\n * longer meets 2.2.2.\n */\n@defineElement(\"bd-logo-marquee\")\nexport class LogoMarquee extends LitElement {\n @property({ type: String })\n label = \"\";\n // seconds for one copy to pass: 35 for the partners and the awards alike\n @property({ type: Number })\n duration = 35;\n // a step on the spacing scale, between two logos\n @property({ type: String })\n gap = \"48\";\n @property({ type: Boolean, reflect: true })\n paused = false;\n @property({ type: String, attribute: \"pause-label\" })\n pauseLabel = \"Pause the moving logos\";\n @property({ type: String, attribute: \"play-label\" })\n playLabel = \"Play the moving logos\";\n /** No pause button: the page takes the WCAG 2.2.2 control away, and owns\n stopping the motion from then on (see the class comment). */\n @property({ type: Boolean, attribute: \"without-pause-button\" })\n withoutPauseButton = false;\n // copies of the set after the original; at least one, or there is no loop\n @state()\n _copies = 1;\n\n _resize: ResizeObserver;\n _frame = 0;\n\n static styles = [ensembleCSS, logoMarqueeCSS];\n\n /* A resize is measured on the next frame, not inside the observer's\n delivery. A new copy count re-renders the track, and in WebKit that\n resizes a box this observer watches while the delivery is still running:\n Safari reported \"ResizeObserver loop completed with undelivered\n notifications\" on every homepage load. Measured a frame later, the new\n size is an ordinary delivery of its own. */\n constructor() {\n super();\n this._resize = new ResizeObserver(() => {\n cancelAnimationFrame(this._frame);\n this._frame = requestAnimationFrame(() => this._measure());\n });\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.hasUpdated) this._observe();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._resize.disconnect();\n cancelAnimationFrame(this._frame);\n }\n\n firstUpdated() {\n this._observe();\n }\n\n _observe() {\n this._resize.observe(this.renderRoot.querySelector(\".viewport\")!);\n this._resize.observe(this.renderRoot.querySelector(\".group\")!);\n }\n\n /* One copy must cover the window on its own while the original slides out,\n so a set narrower than the window takes more than one. */\n _measure() {\n const viewport = this.renderRoot.querySelector<HTMLElement>(\".viewport\");\n const group = this.renderRoot.querySelector<HTMLElement>(\".group\");\n if (!viewport || !group || !group.offsetWidth) return;\n const copies = Math.max(1, Math.ceil(viewport.offsetWidth / group.offsetWidth));\n if (copies !== this._copies) this._copies = copies;\n }\n\n _onSlotChange() {\n this._fillCopies();\n this._measure();\n }\n\n _fillCopies() {\n const slot = this.renderRoot.querySelector(\"slot\");\n if (!slot) return;\n const items = slot.assignedElements({ flatten: true });\n for (const copy of this.renderRoot.querySelectorAll(\".copy\")) {\n copy.replaceChildren(...items.map(item => item.cloneNode(true)));\n }\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has(\"_copies\")) this._fillCopies();\n }\n\n _toggle() {\n this.paused = !this.paused;\n }\n\n render() {\n const copies = Array.from({ length: this._copies });\n return html`\n <section\n class=\"bd-ensemble root\"\n aria-label=\"${this.label}\"\n style=\"--bd-logo-marquee-gap: ${spacing(this.gap) || \"var(--spacing-48)\"}; --bd-logo-marquee-duration: ${this.duration}s; --bd-logo-marquee-copies: ${this._copies + 1};\"\n >\n <div class=\"viewport\">\n <div class=\"track\">\n <div class=\"group\"><slot @slotchange=${this._onSlotChange}></slot></div>\n ${copies.map(() => html`<div class=\"group copy\" aria-hidden=\"true\" inert></div>`)}\n </div>\n </div>\n ${this.withoutPauseButton\n ? nothing\n : html`<bd-button\n class=\"toggle\"\n appearance=\"ghost\"\n size=\"sm\"\n @click=${this._toggle}\n >${this.paused\n ? html`<bd-icon name=\"play\" size=\"sm\" label=\"${this.playLabel}\"></bd-icon>`\n : html`<bd-icon name=\"pause\" size=\"sm\" label=\"${this.pauseLabel}\"></bd-icon>`}</bd-button>`}\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-logo-marquee\": LogoMarquee;\n }\n}\n"],"mappings":"A,ugBAiDO,IAAME,EAAN,cAA0B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AAA,EAIlDF,EAAA,CAAAgB,EAAS,CAAE,KAAM,QAAS,UAAW,sBAAuB,CAAC,CAAA,EAAAd,EAAA,UAAA,qBAAA,IAAA,EAAA,EAG7DF,EAAA,CAAAiB,EAAM,CAAA,EAAAf,EAAA,UAAA,UAAA,IAAA,EAAA,EArBR,EAAAF,EAAA,CAAAkB,EAAc,iBAAiB,CAAA,EAAAhB,CAAA,E"}
@@ -1,2 +1,2 @@
1
- import{css as e}from"lit";var t=e`:host{height:100%;font-family:var(--typography-fontFamily-sans);box-sizing:border-box;display:block}.bd-review-card{background:var(--status-brand-surface);border-radius:var(--shape-radius-3xl);padding:var(--spacing-28);box-sizing:border-box;flex-direction:column;height:100%;display:flex}:host([background=container]) .bd-review-card{background:var(--color-surface-container)}.bd-review-card>[hidden],.bd-review-meta>[hidden]{display:none}.bd-review-mark{color:var(--color-text-brand);margin-bottom:var(--spacing-8);display:block}.bd-review-quote{color:var(--color-text-primary);font-family:var(--typography-body-regular-fontFamily);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-body-regular-fontWeight);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing);flex-grow:1;margin:0}.bd-review-meta{gap:var(--spacing-16);margin-top:var(--spacing-32);flex-direction:column;display:flex}.bd-review-source{color:var(--color-text-primary);font-family:var(--typography-body-small-fontFamily);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);margin:0}.bd-review-date{color:var(--color-text-muted);font-family:var(--typography-body-small-fontFamily);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)}`;export{t as default};
1
+ import{css as e}from"lit";var t=e`:host{height:100%;font-family:var(--typography-fontFamily-sans);box-sizing:border-box;display:block}.bd-review-card{background:var(--status-brand-surface);border-radius:var(--shape-radius-3xl);padding:var(--spacing-28);box-sizing:border-box;flex-direction:column;height:100%;display:flex}:host([background=container]) .bd-review-card{background:var(--color-surface-container)}:host([background=none]) .bd-review-card{padding:var(--spacing-0);background:0 0}.bd-review-card>[hidden],.bd-review-meta>[hidden]{display:none}.bd-review-mark{color:var(--color-text-brand);margin-bottom:var(--spacing-8);display:block}.bd-review-quote{color:var(--color-text-primary);font-family:var(--typography-body-regular-fontFamily);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-body-regular-fontWeight);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing);flex-grow:1;margin:0}.bd-review-divider{width:var(--spacing-24);height:var(--spacing-1);margin-top:var(--spacing-16);background:var(--status-brand-accent);flex-shrink:0;display:block}.bd-review-meta{gap:var(--spacing-4);margin-top:var(--spacing-16);flex-direction:column;display:flex}.bd-review-source{color:var(--color-text-primary);font-family:var(--typography-body-small-fontFamily);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);margin:0}.bd-review-date{color:var(--color-text-muted);font-family:var(--typography-body-small-fontFamily);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)}`;export{t as default};
2
2
  //# sourceMappingURL=review.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"review.css.js","names":["review_css_default"],"sources":["../../../../src/components/review/review.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/* The card 3.x drew, measured against that render: the same ground, corner,\n inset, sizes, inks and distances. 3.x set the quote and the source in bd-p,\n whose <p> carried the 16px flow margin; the distances that margin made are\n spelled here, on the review's own boxes. */\nexport default css`\n :host {\n display: block;\n height: 100%;\n font-family: var(--typography-fontFamily-sans);\n box-sizing: border-box;\n }\n\n .bd-review-card {\n background: var(--status-brand-surface);\n border-radius: var(--shape-radius-3xl);\n padding: var(--spacing-28);\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n :host([background=\"container\"]) .bd-review-card {\n background: var(--color-surface-container);\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 .bd-review-card > [hidden],\n .bd-review-meta > [hidden] {\n display: none;\n }\n\n .bd-review-mark {\n display: block;\n color: var(--color-text-brand);\n margin-bottom: var(--spacing-8);\n }\n\n /* The quote, in the body role bd-p's regular appearance drew. It takes the\n card's spare height, so the meta of a row of cards sits at the foot. */\n .bd-review-quote {\n margin: 0;\n flex-grow: 1;\n color: var(--color-text-primary);\n font-family: var(--typography-body-regular-fontFamily);\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n }\n\n /* 32 above the meta: the quote paragraph's 16 flow margin and the 16 3.x\n set under it. Above the meta rather than under the quote, so a review\n with no source and no date ends at the card's inset. The 16 between the\n source and the date is the source paragraph's flow margin; as a gap, a\n source with no date under it carries none. */\n .bd-review-meta {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n margin-top: var(--spacing-32);\n }\n\n /* The source, at body-small in bold, as bd-p small font-weight=\"bold\" drew\n it. */\n .bd-review-source {\n margin: 0;\n color: var(--color-text-primary);\n font-family: var(--typography-body-small-fontFamily);\n font-size: var(--typography-body-small-fontSize);\n /* no role: body-small at bold, which 3.x drew through bd-p's font-weight\n prop; no role carries it, and label-default's medium 500 would lighten\n every source */\n font-weight: var(--typography-fontWeight-bold);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n }\n\n .bd-review-date {\n color: var(--color-text-muted);\n font-family: var(--typography-body-small-fontFamily);\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 }\n`;\n"],"mappings":"A,0BAMA,IAAAA,EAAe,CAAG,gkD"}
1
+ {"version":3,"file":"review.css.js","names":["review_css_default"],"sources":["../../../../src/components/review/review.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/* The card 3.x drew, measured against that render: the same ground, corner,\n inset, sizes, inks and distances. 3.x set the quote and the source in bd-p,\n whose <p> carried the 16px flow margin; the distances that margin made are\n spelled here, on the review's own boxes. */\nexport default css`\n :host {\n display: block;\n height: 100%;\n font-family: var(--typography-fontFamily-sans);\n box-sizing: border-box;\n }\n\n .bd-review-card {\n background: var(--status-brand-surface);\n border-radius: var(--shape-radius-3xl);\n padding: var(--spacing-28);\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n :host([background=\"container\"]) .bd-review-card {\n background: var(--color-surface-container);\n }\n\n :host([background=\"none\"]) .bd-review-card {\n background: none;\n padding: var(--spacing-0);\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 .bd-review-card > [hidden],\n .bd-review-meta > [hidden] {\n display: none;\n }\n\n .bd-review-mark {\n display: block;\n color: var(--color-text-brand);\n margin-bottom: var(--spacing-8);\n }\n\n /* The quote, in the body role bd-p's regular appearance drew. It takes the\n card's spare height, so the meta of a row of cards sits at the foot. */\n .bd-review-quote {\n margin: 0;\n flex-grow: 1;\n color: var(--color-text-primary);\n font-family: var(--typography-body-regular-fontFamily);\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n }\n\n .bd-review-divider {\n display: block;\n flex-shrink: 0;\n width: var(--spacing-24);\n height: var(--spacing-1);\n margin-top: var(--spacing-16);\n background: var(--status-brand-accent);\n }\n\n /* The brand rule sits 16 under the quote and the meta 16 under the rule,\n 4 between the source and the date: the review as the reviews redesign\n draws it, in a grid and in a marquee alike. The rule and the meta are\n hidden together when neither a source nor a date is slotted, so a quote\n alone ends at the card's inset. */\n .bd-review-meta {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-4);\n margin-top: var(--spacing-16);\n }\n\n /* The source, at body-small in bold, as bd-p small font-weight=\"bold\" drew\n it. */\n .bd-review-source {\n margin: 0;\n color: var(--color-text-primary);\n font-family: var(--typography-body-small-fontFamily);\n font-size: var(--typography-body-small-fontSize);\n /* no role: body-small at bold, which 3.x drew through bd-p's font-weight\n prop; no role carries it, and label-default's medium 500 would lighten\n every source */\n font-weight: var(--typography-fontWeight-bold);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n }\n\n .bd-review-date {\n color: var(--color-text-muted);\n font-family: var(--typography-body-small-fontFamily);\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 }\n`;"],"mappings":"A,0BAMA,IAAAA,EAAe,CAAG,kzD"}
@@ -3,7 +3,7 @@ import { SlotController } from "../shared/controller.slot.js";
3
3
  import "../../tokens/tokens.js";
4
4
  import "../icons/quote.js";
5
5
  import "../p/p.js";
6
- declare const BACKGROUNDS: readonly ["tint", "container"];
6
+ declare const BACKGROUNDS: readonly ["tint", "container", "none"];
7
7
  type Background = typeof BACKGROUNDS[number];
8
8
  type Part = "" | "caption" | "date";
9
9
  /**
@@ -26,7 +26,7 @@ type Part = "" | "caption" | "date";
26
26
  */
27
27
  export declare class BdReview extends LitElement {
28
28
  static styles: import("lit").CSSResult[];
29
- /** The card's ground: tint (default) | container. */
29
+ /** The card's ground: tint (default) | container | none. */
30
30
  background: Background;
31
31
  _internals: ElementInternals;
32
32
  _slots: SlotController<Part>;
@@ -1,8 +1,9 @@
1
- import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf 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"../icons/quote.js";import i from"./review.css.js";import{LitElement as a,html as o}from"lit";import{property as s}from"lit/decorators.js";var c=[`tint`,`container`],l=class extends a{static{this.styles=[i]}constructor(){super(),this.background=`tint`,this._slots=new r(this,{slots:[``,`caption`,`date`]}),this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._internals.role=this.parentElement?.localName===`bd-review-grid`?`listitem`:null}willUpdate(e){e.has(`background`)&&!t(c,this.background)&&(this.background=`tint`)}render(){let e=e=>this._slots.has(e);return o`
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf 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"../icons/quote.js";import i from"./review.css.js";import{LitElement as a,html as o}from"lit";import{property as s}from"lit/decorators.js";var c=[`tint`,`container`,`none`],l=class extends a{static{this.styles=[i]}constructor(){super(),this.background=`tint`,this._slots=new r(this,{slots:[``,`caption`,`date`]}),this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._internals.role=this.parentElement?.localName===`bd-review-grid`?`listitem`:null}willUpdate(e){e.has(`background`)&&!t(c,this.background)&&(this.background=`tint`)}render(){let e=e=>this._slots.has(e),t=e(`caption`)||e(`date`);return o`
2
2
  <div class="bd-review-card">
3
3
  <bd-icon name="quote" class="bd-review-mark" size="xl"></bd-icon>
4
4
  <p class="bd-review-quote" ?hidden=${!e(``)}><slot></slot></p>
5
- <div class="bd-review-meta" ?hidden=${!e(`caption`)&&!e(`date`)}>
5
+ <span class="bd-review-divider" aria-hidden="true" ?hidden=${!t}></span>
6
+ <div class="bd-review-meta" ?hidden=${!t}>
6
7
  <p class="bd-review-source" ?hidden=${!e(`caption`)}><slot name="caption"></slot></p>
7
8
  <div class="bd-review-date" ?hidden=${!e(`date`)}><slot name="date"></slot></div>
8
9
  </div>
@@ -1 +1 @@
1
- {"version":3,"file":"review.js","names":["reviewCSS","_decorate","__decorate","review_css_default","BACKGROUNDS","BdReview","LitElement","SlotController","changed","isOneOf","has","part","property","defineElement"],"sources":["../../../../src/components/review/review.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { isOneOf } from \"#shared/prop-vocabulary.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/icons/quote.ts\";\n/* 3.x drew the quote and the source in bd-p, so its module registered it,\n and a page importing only this module still gets it. */\nimport \"#components/p/p.ts\";\nimport reviewCSS from \"./review.css.ts\";\n\n/* The ground the card is drawn on. A ground, not a look (N5): `tint` is the\n brand's lightest wash, --status-brand-surface, so it follows the business\n line's brand; `container` is --color-surface-container, the ground\n bd-card and bd-bento-item draw by default and call by the same word. It\n was `variant`, whose \"neutral\" would read as the meaning neutral, which\n the look and meaning vocabularies keep apart (N6). */\nconst BACKGROUNDS = [\"tint\", \"container\"] as const;\ntype Background = typeof BACKGROUNDS[number];\n\ntype Part = \"\" | \"caption\" | \"date\";\n\n/**\n * A single testimonial: the quote, who said it, and when.\n *\n * <bd-review background=\"tint\">\n * If you're looking to buy a security suite, our experts and readers agree: Bitdefender should be your top choice.\n * <span slot=\"caption\">PCMag</span>\n * <span slot=\"date\">February 3, 2026</span>\n * </bd-review>\n *\n * The quote is the review's content, so it is the default slot (3.x's\n * `quote`), and the source is its `caption` (3.x's `source`). All three are\n * text: the review sets their type and ink -- the quote at body-regular, the\n * source at body-small bold, the date at body-small in muted ink -- so the\n * page writes words, not paragraphs. 3.x drew the quote and source in its own\n * bd-p; the slots sit in its own boxes now. Each part's box is hidden while\n * its slot is empty, and the quote takes the card's spare height, so the\n * sources of a row of reviews line up at the foot.\n */\n@defineElement(\"bd-review\")\nexport class BdReview extends LitElement {\n static styles = [reviewCSS];\n\n /** The card's ground: tint (default) | container. */\n @property({ type: String, attribute: \"background\", reflect: true })\n background: Background = \"tint\";\n\n _internals: ElementInternals;\n\n _slots = new SlotController<Part>(this, { slots: [\"\", \"caption\", \"date\"] });\n\n constructor() {\n super();\n this._internals = this.attachInternals();\n }\n\n /* In a bd-review-grid, a review is one item of the grid's list -- a list\n whose children are not list items is announced as an empty list, or not\n at all (axe: aria-required-children). The role is the element's own,\n through ElementInternals, as bd-breadcrumb-item's is: the grid used to\n write role=\"listitem\" onto the page's markup, where it stayed after the\n review left the list. A role the page writes on the element still wins,\n and outside a grid a review is no item of anything. */\n connectedCallback() {\n super.connectedCallback();\n this._internals.role = this.parentElement?.localName === \"bd-review-grid\" ? \"listitem\" : null;\n }\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"background\") && !isOneOf(BACKGROUNDS, this.background)) this.background = \"tint\";\n }\n\n render() {\n const has = (part: Part) => this._slots.has(part);\n return html`\n <div class=\"bd-review-card\">\n <bd-icon name=\"quote\" class=\"bd-review-mark\" size=\"xl\"></bd-icon>\n <p class=\"bd-review-quote\" ?hidden=${!has(\"\")}><slot></slot></p>\n <div class=\"bd-review-meta\" ?hidden=${!has(\"caption\") && !has(\"date\")}>\n <p class=\"bd-review-source\" ?hidden=${!has(\"caption\")}><slot name=\"caption\"></slot></p>\n <div class=\"bd-review-date\" ?hidden=${!has(\"date\")}><slot name=\"date\"></slot></div>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-review\": BdReview;\n }\n}\n"],"mappings":"A,6bAmBA,IAAMI,EAAc,CAAC,OAAQ,WAAW,EAwB3BC,EAAN,cAAuBC,CAAW,C,OACvB,KAAA,OAAA,CAACN,CAAS,C,CAU1B,aAAc,CACZ,MAAM,EAPiB,KAAA,WAAA,OAIhB,KAAA,OAAA,IAAIO,EAAqB,KAAM,CAAE,MAAO,CAAC,GAAI,UAAW,MAAM,CAAE,CAAC,EAIxE,KAAK,WAAa,KAAK,gBAAgB,CACzC,CASA,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,KAAK,WAAW,KAAO,KAAK,eAAe,YAAc,iBAAmB,WAAa,IAC3F,CAEA,WAAW,EAA+B,CACpCC,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQL,EAAa,KAAK,UAAU,IAAG,KAAK,WAAa,OAC7F,CAEA,QAAS,CACP,IAAMM,EAAO,GAAe,KAAK,OAAO,IAAIC,CAAI,EAChD,MAAO,EAAI;;;6CAG8B,CAACD,EAAI,EAAE,EAAE;8CACR,CAACA,EAAI,SAAS,GAAK,CAACA,EAAI,MAAM,EAAE;gDAC9B,CAACA,EAAI,SAAS,EAAE;gDAChB,CAACA,EAAI,MAAM,EAAE;;;KAI3D,CACF,EAzCGT,EAAA,CAAAW,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,QAAS,EAAK,CAAC,CAAA,EAAAP,EAAA,UAAA,aAAA,IAAA,EAAA,EALnE,EAAAJ,EAAA,CAAAY,EAAc,WAAW,CAAA,EAAAR,CAAA,E"}
1
+ {"version":3,"file":"review.js","names":["reviewCSS","_decorate","__decorate","review_css_default","BACKGROUNDS","BdReview","LitElement","SlotController","changed","isOneOf","has","part","hasMeta","property","defineElement"],"sources":["../../../../src/components/review/review.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { isOneOf } from \"#shared/prop-vocabulary.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/icons/quote.ts\";\n/* 3.x drew the quote and the source in bd-p, so its module registered it,\n and a page importing only this module still gets it. */\nimport \"#components/p/p.ts\";\nimport reviewCSS from \"./review.css.ts\";\n\n/* The ground the card is drawn on. A ground, not a look (N5): `tint` is the\n brand's lightest wash, --status-brand-surface, so it follows the business\n line's brand; `container` is --color-surface-container, the ground\n bd-card and bd-bento-item draw by default and call by the same word. It\n was `variant`, whose \"neutral\" would read as the meaning neutral, which\n the look and meaning vocabularies keep apart (N6). */\nconst BACKGROUNDS = [\"tint\", \"container\", \"none\"] as const;\ntype Background = typeof BACKGROUNDS[number];\n\ntype Part = \"\" | \"caption\" | \"date\";\n\n/**\n * A single testimonial: the quote, who said it, and when.\n *\n * <bd-review background=\"tint\">\n * If you're looking to buy a security suite, our experts and readers agree: Bitdefender should be your top choice.\n * <span slot=\"caption\">PCMag</span>\n * <span slot=\"date\">February 3, 2026</span>\n * </bd-review>\n *\n * The quote is the review's content, so it is the default slot (3.x's\n * `quote`), and the source is its `caption` (3.x's `source`). All three are\n * text: the review sets their type and ink -- the quote at body-regular, the\n * source at body-small bold, the date at body-small in muted ink -- so the\n * page writes words, not paragraphs. 3.x drew the quote and source in its own\n * bd-p; the slots sit in its own boxes now. Each part's box is hidden while\n * its slot is empty, and the quote takes the card's spare height, so the\n * sources of a row of reviews line up at the foot.\n */\n@defineElement(\"bd-review\")\nexport class BdReview extends LitElement {\n static styles = [reviewCSS];\n\n /** The card's ground: tint (default) | container | none. */\n @property({ type: String, attribute: \"background\", reflect: true })\n background: Background = \"tint\";\n\n _internals: ElementInternals;\n\n _slots = new SlotController<Part>(this, { slots: [\"\", \"caption\", \"date\"] });\n\n constructor() {\n super();\n this._internals = this.attachInternals();\n }\n\n /* In a bd-review-grid, a review is one item of the grid's list -- a list\n whose children are not list items is announced as an empty list, or not\n at all (axe: aria-required-children). The role is the element's own,\n through ElementInternals, as bd-breadcrumb-item's is: the grid used to\n write role=\"listitem\" onto the page's markup, where it stayed after the\n review left the list. A role the page writes on the element still wins,\n and outside a grid a review is no item of anything. */\n connectedCallback() {\n super.connectedCallback();\n this._internals.role = this.parentElement?.localName === \"bd-review-grid\" ? \"listitem\" : null;\n }\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"background\") && !isOneOf(BACKGROUNDS, this.background)) this.background = \"tint\";\n }\n\n render() {\n const has = (part: Part) => this._slots.has(part);\n const hasMeta = has(\"caption\") || has(\"date\");\n return html`\n <div class=\"bd-review-card\">\n <bd-icon name=\"quote\" class=\"bd-review-mark\" size=\"xl\"></bd-icon>\n <p class=\"bd-review-quote\" ?hidden=${!has(\"\")}><slot></slot></p>\n <span class=\"bd-review-divider\" aria-hidden=\"true\" ?hidden=${!hasMeta}></span>\n <div class=\"bd-review-meta\" ?hidden=${!hasMeta}>\n <p class=\"bd-review-source\" ?hidden=${!has(\"caption\")}><slot name=\"caption\"></slot></p>\n <div class=\"bd-review-date\" ?hidden=${!has(\"date\")}><slot name=\"date\"></slot></div>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-review\": BdReview;\n }\n}"],"mappings":"A,6bAmBA,IAAMI,EAAc,CAAC,OAAQ,YAAa,MAAM,EAwBnCC,EAAN,cAAuBC,CAAW,C,OACvB,KAAA,OAAA,CAACN,CAAS,C,CAU1B,aAAc,CACZ,MAAM,EAPiB,KAAA,WAAA,OAIhB,KAAA,OAAA,IAAIO,EAAqB,KAAM,CAAE,MAAO,CAAC,GAAI,UAAW,MAAM,CAAE,CAAC,EAIxE,KAAK,WAAa,KAAK,gBAAgB,CACzC,CASA,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,KAAK,WAAW,KAAO,KAAK,eAAe,YAAc,iBAAmB,WAAa,IAC3F,CAEA,WAAW,EAA+B,CACpCC,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQL,EAAa,KAAK,UAAU,IAAG,KAAK,WAAa,OAC7F,CAEA,QAAS,CACP,IAAMM,EAAO,GAAe,KAAK,OAAO,IAAIC,CAAI,EAC1CC,EAAUF,EAAI,SAAS,GAAKA,EAAI,MAAM,EAC5C,MAAO,EAAI;;;6CAG8B,CAACA,EAAI,EAAE,EAAE;qEACe,CAACE,EAAQ;8CAChC,CAACA,EAAQ;gDACP,CAACF,EAAI,SAAS,EAAE;gDAChB,CAACA,EAAI,MAAM,EAAE;;;KAI3D,CACF,EA3CGT,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,QAAS,EAAK,CAAC,CAAA,EAAAR,EAAA,UAAA,aAAA,IAAA,EAAA,EALnE,EAAAJ,EAAA,CAAAa,EAAc,WAAW,CAAA,EAAAT,CAAA,E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repobit/dex-system-design",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "Design system based on Web Components.",
5
5
  "author": "Iordache Matei Cezar <miordache@bitdefender.com>",
6
6
  "homepage": "https://github.com/bitdefender/dex-core#readme",
@@ -490,5 +490,5 @@
490
490
  "volta": {
491
491
  "node": "24.22.1"
492
492
  },
493
- "gitHead": "197e395aa71b084cbe5d20e04e58a405ae730302"
493
+ "gitHead": "96654a44cd1a937056eaf2e52110d7a6d24404db"
494
494
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifestVersion": 1,
3
3
  "package": "@repobit/dex-system-design",
4
- "packageVersion": "4.1.0",
4
+ "packageVersion": "4.2.0",
5
5
  "generatedFrom": [
6
6
  "package.json exports",
7
7
  "Lit reactive properties (static properties or @property/@state)",
@@ -4385,7 +4385,7 @@
4385
4385
  "The copy is slotted: <span slot=\"eyebrow\">, <bd-h slot=\"title\" as=\"h2\"> (the page picks the level; the header draws it at the page-section role, heading-h2) and <bd-p slot=\"description\"> (body-regular, body-large from lg). A link in the description is bd-link inline underline. A part whose slot is empty is left out."
4386
4386
  ]
4387
4387
  },
4388
- {
4388
+ {
4389
4389
  "tag": "bd-logo-marquee",
4390
4390
  "packageExport": "./logo-marquee",
4391
4391
  "module": "./dist/src/components/logo-marquee/logo-marquee.js",
@@ -4393,20 +4393,29 @@
4393
4393
  "contentModel": "children",
4394
4394
  "slots": [
4395
4395
  {
4396
- "name": ""
4396
+ "name": "",
4397
+ "accepts": [
4398
+ "img",
4399
+ "picture",
4400
+ "bd-img",
4401
+ "bd-picture",
4402
+ "bd-mark",
4403
+ "span",
4404
+ "bd-review"
4405
+ ]
4397
4406
  }
4398
4407
  ],
4399
4408
  "props": [
4400
4409
  {
4401
4410
  "name": "label",
4402
4411
  "type": "string",
4403
- "description": "Names the region, in the page's language."
4412
+ "description": "Names the region, in the page's language: the row's subject, as \"Partners\" or \"Customer reviews\"."
4404
4413
  },
4405
4414
  {
4406
4415
  "name": "duration",
4407
4416
  "type": "number",
4408
4417
  "default": 35,
4409
- "description": "Seconds for one copy of the set to pass: 35 for the partner line and the award strip alike."
4418
+ "description": "Seconds for one copy of the set to pass: 35 for the partner line and the award strip alike. A row of reviews is several cards wide and takes longer: 60 for six reviews."
4410
4419
  },
4411
4420
  {
4412
4421
  "name": "gap",
@@ -4423,7 +4432,7 @@
4423
4432
  "64"
4424
4433
  ],
4425
4434
  "default": "48",
4426
- "description": "A step on the spacing scale between two logos: 48 for partners, 24 for awards."
4435
+ "description": "A step on the spacing scale between two items: 48 for partners, 24 for awards and for reviews."
4427
4436
  },
4428
4437
  {
4429
4438
  "name": "paused",
@@ -4434,13 +4443,13 @@
4434
4443
  "name": "pauseLabel",
4435
4444
  "type": "string",
4436
4445
  "attributeName": "pause-label",
4437
- "description": "The pause button's accessible name while the logos move."
4446
+ "description": "The pause button's accessible name while the row moves, in the page's language. Its default speaks of logos, so a row of reviews sets it (\"Pause the moving reviews\")."
4438
4447
  },
4439
4448
  {
4440
4449
  "name": "playLabel",
4441
4450
  "type": "string",
4442
4451
  "attributeName": "play-label",
4443
- "description": "The button's accessible name while the logos are paused."
4452
+ "description": "The button's accessible name while the row is paused, in the page's language. Its default speaks of logos, so a row of reviews sets it (\"Play the moving reviews\")."
4444
4453
  },
4445
4454
  {
4446
4455
  "name": "withoutPauseButton",
@@ -4449,6 +4458,11 @@
4449
4458
  "default": false,
4450
4459
  "description": "No pause button. It takes away the control WCAG 2.2.2 asks for on motion longer than five seconds, so it is the page's decision, never the default: the pointer and focus on the row still hold it and reduced motion keeps it still, but a page that sets it gives the reader its own control that sets paused, or the row no longer meets 2.2.2."
4451
4460
  }
4461
+ ],
4462
+ "notes": [
4463
+ "The default slot takes the row's items: logos (an <img>, <picture>, bd-img, bd-picture or bd-mark), a label in a <span>, or bd-review cards. Logos sit on the mark plate; a label is type and follows the theme.",
4464
+ "A bd-review takes a 320px card width and its own height, and stands at the top of the row, so reviews of different lengths line up along their tops.",
4465
+ "A row of reviews sets label, pause-label and play-label in the page's language: the pause button's own defaults speak of logos."
4452
4466
  ]
4453
4467
  },
4454
4468
  {
@@ -4675,10 +4689,11 @@
4675
4689
  "type": "string",
4676
4690
  "enum": [
4677
4691
  "tint",
4678
- "container"
4692
+ "container",
4693
+ "none"
4679
4694
  ],
4680
4695
  "default": "tint",
4681
- "description": "The card's ground. tint: the brand's lightest wash (--status-brand-surface). container: the container grey (--color-surface-container), as bd-card and bd-bento-item name it."
4696
+ "description": "The card's ground. tint: the brand's lightest wash (--status-brand-surface). container: the container grey (--color-surface-container), as bd-card and bd-bento-item name it. none: no ground and no inset, so the text lines up with the content around it."
4682
4697
  }
4683
4698
  ],
4684
4699
  "notes": [