@tempoxyz/ds 0.3.14 → 0.3.15

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 (131) hide show
  1. package/dist/docs/AGENTS.md +73 -10
  2. package/dist/docs/{marketing/introduction/getting-started.md → marketing.md} +28 -20
  3. package/dist/docs/product/components/actions.md +2058 -0
  4. package/dist/docs/product/components/blockchain.md +3825 -0
  5. package/dist/docs/product/components/data-display.md +5901 -0
  6. package/dist/docs/product/components/feedback-and-status.md +4008 -0
  7. package/dist/docs/product/components/forms-and-inputs.md +10543 -0
  8. package/dist/docs/product/components/layout.md +3339 -0
  9. package/dist/docs/product/components/navigation.md +2914 -0
  10. package/dist/docs/product/components/overlays.md +4917 -0
  11. package/dist/docs/product/components.md +125 -125
  12. package/dist/docs/product/foundations.md +4596 -0
  13. package/dist/docs/product/patterns.md +10129 -0
  14. package/package.json +1 -1
  15. package/dist/docs/index.md +0 -145
  16. package/dist/docs/product/components/accordion.md +0 -489
  17. package/dist/docs/product/components/address-card.md +0 -147
  18. package/dist/docs/product/components/agent-logo.md +0 -194
  19. package/dist/docs/product/components/alert-dialog.md +0 -631
  20. package/dist/docs/product/components/alert.md +0 -448
  21. package/dist/docs/product/components/amount-input.md +0 -305
  22. package/dist/docs/product/components/amount.md +0 -794
  23. package/dist/docs/product/components/app-shell.md +0 -559
  24. package/dist/docs/product/components/asset-chip.md +0 -294
  25. package/dist/docs/product/components/autocomplete.md +0 -620
  26. package/dist/docs/product/components/avatar.md +0 -321
  27. package/dist/docs/product/components/badge.md +0 -339
  28. package/dist/docs/product/components/badged-logo.md +0 -116
  29. package/dist/docs/product/components/banner.md +0 -379
  30. package/dist/docs/product/components/bar-chart.md +0 -208
  31. package/dist/docs/product/components/breadcrumbs.md +0 -380
  32. package/dist/docs/product/components/button-group.md +0 -286
  33. package/dist/docs/product/components/button.md +0 -650
  34. package/dist/docs/product/components/calendar.md +0 -375
  35. package/dist/docs/product/components/callout.md +0 -96
  36. package/dist/docs/product/components/checkbox-group.md +0 -521
  37. package/dist/docs/product/components/checkbox.md +0 -467
  38. package/dist/docs/product/components/choice-group.md +0 -516
  39. package/dist/docs/product/components/choicebox.md +0 -641
  40. package/dist/docs/product/components/code.md +0 -100
  41. package/dist/docs/product/components/combobox.md +0 -939
  42. package/dist/docs/product/components/container.md +0 -257
  43. package/dist/docs/product/components/copy-button.md +0 -642
  44. package/dist/docs/product/components/date-picker.md +0 -514
  45. package/dist/docs/product/components/dialog.md +0 -1332
  46. package/dist/docs/product/components/drawer.md +0 -966
  47. package/dist/docs/product/components/empty.md +0 -340
  48. package/dist/docs/product/components/field.md +0 -570
  49. package/dist/docs/product/components/fieldset.md +0 -398
  50. package/dist/docs/product/components/frame.md +0 -434
  51. package/dist/docs/product/components/gauge.md +0 -299
  52. package/dist/docs/product/components/get-started-visual.md +0 -117
  53. package/dist/docs/product/components/grid.md +0 -288
  54. package/dist/docs/product/components/hero-visual.md +0 -155
  55. package/dist/docs/product/components/hex.md +0 -487
  56. package/dist/docs/product/components/icon-tile.md +0 -292
  57. package/dist/docs/product/components/identicon.md +0 -371
  58. package/dist/docs/product/components/inline.md +0 -233
  59. package/dist/docs/product/components/inset.md +0 -225
  60. package/dist/docs/product/components/kbd.md +0 -423
  61. package/dist/docs/product/components/list-group.md +0 -981
  62. package/dist/docs/product/components/loading-dots.md +0 -237
  63. package/dist/docs/product/components/menu.md +0 -934
  64. package/dist/docs/product/components/native-select.md +0 -204
  65. package/dist/docs/product/components/network-logo.md +0 -248
  66. package/dist/docs/product/components/number-field.md +0 -543
  67. package/dist/docs/product/components/otp-field.md +0 -616
  68. package/dist/docs/product/components/pagination.md +0 -516
  69. package/dist/docs/product/components/popover.md +0 -544
  70. package/dist/docs/product/components/progress.md +0 -388
  71. package/dist/docs/product/components/qr.md +0 -314
  72. package/dist/docs/product/components/radio-group.md +0 -528
  73. package/dist/docs/product/components/secret-value.md +0 -406
  74. package/dist/docs/product/components/select.md +0 -751
  75. package/dist/docs/product/components/separator.md +0 -379
  76. package/dist/docs/product/components/sidebar-menu.md +0 -922
  77. package/dist/docs/product/components/skeleton.md +0 -517
  78. package/dist/docs/product/components/slider.md +0 -539
  79. package/dist/docs/product/components/snippet.md +0 -424
  80. package/dist/docs/product/components/spinner.md +0 -216
  81. package/dist/docs/product/components/split-bar.md +0 -139
  82. package/dist/docs/product/components/split-button.md +0 -464
  83. package/dist/docs/product/components/stack.md +0 -299
  84. package/dist/docs/product/components/status-chip.md +0 -226
  85. package/dist/docs/product/components/status-indicator.md +0 -119
  86. package/dist/docs/product/components/status-row.md +0 -174
  87. package/dist/docs/product/components/stepper.md +0 -451
  88. package/dist/docs/product/components/success-hero.md +0 -157
  89. package/dist/docs/product/components/surface.md +0 -639
  90. package/dist/docs/product/components/switch.md +0 -472
  91. package/dist/docs/product/components/table.md +0 -968
  92. package/dist/docs/product/components/tabs.md +0 -627
  93. package/dist/docs/product/components/tempo-logo.md +0 -185
  94. package/dist/docs/product/components/text-input.md +0 -624
  95. package/dist/docs/product/components/textarea.md +0 -352
  96. package/dist/docs/product/components/toast.md +0 -535
  97. package/dist/docs/product/components/token-logo.md +0 -371
  98. package/dist/docs/product/components/token.md +0 -247
  99. package/dist/docs/product/components/tooltip.md +0 -490
  100. package/dist/docs/product/components/verification-code.md +0 -116
  101. package/dist/docs/product/components/visual.md +0 -249
  102. package/dist/docs/product/foundations/accessibility.md +0 -377
  103. package/dist/docs/product/foundations/agents.md +0 -159
  104. package/dist/docs/product/foundations/color.md +0 -522
  105. package/dist/docs/product/foundations/content/tone.md +0 -194
  106. package/dist/docs/product/foundations/content/voice.md +0 -194
  107. package/dist/docs/product/foundations/content/writing-style.md +0 -406
  108. package/dist/docs/product/foundations/iconography.md +0 -282
  109. package/dist/docs/product/foundations/intent.md +0 -360
  110. package/dist/docs/product/foundations/layout.md +0 -508
  111. package/dist/docs/product/foundations/linter.md +0 -523
  112. package/dist/docs/product/foundations/motion.md +0 -151
  113. package/dist/docs/product/foundations/radius-and-padding.md +0 -86
  114. package/dist/docs/product/foundations/typography.md +0 -331
  115. package/dist/docs/product/introduction/faq.md +0 -133
  116. package/dist/docs/product/introduction/getting-started.md +0 -377
  117. package/dist/docs/product/patterns/blockchain-values.md +0 -709
  118. package/dist/docs/product/patterns/dashboards.md +0 -638
  119. package/dist/docs/product/patterns/destructive-actions.md +0 -626
  120. package/dist/docs/product/patterns/empty-states.md +0 -612
  121. package/dist/docs/product/patterns/errors-and-validation.md +0 -808
  122. package/dist/docs/product/patterns/feedback-and-status.md +0 -518
  123. package/dist/docs/product/patterns/forms.md +0 -679
  124. package/dist/docs/product/patterns/loading.md +0 -630
  125. package/dist/docs/product/patterns/navigation.md +0 -397
  126. package/dist/docs/product/patterns/payments.md +0 -765
  127. package/dist/docs/product/patterns/responsive-layout.md +0 -997
  128. package/dist/docs/product/patterns/tables-and-lists.md +0 -1170
  129. package/dist/docs/product/products/tempo-console.md +0 -671
  130. package/dist/docs/product/products/tempo-performance.md +0 -435
  131. package/dist/docs/product/products/tempo-wallet.md +0 -438
