@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.
Files changed (209) hide show
  1. package/dist/docs/AGENTS.md +75 -10
  2. package/dist/docs/arsenal.md +44 -0
  3. package/dist/docs/{marketing/introduction/getting-started.md → marketing.md} +32 -24
  4. package/dist/docs/product/components/actions.md +2110 -0
  5. package/dist/docs/product/components/blockchain.md +3969 -0
  6. package/dist/docs/product/components/data-display.md +5901 -0
  7. package/dist/docs/product/components/feedback-and-status.md +4138 -0
  8. package/dist/docs/product/components/forms-and-inputs.md +10543 -0
  9. package/dist/docs/product/components/layout.md +3339 -0
  10. package/dist/docs/product/components/navigation.md +2914 -0
  11. package/dist/docs/product/components/overlays.md +4917 -0
  12. package/dist/docs/product/components.md +125 -125
  13. package/dist/docs/product/foundations.md +4597 -0
  14. package/dist/docs/product/patterns.md +10110 -0
  15. package/dist/marketing/index.js.zyzz.json +1 -1
  16. package/dist/marketing/vars.d.ts +618 -758
  17. package/dist/marketing/vars.d.ts.map +1 -1
  18. package/dist/marketing/vars.js +8 -5
  19. package/dist/marketing/vars.js.map +1 -1
  20. package/dist/marketing/vars.js.zyzz.json +1 -1
  21. package/dist/marketing/zyzz.config.d.ts +3042 -3757
  22. package/dist/marketing/zyzz.config.d.ts.map +1 -1
  23. package/dist/marketing/zyzz.config.js +1 -1
  24. package/dist/marketing/zyzz.config.js.map +1 -1
  25. package/dist/marketing/zyzz.config.js.zyzz.json +1 -1
  26. package/dist/mobile/components/Button.d.ts +115 -15
  27. package/dist/mobile/components/Button.d.ts.map +1 -1
  28. package/dist/mobile/components/Button.js +85 -14
  29. package/dist/mobile/components/Button.js.map +1 -1
  30. package/dist/mobile/components/IconButton.d.ts +129 -40
  31. package/dist/mobile/components/IconButton.d.ts.map +1 -1
  32. package/dist/mobile/components/IconButton.js +97 -28
  33. package/dist/mobile/components/IconButton.js.map +1 -1
  34. package/dist/mobile/components/TextInput.d.ts +132 -11
  35. package/dist/mobile/components/TextInput.d.ts.map +1 -1
  36. package/dist/mobile/components/TextInput.js +115 -14
  37. package/dist/mobile/components/TextInput.js.map +1 -1
  38. package/dist/mobile/index.d.ts +1 -0
  39. package/dist/mobile/index.d.ts.map +1 -1
  40. package/dist/mobile/index.js +1 -0
  41. package/dist/mobile/index.js.map +1 -1
  42. package/dist/mobile/vars.d.ts +103 -0
  43. package/dist/mobile/vars.d.ts.map +1 -1
  44. package/dist/mobile/vars.js +74 -0
  45. package/dist/mobile/vars.js.map +1 -1
  46. package/dist/mobile/zyzz.config.d.ts +408 -0
  47. package/dist/mobile/zyzz.config.d.ts.map +1 -1
  48. package/dist/web/components/AddressCard.js.zyzz.json +1 -1
  49. package/dist/web/components/Amount.css +1 -1
  50. package/dist/web/components/Amount.d.ts +9 -0
  51. package/dist/web/components/Amount.d.ts.map +1 -1
  52. package/dist/web/components/Amount.js +8 -5
  53. package/dist/web/components/Amount.js.map +1 -1
  54. package/dist/web/components/Amount.js.zyzz.json +1 -1
  55. package/dist/web/components/CopyButton.d.ts +6 -0
  56. package/dist/web/components/CopyButton.d.ts.map +1 -1
  57. package/dist/web/components/CopyButton.js +4 -1
  58. package/dist/web/components/CopyButton.js.map +1 -1
  59. package/dist/web/components/CopyButton.js.zyzz.json +1 -1
  60. package/dist/web/components/Hex.css +1 -1
  61. package/dist/web/components/Hex.d.ts +84 -3
  62. package/dist/web/components/Hex.d.ts.map +1 -1
  63. package/dist/web/components/Hex.js +20 -13
  64. package/dist/web/components/Hex.js.map +1 -1
  65. package/dist/web/components/Hex.js.zyzz.json +1 -1
  66. package/dist/web/components/Progress.css +1 -1
  67. package/dist/web/components/Progress.d.ts +12 -2
  68. package/dist/web/components/Progress.d.ts.map +1 -1
  69. package/dist/web/components/Progress.js +9 -5
  70. package/dist/web/components/Progress.js.map +1 -1
  71. package/dist/web/components/Progress.js.zyzz.json +1 -1
  72. package/dist/web/components/SecretValue.js.zyzz.json +1 -1
  73. package/dist/web/components/SidebarMenu.d.ts +4 -4
  74. package/dist/web/components/SidebarMenu.js +6 -6
  75. package/dist/web/components/SidebarMenu.js.map +1 -1
  76. package/dist/web/components/Snippet.js.zyzz.json +1 -1
  77. package/dist/web/index.js.zyzz.json +1 -1
  78. package/package.json +1 -1
  79. package/src/marketing/README.md +1 -1
  80. package/src/marketing/vars.ts +526 -604
  81. package/src/marketing/zyzz.config.ts +5 -4
  82. package/src/mobile/README.md +19 -6
  83. package/src/mobile/components/Button.tsx +94 -17
  84. package/src/mobile/components/IconButton.tsx +122 -30
  85. package/src/mobile/components/TextInput.tsx +139 -24
  86. package/src/mobile/index.ts +1 -0
  87. package/src/mobile/vars.ts +74 -0
  88. package/src/web/components/Amount.tsx +37 -3
  89. package/src/web/components/CopyButton.tsx +8 -0
  90. package/src/web/components/Hex.tsx +79 -13
  91. package/src/web/components/Progress.tsx +8 -2
  92. package/src/web/components/SidebarMenu.tsx +6 -6
  93. package/dist/docs/index.md +0 -145
  94. package/dist/docs/product/components/accordion.md +0 -489
  95. package/dist/docs/product/components/address-card.md +0 -147
  96. package/dist/docs/product/components/agent-logo.md +0 -194
  97. package/dist/docs/product/components/alert-dialog.md +0 -631
  98. package/dist/docs/product/components/alert.md +0 -448
  99. package/dist/docs/product/components/amount-input.md +0 -305
  100. package/dist/docs/product/components/amount.md +0 -794
  101. package/dist/docs/product/components/app-shell.md +0 -559
  102. package/dist/docs/product/components/asset-chip.md +0 -294
  103. package/dist/docs/product/components/autocomplete.md +0 -620
  104. package/dist/docs/product/components/avatar.md +0 -321
  105. package/dist/docs/product/components/badge.md +0 -339
  106. package/dist/docs/product/components/badged-logo.md +0 -116
  107. package/dist/docs/product/components/banner.md +0 -379
  108. package/dist/docs/product/components/bar-chart.md +0 -208
  109. package/dist/docs/product/components/breadcrumbs.md +0 -380
  110. package/dist/docs/product/components/button-group.md +0 -286
  111. package/dist/docs/product/components/button.md +0 -650
  112. package/dist/docs/product/components/calendar.md +0 -375
  113. package/dist/docs/product/components/callout.md +0 -96
  114. package/dist/docs/product/components/checkbox-group.md +0 -521
  115. package/dist/docs/product/components/checkbox.md +0 -467
  116. package/dist/docs/product/components/choice-group.md +0 -516
  117. package/dist/docs/product/components/choicebox.md +0 -641
  118. package/dist/docs/product/components/code.md +0 -100
  119. package/dist/docs/product/components/combobox.md +0 -939
  120. package/dist/docs/product/components/container.md +0 -257
  121. package/dist/docs/product/components/copy-button.md +0 -642
  122. package/dist/docs/product/components/date-picker.md +0 -514
  123. package/dist/docs/product/components/dialog.md +0 -1332
  124. package/dist/docs/product/components/drawer.md +0 -966
  125. package/dist/docs/product/components/empty.md +0 -340
  126. package/dist/docs/product/components/field.md +0 -570
  127. package/dist/docs/product/components/fieldset.md +0 -398
  128. package/dist/docs/product/components/frame.md +0 -434
  129. package/dist/docs/product/components/gauge.md +0 -299
  130. package/dist/docs/product/components/get-started-visual.md +0 -117
  131. package/dist/docs/product/components/grid.md +0 -288
  132. package/dist/docs/product/components/hero-visual.md +0 -155
  133. package/dist/docs/product/components/hex.md +0 -487
  134. package/dist/docs/product/components/icon-tile.md +0 -292
  135. package/dist/docs/product/components/identicon.md +0 -371
  136. package/dist/docs/product/components/inline.md +0 -233
  137. package/dist/docs/product/components/inset.md +0 -225
  138. package/dist/docs/product/components/kbd.md +0 -423
  139. package/dist/docs/product/components/list-group.md +0 -981
  140. package/dist/docs/product/components/loading-dots.md +0 -237
  141. package/dist/docs/product/components/menu.md +0 -934
  142. package/dist/docs/product/components/native-select.md +0 -204
  143. package/dist/docs/product/components/network-logo.md +0 -248
  144. package/dist/docs/product/components/number-field.md +0 -543
  145. package/dist/docs/product/components/otp-field.md +0 -616
  146. package/dist/docs/product/components/pagination.md +0 -516
  147. package/dist/docs/product/components/popover.md +0 -544
  148. package/dist/docs/product/components/progress.md +0 -388
  149. package/dist/docs/product/components/qr.md +0 -314
  150. package/dist/docs/product/components/radio-group.md +0 -528
  151. package/dist/docs/product/components/secret-value.md +0 -406
  152. package/dist/docs/product/components/select.md +0 -751
  153. package/dist/docs/product/components/separator.md +0 -379
  154. package/dist/docs/product/components/sidebar-menu.md +0 -922
  155. package/dist/docs/product/components/skeleton.md +0 -517
  156. package/dist/docs/product/components/slider.md +0 -539
  157. package/dist/docs/product/components/snippet.md +0 -424
  158. package/dist/docs/product/components/spinner.md +0 -216
  159. package/dist/docs/product/components/split-bar.md +0 -139
  160. package/dist/docs/product/components/split-button.md +0 -464
  161. package/dist/docs/product/components/stack.md +0 -299
  162. package/dist/docs/product/components/status-chip.md +0 -226
  163. package/dist/docs/product/components/status-indicator.md +0 -119
  164. package/dist/docs/product/components/status-row.md +0 -174
  165. package/dist/docs/product/components/stepper.md +0 -451
  166. package/dist/docs/product/components/success-hero.md +0 -157
  167. package/dist/docs/product/components/surface.md +0 -639
  168. package/dist/docs/product/components/switch.md +0 -472
  169. package/dist/docs/product/components/table.md +0 -968
  170. package/dist/docs/product/components/tabs.md +0 -627
  171. package/dist/docs/product/components/tempo-logo.md +0 -185
  172. package/dist/docs/product/components/text-input.md +0 -624
  173. package/dist/docs/product/components/textarea.md +0 -352
  174. package/dist/docs/product/components/toast.md +0 -535
  175. package/dist/docs/product/components/token-logo.md +0 -371
  176. package/dist/docs/product/components/token.md +0 -247
  177. package/dist/docs/product/components/tooltip.md +0 -490
  178. package/dist/docs/product/components/verification-code.md +0 -116
  179. package/dist/docs/product/components/visual.md +0 -249
  180. package/dist/docs/product/foundations/accessibility.md +0 -377
  181. package/dist/docs/product/foundations/agents.md +0 -159
  182. package/dist/docs/product/foundations/color.md +0 -522
  183. package/dist/docs/product/foundations/content/tone.md +0 -194
  184. package/dist/docs/product/foundations/content/voice.md +0 -194
  185. package/dist/docs/product/foundations/content/writing-style.md +0 -406
  186. package/dist/docs/product/foundations/iconography.md +0 -282
  187. package/dist/docs/product/foundations/intent.md +0 -360
  188. package/dist/docs/product/foundations/layout.md +0 -508
  189. package/dist/docs/product/foundations/linter.md +0 -523
  190. package/dist/docs/product/foundations/motion.md +0 -151
  191. package/dist/docs/product/foundations/radius-and-padding.md +0 -86
  192. package/dist/docs/product/foundations/typography.md +0 -331
  193. package/dist/docs/product/introduction/faq.md +0 -133
  194. package/dist/docs/product/introduction/getting-started.md +0 -377
  195. package/dist/docs/product/patterns/blockchain-values.md +0 -709
  196. package/dist/docs/product/patterns/dashboards.md +0 -638
  197. package/dist/docs/product/patterns/destructive-actions.md +0 -626
  198. package/dist/docs/product/patterns/empty-states.md +0 -612
  199. package/dist/docs/product/patterns/errors-and-validation.md +0 -808
  200. package/dist/docs/product/patterns/feedback-and-status.md +0 -518
  201. package/dist/docs/product/patterns/forms.md +0 -679
  202. package/dist/docs/product/patterns/loading.md +0 -630
  203. package/dist/docs/product/patterns/navigation.md +0 -397
  204. package/dist/docs/product/patterns/payments.md +0 -765
  205. package/dist/docs/product/patterns/responsive-layout.md +0 -997
  206. package/dist/docs/product/patterns/tables-and-lists.md +0 -1170
  207. package/dist/docs/product/products/tempo-console.md +0 -671
  208. package/dist/docs/product/products/tempo-performance.md +0 -435
  209. package/dist/docs/product/products/tempo-wallet.md +0 -438
