@tempoxyz/ds 3.7.20261201042552 → 3.7.20261201043207
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
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) (314 KB): The Marketing system.
|
|
40
40
|
- [arsenal.md](arsenal.md) (266 KB): The Arsenal brand system.
|
|
41
41
|
|
|
42
42
|
## Rules
|
package/dist/docs/marketing.md
CHANGED
|
@@ -409,16 +409,16 @@ Links each level above a page.
|
|
|
409
409
|
|
|
410
410
|
### Overview
|
|
411
411
|
|
|
412
|
-
A trail of links up through each level above a page, ending on the page itself.
|
|
412
|
+
A trail of links up through each level above a page, ending on the page itself.
|
|
413
413
|
|
|
414
414
|
### Examples
|
|
415
415
|
|
|
416
416
|
#### Default
|
|
417
417
|
|
|
418
|
-
Pass a `Breadcrumbs.Item` with its `href` for each level above,
|
|
418
|
+
Pass a `Breadcrumbs.Item` with its `href` for each level above, and mark the page's own item `current`.
|
|
419
419
|
|
|
420
420
|
```tsx
|
|
421
|
-
/** Demonstrates the Marketing breadcrumb trail on a
|
|
421
|
+
/** Demonstrates the Marketing breadcrumb trail on a page two levels below an index. @module */
|
|
422
422
|
import { Breadcrumbs } from '@tempoxyz/ds/marketing'
|
|
423
423
|
|
|
424
424
|
export function Demo() {
|
|
@@ -434,36 +434,16 @@ export function Demo() {
|
|
|
434
434
|
|
|
435
435
|
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Breadcrumbs/Default.tsx)
|
|
436
436
|
|
|
437
|
-
#### One Level
|
|
438
|
-
|
|
439
|
-
A category one level down takes one link before the page.
|
|
440
|
-
|
|
441
|
-
```tsx
|
|
442
|
-
/** Demonstrates the Marketing breadcrumb trail on a category one level down. @module */
|
|
443
|
-
import { Breadcrumbs } from '@tempoxyz/ds/marketing'
|
|
444
|
-
|
|
445
|
-
export function Demo() {
|
|
446
|
-
return (
|
|
447
|
-
<Breadcrumbs>
|
|
448
|
-
<Breadcrumbs.Item href="/partners">Partners</Breadcrumbs.Item>
|
|
449
|
-
<Breadcrumbs.Item current>Ramps & FX</Breadcrumbs.Item>
|
|
450
|
-
</Breadcrumbs>
|
|
451
|
-
)
|
|
452
|
-
}
|
|
453
|
-
```
|
|
454
|
-
|
|
455
|
-
[View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/Marketing/Breadcrumbs/OneLevel.tsx)
|
|
456
|
-
|
|
457
437
|
#### Other Parents
|
|
458
438
|
|
|
459
|
-
A page under
|
|
439
|
+
A page listed under three parents, shown through one of them.
|
|
460
440
|
|
|
461
441
|
```tsx
|
|
462
|
-
/** Demonstrates the trail of a page under more than one parent,
|
|
442
|
+
/** Demonstrates the trail of a page listed under more than one parent, through the parent the visitor came from. @module */
|
|
463
443
|
import { Breadcrumbs } from '@tempoxyz/ds/marketing'
|
|
464
444
|
|
|
465
|
-
// Coinbase is listed under Wallets & custody, Exchanges and Tokenized assets
|
|
466
|
-
//
|
|
445
|
+
// Coinbase is listed under Wallets & custody, Exchanges and Tokenized assets, and the visitor came
|
|
446
|
+
// from Exchanges.
|
|
467
447
|
export function Demo() {
|
|
468
448
|
return (
|
|
469
449
|
<Breadcrumbs>
|
|
@@ -491,31 +471,122 @@ import { Breadcrumbs } from '@tempoxyz/ds/marketing'
|
|
|
491
471
|
|
|
492
472
|
#### When to Use
|
|
493
473
|
|
|
494
|
-
* Lead
|
|
474
|
+
* Lead every page below an index, since a marketing page has no side menu that leads back up.
|
|
495
475
|
|
|
496
476
|
#### When Not to Use
|
|
497
477
|
|
|
498
|
-
* Leave a top-level page without a trail
|
|
478
|
+
* Leave a top-level page without a trail.
|
|
499
479
|
* Use [Link](/marketing/components/link) for each page related to this one.
|
|
500
|
-
* Use a step indicator for progress through a flow, since a trail shows only where a page sits.
|
|
501
480
|
|
|
502
|
-
####
|
|
481
|
+
#### Place the Trail Above the Title
|
|
482
|
+
|
|
483
|
+
Put the trail first, directly above the title it leads to, wherever that title sits.
|
|
484
|
+
|
|
485
|
+
**Do:** The trail leads into the title.
|
|
486
|
+
|
|
487
|
+
```tsx
|
|
488
|
+
/**
|
|
489
|
+
* Do example for "Place the Trail Above the Title" on the Marketing Breadcrumbs page.
|
|
490
|
+
* The trail leads into the title.
|
|
491
|
+
* @module
|
|
492
|
+
*/
|
|
493
|
+
import { Mini } from '../../../demos/Marketing/Breadcrumbs/Mini.js'
|
|
494
|
+
|
|
495
|
+
/** Renders the static preview, which the guideline card shows inert. */
|
|
496
|
+
export function Demo() {
|
|
497
|
+
return <Mini title="below" trail={['Partners', 'Wallets & custody', 'Privy']} />
|
|
498
|
+
}
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
**Don't:** Put the trail below the title, where it reads as part of the content.
|
|
502
|
+
|
|
503
|
+
```tsx
|
|
504
|
+
/**
|
|
505
|
+
* Don't example for "Place the Trail Above the Title" on the Marketing Breadcrumbs page.
|
|
506
|
+
* The trail sits under the title, where it reads as part of the content.
|
|
507
|
+
* @module
|
|
508
|
+
*/
|
|
509
|
+
import { Mini } from '../../../demos/Marketing/Breadcrumbs/Mini.js'
|
|
510
|
+
|
|
511
|
+
/** Renders the static preview, which the guideline card shows inert. */
|
|
512
|
+
export function Demo() {
|
|
513
|
+
return <Mini title="above" trail={['Partners', 'Wallets & custody', 'Privy']} />
|
|
514
|
+
}
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
#### Lead Back the Way They Came
|
|
518
|
+
|
|
519
|
+
If a page sits under more than one parent, pass the parent the visitor came from as the last link, or its first parent by default. Each parent is a real level above the page, so the trail still follows the hierarchy, not the pages visited on the way.
|
|
520
|
+
|
|
521
|
+
**Do:** One parent leads back to the index.
|
|
503
522
|
|
|
504
|
-
|
|
523
|
+
```tsx
|
|
524
|
+
/**
|
|
525
|
+
* Do example for "Lead Back the Way They Came" on the Marketing Breadcrumbs page.
|
|
526
|
+
* One parent leads back to the index.
|
|
527
|
+
* @module
|
|
528
|
+
*/
|
|
529
|
+
import { Mini } from '../../../demos/Marketing/Breadcrumbs/Mini.js'
|
|
505
530
|
|
|
506
|
-
|
|
531
|
+
/** Renders the static preview, which the guideline card shows inert. */
|
|
532
|
+
export function Demo() {
|
|
533
|
+
return <Mini trail={['Index', 'Category B', 'Item']} />
|
|
534
|
+
}
|
|
535
|
+
```
|
|
507
536
|
|
|
508
|
-
|
|
537
|
+
**Don't:** Chain every parent, which reads as a deeper hierarchy than the page has.
|
|
538
|
+
|
|
539
|
+
```tsx
|
|
540
|
+
/**
|
|
541
|
+
* Don't example for "Lead Back the Way They Came" on the Marketing Breadcrumbs page.
|
|
542
|
+
* Every parent in one trail reads as a deeper hierarchy.
|
|
543
|
+
* @module
|
|
544
|
+
*/
|
|
545
|
+
import { Mini } from '../../../demos/Marketing/Breadcrumbs/Mini.js'
|
|
546
|
+
|
|
547
|
+
/** Renders the static preview, which the guideline card shows inert. */
|
|
548
|
+
export function Demo() {
|
|
549
|
+
return <Mini trail={['Index', 'Category A', 'Category B', 'Item']} />
|
|
550
|
+
}
|
|
551
|
+
```
|
|
509
552
|
|
|
510
553
|
### Content
|
|
511
554
|
|
|
512
555
|
#### Use Each Page's Title
|
|
513
556
|
|
|
514
|
-
Label each item with its page's title, such as
|
|
557
|
+
Label each item with its page's full title, such as Wallets & custody. A label of 32 characters or fewer stays on one line, and the trail wraps between items, never inside a short label.
|
|
515
558
|
|
|
516
|
-
**Do:**
|
|
559
|
+
**Do:** The label matches its page's title.
|
|
517
560
|
|
|
518
|
-
|
|
561
|
+
```tsx
|
|
562
|
+
/**
|
|
563
|
+
* Do example for "Use Each Page's Title" on the Marketing Breadcrumbs page.
|
|
564
|
+
* The label matches its page's title.
|
|
565
|
+
* @module
|
|
566
|
+
*/
|
|
567
|
+
import { Mini } from '../../../demos/Marketing/Breadcrumbs/Mini.js'
|
|
568
|
+
|
|
569
|
+
/** Renders the static preview, which the guideline card shows inert. */
|
|
570
|
+
export function Demo() {
|
|
571
|
+
return <Mini trail={['Partners', 'Wallets & custody']} />
|
|
572
|
+
}
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
**Don't:** Cut a label short of its page's title.
|
|
576
|
+
|
|
577
|
+
```tsx
|
|
578
|
+
/**
|
|
579
|
+
* Don't example for "Use Each Page's Title" on the Marketing Breadcrumbs page.
|
|
580
|
+
* The label is cut short of its page's title.
|
|
581
|
+
* @module
|
|
582
|
+
*/
|
|
583
|
+
import { Mini } from '../../../demos/Marketing/Breadcrumbs/Mini.js'
|
|
584
|
+
|
|
585
|
+
/** Renders the static preview, which the guideline card shows inert. */
|
|
586
|
+
export function Demo() {
|
|
587
|
+
return <Mini trail={['Partners', 'Wallets']} />
|
|
588
|
+
}
|
|
589
|
+
```
|
|
519
590
|
|
|
520
591
|
### Accessibility
|
|
521
592
|
|
|
@@ -527,15 +598,15 @@ Label each item with its page's title, such as Ramps & FX, and the `current` ite
|
|
|
527
598
|
|
|
528
599
|
[Link](/marketing/components/link)
|
|
529
600
|
|
|
530
|
-
Use for a link
|
|
601
|
+
Use for a link to a related page.
|
|
531
602
|
|
|
532
|
-
[
|
|
603
|
+
[States](/marketing/foundations/states)
|
|
533
604
|
|
|
534
|
-
|
|
605
|
+
Covers hover, press, and focus for every part.
|
|
535
606
|
|
|
536
607
|
[Provider](/marketing/templates/provider)
|
|
537
608
|
|
|
538
|
-
Covers the
|
|
609
|
+
Covers the directory template, whose pages below its index lead with a trail.
|
|
539
610
|
|
|
540
611
|
## Button
|
|
541
612
|
|
|
@@ -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.7.
|
|
5
|
+
npx -p @tempoxyz/ds@3.7.20261201043207 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.7.
|
|
15
|
+
href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.20261201043207/dist/document/document.css"
|
|
16
16
|
/>
|
|
17
17
|
<script
|
|
18
18
|
defer
|
|
19
|
-
src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.
|
|
19
|
+
src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.20261201043207/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.7.
|
|
5
|
+
npx -p @tempoxyz/ds@3.7.20261201043207 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.7.
|
|
15
|
+
href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.20261201043207/dist/document/document.css"
|
|
16
16
|
/>
|
|
17
17
|
<script
|
|
18
18
|
defer
|
|
19
|
-
src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.
|
|
19
|
+
src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.20261201043207/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.7.
|
|
5
|
+
npx -p @tempoxyz/ds@3.7.20261201043207 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.7.
|
|
15
|
+
href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.20261201043207/dist/document/document.css"
|
|
16
16
|
/>
|
|
17
17
|
<script
|
|
18
18
|
defer
|
|
19
|
-
src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.
|
|
19
|
+
src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@3.7.20261201043207/dist/document/script.js"
|
|
20
20
|
></script>
|
|
21
21
|
</head>
|
|
22
22
|
<body>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tempoxyz/ds",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.7.
|
|
4
|
+
"version": "3.7.20261201043207",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"DESIGN.md",
|
|
@@ -1533,5 +1533,5 @@
|
|
|
1533
1533
|
"main": "./dist/web/index.js",
|
|
1534
1534
|
"module": "./dist/web/index.js",
|
|
1535
1535
|
"types": "./dist/web/index.d.ts",
|
|
1536
|
-
"gitHead": "
|
|
1536
|
+
"gitHead": "83a8d6964a638f6a56785949c063c5b4be6b001c"
|
|
1537
1537
|
}
|