@tempoxyz/ds 3.6.20261201041125 → 3.7.20261201042552

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.
@@ -36,7 +36,7 @@ Each file opens with its contents. Find a section with `rg -n '^## ' <file>`, an
36
36
  - [product/components/layout.md](product/components/layout.md) (91 KB): AppShell, Container, Frame, Grid, Inline, Inset, Separator, Stack, Surface.
37
37
  - [product/components/data-display.md](product/components/data-display.md) (164 KB): Accordion, AgentLogo, Avatar, Badge, BarChart, Code, GetStartedVisual, HeroVisual, IconTile, Kbd, ListGroup, Snippet, SplitBar, SuccessHero, Table, TempoLogo, VerificationCode, Visual.
38
38
  - [product/components/blockchain.md](product/components/blockchain.md) (107 KB): AddressCard, Amount, AssetChip, BadgedLogo, Hex, Identicon, NetworkLogo, Qr, SecretValue, Token, TokenLogo.
39
- - [marketing.md](marketing.md) (309 KB): The Marketing system.
39
+ - [marketing.md](marketing.md) (312 KB): The Marketing system.
40
40
  - [arsenal.md](arsenal.md) (266 KB): The Arsenal brand system.
41
41
 
42
42
  ## Rules
@@ -38,7 +38,7 @@ Each section below is one page of the documentation at ds.tehq.dev.
38
38
  - [Hero](#hero): Opens a marketing, index or answer page: its title, a subtitle and its actions.
39
39
  - [Lead Capture](#lead-capture): Opens a report's page with its title, summary, key figures and download form.
40
40
  - [Logo Wall](#logo-wall): Shows the companies Tempo was designed with, as a wall of logos on About.
41
- - [Media](#media): Shows a customer story's video as a poster above its text that opens it.
41
+ - [Media](#media): A 4:3 picture, or a video's poster that opens the video.
42
42
  - [Nav](#nav): Leads from every page to the site's sections, in a bar fixed at the top.
43
43
  - [Partners Index](#partners-index): Lists the partners or assets a page covers, as cards.
44
44
  - [Quote Band](#quote-band): Sets one customer's words large on a full-bleed band over a photo.
@@ -5530,6 +5530,8 @@ import { Faq } from '@tempoxyz/ds/marketing'
5530
5530
 
5531
5531
  export const fill = true
5532
5532
 
5533
+ export const width = 'desktop'
5534
+
5533
5535
  export function Demo() {
5534
5536
  return (
5535
5537
  <Faq>
@@ -6370,30 +6372,36 @@ Covers the section the wall renders, and its tones.
6370
6372
 
6371
6373
  ## Media
6372
6374
 
6373
- Shows a customer story's video as a poster above its text that opens it.
6375
+ A 4:3 picture, or a video's poster that opens the video.
6374
6376
 
6375
6377
  ### Overview
6376
6378
 
6377
- A customer story's media at the top of its text: a 4:3 image, cropped to fill. Set `video`, and the image becomes the video's poster, with a Play button that opens the video in a full-viewport dialog. A pointer opens it anywhere on the poster.
6379
+ A 4:3 picture, cropped to fill, with the Marketing corner: 16px, and 24px from 768px. Set `video`, and the picture becomes the video's poster, with a Play button that opens the video in a full-viewport dialog.
6378
6380
 
6379
6381
  ### Examples
6380
6382
 
6381
6383
  #### Image
6382
6384
 
6383
- Set `src` and `alt` for an image, as on most customer stories. Resize the preview to see the corner step up at 768px.
6385
+ Set `src` and `alt` for a picture.
6384
6386
 
6385
6387
  ```tsx
6386
- /** Demonstrates a customer story's 4:3 image in a Marketing Media frame. @module */
6387
- import { Media } from '@tempoxyz/ds/marketing'
6388
+ /** Demonstrates a 4:3 picture in a Marketing Media frame. @module */
6389
+ import { Media, style } from '@tempoxyz/ds/marketing'
6390
+ import photo from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-people-do.jpg'
6388
6391
 
6389
6392
  export const fill = true
6390
6393
 
6391
- // A 4:3 gradient that stands in for a customer story's photo.
6392
- const photo =
6393
- "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 3'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1' y2='1'%3E%3Cstop stop-color='%236b7f99'/%3E%3Cstop offset='1' stop-color='%23a3866a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='4' height='3' fill='url(%23g)'/%3E%3C/svg%3E"
6394
-
6395
6394
  export function Demo() {
6396
- return <Media alt="Felix Pago" src={photo} />
6395
+ return (
6396
+ <div {...styles.frame()}>
6397
+ <Media alt="Teal and amber light, blurred by motion" src={photo} />
6398
+ </div>
6399
+ )
6400
+ }
6401
+
6402
+ namespace styles {
6403
+ // A picture in the frame, not the frame itself.
6404
+ export const frame = style({ marginInline: 'auto', maxWidth: '480', width: 'full' })
6397
6405
  }
6398
6406
  ```
6399
6407
 
@@ -6401,21 +6409,32 @@ export function Demo() {
6401
6409
 
6402
6410
  #### Video
6403
6411
 
6404
- Add `video`, and Play opens it in a dialog that starts it with sound. This preview uses an empty video source to demonstrate the dialog, without a playable video asset.
6412
+ Add `video`, and Play opens it in a dialog that starts it with sound.
6405
6413
 
6406
6414
  ```tsx
6407
6415
  /** Demonstrates a video's poster in a Marketing Media frame, whose Play button opens the video in a dialog. @module */
6408
- import { Media } from '@tempoxyz/ds/marketing'
6416
+ import { Media, style } from '@tempoxyz/ds/marketing'
6417
+ import poster from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-refs-do.jpg'
6409
6418
 
6410
6419
  export const fill = true
6411
6420
 
6412
- // A 4:3 gradient that stands in for the video's poster.
6413
- const poster =
6414
- "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 3'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1' y2='1'%3E%3Cstop stop-color='%236b7f99'/%3E%3Cstop offset='1' stop-color='%23a3866a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='4' height='3' fill='url(%23g)'/%3E%3C/svg%3E"
6415
-
6416
6421
  export function Demo() {
6417
- // The empty source keeps the demo free of a video file, so the dialog opens on an empty player.
6418
- return <Media alt="DoorDash" src={poster} video="data:video/mp4;base64," />
6422
+ return (
6423
+ <div {...styles.frame()}>
6424
+ {/* The empty source keeps the demo free of a video file, so the dialog opens on an empty player. */}
6425
+ <Media
6426
+ alt="City lights at dusk, blurred by motion"
6427
+ name="Product tour"
6428
+ src={poster}
6429
+ video="data:video/mp4;base64,"
6430
+ />
6431
+ </div>
6432
+ )
6433
+ }
6434
+
6435
+ namespace styles {
6436
+ // A poster in the frame, not the frame itself.
6437
+ export const frame = style({ marginInline: 'auto', maxWidth: '480', width: 'full' })
6419
6438
  }
6420
6439
  ```
6421
6440
 
@@ -6426,61 +6445,97 @@ export function Demo() {
6426
6445
  ```tsx
6427
6446
  import { Media } from '@tempoxyz/ds/marketing'
6428
6447
 
6429
- <Media />
6448
+ <Media
6449
+ alt="Two people on a stage"
6450
+ captions="/keynote.vtt"
6451
+ name="Keynote"
6452
+ src="/keynote-poster.jpg"
6453
+ video="/keynote.mp4"
6454
+ />
6430
6455
  ```
6431
6456
 
6432
6457
  ### Guidelines
6433
6458
 
6434
6459
  #### When to Use
6435
6460
 
6436
- * Open a customer story's text with its video or image.
6461
+ * Open a section or story with a picture, or a video someone can play.
6437
6462
 
6438
6463
  #### When Not to Use
6439
6464
 
6440
- * Use [Article Body](/marketing/sections/article-body) for an image inside a story's text.
6441
- * Use [Card](/marketing/sections/card) for a story card's image, which the card draws itself.
6465
+ * Use [Article Body](/marketing/sections/article-body) for a picture inside an article's text.
6466
+ * Use [Card](/marketing/sections/card) for a card's picture, which the card crops itself.
6467
+
6468
+ #### Crop Pictures to 4:3
6442
6469
 
6443
- #### Crop Posters to 4:3
6470
+ The frame crops to fill, so a picture of another ratio loses its edges.
6444
6471
 
6445
- Use the story's own art at 4:3. The frame crops to fill, so other ratios lose their edges.
6472
+ **Do:** Crop the picture to 4:3 yourself, so the whole scene shows.
6473
+
6474
+ ```tsx
6475
+ <span style={{ display: 'block', inlineSize: 200 }}>
6476
+ <Media alt="A figure under the sun, whole" loading="eager" src={whole} />
6477
+ </span>
6478
+ ```
6479
+
6480
+ **Don't:** Pass a 16:9 picture, which loses the figure and the sun at its edges.
6481
+
6482
+ ```tsx
6483
+ <span style={{ display: 'grid', placeItems: 'center' }}>
6484
+ <img
6485
+ alt=""
6486
+ src={wide}
6487
+ style={{ borderRadius: 16, gridArea: '1 / 1', inlineSize: 267, opacity: 0.3 }}
6488
+ />
6489
+ <span style={{ display: 'block', gridArea: '1 / 1', inlineSize: 200 }}>
6490
+ <Media alt="A figure under the sun, both cut at the edges" loading="eager" src={wide} />
6491
+ </span>
6492
+ </span>
6493
+ ```
6446
6494
 
6447
6495
  #### Give Every Video a Poster
6448
6496
 
6449
- Pick a poster that shows who speaks. It stands in until the video opens.
6497
+ Pick a poster that shows what the video is about.
6498
+
6499
+ #### Caption Every Video with Speech
6500
+
6501
+ Set `captions` to the video's WebVTT file. The video shows the captions by default, and its controls can turn them off.
6450
6502
 
6451
6503
  #### Load Images Through Your Framework
6452
6504
 
6453
- Pass `render` for an optimized image component, such as a Next.js image with its width and height.
6505
+ Pass `render` for an optimized image component, such as a Next.js image with its width and height. Media's own image loads lazily, so set `loading="eager"` and `fetchPriority="high"` when it's the first image on the screen.
6454
6506
 
6455
6507
  ### Content
6456
6508
 
6457
- #### Name the Company as the Story Does
6509
+ #### Name What It Shows
6458
6510
 
6459
- Set `alt` to the company the story names, such as DoorDash. Play and the dialog take it as their name unless `name` sets another. Pass `messages` to translate the labels.
6511
+ Set `alt` to what the picture shows. Play reads `Play {name} video`, so set `name` when the alt text is longer than a short name, such as Keynote. Pass `messages` to translate the labels.
6460
6512
 
6461
6513
  ### Accessibility
6462
6514
 
6463
- The current `video` API does not accept caption tracks. For video with speech, use an accessible alternative player with captions until caption tracks are supported.
6464
-
6465
6515
  * **Image (img):** Without a video, an image whose alt text is `alt`.
6466
6516
  * **Play (button):** A button named Play, then the name, then video. A pointer opens it anywhere on the poster.
6467
6517
  * **Dialog (dialog):** A modal dialog that opens with focus on Close. The page behind it does not scroll.
6468
6518
  * **Close (Escape):** Escape or Close shuts the dialog and returns focus to Play.
6519
+ * **Reduced Motion (prefers-reduced-motion):** The dialog fades in and out, and the player keeps its size instead of scaling in.
6469
6520
 
6470
6521
  ### Related
6471
6522
 
6523
+ [Hero](/marketing/sections/hero)
6524
+
6525
+ Use for a page's opening, whose `media` can hold Media.
6526
+
6527
+ [Card](/marketing/sections/card)
6528
+
6529
+ Use for a linked card, whose `media` can hold a picture.
6530
+
6472
6531
  [Article Hero](/marketing/sections/article-hero)
6473
6532
 
6474
- Use for the story opening above it.
6533
+ Use for an article's opening, whose `media` can hold Media.
6475
6534
 
6476
6535
  [Button](/marketing/components/button)
6477
6536
 
6478
6537
  Covers Play and Close, in the `playback` and `carousel` layouts.
6479
6538
 
6480
- [Customer Story](/marketing/templates/customer-story)
6481
-
6482
- Covers the stories it opens, and their video fields.
6483
-
6484
6539
  ## Nav
6485
6540
 
6486
6541
  Leads from every page to the site's sections, in a bar fixed at the top.
@@ -7245,29 +7300,29 @@ Tells one feature through a large picture, with its steps, cards or tools.
7245
7300
 
7246
7301
  ### Overview
7247
7302
 
7248
- One feature told through a large picture. A showcase renders a [Section](/marketing/sections/section) named by its heading, over the art and its items. The art comes in as a slot, so a page keeps its own canvas or animation.
7303
+ A showcase renders a [Section](/marketing/sections/section) named by its heading, over the art and its items. The art comes in as a slot, so a page keeps its own canvas or animation. Every variant sets it on a grey plate with `xl` corners.
7249
7304
 
7250
- Each template names the forms it takes, and you pick one by the shape of the content.
7305
+ Set it on a `page`, `white` or `grey` section. Its items keep dark text, so it has no inverse tone.
7251
7306
 
7252
7307
  ### Examples
7253
7308
 
7254
- #### Default
7309
+ #### Split
7255
7310
 
7256
- Home's agentic payments: three tools in a column beside the art. Resize the preview to see the items move under the art below 1024px.
7311
+ Two tools in a column beside the art from 1024px, and under the art below 1024px.
7257
7312
 
7258
7313
  ```tsx
7259
- /** Demonstrates a Marketing showcase: two tools in a column beside the feature's art. @module */
7260
- import { Link, Showcase, style } from '@tempoxyz/ds/marketing'
7314
+ /** Demonstrates a split Marketing showcase: two tools in a column beside the feature's art. @module */
7315
+ import { Link, Showcase } from '@tempoxyz/ds/marketing'
7316
+ import { Art } from './Art.js'
7261
7317
 
7262
7318
  export const fill = true
7263
7319
 
7320
+ // Split sets the items beside the art from 1024px, so the example opens at Desktop.
7321
+ export const width = 'desktop'
7322
+
7264
7323
  export function Demo() {
7265
7324
  return (
7266
- <Showcase
7267
- art={<div {...styles.art()} />}
7268
- eyebrow="Agentic payments"
7269
- title="Payments that work for AI agents"
7270
- >
7325
+ <Showcase art={<Art />} eyebrow="Agentic payments" title="Payments that work for AI agents">
7271
7326
  <Showcase.Item
7272
7327
  action={
7273
7328
  <Link href="https://mpp.dev" icon="external" tone="secondary">
@@ -7291,26 +7346,79 @@ export function Demo() {
7291
7346
  </Showcase>
7292
7347
  )
7293
7348
  }
7349
+ ```
7294
7350
 
7295
- namespace styles {
7296
- // Stands in for the feature's art.
7297
- export const art = style({
7298
- aspectRatio: '16 / 9 !custom',
7299
- backgroundColor: '#EDEDED !custom',
7300
- borderRadius: 'xl',
7301
- })
7351
+ [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Showcase/Default.tsx)
7352
+
7353
+ #### Stacked
7354
+
7355
+ Three steps in a row under the art from 768px, with a `description` and an `action` under the heading.
7356
+
7357
+ ```tsx
7358
+ /** Demonstrates a stacked Marketing showcase: three steps in a row under the art, with a description and an action. @module */
7359
+ import { Button, Showcase } from '@tempoxyz/ds/marketing'
7360
+ import { Art } from './Art.js'
7361
+
7362
+ export const fill = true
7363
+
7364
+ export function Demo() {
7365
+ return (
7366
+ <Showcase
7367
+ action={<Button.Link href="/contact">Talk with our team</Button.Link>}
7368
+ art={<Art />}
7369
+ description="Fund in one currency and pay out in another, in one flow."
7370
+ eyebrow="How it works"
7371
+ title="Payouts that settle in seconds"
7372
+ variant="stacked"
7373
+ >
7374
+ <Showcase.Item title="Fund">Send stablecoins or local currency to one account.</Showcase.Item>
7375
+ <Showcase.Item title="Convert">
7376
+ Swap into the payout currency at the quoted rate.
7377
+ </Showcase.Item>
7378
+ <Showcase.Item title="Pay out">Settle to each recipient's bank or wallet.</Showcase.Item>
7379
+ </Showcase>
7380
+ )
7302
7381
  }
7303
7382
  ```
7304
7383
 
7305
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Showcase/Default.tsx)
7384
+ [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Showcase/Stacked.tsx)
7385
+
7386
+ #### Contained
7387
+
7388
+ One picture with its heading inside the plate, under the art, from 1024px.
7389
+
7390
+ ```tsx
7391
+ /** Demonstrates a contained Marketing showcase: one picture with its heading inside the plate. @module */
7392
+ import { Showcase } from '@tempoxyz/ds/marketing'
7393
+ import { Art } from './Art.js'
7394
+
7395
+ export const fill = true
7396
+
7397
+ // Contained plates the heading with the art from 1024px, so the example opens at Desktop.
7398
+ export const width = 'desktop'
7399
+
7400
+ export function Demo() {
7401
+ return (
7402
+ <Showcase
7403
+ art={<Art />}
7404
+ description="Local funding and payouts in one flow."
7405
+ eyebrow="In practice"
7406
+ title="One account for every corridor"
7407
+ variant="contained"
7408
+ />
7409
+ )
7410
+ }
7411
+ ```
7412
+
7413
+ [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Showcase/Contained.tsx)
7306
7414
 
7307
7415
  ### Anatomy
7308
7416
 
7309
7417
  ```tsx
7310
7418
  import { Showcase } from '@tempoxyz/ds/marketing'
7311
7419
 
7312
- <Showcase>
7313
- <Showcase.Item />
7420
+ <Showcase art={<Art />} title="Payments that work for AI agents">
7421
+ <Showcase.Item title="MPP" />
7314
7422
  </Showcase>
7315
7423
  ```
7316
7424
 
@@ -7318,24 +7426,53 @@ import { Showcase } from '@tempoxyz/ds/marketing'
7318
7426
 
7319
7427
  #### When to Use
7320
7428
 
7321
- * Show how a product works, as stages, sides, or options, or as one mechanism whole.
7322
- * Show a solution in practice: its flow, its tools, or its use cases, told in pictures.
7429
+ * Tell one feature through a picture large enough to carry the section, with short items about it.
7323
7430
 
7324
7431
  #### When Not to Use
7325
7432
 
7326
7433
  * Use a [Card](/marketing/sections/card) feature set for benefits side by side.
7327
- * Use [Steps](/marketing/sections/steps) for a sequence the business goes through with the team.
7434
+ * Use [Steps](/marketing/sections/steps) for an ordered sequence of steps.
7328
7435
  * Use [Feature Accordion](/marketing/sections/feature-accordion) for capabilities told one at a time.
7329
7436
 
7330
- #### Set the Layout by the Content's Shape
7437
+ #### Set the Variant by the Content's Shape
7438
+
7439
+ Use `split` for two or three tools beside one picture, `stacked` for three or four steps in a row, and `contained` for one picture whose heading sits inside it.
7331
7440
 
7332
- * **Split (split):** The default: items in a column beside the art from 1024px.
7333
- * **Stacked (stacked):** Items in a row under the art, such as three steps.
7334
- * **Contained (contained):** The heading inside the art's plate, under the art, from 1024px.
7441
+ **Do:** Set four steps in a row under the art with `stacked`.
7442
+
7443
+ ```tsx
7444
+ <ShowcaseSketch kind="stacked" />
7445
+ ```
7446
+
7447
+ **Don't:** Squeeze the same four steps into the column beside the art with `split`.
7448
+
7449
+ ```tsx
7450
+ <ShowcaseSketch kind="split" />
7451
+ ```
7335
7452
 
7336
7453
  #### Give Each Item One Line & One Link
7337
7454
 
7338
- Pass each step, card, or tool as a `Showcase.Item` with one line, and its link as a [Link](/marketing/components/link) in `action`. A page with a pending picture isn't ready to ship.
7455
+ Pass each step, card or tool as a `Showcase.Item` with a one-sentence line, and its link as a [Link](/marketing/components/link) in `action`.
7456
+
7457
+ **Do:** Give an item one line and one link.
7458
+
7459
+ ```tsx
7460
+ <ShowcaseSketch kind="item" />
7461
+ ```
7462
+
7463
+ **Don't:** Give an item a paragraph and two links.
7464
+
7465
+ ```tsx
7466
+ <ShowcaseSketch kind="paragraph" />
7467
+ ```
7468
+
7469
+ ### Content
7470
+
7471
+ * **Eyebrow:** A few words that name the section, such as Agentic payments.
7472
+ * **Title:** One line that says what the feature does.
7473
+ * **Items:** Up to four.
7474
+ * **Item title:** One or two words, such as a product or step name.
7475
+ * **Item link:** Explore and the item's name, such as Explore MPP.
7339
7476
 
7340
7477
  ### Accessibility
7341
7478
 
@@ -7345,21 +7482,26 @@ Pass each step, card, or tool as a `Showcase.Item` with one line, and its link a
7345
7482
  #### Your Responsibilities
7346
7483
 
7347
7484
  * **Describe or Hide the Art:** Give meaningful art its text alternative, and hide decorative art from screen readers.
7485
+ * **Reduced Motion (prefers-reduced-motion):** The part holds still. Under reduced motion, stop moving art or hold its last frame.
7348
7486
 
7349
7487
  ### Related
7350
7488
 
7351
- [Product](/marketing/templates/product)
7352
-
7353
- Covers a product's showcases and the form each takes.
7354
-
7355
- [Solution](/marketing/templates/solution)
7489
+ [Section](/marketing/sections/section)
7356
7490
 
7357
- Covers the In practice showcase and its forms.
7491
+ Covers the section a showcase renders and its tones.
7358
7492
 
7359
7493
  [Section Heading](/marketing/sections/section-heading)
7360
7494
 
7361
7495
  Covers the heading, and the action under it.
7362
7496
 
7497
+ [Link](/marketing/components/link)
7498
+
7499
+ Covers each item's link in `action`.
7500
+
7501
+ [Steps](/marketing/sections/steps)
7502
+
7503
+ Covers an ordered sequence of steps, shown without a large picture.
7504
+
7363
7505
  ## Sources
7364
7506
 
7365
7507
  Lists every page and file a generated answer read, each as a link.
@@ -2,7 +2,7 @@
2
2
  <!--
3
3
  Brief template for Tempo document mode. Replace every placeholder that a comment marks,
4
4
  keep the structure, and run the lint before you publish:
5
- npx -p @tempoxyz/ds@3.6.20261201041125 tempo-document lint brief.html
5
+ npx -p @tempoxyz/ds@3.7.20261201042552 tempo-document lint brief.html
6
6
  -->
7
7
  <html lang="en">
8
8
  <head>
@@ -12,11 +12,11 @@
12
12
  <title>Title of the brief</title>
13
13
  <link
14
14
  rel="stylesheet"
15
- href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.6.20261201041125/dist/document/document.css"
15
+ href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.20261201042552/dist/document/document.css"
16
16
  />
17
17
  <script
18
18
  defer
19
- src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.6.20261201041125/dist/document/script.js"
19
+ src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.20261201042552/dist/document/script.js"
20
20
  ></script>
21
21
  </head>
22
22
  <body>
@@ -2,7 +2,7 @@
2
2
  <!--
3
3
  Essay template for Tempo document mode. Replace every placeholder that a comment marks,
4
4
  keep the structure, and run the lint before you publish:
5
- npx -p @tempoxyz/ds@3.6.20261201041125 tempo-document lint essay.html
5
+ npx -p @tempoxyz/ds@3.7.20261201042552 tempo-document lint essay.html
6
6
  -->
7
7
  <html lang="en">
8
8
  <head>
@@ -12,11 +12,11 @@
12
12
  <title>Title of the essay</title>
13
13
  <link
14
14
  rel="stylesheet"
15
- href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.6.20261201041125/dist/document/document.css"
15
+ href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.20261201042552/dist/document/document.css"
16
16
  />
17
17
  <script
18
18
  defer
19
- src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.6.20261201041125/dist/document/script.js"
19
+ src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.20261201042552/dist/document/script.js"
20
20
  ></script>
21
21
  </head>
22
22
  <body>
@@ -2,7 +2,7 @@
2
2
  <!--
3
3
  Post template for Tempo document mode. Replace every placeholder that a comment marks,
4
4
  keep the structure, and run the lint before you publish:
5
- npx -p @tempoxyz/ds@3.6.20261201041125 tempo-document lint post.html
5
+ npx -p @tempoxyz/ds@3.7.20261201042552 tempo-document lint post.html
6
6
  -->
7
7
  <html lang="en">
8
8
  <head>
@@ -12,11 +12,11 @@
12
12
  <title>Title of the post</title>
13
13
  <link
14
14
  rel="stylesheet"
15
- href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.6.20261201041125/dist/document/document.css"
15
+ href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.20261201042552/dist/document/document.css"
16
16
  />
17
17
  <script
18
18
  defer
19
- src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.6.20261201041125/dist/document/script.js"
19
+ src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.20261201042552/dist/document/script.js"
20
20
  ></script>
21
21
  </head>
22
22
  <body>
@@ -1,33 +1,47 @@
1
1
  import { useRender } from '@base-ui/react/use-render';
2
2
  import type * as zyzz from 'zyzz';
3
3
  /**
4
- * A customer story's media at the top of its text: a 4:3 image, cropped to fill, with a 16px corner
5
- * (24px from 768px). Set `video`, and the image becomes the video's poster, with a Play button that
6
- * opens the video in a full-viewport dialog built on Base UI Dialog. A pointer opens it anywhere on
7
- * the poster. The dialog starts the video with sound, focuses Close, and returns focus to Play when
8
- * Escape or Close shuts it.
4
+ * A 4:3 picture, cropped to fill, with the Marketing corner: 16px, and 24px from 768px. Set `video`,
5
+ * and the picture becomes the video's poster, with a Play button that opens the video in a
6
+ * full-viewport dialog built on Base UI Dialog. A pointer opens it anywhere on the poster. The
7
+ * dialog starts the video with sound, focuses Close, and returns focus to Play when Escape or Close
8
+ * shuts it. Set `captions` to a WebVTT file, and the video shows its captions by default.
9
9
  *
10
- * - Crop the image to 4:3. The frame crops to fill, so other ratios lose their edges.
11
- * - Give every video a poster that shows who speaks.
12
- * - Set `alt` to the company the story names, such as DoorDash. Play and the dialog take it as
13
- * their name unless `name` sets another.
10
+ * - Crop the picture to 4:3. The frame crops to fill, so other ratios lose their edges.
11
+ * - Give every video a poster that shows what the video is about.
12
+ * - Pass `captions` for every video with speech.
13
+ * - Set `alt` to what the picture shows. Play and the dialog take it as their name unless `name`
14
+ * sets a shorter one.
14
15
  * - Pass `render` for an optimized image component, such as `<NextImage width={960} height={720} />`.
15
16
  * - Its own `<img>` loads lazily and decodes off the main thread. Set `loading="eager"` and
16
17
  * `fetchPriority="high"` where it is the first image on the screen. An image component in
17
18
  * `render` keeps its own loading, such as next/image's `priority`.
18
19
  *
19
20
  * @example
20
- * <Media alt="DoorDash" src="/doordash-poster.jpg" video="/doordash.mp4" />
21
+ * <Media
22
+ * alt="Two people on a stage"
23
+ * captions="/keynote.vtt"
24
+ * name="Keynote"
25
+ * src="/keynote-poster.jpg"
26
+ * video="/keynote.mp4"
27
+ * />
21
28
  *
22
29
  * @see {@link https://base-ui.com/react/components/dialog | Base UI Dialog}
23
30
  * @see {@link https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/ | WAI-ARIA APG Dialog (Modal) pattern}
24
31
  * @see {@link https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html | WCAG 2.2 Non-text Content}
32
+ * @see {@link https://www.w3.org/WAI/WCAG22/Understanding/captions-prerecorded.html | WCAG 2.2 Captions (Prerecorded)}
25
33
  */
26
34
  export declare function Media(props: Media.Props): import("react").JSX.Element;
27
35
  export declare namespace Media {
28
36
  type Props = useRender.ComponentProps<'img'> & zyzz.Props.Variants<typeof styles.image> & {
29
- /** The image's alternative text, such as the company the story names. */
37
+ /** The picture's alternative text: what it shows. */
30
38
  alt: string;
39
+ /**
40
+ * The URL of a WebVTT file of the video's captions, which the video shows by default. Pass it
41
+ * for every video with speech. Serve it from the page's own origin, since the video sets no
42
+ * `crossOrigin`.
43
+ */
44
+ captions?: string | undefined;
31
45
  /**
32
46
  * The labels of the video's controls, in English by default. `{name}` stands for `name`.
33
47
  * `play` names the Play button ("Play {name} video"), `dialog` names the dialog
@@ -41,7 +55,7 @@ export declare namespace Media {
41
55
  /** The Play button's label. @default 'Play {name} video' */
42
56
  play?: string | undefined;
43
57
  } | undefined;
44
- /** Names the video in its labels, such as DoorDash. Defaults to `alt`. */
58
+ /** Names the video in its labels, such as Keynote, when `alt` is longer. Defaults to `alt`. */
45
59
  name?: string | undefined;
46
60
  /**
47
61
  * The URL of a video that Play opens in a dialog. The image becomes its poster, and
@@ -1 +1 @@
1
- {"version":3,"file":"Media.d.ts","sourceRoot":"","sources":["../../../src/marketing/components/Media.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,KAAK,KAAK,IAAI,MAAM,MAAM,CAAA;AAMjC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,+BAkEvC;AAED,yBAAiB,KAAK,CAAC;IACrB,KAAY,KAAK,GAAG,SAAS,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