@@ -1,194 +0,0 @@
1
- # Tone
2
-
3
- How Tempo's voice adjusts to the reader, from a first visit to an error.
4
-
5
- ## Overview
6
-
7
- [Voice](voice.md) stays the same everywhere. Tone shifts with what the reader is doing and how they feel, and grows plainer and more specific as more money or access is at stake.
8
-
9
- ## Situations
10
-
11
- ### Onboarding
12
-
13
- Welcome a new reader, and explain each new term once, in one sentence.
14
-
15
- **Do:** Explain the first step and why it matters.
16
-
17
- ```tsx
18
- <Empty.Root>
19
- <Empty.Icon>
20
- <Wallet />
21
- </Empty.Icon>
22
- <Empty.Title>Add funds to start</Empty.Title>
23
- <Empty.Description>Deposit dollars or stablecoins to send your first payment.</Empty.Description>
24
- <Empty.Actions>
25
- <Button size="small">Add funds</Button>
26
- </Empty.Actions>
27
- </Empty.Root>
28
- ```
29
-
30
- **Don't:** Assume crypto vocabulary.
31
-
32
- ```tsx
33
- <Empty.Root>
34
- <Empty.Icon>
35
- <Wallet />
36
- </Empty.Icon>
37
- <Empty.Title>Bridge assets</Empty.Title>
38
- <Empty.Description>Bridge ERC-20s to the L1 to bootstrap liquidity.</Empty.Description>
39
- </Empty.Root>
40
- ```
41
-
42
- ### Success
43
-
44
- State what finished in a positive [Toast](../../components/toast.md) when nothing is left to do, then stop.
45
-
46
- * **Name the Result:** Use a noun and a past-tense verb.
47
- * **Add the Detail:** Add the amount or recipient as confirmation.
48
- * **Skip the Celebration:** Leave out praise, exclamation marks, and emoji.
49
- * **Wait for the Network:** Show a pending state until the network confirms.
50
-
51
- ### In Progress
52
-
53
- Be calm and specific about what happens next and how long it takes.
54
-
55
- * **Name the Step:** End a status label with an ellipsis (…).
56
- * **Explain Long Waits:** Name the wait, and whether to stay on the page.
57
-
58
- **Do:** State what the system does and set an expectation.
59
-
60
- ```tsx
61
- <Progress.Root value={60}>
62
- <Progress.Label>Confirming payment</Progress.Label>
63
- <Progress.Track>
64
- <Progress.Indicator />
65
- </Progress.Track>
66
- </Progress.Root>
67
- <p>This usually takes less than a second.</p>
68
- ```
69
-
70
- **Don't:** Leave the reader with an open-ended wait.
71
-
72
- ```tsx
73
- <Spinner />
74
- <p>Please wait…</p>
75
- ```
76
-
77
- ### Warnings
78
-
79
- State a risk once, beside the content it affects, and only if the reader can act on it.
80
-
81
- **Do:** State the risk and what to check in one or two plain sentences.
82
-
83
- ```tsx
84
- /**
85
- * Do example for "Warnings" on the Tone page.
86
- * State the risk and what to check in one or two plain sentences.
87
- * @module
88
- */
89
- import { Alert, style } from '@tempoxyz/ds'
90
-
91
- /** Renders the static preview, which the guideline card shows inert. */
92
- export function Demo() {
93
- return (
94
- <Alert intent="warning" {...styles.alert()}>
95
- <Alert.Icon />
96
- <Alert.Content>
97
- Payments are final. Check that the address matches the one you were given.
98
- </Alert.Content>
99
- </Alert>
100
- )
101
- }
102
-
103
- namespace styles {
104
- export const alert = style({ maxWidth: '20rem !custom' })
105
- }
106
- ```
107
-
108
- **Don't:** Shout, stack exclamation marks, or use the `negative` intent for a warning.
109
-
110
- ```tsx
111
- /**
112
- * Don't example for "Warnings" on the Tone page.
113
- * Don't shout, stack exclamation marks, or use the `negative` intent for a warning.
114
- * @module
115
- */
116
- import { Alert, style } from '@tempoxyz/ds'
117
-
118
- /** Renders the static preview, which the guideline card shows inert. */
119
- export function Demo() {
120
- return (
121
- <Alert intent="negative" {...styles.alert()}>
122
- <Alert.Icon />
123
- <Alert.Content>
124
- WARNING!! Double-check everything or your money is GONE forever!
125
- </Alert.Content>
126
- </Alert>
127
- )
128
- }
129
-
130
- namespace styles {
131
- export const alert = style({ maxWidth: '20rem !custom' })
132
- }
133
- ```
134
-
135
- * **Local Risk (Alert):** Use a warning [Alert](../../components/alert.md) for a field or section.
136
- * **Product-Wide Condition (Banner):** Use a warning [Banner](../../components/banner.md) for the whole product.
137
-
138
- ### Errors
139
-
140
- Stay neutral and direct, and follow the [error message structure](writing-style.md#structure-error-messages).
141
-
142
- * **Lead With the Fix:** Add the cause only if it helps the reader act.
143
- * **Show It Inline:** Show a blocking error inline, not in a [Toast](../../components/toast.md).
144
- * **Keep the TextInput:** Keep the input, and state what to change.
145
- * **Skip Blame and Jokes:** Don't apologize at length, blame, or joke.
146
-
147
- ### Security and Keys
148
-
149
- **Do:** State the exact consequence and who is responsible.
150
-
151
- ```tsx
152
- <Empty.Root>
153
- <Empty.Icon>
154
- <Key />
155
- </Empty.Icon>
156
- <Empty.Title>Save your recovery key</Empty.Title>
157
- <Empty.Description>Anyone with this key can move your funds. Tempo cannot recover it for you.</Empty.Description>
158
- </Empty.Root>
159
- ```
160
-
161
- **Don't:** Use humor for a security step.
162
-
163
- ```tsx
164
- <Empty.Root>
165
- <Empty.Icon>
166
- <Key />
167
- </Empty.Icon>
168
- <Empty.Title>Your secret sauce 🤫</Empty.Title>
169
- <Empty.Description>Keep it somewhere safe-ish!</Empty.Description>
170
- </Empty.Root>
171
- ```
172
-
173
- ### Sending Money
174
-
175
- Repeat the exact amount, recipient, and fee on every step.
176
-
177
- **Do:** Put the exact amount on the final action.
178
-
179
- ```tsx
180
- <Button><Send />Send 25.00 USDC</Button>
181
- ```
182
-
183
- **Don't:** Use a playful label for a payment.
184
-
185
- ```tsx
186
- <Button>Let's go</Button>
187
- ```
188
-
189
- ### Irreversible Actions
190
-
191
- Use a serious, explicit tone, as [Destructive Actions](../../patterns/destructive-actions.md) shows.
192
-
193
- * **Name the Consequence:** Name exactly what the action removes or ends.
194
- * **Confirm Payments on Review:** On review, state once that payments are final.
@@ -1,194 +0,0 @@
1
- # Voice
2
-
3
- Tempo's personality in words, consistent across every product.
4
-
5
- ## Overview
6
-
7
- Voice is how Tempo sounds in every product: a knowledgeable colleague who explains plainly and wastes no time, as on [tempo.xyz](https://tempo.xyz) and in the [developer docs](https://tempo.xyz/developers). [Tone](tone.md) adapts it to each situation, such as a first visit or a failed payment.
8
-
9
- ## How Tempo Writes
10
-
11
- * **Cover Three Points:** State what is happening, what it costs, and what happens next.
12
- * **Define Before Explaining:** Open with one sentence that defines the thing, then list its parts.
13
- * **State Rules as Facts:** State limits and protections as what Tempo enforces, not as warnings.
14
- * **Name Availability Plainly (Testnet only):** Name a stage, such as beta or devnet only, with where it applies and what changes it.
15
- * **State What an Operation Doesn't Do:** State plainly that a refund is a new payment, not a reversal.
16
-
17
- ## Traits
18
-
19
- Each trait names the line it must not cross.
20
-
21
- ### Clear, Not Simplistic
22
-
23
- **Do:** Describe a payment in everyday money words, and format each value with
24
- [Amount](../../components/amount.md) or [Hex](../../components/hex.md).
25
-
26
- ```tsx
27
- /**
28
- * Do example for "Clear, Not Simplistic" on the Voice page.
29
- * Describe a payment in everyday money words, and format each value with Amount or Hex.
30
- * @module
31
- */
32
- import { Amount, Hex, ListGroup, style } from '@tempoxyz/ds'
33
-
34
- /** Renders the static preview, which the guideline card shows inert. */
35
- export function Demo() {
36
- return (
37
- <ListGroup.Root {...styles.rows()}>
38
- <ListGroup.Row>
39
- <ListGroup.Label>To</ListGroup.Label>
40
- <Hex value="0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc" />
41
- </ListGroup.Row>
42
- <ListGroup.Row>
43
- <ListGroup.Label>Amount</ListGroup.Label>
44
- <Amount symbol="USDC" value="250.00" />
45
- </ListGroup.Row>
46
- <ListGroup.Row>
47
- <ListGroup.Label>Network fee</ListGroup.Label>
48
- <Amount currency="USD" precise value="0.0003" />
49
- </ListGroup.Row>
50
- </ListGroup.Root>
51
- )
52
- }
53
-
54
- namespace styles {
55
- export const rows = style({ maxWidth: '18rem !custom', width: '100% !custom' })
56
- }
57
- ```
58
-
59
- **Don't:** Show protocol fields, base units, or gas parameters on a payment review.
60
-
61
- ```tsx
62
- /**
63
- * Don't example for "Clear, Not Simplistic" on the Voice page.
64
- * Don't show protocol fields, base units, or gas parameters on a payment review.
65
- * @module
66
- */
67
- import { ListGroup, style } from '@tempoxyz/ds'
68
-
69
- /** Renders the static preview, which the guideline card shows inert. */
70
- export function Demo() {
71
- return (
72
- <ListGroup.Root {...styles.rows()}>
73
- <ListGroup.Row>
74
- <ListGroup.Label>Recipient EOA</ListGroup.Label>
75
- <span {...styles.value()}>0x3c44cddd…</span>
76
- </ListGroup.Row>
77
- <ListGroup.Row>
78
- <ListGroup.Label>Value</ListGroup.Label>
79
- <span {...styles.value()}>250000000</span>
80
- </ListGroup.Row>
81
- <ListGroup.Row>
82
- <ListGroup.Label>Gas limit</ListGroup.Label>
83
- <span {...styles.value()}>21000</span>
84
- </ListGroup.Row>
85
- </ListGroup.Root>
86
- )
87
- }
88
-
89
- namespace styles {
90
- export const rows = style({ maxWidth: '18rem !custom', width: '100% !custom' })
91
-
92
- export const value = style({ typography: 'mono.m1' })
93
- }
94
- ```
95
-
96
- ### Precise, Not Approximate
97
-
98
- **Do:** State the exact amount, time, or limit.
99
-
100
- ```tsx
101
- <Alert>
102
- <Alert.Icon />
103
- <Alert.Content>This quote expires in 10 minutes.</Alert.Content>
104
- </Alert>
105
- ```
106
-
107
- **Don't:** Use vague words such as soon or shortly.
108
-
109
- ```tsx
110
- <Alert>
111
- <Alert.Icon />
112
- <Alert.Content>This quote expires soon.</Alert.Content>
113
- </Alert>
114
- ```
115
-
116
- ### Confident, Not Boastful
117
-
118
- **Do:** Confirm the result as a fact, and stop.
119
-
120
- ```tsx
121
- <Empty.Root>
122
- <Empty.Icon>
123
- <Receipt />
124
- </Empty.Icon>
125
- <Empty.Title>Payment sent</Empty.Title>
126
- <Empty.Description>Alice received 25.00 USDC.</Empty.Description>
127
- </Empty.Root>
128
- ```
129
-
130
- **Don't:** Use hype, hedging, exclamation marks, or emoji for a routine result.
131
-
132
- ```tsx
133
- <Empty.Root>
134
- <Empty.Icon>
135
- <Receipt />
136
- </Empty.Icon>
137
- <Empty.Title>Woohoo! 🎉</Empty.Title>
138
- <Empty.Description>Your lightning-fast payment is on its way!</Empty.Description>
139
- </Empty.Root>
140
- ```
141
-
142
- ### Calm, Not Casual
143
-
144
- **Do:** State what failed, and reassure the reader with a fact.
145
-
146
- ```tsx
147
- <Alert intent="negative">
148
- <Alert.Icon />
149
- <Alert.Content>The payment did not go through. Your balance has not changed.</Alert.Content>
150
- </Alert>
151
- ```
152
-
153
- **Don't:** Joke about a failure that involves money.
154
-
155
- ```tsx
156
- <Alert intent="negative">
157
- <Alert.Icon />
158
- <Alert.Content>Oops! Something broke. Our bad.</Alert.Content>
159
- </Alert>
160
- ```
161
-
162
- ### Respectful, Not Condescending
163
-
164
- **Do:** Address the reader as you, and describe the problem and the fix.
165
-
166
- ```tsx
167
- <Alert intent="negative">
168
- <Alert.Icon />
169
- <Alert.Content>This address isn't valid. Check it and try again.</Alert.Content>
170
- </Alert>
171
- ```
172
-
173
- **Don't:** Blame the reader for an error.
174
-
175
- ```tsx
176
- <Alert intent="negative">
177
- <Alert.Icon />
178
- <Alert.Content>You entered an invalid address.</Alert.Content>
179
- </Alert>
180
- ```
181
-
182
- ### Helpful, Not Pushy
183
-
184
- **Do:** Offer the next step plainly, and let the reader decide.
185
-
186
- ```tsx
187
- <Button variant="secondary">Turn on notifications</Button>
188
- ```
189
-
190
- **Don't:** Use fear or urgency to drive a choice.
191
-
192
- ```tsx
193
- <Button variant="secondary">Don't miss out</Button>
194
- ```