@tempoxyz/ds 8.0.20261201231813 → 8.1.20261202005507

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 (59) hide show
  1. package/dist/docs/AGENTS.md +2 -2
  2. package/dist/docs/marketing.md +300 -70
  3. package/dist/docs/product/documents.md +5 -3
  4. package/dist/document/Document.d.ts +1 -7
  5. package/dist/document/Document.d.ts.map +1 -1
  6. package/dist/document/Document.js +11 -1
  7. package/dist/document/Document.js.map +1 -1
  8. package/dist/document/Enhance.d.ts +0 -5
  9. package/dist/document/Enhance.d.ts.map +1 -1
  10. package/dist/document/Enhance.js +57 -5
  11. package/dist/document/Enhance.js.map +1 -1
  12. package/dist/document/internal/Highlight.d.ts +20 -0
  13. package/dist/document/internal/Highlight.d.ts.map +1 -0
  14. package/dist/document/internal/Highlight.js +41 -0
  15. package/dist/document/internal/Highlight.js.map +1 -0
  16. package/dist/document/internal/Languages.d.ts +27 -0
  17. package/dist/document/internal/Languages.d.ts.map +1 -0
  18. package/dist/document/internal/Languages.js +35 -0
  19. package/dist/document/internal/Languages.js.map +1 -0
  20. package/dist/document/internal/Theme.d.ts +7 -0
  21. package/dist/document/internal/Theme.d.ts.map +1 -0
  22. package/dist/document/internal/Theme.js +175 -0
  23. package/dist/document/internal/Theme.js.map +1 -0
  24. package/dist/document/script.js +155 -452
  25. package/dist/document/templates/brief.html +3 -3
  26. package/dist/document/templates/essay.html +3 -3
  27. package/dist/document/templates/post.html +3 -3
  28. package/dist/marketing/components/BlockFrame.d.ts +2 -2
  29. package/dist/marketing/components/BlockFrame.js +2 -2
  30. package/dist/marketing/components/Faq.d.ts +4 -1
  31. package/dist/marketing/components/Faq.d.ts.map +1 -1
  32. package/dist/marketing/components/Faq.js +4 -1
  33. package/dist/marketing/components/Faq.js.map +1 -1
  34. package/dist/marketing/components/Hero.d.ts +10 -4
  35. package/dist/marketing/components/Hero.d.ts.map +1 -1
  36. package/dist/marketing/components/Hero.js +9 -3
  37. package/dist/marketing/components/Hero.js.map +1 -1
  38. package/dist/marketing/components/Section.d.ts +10 -3
  39. package/dist/marketing/components/Section.d.ts.map +1 -1
  40. package/dist/marketing/components/Section.js +6 -1
  41. package/dist/marketing/components/Section.js.map +1 -1
  42. package/dist/marketing/components/SectionHeading.d.ts +1 -1
  43. package/dist/marketing/components/SectionHeading.js +1 -1
  44. package/dist/marketing/components/Steps.d.ts +2 -1
  45. package/dist/marketing/components/Steps.d.ts.map +1 -1
  46. package/dist/marketing/components/Steps.js +2 -1
  47. package/dist/marketing/components/Steps.js.map +1 -1
  48. package/package.json +3 -2
  49. package/src/document/Document.ts +18 -1
  50. package/src/document/Enhance.ts +62 -5
  51. package/src/document/internal/Highlight.ts +71 -0
  52. package/src/document/internal/Languages.ts +36 -0
  53. package/src/document/internal/Theme.ts +179 -0
  54. package/src/marketing/components/BlockFrame.tsx +2 -2
  55. package/src/marketing/components/Faq.tsx +4 -1
  56. package/src/marketing/components/Hero.tsx +10 -4
  57. package/src/marketing/components/Section.tsx +10 -3
  58. package/src/marketing/components/SectionHeading.tsx +1 -1
  59. package/src/marketing/components/Steps.tsx +2 -1
@@ -25,7 +25,7 @@ Each file opens with its contents. Find a section with `rg -n '^## ' <file>`, an
25
25
  ## Files
26
26
 
27
27
  - [product/foundations.md](product/foundations.md) (157 KB): Getting Started, the FAQ, and the foundations: color, layout, type, icons, motion, content, accessibility, intent, and the linter.
28
- - [product/documents.md](product/documents.md) (12 KB): Document mode: templates, widths, blocks, and the lint for HTML documents.
28
+ - [product/documents.md](product/documents.md) (13 KB): Document mode: templates, widths, blocks, and the lint for HTML documents.
29
29
  - [product/patterns.md](product/patterns.md) (283 KB): Layouts that combine components, such as forms, tables, payments, and errors, and the product references.
30
30
  - [product/components.md](product/components.md) (15 KB): Every component by family, and how to choose between similar ones.
31
31
  - [product/components/actions.md](product/components/actions.md) (58 KB): Button, ButtonGroup, CopyButton, SplitButton.
@@ -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) (393 KB): The Marketing system.
39
+ - [marketing.md](marketing.md) (407 KB): The Marketing system.
40
40
  - [arsenal.md](arsenal.md) (248 KB): The Arsenal brand system.
