@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,18 +1,81 @@
1
1
  # Tempo Design System for Agents
2
2
 
3
- These files are the documentation of `@tempoxyz/ds` as Markdown, for the version installed beside them. They describe how to use the design system in an app, not how to build the library. Each page sits at the path of its page on ds.tehq.dev, and links between pages are relative. Read them here rather than on the site, so the guidance matches the version you import.
3
+ These files document `@tempoxyz/ds` for the version installed beside them. They describe how to use the design system in an app, not how to build the library. Read this file in full, then open only the sections a task needs.
4
4
 
5
- Tempo has two design systems, and this package ships both. Choose one by what you build, and start from its Getting Started page:
5
+ ## Choose a System
6
6
 
7
- - **Product:** Interfaces people use, such as wallets, consoles, dashboards, explorers, and internal tools. Start from [product/introduction/getting-started.md](product/introduction/getting-started.md).
8
- - **Marketing:** Pages that present Tempo, such as the home page and launch, campaign, and event pages. Start from [marketing/introduction/getting-started.md](marketing/introduction/getting-started.md).
7
+ An app uses one system.
9
8
 
10
- An app uses one system. A marketing site does not import `@tempoxyz/ds`, and a product interface does not import `@tempoxyz/ds/marketing`.
9
+ - **Product:** Interfaces people use, such as wallets, consoles, dashboards, explorers, and internal tools. Import `@tempoxyz/ds`, and follow this file.
10
+ - **Marketing:** Pages that present Tempo, such as the home page and launch, campaign, and event pages. Read [marketing.md](marketing.md) instead. A marketing site does not import `@tempoxyz/ds`.
11
11
 
12
- Each system's folder follows its sidebar on the site, with Introduction, Foundations, and Components sections. [index.md](index.md) lists every page with its description. Before you use a component, read its page in full.
12
+ ## Read in This Order
13
13
 