@@ -1,147 +0,0 @@
1
- # AddressCard
2
-
3
- Shows a wallet address to receive funds, with its QR code and networks.
4
-
5
- [View source and API](https://github.com/tempoxyz/ds/blob/main/src/web/components/AddressCard.tsx)
6
-
7
- Figma: [Content/Address Card](https://www.figma.com/design/yE96kcymnNR88PJp6G1sPs?node-id=5227-4005)
8
-
9
- ## Overview
10
-
11
- An address card renders a bordered receive card. A QR code of the address sits beside the shortened address, a copy button, and the networks that the address accepts.
12
-
13
- ## Examples
14
-
15
- ### Basic
16
-
17
- Pass the full `address`. The card shows its first and last four characters.
18
-
19
- ```tsx
20
- /** Demonstrates AddressCard in the documentation. @module */
21
- import { AddressCard, style } from '@tempoxyz/ds'
22
-
23
- export function Demo() {
24
- return (
25
- <div {...styles.frame()}>
26
- <AddressCard address="0x7a3f2c9b1e4d8a6f0c5b3e7d9a1f4c8e2b6d91c2" />
27
- </div>
28
- )
29
- }
30
-
31
- namespace styles {
32
- export const frame = style({ maxWidth: '28.75rem !custom', width: '100% !custom' })
33
- }
34
- ```
35
-
36
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/AddressCard/Basic.tsx)
37
-
38
- ### Networks
39
-
40
- Add `AddressCard.Networks` with one `AddressCard.Network` per network. Set `selected` on the picked one.
41
-
42
- ```tsx
43
- /** Demonstrates AddressCard in the documentation. @module */
44
- import { AddressCard, style } from '@tempoxyz/ds'
45
-
46
- export function Demo() {
47
- return (
48
- <div {...styles.frame()}>
49
- <AddressCard address="0x7a3f2c9b1e4d8a6f0c5b3e7d9a1f4c8e2b6d91c2">
50
- <AddressCard.Networks>
51
- <AddressCard.Network network="ethereum" selected>
52
- Ethereum
53
- </AddressCard.Network>
54
- <AddressCard.Network network="base">Base</AddressCard.Network>
55
- <AddressCard.Network network="solana">Solana</AddressCard.Network>
56
- <AddressCard.Network network="tempo">Tempo</AddressCard.Network>
57
- </AddressCard.Networks>
58
- </AddressCard>
59
- </div>
60
- )
61
- }
62
-
63
- namespace styles {
64
- export const frame = style({ maxWidth: '28.75rem !custom', width: '100% !custom' })
65
- }
66
- ```
67
-
68
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/AddressCard/Networks.tsx)
69
-
70
- ## Anatomy
71
-
72
- Import the component and assemble its parts.
73
-
74
- ```tsx
75
- import { AddressCard } from '@tempoxyz/ds'
76
-
77
- <AddressCard>
78
- <AddressCard.Networks>
79
- <AddressCard.Network />
80
- </AddressCard.Networks>
81
- </AddressCard>
82
- ```
83
-
84
- ## Guidelines
85
-
86
- ### When to Use
87
-
88
- * Show the address that a person sends funds to, such as on a deposit screen.
89
- * Let a person scan the address from another device or copy it.
90
-
91
- ### When Not to Use
92
-
93
- * Use [Hex](hex.md) for an address inside a row or a sentence.
94
- * Use [Qr](qr.md) alone for a code that encodes something other than an address.
95
-
96
- ### List Only the Accepted Networks
97
-
98
- **Do:** List the networks that the address accepts.
99
-
100
- ```tsx
101
- <AddressCard address="0x7a3f2c9b1e4d8a6f0c5b3e7d9a1f4c8e2b6d91c2">
102
- <AddressCard.Networks>
103
- <AddressCard.Network network="tempo" selected>
104
- Tempo
105
- </AddressCard.Network>
106
- <AddressCard.Network network="base">Base</AddressCard.Network>
107
- </AddressCard.Networks>
108
- </AddressCard>
109
- ```
110
-
111
- **Don't:** Leave out the networks when the address accepts only some of them.
112
-
113
- ```tsx
114
- <AddressCard address="0x7a3f2c9b1e4d8a6f0c5b3e7d9a1f4c8e2b6d91c2" />
115
- ```
116
-
117
- ### Keep the Full Address
118
-
119
- Pass the whole address. The card shortens the text, and the copy button and QR code use the full value.
120
-
121
- ## Content
122
-
123
- * **Label:** Name the address from the reader's view, such as Your wallet address.
124
- * **Networks:** Name each network as its brand does, such as Ethereum or Base.
125
-
126
- ## Accessibility
127
-
128
- The card renders a `<div>` with no role. Screen readers read the full address, the named QR code, the copy button, and the network group.
129
-
130
- * **Address (Full value):** Screen readers read every character, not the shortened text.
131
- * **Copy (button):** The copy button announces Copied after a copy.
132
- * **Networks (group):** The label names the group of network chips.
133
- * **Pick a Network (aria-pressed):** A chip with an onClick announces its selected state.
134
-
135
- ## Related
136
-
137
- [Hex](hex.md)
138
-
139
- Use for an address inside a row or a sentence.
140
-
141
- [Qr](qr.md)
142
-
143
- Use for a QR code of another value.
144
-
145
- [AssetChip](asset-chip.md)
146
-
147
- Use for the chips of supported assets.
@@ -1,194 +0,0 @@
1
- # AgentLogo
2
-
3
- Shows the logo of an AI agent that works with a wallet.
4
-
5
- [View source and API](https://github.com/tempoxyz/ds/blob/main/src/web/components/AgentLogo.tsx)
6
-
7
- ## Overview
8
-
9
- An agent logo renders an agent's mark on a small rounded tile. A brand tile fills with the agent's color, and an outlined tile keeps the mark in its own colors on the surface.
10
-
11
- ## Examples
12
-
13
- ### Basic
14
-
15
- ```tsx
16
- import { AgentLogo, style } from '@tempoxyz/ds'
17
-
18
- export function Demo() {
19
- return (
20
- <div {...styles.row()}>
21
- <AgentLogo agent="claude" />
22
- Claude
23
- </div>
24
- )
25
- }
26
-
27
- namespace styles {
28
- export const row = style({ alignItems: 'center', display: 'flex', gap: '8' })
29
- }
30
- ```
31
-
32
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/AgentLogo/Basic.tsx)
33
-
34
- ### Agent
35
-
36
- Set `agent` to `amp`, `claude`, `cli`, `codex`, `cursor`, `gemini`, `muse`, or `opencode`.
37
-
38
- ```tsx
39
- import { AgentLogo, style } from '@tempoxyz/ds'
40
-
41
- const agents = [
42
- ['amp', 'Amp'],
43
- ['claude', 'Claude'],
44
- ['cli', 'CLI'],
45
- ['codex', 'Codex'],
46
- ['cursor', 'Cursor'],
47
- ['gemini', 'Gemini'],
48
- ['muse', 'Muse'],
49
- ['opencode', 'OpenCode'],
50
- ] as const
51
-
52
- export function Demo() {
53
- return (
54
- <div {...styles.grid()}>
55
- {agents.map(([agent, label]) => (
56
- <div key={agent} {...styles.row()}>
57
- <AgentLogo agent={agent} />
58
- {label}
59
- </div>
60
- ))}
61
- </div>
62
- )
63
- }
64
-
65
- namespace styles {
66
- export const grid = style({
67
- display: 'grid',
68
- gap: '12',
69
- gridTemplateColumns: 'repeat(4, max-content)',
70
- })
71
-
72
- export const row = style({ alignItems: 'center', display: 'flex', gap: '8' })
73
- }
74
- ```
75
-
76
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/AgentLogo/Agent.tsx)
77
-
78
- ### Size
79
-
80
- Set `size` to `24` (default) or `28`.
81
-
82
- ```tsx
83
- import { AgentLogo, style } from '@tempoxyz/ds'
84
-
85
- export function Demo() {
86
- return (
87
- <div {...styles.row()}>
88
- <AgentLogo agent="codex" />
89
- <AgentLogo agent="codex" size="28" />
90
- </div>
91
- )
92
- }
93
-
94
- namespace styles {
95
- export const row = style({ alignItems: 'center', display: 'flex', gap: '12' })
96
- }
97
- ```
98
-
99
- [View example source](https://github.com/tempoxyz/ds/blob/main/docs/src/examples/demos/AgentLogo/Size.tsx)
100
-
101
- ## Anatomy
102
-
103
- Import the component and assemble its parts.
104
-
105
- ```tsx
106
- import { AgentLogo } from '@tempoxyz/ds'
107
-
108
- <AgentLogo />
109
- ```
110
-
111
- ## Guidelines
112
-
113
- ### When to Use
114
-
115
- * Show which agent spends from a wallet, such as in a list of authorized agents.
116
- * Mark the agent of a request that needs approval.
117
-
118
- ### When Not to Use
119
-
120
- * Use [Avatar](avatar.md) for a person or an account.
121
- * Use [TokenLogo](token-logo.md) for a token, and [NetworkLogo](network-logo.md) for a network.
122
-
123
- ### Name the Agent
124
-
125
- **Do:** Show the agent name beside each logo.
126
-
127
- ```tsx
128
- import { AgentLogo, ListGroup } from '@tempoxyz/ds'
129
-
130
- export function Demo() {
131
- return (
132
- <ListGroup variant="boxed">
133
- <ListGroup.Row>
134
- <AgentLogo agent="claude" />
135
- <ListGroup.Info>
136
- <ListGroup.Title>Claude</ListGroup.Title>
137
- <ListGroup.Description>$10.00 a month</ListGroup.Description>
138
- </ListGroup.Info>
139
- </ListGroup.Row>
140
- </ListGroup>
141
- )
142
- }
143
- ```
144
-
145
- **Don't:** Ask people to tell agents apart by logo alone.
146
-
147
- ```tsx
148
- import { AgentLogo, ListGroup } from '@tempoxyz/ds'
149
-
150
- export function Demo() {
151
- return (
152
- <ListGroup variant="boxed">
153
- <ListGroup.Row>
154
- <AgentLogo agent="claude" />
155
- <ListGroup.Info>
156
- <ListGroup.Title>$10.00 a month</ListGroup.Title>
157
- </ListGroup.Info>
158
- </ListGroup.Row>
159
- </ListGroup>
160
- )
161
- }
162
- ```
163
-
164
- ### Match Size to the Context
165
-
166
- * **24 (24px):** In rows, legends, and approval requests.
167
- * **28 (28px):** Where the agent leads a section or a page.
168
-
169
- ## Accessibility
170
-
171
- An agent logo renders a `<span>` that is hidden from screen readers by default. It is not interactive and takes no focus.
172
-
173
- ### Semantics
174
-
175
- * **Root (aria-hidden):** Hidden from screen readers, so the visible name beside it is read once.
176
- * **Named Logo (aria-label):** An `aria-label` gives the logo the `img` role, so screen readers announce it.
177
-
178
- ### Your Responsibilities
179
-
180
- * **Name a Standalone Logo (aria-label):** If no visible text names the agent, pass the agent name as `aria-label`.
181
-
182
- ## Related
183
-
184
- [Avatar](avatar.md)
185
-
186
- Use for people and accounts.
187
-
188
- [ListGroup](list-group.md)
189
-
190
- Use for lists of agents.
191
-
192
- [BarChart](bar-chart.md)
193
-
194
- Use for the spend of each agent over time.