41
41
 
42
42
  ## Rules
@@ -6024,7 +6024,7 @@ Holds one block whose view lands after the page, with a skeleton while it loads.
6024
6024
 
6025
6025
  ### Overview
6026
6026
 
6027
- A figure around one block's view, such as a tool result on a generated answer. The frame never fetches. While the view loads, a skeleton covers the frame at the block's final height, so the page doesn't shift when the view lands.
6027
+ A figure around one block's view, such as a saved tool result. The frame never fetches. While the view loads, a skeleton covers the frame at the block's final height, so the page doesn't shift when the view lands.
6028
6028
 
6029
6029
  ### Examples
6030
6030
 
@@ -6109,12 +6109,12 @@ import { BlockFrame } from '@tempoxyz/ds/marketing'
6109
6109
 
6110
6110
  #### When to Use
6111
6111
 
6112
- * Place a block whose view lands after the page, such as a partners list or a contact form on a generated answer.
6112
+ * Place one view that renders after the page loads, from data the page already has, such as a list or a form.
6113
6113
 
6114
6114
  #### When Not to Use
6115
6115
 
6116
6116
  * Use [Media](/marketing/sections/media) for a film or an image.
6117
- * Use [Card](/marketing/sections/card) for content that people wrote.
6117
+ * Use [Card](/marketing/sections/card), [Media](/marketing/sections/media) or another section for content that's in the page when it loads.
6118
6118
 
6119
6119
  #### Set the Final Height
6120
6120
 
@@ -6122,7 +6122,7 @@ Pass the block's final height as `height`, so the skeleton holds the space the v
6122
6122
 
6123
6123
  #### Render From Data the Page Has
6124
6124
 
6125
- Render the view from data the page already has. On a generated answer, that's the result saved with the answer, and a block never calls its tool again.
6125
+ Render the view from data the page already has, such as a saved result, so a block never fetches again.
6126
6126
 
6127
6127
  ### Content
6128
6128
 
@@ -6155,13 +6155,13 @@ Name the source a reader knows, in a few words. Leave the caption out when the v
6155
6155
 
6156
6156
  ### Related
6157
6157
 
6158
- [Sources](/marketing/sections/sources)
6158
+ [Card](/marketing/sections/card)
6159
6159
 
6160
- Use for the pages and files a page draws on.
6160
+ Use for the pages and files a page draws on, as rows.
6161
6161
 
6162
- [Answer Label](/marketing/components/answer-label)
6162
+ [Media](/marketing/sections/media)
6163
6163
 
6164
- Use for the mark under an answer's title.
6164
+ Use for a picture or film that's in the page at load.
6165
6165
 
6166
6166
  [Section](/marketing/sections/section)
6167
6167
 
@@ -7330,6 +7330,8 @@ Holds a page's common questions in rows that open to their answers.
7330
7330
 
7331
7331
  Any number of rows can stay open, since readers open several answers to compare. From 1024px, each row shows its two-digit index.
7332
7332
 
7333
+ Its slots: each row takes a question, required, and its answer as children, text or paragraphs. A link is optional, inside the answer. A row has no title, picture, figure, action or label of its own: the Section's title heads the questions, and the index is automatic.
7334
+
7333
7335
  ### Examples
7334
7336
 
7335
7337
  #### Default
