@repobit/dex-system-design 3.0.3 → 3.1.1

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 (150) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +35 -0
  3. package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +1 -0
  4. package/dist/src/components/agent-endpoints/agent-endpoints.js +12 -12
  5. package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
  6. package/dist/src/components/anchor/anchor-nav.d.ts +2 -1
  7. package/dist/src/components/anchor/anchor-nav.js +10 -10
  8. package/dist/src/components/anchor/anchor-nav.js.map +1 -1
  9. package/dist/src/components/audience-card/audience-card.css.js +1 -1
  10. package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
  11. package/dist/src/components/audience-card/audience-card.d.ts +1 -0
  12. package/dist/src/components/audience-card/audience-card.js +8 -8
  13. package/dist/src/components/audience-card/audience-card.js.map +1 -1
  14. package/dist/src/components/awards/awards-flex.d.ts +3 -2
  15. package/dist/src/components/awards/awards-flex.js +16 -16
  16. package/dist/src/components/awards/awards-flex.js.map +1 -1
  17. package/dist/src/components/awards/awards-spotlight.d.ts +2 -1
  18. package/dist/src/components/awards/awards-spotlight.js +8 -8
  19. package/dist/src/components/awards/awards-spotlight.js.map +1 -1
  20. package/dist/src/components/awards/awards.d.ts +1 -1
  21. package/dist/src/components/bento-grid/bento-grid.d.ts +1 -0
  22. package/dist/src/components/bento-grid/bento-grid.js +10 -10
  23. package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
  24. package/dist/src/components/bento-grid/bento-item.css.js +1 -1
  25. package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
  26. package/dist/src/components/bento-grid/bento-item.d.ts +1 -0
  27. package/dist/src/components/bento-grid/bento-item.js +9 -9
  28. package/dist/src/components/bento-grid/bento-item.js.map +1 -1
  29. package/dist/src/components/button/button.d.ts +1 -1
  30. package/dist/src/components/cards/card.d.ts +2 -2
  31. package/dist/src/components/cards/card.js +11 -11
  32. package/dist/src/components/cards/card.js.map +1 -1
  33. package/dist/src/components/carousel/carousel.d.ts +2 -2
  34. package/dist/src/components/carousel/carousel.js +6 -6
  35. package/dist/src/components/carousel/carousel.js.map +1 -1
  36. package/dist/src/components/comparison-panel/comparison-panel.d.ts +1 -0
  37. package/dist/src/components/comparison-panel/comparison-panel.js +12 -12
  38. package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
  39. package/dist/src/components/compatibility-table/compatibility-table.d.ts +1 -0
  40. package/dist/src/components/compatibility-table/compatibility-table.js +14 -14
  41. package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
  42. package/dist/src/components/cta-banner/cta-banner.d.ts +1 -0
  43. package/dist/src/components/cta-banner/cta-banner.js +8 -8
  44. package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
  45. package/dist/src/components/grid/grid.css.js +1 -1
  46. package/dist/src/components/grid/grid.css.js.map +1 -1
  47. package/dist/src/components/grid/grid.d.ts +1 -0
  48. package/dist/src/components/grid/grid.js +4 -3
  49. package/dist/src/components/grid/grid.js.map +1 -1
  50. package/dist/src/components/header/header-code.d.ts +3 -2
  51. package/dist/src/components/header/header-code.js +13 -13
  52. package/dist/src/components/header/header-code.js.map +1 -1
  53. package/dist/src/components/heading/heading.d.ts +1 -1
  54. package/dist/src/components/heading/heading.js +5 -1
  55. package/dist/src/components/heading/heading.js.map +1 -1
  56. package/dist/src/components/hero/hero.d.ts +2 -1
  57. package/dist/src/components/hero/hero.js +9 -9
  58. package/dist/src/components/hero/hero.js.map +1 -1
  59. package/dist/src/components/install-options/install-options.d.ts +3 -2
  60. package/dist/src/components/install-options/install-options.js +17 -17
  61. package/dist/src/components/install-options/install-options.js.map +1 -1
  62. package/dist/src/components/link/link.d.ts +1 -1
  63. package/dist/src/components/list/list-item/list-item.d.ts +1 -1
  64. package/dist/src/components/logo-marquee/logo-marquee.d.ts +1 -0
  65. package/dist/src/components/logo-marquee/logo-marquee.js +5 -5
  66. package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
  67. package/dist/src/components/motion-art/motion-art.js +1 -1
  68. package/dist/src/components/motion-art/motion-art.js.map +1 -1
  69. package/dist/src/components/overview/overview.d.ts +1 -0
  70. package/dist/src/components/overview/overview.js +7 -7
  71. package/dist/src/components/overview/overview.js.map +1 -1
  72. package/dist/src/components/page-switcher/page-switcher.d.ts +1 -0
  73. package/dist/src/components/page-switcher/page-switcher.js +5 -5
  74. package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
  75. package/dist/src/components/pagination-dots/pagination-dots.d.ts +1 -1
  76. package/dist/src/components/partner-banner/partner-banner.d.ts +1 -0
  77. package/dist/src/components/partner-banner/partner-banner.js +7 -7
  78. package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
  79. package/dist/src/components/post-card/post-card.d.ts +1 -0
  80. package/dist/src/components/post-card/post-card.js +5 -5
  81. package/dist/src/components/post-card/post-card.js.map +1 -1
  82. package/dist/src/components/process-steps/process-steps.d.ts +1 -0
  83. package/dist/src/components/process-steps/process-steps.js +7 -7
  84. package/dist/src/components/process-steps/process-steps.js.map +1 -1
  85. package/dist/src/components/quick-answer/quick-answer.d.ts +1 -0
  86. package/dist/src/components/quick-answer/quick-answer.js +7 -7
  87. package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
  88. package/dist/src/components/review/review-grid.d.ts +1 -0
  89. package/dist/src/components/review/review-grid.js +3 -3
  90. package/dist/src/components/review/review-grid.js.map +1 -1
  91. package/dist/src/components/review/review.d.ts +1 -0
  92. package/dist/src/components/review/review.js +2 -2
  93. package/dist/src/components/review/review.js.map +1 -1
  94. package/dist/src/components/section-header/section-header.d.ts +1 -0
  95. package/dist/src/components/section-header/section-header.js +4 -4
  96. package/dist/src/components/section-header/section-header.js.map +1 -1
  97. package/dist/src/components/shared/controller.observer.d.ts +50 -0
  98. package/dist/src/components/shared/controller.observer.js +2 -0
  99. package/dist/src/components/shared/controller.observer.js.map +1 -0
  100. package/dist/src/components/spotlight-section/spotlight-section.d.ts +1 -0
  101. package/dist/src/components/spotlight-section/spotlight-section.js +7 -7
  102. package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
  103. package/dist/src/components/stat/stat-highlight.d.ts +5 -5
  104. package/dist/src/components/stat/stat-highlight.js +2 -2
  105. package/dist/src/components/stat/stat-highlight.js.map +1 -1
  106. package/dist/src/components/stat/stat-tile.d.ts +1 -0
  107. package/dist/src/components/stat/stat-tile.js +5 -5
  108. package/dist/src/components/stat/stat-tile.js.map +1 -1
  109. package/dist/src/components/terminal/terminal-cursor.d.ts +1 -0
  110. package/dist/src/components/terminal/terminal-cursor.js +1 -1
  111. package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
  112. package/dist/src/components/terminal/terminal-message.d.ts +4 -3
  113. package/dist/src/components/terminal/terminal-message.js +25 -25
  114. package/dist/src/components/terminal/terminal-message.js.map +1 -1
  115. package/dist/src/components/tooltip/tooltip.js +1 -1
  116. package/dist/src/components/tooltip/tooltip.js.map +1 -1
  117. package/dist/src/components/trust-panel/trust-panel.d.ts +1 -0
  118. package/dist/src/components/trust-panel/trust-panel.js +19 -19
  119. package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
  120. package/dist/src/loader/create-loader.d.ts +13 -0
  121. package/dist/src/loader/create-loader.js +2 -0
  122. package/dist/src/loader/create-loader.js.map +1 -0
  123. package/dist/src/loader/loader.d.ts +44 -0
  124. package/dist/src/loader/loader.js +2 -0
  125. package/dist/src/loader/loader.js.map +1 -0
  126. package/dist/src/loader/registry.d.ts +2 -0
  127. package/dist/src/loader/registry.js +2 -0
  128. package/dist/src/loader/registry.js.map +1 -0
  129. package/dist/src/tokens/tokens.js +1 -1
  130. package/dist/src/tokens/tokens.js.map +1 -1
  131. package/package.json +12 -4
  132. package/schemas/component-manifest.json +8 -1
  133. package/dist/src/tokens/dark-derivation.d.ts +0 -70
  134. package/dist/src/tokens/dark-derivation.js +0 -2
  135. package/dist/src/tokens/dark-derivation.js.map +0 -1
  136. package/dist/src/tokens/dark-findings.d.ts +0 -59
  137. package/dist/src/tokens/dark-findings.js +0 -2
  138. package/dist/src/tokens/dark-findings.js.map +0 -1
  139. package/dist/src/tokens/story-chrome.d.ts +0 -72
  140. package/dist/src/tokens/story-chrome.js +0 -292
  141. package/dist/src/tokens/story-chrome.js.map +0 -1
  142. package/dist/src/tokens/token-map.d.ts +0 -114
  143. package/dist/src/tokens/token-map.js +0 -2
  144. package/dist/src/tokens/token-map.js.map +0 -1
  145. package/dist/src/tokens/token-purposes.d.ts +0 -63
  146. package/dist/src/tokens/token-purposes.js +0 -2
  147. package/dist/src/tokens/token-purposes.js.map +0 -1
  148. package/dist/src/tokens/type-ceiling-words.d.ts +0 -96
  149. package/dist/src/tokens/type-ceiling-words.js +0 -2
  150. package/dist/src/tokens/type-ceiling-words.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import{defineElement as e}from"../shared/define-element.js";import{tokens as t}from"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../button/button.js";import{MediaQueryController as i,REDUCED_MOTION as a}from"../shared/controller.media-query.js";import{heroCSS as o}from"./hero.css.js";import"../icons/pause-icon.js";import"../icons/play-icon.js";import{LitElement as s,html as c,nothing as l}from"lit";import{property as u,state as d}from"lit/decorators.js";var f=class extends s{static{this.styles=[t,r,o]}constructor(){super(),this.eyebrow=``,this.heading=``,this.lead=``,this.videoSrc=``,this.poster=``,this.paused=!1,this.pauseLabel=`Pause the background video`,this.playLabel=`Play the background video`,this._reduced=!1,this._hasCards=!1,this._hasMedia=!1,new i(this,a,e=>{this._reduced=e})}updated(e){if((e.has(`paused`)||e.has(`_hasMedia`))&&this._syncMedia(),!e.has(`paused`)&&!e.has(`_reduced`)&&!e.has(`videoSrc`))return;let t=this.renderRoot.querySelector(`video`);t&&(this.paused||this._reduced?t.pause():t.play()?.catch(()=>{}))}_toggle(){this.paused=!this.paused}_onCardsSlot(e){this._hasCards=e.target.assignedElements({flatten:!0}).length>0}_onMediaSlot(e){this._media=e.target.assignedElements({flatten:!0}),this._hasMedia=this._media.length>0,this._syncMedia()}_syncMedia(){for(let e of this._media??[])`paused`in e&&(e.paused=this.paused)}_renderMedia(){return this._hasMedia?l:this.videoSrc?c`<video
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{ensembleCSS as n}from"../shared/ensemble.css.js";import"../button/button.js";import{MediaQueryController as r,REDUCED_MOTION as i}from"../shared/controller.media-query.js";import{heroCSS as a}from"./hero.css.js";import"../icons/pause-icon.js";import"../icons/play-icon.js";import{LitElement as o,html as s,nothing as c}from"lit";import{property as l,state as u}from"lit/decorators.js";var d=class extends o{static{this.styles=[n,a]}constructor(){super(),this.eyebrow=``,this.heading=``,this.lead=``,this.videoSrc=``,this.poster=``,this.paused=!1,this.pauseLabel=`Pause the background video`,this.playLabel=`Play the background video`,this._reduced=!1,this._hasCards=!1,this._hasMedia=!1,new r(this,i,e=>{this._reduced=e})}updated(e){if((e.has(`paused`)||e.has(`_hasMedia`))&&this._syncMedia(),!e.has(`paused`)&&!e.has(`_reduced`)&&!e.has(`videoSrc`))return;let t=this.renderRoot.querySelector(`video`);t&&(this.paused||this._reduced?t.pause():t.play()?.catch(()=>{}))}_toggle(){this.paused=!this.paused}_onCardsSlot(e){this._hasCards=e.target.assignedElements({flatten:!0}).length>0}_onMediaSlot(e){this._media=e.target.assignedElements({flatten:!0}),this._hasMedia=this._media.length>0,this._syncMedia()}_syncMedia(){for(let e of this._media??[])`paused`in e&&(e.paused=this.paused)}_renderMedia(){return this._hasMedia?c:this.videoSrc?s`<video
2
2
  class="media"
3
3
  src="${this.videoSrc}"
4
- poster="${this.poster||l}"
4
+ poster="${this.poster||c}"
5
5
  ?autoplay=${!this._reduced&&!this.paused}
6
6
  muted
7
7
  loop
@@ -10,14 +10,14 @@ import{defineElement as e}from"../shared/define-element.js";import{tokens as t}f
10
10
  aria-hidden="true"
11
11
  tabindex="-1"
12
12
  .muted=${!0}
13
- ></video>`:this.poster?c`<img class="media" src="${this.poster}" alt="" width="1440" height="613" fetchpriority="high">`:l}render(){let e=this.videoSrc&&!this._hasMedia&&!this._reduced;return c`
13
+ ></video>`:this.poster?s`<img class="media" src="${this.poster}" alt="" width="1440" height="613" fetchpriority="high">`:c}render(){let e=this.videoSrc&&!this._hasMedia&&!this._reduced;return s`
14
14
  <section class="root ${this._hasCards?`has-cards`:``}">
15
15
  <div class="band">
16
16
  <div class="stage">
17
17
  ${this._renderMedia()}
18
18
  <slot name="media" @slotchange=${this._onMediaSlot}></slot>
19
19
  <div class="fade"></div>
20
- ${e?c`<bd-button
20
+ ${e?s`<bd-button
21
21
  class="toggle"
22
22
  variant="outline-white"
23
23
  surface="brand"
@@ -25,13 +25,13 @@ import{defineElement as e}from"../shared/define-element.js";import{tokens as t}f
25
25
  icon-only
26
26
  label="${this.paused?this.playLabel:this.pauseLabel}"
27
27
  @click=${this._toggle}
28
- >${this.paused?c`<bd-play-icon size="md"></bd-play-icon>`:c`<bd-pause-icon size="md"></bd-pause-icon>`}</bd-button>`:l}
28
+ >${this.paused?s`<bd-play-icon size="md"></bd-play-icon>`:s`<bd-pause-icon size="md"></bd-pause-icon>`}</bd-button>`:c}
29
29
  </div>
30
30
  <div class="bd-ensemble column">
31
31
  <div class="copy">
32
- ${this.eyebrow?c`<p class="eyebrow">${this.eyebrow}</p>`:l}
33
- <h1 class="heading">${this.heading}</h1>
34
- ${this.lead?c`<p class="lead">${this.lead}</p>`:l}
32
+ ${this.eyebrow?s`<p class="eyebrow">${this.eyebrow}</p>`:c}
33
+ ${this.heading?s`<h1 class="heading">${this.heading}</h1>`:c}
34
+ ${this.lead?s`<p class="lead">${this.lead}</p>`:c}
35
35
  </div>
36
36
  </div>
37
37
  </div>
@@ -42,5 +42,5 @@ import{defineElement as e}from"../shared/define-element.js";import{tokens as t}f
42
42
  </div>
43
43
  </div>
44
44
  </section>
45
- `}};n([u({type:String})],f.prototype,`eyebrow`,void 0),n([u({type:String})],f.prototype,`heading`,void 0),n([u({type:String})],f.prototype,`lead`,void 0),n([u({type:String,attribute:`video-src`})],f.prototype,`videoSrc`,void 0),n([u({type:String})],f.prototype,`poster`,void 0),n([u({type:Boolean,reflect:!0})],f.prototype,`paused`,void 0),n([u({type:String,attribute:`pause-label`})],f.prototype,`pauseLabel`,void 0),n([u({type:String,attribute:`play-label`})],f.prototype,`playLabel`,void 0),n([d()],f.prototype,`_reduced`,void 0),n([d()],f.prototype,`_hasCards`,void 0),n([d()],f.prototype,`_hasMedia`,void 0),f=n([e(`bd-hero`)],f);export{f as Hero};
45
+ `}};t([l({type:String})],d.prototype,`eyebrow`,void 0),t([l({type:String})],d.prototype,`heading`,void 0),t([l({type:String})],d.prototype,`lead`,void 0),t([l({type:String,attribute:`video-src`})],d.prototype,`videoSrc`,void 0),t([l({type:String})],d.prototype,`poster`,void 0),t([l({type:Boolean,reflect:!0})],d.prototype,`paused`,void 0),t([l({type:String,attribute:`pause-label`})],d.prototype,`pauseLabel`,void 0),t([l({type:String,attribute:`play-label`})],d.prototype,`playLabel`,void 0),t([u()],d.prototype,`_reduced`,void 0),t([u()],d.prototype,`_hasCards`,void 0),t([u()],d.prototype,`_hasMedia`,void 0),d=t([e(`bd-hero`)],d);export{d as Hero};
46
46
  //# sourceMappingURL=hero.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hero.js","names":["_decorate","__decorate","Hero","LitElement","tokens","ensembleCSS","heroCSS","MediaQueryController","REDUCED_MOTION","reduced","changed","video","el","nothing","moving","property","state","defineElement"],"sources":["../../../../src/components/hero/hero.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { MediaQueryController, REDUCED_MOTION } from \"#shared/controller.media-query.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/button/button.ts\";\nimport \"#components/icons/pause-icon.ts\";\nimport \"#components/icons/play-icon.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { heroCSS } from \"./hero.css.ts\";\n\n/**\n * The homepage hero: a brand band with a full-bleed looping video fading into\n * the brand at the bottom, an eyebrow, the page's one h1 and a lead. Drawn in\n * the foundation Figma file as Hero.\n *\n * Desktop sets the copy left over the video, and a faint brand haze spills\n * out under the band, behind the cards (the desktop frame's glow); below lg\n * the video sits on top and the copy is centred under it.\n * Slot `cards` takes the audience cards:\n * from lg they overlap the band's lower edge, below it they follow the band\n * on the same brand ground, as the phone and tablet frames draw them.\n *\n * Not bd-header. That is the white two-column product hero with a price; this\n * one sells nothing and carries no CTA.\n *\n * Slot `media` takes animated art in the video's place: the homepage slots\n * <bd-motion-art object=\"brand-surface\">. Slotted, it replaces the video and\n * the poster, and it is centred in the stage below lg and on the sphere's\n * line, right of the copy, from lg.\n *\n * The video loops on its own, so there is a pause button (WCAG 2.2.2). Under\n * prefers-reduced-motion it never plays: the poster stands still in its place.\n * Without a video-src the poster is all there is, and so is no button. The\n * slotted art takes no button: it holds a still frame of its own under\n * prefers-reduced-motion, and stops with `paused` when a page sets it.\n */\n@defineElement(\"bd-hero\")\nexport class Hero extends LitElement {\n static styles = [tokens, ensembleCSS, heroCSS];\n\n @property({ type: String })\n eyebrow = \"\";\n @property({ type: String })\n heading = \"\";\n @property({ type: String })\n lead = \"\";\n @property({ type: String, attribute: \"video-src\" })\n videoSrc = \"\";\n @property({ type: String })\n poster = \"\";\n @property({ type: Boolean, reflect: true })\n paused = false;\n @property({ type: String, attribute: \"pause-label\" })\n pauseLabel = \"Pause the background video\";\n @property({ type: String, attribute: \"play-label\" })\n playLabel = \"Play the background video\";\n @state()\n _reduced = false;\n @state()\n _hasCards = false;\n @state()\n _hasMedia = false;\n\n _media: Element[] | undefined;\n\n constructor() {\n super();\n new MediaQueryController(this, REDUCED_MOTION, reduced => { this._reduced = reduced; });\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has(\"paused\") || changed.has(\"_hasMedia\")) this._syncMedia();\n if (!changed.has(\"paused\") && !changed.has(\"_reduced\") && !changed.has(\"videoSrc\")) return;\n const video = this.renderRoot.querySelector(\"video\");\n if (!video) return;\n if (this.paused || this._reduced) video.pause();\n else video.play()?.catch(() => { /* autoplay refused: the poster stays */ });\n }\n\n _toggle() {\n this.paused = !this.paused;\n }\n\n _onCardsSlot(e: Event) {\n this._hasCards = (e.target as HTMLSlotElement).assignedElements({ flatten: true }).length > 0;\n }\n\n _onMediaSlot(e: Event) {\n this._media = (e.target as HTMLSlotElement).assignedElements({ flatten: true });\n this._hasMedia = this._media.length > 0;\n this._syncMedia();\n }\n\n /* the slotted art stops with the hero's `paused` */\n _syncMedia() {\n for (const el of this._media ?? []) if (\"paused\" in el) el.paused = this.paused;\n }\n\n _renderMedia() {\n if (this._hasMedia) return nothing;\n /* preload=\"none\": under reduced motion, or paused, the video never plays\n and the poster is all there is, so nothing else is fetched for it. */\n if (this.videoSrc) {\n return html`<video\n class=\"media\"\n src=\"${this.videoSrc}\"\n poster=\"${this.poster || nothing}\"\n ?autoplay=${!this._reduced && !this.paused}\n muted\n loop\n playsinline\n preload=\"none\"\n aria-hidden=\"true\"\n tabindex=\"-1\"\n .muted=${true}\n ></video>`;\n }\n /* The poster alone is the band's picture, and the band opens the page, so\n it is the image the page is waiting for: high priority, never lazy. The\n size is the homepage poster's; the stage sizes the box itself, so the\n attributes only give the image its shape before it arrives. alt=\"\" is\n what keeps it out of the accessibility tree -- aria-hidden beside it\n said the same thing twice. */\n return this.poster\n ? html`<img class=\"media\" src=\"${this.poster}\" alt=\"\" width=\"1440\" height=\"613\" fetchpriority=\"high\">`\n : nothing;\n }\n\n render() {\n const moving = this.videoSrc && !this._hasMedia && !this._reduced;\n return html`\n <section class=\"root ${this._hasCards ? \"has-cards\" : \"\"}\">\n <div class=\"band\">\n <div class=\"stage\">\n ${this._renderMedia()}\n <slot name=\"media\" @slotchange=${this._onMediaSlot}></slot>\n <div class=\"fade\"></div>\n ${moving\n ? html`<bd-button\n class=\"toggle\"\n variant=\"outline-white\"\n surface=\"brand\"\n size=\"md\"\n icon-only\n label=\"${this.paused ? this.playLabel : this.pauseLabel}\"\n @click=${this._toggle}\n >${this.paused\n ? html`<bd-play-icon size=\"md\"></bd-play-icon>`\n : html`<bd-pause-icon size=\"md\"></bd-pause-icon>`}</bd-button>`\n : nothing}\n </div>\n <div class=\"bd-ensemble column\">\n <div class=\"copy\">\n ${this.eyebrow ? html`<p class=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n <h1 class=\"heading\">${this.heading}</h1>\n ${this.lead ? html`<p class=\"lead\">${this.lead}</p>` : nothing}\n </div>\n </div>\n </div>\n <div class=\"glow\" aria-hidden=\"true\"></div>\n <div class=\"cards-band\" ?hidden=${!this._hasCards}>\n <div class=\"bd-ensemble cards\">\n <slot name=\"cards\" @slotchange=${this._onCardsSlot}></slot>\n </div>\n </div>\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-hero\": Hero;\n }\n}\n"],"mappings":"A,8jBAsCO,IAAME,EAAN,cAAmBC,CAAW,C,OACnB,KAAA,OAAA,CAACC,EAAQC,EAAaC,CAAO,C,CA2B7C,aAAc,CACZ,MAAM,EAzBE,KAAA,QAAA,GAEA,KAAA,QAAA,GAEH,KAAA,KAAA,GAEI,KAAA,SAAA,GAEF,KAAA,OAAA,GAEA,KAAA,OAAA,GAEI,KAAA,WAAA,6BAED,KAAA,UAAA,4BAED,KAAA,SAAA,GAEC,KAAA,UAAA,GAEA,KAAA,UAAA,GAMV,IAAIC,EAAqB,KAAMC,EAAgB,GAAW,CAAE,KAAK,SAAWC,CAAS,CAAC,CACxF,CAEA,QAAQ,EAA+B,CAErC,IADIC,EAAQ,IAAI,QAAQ,GAAKA,EAAQ,IAAI,WAAW,IAAG,KAAK,WAAW,EACnE,CAACA,EA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CAAA,EAAAf,CAAA,E"}