14
- For Product, also read these pages before you build a screen:
14
+ 1. **Rules:** Read the [rules](#rules) below. They apply to every screen.
15
+ 2. **Setup:** Set up a project with [Getting Started](product/foundations.md#getting-started).
16
+ 3. **Patterns:** Find the patterns a screen uses in the contents of [product/patterns.md](product/patterns.md), and read those sections in full.
17
+ 4. **Components:** Choose components with the [Components](product/components.md#overview) overview, which compares similar ones. Then read each component's section in its family file up to its Examples heading.
18
+ 5. **Examples:** Read a component's Examples or Use Cases only for the cases you build.
19
+ 6. **Foundations:** Look up color, layout, type, motion, and content in [product/foundations.md](product/foundations.md) when a rule or a section links there.
15
20
 
16
- - **Rules:** [Agents](product/foundations/agents.md) states the rules that generated UI follows.
17
- - **Type:** [Typography](product/foundations/typography.md) states which sets to use and how many on one screen.
18
- - **Patterns:** The `product/patterns/` folder holds layouts that combine components, such as [Forms](product/patterns/forms.md) and [Tables and Lists](product/patterns/tables-and-lists.md). The sidebar does not list them, so read the ones a screen uses from [index.md](index.md).
21
+ Each file opens with its contents. Find a section with `rg -n '^## ' <file>`, and read from its heading to the next heading of the same level.
22
+
23
+ ## Files
24
+
25
+ - [product/foundations.md](product/foundations.md) (156 KB): Getting Started, the FAQ, and the foundations: color, layout, type, icons, motion, content, accessibility, intent, and the linter.
26
+ - [product/patterns.md](product/patterns.md) (339 KB): Layouts that combine components, such as forms, tables, payments, and errors, and the product references.
27
+ - [product/components.md](product/components.md) (15 KB): Every component by family, and how to choose between similar ones.
28
+ - [product/components/actions.md](product/components/actions.md) (57 KB): Button, ButtonGroup, CopyButton, SplitButton.
29
+ - [product/components/forms-and-inputs.md](product/components/forms-and-inputs.md) (304 KB): AmountInput, Autocomplete, Calendar, Checkbox, CheckboxGroup, Choicebox, ChoiceGroup, Combobox, DatePicker, Field, Fieldset, NativeSelect, NumberField, OtpField, RadioGroup, Select, Slider, Switch, Textarea, TextInput.
30
+ - [product/components/feedback-and-status.md](product/components/feedback-and-status.md) (112 KB): Alert, Banner, Callout, Empty, Gauge, LoadingDots, Progress, Skeleton, Spinner, StatusChip, StatusIndicator, StatusRow, Toast.
31
+ - [product/components/overlays.md](product/components/overlays.md) (140 KB): AlertDialog, Dialog, Drawer, Menu, Popover, Tooltip.
32
+ - [product/components/navigation.md](product/components/navigation.md) (85 KB): Breadcrumbs, Pagination, SidebarMenu, Stepper, Tabs.
33
+ - [product/components/layout.md](product/components/layout.md) (91 KB): AppShell, Container, Frame, Grid, Inline, Inset, Separator, Stack, Surface.
34
+ - [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.
35
+ - [product/components/blockchain.md](product/components/blockchain.md) (103 KB): AddressCard, Amount, AssetChip, BadgedLogo, Hex, Identicon, NetworkLogo, Qr, SecretValue, Token, TokenLogo.
36
+ - [marketing.md](marketing.md) (7 KB): The Marketing system.
37
+
38
+ ## Rules
39
+
40
+ These rules are requirements, and so are the Guidelines, Content, and Accessibility sections of every page. If a request conflicts with a guideline, follow the request and point out the conflict.
41
+
42
+ ### Use Library Components First
43
+
44
+ * **Catalog First:** Check the [Components](product/components.md#overview) overview, which compares similar ones, before you write markup.
45
+ * **Intent First:** Choose each component by the job of its content, as [Building From Intent](product/foundations.md#building-from-intent) describes, not by the old markup.
46
+ * **Public Entrypoints:** Import `@tempoxyz/ds` on Web and `@tempoxyz/ds/mobile` in React Native, with icons from `/icons`.
47
+ * **No Rebuilds:** Don't rebuild a library component or swap in a raw Base UI primitive or another library.
48
+ * **Named Parts:** Build larger components from their named parts, such as `Dialog.Root` and `Dialog.Title`.
49
+
50
+ ### Style With Tokens
51
+
52
+ * **Style Definitions:** Style your own markup with `style` and `variants`, grouped in a `namespace styles` block.
53
+ * **Tokens:** Set colors, spacing, type, and radii with tokens, such as `content.primary` and `'24'`.
54
+ * **Custom Values:** Mark the rare literal that no token fits with `!custom`, as in `'24rem !custom'`.
55
+ * **One Styling System:** Don't add utility classes or a separate stylesheet to UI built with the library.
56
+ * **Variable Scopes:** Components inherit variables, so apply `vars()` only to override values or fix a color scheme.
57
+
58
+ ### Set Type With Few Sets
59
+
60
+ * **Component Type:** Let each component set the type of its parts. Pass text as children and don't restyle it.
61
+ * **One Set per Style (typography):** Set your own text with one `typography` set, never a separate family, size, or weight.
62
+ * **Few Sets per Screen:** Use at most five styles on a screen, and Pilat only for titles.
63
+ * **Expressive Sets:** Follow [Typography](product/foundations.md#reserve-the-expressive-sets) before you use display, value, utility, or mono.
64
+
65
+ ### Use Only Documented APIs
66
+
67
+ * **Documented Props:** Use only the props, parts, and values that a component page or its TSDoc documents.
68
+ * **Missing Pieces:** Build a missing variant or token locally with `style`, and flag it for a [proposal](product/foundations.md#how-do-i-request-a-component-variant-or-token).
69
+ * **Installed Package:** Don't patch the installed package or target the class names that it generates.
70
+
71
+ ### Follow the Guidelines
72
+
73
+ * **Guidance First:** Read a component's Guidelines, Content, and Accessibility before you use it, not only its examples.
74
+ * **Patterns:** Before you build a screen, read the patterns it uses, such as [Forms](product/patterns.md#forms) and [Tables and Lists](product/patterns.md#tables-and-lists).
75
+ * **Native Semantics:** Keep native semantics, and meet every item on the [Accessibility](product/foundations.md#checklist) checklist.
76
+
77
+ ### Write Copy to the Content Guidelines
78
+
79
+ * **Labels and Terms:** Use sentence case and verb-first button labels, as [Writing Style](product/foundations.md#write-labels) describes.
80
+ * **Amounts and Addresses:** Format amounts with [Amount](product/components/blockchain.md#amount) and a `currency` or `symbol`, and addresses and hashes with [Hex](product/components/blockchain.md#hex).
81
+ * **Errors:** Write error messages that state the fix, as [Writing Style](product/foundations.md#write-messages) describes.
@@ -1,8 +1,16 @@
1
- # Getting Started
1
+ # Marketing
2
+
3
+ Each section below is one page of the documentation at ds.tehq.dev.
4
+
5
+ ## Contents
6
+
7
+ - [Getting Started](#getting-started): Install the Marketing system and style your first section.
8
+
9
+ ## Getting Started
2
10
 
3
11
  Install the Marketing system and style your first section.
4
12
 
5
- ## Overview
13
+ ### Overview
6
14
 
7
15
  Marketing pages present Tempo to the public. They explain what Tempo is, who it is for, and why it matters, and lead the reader to a next step. `@tempoxyz/ds/marketing` ships the variables and authoring helpers for these pages.
8
16
 
@@ -11,16 +19,16 @@ Marketing pages present Tempo to the public. They explain what Tempo is, who it
11
19
  * **Launches (Announcements):** Present a new feature, partner, or upgrade.
12
20
  * **Events (Event pages):** Show the agenda, the speakers, and registration.
13
21
 
14
- ## Agent Prompt
22
+ ### Agent Prompt
15
23
 
16
24
  Paste this prompt into your coding agent:
17
25
 
18
26
  Read ds.tehq.dev/marketing/introduction/getting-started and help me build a Tempo marketing page
19
27
  with Tempo Design System.
20
28
 
21
- ## Setup
29
+ ### Setup
22
30
 
23
- ### Install the Library
31
+ #### Install the Library
24
32
 
25
33
  Install `@tempoxyz/ds` and its Zyzz peer. Marketing ships from the same package.
26
34
 
@@ -28,16 +36,16 @@ Install `@tempoxyz/ds` and its Zyzz peer. Marketing ships from the same package.
28
36
  npm install @tempoxyz/ds zyzz
29
37
  ```
30
38
 
31
- ### Choose Framework
39
+ #### Choose Framework
32
40
 
33
41
  Choose a compilation target and a variable mode:
34
42
 
35
43
  * **TDS Variables (Quick):** Uses the Marketing variables as they ship.
36
44
  * **Custom Variables (Advanced):** Extends the Marketing variables with site tokens.
37
45
 
38
- ### Vite
46
+ #### Vite
39
47
 
40
- ### Configure Vite
48
+ #### Configure Vite
41
49
 
42
50
  Add Zyzz beside the existing framework plugin.
43
51
 
@@ -55,9 +63,9 @@ Run the existing dev or build command. The plugin emits the Marketing variables,
55
63
 
56
64
  With `ssr.noExternal`, the plugin reads the library's contracts in a server build.
57
65
 
58
- #### TDS Variables (Quick)
66
+ ##### TDS Variables (Quick)
59
67
 
60
- ### Style a Section
68
+ #### Style a Section
61
69
 
62
70
  Import `style` from `@tempoxyz/ds/marketing`, and style your markup with Marketing tokens.
63
71
 
@@ -88,9 +96,9 @@ namespace styles {
88
96
 
89
97
  Tokens such as `content.primary`, `'64'`, and `display.d1` type-check against the Marketing variables. Light and dark values follow the inherited `color-scheme`.
90
98
 
91
- #### Custom Variables (Advanced)
99
+ ##### Custom Variables (Advanced)
92
100
 
93
- ### Define Config
101
+ #### Define Config
94
102
 
95
103
  Extend the Marketing variables with site tokens, and export the bound helpers.
96
104
 
@@ -106,7 +114,7 @@ export const { style, vars } = Config.create({
106
114
 
107
115
  Place `zyzz.config.ts` at the root of the site source, such as `src/zyzz.config.ts`. The Vite plugin scans its directory for global styles.
108
116
 
109
- ### Style a Section
117
+ #### Style a Section
110
118
 
111
119
  Apply `vars()` to the site root. Style your markup with the bound `style` helper, which accepts Marketing and site tokens.
112
120
 
@@ -136,9 +144,9 @@ namespace styles {
136
144
  }
137
145
  ```
138
146
 
139
- ### Other Bundlers
147
+ #### Other Bundlers
140
148
 
141
- ### Configure the Bundler
149
+ #### Configure the Bundler
142
150
 
143
151
  Add the matching unplugin adapter to the bundler configuration. Keep the existing TypeScript and JSX transforms.
144
152
 
@@ -158,9 +166,9 @@ Load the emitted stylesheet and script in the document. Adjust the paths to the
158
166
 
159
167
  Run the existing build command. [Bundler Setup](https://zyzz.style/docs/api/unplugin) lists the configuration for each bundler.
160
168
 
161
- #### TDS Variables (Quick)
169
+ ##### TDS Variables (Quick)
162
170
 
163
- ### Style a Section
171
+ #### Style a Section
164
172
 
165
173
  Import `style` from `@tempoxyz/ds/marketing`, and style your markup with Marketing tokens.
166
174
 
@@ -191,9 +199,9 @@ namespace styles {
191
199
 
192
200
  Tokens such as `content.primary`, `'64'`, and `display.d1` type-check against the Marketing variables. Light and dark values follow the inherited `color-scheme`.
193
201
 
194
- #### Custom Variables (Advanced)
202
+ ##### Custom Variables (Advanced)
195
203
 
196
- ### Define Config
204
+ #### Define Config
197
205
 
198
206
  Extend the Marketing variables with site tokens, and export the bound helpers.
199
207
 
@@ -207,7 +215,7 @@ export const { style, vars } = Config.create({
207
215
  })
208
216
  ```
209
217
 
210
- ### Style a Section
218
+ #### Style a Section
211
219
 
212
220
  Apply `vars()` to the site root. Style your markup with the bound `style` helper, which accepts Marketing and site tokens.
213
221