@@ -7370,6 +7372,46 @@ export function Demo() {
7370
7372
 
7371
7373
  [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Faq/Default.tsx)
7372
7374
 
7375
+ #### With Links
7376
+
7377
+ Three answers, each ending in a [Link](/marketing/components/link).
7378
+
7379
+ ```tsx
7380
+ /** Demonstrates Marketing FAQ rows whose answers each end in a link to the page they come from. @module */
7381
+ import { Faq, Link } from '@tempoxyz/ds/marketing'
7382
+
7383
+ export const fill = true
7384
+
7385
+ export const width = 'desktop'
7386
+
7387
+ export function Demo() {
7388
+ return (
7389
+ <Faq>
7390
+ <Faq.Item question="Where do I get testnet funds?">
7391
+ <p>From the faucet. It sends testnet stablecoins to any address in a few seconds.</p>
7392
+ <p>
7393
+ <Link href="/docs/quickstart/faucet">Faucet</Link>
7394
+ </p>
7395
+ </Faq.Item>
7396
+ <Faq.Item question="Where do I start?">
7397
+ <p>With the quickstart. It takes you from install to a first transfer.</p>
7398
+ <p>
7399
+ <Link href="/docs/quickstart">Quickstart</Link>
7400
+ </p>
7401
+ </Faq.Item>
7402
+ <Faq.Item question="Do I need a native token to pay fees?">
7403
+ <p>No. You pay fees in a stablecoin.</p>
7404
+ <p>
7405
+ <Link href="/docs/protocol/fees">Fees</Link>
7406
+ </p>
7407
+ </Faq.Item>
7408
+ </Faq>
7409
+ )
7410
+ }
7411
+ ```
7412
+
7413
+ [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Faq/Links.tsx)
7414
+
7373
7415
  ### Anatomy
7374
7416
 
7375
7417
  ```tsx
@@ -7384,17 +7426,17 @@ import { Faq } from '@tempoxyz/ds/marketing'
7384
7426
 
7385
7427
  #### When to Use
7386
7428
 
7387
- * Answer a page's common questions, near its end or on a page of their own.
7429
+ * Answer questions the reader brings, each with a short answer they open on demand, near the page's end or on a page of their own.
7388
7430
 
7389
7431
  #### When Not to Use
7390
7432
 
7391
- * Use [Article Body](/marketing/sections/article-body) for questions inside a blog post or Learn guide.
7392
- * Use [Feature Accordion](/marketing/sections/feature-accordion) for features that open one at a time beside their art.
7433
+ * Use [Article Body](/marketing/sections/article-body) for questions inside running text. It draws them as these rows.
7434
+ * Use [Feature Accordion](/marketing/sections/feature-accordion) when each item needs a picture and opens one at a time.
7393
7435
  * Use [Steps](/marketing/sections/steps) for a process a reader follows in order.
7394
7436
 
7395
7437
  #### Lead With the Question Most Readers Ask
7396
7438
 
7397
- Put the question most readers ask first, since its row opens at load. Ask four to eight.
7439
+ Put the question most readers ask first, since its row opens at load. Ask up to eight. When the page picks its own questions, ask at least four.
7398
7440
 
7399
7441
  #### Head the Section With an H2
7400
7442
 
@@ -7446,6 +7488,10 @@ Open each answer with yes, no, or the fact asked for, then add the detail in one
7446
7488
  </Faq>
7447
7489
  ```
7448
7490
 
7491
+ #### Cite Every Answer or None
7492
+
7493
+ When the page cites its answers, end each one with a [Link](/marketing/components/link) to the page it comes from, as its last line. Cite every answer or none.
7494
+
7449
7495
  ### Accessibility
7450
7496
 
7451
7497
  * **Question (aria-expanded):** A native button in an `h3`. Its answer panel is a region the button names.
@@ -7467,7 +7513,7 @@ Covers the close that often follows it.
7467
7513
 
7468
7514
  [Feature Accordion](/marketing/sections/feature-accordion)
7469
7515
 
7470
- Use for features that open one at a time beside their art.
7516
+ Use when each item needs a picture and opens one at a time.
7471
7517
 
7472
7518
  ## Footer
7473
7519
 
@@ -7689,7 +7735,7 @@ Use for the bar at the top of every page.
7689
7735
 
7690
7736
  [CTA](/marketing/sections/cta)
7691
7737
 
7692
- Use for a page's own newsletter sign-up.
7738
+ Use for a page's own sign-up.
7693
7739
 
7694
7740
  [Field](/marketing/components/field)
7695
7741
 
@@ -7709,6 +7755,8 @@ Opens a page: its title, subtitle and actions, or its copy beside a form.
7709
7755
 
7710
7756
  A page's opening `<section>`: an eyebrow, the page's `<h1>` in Display Hero, a subtitle, and up to two actions under the top inset. Slots hold a logo row, media, or art, and the `form` variant holds a form beside the copy.
7711
7757
 
7758
+ Its slots: the title is required, as `title` or `lines`. The eyebrow and description are optional. The action is one or two large Button links, optional, or on `form` the form itself, required. On `centered` only, a picture is optional, as `media` or `art`, and so is a logo row in `logos`. `index` and `answer` accept them in code but take none, and `form` accepts neither. A label is required on `answer`, and no other variant takes one. A hero has no figure or link of its own.
7759
+
7712
7760
  ### Examples
7713
7761
 
7714
7762
  #### Centered
@@ -7742,45 +7790,68 @@ export function Demo() {
7742
7790
 
7743
7791
  [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Hero/Centered.tsx)
7744
7792
 
7745
- #### Index
7793
+ #### With a Picture
7746
7794
 
7747
- Set `variant="index"` to set the copy at the start, over a list such as an [Index](/marketing/sections/index), which draws its own filters.
7795
+ Pass a [Media](/marketing/sections/media) in `media` to set a picture under the copy.
7748
7796
 
7749
7797
  ```tsx
7750
- /** Demonstrates the index Marketing hero, set at the start over its list's filters. @module */
7751
- import { Filter, Hero, style } from '@tempoxyz/ds/marketing'
7752
- import { useState } from 'react'
7798
+ /** Demonstrates the centered Marketing hero with a picture under its copy. @module */
7799
+ import { Button, Hero, Media } from '@tempoxyz/ds/marketing'
7800
+ import photo from '../../../../content/docs/arsenal/crafts/images/image-generation/image-generation-people-do.jpg'
7753
7801
 
7754
7802
  export const fill = true
7755
7803
 
7756
- export function Demo() {
7757
- const [category, setCategory] = useState<string | undefined>()
7804
+ export const width = 'desktop'
7758
7805
 
7806
+ export function Demo() {
7759
7807
  return (
7760
7808
  <Hero
7761
- description="News, updates, and resources from the Tempo team."
7809
+ description="Talks, workshops and office hours on stablecoin payments, in a city near you."
7810
+ eyebrow="Events"
7762
7811
  heading="h2"
7763
- title="Blog"
7764
- variant="index"
7812
+ media={<Media alt="Teal and amber light, blurred by motion" src={photo} />}
7813
+ title="Meet the Tempo team in person"
7765
7814
  >
7766
- <div aria-label="Filter posts by category" role="group" {...styles.filters()}>
7767
- {['Partners', 'Product', 'Stablecoins', 'Research'].map((label) => (
7768
- <Filter
7769
- key={label}
7770
- onPressedChange={(pressed) => setCategory(pressed ? label : undefined)}
7771
- selected={category === label}
7772
- size="small"
7773
- >
7774
- {label}
7775
- </Filter>
7776
- ))}
7777
- </div>
7815
+ <Button.Link href="/events" size="large">
7816
+ See events
7817
+ </Button.Link>
7778
7818
  </Hero>
7779
7819
  )
7780
7820
  }
7821
+ ```
7822
+
7823
+ [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Hero/Picture.tsx)
7824
+
7825
+ #### Index
7826
+
7827
+ Set `variant="index"` to set the copy at the start, over a list such as an [Index](/marketing/sections/index). The list draws its own filters, so the hero holds none.
7828
+
7829
+ ```tsx
7830
+ /** Demonstrates the index Marketing hero, set at the start over the list that follows it, which draws its own filters. @module */
7831
+ import { Hero, Index, Section, style } from '@tempoxyz/ds/marketing'
7832
+ import { rows, topics } from '../Index/Sample.js'
7833
+
7834
+ export const fill = true
7835
+
7836
+ export function Demo() {
7837
+ return (
7838
+ <div {...styles.page()}>
7839
+ <Hero
7840
+ description="News, updates, and resources from the Tempo team."
7841
+ heading="h2"
7842
+ title="Blog"
7843
+ variant="index"
7844
+ />
7845
+ <Section>
7846
+ <Index aria-label="Articles" categories={topics} items={rows.slice(0, 4)} variant="rows" />
7847
+ </Section>
7848
+ </div>
7849
+ )
7850
+ }
7781
7851
 
7782
7852
  namespace styles {
7783
- export const filters = style({ display: 'flex', flexWrap: 'wrap', gap: '8' })
7853
+ // Fills the frame, so the list's section spans the hero's width and starts at its edge.
7854
+ export const page = style({ width: 'full' })
7784
7855
  }
7785
7856
  ```
7786
7857
 
@@ -7820,7 +7891,7 @@ export function Demo() {
7820
7891
 
7821
7892
  #### Form
7822
7893
 
7823
- Set `variant="form"` to open a page on a short form, such as a report's download. The copy sits beside the form's card from 1280px, where a one-field form's text control still gets a usable width beside its action. Narrower, the card sits under the copy.
7894
+ Set `variant="form"` to open a page on one short form. The copy sits beside the form's card from 1280px, where a one-field form's text control still gets a usable width beside its action. Narrower, the card sits under the copy.
7824
7895
 
7825
7896
  ```tsx
7826
7897
  /** Demonstrates the form Marketing hero: a report's title, authors and summary beside its form's card. @module */
@@ -7892,10 +7963,12 @@ import { Hero } from '@tempoxyz/ds/marketing'
7892
7963
 
7893
7964
  #### When to Use
7894
7965
 
7895
- * Open a product or landing page on its title and actions.
7896
- * Open a collection over its [Index](/marketing/sections/index).
7897
- * Open a generated answer page over its sections and blocks.
7898
- * Open a page whose job is a short form, such as a report's download or an event's sign-up.
7966
+ Open a page on its hero, and pick the variant by what the page holds:
7967
+
7968
+ * The page is generated: `answer`. It's the one variant tied to where the page comes from, and its label is required.
7969
+ * The page exists to collect one short form: `form`. The copy says what the form gives.
7970
+ * A list the reader scans or filters follows straight under it: `index`, with no picture.
7971
+ * Otherwise: `centered`, with one picture at most.
7899
7972
 
7900
7973
  #### When Not to Use
7901
7974
 
@@ -7907,9 +7980,16 @@ import { Hero } from '@tempoxyz/ds/marketing'
7907
7980
 
7908
7981
  Pass what the reader acts on as `children`: up to two large [Button](/marketing/components/button) links (one `primary`, one `secondary`), or the form variant's form.
7909
7982
 
7910
- #### Place Art by What It Shows
7983
+ #### Place One Picture at Most
7984
+
7985
+ Set one picture, and only on `centered`. Pick its slot by what it does:
7986
+
7987
+ * It proves the title, such as a product moment or a film: a [Media](/marketing/sections/media) in `media`, under the copy at 16:9 unless it sets its own `ratio`.
7988
+ * It's a wide drawing that frames the page: `art` with `artPlacement="below"` (default), full-bleed under the hero. A Media there keeps its own shape with no corner.
7989
+ * It's atmosphere only: `art` with `artPlacement="behind"`, which is decorative, never a Media.
7990
+ * No strong picture: leave it out, never a placeholder.
7911
7991
 
7912
- Set `art` with `artPlacement="below"` (default) for full-bleed art under the hero, such as line art, or `artPlacement="behind"` for a scene behind the copy. Pass a [Media](/marketing/sections/media) in `media` for a film under the copy, at 16:9 unless it sets its own `ratio`, or in `art` below, where it keeps its own shape with no corner. Art behind the copy is decorative, not Media. Use `logos` for a logo row. The `form` variant takes none of them.
7992
+ Set `logos` for four to eight marks in one row. For more, or marks that need a heading, set a [Logo Wall](/marketing/sections/logo-wall) under the hero.
7913
7993
 
7914
7994
  #### Keep One Title per Page
7915
7995
 
@@ -7917,15 +7997,15 @@ The hero holds the page's one `h1`. Set `heading="h2"` only where a hero shows i
7917
7997
 
7918
7998
  #### Open on a Form
7919
7999
 
7920
- Pass the form as `children`, a one-field form from an inline [Field](/marketing/components/field) with its submit `action`. The hero draws the card around it and never posts it. List each author in `authors`, with a link where they have one. Set `lang` so the list joins in that language, and `byline` to translate By.
8000
+ Pass one short form as `children`, such as a one-field form from an inline [Field](/marketing/components/field) with its submit `action`. The hero draws its card and never posts it. Say what the form gives in `summary`: a heading with a line, a few points, or both. Set `authors` only when what it gives has authors, each with a link where they have one. Set `lang` so the list joins in that language, and `byline` to translate By.
7921
8001
 
7922
8002
  ### Content
7923
8003
 
7924
- #### Name the Product in the Eyebrow
8004
+ #### Name the Page's Subject in the Eyebrow
7925
8005
 
7926
- Write `eyebrow` as the product or collection is named, such as Tempo Routes or Blog, or leave it out. Write the title in sentence case with no closing period, and the subtitle as one sentence with its period.
8006
+ Write `eyebrow` as the name the page's subject goes by, such as Tempo Routes or Blog, or leave it out. Write the title in sentence case with no closing period, and the subtitle as one sentence with its period.
7927
8007
 
7928
- **Do:** The product's name.
8008
+ **Do:** The subject's name.
7929
8009
 
7930
8010
  ```tsx
7931
8011
  <span style={{ display: 'grid', gap: 12, justifyItems: 'center', textAlign: 'center' }}>
@@ -7967,10 +8047,6 @@ Write `eyebrow` as the product or collection is named, such as Tempo Routes or B
7967
8047
  </span>
7968
8048
  ```
7969
8049
 
7970
- #### Name the Summary by Its Heading
7971
-
7972
- Give the form variant's `summary` a heading, such as Inside the report, and a line, a few items, or both.
7973
-
7974
8050
  ### Accessibility
7975
8051
 
7976
8052
  * **Region (section):** Renders a `<section>` named by its title. Pass `aria-label` for another name.
@@ -8454,7 +8530,7 @@ import { Nav } from '@tempoxyz/ds/marketing'
8454
8530
 
8455
8531
  #### When Not to Use
8456
8532
 
8457
- * Use [Footer](/marketing/sections/footer) for company and legal pages, such as Careers.
8533
+ * Use [Footer](/marketing/sections/footer) for the pages the bar leaves out, such as Careers or Privacy policy.
8458
8534
  * Use [Breadcrumbs](/marketing/components/breadcrumbs) for a page's place under its parent.
8459
8535
 
8460
8536
  #### Sort Each Menu A to Z
@@ -8585,6 +8661,8 @@ A native `<section>` that holds one page section below the hero: the page margin
8585
8661
 
8586
8662
  The section below holds the space between two sections, so the spaces never add up. A section pads its end only to close the page.
8587
8663
 
8664
+ Its slots: the title is optional, and without it the section has no heading. The eyebrow, description and action are optional and need a title. `controls` is optional and holds a Carousel's buttons only. A section has no picture, figure, link or label of its own: the form inside it carries them.
8665
+
8588
8666
  ### Examples
8589
8667
 
8590
8668
  #### Default
@@ -8643,9 +8721,9 @@ export function Demo() {
8643
8721
  return (
8644
8722
  <div {...styles.page()}>
8645
8723
  <Section
8646
- description="Built around your target return."
8647
- eyebrow="How it works"
8648
- title="Design your Tempo Earn program"
8724
+ description="Book time with the team during the week."
8725
+ eyebrow="Events"
8726
+ title="Meet us at Sibos"
8649
8727
  >
8650
8728
  <p {...styles.content()}>Section content</p>
8651
8729
  </Section>
@@ -8671,6 +8749,68 @@ namespace styles {
8671
8749
 
8672
8750
  [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Section/Description.tsx)
8673
8751
 
8752
+ #### Heading, Form & Action
8753
+
8754
+ Set `action` for the section's one action, and pass one form as children, such as a [Card](/marketing/sections/card) grid.
8755
+
8756
+ ```tsx
8757
+ /** Demonstrates a Marketing section that fits together: its heading with one action, over one card grid. @module */
8758
+ import { Button, Card, Section, style } from '@tempoxyz/ds/marketing'
8759
+
8760
+ export const fill = true
8761
+
8762
+ // The grid sets three cards in a row only from 1024px.
8763
+ export const width = 'desktop'
8764
+
8765
+ const guides = [
8766
+ {
8767
+ description: 'Create a wallet, fund it on testnet and send your first transfer.',
8768
+ href: '/docs/guides/send-a-payment',
8769
+ title: 'Send a payment',
8770
+ },
8771
+ {
8772
+ description: 'Let your app cover the network fee in the stablecoin it already holds.',
8773
+ href: '/docs/guides/pay-fees',
8774
+ title: 'Sponsor fees',
8775
+ },
8776
+ {
8777
+ description: 'Attach an invoice or order number to each transfer you send.',
8778
+ href: '/docs/guides/memos',
8779
+ title: 'Add a memo',
8780
+ },
8781
+ ]
8782
+
8783
+ export function Demo() {
8784
+ return (
8785
+ <div {...styles.page()}>
8786
+ <Section
8787
+ action={
8788
+ <Button.Link href="/docs/guides" layout="card" variant="secondary">
8789
+ See all guides
8790
+ </Button.Link>
8791
+ }
8792
+ description="Short guides from a first call to production."
8793
+ eyebrow="Docs"
8794
+ title="Start with the guides"
8795
+ >
8796
+ <Card.Grid columns="3">
8797
+ {guides.map((guide) => (
8798
+ <Card cue="Read guide" key={guide.title} {...guide} />
8799
+ ))}
8800
+ </Card.Grid>
8801
+ </Section>
8802
+ </div>
8803
+ )
8804
+ }
8805
+
8806
+ namespace styles {
8807
+ // Scales the section as Default does, so the examples read as a set.
8808
+ export const page = style({ zoom: '0.75 !custom' })
8809
+ }
8810
+ ```
8811
+
8812
+ [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Section/Fit.tsx)
8813
+
8674
8814
  #### Tone
8675
8815
 
8676
8816
  Set `tone` to `page` (default, nothing painted), `white`, `grey`, `outline`, or `inverse`. The section's own heading follows its tone. Parts inside take their own, such as `tone="inverse"` on a [Button](/marketing/components/button).
@@ -8725,10 +8865,10 @@ namespace styles {
8725
8865
 
8726
8866
  #### Wide
8727
8867
 
8728
- Set `size="wide"`. The title and description run to 1000px from 1024px, the description continues the title in its type, and the content follows closer.
8868
+ Set `size="wide"` when the description finishes the title's sentence. The title and description run to 1000px from 1024px, the description continues the title in its type, and the content follows closer.
8729
8869
 
8730
8870
  ```tsx
8731
- /** Demonstrates a wide Marketing section heading, whose description continues its title. @module */
8871
+ /** Demonstrates a wide Marketing section heading, whose description finishes its title's sentence. @module */
8732
8872
  import { Section, style } from '@tempoxyz/ds/marketing'
8733
8873
 
8734
8874
  export const fill = true
@@ -8740,10 +8880,10 @@ export function Demo() {
8740
8880
  return (
8741
8881
  <div {...styles.page()}>
8742
8882
  <Section
8743
- description="Built around your target return."
8744
- eyebrow="How it works"
8883
+ description="and see each one settle in seconds."
8884
+ eyebrow="Payouts"
8745
8885
  size="wide"
8746
- title="Design your Tempo Earn program"
8886
+ title="Send payouts to any bank"
8747
8887
  >
8748
8888
  <p {...styles.content()}>Section content</p>
8749
8889
  </Section>
@@ -8771,7 +8911,7 @@ namespace styles {
8771
8911
 
8772
8912
  #### Centered
8773
8913
 
8774
- Set `align="center"` to center the heading's lines and action over the content.
8914
+ Set `align="center"` to center the heading's lines and action when the form under it is centered or symmetric, such as a [Logo Wall](/marketing/sections/logo-wall) or three [Stats](/marketing/sections/stats). Otherwise keep the default, `start`.
8775
8915
 
8776
8916
  ```tsx
8777
8917
  /** Demonstrates a Marketing section whose heading is centered over its content. @module */
@@ -8784,9 +8924,9 @@ export function Demo() {
8784
8924
  <div {...styles.page()}>
8785
8925
  <Section
8786
8926
  align="center"
8787
- description="Built around your target return."
8788
- eyebrow="How it works"
8789
- title="Design your Tempo Earn program"
8927
+ description="Engineers and operators from payments and crypto."
8928
+ eyebrow="Team"
8929
+ title="Meet the people building Tempo"
8790
8930
  >
8791
8931
  <p {...styles.content()}>Section content</p>
8792
8932
  </Section>
@@ -8877,16 +9017,70 @@ import { Section } from '@tempoxyz/ds/marketing'
8877
9017
  </Section>
8878
9018
  ```
8879
9019
 
9020
+ ### How a Section Fits Together
9021
+
9022
+ A section is its heading, then one form, then nothing after. The form is the content in the shape it takes, such as a card grid, steps or a FAQ.
9023
+
9024
+ * **Heading (1):** The eyebrow names the section, the title says what the reader gets, and the description adds one line. The optional action sits in the heading, above the form, and leads past the section.
9025
+ * **One Form (2):** The content, in the form its shape takes. It never repeats the heading.
9026
+ * **End (3):** The form ends the section. A link after it belongs to the form, such as a card's cue or an [Index](/marketing/sections/index)'s Show more.
9027
+
9028
+ #### Hold a Second Form Only Without Its Own Heading
9029
+
9030
+ Hold two forms in one section only when the second has no heading of its own and reads as part of the first, such as figures that sum up the cards above them. If the second needs a title, give it its own section.
9031
+
9032
+ **Do:** Set the figures under the cards they sum up.
9033
+
9034
+ ```tsx
9035
+ <SectionSketch kind="two" />
9036
+ ```
9037
+
9038
+ **Don't:** Give the second form a heading inside the section.
9039
+
9040
+ ```tsx
9041
+ <SectionSketch kind="nested" />
9042
+ ```
9043
+
9044
+ ### Choose the Form by the Content
9045
+
9046
+ Pick a form by the shape of the content, never its topic. Each form's page holds its full rule.
9047
+
9048
+
9049
+
9050
+ | Form | Content shape | Pictures | Figure | Count | Instead, when… |
9051
+ | ---------------------------------------------------------------------- | ---------------------------------------------- | ------------------------------- | ----------------------- | ------------------------------------------- | ---------------------------------------------------------------------- |
9052
+ | [Table](/marketing/sections/table) `compare` | Values compared across shared attributes | None | In cells | 2–⁠4 items, 3–⁠8 attributes | Prose items: Cards |
9053
+ | [Table](/marketing/sections/table) `facts` | One record's labels and values | None | Optional | 3–⁠8 rows | 2–⁠4 headline numbers: Stats |
9054
+ | [Cards](/marketing/sections/card) `stack` | Parallel items that stand alone | All or none, one ratio per grid | As a title, with a line | 2–⁠4 a row | Values: Table. Five or more: Carousel |
9055
+ | [Cards](/marketing/sections/card) `cover` | Parallel items with strong photos | A photo, required | None | 2–⁠4 | Weak or mixed pictures: Cards `stack` |
9056
+ | [Cards](/marketing/sections/card) `inline` | Many items known by a mark | A mark, required | None | 4 or more | Marks alone: Logo Wall |
9057
+ | [Cards](/marketing/sections/card) `row` | Entries read by their title | None | None | 3–⁠9 | Pictures: Cards `stack` |
9058
+ | [Stats](/marketing/sections/stats) | A few numbers that carry the point | None | Required | 2–⁠4 | A number needs a sentence or link: Cards. Compared across items: Table |
9059
+ | [Steps](/marketing/sections/steps) | An ordered sequence | None | Automatic | 2–⁠5; split 6 or more into stages | No order: Cards. One picture over them: Showcase `stacked` |
9060
+ | [Showcase](/marketing/sections/showcase) `contained` | One picture that proves the idea | Required | None | No items | Copy beside it: Showcase `split` |
9061
+ | [Showcase](/marketing/sections/showcase) `split` | A picture with points beside it | Required | Optional | 2–⁠3 | More points: Showcase `stacked` |
9062
+ | [Showcase](/marketing/sections/showcase) `stacked` | A picture with points, Steps or Stats under it | Required | Through Stats | 3–⁠4 | None |
9063
+ | [Showcase](/marketing/sections/showcase) `accordion` | Facets of one thing, one at a time | One per item | None | 3–⁠6 | Facets read at once: Cards |
9064
+ | [Story](/marketing/sections/story) `quote` | One credited voice, as a break | Optional photo | None | 1 | None |
9065
+ | [Story](/marketing/sections/story) `split` | One credited voice with its result | A photo or figures, not both | Optional | 1 | None |
9066
+ | [Story](/marketing/sections/story) `feature` | One told case | Required | Optional, 2–⁠3 | 1 | Several cases: Cards |
9067
+ | [Statement](/marketing/sections/statement) | One line of your own | None | None | 1 | Credited words: Story |
9068
+ | [Carousel](/marketing/sections/carousel) | Parallel items to browse | All or none | None | 5 or more | Four or fewer, or all must be seen: Cards |
9069
+ | [FAQ](/marketing/sections/faq) | Questions the reader brings | None | None | Up to 8; 4 or more when the page picks them | Answers need pictures: Showcase `accordion` |
9070
+ | [Logo Wall](/marketing/sections/logo-wall) | Names as marks | Logos | None | 4–⁠12 | A line for each: Cards `inline` |
9071
+ | [Bleed](/marketing/sections/bleed), [Media](/marketing/sections/media) | One picture or film alone | Required | None | 1 | Copy with it: Showcase |
9072
+
8880
9073
  ### Guidelines
8881
9074
 
8882
9075
  #### When to Use
8883
9076
 
8884
- * Hold each section of a page below its hero, down to the closing section, with its eyebrow and title.
9077
+ * Give one form a heading and the page's spacing, in each section below the hero.
8885
9078
 
8886
9079
  #### When Not to Use
8887
9080
 
8888
9081
  * Leave the page's opening to [Hero](/marketing/sections/hero) or [Article Hero](/marketing/sections/article-hero), which set their own space.
8889
- * Use [Card](/marketing/sections/card) or [Steps](/marketing/sections/steps) for a card's or a step's title, which set their own `<h3>`.
9082
+ * Use the form's own items for item titles: [Card](/marketing/sections/card), [Steps](/marketing/sections/steps) and [FAQ](/marketing/sections/faq) set each item's `<h3>`.
9083
+ * Set [Showcase](/marketing/sections/showcase), [Logo Wall](/marketing/sections/logo-wall), [Statement](/marketing/sections/statement), [Story](/marketing/sections/story) and [Bleed](/marketing/sections/bleed) on their own. They're sections already.
8890
9084
  * Use [CTA](/marketing/sections/cta) for the closing section, which brings its own title.
8891
9085
 
8892
9086
  #### Turn Where the Ground Changes
@@ -9783,6 +9977,8 @@ A numbered sequence on one rail: a node and a two-digit number for each step, ov
9783
9977
 
9784
9978
  When the list first comes into view, the rail draws from the first node to the last.
9785
9979
 
9980
+ Its slots: each step takes a title and a one-sentence description, both required. A step has no picture, figure, action, link or label. The number is automatic, and an action for the sequence goes in its Section's `action`.
9981
+
9786
9982
  ### Examples
9787
9983
 
9788
9984
  #### Default
@@ -9816,6 +10012,36 @@ export function Demo() {
9816
10012
 
9817
10013
  [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Steps/Default.tsx)
9818
10014
 
10015
+ #### Three Steps
10016
+
10017
+ Pass three items, and the three share the row.
10018
+
10019
+ ```tsx
10020
+ /** Demonstrates Marketing steps: three steps that share the row. @module */
10021
+ import { Steps } from '@tempoxyz/ds/marketing'
10022
+
10023
+ export const fill = true
10024
+
10025
+ export const width = 'desktop'
10026
+
10027
+ export function Demo() {
10028
+ return (
10029
+ <Steps
10030
+ items={[
10031
+ { description: 'Add the client to your app with one command.', title: 'Install the SDK' },
10032
+ {
10033
+ description: 'Get testnet stablecoins from the faucet in a few seconds.',
10034
+ title: 'Fund a testnet account',
10035
+ },
10036
+ { description: 'Transfer to any address and see it settle.', title: 'Send a payment' },
10037
+ ]}
10038
+ />
10039
+ )
10040
+ }
10041
+ ```
10042
+
10043
+ [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Steps/Three.tsx)
10044
+
9819
10045
  ### Anatomy
9820
10046
 
9821
10047
  ```tsx
@@ -9828,12 +10054,12 @@ import { Steps } from '@tempoxyz/ds/marketing'
9828
10054
 
9829
10055
  #### When to Use
9830
10056
 
9831
- * Show a process that runs in order.
10057
+ * Set two to five items in a fixed order, where each step follows from the one before.
9832
10058
 
9833
10059
  #### When Not to Use
9834
10060
 
9835
10061
  * Use [Card](/marketing/sections/card) for items with no order, or items that each link somewhere.
9836
- * Use [FAQ](/marketing/sections/faq) for questions a reader opens one at a time.
10062
+ * Use [Showcase](/marketing/sections/showcase) for a sequence told around one picture.
9837
10063
 
9838
10064
  #### Use Two to Five Steps
9839
10065
 
@@ -9847,7 +10073,7 @@ Each title is an `h3`. Name the sequence with the `title` of the [Section](/mark
9847
10073
 
9848
10074
  #### Start Each Title With a Verb
9849
10075
 
9850
- Name the step as an action, and say what it does in its `description`, in one short sentence. The part numbers each step, so a title never starts with a number. DS Web's Stepper allows nouns, since its steps are screens in a flow. These steps name actions.
10076
+ Name the step as an action, and say what it does in its `description`, in one short sentence. The part numbers each step, so a title never starts with a number.
9851
10077
 
9852
10078
  **Do:** Write Shape the strategy.
9853
10079
 
@@ -9887,6 +10113,10 @@ Use for the section and the heading that names the sequence.
9887
10113
 
9888
10114
  Use for items with no order.
9889
10115
 
10116
+ [Showcase](/marketing/sections/showcase)
10117
+
10118
+ Use for a sequence told around one picture.
10119
+
9890
10120
  [Motion](/marketing/foundations/motion)
9891
10121
 
9892
10122
  Covers the draw token the rail moves on.