@tempoxyz/ds 4.7.20261201080809 → 4.9.20261201184053
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/AGENTS.md +1 -1
- package/dist/docs/marketing.md +205 -97
- package/dist/document/templates/brief.html +3 -3
- package/dist/document/templates/essay.html +3 -3
- package/dist/document/templates/post.html +3 -3
- package/dist/marketing/components/AnswerLabel.js.zyzz.json +1 -1
- package/dist/marketing/components/ArticleBody.css +1 -1
- package/dist/marketing/components/ArticleBody.d.ts +13 -4
- package/dist/marketing/components/ArticleBody.d.ts.map +1 -1
- package/dist/marketing/components/ArticleBody.js +1 -1
- package/dist/marketing/components/ArticleBody.js.map +1 -1
- package/dist/marketing/components/ArticleBody.js.zyzz.json +1 -1
- package/dist/marketing/components/ArticleHero.js.zyzz.json +1 -1
- package/dist/marketing/components/ArticleIndex.js.zyzz.json +1 -1
- package/dist/marketing/components/ArticleRail.css +1 -1
- package/dist/marketing/components/ArticleRail.d.ts +1 -1
- package/dist/marketing/components/ArticleRail.d.ts.map +1 -1
- package/dist/marketing/components/ArticleRail.js +5 -4
- package/dist/marketing/components/ArticleRail.js.map +1 -1
- package/dist/marketing/components/ArticleRail.js.zyzz.json +1 -1
- package/dist/marketing/components/AsideLayout.d.ts +2 -1
- package/dist/marketing/components/AsideLayout.d.ts.map +1 -1
- package/dist/marketing/components/AsideLayout.js +2 -1
- package/dist/marketing/components/AsideLayout.js.map +1 -1
- package/dist/marketing/components/AsideLayout.js.zyzz.json +1 -1
- package/dist/marketing/components/Bleed.js.zyzz.json +1 -1
- package/dist/marketing/components/BlockFrame.d.ts +10 -7
- package/dist/marketing/components/BlockFrame.d.ts.map +1 -1
- package/dist/marketing/components/BlockFrame.js +6 -4
- package/dist/marketing/components/BlockFrame.js.map +1 -1
- package/dist/marketing/components/BlockFrame.js.zyzz.json +1 -1
- package/dist/marketing/components/Breadcrumbs.js.zyzz.json +1 -1
- package/dist/marketing/components/Button.css +1 -1
- package/dist/marketing/components/Button.d.ts +4 -4
- package/dist/marketing/components/Button.d.ts.map +1 -1
- package/dist/marketing/components/Button.js +3 -3
- package/dist/marketing/components/Button.js.map +1 -1
- package/dist/marketing/components/Button.js.zyzz.json +1 -1
- package/dist/marketing/components/Card.js.zyzz.json +1 -1
- package/dist/marketing/components/Carousel.js.zyzz.json +1 -1
- package/dist/marketing/components/Composer.js.zyzz.json +1 -1
- package/dist/marketing/components/Cta.js.zyzz.json +1 -1
- package/dist/marketing/components/Faq.js.zyzz.json +1 -1
- package/dist/marketing/components/FeatureAccordion.js.zyzz.json +1 -1
- package/dist/marketing/components/Field.d.ts +1 -1
- package/dist/marketing/components/Field.js +3 -3
- package/dist/marketing/components/Field.js.zyzz.json +1 -1
- package/dist/marketing/components/Filter.js.zyzz.json +1 -1
- package/dist/marketing/components/Footer.js.zyzz.json +1 -1
- package/dist/marketing/components/Hero.js.zyzz.json +1 -1
- package/dist/marketing/components/Index.js.zyzz.json +1 -1
- package/dist/marketing/components/LeadCapture.js.zyzz.json +1 -1
- package/dist/marketing/components/Link.js.zyzz.json +1 -1
- package/dist/marketing/components/Logo.js.zyzz.json +1 -1
- package/dist/marketing/components/LogoWall.js.zyzz.json +1 -1
- package/dist/marketing/components/Media.js.zyzz.json +1 -1
- package/dist/marketing/components/Nav.js.zyzz.json +1 -1
- package/dist/marketing/components/PartnersIndex.js.zyzz.json +1 -1
- package/dist/marketing/components/Search.js.zyzz.json +1 -1
- package/dist/marketing/components/Section.js.zyzz.json +1 -1
- package/dist/marketing/components/SectionHeading.js.zyzz.json +1 -1
- package/dist/marketing/components/Share.d.ts +9 -7
- package/dist/marketing/components/Share.d.ts.map +1 -1
- package/dist/marketing/components/Share.js +8 -6
- package/dist/marketing/components/Share.js.map +1 -1
- package/dist/marketing/components/Share.js.zyzz.json +1 -1
- package/dist/marketing/components/Showcase.js.zyzz.json +1 -1
- package/dist/marketing/components/Snippet.d.ts +7 -5
- package/dist/marketing/components/Snippet.d.ts.map +1 -1
- package/dist/marketing/components/Snippet.js +8 -6
- package/dist/marketing/components/Snippet.js.map +1 -1
- package/dist/marketing/components/Snippet.js.zyzz.json +1 -1
- package/dist/marketing/components/Sources.d.ts +10 -7
- package/dist/marketing/components/Sources.d.ts.map +1 -1
- package/dist/marketing/components/Sources.js +7 -4
- package/dist/marketing/components/Sources.js.map +1 -1
- package/dist/marketing/components/Sources.js.zyzz.json +1 -1
- package/dist/marketing/components/Statement.js.zyzz.json +1 -1
- package/dist/marketing/components/Stats.js.zyzz.json +1 -1
- package/dist/marketing/components/Steps.js.zyzz.json +1 -1
- package/dist/marketing/components/Story.js.zyzz.json +1 -1
- package/dist/marketing/components/SymbolTile.js.zyzz.json +1 -1
- package/dist/marketing/components/Table.js.zyzz.json +1 -1
- package/dist/marketing/components/Tag.js.zyzz.json +1 -1
- package/dist/marketing/components/internal/Hint.js.zyzz.json +1 -1
- package/dist/marketing/components/internal/useCopy.d.ts +3 -3
- package/dist/marketing/components/internal/useCopy.js +4 -4
- package/dist/marketing/icons/Copy.d.ts +11 -0
- package/dist/marketing/icons/Copy.d.ts.map +1 -0
- package/dist/marketing/icons/Copy.js +5 -0
- package/dist/marketing/icons/Copy.js.map +1 -0
- package/dist/marketing/index.js.zyzz.json +1 -1
- package/dist/marketing/outline/Outline.js.zyzz.json +1 -1
- package/dist/marketing/outline/Presets.js.zyzz.json +1 -1
- package/dist/marketing/outline/Sections.js.zyzz.json +1 -1
- package/dist/marketing/styles.js.zyzz.json +1 -1
- package/dist/marketing/vars.d.ts +2 -0
- package/dist/marketing/vars.d.ts.map +1 -1
- package/dist/marketing/vars.js.map +1 -1
- package/dist/marketing/vars.js.zyzz.json +1 -1
- package/dist/marketing/zyzz.config.d.ts +10 -0
- package/dist/marketing/zyzz.config.d.ts.map +1 -1
- package/dist/marketing/zyzz.config.js +5 -11
- package/dist/marketing/zyzz.config.js.map +1 -1
- package/dist/marketing/zyzz.config.js.zyzz.json +1 -1
- package/package.json +2 -2
- package/src/marketing/README.md +2 -0
- package/src/marketing/components/ArticleBody.tsx +20 -8
- package/src/marketing/components/ArticleRail.tsx +6 -5
- package/src/marketing/components/AsideLayout.tsx +2 -1
- package/src/marketing/components/BlockFrame.tsx +10 -7
- package/src/marketing/components/Button.tsx +4 -4
- package/src/marketing/components/Field.tsx +3 -3
- package/src/marketing/components/Share.tsx +10 -8
- package/src/marketing/components/Snippet.tsx +9 -7
- package/src/marketing/components/Sources.tsx +10 -7
- package/src/marketing/components/internal/useCopy.ts +4 -4
- package/src/marketing/icons/Copy.tsx +30 -0
- package/src/marketing/vars.ts +3 -0
- package/src/marketing/zyzz.config.ts +6 -83
package/dist/docs/AGENTS.md
CHANGED
|
@@ -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) (
|
|
39
|
+
- [marketing.md](marketing.md) (374 KB): The Marketing system.
|
|
40
40
|
- [arsenal.md](arsenal.md) (247 KB): The Arsenal brand system.
|
|
41
41
|
|
|
42
42
|
## Rules
|
package/dist/docs/marketing.md
CHANGED
|
@@ -14,8 +14,8 @@ Each section below is one page of the documentation at ds.tehq.dev.
|
|
|
14
14
|
- [Link](#link): Links quietly to another page, ending in an icon.
|
|
15
15
|
- [Logo](#logo): Shows the Tempo wordmark, or its T where only a square fits.
|
|
16
16
|
- [Search](#search): Finds a page in an index page's own list, with results as you type.
|
|
17
|
-
- [Share](#share): Shares a page as links
|
|
18
|
-
- [Snippet](#snippet): Shows a command or
|
|
17
|
+
- [Share](#share): Shares a page as links and copies its address.
|
|
18
|
+
- [Snippet](#snippet): Shows a command or value with a button that copies it.
|
|
19
19
|
- [Symbol Tile](#symbol-tile): Sets a glyph, icon, or mark on a square tile beside its label.
|
|
20
20
|
- [Tag](#tag): Labels one fixed fact, or links to its topic.
|
|
21
21
|
- [Accessibility](#accessibility-13): Focus rings, hit areas, contrast, and reduced motion on marketing pages.
|
|
@@ -30,7 +30,7 @@ Each section below is one page of the documentation at ds.tehq.dev.
|
|
|
30
30
|
- [Article Hero](#article-hero): Opens a blog post, Learn guide or customer story with its title.
|
|
31
31
|
- [Article Rail](#article-rail): Sets share links, then the contents, beside a blog post or a Learn guide.
|
|
32
32
|
- [Bleed](#bleed): Runs a picture or video to the page's edges in its own section.
|
|
33
|
-
- [Block Frame](#block-frame): Holds one block
|
|
33
|
+
- [Block Frame](#block-frame): Holds one block whose view lands after the page, with a skeleton while it loads.
|
|
34
34
|
- [Card](#card): Links a story, an article, a partner or a guide as one card or ruled row.
|
|
35
35
|
- [Carousel](#carousel): Scrolls a row of items sideways, paged by buttons in its section heading.
|
|
36
36
|
- [CTA](#cta): Closes a page on its next step: links, two paths, or a form to reach the team.
|
|
@@ -44,7 +44,7 @@ Each section below is one page of the documentation at ds.tehq.dev.
|
|
|
44
44
|
- [Nav](#nav): Leads from every page to the site's sections, in a bar at the top.
|
|
45
45
|
- [Section](#section): Holds a page section: its container, its heading and the space above it.
|
|
46
46
|
- [Showcase](#showcase): Tells one feature through a large picture, with its steps, cards or tools.
|
|
47
|
-
- [Sources](#sources): Lists every page and file a
|
|
47
|
+
- [Sources](#sources): Lists every page and file a page draws on, each as a link.
|
|
48
48
|
- [Statement](#statement): Sets one sentence large in its own section.
|
|
49
49
|
- [Stats](#stats): Sets a few figures side by side, each over its label under a rule.
|
|
50
50
|
- [Steps](#steps): Sets a numbered sequence on one rail.
|
|
@@ -321,10 +321,7 @@ Marks a page as a generated answer, with its question, date and sources.
|
|
|
321
321
|
|
|
322
322
|
### Overview
|
|
323
323
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
> [!NOTE]
|
|
327
|
-
> Answer Label has no DS Marketing design yet. Its look may change when the design lands.
|
|
324
|
+
A note under a generated page's title. It quotes the question the reader asked, then dates the answer and counts the pages and files it read.
|
|
328
325
|
|
|
329
326
|
### Examples
|
|
330
327
|
|
|
@@ -355,7 +352,7 @@ export function Demo() {
|
|
|
355
352
|
```tsx
|
|
356
353
|
import { AnswerLabel } from '@tempoxyz/ds/marketing'
|
|
357
354
|
|
|
358
|
-
<AnswerLabel />
|
|
355
|
+
<AnswerLabel date={{ dateTime: '…', label: '…' }} question="…" sources={4} />
|
|
359
356
|
```
|
|
360
357
|
|
|
361
358
|
### Guidelines
|
|
@@ -371,7 +368,7 @@ import { AnswerLabel } from '@tempoxyz/ds/marketing'
|
|
|
371
368
|
|
|
372
369
|
#### Label Every Generated Page
|
|
373
370
|
|
|
374
|
-
Put the label on
|
|
371
|
+
Put the label on every generated page, and never on a page that people wrote. Its count matches the rows of the page's [Sources](/marketing/sections/sources).
|
|
375
372
|
|
|
376
373
|
#### Quote the Question as Asked
|
|
377
374
|
|
|
@@ -381,17 +378,34 @@ Pass the reader's question unchanged. The label sets it in quotation marks.
|
|
|
381
378
|
|
|
382
379
|
#### Keep the Heading Plain
|
|
383
380
|
|
|
384
|
-
Keep the default heading, Generated answer, or translate it through `messages`.
|
|
381
|
+
Keep the default heading, Generated answer, or translate it through `messages`.
|
|
385
382
|
|
|
386
383
|
**Do:** Write Generated answer over the question.
|
|
387
384
|
|
|
388
|
-
|
|
385
|
+
```tsx
|
|
386
|
+
<AnswerLabel
|
|
387
|
+
date={{ dateTime: '2026-11-30', label: 'Nov 30, 2026' }}
|
|
388
|
+
question="How do I sponsor my users' fees?"
|
|
389
|
+
sources={4}
|
|
390
|
+
/>
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
**Don't:** Write a brand line that hides how the page was made.
|
|
394
|
+
|
|
395
|
+
```tsx
|
|
396
|
+
<AnswerLabel
|
|
397
|
+
date={{ dateTime: '2026-11-30', label: 'Nov 30, 2026' }}
|
|
398
|
+
messages={{ title: 'Tempo insights' }}
|
|
399
|
+
question="How do I sponsor my users' fees?"
|
|
400
|
+
sources={4}
|
|
401
|
+
/>
|
|
402
|
+
```
|
|
389
403
|
|
|
390
404
|
### Accessibility
|
|
391
405
|
|
|
392
|
-
* **Note (role=note):** Renders a note named by its heading line.
|
|
406
|
+
* **Note (role="note"):** Renders a note named by its heading line.
|
|
393
407
|
* **Date (time):** Sets the date in a `<time>` with its ISO value.
|
|
394
|
-
* **Count Link (
|
|
408
|
+
* **Count Link (link):** With `sourcesHref`, the count is a link to the list. It rings on keyboard focus only.
|
|
395
409
|
|
|
396
410
|
### Related
|
|
397
411
|
|
|
@@ -744,7 +758,7 @@ namespace styles {
|
|
|
744
758
|
|
|
745
759
|
#### Layout
|
|
746
760
|
|
|
747
|
-
Set `layout` to `navigation` in the site header, `card` in a card, where the label may wrap, or `carousel` for
|
|
761
|
+
Set `layout` to `navigation` in the site header, `card` in a card, where the label may wrap, or `carousel` for an icon-only squircle at the 8px corner, which pages a carousel, shares a page and submits a condensed field. `playback` is the round play control over a video. The icon-only layouts size the [Tempo Icons](/marketing/foundations/iconography) glyph they hold to their button.
|
|
748
762
|
|
|
749
763
|
```tsx
|
|
750
764
|
/** Demonstrates the navigation, card, and carousel layouts of the Marketing Button. @module */
|
|
@@ -866,7 +880,7 @@ import { Button } from '@tempoxyz/ds/marketing'
|
|
|
866
880
|
|
|
867
881
|
* Start a call to action in a hero, a [CTA](/marketing/sections/cta), or a page's closing section.
|
|
868
882
|
* Submit a form. Set `type="submit"` on the one button that sends it.
|
|
869
|
-
* Page a carousel or play a video, with the
|
|
883
|
+
* Page a carousel or play a video, with the icon-only `carousel` and `playback` layouts.
|
|
870
884
|
|
|
871
885
|
#### When Not to Use
|
|
872
886
|
|
|
@@ -3089,16 +3103,16 @@ Use for the list of partners or posts that Search finds pages in.
|
|
|
3089
3103
|
|
|
3090
3104
|
## Share
|
|
3091
3105
|
|
|
3092
|
-
Shares a page as links
|
|
3106
|
+
Shares a page as links and copies its address.
|
|
3093
3107
|
|
|
3094
3108
|
*Image: The share icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
3095
3109
|
|
|
3096
3110
|
### Overview
|
|
3097
3111
|
|
|
3098
|
-
The share actions of a page, in a group named for what it shares. The `social` variant shows
|
|
3112
|
+
The share actions of a page, in a group named for what it shares. The `social` variant shows squircle icon links to LinkedIn and X and a button that copies the page's address, on any page people pass around. The `answer` variant, on a generated answer, shows Copy link and Delete over a note that anyone with the link can read the question.
|
|
3099
3113
|
|
|
3100
3114
|
> [!NOTE]
|
|
3101
|
-
>
|
|
3115
|
+
> The LinkedIn, X and GitHub marks have no design source yet, so their drawing may change.
|
|
3102
3116
|
|
|
3103
3117
|
### Examples
|
|
3104
3118
|
|
|
@@ -3107,7 +3121,7 @@ The share actions of a page, in a group named for what it shares. The `social` v
|
|
|
3107
3121
|
Set `variant="social"` (default), and pass the page's absolute `url` and its `title`, which a post on X starts with.
|
|
3108
3122
|
|
|
3109
3123
|
```tsx
|
|
3110
|
-
/** Demonstrates the Marketing share row of
|
|
3124
|
+
/** Demonstrates the Marketing share row of a page. @module */
|
|
3111
3125
|
import { Share } from '@tempoxyz/ds/marketing'
|
|
3112
3126
|
|
|
3113
3127
|
export function Demo() {
|
|
@@ -3119,10 +3133,10 @@ export function Demo() {
|
|
|
3119
3133
|
|
|
3120
3134
|
#### GitHub
|
|
3121
3135
|
|
|
3122
|
-
Pass a repository's address in `github` to add a link to it last,
|
|
3136
|
+
Pass a repository's address in `github` to add a link to it last, on a page about open-source work.
|
|
3123
3137
|
|
|
3124
3138
|
```tsx
|
|
3125
|
-
/** Demonstrates the Marketing share row of
|
|
3139
|
+
/** Demonstrates the Marketing share row of a page with its link to GitHub. @module */
|
|
3126
3140
|
import { Share } from '@tempoxyz/ds/marketing'
|
|
3127
3141
|
|
|
3128
3142
|
export function Demo() {
|
|
@@ -3140,7 +3154,7 @@ export function Demo() {
|
|
|
3140
3154
|
|
|
3141
3155
|
#### Answer
|
|
3142
3156
|
|
|
3143
|
-
Set `variant="answer"` under a generated answer. Pass `onDelete` to show Delete.
|
|
3157
|
+
Set `variant="answer"` under a generated answer. Pass `onDelete` to show Delete.
|
|
3144
3158
|
|
|
3145
3159
|
```tsx
|
|
3146
3160
|
/** Demonstrates the Marketing share actions of a generated answer, with Delete and its note. @module */
|
|
@@ -3188,14 +3202,14 @@ namespace styles {
|
|
|
3188
3202
|
```tsx
|
|
3189
3203
|
import { Share } from '@tempoxyz/ds/marketing'
|
|
3190
3204
|
|
|
3191
|
-
<Share />
|
|
3205
|
+
<Share title="…" url="…" />
|
|
3192
3206
|
```
|
|
3193
3207
|
|
|
3194
3208
|
### Guidelines
|
|
3195
3209
|
|
|
3196
3210
|
#### When to Use
|
|
3197
3211
|
|
|
3198
|
-
* Share
|
|
3212
|
+
* Share any page people pass around, such as a post, a guide, a report or an asset's page, beside or above its content.
|
|
3199
3213
|
* Share or delete a generated answer under its text.
|
|
3200
3214
|
|
|
3201
3215
|
#### When Not to Use
|
|
@@ -3207,6 +3221,10 @@ import { Share } from '@tempoxyz/ds/marketing'
|
|
|
3207
3221
|
|
|
3208
3222
|
Pass the absolute address that a reader opens, so the share links and the copy button carry the same page.
|
|
3209
3223
|
|
|
3224
|
+
#### Keep the Built-In Confirmation
|
|
3225
|
+
|
|
3226
|
+
After a copy, the glyph turns into a check for two seconds and a reader hears Link copied. Don't add a toast or a line such as Copied to clipboard.
|
|
3227
|
+
|
|
3210
3228
|
#### Offer Delete Only to Its Owner
|
|
3211
3229
|
|
|
3212
3230
|
Pass `onDelete` only where the reader can delete the answer, such as the browser that asked it. Without it, the answer shows Copy link alone.
|
|
@@ -3219,10 +3237,11 @@ The labels name each action by what it does, such as Share on LinkedIn and Copy
|
|
|
3219
3237
|
|
|
3220
3238
|
### Accessibility
|
|
3221
3239
|
|
|
3222
|
-
* **Group (role="group"):** Names the group Share
|
|
3223
|
-
* **Share Links (link):** Each
|
|
3240
|
+
* **Group (role="group"):** Names the group Share page, or Share answer on an answer. Article Rail names it Share article.
|
|
3241
|
+
* **Share Links (link):** Each icon link is named by what it does and opens a new tab.
|
|
3224
3242
|
* **Copy Link (aria-live):** A polite live region announces the copy, or that the browser refused it.
|
|
3225
|
-
* **Note (aria-describedby):** On an answer, the note describes Copy link, so a reader hears it
|
|
3243
|
+
* **Note (aria-describedby):** On an answer, the note describes Copy link, so a reader hears it with the button.
|
|
3244
|
+
* **Reduced Motion (prefers-reduced-motion):** The check fades in over the link glyph, without the scale.
|
|
3226
3245
|
|
|
3227
3246
|
#### Your Responsibilities
|
|
3228
3247
|
|
|
@@ -3241,20 +3260,17 @@ Use for a command or address to copy.
|
|
|
3241
3260
|
|
|
3242
3261
|
[Button](/marketing/components/button)
|
|
3243
3262
|
|
|
3244
|
-
Use for the
|
|
3263
|
+
Use for the icon-only and small buttons the actions draw as.
|
|
3245
3264
|
|
|
3246
3265
|
## Snippet
|
|
3247
3266
|
|
|
3248
|
-
Shows a command or
|
|
3267
|
+
Shows a command or value with a button that copies it.
|
|
3249
3268
|
|
|
3250
3269
|
*Image: The terminal icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
3251
3270
|
|
|
3252
3271
|
### Overview
|
|
3253
3272
|
|
|
3254
|
-
A command or
|
|
3255
|
-
|
|
3256
|
-
> [!NOTE]
|
|
3257
|
-
> Snippet has no approved design yet, so its box, glyph and props may change.
|
|
3273
|
+
A command or value that a reader copies, such as an install command or the address an agent connects to. It sets in the mono face on one line, with a squircle copy button at the end. It matches DS Web's [Snippet](product/components/data-display.md#snippet), except that it keeps one line that scrolls, since it sits in heroes and calls to action at one height.
|
|
3258
3274
|
|
|
3259
3275
|
### Examples
|
|
3260
3276
|
|
|
@@ -3318,14 +3334,14 @@ namespace styles {
|
|
|
3318
3334
|
```tsx
|
|
3319
3335
|
import { Snippet } from '@tempoxyz/ds/marketing'
|
|
3320
3336
|
|
|
3321
|
-
<Snippet
|
|
3337
|
+
<Snippet messages={{ copy: '…' }}>…</Snippet>
|
|
3322
3338
|
```
|
|
3323
3339
|
|
|
3324
3340
|
### Guidelines
|
|
3325
3341
|
|
|
3326
3342
|
#### When to Use
|
|
3327
3343
|
|
|
3328
|
-
* Show a command, address or
|
|
3344
|
+
* Show a command, address or other value that a reader pastes into another tool.
|
|
3329
3345
|
|
|
3330
3346
|
#### When Not to Use
|
|
3331
3347
|
|
|
@@ -3333,34 +3349,74 @@ import { Snippet } from '@tempoxyz/ds/marketing'
|
|
|
3333
3349
|
* Use [Field](/marketing/components/field) for a value the reader types.
|
|
3334
3350
|
* Use [Article Body](/marketing/sections/article-body) for a code sample of several lines in a post.
|
|
3335
3351
|
|
|
3336
|
-
####
|
|
3352
|
+
#### Copy Exactly What You Show
|
|
3353
|
+
|
|
3354
|
+
The button copies the text as the box shows it, so pass only what runs.
|
|
3355
|
+
|
|
3356
|
+
**Do:** Pass only the command, so the pasted text runs as is.
|
|
3357
|
+
|
|
3358
|
+
```tsx
|
|
3359
|
+
<Snippet style={{ width: 300 }}>pnpm add @tempoxyz/ds</Snippet>
|
|
3360
|
+
```
|
|
3361
|
+
|
|
3362
|
+
**Don't:** Type a leading `$` into the command.
|
|
3363
|
+
|
|
3364
|
+
```tsx
|
|
3365
|
+
<Snippet style={{ width: 300 }}>$ pnpm add @tempoxyz/ds</Snippet>
|
|
3366
|
+
```
|
|
3367
|
+
|
|
3368
|
+
#### Keep One Command per Snippet
|
|
3369
|
+
|
|
3370
|
+
The text keeps one line, and a longer one scrolls out of sight. Split a setup into one snippet per command.
|
|
3337
3371
|
|
|
3338
|
-
|
|
3372
|
+
**Do:** Give each command its own snippet.
|
|
3339
3373
|
|
|
3340
|
-
|
|
3374
|
+
```tsx
|
|
3375
|
+
<div style={{ display: 'grid', gap: 8, width: 300 }}>
|
|
3376
|
+
<Snippet>pnpm add @tempoxyz/ds</Snippet>
|
|
3377
|
+
<Snippet>pnpm dev</Snippet>
|
|
3378
|
+
</div>
|
|
3379
|
+
```
|
|
3341
3380
|
|
|
3342
|
-
|
|
3381
|
+
**Don't:** Chain commands into one snippet.
|
|
3382
|
+
|
|
3383
|
+
```tsx
|
|
3384
|
+
<Snippet style={{ width: 300 }}>pnpm add @tempoxyz/ds && pnpm dev</Snippet>
|
|
3385
|
+
```
|
|
3343
3386
|
|
|
3344
3387
|
### Content
|
|
3345
3388
|
|
|
3389
|
+
* Write commands that run unchanged. Read a value that differs per person from an environment variable, such as `$TEMPO_API_KEY`, not a placeholder.
|
|
3390
|
+
* Never put a real secret in a snippet.
|
|
3391
|
+
|
|
3346
3392
|
#### Name What the Button Copies
|
|
3347
3393
|
|
|
3348
|
-
Name the button by its text, so a reader with several
|
|
3394
|
+
Name the button by its text, so a reader with several snippets knows which one it copies.
|
|
3349
3395
|
|
|
3350
3396
|
**Do:** Write Copy MCP address.
|
|
3351
3397
|
|
|
3352
|
-
|
|
3398
|
+
```tsx
|
|
3399
|
+
<Snippet messages={{ copy: 'Copy MCP address' }} style={{ width: 300 }}>{'https://tempo.xyz/mcp'}</Snippet>
|
|
3400
|
+
<Announce>Copy MCP address, button</Announce>
|
|
3401
|
+
```
|
|
3402
|
+
|
|
3403
|
+
**Don't:** Leave Copy where a page shows more than one snippet.
|
|
3404
|
+
|
|
3405
|
+
```tsx
|
|
3406
|
+
<Snippet style={{ width: 300 }}>{'https://tempo.xyz/mcp'}</Snippet>
|
|
3407
|
+
<Announce>Copy, button</Announce>
|
|
3408
|
+
```
|
|
3353
3409
|
|
|
3354
3410
|
### Accessibility
|
|
3355
3411
|
|
|
3356
3412
|
* **Text (code):** Reads in place, and a press selects all of it for a copy by hand.
|
|
3357
3413
|
* **Button (aria-label):** Shows only a glyph, so `messages.copy` names it, Copy by default.
|
|
3358
|
-
* **Copied (aria-live):**
|
|
3414
|
+
* **Copied (aria-live):** The glyph turns into a check for two seconds, and a polite live region announces the copy, or that the browser refused it.
|
|
3359
3415
|
* **Keys (Enter):** Tab reaches the button, and Enter or Space copies the text.
|
|
3416
|
+
* **Reduced Motion (prefers-reduced-motion):** The check fades in over the copy glyph, without the scale.
|
|
3360
3417
|
|
|
3361
3418
|
#### Your Responsibilities
|
|
3362
3419
|
|
|
3363
|
-
* **Name the Button (messages.copy):** Name the button by what it copies, such as Copy MCP address.
|
|
3364
3420
|
* **Translate the Labels (messages):** Pass `messages` on a page in another language, for every label the part reads.
|
|
3365
3421
|
|
|
3366
3422
|
### Related
|
|
@@ -3375,7 +3431,7 @@ Use for a value the reader types.
|
|
|
3375
3431
|
|
|
3376
3432
|
[Button](/marketing/components/button)
|
|
3377
3433
|
|
|
3378
|
-
Use for the
|
|
3434
|
+
Use for the icon button the copy draws as.
|
|
3379
3435
|
|
|
3380
3436
|
## Symbol Tile
|
|
3381
3437
|
|
|
@@ -5157,7 +5213,7 @@ The text starts its headings at `h2`, under the hero's `h1`, so the outline hold
|
|
|
5157
5213
|
|
|
5158
5214
|
#### Set Code People Copy as a Code Block
|
|
5159
5215
|
|
|
5160
|
-
Inline code
|
|
5216
|
+
Inline code, in a sentence or a table cell, sets a name in backticks in Tempo JetBrains Mono on a chip of the 6% marker tint. Set a command or code people copy as a fenced code block, which draws the same mono in a box of the marker tint. Tempo JetBrains Mono is the only mono, and every Pilat word stays in Book, table headers included.
|
|
5161
5217
|
|
|
5162
5218
|
### Content
|
|
5163
5219
|
|
|
@@ -5401,7 +5457,7 @@ Sets share links, then the contents, beside a blog post or a Learn guide.
|
|
|
5401
5457
|
|
|
5402
5458
|
### Overview
|
|
5403
5459
|
|
|
5404
|
-
The column beside a blog post or Learn guide, in an `<aside>`: a [Share](/marketing/components/share) row, then the contents, then an optional panel. From 1024px it sticks below the navigation, and the contents mark the section being read. Below 1024px only the Share row shows, above the text.
|
|
5460
|
+
The column beside a blog post or Learn guide, in an `<aside>`: a [Share](/marketing/components/share) row, then the contents, then an optional panel. From 1024px it sticks below the navigation, stops 32px short of the text, the space every rail keeps from the content beside it, and the contents mark the section being read. Below 1024px only the Share row shows, above the text.
|
|
5405
5461
|
|
|
5406
5462
|
### Examples
|
|
5407
5463
|
|
|
@@ -5648,58 +5704,79 @@ Use for a picture or video inside a section's content.
|
|
|
5648
5704
|
|
|
5649
5705
|
## Block Frame
|
|
5650
5706
|
|
|
5651
|
-
Holds one block
|
|
5707
|
+
Holds one block whose view lands after the page, with a skeleton while it loads.
|
|
5652
5708
|
|
|
5653
5709
|
*Image: The circle dashed icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
5654
5710
|
|
|
5655
5711
|
### Overview
|
|
5656
5712
|
|
|
5657
|
-
A figure
|
|
5658
|
-
|
|
5659
|
-
> [!NOTE]
|
|
5660
|
-
> Block Frame has no DS Marketing design yet. Its look may change when the design lands.
|
|
5713
|
+
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.
|
|
5661
5714
|
|
|
5662
5715
|
### Examples
|
|
5663
5716
|
|
|
5664
5717
|
#### Loading
|
|
5665
5718
|
|
|
5666
|
-
Set `loading` until the view lands, and `height` to the block's final height.
|
|
5719
|
+
Set `loading` until the view lands, and `height` to the block's final height. Add a `caption` to name where the block came from.
|
|
5667
5720
|
|
|
5668
5721
|
```tsx
|
|
5669
5722
|
/** Demonstrates a block frame that holds its final height under a skeleton until its view lands. @module */
|
|
5670
|
-
import { BlockFrame, Button } from '@tempoxyz/ds/marketing'
|
|
5723
|
+
import { BlockFrame, Button, style } from '@tempoxyz/ds/marketing'
|
|
5671
5724
|
import { useState } from 'react'
|
|
5672
5725
|
|
|
5726
|
+
/** The block's final height, which the frame holds while the view loads. */
|
|
5727
|
+
const height = 200
|
|
5728
|
+
|
|
5673
5729
|
export function Demo() {
|
|
5674
5730
|
const [loading, setLoading] = useState(true)
|
|
5675
5731
|
|
|
5676
5732
|
return (
|
|
5677
|
-
<div
|
|
5733
|
+
<div {...styles.root()}>
|
|
5678
5734
|
<div>
|
|
5679
5735
|
<Button onClick={() => setLoading(!loading)} size="small" variant="secondary">
|
|
5680
5736
|
{loading ? 'Land the view' : 'Load again'}
|
|
5681
5737
|
</Button>
|
|
5682
5738
|
</div>
|
|
5683
|
-
<BlockFrame
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
gap: 8,
|
|
5691
|
-
height: 200,
|
|
5692
|
-
padding: 16,
|
|
5693
|
-
}}
|
|
5694
|
-
>
|
|
5695
|
-
<strong>Partners</strong>
|
|
5696
|
-
<span>Bridge</span>
|
|
5697
|
-
<span>Privy</span>
|
|
5698
|
-
</div>
|
|
5739
|
+
<BlockFrame
|
|
5740
|
+
aria-label="Partners"
|
|
5741
|
+
caption="From the partners directory"
|
|
5742
|
+
height={height}
|
|
5743
|
+
loading={loading}
|
|
5744
|
+
>
|
|
5745
|
+
<View />
|
|
5699
5746
|
</BlockFrame>
|
|
5700
5747
|
</div>
|
|
5701
5748
|
)
|
|
5702
5749
|
}
|
|
5750
|
+
|
|
5751
|
+
/** Stands in for a block's view, such as a list of partners. */
|
|
5752
|
+
export function View() {
|
|
5753
|
+
return (
|
|
5754
|
+
<div {...styles.view({ style: { minBlockSize: height } })}>
|
|
5755
|
+
<span {...styles.title()}>Partners</span>
|
|
5756
|
+
<span>Bridge</span>
|
|
5757
|
+
<span>Privy</span>
|
|
5758
|
+
</div>
|
|
5759
|
+
)
|
|
5760
|
+
}
|
|
5761
|
+
|
|
5762
|
+
namespace styles {
|
|
5763
|
+
export const root = style({ display: 'grid', gap: '16', width: 'full' })
|
|
5764
|
+
|
|
5765
|
+
export const title = style({ color: 'content.primary', typography: 'body.b1' })
|
|
5766
|
+
|
|
5767
|
+
export const view = style({
|
|
5768
|
+
borderColor: 'line.secondary',
|
|
5769
|
+
borderRadius: 'md',
|
|
5770
|
+
borderStyle: 'solid',
|
|
5771
|
+
borderWidth: 'regular',
|
|
5772
|
+
boxSizing: 'border-box',
|
|
5773
|
+
color: 'content.secondary',
|
|
5774
|
+
display: 'grid',
|
|
5775
|
+
gap: '8',
|
|
5776
|
+
padding: '16',
|
|
5777
|
+
typography: 'body.b2',
|
|
5778
|
+
})
|
|
5779
|
+
}
|
|
5703
5780
|
```
|
|
5704
5781
|
|
|
5705
5782
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/BlockFrame/Loading.tsx)
|
|
@@ -5709,14 +5786,16 @@ export function Demo() {
|
|
|
5709
5786
|
```tsx
|
|
5710
5787
|
import { BlockFrame } from '@tempoxyz/ds/marketing'
|
|
5711
5788
|
|
|
5712
|
-
<BlockFrame
|
|
5789
|
+
<BlockFrame height={320} loading={…}>
|
|
5790
|
+
{view}
|
|
5791
|
+
</BlockFrame>
|
|
5713
5792
|
```
|
|
5714
5793
|
|
|
5715
5794
|
### Guidelines
|
|
5716
5795
|
|
|
5717
5796
|
#### When to Use
|
|
5718
5797
|
|
|
5719
|
-
* Place
|
|
5798
|
+
* Place a block whose view lands after the page, such as a partners list or a contact form on a generated answer.
|
|
5720
5799
|
|
|
5721
5800
|
#### When Not to Use
|
|
5722
5801
|
|
|
@@ -5727,29 +5806,48 @@ import { BlockFrame } from '@tempoxyz/ds/marketing'
|
|
|
5727
5806
|
|
|
5728
5807
|
Pass the block's final height as `height`, so the skeleton holds the space the view takes.
|
|
5729
5808
|
|
|
5730
|
-
#### Render From the
|
|
5809
|
+
#### Render From Data the Page Has
|
|
5810
|
+
|
|
5811
|
+
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.
|
|
5812
|
+
|
|
5813
|
+
### Content
|
|
5814
|
+
|
|
5815
|
+
#### Caption the Source in Plain Words
|
|
5816
|
+
|
|
5817
|
+
Name the source a reader knows, in a few words. Leave the caption out when the view's own heading says it.
|
|
5818
|
+
|
|
5819
|
+
**Do:** Write From the partners directory.
|
|
5820
|
+
|
|
5821
|
+
```tsx
|
|
5822
|
+
<BlockFrame caption="From the partners directory" height={96} loading style={{ width: 240 }} />
|
|
5823
|
+
```
|
|
5731
5824
|
|
|
5732
|
-
|
|
5825
|
+
**Don't:** Write a tool's internal name.
|
|
5826
|
+
|
|
5827
|
+
```tsx
|
|
5828
|
+
<BlockFrame caption="From partners_list" height={96} loading style={{ width: 240 }} />
|
|
5829
|
+
```
|
|
5733
5830
|
|
|
5734
5831
|
### Accessibility
|
|
5735
5832
|
|
|
5736
5833
|
* **Busy (aria-busy):** The figure reports itself busy while the view loads.
|
|
5737
|
-
* **Inert View (inert):** The view stays mounted
|
|
5834
|
+
* **Inert View (inert):** The view stays mounted under the skeleton, and Tab skips it until it lands.
|
|
5738
5835
|
* **Skeleton (aria-hidden):** The skeleton is hidden from assistive technology.
|
|
5836
|
+
* **Reduced Motion (prefers-reduced-motion):** The view appears at once when it lands, instead of fading in.
|
|
5739
5837
|
|
|
5740
5838
|
#### Your Responsibilities
|
|
5741
5839
|
|
|
5742
|
-
* **Name the Block:** Pass `aria-label` when the view has no heading of its own.
|
|
5840
|
+
* **Name the Block (aria-label):** Pass `aria-label` when the view has no heading of its own.
|
|
5743
5841
|
|
|
5744
5842
|
### Related
|
|
5745
5843
|
|
|
5746
5844
|
[Sources](/marketing/sections/sources)
|
|
5747
5845
|
|
|
5748
|
-
Use for the pages and files
|
|
5846
|
+
Use for the pages and files a page draws on.
|
|
5749
5847
|
|
|
5750
5848
|
[Answer Label](/marketing/components/answer-label)
|
|
5751
5849
|
|
|
5752
|
-
Use for the mark under
|
|
5850
|
+
Use for the mark under an answer's title.
|
|
5753
5851
|
|
|
5754
5852
|
[Section](/marketing/sections/section)
|
|
5755
5853
|
|
|
@@ -9276,16 +9374,13 @@ Covers an ordered sequence of steps, shown without a large picture.
|
|
|
9276
9374
|
|
|
9277
9375
|
## Sources
|
|
9278
9376
|
|
|
9279
|
-
Lists every page and file a
|
|
9377
|
+
Lists every page and file a page draws on, each as a link.
|
|
9280
9378
|
|
|
9281
9379
|
*Image: The link nodes icon from Tempo Icons in polished chrome, centered on a transparent ground*
|
|
9282
9380
|
|
|
9283
9381
|
### Overview
|
|
9284
9382
|
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
> [!NOTE]
|
|
9288
|
-
> Sources has no DS Marketing design yet. Its look may change when the design lands.
|
|
9383
|
+
A heading over one row per page or file the page draws on. Each row sets the title over its address and links to it.
|
|
9289
9384
|
|
|
9290
9385
|
### Examples
|
|
9291
9386
|
|
|
@@ -9322,7 +9417,7 @@ export function Demo() {
|
|
|
9322
9417
|
import { Sources } from '@tempoxyz/ds/marketing'
|
|
9323
9418
|
|
|
9324
9419
|
<Sources>
|
|
9325
|
-
<Sources.Item
|
|
9420
|
+
<Sources.Item href="…">…</Sources.Item>
|
|
9326
9421
|
</Sources>
|
|
9327
9422
|
```
|
|
9328
9423
|
|
|
@@ -9330,20 +9425,17 @@ import { Sources } from '@tempoxyz/ds/marketing'
|
|
|
9330
9425
|
|
|
9331
9426
|
#### When to Use
|
|
9332
9427
|
|
|
9333
|
-
* Close
|
|
9428
|
+
* Close a page that draws on other pages or files, such as a generated answer or a report.
|
|
9334
9429
|
|
|
9335
9430
|
#### When Not to Use
|
|
9336
9431
|
|
|
9337
|
-
* Use [Article
|
|
9432
|
+
* Use [Article Body](/marketing/sections/article-body) footnotes for a post's citations, which sit in its text.
|
|
9433
|
+
* Use [Article Rail](/marketing/sections/article-rail) for the contents of a page.
|
|
9338
9434
|
* Use [Card](/marketing/sections/card) to recommend further reading.
|
|
9339
9435
|
|
|
9340
|
-
#### List What the
|
|
9436
|
+
#### List What the Page Draws On
|
|
9341
9437
|
|
|
9342
|
-
List every page and file the
|
|
9343
|
-
|
|
9344
|
-
#### Link the Label to the List
|
|
9345
|
-
|
|
9346
|
-
Give the list an `id`, such as `sources`, and pass `#sources` as the label's `sourcesHref`.
|
|
9438
|
+
List every page and file the page draws on, in the order it uses them, and never one it doesn't. On a generated answer, give the list an `id`, such as `sources`, and pass `#sources` as its [Answer Label](/marketing/components/answer-label)'s `sourcesHref`, so the label's count links to the rows it counts.
|
|
9347
9439
|
|
|
9348
9440
|
### Content
|
|
9349
9441
|
|
|
@@ -9351,25 +9443,41 @@ Give the list an `id`, such as `sources`, and pass `#sources` as the label's `so
|
|
|
9351
9443
|
|
|
9352
9444
|
Set each row's title as the page or file names itself, and its address as the reader would type it.
|
|
9353
9445
|
|
|
9354
|
-
**Do:** Write
|
|
9446
|
+
**Do:** Write the page's title over its address.
|
|
9447
|
+
|
|
9448
|
+
```tsx
|
|
9449
|
+
<Sources heading="h3">
|
|
9450
|
+
<Sources.Item detail="/docs/guide/fee-payer" href="#">
|
|
9451
|
+
Sponsor fees with a fee payer
|
|
9452
|
+
</Sources.Item>
|
|
9453
|
+
</Sources>
|
|
9454
|
+
```
|
|
9355
9455
|
|
|
9356
9456
|
**Don't:** Write a summary of the page in place of its title.
|
|
9357
9457
|
|
|
9458
|
+
```tsx
|
|
9459
|
+
<Sources heading="h3">
|
|
9460
|
+
<Sources.Item detail="/docs/guide/fee-payer" href="#">
|
|
9461
|
+
How an app can pay its users' fees for them
|
|
9462
|
+
</Sources.Item>
|
|
9463
|
+
</Sources>
|
|
9464
|
+
```
|
|
9465
|
+
|
|
9358
9466
|
### Accessibility
|
|
9359
9467
|
|
|
9360
9468
|
* **Ordered List (ol):** Renders an ordered list, so a reader hears the count.
|
|
9361
|
-
* **Rows (
|
|
9469
|
+
* **Rows (link):** Each row is one link of at least the minimum hit height, named by its title and address.
|
|
9362
9470
|
* **Section Name (titleId):** Pass `titleId` as the section's `aria-labelledby`.
|
|
9363
9471
|
|
|
9364
9472
|
### Related
|
|
9365
9473
|
|
|
9366
9474
|
[Answer Label](/marketing/components/answer-label)
|
|
9367
9475
|
|
|
9368
|
-
Use for the count of sources under
|
|
9476
|
+
Use for the count of sources under an answer's title.
|
|
9369
9477
|
|
|
9370
9478
|
[Block Frame](/marketing/sections/block-frame)
|
|
9371
9479
|
|
|
9372
|
-
Use for each block of
|
|
9480
|
+
Use for each block of an answer.
|
|
9373
9481
|
|
|
9374
9482
|
[Section](/marketing/sections/section)
|
|
9375
9483
|
|
|
@@ -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@4.
|
|
5
|
+
npx -p @tempoxyz/ds@4.9.20261201184053 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@4.
|
|
15
|
+
href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@4.9.20261201184053/dist/document/document.css"
|
|
16
16
|
/>
|
|
17
17
|
<script
|
|
18
18
|
defer
|
|
19
|
-
src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@4.
|
|
19
|
+
src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@4.9.20261201184053/dist/document/script.js"
|
|
20
20
|
></script>
|
|
21
21
|
</head>
|
|
22
22
|
<body>
|