1
+ {"version":3,"file":"hero.js","names":["_decorate","__decorate","Hero","LitElement","ensembleCSS","heroCSS","MediaQueryController","REDUCED_MOTION","reduced","changed","video","el","nothing","moving","property","state","defineElement"],"sources":["../../../../src/components/hero/hero.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { MediaQueryController, REDUCED_MOTION } from \"#shared/controller.media-query.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-icon.ts\";\nimport \"#components/icons/play-icon.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { heroCSS } from \"./hero.css.ts\";\n\n/**\n * The homepage hero: a brand band with a full-bleed looping video fading into\n * the brand at the bottom, an eyebrow, the page's one h1 and a lead. Drawn in\n * the foundation Figma file as Hero.\n *\n * Desktop sets the copy left over the video, and a faint brand haze spills\n * out under the band, behind the cards (the desktop frame's glow); below lg\n * the video sits on top and the copy is centred under it.\n * Slot `cards` takes the audience cards:\n * from lg they overlap the band's lower edge, below it they follow the band\n * on the same brand ground, as the phone and tablet frames draw them.\n *\n * Not bd-header. That is the white two-column product hero with a price; this\n * one sells nothing and carries no CTA.\n *\n * Slot `media` takes animated art in the video's place: the homepage slots\n * <bd-motion-art object=\"brand-surface\">. Slotted, it replaces the video and\n * the poster, and it is centred in the stage below lg and on the sphere's\n * line, right of the copy, from lg.\n *\n * The video loops on its own, so there is a pause button (WCAG 2.2.2). Under\n * prefers-reduced-motion it never plays: the poster stands still in its place.\n * Without a video-src the poster is all there is, and so is no button. The\n * slotted art takes no button: it holds a still frame of its own under\n * prefers-reduced-motion, and stops with `paused` when a page sets it.\n */\n@defineElement(\"bd-hero\")\nexport class Hero extends LitElement {\n static styles = [ensembleCSS, heroCSS];\n\n @property({ type: String })\n eyebrow = \"\";\n @property({ type: String })\n heading = \"\";\n @property({ type: String })\n lead = \"\";\n @property({ type: String, attribute: \"video-src\" })\n videoSrc = \"\";\n @property({ type: String })\n poster = \"\";\n @property({ type: Boolean, reflect: true })\n paused = false;\n @property({ type: String, attribute: \"pause-label\" })\n pauseLabel = \"Pause the background video\";\n @property({ type: String, attribute: \"play-label\" })\n playLabel = \"Play the background video\";\n @state()\n _reduced = false;\n @state()\n _hasCards = false;\n @state()\n _hasMedia = false;\n\n _media: Element[] | undefined;\n\n constructor() {\n super();\n new MediaQueryController(this, REDUCED_MOTION, reduced => { this._reduced = reduced; });\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has(\"paused\") || changed.has(\"_hasMedia\")) this._syncMedia();\n if (!changed.has(\"paused\") && !changed.has(\"_reduced\") && !changed.has(\"videoSrc\")) return;\n const video = this.renderRoot.querySelector(\"video\");\n if (!video) return;\n if (this.paused || this._reduced) video.pause();\n else video.play()?.catch(() => { /* autoplay refused: the poster stays */ });\n }\n\n _toggle() {\n this.paused = !this.paused;\n }\n\n _onCardsSlot(e: Event) {\n this._hasCards = (e.target as HTMLSlotElement).assignedElements({ flatten: true }).length > 0;\n }\n\n _onMediaSlot(e: Event) {\n this._media = (e.target as HTMLSlotElement).assignedElements({ flatten: true });\n this._hasMedia = this._media.length > 0;\n this._syncMedia();\n }\n\n /* the slotted art stops with the hero's `paused` */\n _syncMedia() {\n for (const el of this._media ?? []) if (\"paused\" in el) el.paused = this.paused;\n }\n\n _renderMedia() {\n if (this._hasMedia) return nothing;\n /* preload=\"none\": under reduced motion, or paused, the video never plays\n and the poster is all there is, so nothing else is fetched for it. */\n if (this.videoSrc) {\n return html`<video\n class=\"media\"\n src=\"${this.videoSrc}\"\n poster=\"${this.poster || nothing}\"\n ?autoplay=${!this._reduced && !this.paused}\n muted\n loop\n playsinline\n preload=\"none\"\n aria-hidden=\"true\"\n tabindex=\"-1\"\n .muted=${true}\n ></video>`;\n }\n /* The poster alone is the band's picture, and the band opens the page, so\n it is the image the page is waiting for: high priority, never lazy. The\n size is the homepage poster's; the stage sizes the box itself, so the\n attributes only give the image its shape before it arrives. alt=\"\" is\n what keeps it out of the accessibility tree -- aria-hidden beside it\n said the same thing twice. */\n return this.poster\n ? html`<img class=\"media\" src=\"${this.poster}\" alt=\"\" width=\"1440\" height=\"613\" fetchpriority=\"high\">`\n : nothing;\n }\n\n render() {\n const moving = this.videoSrc && !this._hasMedia && !this._reduced;\n return html`\n <section class=\"root ${this._hasCards ? \"has-cards\" : \"\"}\">\n <div class=\"band\">\n <div class=\"stage\">\n ${this._renderMedia()}\n <slot name=\"media\" @slotchange=${this._onMediaSlot}></slot>\n <div class=\"fade\"></div>\n ${moving\n ? html`<bd-button\n class=\"toggle\"\n variant=\"outline-white\"\n surface=\"brand\"\n size=\"md\"\n icon-only\n label=\"${this.paused ? this.playLabel : this.pauseLabel}\"\n @click=${this._toggle}\n >${this.paused\n ? html`<bd-play-icon size=\"md\"></bd-play-icon>`\n : html`<bd-pause-icon size=\"md\"></bd-pause-icon>`}</bd-button>`\n : nothing}\n </div>\n <div class=\"bd-ensemble column\">\n <div class=\"copy\">\n ${this.eyebrow ? html`<p class=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n ${this.heading ? html`<h1 class=\"heading\">${this.heading}</h1>` : nothing}\n ${this.lead ? html`<p class=\"lead\">${this.lead}</p>` : nothing}\n </div>\n </div>\n </div>\n <div class=\"glow\" aria-hidden=\"true\"></div>\n <div class=\"cards-band\" ?hidden=${!this._hasCards}>\n <div class=\"bd-ensemble cards\">\n <slot name=\"cards\" @slotchange=${this._onCardsSlot}></slot>\n </div>\n </div>\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-hero\": Hero;\n }\n}\n"],"mappings":"A,6iBAuCO,IAAME,EAAN,cAAmBC,CAAW,C,OACnB,KAAA,OAAA,CAACC,EAAaC,CAAO,C,CA2BrC,aAAc,CACZ,MAAM,EAzBE,KAAA,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Q,UAAW,aAAc,CAAC,CAAA,EAAAZ,EAAA,UAAA,aAAA,IAAA,EAAA,EAEnDF,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAZ,EAAA,UAAA,YAAA,IAAA,EAAA,EAElDF,EAAA,CAAAe,EAAM,CAAA,EAAAb,EAAA,UAAA,WAAA,IAAA,EAAA,EAENF,EAAA,CAAAe,EAAM,CAAA,EAAAb,EAAA,UAAA,YAAA,IAAA,EAAA,EAENF,EAAA,CAAAe,EAAM,CAAA,EAAAb,EAAA,UAAA,YAAA,IAAA,EAAA,EAxBR,EAAAF,EAAA,CAAAgB,EAAc,SAAS,CAAA,EAAAd,CAAA,E"}
@@ -1,4 +1,5 @@
1
1
  import { LitElement, nothing } from "lit";
