@tempoxyz/ds 0.3.14 → 0.3.16
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 +75 -10
- package/dist/docs/arsenal.md +44 -0
- package/dist/docs/{marketing/introduction/getting-started.md → marketing.md} +32 -24
- package/dist/docs/product/components/actions.md +2110 -0
- package/dist/docs/product/components/blockchain.md +3969 -0
- package/dist/docs/product/components/data-display.md +5901 -0
- package/dist/docs/product/components/feedback-and-status.md +4138 -0
- package/dist/docs/product/components/forms-and-inputs.md +10543 -0
- package/dist/docs/product/components/layout.md +3339 -0
- package/dist/docs/product/components/navigation.md +2914 -0
- package/dist/docs/product/components/overlays.md +4917 -0
- package/dist/docs/product/components.md +125 -125
- package/dist/docs/product/foundations.md +4597 -0
- package/dist/docs/product/patterns.md +10110 -0
- package/dist/marketing/index.js.zyzz.json +1 -1
- package/dist/marketing/vars.d.ts +618 -758
- package/dist/marketing/vars.d.ts.map +1 -1
- package/dist/marketing/vars.js +8 -5
- package/dist/marketing/vars.js.map +1 -1
- package/dist/marketing/vars.js.zyzz.json +1 -1
- package/dist/marketing/zyzz.config.d.ts +3042 -3757
- package/dist/marketing/zyzz.config.d.ts.map +1 -1
- package/dist/marketing/zyzz.config.js +1 -1
- package/dist/marketing/zyzz.config.js.map +1 -1
- package/dist/marketing/zyzz.config.js.zyzz.json +1 -1
- package/dist/mobile/components/Button.d.ts +115 -15
- package/dist/mobile/components/Button.d.ts.map +1 -1
- package/dist/mobile/components/Button.js +85 -14
- package/dist/mobile/components/Button.js.map +1 -1
- package/dist/mobile/components/IconButton.d.ts +129 -40
- package/dist/mobile/components/IconButton.d.ts.map +1 -1
- package/dist/mobile/components/IconButton.js +97 -28
- package/dist/mobile/components/IconButton.js.map +1 -1
- package/dist/mobile/components/TextInput.d.ts +132 -11
- package/dist/mobile/components/TextInput.d.ts.map +1 -1
- package/dist/mobile/components/TextInput.js +115 -14
- package/dist/mobile/components/TextInput.js.map +1 -1
- package/dist/mobile/index.d.ts +1 -0
- package/dist/mobile/index.d.ts.map +1 -1
- package/dist/mobile/index.js +1 -0
- package/dist/mobile/index.js.map +1 -1
- package/dist/mobile/vars.d.ts +103 -0
- package/dist/mobile/vars.d.ts.map +1 -1
- package/dist/mobile/vars.js +74 -0
- package/dist/mobile/vars.js.map +1 -1
- package/dist/mobile/zyzz.config.d.ts +408 -0
- package/dist/mobile/zyzz.config.d.ts.map +1 -1
- package/dist/web/components/AddressCard.js.zyzz.json +1 -1
- package/dist/web/components/Amount.css +1 -1
- package/dist/web/components/Amount.d.ts +9 -0
- package/dist/web/components/Amount.d.ts.map +1 -1
- package/dist/web/components/Amount.js +8 -5
- package/dist/web/components/Amount.js.map +1 -1
- package/dist/web/components/Amount.js.zyzz.json +1 -1
- package/dist/web/components/CopyButton.d.ts +6 -0
- package/dist/web/components/CopyButton.d.ts.map +1 -1
- package/dist/web/components/CopyButton.js +4 -1
- package/dist/web/components/CopyButton.js.map +1 -1
- package/dist/web/components/CopyButton.js.zyzz.json +1 -1
- package/dist/web/components/Hex.css +1 -1
- package/dist/web/components/Hex.d.ts +84 -3
- package/dist/web/components/Hex.d.ts.map +1 -1
- package/dist/web/components/Hex.js +20 -13
- package/dist/web/components/Hex.js.map +1 -1
- package/dist/web/components/Hex.js.zyzz.json +1 -1
- package/dist/web/components/Progress.css +1 -1
- package/dist/web/components/Progress.d.ts +12 -2
- package/dist/web/components/Progress.d.ts.map +1 -1
- package/dist/web/components/Progress.js +9 -5
- package/dist/web/components/Progress.js.map +1 -1
- package/dist/web/components/Progress.js.zyzz.json +1 -1
- package/dist/web/components/SecretValue.js.zyzz.json +1 -1
- package/dist/web/components/SidebarMenu.d.ts +4 -4
- package/dist/web/components/SidebarMenu.js +6 -6
- package/dist/web/components/SidebarMenu.js.map +1 -1
- package/dist/web/components/Snippet.js.zyzz.json +1 -1
- package/dist/web/index.js.zyzz.json +1 -1
- package/package.json +1 -1
- package/src/marketing/README.md +1 -1
- package/src/marketing/vars.ts +526 -604
- package/src/marketing/zyzz.config.ts +5 -4
- package/src/mobile/README.md +19 -6
- package/src/mobile/components/Button.tsx +94 -17
- package/src/mobile/components/IconButton.tsx +122 -30
- package/src/mobile/components/TextInput.tsx +139 -24
- package/src/mobile/index.ts +1 -0
- package/src/mobile/vars.ts +74 -0
- package/src/web/components/Amount.tsx +37 -3
- package/src/web/components/CopyButton.tsx +8 -0
- package/src/web/components/Hex.tsx +79 -13
- package/src/web/components/Progress.tsx +8 -2
- package/src/web/components/SidebarMenu.tsx +6 -6
- package/dist/docs/index.md +0 -145
- package/dist/docs/product/components/accordion.md +0 -489
- package/dist/docs/product/components/address-card.md +0 -147
- package/dist/docs/product/components/agent-logo.md +0 -194
- package/dist/docs/product/components/alert-dialog.md +0 -631
- package/dist/docs/product/components/alert.md +0 -448
- package/dist/docs/product/components/amount-input.md +0 -305
- package/dist/docs/product/components/amount.md +0 -794
- package/dist/docs/product/components/app-shell.md +0 -559
- package/dist/docs/product/components/asset-chip.md +0 -294
- package/dist/docs/product/components/autocomplete.md +0 -620
- package/dist/docs/product/components/avatar.md +0 -321
- package/dist/docs/product/components/badge.md +0 -339
- package/dist/docs/product/components/badged-logo.md +0 -116
- package/dist/docs/product/components/banner.md +0 -379
- package/dist/docs/product/components/bar-chart.md +0 -208
- package/dist/docs/product/components/breadcrumbs.md +0 -380
- package/dist/docs/product/components/button-group.md +0 -286
- package/dist/docs/product/components/button.md +0 -650
- package/dist/docs/product/components/calendar.md +0 -375
- package/dist/docs/product/components/callout.md +0 -96
- package/dist/docs/product/components/checkbox-group.md +0 -521
- package/dist/docs/product/components/checkbox.md +0 -467
- package/dist/docs/product/components/choice-group.md +0 -516
- package/dist/docs/product/components/choicebox.md +0 -641
- package/dist/docs/product/components/code.md +0 -100
- package/dist/docs/product/components/combobox.md +0 -939
- package/dist/docs/product/components/container.md +0 -257
- package/dist/docs/product/components/copy-button.md +0 -642
- package/dist/docs/product/components/date-picker.md +0 -514
- package/dist/docs/product/components/dialog.md +0 -1332
- package/dist/docs/product/components/drawer.md +0 -966
- package/dist/docs/product/components/empty.md +0 -340
- package/dist/docs/product/components/field.md +0 -570
- package/dist/docs/product/components/fieldset.md +0 -398
- package/dist/docs/product/components/frame.md +0 -434
- package/dist/docs/product/components/gauge.md +0 -299
- package/dist/docs/product/components/get-started-visual.md +0 -117
- package/dist/docs/product/components/grid.md +0 -288
- package/dist/docs/product/components/hero-visual.md +0 -155
- package/dist/docs/product/components/hex.md +0 -487
- package/dist/docs/product/components/icon-tile.md +0 -292
- package/dist/docs/product/components/identicon.md +0 -371
- package/dist/docs/product/components/inline.md +0 -233
- package/dist/docs/product/components/inset.md +0 -225
- package/dist/docs/product/components/kbd.md +0 -423
- package/dist/docs/product/components/list-group.md +0 -981
- package/dist/docs/product/components/loading-dots.md +0 -237
- package/dist/docs/product/components/menu.md +0 -934
- package/dist/docs/product/components/native-select.md +0 -204
- package/dist/docs/product/components/network-logo.md +0 -248
- package/dist/docs/product/components/number-field.md +0 -543
- package/dist/docs/product/components/otp-field.md +0 -616
- package/dist/docs/product/components/pagination.md +0 -516
- package/dist/docs/product/components/popover.md +0 -544
- package/dist/docs/product/components/progress.md +0 -388
- package/dist/docs/product/components/qr.md +0 -314
- package/dist/docs/product/components/radio-group.md +0 -528
- package/dist/docs/product/components/secret-value.md +0 -406
- package/dist/docs/product/components/select.md +0 -751
- package/dist/docs/product/components/separator.md +0 -379
- package/dist/docs/product/components/sidebar-menu.md +0 -922
- package/dist/docs/product/components/skeleton.md +0 -517
- package/dist/docs/product/components/slider.md +0 -539
- package/dist/docs/product/components/snippet.md +0 -424
- package/dist/docs/product/components/spinner.md +0 -216
- package/dist/docs/product/components/split-bar.md +0 -139
- package/dist/docs/product/components/split-button.md +0 -464
- package/dist/docs/product/components/stack.md +0 -299
- package/dist/docs/product/components/status-chip.md +0 -226
- package/dist/docs/product/components/status-indicator.md +0 -119
- package/dist/docs/product/components/status-row.md +0 -174
- package/dist/docs/product/components/stepper.md +0 -451
- package/dist/docs/product/components/success-hero.md +0 -157
- package/dist/docs/product/components/surface.md +0 -639
- package/dist/docs/product/components/switch.md +0 -472
- package/dist/docs/product/components/table.md +0 -968
- package/dist/docs/product/components/tabs.md +0 -627
- package/dist/docs/product/components/tempo-logo.md +0 -185
- package/dist/docs/product/components/text-input.md +0 -624
- package/dist/docs/product/components/textarea.md +0 -352
- package/dist/docs/product/components/toast.md +0 -535
- package/dist/docs/product/components/token-logo.md +0 -371
- package/dist/docs/product/components/token.md +0 -247
- package/dist/docs/product/components/tooltip.md +0 -490
- package/dist/docs/product/components/verification-code.md +0 -116
- package/dist/docs/product/components/visual.md +0 -249
- package/dist/docs/product/foundations/accessibility.md +0 -377
- package/dist/docs/product/foundations/agents.md +0 -159
- package/dist/docs/product/foundations/color.md +0 -522
- package/dist/docs/product/foundations/content/tone.md +0 -194
- package/dist/docs/product/foundations/content/voice.md +0 -194
- package/dist/docs/product/foundations/content/writing-style.md +0 -406
- package/dist/docs/product/foundations/iconography.md +0 -282
- package/dist/docs/product/foundations/intent.md +0 -360
- package/dist/docs/product/foundations/layout.md +0 -508
- package/dist/docs/product/foundations/linter.md +0 -523
- package/dist/docs/product/foundations/motion.md +0 -151
- package/dist/docs/product/foundations/radius-and-padding.md +0 -86
- package/dist/docs/product/foundations/typography.md +0 -331
- package/dist/docs/product/introduction/faq.md +0 -133
- package/dist/docs/product/introduction/getting-started.md +0 -377
- package/dist/docs/product/patterns/blockchain-values.md +0 -709
- package/dist/docs/product/patterns/dashboards.md +0 -638
- package/dist/docs/product/patterns/destructive-actions.md +0 -626
- package/dist/docs/product/patterns/empty-states.md +0 -612
- package/dist/docs/product/patterns/errors-and-validation.md +0 -808
- package/dist/docs/product/patterns/feedback-and-status.md +0 -518
- package/dist/docs/product/patterns/forms.md +0 -679
- package/dist/docs/product/patterns/loading.md +0 -630
- package/dist/docs/product/patterns/navigation.md +0 -397
- package/dist/docs/product/patterns/payments.md +0 -765
- package/dist/docs/product/patterns/responsive-layout.md +0 -997
- package/dist/docs/product/patterns/tables-and-lists.md +0 -1170
- package/dist/docs/product/products/tempo-console.md +0 -671
- package/dist/docs/product/products/tempo-performance.md +0 -435
- package/dist/docs/product/products/tempo-wallet.md +0 -438
|
@@ -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.
|