2
+ import "../../tokens/tokens.js";
2
3
  import "../heading/heading.js";
3
4
  import "../link/link.js";
4
5
  import "../paragraph/paragraph.js";
@@ -29,9 +30,9 @@ declare class BdInstallOptions extends LitElement {
29
30
  constructor();
30
31
  _copy(text: string, btn: HTMLElement): Promise<void>;
31
32
  _copyPromptSlot(btn: HTMLElement): Promise<void>;
32
- _renderWorksIn(): import("lit-html").TemplateResult<1> | typeof nothing;
33
+ _renderWorksIn(): typeof nothing | import("lit-html").TemplateResult<1>;
33
34
  _renderCard(card: InstallCard, index: number): import("lit-html").TemplateResult<1>;
34
- _renderPromptPanel(): import("lit-html").TemplateResult<1> | typeof nothing;
35
+ _renderPromptPanel(): typeof nothing | import("lit-html").TemplateResult<1>;
35
36
  render(): import("lit-html").TemplateResult<1>;
36
37
  }
37
38
  declare global {
@@ -1,8 +1,8 @@
1
- import{defineElement as e}from"../shared/define-element.js";import{tokens as t}from"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../link/link.js";import{Announcer as i}from"../shared/announcer.js";import a from"./install-options.css.js";import{LitElement as o,html as s,nothing as c}from"lit";import{property as l}from"lit/decorators.js";var u=class extends o{static{this.styles=[t,r,a]}constructor(){super(),this.eyebrow=``,this.title=``,this.description=``,this.worksIn=[],this.cards=[],this.promptPanel=!1,this.promptLabel=``,this._announcer=new i(this)}async _copy(e,t){if(!(`copied`in t.dataset)){t.dataset.copied=``;try{await navigator.clipboard.writeText(e);let n=t.textContent;t.textContent=`Copied`,this._announcer.say(`Copied`),setTimeout(()=>{t.textContent=n,delete t.dataset.copied},1500)}catch{delete t.dataset.copied}}}async _copyPromptSlot(e){let t=((this.renderRoot?.querySelector(`slot[name="prompt"]`))?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent||``).join(``).trim();t&&this._copy(t,e)}_renderWorksIn(){return this.worksIn.length?s`
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import{ensembleCSS as n}from"../shared/ensemble.css.js";import"../link/link.js";import{Announcer as r}from"../shared/announcer.js";import i from"./install-options.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c}from"lit/decorators.js";var l=class extends a{static{this.styles=[n,i]}constructor(){super(),this.eyebrow=``,this.title=``,this.description=``,this.worksIn=[],this.cards=[],this.promptPanel=!1,this.promptLabel=``,this._announcer=new r(this)}async _copy(e,t){if(!(`copied`in t.dataset)){t.dataset.copied=``;try{await navigator.clipboard.writeText(e);let n=t.textContent;t.textContent=`Copied`,this._announcer.say(`Copied`),setTimeout(()=>{t.textContent=n,delete t.dataset.copied},1500)}catch{delete t.dataset.copied}}}async _copyPromptSlot(e){let t=((this.renderRoot?.querySelector(`slot[name="prompt"]`))?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent||``).join(``).trim();t&&this._copy(t,e)}_renderWorksIn(){return this.worksIn.length?o`
2
2
  <div class="bd-installoptions-worksin">
3
3
  <span class="bd-installoptions-worksin-label">Works in</span>
4
4
  <div class="bd-installoptions-pills">
5
- ${this.worksIn.map(({label:e,initial:t,color:n})=>s`
5
+ ${this.worksIn.map(({label:e,initial:t,color:n})=>o`
6
6
  <span class="bd-installoptions-pill">
7
7
  <span
8
8
  class="bd-installoptions-pill-icon"
@@ -14,16 +14,16 @@ import{defineElement as e}from"../shared/define-element.js";import{tokens as t}f
14
14
  `)}
15
15
  </div>
16
16
  </div>
17
- `:c}_renderCard(e,t){let n=`bd-installoptions-card-title-${t}`;return s`
17
+ `:s}_renderCard(e,t){let n=`bd-installoptions-card-title-${t}`;return o`
18
18
  <div class="bd-installoptions-card">
19
19
  <div class="bd-installoptions-card-head">
20
20
  <bd-h as="h3" id=${n} class="bd-installoptions-card-title">${e.title}</bd-h>
21
- ${e.badge?s`<span class="bd-installoptions-badge">${e.badge}</span>`:c}
21
+ ${e.badge?o`<span class="bd-installoptions-badge">${e.badge}</span>`:s}
22
22
  </div>
23
23
 
24
- ${e.description?s`<bd-p variant="small" class="bd-installoptions-card-description">${e.description}</bd-p>`:c}
24
+ ${e.description?o`<bd-p variant="small" class="bd-installoptions-card-description">${e.description}</bd-p>`:s}
25
25
 
26
- ${e.code?s`
26
+ ${e.code?o`
27
27
  <div class="bd-installoptions-code">
28
28
  <pre class="bd-installoptions-code-text">${e.code}</pre>
29
29
  <button
@@ -33,15 +33,15 @@ import{defineElement as e}from"../shared/define-element.js";import{tokens as t}f
33
33
  @click=${t=>this._copy(e.code,t.currentTarget)}
34
34
  >Copy</button>
35
35
  </div>
36
- `:c}
36
+ `:s}
37
37
 
38
- ${e.linkLabel?s`
38
+ ${e.linkLabel?o`
39
39
  <bd-link href=${e.linkHref||`#`} variant="primary" class="bd-installoptions-card-link">
40
40
  ${e.linkLabel} →
41
41
  </bd-link>
42
- `:c}
42
+ `:s}
43
43
  </div>
44
- `}_renderPromptPanel(){return this.promptPanel?s`
44
+ `}_renderPromptPanel(){return this.promptPanel?o`
45
45
  <div class="bd-installoptions-promptpanel">
46
46
  <bd-h as="h2" id="bd-installoptions-prompt-title" class="bd-installoptions-prompt-title">
47
47
  <slot name="prompt-title"></slot>
@@ -51,7 +51,7 @@ import{defineElement as e}from"../shared/define-element.js";import{tokens as t}f
51
51
  <slot name="prompt-description"></slot>
52
52
  </bd-p>
53
53
 
54
- ${this.promptLabel?s`<span class="bd-installoptions-prompt-label">${this.promptLabel}</span>`:c}
54
+ ${this.promptLabel?o`<span class="bd-installoptions-prompt-label">${this.promptLabel}</span>`:s}
55
55
 
56
56
  <div class="bd-installoptions-prompt-code">
57
57
  <div class="bd-installoptions-prompt-code-text">
@@ -73,14 +73,14 @@ import{defineElement as e}from"../shared/define-element.js";import{tokens as t}f
73
73
  <slot name="prompt-footer"></slot>
74
74
  </bd-p>
75
75
  </div>
76
- `:c}render(){return s`
76
+ `:s}render(){return o`
77
77
  <div class="bd-installoptions-container">
78
78
  <div class="bd-ensemble">
79
- ${this.eyebrow?s`<bd-p variant="regular" class="bd-installoptions-eyebrow">${this.eyebrow}</bd-p>`:c}
79
+ ${this.eyebrow?o`<bd-p variant="regular" class="bd-installoptions-eyebrow">${this.eyebrow}</bd-p>`:s}
80
80
 
81
81
  <bd-h as="h2" class="bd-installoptions-title">${this.title}</bd-h>
82
82
 
83
- ${this.description?s`<bd-p variant="regular" class="bd-installoptions-description">${this.description}</bd-p>`:c}
83
+ ${this.description?o`<bd-p variant="regular" class="bd-installoptions-description">${this.description}</bd-p>`:s}
84
84
 
85
85
  ${this._renderWorksIn()}
86
86
 
@@ -95,15 +95,15 @@ import{defineElement as e}from"../shared/define-element.js";import{tokens as t}f
95
95
  <slot></slot>
96
96
  </div>
97
97
 
98
- ${this.cards.length?s`
98
+ ${this.cards.length?o`
99
99
  <div class="bd-installoptions-grid">
100
100
  ${this.cards.map((e,t)=>this._renderCard(e,t))}
101
101
  </div>
102
- `:c}
102
+ `:s}
103
103
 
104
104
  ${this._renderPromptPanel()}
105
105
  </div>
106
106
  <span class="bd-installoptions-status" role="status">${this._announcer.status}</span>
107
107
  </div>
108
- `}};n([l({type:String})],u.prototype,`eyebrow`,void 0),n([l({type:String})],u.prototype,`title`,void 0),n([l({type:String})],u.prototype,`description`,void 0),n([l({type:Array})],u.prototype,`worksIn`,void 0),n([l({type:Array})],u.prototype,`cards`,void 0),n([l({type:Boolean,reflect:!0,attribute:`prompt-panel`})],u.prototype,`promptPanel`,void 0),n([l({type:String,attribute:`prompt-label`})],u.prototype,`promptLabel`,void 0),u=n([e(`bd-install-options`)],u);
108
+ `}};t([c({type:String})],l.prototype,`eyebrow`,void 0),t([c({type:String})],l.prototype,`title`,void 0),t([c({type:String})],l.prototype,`description`,void 0),t([c({type:Array})],l.prototype,`worksIn`,void 0),t([c({type:Array})],l.prototype,`cards`,void 0),t([c({type:Boolean,reflect:!0,attribute:`prompt-panel`})],l.prototype,`promptPanel`,void 0),t([c({type:String,attribute:`prompt-label`})],l.prototype,`promptLabel`,void 0),l=t([e(`bd-install-options`)],l);
109
109
  //# sourceMappingURL=install-options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"install-options.js","names":["installOptionsCSS","_decorate","__decorate","install_options_css_default","BdInstallOptions","LitElement","tokens","ensembleCSS","Announcer","btn","text","original","n","color","initial","label","nothing","titleId","index","card","e","property","defineElement"],"sources":["../../../../src/components/install-options/install-options.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/link/link.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport installOptionsCSS from \"./install-options.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { Announcer } from \"#shared/announcer.ts\";\n\ninterface WorksIn {\n label? : string;\n initial?: string;\n color? : string;\n}\n\ninterface InstallCard {\n title : string;\n badge? : string;\n description?: string;\n code? : string;\n linkLabel? : string;\n linkHref? : string;\n}\n\n@defineElement(\"bd-install-options\")\nclass BdInstallOptions extends LitElement {\n static styles = [tokens, ensembleCSS, installOptionsCSS];\n\n @property({ type: String })\n eyebrow = \"\";\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: Array })\n worksIn: WorksIn[] = []; // [{ label, initial, color }]\n @property({ type: Array })\n cards: InstallCard[] = []; // [{ title, badge, description, code, linkLabel, linkHref }]\n\n // \"Then just ask\" sub-panel — rendered only when this is set, so a\n // consumer of bd-install-options who doesn't need it gets nothing extra.\n @property({ type: Boolean, reflect: true, attribute: \"prompt-panel\" })\n promptPanel = false;\n @property({ type: String, attribute: \"prompt-label\" })\n promptLabel = \"\"; // small mono label above the prompt block\n\n _announcer: Announcer;\n\n constructor() {\n super();\n /* \"Copied\" is said, not only shown. The button's own text changes too,\n but a screen reader does not reliably read a focused button's new name,\n so the message goes through the live region (shared/announcer.ts). */\n this._announcer = new Announcer(this);\n }\n\n /* The button says \"Copied\" for 1.5s and ignores presses meanwhile. It is not\n disabled for it: disabling the focused button threw keyboard focus back to\n the top of the page, mid-card.\n\n The flag is data-copied, present or absent: its value is \"\", which reads\n as false, so asking for its value let a second press through, and that\n press took \"Copied\" as the text to restore. It is set before the\n clipboard is awaited, so two presses in quick succession cannot both\n start a copy. */\n async _copy(text: string, btn: HTMLElement) {\n if (\"copied\" in btn.dataset) return;\n btn.dataset.copied = \"\";\n try {\n await navigator.clipboard.writeText(text);\n const original = btn.textContent;\n btn.textContent = \"Copied\";\n this._announcer.say(\"Copied\");\n setTimeout(() => {\n btn.textContent = original;\n delete btn.dataset.copied;\n }, 1500);\n } catch {\n // clipboard permission denied or unavailable — button stays as \"Copy\"\n delete btn.dataset.copied;\n }\n }\n\n async _copyPromptSlot(btn: HTMLElement) {\n const slot = this.renderRoot?.querySelector<HTMLSlotElement>('slot[name=\"prompt\"]');\n const nodes = slot?.assignedNodes({ flatten: true }) || [];\n const text = nodes.map((n) => n.textContent || \"\").join(\"\")\n .trim();\n if (!text) return;\n this._copy(text, btn);\n }\n\n _renderWorksIn() {\n if (!this.worksIn.length) return nothing;\n return html`\n <div class=\"bd-installoptions-worksin\">\n <span class=\"bd-installoptions-worksin-label\">Works in</span>\n <div class=\"bd-installoptions-pills\">\n ${this.worksIn.map(\n ({ label, initial, color }) => html`\n <span class=\"bd-installoptions-pill\">\n <span\n class=\"bd-installoptions-pill-icon\"\n style=\"background:${color || \"var(--color-neutral-800)\"}\"\n aria-hidden=\"true\"\n >${initial || label?.[0] || \"?\"}</span>\n ${label}\n </span>\n `\n )}\n </div>\n </div>\n `;\n }\n\n /* Every card's button says \"Copy\", so each is described by its card's\n title: a screen reader reading the buttons on their own hears which\n command each one copies. */\n _renderCard(card: InstallCard, index: number) {\n const titleId = `bd-installoptions-card-title-${index}`;\n return html`\n <div class=\"bd-installoptions-card\">\n <div class=\"bd-installoptions-card-head\">\n <bd-h as=\"h3\" id=${titleId} class=\"bd-installoptions-card-title\">${card.title}</bd-h>\n ${card.badge\n ? html`<span class=\"bd-installoptions-badge\">${card.badge}</span>`\n : nothing}\n </div>\n\n ${card.description\n ? html`<bd-p variant=\"small\" class=\"bd-installoptions-card-description\">${card.description}</bd-p>`\n : nothing}\n\n ${card.code\n ? html`\n <div class=\"bd-installoptions-code\">\n <pre class=\"bd-installoptions-code-text\">${card.code}</pre>\n <button\n type=\"button\"\n class=\"bd-installoptions-copy\"\n aria-describedby=${titleId}\n @click=${(e: MouseEvent) => this._copy(card.code!, e.currentTarget as HTMLButtonElement)}\n >Copy</button>\n </div>\n `\n : nothing}\n\n ${card.linkLabel\n ? html`\n <bd-link href=${card.linkHref || \"#\"} variant=\"primary\" class=\"bd-installoptions-card-link\">\n ${card.linkLabel} →\n </bd-link>\n `\n : nothing}\n </div>\n `;\n }\n\n _renderPromptPanel() {\n if (!this.promptPanel) return nothing;\n\n return html`\n <div class=\"bd-installoptions-promptpanel\">\n <bd-h as=\"h2\" id=\"bd-installoptions-prompt-title\" class=\"bd-installoptions-prompt-title\">\n <slot name=\"prompt-title\"></slot>\n </bd-h>\n\n <bd-p variant=\"regular\" class=\"bd-installoptions-prompt-description\">\n <slot name=\"prompt-description\"></slot>\n </bd-p>\n\n ${this.promptLabel\n ? html`<span class=\"bd-installoptions-prompt-label\">${this.promptLabel}</span>`\n : nothing}\n\n <div class=\"bd-installoptions-prompt-code\">\n <div class=\"bd-installoptions-prompt-code-text\">\n <slot name=\"prompt\"></slot>\n </div>\n <button\n type=\"button\"\n class=\"bd-installoptions-copy bd-installoptions-copy--prompt\"\n aria-describedby=\"bd-installoptions-prompt-title\"\n @click=${(e: MouseEvent) => this._copyPromptSlot(e.currentTarget as HTMLButtonElement)}\n >Copy</button>\n </div>\n\n <div class=\"bd-installoptions-prompt-note\">\n <slot name=\"prompt-note\"></slot>\n </div>\n\n <bd-p variant=\"regular\" class=\"bd-installoptions-prompt-footer\">\n <slot name=\"prompt-footer\"></slot>\n </bd-p>\n </div>\n `;\n }\n\n render() {\n return html`\n <div class=\"bd-installoptions-container\">\n <div class=\"bd-ensemble\">\n ${this.eyebrow\n ? html`<bd-p variant=\"regular\" class=\"bd-installoptions-eyebrow\">${this.eyebrow}</bd-p>`\n : nothing}\n\n <bd-h as=\"h2\" class=\"bd-installoptions-title\">${this.title}</bd-h>\n\n ${this.description\n ? html`<bd-p variant=\"regular\" class=\"bd-installoptions-description\">${this.description}</bd-p>`\n : nothing}\n\n ${this._renderWorksIn()}\n\n <!--\n Slot generic (fara nume) -- pentru orice continut care nu se\n potriveste cu grid-ul fix de carduri (ex: un tabel, o casuta\n checklist, o nota de avertizare). Cardurile ramase implicite\n (this.cards) tot se randeaza mai jos daca sunt pasate; cele doua\n pot coexista sau poti folosi doar unul din ele.\n -->\n <div class=\"bd-installoptions-body\">\n <slot></slot>\n </div>\n\n ${this.cards.length\n ? html`\n <div class=\"bd-installoptions-grid\">\n ${this.cards.map((card, index) => this._renderCard(card, index))}\n </div>\n `\n : nothing}\n\n ${this._renderPromptPanel()}\n </div>\n <span class=\"bd-installoptions-status\" role=\"status\">${this._announcer.status}</span>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-install-options\": BdInstallOptions;\n }\n}\n"],"mappings":"A,sgBA0BA,IACMI,EADN,cAC+BC,CAAW,C,OACxB,KAAA,OAAA,CAACC,EAAQC,EAAaP,CAAiB,C,CAsBvD,aAAc,CACZ,MAAM,EApBE,KAAA,QAAA,GAEF,KAAA,MAAA,GAEM,KAAA,YAAA,GAEO,KAAA,QAAA,CAAC,EAEC,KAAA,MAAA,CAAC,EAKV,KAAA,YAAA,GAEA,KAAA,YAAA,GASZ,KAAK,WAAa,IAAIQ,EAAU,IAAI,CACtC,CAWA,MAAM,MAAM,EAAc,EAAkB,CAC1C,GAAI,aAAYC,EAAI,SACpB,GAAI,QAAQ,OAAS,GACrB,GAAI,CACF,MAAM,UAAU,UAAU,UAAUC,CAAI,EACxC,IAAMC,EAAWF,EAAI,YACrB,EAAI,YAAc,SAClB,KAAK,WAAW,IAAI,QAAQ,EAC5B,eAAiB,CACf,EAAI,YAAcE,EAClB,OAAOF,EAAI,QAAQ,MACrB,EAAG,IAAI,CACT,MAAQ,CAEN,OAAOA,EAAI,QAAQ,MACrB,CAbqB,CAcvB,CAEA,MAAM,gBAAgB,EAAkB,CAGtC,IAAMC,IAFO,KAAK,YAAY,cAA+B,qBAAqB,EAAA,EAC9D,cAAc,CAAE,QAAS,EAAK,CAAC,GAAK,CAAC,EAAA,CACtC,IAAK,GAAME,EAAE,aAAe,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CACxD,KAAK,EACHF,GACL,KAAK,MAAMA,EAAMD,CAAG,CACtB,CAEA,gBAAiB,CAEf,OADK,KAAK,QAAQ,OACX,CAAI;;;;YAIH,KAAK,QAAQ,KACZ,CAAE,QAAO,UAAS,WAAY,CAAI;;;;sCAITI,GAAS,2BAA2B;;mBAEvDC,GAAWC,IAAQ,IAAM,IAAI;kBAC9BA,EAAM;;aAGd,EAAE;;;MAhByBC,CAo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MAAO,CAAC,CAAA,EAAAjB,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAoB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAjB,EAAA,UAAA,cAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAoB,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAjB,EAAA,UAAA,UAAA,IAAA,EAAA,EAExBH,EAAA,CAAAoB,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAjB,EAAA,UAAA,QAAA,IAAA,EAAA,EAKxBH,EAAA,CAAAoB,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,cAAe,CAAC,CAAA,EAAAjB,EAAA,UAAA,cAAA,IAAA,EAAA,EAEpEH,EAAA,CAAAoB,EAAS,CAAE,KAAM,OAAQ,UAAW,cAAe,CAAC,CAAA,EAAAjB,EAAA,UAAA,cAAA,IAAA,EAAA,EAnBtD,EAAAH,EAAA,CAAAqB,EAAc,oBAAoB,CAAA,EAAAlB,CAAA"}
1
+ {"version":3,"file":"install-options.js","names":["installOptionsCSS","_decorate","__decorate","install_options_css_default","BdInstallOptions","LitElement","ensembleCSS","Announcer","btn","text","original","n","color","initial","label","nothing","titleId","index","card","e","property","defineElement"],"sources":["../../../../src/components/install-options/install-options.ts"],"sourcesContent":["import { LitElement, html, nothing } 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/heading/heading.ts\";\nimport \"#components/link/link.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport installOptionsCSS from \"./install-options.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { Announcer } from \"#shared/announcer.ts\";\n\ninterface WorksIn {\n label? : string;\n initial?: string;\n color? : string;\n}\n\ninterface InstallCard {\n title : string;\n badge? : string;\n description?: string;\n code? : string;\n linkLabel? : string;\n linkHref? : string;\n}\n\n@defineElement(\"bd-install-options\")\nclass BdInstallOptions extends LitElement {\n static styles = [ensembleCSS, installOptionsCSS];\n\n @property({ type: String })\n eyebrow = \"\";\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: Array })\n worksIn: WorksIn[] = []; // [{ label, initial, color }]\n @property({ type: Array })\n cards: InstallCard[] = []; // [{ title, badge, description, code, linkLabel, linkHref }]\n\n // \"Then just ask\" sub-panel — rendered only when this is set, so a\n // consumer of bd-install-options who doesn't need it gets nothing extra.\n @property({ type: Boolean, reflect: true, attribute: \"prompt-panel\" })\n promptPanel = false;\n @property({ type: String, attribute: \"prompt-label\" })\n promptLabel = \"\"; // small mono label above the prompt block\n\n _announcer: Announcer;\n\n constructor() {\n super();\n /* \"Copied\" is said, not only shown. The button's own text changes too,\n but a screen reader does not reliably read a focused button's new name,\n so the message goes through the live region (shared/announcer.ts). */\n this._announcer = new Announcer(this);\n }\n\n /* The button says \"Copied\" for 1.5s and ignores presses meanwhile. It is not\n disabled for it: disabling the focused button threw keyboard focus back to\n the top of the page, mid-card.\n\n The flag is data-copied, present or absent: its value is \"\", which reads\n as false, so asking for its value let a second press through, and that\n press took \"Copied\" as the text to restore. It is set before the\n clipboard is awaited, so two presses in quick succession cannot both\n start a copy. */\n async _copy(text: string, btn: HTMLElement) {\n if (\"copied\" in btn.dataset) return;\n btn.dataset.copied = \"\";\n try {\n await navigator.clipboard.writeText(text);\n const original = btn.textContent;\n btn.textContent = \"Copied\";\n this._announcer.say(\"Copied\");\n setTimeout(() => {\n btn.textContent = original;\n delete btn.dataset.copied;\n }, 1500);\n } catch {\n // clipboard permission denied or unavailable — button stays as \"Copy\"\n delete btn.dataset.copied;\n }\n }\n\n async _copyPromptSlot(btn: HTMLElement) {\n const slot = this.renderRoot?.querySelector<HTMLSlotElement>('slot[name=\"prompt\"]');\n const nodes = slot?.assignedNodes({ flatten: true }) || [];\n const text = nodes.map((n) => n.textContent || \"\").join(\"\")\n .trim();\n if (!text) return;\n this._copy(text, btn);\n }\n\n _renderWorksIn() {\n if (!this.worksIn.length) return nothing;\n return html`\n <div class=\"bd-installoptions-worksin\">\n <span class=\"bd-installoptions-worksin-label\">Works in</span>\n <div class=\"bd-installoptions-pills\">\n ${this.worksIn.map(\n ({ label, initial, color }) => html`\n <span class=\"bd-installoptions-pill\">\n <span\n class=\"bd-installoptions-pill-icon\"\n style=\"background:${color || \"var(--color-neutral-800)\"}\"\n aria-hidden=\"true\"\n >${initial || label?.[0] || \"?\"}</span>\n ${label}\n </span>\n `\n )}\n </div>\n </div>\n `;\n }\n\n /* Every card's button says \"Copy\", so each is described by its card's\n title: a screen reader reading the buttons on their own hears which\n command each one copies. */\n _renderCard(card: InstallCard, index: number) {\n const titleId = `bd-installoptions-card-title-${index}`;\n return html`\n <div class=\"bd-installoptions-card\">\n <div class=\"bd-installoptions-card-head\">\n <bd-h as=\"h3\" id=${titleId} class=\"bd-installoptions-card-title\">${card.title}</bd-h>\n ${card.badge\n ? html`<span class=\"bd-installoptions-badge\">${card.badge}</span>`\n : nothing}\n </div>\n\n ${card.description\n ? html`<bd-p variant=\"small\" class=\"bd-installoptions-card-description\">${card.description}</bd-p>`\n : nothing}\n\n ${card.code\n ? html`\n <div class=\"bd-installoptions-code\">\n <pre class=\"bd-installoptions-code-text\">${card.code}</pre>\n <button\n type=\"button\"\n class=\"bd-installoptions-copy\"\n aria-describedby=${titleId}\n @click=${(e: MouseEvent) => this._copy(card.code!, e.currentTarget as HTMLButtonElement)}\n >Copy</button>\n </div>\n `\n : nothing}\n\n ${card.linkLabel\n ? html`\n <bd-link href=${card.linkHref || \"#\"} variant=\"primary\" class=\"bd-installoptions-card-link\">\n ${card.linkLabel} →\n </bd-link>\n `\n : nothing}\n </div>\n `;\n }\n\n _renderPromptPanel() {\n if (!this.promptPanel) return nothing;\n\n return html`\n <div class=\"bd-installoptions-promptpanel\">\n <bd-h as=\"h2\" id=\"bd-installoptions-prompt-title\" class=\"bd-installoptions-prompt-title\">\n <slot name=\"prompt-title\"></slot>\n </bd-h>\n\n <bd-p variant=\"regular\" class=\"bd-installoptions-prompt-description\">\n <slot name=\"prompt-description\"></slot>\n </bd-p>\n\n ${this.promptLabel\n ? html`<span class=\"bd-installoptions-prompt-label\">${this.promptLabel}</span>`\n : nothing}\n\n <div class=\"bd-installoptions-prompt-code\">\n <div class=\"bd-installoptions-prompt-code-text\">\n <slot name=\"prompt\"></slot>\n </div>\n <button\n type=\"button\"\n class=\"bd-installoptions-copy bd-installoptions-copy--prompt\"\n aria-describedby=\"bd-installoptions-prompt-title\"\n @click=${(e: MouseEvent) => this._copyPromptSlot(e.currentTarget as HTMLButtonElement)}\n >Copy</button>\n </div>\n\n <div class=\"bd-installoptions-prompt-note\">\n <slot name=\"prompt-note\"></slot>\n </div>\n\n <bd-p variant=\"regular\" class=\"bd-installoptions-prompt-footer\">\n <slot name=\"prompt-footer\"></slot>\n </bd-p>\n </div>\n `;\n }\n\n render() {\n return html`\n <div class=\"bd-installoptions-container\">\n <div class=\"bd-ensemble\">\n ${this.eyebrow\n ? html`<bd-p variant=\"regular\" class=\"bd-installoptions-eyebrow\">${this.eyebrow}</bd-p>`\n : nothing}\n\n <bd-h as=\"h2\" class=\"bd-installoptions-title\">${this.title}</bd-h>\n\n ${this.description\n ? html`<bd-p variant=\"regular\" class=\"bd-installoptions-description\">${this.description}</bd-p>`\n : nothing}\n\n ${this._renderWorksIn()}\n\n <!--\n Slot generic (fara nume) -- pentru orice continut care nu se\n potriveste cu grid-ul fix de carduri (ex: un tabel, o casuta\n checklist, o nota de avertizare). Cardurile ramase implicite\n (this.cards) tot se randeaza mai jos daca sunt pasate; cele doua\n pot coexista sau poti folosi doar unul din ele.\n -->\n <div class=\"bd-installoptions-body\">\n <slot></slot>\n </div>\n\n ${this.cards.length\n ? html`\n <div class=\"bd-installoptions-grid\">\n ${this.cards.map((card, index) => this._renderCard(card, index))}\n </div>\n `\n : nothing}\n\n ${this._renderPromptPanel()}\n </div>\n <span class=\"bd-installoptions-status\" role=\"status\">${this._announcer.status}</span>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-install-options\": BdInstallOptions;\n }\n}\n"],"mappings":"A,qfA2BA,IACMI,EADN,cAC+BC,CAAW,C,OACxB,KAAA,OAAA,CAACC,EAAaN,CAAiB,C,CAsB/C,aAAc,CACZ,MAAM,EApBE,KAAA,QAAA,GAEF,KAAA,MAAA,GAEM,KAAA,YAAA,GAEO,KAAA,QAAA,CAAC,EAEC,KAAA,MAAA,CAAC,EAKV,KAAA,YAAA,GAEA,KAAA,YAAA,GASZ,KAAK,WAAa,IAAIO,EAAU,IAAI,CACtC,CAWA,MAAM,MAAM,EAAc,EAAkB,CAC1C,GAAI,aAAYC,EAAI,SACpB,GAAI,QAAQ,OAAS,GACrB,GAAI,CACF,MAAM,UAAU,UAAU,UAAUC,CAAI,EACxC,IAAMC,EAAWF,EAAI,YACrB,EAAI,YAAc,SAClB,KAAK,WAAW,IAAI,QAAQ,EAC5B,eAAiB,CACf,EAAI,YAAcE,EAClB,OAAOF,EAAI,QAAQ,MACrB,EAAG,IAAI,CACT,MAAQ,CAEN,OAAOA,EAAI,QAAQ,MACrB,CAbqB,CAcvB,CAEA,MAAM,gBAAgB,EAAkB,CAGtC,IAAMC,IAFO,KAAK,YAAY,cAA+B,qBAAqB,EAAA,EAC9D,cAAc,CAAE,QAAS,EAAK,CAAC,GAAK,CAAC,EAAA,CACtC,IAAK,GAAME,EAAE,aAAe,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CACxD,KAAK,EACHF,GACL,KAAK,MAAMA,EAAMD,CAAG,CACtB,CAEA,gBAAiB,CAEf,OADK,KAAK,QAAQ,OACX,CAAI;;;;YAIH,KAAK,QAAQ,KACZ,CAAE,QAAO,UAAS,WAAY,CAAI;;;;sCAITI,GAAS,2BAA2B;;mBAEvDC,GAAWC,IAAQ,IAAM,IAAI;kBAC9BA,EAA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AA,CAAAmB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAhB,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAmB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAhB,EAAA,UAAA,cAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAmB,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAhB,EAAA,UAAA,UAAA,IAAA,EAAA,EAExBH,EAAA,CAAAmB,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAhB,EAAA,UAAA,QAAA,IAAA,EAAA,EAKxBH,EAAA,CAAAmB,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,cAAe,CAAC,CAAA,EAAAhB,EAAA,UAAA,cAAA,IAAA,EAAA,EAEpEH,EAAA,CAAAmB,EAAS,CAAE,KAAM,OAAQ,UAAW,cAAe,CAAC,CAAA,EAAAhB,EAAA,UAAA,cAAA,IAAA,EAAA,EAnBtD,EAAAH,EAAA,CAAAoB,EAAc,oBAAoB,CAAA,EAAAjB,CAAA"}
@@ -35,7 +35,7 @@ declare class BdLink extends LitElement {
35
35
  * is drawn in currentColor, so it takes the link's ink in every variant,
36
36
  * state and surface without a rule of its own.
37
37
  */
38
- get _arrow(): import("lit-html").TemplateResult<1> | typeof nothing;
38
+ get _arrow(): typeof nothing | import("lit-html").TemplateResult<1>;
39
39
  /**
40
40
  * font-size is a type-scale step and color is a semantic role; both are
41
41
  * resolved to token references by shared/token-scales.ts, and anything off
@@ -22,7 +22,7 @@ export declare class BdListItem extends LitElement {
22
22
  disconnectedCallback(): void;
23
23
  updated(changed: PropertyValues<this>): void;
24
24
  render(): import("lit-html").TemplateResult<1>;
25
- _renderMarker(): import("lit-html").TemplateResult<1> | typeof nothing;
25
+ _renderMarker(): typeof nothing | import("lit-html").TemplateResult<1>;
26
26
  static styles: import("lit").CSSResult[];
27
27
  }
28
28
  declare global {
@@ -1,4 +1,5 @@
1
1
  import { LitElement, type PropertyValues } from "lit";
2
+ import "../../tokens/tokens.js";
2
3
  import "../button/button.js";
3
4
  import "../icons/pause-icon.js";
4
5
  import "../icons/play-icon.js";
@@ -1,13 +1,13 @@
1
- import{defineElement as e}from"../shared/define-element.js";import{tokens as t}from"../../tokens/tokens.js";import{spacing as n}from"../shared/token-scales.js";import r from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{ensembleCSS as i}from"../shared/ensemble.css.js";import"../button/button.js";import"../icons/pause-icon.js";import"../icons/play-icon.js";import{logoMarqueeCSS as a}from"./logo-marquee.css.js";import{LitElement as o,html as s}from"lit";import{property as c,state as l}from"lit/decorators.js";var u=class extends o{static{this.styles=[t,i,a]}constructor(){super(),this.label=``,this.duration=35,this.gap=`48`,this.paused=!1,this.pauseLabel=`Pause the moving logos`,this.playLabel=`Play the moving logos`,this._copies=1,this._frame=0,this._resize=new ResizeObserver(()=>{cancelAnimationFrame(this._frame),this._frame=requestAnimationFrame(()=>this._measure())})}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this._observe()}disconnectedCallback(){super.disconnectedCallback(),this._resize.disconnect(),cancelAnimationFrame(this._frame)}firstUpdated(){this._observe()}_observe(){this._resize.observe(this.renderRoot.querySelector(`.viewport`)),this._resize.observe(this.renderRoot.querySelector(`.group`))}_measure(){let e=this.renderRoot.querySelector(`.viewport`),t=this.renderRoot.querySelector(`.group`);if(!e||!t||!t.offsetWidth)return;let n=Math.max(1,Math.ceil(e.offsetWidth/t.offsetWidth));n!==this._copies&&(this._copies=n)}_onSlotChange(){this._fillCopies(),this._measure()}_fillCopies(){let e=this.renderRoot.querySelector(`slot`);if(!e)return;let t=e.assignedElements({flatten:!0});for(let e of this.renderRoot.querySelectorAll(`.copy`))e.replaceChildren(...t.map(e=>e.cloneNode(!0)))}updated(e){e.has(`_copies`)&&this._fillCopies()}_toggle(){this.paused=!this.paused}render(){let e=Array.from({length:this._copies});return s`
1
+ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{spacing as t}from"../shared/token-scales.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../button/button.js";import"../icons/pause-icon.js";import"../icons/play-icon.js";import{logoMarqueeCSS as i}from"./logo-marquee.css.js";import{LitElement as a,html as o}from"lit";import{property as s,state as c}from"lit/decorators.js";var l=class extends a{static{this.styles=[r,i]}constructor(){super(),this.label=``,this.duration=35,this.gap=`48`,this.paused=!1,this.pauseLabel=`Pause the moving logos`,this.playLabel=`Play the moving logos`,this._copies=1,this._frame=0,this._resize=new ResizeObserver(()=>{cancelAnimationFrame(this._frame),this._frame=requestAnimationFrame(()=>this._measure())})}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this._observe()}disconnectedCallback(){super.disconnectedCallback(),this._resize.disconnect(),cancelAnimationFrame(this._frame)}firstUpdated(){this._observe()}_observe(){this._resize.observe(this.renderRoot.querySelector(`.viewport`)),this._resize.observe(this.renderRoot.querySelector(`.group`))}_measure(){let e=this.renderRoot.querySelector(`.viewport`),t=this.renderRoot.querySelector(`.group`);if(!e||!t||!t.offsetWidth)return;let n=Math.max(1,Math.ceil(e.offsetWidth/t.offsetWidth));n!==this._copies&&(this._copies=n)}_onSlotChange(){this._fillCopies(),this._measure()}_fillCopies(){let e=this.renderRoot.querySelector(`slot`);if(!e)return;let t=e.assignedElements({flatten:!0});for(let e of this.renderRoot.querySelectorAll(`.copy`))e.replaceChildren(...t.map(e=>e.cloneNode(!0)))}updated(e){e.has(`_copies`)&&this._fillCopies()}_toggle(){this.paused=!this.paused}render(){let e=Array.from({length:this._copies});return o`
2
2
  <section
3
3
  class="bd-ensemble root"
4
4
  aria-label="${this.label}"
5
- style="--bd-logo-marquee-gap: ${n(this.gap)||`var(--spacing-48)`}; --bd-logo-marquee-duration: ${this.duration}s; --bd-logo-marquee-copies: ${this._copies+1};"
5
+ style="--bd-logo-marquee-gap: ${t(this.gap)||`var(--spacing-48)`}; --bd-logo-marquee-duration: ${this.duration}s; --bd-logo-marquee-copies: ${this._copies+1};"
6
6
  >
7
7
  <div class="viewport">
8
8
  <div class="track">
9
9
  <div class="group"><slot @slotchange=${this._onSlotChange}></slot></div>
10
- ${e.map(()=>s`<div class="group copy" aria-hidden="true" inert></div>`)}
10
+ ${e.map(()=>o`<div class="group copy" aria-hidden="true" inert></div>`)}
11
11
  </div>
12
12
  </div>
13
13
  <bd-button
@@ -17,7 +17,7 @@ import{defineElement as e}from"../shared/define-element.js";import{tokens as t}f
17
17
  icon-only
18
18
  label="${this.paused?this.playLabel:this.pauseLabel}"
19
19
  @click=${this._toggle}
20
- >${this.paused?s`<bd-play-icon size="sm"></bd-play-icon>`:s`<bd-pause-icon size="sm"></bd-pause-icon>`}</bd-button>
20
+ >${this.paused?o`<bd-play-icon size="sm"></bd-play-icon>`:o`<bd-pause-icon size="sm"></bd-pause-icon>`}</bd-button>
21
21
  </section>
22
- `}};r([c({type:String})],u.prototype,`label`,void 0),r([c({type:Number})],u.prototype,`duration`,void 0),r([c({type:String})],u.prototype,`gap`,void 0),r([c({type:Boolean,reflect:!0})],u.prototype,`paused`,void 0),r([c({type:String,attribute:`pause-label`})],u.prototype,`pauseLabel`,void 0),r([c({type:String,attribute:`play-label`})],u.prototype,`playLabel`,void 0),r([l()],u.prototype,`_copies`,void 0),u=r([e(`bd-logo-marquee`)],u);export{u as LogoMarquee};
22
+ `}};n([s({type:String})],l.prototype,`label`,void 0),n([s({type:Number})],l.prototype,`duration`,void 0),n([s({type:String})],l.prototype,`gap`,void 0),n([s({type:Boolean,reflect:!0})],l.prototype,`paused`,void 0),n([s({type:String,attribute:`pause-label`})],l.prototype,`pauseLabel`,void 0),n([s({type:String,attribute:`play-label`})],l.prototype,`playLabel`,void 0),n([c()],l.prototype,`_copies`,void 0),l=n([e(`bd-logo-marquee`)],l);export{l as LogoMarquee};
23
23
  //# sourceMappingURL=logo-marquee.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logo-marquee.js","names":["_decorate","__decorate","LogoMarquee","LitElement","tokens","ensembleCSS","logoMarqueeCSS","viewport","group","copies","slot","items","copy","item","changed","spacing","property","state","defineElement"],"sources":["../../../../src/components/logo-marquee/logo-marquee.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/button/button.ts\";\nimport \"#components/icons/pause-icon.ts\";\nimport \"#components/icons/play-icon.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@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 // 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 = [tokens, 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 <bd-button\n class=\"toggle\"\n variant=\"ghost\"\n size=\"sm\"\n icon-only\n label=\"${this.paused ? this.playLabel : this.pauseLabel}\"\n @click=${this._toggle}\n >${this.paused\n ? html`<bd-play-icon size=\"sm\"></bd-play-icon>`\n : html`<bd-pause-icon size=\"sm\"></bd-pause-icon>`}</bd-button>\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-logo-marquee\": LogoMarquee;\n }\n}\n"],"mappings":"A,qhBAgCO,IAAME,EAAN,cAA0BC,CAAW,C,OAsB1B,KAAA,OAAA,CAACC,EAAQC,EAAaC,CAAc,C,CAQpD,aAAc,CACZ,MAAM,EA7BA,KAAA,MAAA,GAGG,KAAA,SAAA,GAGL,KAAA,IAAA,KAEG,KAAA,OAAA,GAEI,KAAA,WAAA,yBAED,KAAA,UAAA,wBAGF,KAAA,QAAA,EAGD,KAAA,OAAA,EAYP,KAAK,QAAU,IAAI,mBAAqB,CACtC,qBAAqB,KAAK,MAAM,EAChC,KAAK,OAAS,0BAA4B,KAAK,SAAS,CAAC,CAC3D,CAAC,CACH,CAEA,mBAAoB,CAClB,MAAM,kBAAkB,EACpB,KAAK,YAAY,KAAK,SAAS,CACrC,CAEA,sBAAuB,CACrB,MAAM,qBAAqB,EAC3B,KAAK,QAAQ,WAAW,EACxB,qBAAqB,KAAK,MAAM,CAClC,CAEA,cAAe,CACb,KAAK,SAAS,CAChB,CAEA,UAAW,CACT,KAAK,QAAQ,QAAQ,KAAK,WAAW,cAAc,WAAW,CAAE,EACh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O,CAAC,CAAA,EAAAd,EAAA,UAAA,QAAA,IAAA,EAAA,EAGzBF,EAAA,CAAAgB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAd,EAAA,UAAA,WAAA,IAAA,EAAA,EAGzBF,EAAA,CAAAgB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAd,EAAA,UAAA,MAAA,IAAA,EAAA,EAEzBF,EAAA,CAAAgB,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAd,EAAA,UAAA,SAAA,IAAA,EAAA,EAEzCF,EAAA,CAAAgB,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,CAAA,EAAAd,EAAA,UAAA,aAAA,IAAA,EAAA,EAEnDF,EAAA,CAAAgB,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAd,EAAA,UAAA,YAAA,IAAA,EAAA,EAGlDF,EAAA,CAAAiB,EAAM,CAAA,EAAAf,EAAA,UAAA,UAAA,IAAA,EAAA,EAjBR,EAAAF,EAAA,CAAAkB,EAAc,iBAAiB,CAAA,EAAAhB,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","property","state","defineElement"],"sources":["../../../../src/components/logo-marquee/logo-marquee.ts"],"sourcesContent":["import { LitElement, html, 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-icon.ts\";\nimport \"#components/icons/play-icon.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@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 // 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 <bd-button\n class=\"toggle\"\n variant=\"ghost\"\n size=\"sm\"\n icon-only\n label=\"${this.paused ? this.playLabel : this.pauseLabel}\"\n @click=${this._toggle}\n >${this.paused\n ? html`<bd-play-icon size=\"sm\"></bd-play-icon>`\n : html`<bd-pause-icon size=\"sm\"></bd-pause-icon>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,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAb,EAAA,UAAA,YAAA,IAAA,EAAA,EAGlDF,EAAA,CAAAgB,EAAM,CAAA,EAAAd,EAAA,UAAA,UAAA,IAAA,EAAA,EAjBR,EAAAF,EAAA,CAAAiB,EAAc,iBAAiB,CAAA,EAAAf,CAAA,E"}
@@ -1,2 +1,2 @@
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{BdHero as n}from"/home/runner/work/dex-core/dex-core/packages/dex-system-design/src/vendor/motion-art/motion-art-element.js";var r=`var(--color-surface-brand)`,i=/* @__PURE__ */ new WeakMap;function a(e,t){let n=i.get(e);return n||i.set(e,n=/* @__PURE__ */ new Map),n.has(t)||n.set(t,{...e,substrate:t}),n.get(t)}var o=class extends n{constructor(){super(),this.substrate=!1,this._generatedGround=this.palette.substrate}connectedCallback(){if(super.connectedCallback(),!this.labelFont){let e=getComputedStyle(this).getPropertyValue(`--typography-fontFamily-sans`).trim();e&&(this.labelFont=e)}this._sized=new Promise(e=>{this._resolveSized=e;let t=new ResizeObserver(()=>{t.disconnect(),e()});t.observe(this)})}disconnectedCallback(){this._resolveSized?.(),super.disconnectedCallback()}willUpdate(e){super.willUpdate(e),this.palette?.substrate===this._generatedGround&&(this.palette=a(this.palette,r))}runClock(){let e=this.palette;if(e?.substrate===r){let t=getComputedStyle(this).getPropertyValue(`--color-surface-brand`).trim();this.palette=a(e,t||this._generatedGround)}try{super.runClock()}finally{this.palette=e}}async getUpdateComplete(){let e=await super.getUpdateComplete();return await this._sized,await super.getUpdateComplete()&&e}};o=t([e(`bd-motion-art`)],o);export{o as MotionArt};
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{BdHero as n}from"../../vendor/motion-art/motion-art-element.js";var r=`var(--color-surface-brand)`,i=/* @__PURE__ */ new WeakMap;function a(e,t){let n=i.get(e);return n||i.set(e,n=/* @__PURE__ */ new Map),n.has(t)||n.set(t,{...e,substrate:t}),n.get(t)}var o=class extends n{constructor(){super(),this.substrate=!1,this._generatedGround=this.palette.substrate}connectedCallback(){if(super.connectedCallback(),!this.labelFont){let e=getComputedStyle(this).getPropertyValue(`--typography-fontFamily-sans`).trim();e&&(this.labelFont=e)}this._sized=new Promise(e=>{this._resolveSized=e;let t=new ResizeObserver(()=>{t.disconnect(),e()});t.observe(this)})}disconnectedCallback(){this._resolveSized?.(),super.disconnectedCallback()}willUpdate(e){super.willUpdate(e),this.palette?.substrate===this._generatedGround&&(this.palette=a(this.palette,r))}runClock(){let e=this.palette;if(e?.substrate===r){let t=getComputedStyle(this).getPropertyValue(`--color-surface-brand`).trim();this.palette=a(e,t||this._generatedGround)}try{super.runClock()}finally{this.palette=e}}async getUpdateComplete(){let e=await super.getUpdateComplete();return await this._sized,await super.getUpdateComplete()&&e}};o=t([e(`bd-motion-art`)],o);export{o as MotionArt};
2
2
  //# sourceMappingURL=motion-art.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"motion-art.js","names":["MotionArtElement","_decorate","__decorate","BRAND_GROUND","grounded","onGround","byGround","palette","ground","MotionArt","BdHero","sans","resolve","first","changed","defineElement"],"sources":["../../../../src/components/motion-art/motion-art.ts"],"sourcesContent":["import type { PropertyValues } from \"lit\";\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 { BdHero as MotionArtElement, type MotionArtPalette } from \"#vendor/motion-art/motion-art-element.js\";\n\nconst BRAND_GROUND = \"var(--color-surface-brand)\";\n\n/* Each palette made once per ground and then reused: the generated element\n restarts its clock whenever its palette is a different object. */\nconst grounded = new WeakMap<MotionArtPalette, Map<string | undefined, MotionArtPalette>>();\nfunction onGround(palette: MotionArtPalette, ground: string | undefined) {\n let byGround = grounded.get(palette);\n if (!byGround) grounded.set(palette, byGround = new Map());\n if (!byGround.has(ground)) byGround.set(ground, { ...palette, substrate: ground });\n return byGround.get(ground)!;\n}\n\n/**\n * The homepage's animated illustrations, one canvas each, square:\n * brand-surface the B on a glass sphere of network (bd-hero, media slot)\n * mesh-globe a turning globe with three badges (consumer AI card)\n * layer-stack four platform layers with captions (enterprise AI card)\n * geo-core a geodesic cage round a core (Labs AI card)\n *\n * The element is generated outside this package and vendored as is; see\n * src/vendor/motion-art/README.md. The generated class is still called BdHero;\n * this module imports it as MotionArtElement and registers it under the\n * package's own name, because bd-hero is the homepage band.\n *\n * Three things differ from the generated element:\n * - no substrate: it draws on a transparent canvas, so the ground is the\n * component's own --color-surface-brand and a partner brand shows through;\n * - the brand tones' ground colour is that token too, where the generated\n * element paints its own blue -- see willUpdate();\n * - the pill and badge type is the foundation's sans, read from the token.\n *\n * It draws only while on screen, holds a still frame under\n * prefers-reduced-motion, and stops on `paused`. It draws no control of its\n * own, and the hero and the brand bento card that hold it add none.\n */\n@defineElement(\"bd-motion-art\")\nexport class MotionArt extends MotionArtElement {\n _generatedGround: string | undefined;\n _sized? : Promise<void>;\n _resolveSized? : () => void;\n\n constructor() {\n super();\n this.substrate = false;\n // The generated element starts on its brand tone, so this is the blue it is drawn on.\n this._generatedGround = this.palette.substrate;\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (!this.labelFont) {\n const sans = getComputedStyle(this).getPropertyValue(\"--typography-fontFamily-sans\")\n .trim();\n if (sans) this.labelFont = sans;\n }\n /* The art takes its size from its first ResizeObserver delivery, and until\n then has no tile and draws nothing. That delivery comes a frame after\n connect, after the generated element's own observer, which it follows\n because observers deliver in the order they were created. */\n this._sized = new Promise<void>(resolve => {\n this._resolveSized = resolve;\n const first = new ResizeObserver(() => { first.disconnect(); resolve(); });\n first.observe(this);\n });\n }\n\n disconnectedCallback() {\n // Removed before its first delivery: nothing is coming, so nobody waits.\n this._resolveSized?.();\n super.disconnectedCallback();\n }\n\n /* The brand and solid tones were drawn on that blue and paint with it\n wherever the ground should show through: the caption and badge type,\n knocked out of a white pill, and the faces the canvas hides behind\n others. Here the ground is --color-surface-brand, so they take that,\n through the custom property itself so the type follows the brand. */\n willUpdate(changed: PropertyValues<this>) {\n super.willUpdate(changed);\n if (this.palette?.substrate === this._generatedGround) this.palette = onGround(this.palette, BRAND_GROUND);\n }\n\n /* A canvas takes no var(): the clock gets the colour the property resolves\n to when it starts, and keeps it until the next update starts another. */\n runClock() {\n const palette = this.palette;\n if (palette?.substrate === BRAND_GROUND) {\n const ground = getComputedStyle(this).getPropertyValue(\"--color-surface-brand\")\n .trim();\n this.palette = onGround(palette, ground || this._generatedGround);\n }\n try {\n super.runClock();\n } finally {\n this.palette = palette;\n }\n }\n\n /* updateComplete covers the sizing, so `await el.updateComplete` means the\n art is drawn at its size -- the delivery sets the tile, which is one more\n update. */\n async getUpdateComplete() {\n const first = await super.getUpdateComplete();\n await this._sized;\n return (await super.getUpdateComplete()) && first;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-motion-art\": MotionArt;\n }\n}\n"],"mappings":"A,ySAMA,IAAMG,EAAe,6BAIfC,kBAAW,IAAI,QACrB,SAASC,EAAS,EAA2B,EAA4B,CACvE,IAAIC,EAAWF,EAAS,IAAIG,CAAO,EAGnC,OAFKD,GAAUF,EAAS,IAAIG,EAAS,kBAAW,IAAI,GAAK,EACpDD,EAAS,IAAIE,CAAM,GAAGF,EAAS,IAAIE,EAAQ,CAAE,GAAGD,EAAS,UAAWC,CAAO,CAAC,EAC1EF,EAAS,IAAIE,CAAM,CAC5B,CA0BO,IAAMC,EAAN,cAAwBT,CAAiB,CAK9C,aAAc,CACZ,MAAM,EACN,KAAK,UAAY,GAEjB,KAAK,iBAAmB,KAAK,QAAQ,SACvC,CAEA,mBAAoB,CAElB,GADA,MAAM,kBAAkB,EACpB,CAAC,KAAK,UAAW,CACnB,IAAMW,EAAO,iBAAiB,IAAI,CAAC,CAAC,iBAAiB,8BAA8B,CAAC,CACjF,KAAK,EACJA,IAAM,KAAK,UAAYA,EAC7B,CAKA,KAAK,OAAS,IAAI,QAAc,GAAW,CACzC,KAAK,cAAgBC,EACrB,IAAMC,EAAQ,IAAI,mBAAqB,CAAEA,EAAM,WAAW,EAAGD,EAAQ,CAAG,CAAC,EACzEC,EAAM,QAAQ,IAAI,CACpB,CAAC,CACH,CAEA,sBAAuB,CAErB,KAAK,gBAAgB,EACrB,MAAM,qBAAqB,CAC7B,CAOA,WAAW,EAA+B,CACxC,MAAM,WAAWC,CAAO,EACpB,KAAK,SAAS,YAAc,KAAK,mBAAkB,KAAK,QAAUT,EAAS,KAAK,QAASF,CAAY,EAC3G,CAIA,UAAW,CACT,IAAMI,EAAU,KAAK,QACrB,GAAIA,GAAS,YAAcJ,EAAc,CACvC,IAAMK,EAAS,iBAAiB,IAAI,CAAC,CAAC,iBAAiB,uBAAuB,CAAC,CAC5E,KAAK,EACR,KAAK,QAAUH,EAASE,EAASC,GAAU,KAAK,gBAAgB,CAClE,CACA,GAAI,CACF,MAAM,SAAS,CACjB,QAAU,CACR,KAAK,QAAUD,CACjB,CACF,CAKA,MAAM,mBAAoB,CACxB,IAAMM,EAAQ,MAAM,MAAM,kBAAkB,EAE5C,OADA,MAAM,KAAK,OACH,MAAM,MAAM,kBAAkB,GAAMA,CAC9C,CACF,EAvEC,EAAAZ,EAAA,CAAAc,EAAc,eAAe,CAAA,EAAAN,CAAA,E"}
1
+ {"version":3,"file":"motion-art.js","names":["MotionArtElement","_decorate","__decorate","BRAND_GROUND","grounded","onGround","byGround","palette","ground","MotionArt","BdHero","sans","resolve","first","changed","defineElement"],"sources":["../../../../src/components/motion-art/motion-art.ts"],"sourcesContent":["import type { PropertyValues } from \"lit\";\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 { BdHero as MotionArtElement, type MotionArtPalette } from \"#vendor/motion-art/motion-art-element.js\";\n\nconst BRAND_GROUND = \"var(--color-surface-brand)\";\n\n/* Each palette made once per ground and then reused: the generated element\n restarts its clock whenever its palette is a different object. */\nconst grounded = new WeakMap<MotionArtPalette, Map<string | undefined, MotionArtPalette>>();\nfunction onGround(palette: MotionArtPalette, ground: string | undefined) {\n let byGround = grounded.get(palette);\n if (!byGround) grounded.set(palette, byGround = new Map());\n if (!byGround.has(ground)) byGround.set(ground, { ...palette, substrate: ground });\n return byGround.get(ground)!;\n}\n\n/**\n * The homepage's animated illustrations, one canvas each, square:\n * brand-surface the B on a glass sphere of network (bd-hero, media slot)\n * mesh-globe a turning globe with three badges (consumer AI card)\n * layer-stack four platform layers with captions (enterprise AI card)\n * geo-core a geodesic cage round a core (Labs AI card)\n *\n * The element is generated outside this package and vendored as is; see\n * src/vendor/motion-art/README.md. The generated class is still called BdHero;\n * this module imports it as MotionArtElement and registers it under the\n * package's own name, because bd-hero is the homepage band.\n *\n * Three things differ from the generated element:\n * - no substrate: it draws on a transparent canvas, so the ground is the\n * component's own --color-surface-brand and a partner brand shows through;\n * - the brand tones' ground colour is that token too, where the generated\n * element paints its own blue -- see willUpdate();\n * - the pill and badge type is the foundation's sans, read from the token.\n *\n * It draws only while on screen, holds a still frame under\n * prefers-reduced-motion, and stops on `paused`. It draws no control of its\n * own, and the hero and the brand bento card that hold it add none.\n */\n@defineElement(\"bd-motion-art\")\nexport class MotionArt extends MotionArtElement {\n _generatedGround: string | undefined;\n _sized? : Promise<void>;\n _resolveSized? : () => void;\n\n constructor() {\n super();\n this.substrate = false;\n // The generated element starts on its brand tone, so this is the blue it is drawn on.\n this._generatedGround = this.palette.substrate;\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (!this.labelFont) {\n const sans = getComputedStyle(this).getPropertyValue(\"--typography-fontFamily-sans\")\n .trim();\n if (sans) this.labelFont = sans;\n }\n /* The art takes its size from its first ResizeObserver delivery, and until\n then has no tile and draws nothing. That delivery comes a frame after\n connect, after the generated element's own observer, which it follows\n because observers deliver in the order they were created. */\n this._sized = new Promise<void>(resolve => {\n this._resolveSized = resolve;\n const first = new ResizeObserver(() => { first.disconnect(); resolve(); });\n first.observe(this);\n });\n }\n\n disconnectedCallback() {\n // Removed before its first delivery: nothing is coming, so nobody waits.\n this._resolveSized?.();\n super.disconnectedCallback();\n }\n\n /* The brand and solid tones were drawn on that blue and paint with it\n wherever the ground should show through: the caption and badge type,\n knocked out of a white pill, and the faces the canvas hides behind\n others. Here the ground is --color-surface-brand, so they take that,\n through the custom property itself so the type follows the brand. */\n willUpdate(changed: PropertyValues<this>) {\n super.willUpdate(changed);\n if (this.palette?.substrate === this._generatedGround) this.palette = onGround(this.palette, BRAND_GROUND);\n }\n\n /* A canvas takes no var(): the clock gets the colour the property resolves\n to when it starts, and keeps it until the next update starts another. */\n runClock() {\n const palette = this.palette;\n if (palette?.substrate === BRAND_GROUND) {\n const ground = getComputedStyle(this).getPropertyValue(\"--color-surface-brand\")\n .trim();\n this.palette = onGround(palette, ground || this._generatedGround);\n }\n try {\n super.runClock();\n } finally {\n this.palette = palette;\n }\n }\n\n /* updateComplete covers the sizing, so `await el.updateComplete` means the\n art is drawn at its size -- the delivery sets the tile, which is one more\n update. */\n async getUpdateComplete() {\n const first = await super.getUpdateComplete();\n await this._sized;\n return (await super.getUpdateComplete()) && first;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-motion-art\": MotionArt;\n }\n}\n"],"mappings":"A,4OAMA,IAAMG,EAAe,6BAIfC,kBAAW,IAAI,QACrB,SAASC,EAAS,EAA2B,EAA4B,CACvE,IAAIC,EAAWF,EAAS,IAAIG,CAAO,EAGnC,OAFKD,GAAUF,EAAS,IAAIG,EAAS,kBAAW,IAAI,GAAK,EACpDD,EAAS,IAAIE,CAAM,GAAGF,EAAS,IAAIE,EAAQ,CAAE,GAAGD,EAAS,UAAWC,CAAO,CAAC,EAC1EF,EAAS,IAAIE,CAAM,CAC5B,CA0BO,IAAMC,EAAN,cAAwBT,CAAiB,CAK9C,aAAc,CACZ,MAAM,EACN,KAAK,UAAY,GAEjB,KAAK,iBAAmB,KAAK,QAAQ,SACvC,CAEA,mBAAoB,CAElB,GADA,MAAM,kBAAkB,EACpB,CAAC,KAAK,UAAW,CACnB,IAAMW,EAAO,iBAAiB,IAAI,CAAC,CAAC,iBAAiB,8BAA8B,CAAC,CACjF,KAAK,EACJA,IAAM,KAAK,UAAYA,EAC7B,CAKA,KAAK,OAAS,IAAI,QAAc,GAAW,CACzC,KAAK,cAAgBC,EACrB,IAAMC,EAAQ,IAAI,mBAAqB,CAAEA,EAAM,WAAW,EAAGD,EAAQ,CAAG,CAAC,EACzEC,EAAM,QAAQ,IAAI,CACpB,CAAC,CACH,CAEA,sBAAuB,CAErB,KAAK,gBAAgB,EACrB,MAAM,qBAAqB,CAC7B,CAOA,WAAW,EAA+B,CACxC,MAAM,WAAWC,CAAO,EACpB,KAAK,SAAS,YAAc,KAAK,mBAAkB,KAAK,QAAUT,EAAS,KAAK,QAASF,CAAY,EAC3G,CAIA,UAAW,CACT,IAAMI,EAAU,KAAK,QACrB,GAAIA,GAAS,YAAcJ,EAAc,CACvC,IAAMK,EAAS,iBAAiB,IAAI,CAAC,CAAC,iBAAiB,uBAAuB,CAAC,CAC5E,KAAK,EACR,KAAK,QAAUH,EAASE,EAASC,GAAU,KAAK,gBAAgB,CAClE,CACA,GAAI,CACF,MAAM,SAAS,CACjB,QAAU,CACR,KAAK,QAAUD,CACjB,CACF,CAKA,MAAM,mBAAoB,CACxB,IAAMM,EAAQ,MAAM,MAAM,kBAAkB,EAE5C,OADA,MAAM,KAAK,OACH,MAAM,MAAM,kBAAkB,GAAMA,CAC9C,CACF,EAvEC,EAAAZ,EAAA,CAAAc,EAAc,eAAe,CAAA,EAAAN,CAAA,E"}
@@ -1,4 +1,5 @@
1
1
  import { LitElement } from "lit";
2
+ import "../../tokens/tokens.js";
2
3
  import "../heading/heading.js";
3
4
  import "../paragraph/paragraph.js";
4
5
  interface OverviewFact {
@@ -1,23 +1,23 @@
1
- import{defineElement as e}from"../shared/define-element.js";import{tokens as t}from"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import i from"./overview.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c}from"lit/decorators.js";var l=class extends a{constructor(...e){super(...e),this.title=``,this.description=``,this.facts=[]}static{this.styles=[t,r,i]}render(){return 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"../heading/heading.js";import"../paragraph/paragraph.js";import{ensembleCSS as n}from"../shared/ensemble.css.js";import r from"./overview.css.js";import{LitElement as i,html as a,nothing as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends i{constructor(...e){super(...e),this.title=``,this.description=``,this.facts=[]}static{this.styles=[n,r]}render(){return a`
2
2
  <div class="bd-ensemble bd-infopanel-container">
3
- ${this.title?o`
3
+ ${this.title?a`
4
4
  <bd-h as="h2" class="bd-infopanel-title">
5
5
  <slot name="title">${this.title}</slot>
6
6
  </bd-h>
7
- `:s}
7
+ `:o}
8
8
 
9
9
  <div class="bd-infopanel-left">
10
- ${this.description?o`
10
+ ${this.description?a`
11
11
  <bd-p variant="large" class="bd-infopanel-description">
12
12
  <slot name="description">${this.description}</slot>
13
13
  </bd-p>
14
- `:s}
14
+ `:o}
15
15
 
16
16
  <slot></slot>
17
17
  </div>
18
18
 
19
19
  <div class="bd-infopanel-right">
20
- ${this.facts.map(e=>o`
20
+ ${this.facts.map(e=>a`
21
21
  <div class="bd-infopanel-row">
22
22
  <div class="bd-infopanel-divider"></div>
23
23
  <bd-p variant="xsmall" class="bd-infopanel-label">${e.label}</bd-p>
@@ -27,5 +27,5 @@ import{defineElement as e}from"../shared/define-element.js";import{tokens as t}f
27
27
  <slot name="facts"></slot>
28
28
  </div>
29
29
  </div>
30
- `}};n([c({type:String})],l.prototype,`title`,void 0),n([c({type:String})],l.prototype,`description`,void 0),n([c({type:Array})],l.prototype,`facts`,void 0),l=n([e(`bd-overview`)],l);
30
+ `}};t([s({type:String})],c.prototype,`title`,void 0),t([s({type:String})],c.prototype,`description`,void 0),t([s({type:Array})],c.prototype,`facts`,void 0),c=t([e(`bd-overview`)],c);
31
31
  //# sourceMappingURL=overview.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"overview.js","names":["infoPanelCSS","_decorate","__decorate","overview_css_default","Overview","LitElement","_args","tokens","ensembleCSS","nothing","fact","property","defineElement"],"sources":["../../../../src/components/overview/overview.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport infoPanelCSS from \"./overview.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\ninterface OverviewFact {\n label: string;\n value: string;\n}\n\n@defineElement(\"bd-overview\")\nclass Overview extends LitElement {\n static styles = [tokens, ensembleCSS, infoPanelCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: Array })\n facts: OverviewFact[] = []; // [{ label: String, value: String }]\n\n render() {\n return html`\n <div class=\"bd-ensemble bd-infopanel-container\">\n ${this.title\n ? html`\n <bd-h as=\"h2\" class=\"bd-infopanel-title\">\n <slot name=\"title\">${this.title}</slot>\n </bd-h>\n `\n : nothing}\n\n <div class=\"bd-infopanel-left\">\n ${this.description\n ? html`\n <bd-p variant=\"large\" class=\"bd-infopanel-description\">\n <slot name=\"description\">${this.description}</slot>\n </bd-p>\n `\n : nothing}\n\n <slot></slot>\n </div>\n\n <div class=\"bd-infopanel-right\">\n ${this.facts.map(\n (fact) => html`\n <div class=\"bd-infopanel-row\">\n <div class=\"bd-infopanel-divider\"></div>\n <bd-p variant=\"xsmall\" class=\"bd-infopanel-label\">${fact.label}</bd-p>\n <bd-p variant=\"regular\" class=\"bd-infopanel-value\">${fact.value}</bd-p>\n </div>\n `\n )}\n <slot name=\"facts\"></slot>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-overview\": Overview;\n }\n}"],"mappings":"A,obAcA,IACMI,EADN,cACuBC,CAAW,C,8BAIxB,KAAA,MAAA,GAEM,KAAA,YAAA,GAEU,KAAA,MAAA,CAAC,C,QAPT,KAAA,OAAA,CAACE,EAAQC,EAAaR,CAAY,C,CASlD,QAAS,CACP,MAAO,EAAI;;UAEL,KAAK,MACH,CAAI;;qCAEqB,KAAK,MAAM;;cAGpCS,EAAQ;;;YAGR,KAAK,YACH,CAAI;;6CAE2B,KAAK,YAAY;;gBAGhDA,EAAQ;;;;;;YAMV,KAAK,MAAM,IACV,GAAS,CAAI;;;oEAG0CC,EAAK,MAAM;qEACVA,EAAK,MAAM;;aAGtE,EAAE;;;;KAKV,CACF,EA7CGT,EAAA,CAAAU,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAU,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,cAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAU,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAP,EAAA,UAAA,QAAA,IAAA,EAAA,EAR1B,EAAAH,EAAA,CAAAW,EAAc,aAAa,CAAA,EAAAR,CAAA"}
1
+ {"version":3,"file":"overview.js","names":["infoPanelCSS","_decorate","__decorate","overview_css_default","Overview","LitElement","_args","ensembleCSS","nothing","fact","property","defineElement"],"sources":["../../../../src/components/overview/overview.ts"],"sourcesContent":["import { LitElement, html, nothing } 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/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport infoPanelCSS from \"./overview.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\ninterface OverviewFact {\n label: string;\n value: string;\n}\n\n@defineElement(\"bd-overview\")\nclass Overview extends LitElement {\n static styles = [ensembleCSS, infoPanelCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: Array })\n facts: OverviewFact[] = []; // [{ label: String, value: String }]\n\n render() {\n return html`\n <div class=\"bd-ensemble bd-infopanel-container\">\n ${this.title\n ? html`\n <bd-h as=\"h2\" class=\"bd-infopanel-title\">\n <slot name=\"title\">${this.title}</slot>\n </bd-h>\n `\n : nothing}\n\n <div class=\"bd-infopanel-left\">\n ${this.description\n ? html`\n <bd-p variant=\"large\" class=\"bd-infopanel-description\">\n <slot name=\"description\">${this.description}</slot>\n </bd-p>\n `\n : nothing}\n\n <slot></slot>\n </div>\n\n <div class=\"bd-infopanel-right\">\n ${this.facts.map(\n (fact) => html`\n <div class=\"bd-infopanel-row\">\n <div class=\"bd-infopanel-divider\"></div>\n <bd-p variant=\"xsmall\" class=\"bd-infopanel-label\">${fact.label}</bd-p>\n <bd-p variant=\"regular\" class=\"bd-infopanel-value\">${fact.value}</bd-p>\n </div>\n `\n )}\n <slot name=\"facts\"></slot>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-overview\": Overview;\n }\n}"],"mappings":"A,maAeA,IACMI,EADN,cACuBC,CAAW,C,8BAIxB,KAAA,MAAA,GAEM,KAAA,YAAA,GAEU,KAAA,MAAA,CAAC,C,QAPT,KAAA,OAAA,CAACE,EAAaP,CAAY,C,CAS1C,QAAS,CACP,MAAO,EAAI;;UAEL,KAAK,MACH,CAAI;;qCAEqB,KAAK,MAAM;;cAGpCQ,EAAQ;;;YAGR,KAAK,YACH,CAAI;;6CAE2B,KAAK,YAAY;;gBAGhDA,EAAQ;;;;;;YAMV,KAAK,MAAM,IACV,GAAS,CAAI;;;oEAG0CC,EAAK,MAAM;qEACVA,EAAK,MAAM;;aAGtE,EAAE;;;;KAKV,CACF,EA7CGR,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,cAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAS,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAN,EAAA,UAAA,QAAA,IAAA,EAAA,EAR1B,EAAAH,EAAA,CAAAU,EAAc,aAAa,CAAA,EAAAP,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { LitElement } from "lit";
2
+ import "../../tokens/tokens.js";
2
3
  import "../icons/bd-ai-icon.js";
3
4
  import "../link/link.js";
4
5
  interface PageSwitcherItem {
@@ -1,18 +1,18 @@
1
- import{defineElement as e}from"../shared/define-element.js";import{tokens as t}from"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../link/link.js";import"../icons/bd-ai-icon.js";import{pageSwitcherStyles as i}from"./page-switcher.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c}from"lit/decorators.js";var l=class extends a{constructor(...e){super(...e),this.items=[]}static{this.styles=[t,r,i]}render(){return 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{ensembleCSS as n}from"../shared/ensemble.css.js";import"../link/link.js";import"../icons/bd-ai-icon.js";import{pageSwitcherStyles as r}from"./page-switcher.css.js";import{LitElement as i,html as a,nothing as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends i{constructor(...e){super(...e),this.items=[]}static{this.styles=[n,r]}render(){return a`
2
2
  <div class="bd-ensemble inner">
3
3
  <bd-ai-icon class="logo" width="200" height="24"></bd-ai-icon>
4
4
 
5
5
  <nav aria-label="Product navigation">
6
- ${this.items.map(({title:e,href:t,active:n})=>o`
6
+ ${this.items.map(({title:e,href:t,active:n})=>a`
7
7
  <bd-link
8
8
  href=${t}
9
9
  variant="primary"
10
10
  no-underline
11
- current=${n?`page`:s}
11
+ current=${n?`page`:o}
12
12
  class="page-link"
13
- >${e||s}</bd-link>
13
+ >${e||o}</bd-link>
14
14
  `)}
15
15
  </nav>
16
16
  </div>
17
- `}};n([c({type:Array})],l.prototype,`items`,void 0),l=n([e(`bd-page-switcher`)],l);
17
+ `}};t([s({type:Array})],c.prototype,`items`,void 0),c=t([e(`bd-page-switcher`)],c);
18
18
  //# sourceMappingURL=page-switcher.js.map