@oaiz/app-kit 0.0.0-stage → 0.1.4128
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/LICENSE +21 -0
- package/README.md +143 -2
- package/THIRD_PARTY_NOTICES.md +76 -0
- package/package.json +139 -4
- package/registry.json +1847 -0
- package/src/components/activity-timeline.tsx +227 -0
- package/src/components/app-shell.tsx +622 -0
- package/src/components/bar-list.tsx +47 -0
- package/src/components/board.tsx +700 -0
- package/src/components/calendar-view.tsx +1388 -0
- package/src/components/card-grid.tsx +462 -0
- package/src/components/charts.tsx +701 -0
- package/src/components/chat-markdown.tsx +230 -0
- package/src/components/chat-panel.tsx +760 -0
- package/src/components/code-editor.tsx +276 -0
- package/src/components/collection-controls.tsx +226 -0
- package/src/components/command-palette.tsx +403 -0
- package/src/components/confirm-action.tsx +123 -0
- package/src/components/data-table.tsx +821 -0
- package/src/components/date-input.tsx +429 -0
- package/src/components/empty-state.tsx +31 -0
- package/src/components/error-state.tsx +37 -0
- package/src/components/file-upload.tsx +595 -0
- package/src/components/filter-bar.tsx +415 -0
- package/src/components/grouped-picker.tsx +250 -0
- package/src/components/line-items.tsx +601 -0
- package/src/components/list-view.tsx +491 -0
- package/src/components/metrics.tsx +53 -0
- package/src/components/page-header.tsx +33 -0
- package/src/components/property-picker.tsx +546 -0
- package/src/components/record-detail.tsx +416 -0
- package/src/components/record-form.tsx +295 -0
- package/src/components/record-name.tsx +85 -0
- package/src/components/save-bar.tsx +142 -0
- package/src/components/sign-in.tsx +179 -0
- package/src/components/split-view.tsx +128 -0
- package/src/components/status-dot.tsx +56 -0
- package/src/components/stepper.tsx +153 -0
- package/src/components/text-diff-model.ts +111 -0
- package/src/components/text-diff.tsx +98 -0
- package/src/components/time-zone-picker.tsx +69 -0
- package/src/components/ui/accordion.tsx +138 -0
- package/src/components/ui/alert-dialog.tsx +67 -0
- package/src/components/ui/alert.tsx +65 -0
- package/src/components/ui/avatar-group.tsx +119 -0
- package/src/components/ui/avatar.tsx +55 -0
- package/src/components/ui/badge.tsx +59 -0
- package/src/components/ui/bottom-navigation.tsx +102 -0
- package/src/components/ui/breadcrumb.tsx +117 -0
- package/src/components/ui/button.tsx +71 -0
- package/src/components/ui/card.tsx +95 -0
- package/src/components/ui/checkbox.tsx +31 -0
- package/src/components/ui/collapsible.tsx +27 -0
- package/src/components/ui/context-menu.tsx +270 -0
- package/src/components/ui/count-up.tsx +136 -0
- package/src/components/ui/detail-disclosure-section.tsx +109 -0
- package/src/components/ui/dialog.tsx +157 -0
- package/src/components/ui/dropdown-menu.tsx +273 -0
- package/src/components/ui/form-field.tsx +155 -0
- package/src/components/ui/heading.tsx +126 -0
- package/src/components/ui/hover-card.tsx +45 -0
- package/src/components/ui/input.tsx +50 -0
- package/src/components/ui/label.tsx +30 -0
- package/src/components/ui/orb-spinner.tsx +238 -0
- package/src/components/ui/popover.tsx +59 -0
- package/src/components/ui/progress-ring.tsx +125 -0
- package/src/components/ui/progress.tsx +38 -0
- package/src/components/ui/radio-group.tsx +124 -0
- package/src/components/ui/resizable.tsx +48 -0
- package/src/components/ui/scroll-fade.tsx +98 -0
- package/src/components/ui/segmented-control.tsx +70 -0
- package/src/components/ui/select.tsx +230 -0
- package/src/components/ui/separator.tsx +29 -0
- package/src/components/ui/sheet.tsx +170 -0
- package/src/components/ui/shimmer-text.tsx +87 -0
- package/src/components/ui/shortcut.tsx +39 -0
- package/src/components/ui/skeleton.tsx +15 -0
- package/src/components/ui/slider.tsx +48 -0
- package/src/components/ui/switch.tsx +44 -0
- package/src/components/ui/table.tsx +119 -0
- package/src/components/ui/tabs.tsx +80 -0
- package/src/components/ui/text.tsx +93 -0
- package/src/components/ui/textarea.tsx +51 -0
- package/src/components/ui/toast.tsx +141 -0
- package/src/components/ui/toaster.tsx +40 -0
- package/src/components/ui/tooltip.tsx +38 -0
- package/src/components/ui/top-banner.tsx +108 -0
- package/src/components/ui/tree-view.tsx +215 -0
- package/src/components/ui/use-toast.tsx +184 -0
- package/src/components/ui/voice-orb.tsx +252 -0
- package/src/hooks/oaiz-chat.tsx +530 -0
- package/src/hooks/oaiz-data.tsx +617 -0
- package/src/hooks/oaiz-session.tsx +63 -0
- package/src/hooks/use-arrivals.ts +19 -0
- package/src/hooks/use-breakpoint.ts +100 -0
- package/src/hooks/use-media-query.ts +36 -0
- package/src/hooks/use-theme.ts +67 -0
- package/src/hooks/use-url-state.ts +77 -0
- package/src/lib/breakpoints.ts +81 -0
- package/src/lib/csp-nonce.ts +15 -0
- package/src/lib/format.ts +291 -0
- package/src/lib/speech-level.ts +118 -0
- package/src/lib/utils.ts +109 -0
- package/src/styles/oaiz/app.css +21 -0
- package/src/styles/oaiz/scrollbars.css +20 -0
- package/src/styles/oaiz/tokens.css +952 -0
- package/src/styles/oaiz/voice-orb.css +39 -0
package/registry.json
ADDED
|
@@ -0,0 +1,1847 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry.json",
|
|
3
|
+
"name": "oaiz",
|
|
4
|
+
"homepage": "https://oaiz.io",
|
|
5
|
+
"items": [
|
|
6
|
+
{
|
|
7
|
+
"name": "utils",
|
|
8
|
+
"type": "registry:lib",
|
|
9
|
+
"title": "cn helper",
|
|
10
|
+
"description": "The cn() helper, which joins class names and merges conflicting Tailwind classes",
|
|
11
|
+
"dependencies": [
|
|
12
|
+
"clsx@^2.1.1",
|
|
13
|
+
"tailwind-merge@^3.7.0"
|
|
14
|
+
],
|
|
15
|
+
"files": [
|
|
16
|
+
{
|
|
17
|
+
"path": "src/lib/utils.ts",
|
|
18
|
+
"type": "registry:lib"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "theme",
|
|
24
|
+
"type": "registry:theme",
|
|
25
|
+
"title": "OAIZ theme",
|
|
26
|
+
"description": "The OAIZ design tokens: semantic colours in light and dark, spacing and type",
|
|
27
|
+
"dependencies": [
|
|
28
|
+
"tw-animate-css@^1.4.0"
|
|
29
|
+
],
|
|
30
|
+
"devDependencies": [
|
|
31
|
+
"tailwindcss@^4.3.4"
|
|
32
|
+
],
|
|
33
|
+
"files": [
|
|
34
|
+
{
|
|
35
|
+
"path": "src/styles/oaiz/tokens.css",
|
|
36
|
+
"type": "registry:style"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "src/styles/oaiz/app.css",
|
|
40
|
+
"type": "registry:style"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"path": "src/styles/oaiz/scrollbars.css",
|
|
44
|
+
"type": "registry:style"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"path": "src/styles/oaiz/voice-orb.css",
|
|
48
|
+
"type": "registry:style"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"docs": "Use semantic classes (bg-background, text-muted-foreground, border-input). Apps may set any palette through --role-* values in app-theme.css; pair surfaces and foregrounds in both themes. Dark mode follows a `dark` class on <html>. Import app.css after tokens.css: it loads the enter and exit animations of dialogs, menus and sheets."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "text",
|
|
55
|
+
"type": "registry:ui",
|
|
56
|
+
"title": "Text",
|
|
57
|
+
"description": "Body text in the OAIZ type scale",
|
|
58
|
+
"dependencies": [
|
|
59
|
+
"@radix-ui/react-slot@^1.3.3",
|
|
60
|
+
"class-variance-authority@^0.7.1"
|
|
61
|
+
],
|
|
62
|
+
"registryDependencies": [
|
|
63
|
+
"utils"
|
|
64
|
+
],
|
|
65
|
+
"files": [
|
|
66
|
+
{
|
|
67
|
+
"path": "src/components/ui/text.tsx",
|
|
68
|
+
"type": "registry:ui"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "heading",
|
|
74
|
+
"type": "registry:ui",
|
|
75
|
+
"title": "Heading",
|
|
76
|
+
"description": "Headings h1 to h6 in the OAIZ type scale",
|
|
77
|
+
"dependencies": [
|
|
78
|
+
"@radix-ui/react-slot@^1.3.3",
|
|
79
|
+
"class-variance-authority@^0.7.1"
|
|
80
|
+
],
|
|
81
|
+
"registryDependencies": [
|
|
82
|
+
"utils"
|
|
83
|
+
],
|
|
84
|
+
"files": [
|
|
85
|
+
{
|
|
86
|
+
"path": "src/components/ui/heading.tsx",
|
|
87
|
+
"type": "registry:ui"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "skeleton",
|
|
93
|
+
"type": "registry:ui",
|
|
94
|
+
"title": "Skeleton",
|
|
95
|
+
"description": "A placeholder block while content loads",
|
|
96
|
+
"registryDependencies": [
|
|
97
|
+
"utils"
|
|
98
|
+
],
|
|
99
|
+
"files": [
|
|
100
|
+
{
|
|
101
|
+
"path": "src/components/ui/skeleton.tsx",
|
|
102
|
+
"type": "registry:ui"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "button",
|
|
108
|
+
"type": "registry:ui",
|
|
109
|
+
"title": "Button",
|
|
110
|
+
"description": "A button in the OAIZ variants and sizes",
|
|
111
|
+
"dependencies": [
|
|
112
|
+
"@radix-ui/react-slot@^1.3.3",
|
|
113
|
+
"class-variance-authority@^0.7.1"
|
|
114
|
+
],
|
|
115
|
+
"registryDependencies": [
|
|
116
|
+
"utils"
|
|
117
|
+
],
|
|
118
|
+
"files": [
|
|
119
|
+
{
|
|
120
|
+
"path": "src/components/ui/button.tsx",
|
|
121
|
+
"type": "registry:ui"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "input",
|
|
127
|
+
"type": "registry:ui",
|
|
128
|
+
"title": "Input",
|
|
129
|
+
"description": "A text input",
|
|
130
|
+
"dependencies": [
|
|
131
|
+
"class-variance-authority@^0.7.1"
|
|
132
|
+
],
|
|
133
|
+
"registryDependencies": [
|
|
134
|
+
"utils"
|
|
135
|
+
],
|
|
136
|
+
"files": [
|
|
137
|
+
{
|
|
138
|
+
"path": "src/components/ui/input.tsx",
|
|
139
|
+
"type": "registry:ui"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "label",
|
|
145
|
+
"type": "registry:ui",
|
|
146
|
+
"title": "Label",
|
|
147
|
+
"description": "A form label",
|
|
148
|
+
"dependencies": [
|
|
149
|
+
"@radix-ui/react-label@^2.1.15",
|
|
150
|
+
"class-variance-authority@^0.7.1"
|
|
151
|
+
],
|
|
152
|
+
"registryDependencies": [
|
|
153
|
+
"utils",
|
|
154
|
+
"text"
|
|
155
|
+
],
|
|
156
|
+
"files": [
|
|
157
|
+
{
|
|
158
|
+
"path": "src/components/ui/label.tsx",
|
|
159
|
+
"type": "registry:ui"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "table",
|
|
165
|
+
"type": "registry:ui",
|
|
166
|
+
"title": "Table",
|
|
167
|
+
"description": "Table, header, body, row, head and cell parts",
|
|
168
|
+
"registryDependencies": [
|
|
169
|
+
"utils",
|
|
170
|
+
"text"
|
|
171
|
+
],
|
|
172
|
+
"files": [
|
|
173
|
+
{
|
|
174
|
+
"path": "src/components/ui/table.tsx",
|
|
175
|
+
"type": "registry:ui"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "alert",
|
|
181
|
+
"type": "registry:ui",
|
|
182
|
+
"title": "Alert",
|
|
183
|
+
"description": "A message box with a title and a description",
|
|
184
|
+
"dependencies": [
|
|
185
|
+
"class-variance-authority@^0.7.1"
|
|
186
|
+
],
|
|
187
|
+
"registryDependencies": [
|
|
188
|
+
"utils",
|
|
189
|
+
"heading",
|
|
190
|
+
"text"
|
|
191
|
+
],
|
|
192
|
+
"files": [
|
|
193
|
+
{
|
|
194
|
+
"path": "src/components/ui/alert.tsx",
|
|
195
|
+
"type": "registry:ui"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "badge",
|
|
201
|
+
"type": "registry:ui",
|
|
202
|
+
"title": "Badge",
|
|
203
|
+
"description": "A small status or count label",
|
|
204
|
+
"dependencies": [
|
|
205
|
+
"class-variance-authority@^0.7.1"
|
|
206
|
+
],
|
|
207
|
+
"registryDependencies": [
|
|
208
|
+
"utils"
|
|
209
|
+
],
|
|
210
|
+
"files": [
|
|
211
|
+
{
|
|
212
|
+
"path": "src/components/ui/badge.tsx",
|
|
213
|
+
"type": "registry:ui"
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "separator",
|
|
219
|
+
"type": "registry:ui",
|
|
220
|
+
"title": "Separator",
|
|
221
|
+
"description": "A horizontal or vertical divider",
|
|
222
|
+
"dependencies": [
|
|
223
|
+
"@radix-ui/react-separator@^1.1.15"
|
|
224
|
+
],
|
|
225
|
+
"registryDependencies": [
|
|
226
|
+
"utils"
|
|
227
|
+
],
|
|
228
|
+
"files": [
|
|
229
|
+
{
|
|
230
|
+
"path": "src/components/ui/separator.tsx",
|
|
231
|
+
"type": "registry:ui"
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "textarea",
|
|
237
|
+
"type": "registry:ui",
|
|
238
|
+
"title": "Textarea",
|
|
239
|
+
"description": "A multi-line text input",
|
|
240
|
+
"dependencies": [
|
|
241
|
+
"class-variance-authority@^0.7.1"
|
|
242
|
+
],
|
|
243
|
+
"registryDependencies": [
|
|
244
|
+
"utils"
|
|
245
|
+
],
|
|
246
|
+
"files": [
|
|
247
|
+
{
|
|
248
|
+
"path": "src/components/ui/textarea.tsx",
|
|
249
|
+
"type": "registry:ui"
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "checkbox",
|
|
255
|
+
"type": "registry:ui",
|
|
256
|
+
"title": "Checkbox",
|
|
257
|
+
"description": "A checkbox with a checked and an indeterminate state",
|
|
258
|
+
"dependencies": [
|
|
259
|
+
"@radix-ui/react-checkbox@^1.3.11",
|
|
260
|
+
"lucide-react@^1.51.0"
|
|
261
|
+
],
|
|
262
|
+
"registryDependencies": [
|
|
263
|
+
"utils"
|
|
264
|
+
],
|
|
265
|
+
"files": [
|
|
266
|
+
{
|
|
267
|
+
"path": "src/components/ui/checkbox.tsx",
|
|
268
|
+
"type": "registry:ui"
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "avatar",
|
|
274
|
+
"type": "registry:ui",
|
|
275
|
+
"title": "Avatar",
|
|
276
|
+
"description": "A person image with initials while it loads or when it is missing",
|
|
277
|
+
"dependencies": [
|
|
278
|
+
"@radix-ui/react-avatar@^1.2.6"
|
|
279
|
+
],
|
|
280
|
+
"registryDependencies": [
|
|
281
|
+
"utils",
|
|
282
|
+
"text"
|
|
283
|
+
],
|
|
284
|
+
"files": [
|
|
285
|
+
{
|
|
286
|
+
"path": "src/components/ui/avatar.tsx",
|
|
287
|
+
"type": "registry:ui"
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "tabs",
|
|
293
|
+
"type": "registry:ui",
|
|
294
|
+
"title": "Tabs",
|
|
295
|
+
"description": "Tabs that switch between panels",
|
|
296
|
+
"dependencies": [
|
|
297
|
+
"@radix-ui/react-tabs@^1.1.21"
|
|
298
|
+
],
|
|
299
|
+
"registryDependencies": [
|
|
300
|
+
"utils"
|
|
301
|
+
],
|
|
302
|
+
"files": [
|
|
303
|
+
{
|
|
304
|
+
"path": "src/components/ui/tabs.tsx",
|
|
305
|
+
"type": "registry:ui"
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "tooltip",
|
|
311
|
+
"type": "registry:ui",
|
|
312
|
+
"title": "Tooltip",
|
|
313
|
+
"description": "A short label on hover or focus",
|
|
314
|
+
"dependencies": [
|
|
315
|
+
"@radix-ui/react-tooltip@^1.2.16"
|
|
316
|
+
],
|
|
317
|
+
"registryDependencies": [
|
|
318
|
+
"utils",
|
|
319
|
+
"text"
|
|
320
|
+
],
|
|
321
|
+
"files": [
|
|
322
|
+
{
|
|
323
|
+
"path": "src/components/ui/tooltip.tsx",
|
|
324
|
+
"type": "registry:ui"
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "popover",
|
|
330
|
+
"type": "registry:ui",
|
|
331
|
+
"title": "Popover",
|
|
332
|
+
"description": "Floating content anchored to a trigger",
|
|
333
|
+
"dependencies": [
|
|
334
|
+
"@radix-ui/react-popover@^1.1.23"
|
|
335
|
+
],
|
|
336
|
+
"registryDependencies": [
|
|
337
|
+
"utils"
|
|
338
|
+
],
|
|
339
|
+
"files": [
|
|
340
|
+
{
|
|
341
|
+
"path": "src/components/ui/popover.tsx",
|
|
342
|
+
"type": "registry:ui"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "dialog",
|
|
348
|
+
"type": "registry:ui",
|
|
349
|
+
"title": "Dialog",
|
|
350
|
+
"description": "A modal dialog with a title, description and footer",
|
|
351
|
+
"dependencies": [
|
|
352
|
+
"@radix-ui/react-dialog@^1.1.23",
|
|
353
|
+
"lucide-react@^1.51.0"
|
|
354
|
+
],
|
|
355
|
+
"registryDependencies": [
|
|
356
|
+
"utils",
|
|
357
|
+
"heading",
|
|
358
|
+
"text"
|
|
359
|
+
],
|
|
360
|
+
"files": [
|
|
361
|
+
{
|
|
362
|
+
"path": "src/components/ui/dialog.tsx",
|
|
363
|
+
"type": "registry:ui"
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "sheet",
|
|
369
|
+
"type": "registry:ui",
|
|
370
|
+
"title": "Sheet",
|
|
371
|
+
"description": "A panel that slides in from one edge of the screen",
|
|
372
|
+
"dependencies": [
|
|
373
|
+
"@radix-ui/react-dialog@^1.1.23",
|
|
374
|
+
"class-variance-authority@^0.7.1",
|
|
375
|
+
"lucide-react@^1.51.0"
|
|
376
|
+
],
|
|
377
|
+
"registryDependencies": [
|
|
378
|
+
"utils",
|
|
379
|
+
"heading",
|
|
380
|
+
"text"
|
|
381
|
+
],
|
|
382
|
+
"files": [
|
|
383
|
+
{
|
|
384
|
+
"path": "src/components/ui/sheet.tsx",
|
|
385
|
+
"type": "registry:ui"
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "dropdown-menu",
|
|
391
|
+
"type": "registry:ui",
|
|
392
|
+
"title": "Dropdown menu",
|
|
393
|
+
"description": "A menu of actions, checkboxes and radio items",
|
|
394
|
+
"dependencies": [
|
|
395
|
+
"@radix-ui/react-dropdown-menu@^2.1.24",
|
|
396
|
+
"lucide-react@^1.51.0"
|
|
397
|
+
],
|
|
398
|
+
"registryDependencies": [
|
|
399
|
+
"utils",
|
|
400
|
+
"text"
|
|
401
|
+
],
|
|
402
|
+
"files": [
|
|
403
|
+
{
|
|
404
|
+
"path": "src/components/ui/dropdown-menu.tsx",
|
|
405
|
+
"type": "registry:ui"
|
|
406
|
+
}
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "select",
|
|
411
|
+
"type": "registry:ui",
|
|
412
|
+
"title": "Select",
|
|
413
|
+
"description": "A select with OAIZ styling",
|
|
414
|
+
"dependencies": [
|
|
415
|
+
"@radix-ui/react-select@^2.3.7",
|
|
416
|
+
"class-variance-authority@^0.7.1",
|
|
417
|
+
"lucide-react@^1.51.0"
|
|
418
|
+
],
|
|
419
|
+
"registryDependencies": [
|
|
420
|
+
"utils",
|
|
421
|
+
"text"
|
|
422
|
+
],
|
|
423
|
+
"files": [
|
|
424
|
+
{
|
|
425
|
+
"path": "src/components/ui/select.tsx",
|
|
426
|
+
"type": "registry:ui"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"path": "src/lib/csp-nonce.ts",
|
|
430
|
+
"type": "registry:lib"
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"name": "toast",
|
|
436
|
+
"type": "registry:ui",
|
|
437
|
+
"title": "Toast",
|
|
438
|
+
"description": "Toaster, toast() and useToast, which show short notices",
|
|
439
|
+
"dependencies": [
|
|
440
|
+
"@radix-ui/react-toast@^1.2.23",
|
|
441
|
+
"class-variance-authority@^0.7.1",
|
|
442
|
+
"lucide-react@^1.51.0"
|
|
443
|
+
],
|
|
444
|
+
"registryDependencies": [
|
|
445
|
+
"utils",
|
|
446
|
+
"text"
|
|
447
|
+
],
|
|
448
|
+
"files": [
|
|
449
|
+
{
|
|
450
|
+
"path": "src/components/ui/toast.tsx",
|
|
451
|
+
"type": "registry:ui"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"path": "src/components/ui/toaster.tsx",
|
|
455
|
+
"type": "registry:ui"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"path": "src/components/ui/use-toast.tsx",
|
|
459
|
+
"type": "registry:ui"
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
"docs": "Render <Toaster /> once near the root of the app, then call toast({ title, description })."
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "context-menu",
|
|
466
|
+
"type": "registry:ui",
|
|
467
|
+
"title": "Context menu",
|
|
468
|
+
"description": "A menu that opens on right-click, long-press or the Menu key, with the dropdown menu's items",
|
|
469
|
+
"dependencies": [
|
|
470
|
+
"@radix-ui/react-slot@^1.3.3"
|
|
471
|
+
],
|
|
472
|
+
"registryDependencies": [
|
|
473
|
+
"utils",
|
|
474
|
+
"dropdown-menu"
|
|
475
|
+
],
|
|
476
|
+
"files": [
|
|
477
|
+
{
|
|
478
|
+
"path": "src/components/ui/context-menu.tsx",
|
|
479
|
+
"type": "registry:ui"
|
|
480
|
+
}
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "shortcut",
|
|
485
|
+
"type": "registry:ui",
|
|
486
|
+
"title": "Shortcut",
|
|
487
|
+
"description": "Keyboard keys, such as \u2318 K, shown beside an action",
|
|
488
|
+
"registryDependencies": [
|
|
489
|
+
"utils",
|
|
490
|
+
"text"
|
|
491
|
+
],
|
|
492
|
+
"files": [
|
|
493
|
+
{
|
|
494
|
+
"path": "src/components/ui/shortcut.tsx",
|
|
495
|
+
"type": "registry:ui"
|
|
496
|
+
}
|
|
497
|
+
]
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"name": "switch",
|
|
501
|
+
"type": "registry:ui",
|
|
502
|
+
"title": "Switch",
|
|
503
|
+
"description": "An on and off toggle",
|
|
504
|
+
"dependencies": [
|
|
505
|
+
"@radix-ui/react-switch@^1.3.7",
|
|
506
|
+
"class-variance-authority@^0.7.1"
|
|
507
|
+
],
|
|
508
|
+
"registryDependencies": [
|
|
509
|
+
"utils"
|
|
510
|
+
],
|
|
511
|
+
"files": [
|
|
512
|
+
{
|
|
513
|
+
"path": "src/components/ui/switch.tsx",
|
|
514
|
+
"type": "registry:ui"
|
|
515
|
+
}
|
|
516
|
+
]
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "card",
|
|
520
|
+
"type": "registry:ui",
|
|
521
|
+
"title": "Card",
|
|
522
|
+
"description": "A bordered surface with a header, content and footer",
|
|
523
|
+
"registryDependencies": [
|
|
524
|
+
"utils",
|
|
525
|
+
"heading",
|
|
526
|
+
"text"
|
|
527
|
+
],
|
|
528
|
+
"files": [
|
|
529
|
+
{
|
|
530
|
+
"path": "src/components/ui/card.tsx",
|
|
531
|
+
"type": "registry:ui"
|
|
532
|
+
}
|
|
533
|
+
],
|
|
534
|
+
"docs": "Use one surface per group of content; never a card inside a card."
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"name": "segmented-control",
|
|
538
|
+
"type": "registry:ui",
|
|
539
|
+
"title": "Segmented control",
|
|
540
|
+
"description": "Two to five options shown side by side, one chosen",
|
|
541
|
+
"registryDependencies": [
|
|
542
|
+
"utils",
|
|
543
|
+
"text"
|
|
544
|
+
],
|
|
545
|
+
"files": [
|
|
546
|
+
{
|
|
547
|
+
"path": "src/components/ui/segmented-control.tsx",
|
|
548
|
+
"type": "registry:ui"
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"name": "progress",
|
|
554
|
+
"type": "registry:ui",
|
|
555
|
+
"title": "Progress",
|
|
556
|
+
"description": "A bar for a value from 0 to 100",
|
|
557
|
+
"dependencies": [
|
|
558
|
+
"@radix-ui/react-progress@^1.1.16"
|
|
559
|
+
],
|
|
560
|
+
"registryDependencies": [
|
|
561
|
+
"utils"
|
|
562
|
+
],
|
|
563
|
+
"files": [
|
|
564
|
+
{
|
|
565
|
+
"path": "src/components/ui/progress.tsx",
|
|
566
|
+
"type": "registry:ui"
|
|
567
|
+
}
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"name": "avatar-group",
|
|
572
|
+
"type": "registry:ui",
|
|
573
|
+
"title": "Avatar group",
|
|
574
|
+
"description": "Several people as overlapping avatars with a +N count",
|
|
575
|
+
"dependencies": [
|
|
576
|
+
"@radix-ui/react-avatar@^1.2.6",
|
|
577
|
+
"class-variance-authority@^0.7.1"
|
|
578
|
+
],
|
|
579
|
+
"registryDependencies": [
|
|
580
|
+
"utils",
|
|
581
|
+
"avatar",
|
|
582
|
+
"text"
|
|
583
|
+
],
|
|
584
|
+
"files": [
|
|
585
|
+
{
|
|
586
|
+
"path": "src/components/ui/avatar-group.tsx",
|
|
587
|
+
"type": "registry:ui"
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
"docs": "Use it for assignees, approvers or who a record is shared with; pass label, such as \"Assignees\"."
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"name": "progress-ring",
|
|
594
|
+
"type": "registry:ui",
|
|
595
|
+
"title": "Progress ring",
|
|
596
|
+
"description": "Progress towards a goal as a ring with the value in the middle",
|
|
597
|
+
"dependencies": [
|
|
598
|
+
"class-variance-authority@^0.7.1"
|
|
599
|
+
],
|
|
600
|
+
"registryDependencies": [
|
|
601
|
+
"utils",
|
|
602
|
+
"text"
|
|
603
|
+
],
|
|
604
|
+
"files": [
|
|
605
|
+
{
|
|
606
|
+
"path": "src/components/ui/progress-ring.tsx",
|
|
607
|
+
"type": "registry:ui"
|
|
608
|
+
}
|
|
609
|
+
],
|
|
610
|
+
"docs": "Use it for a target, a quota or a checklist; a bar (Progress) suits a long row."
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "scroll-fade",
|
|
614
|
+
"type": "registry:ui",
|
|
615
|
+
"title": "Scroll fade",
|
|
616
|
+
"description": "A scrolling area whose edges fade where more content waits",
|
|
617
|
+
"registryDependencies": [
|
|
618
|
+
"utils"
|
|
619
|
+
],
|
|
620
|
+
"files": [
|
|
621
|
+
{
|
|
622
|
+
"path": "src/components/ui/scroll-fade.tsx",
|
|
623
|
+
"type": "registry:ui"
|
|
624
|
+
}
|
|
625
|
+
]
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "tree-view",
|
|
629
|
+
"type": "registry:ui",
|
|
630
|
+
"title": "Tree view",
|
|
631
|
+
"description": "Nested items in the ARIA tree pattern, with arrow keys and type-ahead",
|
|
632
|
+
"dependencies": [
|
|
633
|
+
"lucide-react@^1.51.0"
|
|
634
|
+
],
|
|
635
|
+
"registryDependencies": [
|
|
636
|
+
"utils",
|
|
637
|
+
"text"
|
|
638
|
+
],
|
|
639
|
+
"files": [
|
|
640
|
+
{
|
|
641
|
+
"path": "src/components/ui/tree-view.tsx",
|
|
642
|
+
"type": "registry:ui"
|
|
643
|
+
}
|
|
644
|
+
],
|
|
645
|
+
"docs": "Use it for folders, categories or org units; read the rows with a parent column and build the nodes from them."
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "slider",
|
|
649
|
+
"type": "registry:ui",
|
|
650
|
+
"title": "Slider",
|
|
651
|
+
"description": "A value or range picked by dragging",
|
|
652
|
+
"dependencies": [
|
|
653
|
+
"@radix-ui/react-slider@^1.4.7"
|
|
654
|
+
],
|
|
655
|
+
"registryDependencies": [
|
|
656
|
+
"utils"
|
|
657
|
+
],
|
|
658
|
+
"files": [
|
|
659
|
+
{
|
|
660
|
+
"path": "src/components/ui/slider.tsx",
|
|
661
|
+
"type": "registry:ui"
|
|
662
|
+
}
|
|
663
|
+
]
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"name": "breadcrumb",
|
|
667
|
+
"type": "registry:ui",
|
|
668
|
+
"title": "Breadcrumb",
|
|
669
|
+
"description": "Where the page sits, as links up to it",
|
|
670
|
+
"dependencies": [
|
|
671
|
+
"@radix-ui/react-slot@^1.3.3",
|
|
672
|
+
"lucide-react@^1.51.0"
|
|
673
|
+
],
|
|
674
|
+
"registryDependencies": [
|
|
675
|
+
"utils",
|
|
676
|
+
"heading"
|
|
677
|
+
],
|
|
678
|
+
"files": [
|
|
679
|
+
{
|
|
680
|
+
"path": "src/components/ui/breadcrumb.tsx",
|
|
681
|
+
"type": "registry:ui"
|
|
682
|
+
}
|
|
683
|
+
]
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"name": "accordion",
|
|
687
|
+
"type": "registry:ui",
|
|
688
|
+
"title": "Accordion",
|
|
689
|
+
"description": "Sections that open one or several at a time",
|
|
690
|
+
"dependencies": [
|
|
691
|
+
"@radix-ui/react-accordion@^1.2.20",
|
|
692
|
+
"lucide-react@^1.51.0"
|
|
693
|
+
],
|
|
694
|
+
"registryDependencies": [
|
|
695
|
+
"utils",
|
|
696
|
+
"heading",
|
|
697
|
+
"text"
|
|
698
|
+
],
|
|
699
|
+
"files": [
|
|
700
|
+
{
|
|
701
|
+
"path": "src/components/ui/accordion.tsx",
|
|
702
|
+
"type": "registry:ui"
|
|
703
|
+
}
|
|
704
|
+
]
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"name": "collapsible",
|
|
708
|
+
"type": "registry:ui",
|
|
709
|
+
"title": "Collapsible",
|
|
710
|
+
"description": "One section that opens and closes",
|
|
711
|
+
"dependencies": [
|
|
712
|
+
"@radix-ui/react-collapsible@^1.1.20"
|
|
713
|
+
],
|
|
714
|
+
"registryDependencies": [
|
|
715
|
+
"utils"
|
|
716
|
+
],
|
|
717
|
+
"files": [
|
|
718
|
+
{
|
|
719
|
+
"path": "src/components/ui/collapsible.tsx",
|
|
720
|
+
"type": "registry:ui"
|
|
721
|
+
}
|
|
722
|
+
]
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"name": "hover-card",
|
|
726
|
+
"type": "registry:ui",
|
|
727
|
+
"title": "Hover card",
|
|
728
|
+
"description": "A preview shown while a link is hovered or focused",
|
|
729
|
+
"dependencies": [
|
|
730
|
+
"@radix-ui/react-hover-card@^1.1.23"
|
|
731
|
+
],
|
|
732
|
+
"registryDependencies": [
|
|
733
|
+
"utils"
|
|
734
|
+
],
|
|
735
|
+
"files": [
|
|
736
|
+
{
|
|
737
|
+
"path": "src/components/ui/hover-card.tsx",
|
|
738
|
+
"type": "registry:ui"
|
|
739
|
+
}
|
|
740
|
+
],
|
|
741
|
+
"docs": "Keep what it shows reachable another way: a touch screen has no hover."
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"name": "count-up",
|
|
745
|
+
"type": "registry:ui",
|
|
746
|
+
"title": "Count up",
|
|
747
|
+
"description": "A number that counts to its new value, or shows it at once under reduced motion",
|
|
748
|
+
"registryDependencies": [
|
|
749
|
+
"utils",
|
|
750
|
+
"use-breakpoint"
|
|
751
|
+
],
|
|
752
|
+
"files": [
|
|
753
|
+
{
|
|
754
|
+
"path": "src/components/ui/count-up.tsx",
|
|
755
|
+
"type": "registry:ui"
|
|
756
|
+
}
|
|
757
|
+
]
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"name": "bottom-navigation",
|
|
761
|
+
"type": "registry:ui",
|
|
762
|
+
"title": "Bottom navigation",
|
|
763
|
+
"description": "A phone's tab bar of two to five destinations",
|
|
764
|
+
"dependencies": [
|
|
765
|
+
"@radix-ui/react-slot@^1.3.3"
|
|
766
|
+
],
|
|
767
|
+
"registryDependencies": [
|
|
768
|
+
"utils",
|
|
769
|
+
"text"
|
|
770
|
+
],
|
|
771
|
+
"files": [
|
|
772
|
+
{
|
|
773
|
+
"path": "src/components/ui/bottom-navigation.tsx",
|
|
774
|
+
"type": "registry:ui"
|
|
775
|
+
}
|
|
776
|
+
]
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"name": "oaiz-data",
|
|
780
|
+
"type": "registry:hook",
|
|
781
|
+
"title": "OAIZ data hooks",
|
|
782
|
+
"description": "OaizDataProvider, useRows, usePagedRows, useRow, useInsertRow, useUpdateRow, useDeleteRow, useUndoableDeleteRow and OaizRequestError, which read and write rows over @oaiz/sdk and TanStack Query",
|
|
783
|
+
"dependencies": [
|
|
784
|
+
"@tanstack/react-query@^5.105.3"
|
|
785
|
+
],
|
|
786
|
+
"files": [
|
|
787
|
+
{
|
|
788
|
+
"path": "src/hooks/oaiz-data.tsx",
|
|
789
|
+
"type": "registry:hook"
|
|
790
|
+
}
|
|
791
|
+
],
|
|
792
|
+
"docs": "Create the @oaiz/sdk client once, at module scope. Wrap the signed-in app in QueryClientProvider with newOaizQueryClient() and OaizDataProvider with the client, the database id and the member's id, which keys the cache. Filter, sort and page in the hooks, not in the browser. Grant the app edit on the database when it writes. useUndoableDeleteRow hides a row at once and sends its delete when the undo window ends; offer its undo() in a toast with a ToastAction."
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"name": "breakpoints",
|
|
796
|
+
"type": "registry:lib",
|
|
797
|
+
"title": "Breakpoints",
|
|
798
|
+
"description": "The breakpoint widths and media queries of the design tokens",
|
|
799
|
+
"files": [
|
|
800
|
+
{
|
|
801
|
+
"path": "src/lib/breakpoints.ts",
|
|
802
|
+
"type": "registry:lib"
|
|
803
|
+
}
|
|
804
|
+
]
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"name": "use-breakpoint",
|
|
808
|
+
"type": "registry:hook",
|
|
809
|
+
"title": "Breakpoint hooks",
|
|
810
|
+
"description": "useBreakpoint, useBreakpointBelow, useIsMobile and useMediaQuery, the JS twins of the mobile:, half:, normal: and ultrawide: variants",
|
|
811
|
+
"registryDependencies": [
|
|
812
|
+
"breakpoints"
|
|
813
|
+
],
|
|
814
|
+
"files": [
|
|
815
|
+
{
|
|
816
|
+
"path": "src/hooks/use-breakpoint.ts",
|
|
817
|
+
"type": "registry:hook"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"path": "src/hooks/use-media-query.ts",
|
|
821
|
+
"type": "registry:hook"
|
|
822
|
+
}
|
|
823
|
+
],
|
|
824
|
+
"docs": "Use a CSS variant when only the look changes; use these when the markup differs, such as a sheet on a phone and a popover elsewhere."
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"name": "use-url-state",
|
|
828
|
+
"type": "registry:hook",
|
|
829
|
+
"title": "URL state",
|
|
830
|
+
"description": "useUrlState, which keeps one value in the page address so that a reload and Back keep it",
|
|
831
|
+
"files": [
|
|
832
|
+
{
|
|
833
|
+
"path": "src/hooks/use-url-state.ts",
|
|
834
|
+
"type": "registry:hook"
|
|
835
|
+
}
|
|
836
|
+
],
|
|
837
|
+
"docs": "Keep the screen and the open record with { history: 'push' }; keep search, filters, sort and page with the default."
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"name": "use-arrivals",
|
|
841
|
+
"type": "registry:hook",
|
|
842
|
+
"title": "Arrivals",
|
|
843
|
+
"description": "useArrivals and ARRIVAL_CLASS, which ease items into a live list without animating what was already there",
|
|
844
|
+
"files": [
|
|
845
|
+
{
|
|
846
|
+
"path": "src/hooks/use-arrivals.ts",
|
|
847
|
+
"type": "registry:hook"
|
|
848
|
+
}
|
|
849
|
+
],
|
|
850
|
+
"docs": "Pass the list's keys; give an item ARRIVAL_CLASS when arrived(key) is true."
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"name": "use-theme",
|
|
854
|
+
"type": "registry:hook",
|
|
855
|
+
"title": "Theme",
|
|
856
|
+
"description": "useTheme and applyStoredTheme, which keep the user's light, dark or system theme in this browser",
|
|
857
|
+
"files": [
|
|
858
|
+
{
|
|
859
|
+
"path": "src/hooks/use-theme.ts",
|
|
860
|
+
"type": "registry:hook"
|
|
861
|
+
}
|
|
862
|
+
],
|
|
863
|
+
"docs": "Call applyStoredTheme() in main.tsx before rendering. AppShell's user menu already offers the choice."
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "format",
|
|
867
|
+
"type": "registry:lib",
|
|
868
|
+
"title": "Format",
|
|
869
|
+
"description": "formatNumber, formatCompact, formatCurrency, formatPercent, formatDate, formatDateTime, formatTime, formatWeekday, formatMonth, formatDay, formatDayRange, formatRelative, localDay and parseLocalDay, which write numbers, money and dates one way",
|
|
870
|
+
"files": [
|
|
871
|
+
{
|
|
872
|
+
"path": "src/lib/format.ts",
|
|
873
|
+
"type": "registry:lib"
|
|
874
|
+
}
|
|
875
|
+
],
|
|
876
|
+
"docs": "Write every amount, date and time on screen with these, in the member's locale. Compare a date column with localDay(), never with toISOString()."
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"name": "oaiz-session",
|
|
880
|
+
"type": "registry:hook",
|
|
881
|
+
"title": "OAIZ session hook",
|
|
882
|
+
"description": "useOaizSession, which gives the user signed in to the app, with signIn and signOut, over @oaiz/sdk auth",
|
|
883
|
+
"files": [
|
|
884
|
+
{
|
|
885
|
+
"path": "src/hooks/oaiz-session.tsx",
|
|
886
|
+
"type": "registry:hook"
|
|
887
|
+
}
|
|
888
|
+
],
|
|
889
|
+
"docs": "Pass client.auth of the app's @oaiz/sdk client, created once at module scope."
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"name": "oaiz-chat",
|
|
893
|
+
"type": "registry:hook",
|
|
894
|
+
"title": "OAIZ chat hook",
|
|
895
|
+
"description": "useOaizChat and applyChatEvent, which hold one chat with the app's agent over @oaiz/sdk chat as rows with reasoning and tool input and output, with send, stop, retry, openSession and newChat, and voice with its own tools",
|
|
896
|
+
"files": [
|
|
897
|
+
{
|
|
898
|
+
"path": "src/hooks/oaiz-chat.tsx",
|
|
899
|
+
"type": "registry:hook"
|
|
900
|
+
}
|
|
901
|
+
],
|
|
902
|
+
"docs": "Pass client.chat of the app's @oaiz/sdk client, created once at module scope, with systemPrompt and the tools each message may call. client.chat.tools() lists them. The turn runs them without approval. To offer voice, pass voice with the tools a spoken turn may call; the chat's tools do not carry over. Voice hears the room and a named write tool runs at once on what it heard, so name read tools. A message typed during a call uses the chat's tools. A browser refuses the microphone in a frame, so voice runs when the app opens in its own tab."
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"name": "sign-in",
|
|
906
|
+
"type": "registry:component",
|
|
907
|
+
"title": "Sign-in screen",
|
|
908
|
+
"description": "SignInScreen and SessionGate, which show a sign-in card until a user is signed in, then the app",
|
|
909
|
+
"registryDependencies": [
|
|
910
|
+
"utils",
|
|
911
|
+
"alert",
|
|
912
|
+
"button",
|
|
913
|
+
"heading",
|
|
914
|
+
"skeleton",
|
|
915
|
+
"text",
|
|
916
|
+
"oaiz-session"
|
|
917
|
+
],
|
|
918
|
+
"files": [
|
|
919
|
+
{
|
|
920
|
+
"path": "src/components/sign-in.tsx",
|
|
921
|
+
"type": "registry:component"
|
|
922
|
+
}
|
|
923
|
+
],
|
|
924
|
+
"docs": "Wrap the app in <SessionGate auth={client.auth}>{({ user, signOut }) => <App />}</SessionGate>."
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
"name": "app-shell",
|
|
928
|
+
"type": "registry:component",
|
|
929
|
+
"title": "App shell",
|
|
930
|
+
"description": "A sidebar with a search button and sections of navigation, left out with fewer than two nav items, a header with the title, actions and the user menu, the command palette on \u2318K, an inset page panel, and a sheet on narrow screens",
|
|
931
|
+
"dependencies": [
|
|
932
|
+
"lucide-react@^1.51.0"
|
|
933
|
+
],
|
|
934
|
+
"registryDependencies": [
|
|
935
|
+
"utils",
|
|
936
|
+
"command-palette",
|
|
937
|
+
"avatar",
|
|
938
|
+
"button",
|
|
939
|
+
"dropdown-menu",
|
|
940
|
+
"heading",
|
|
941
|
+
"sheet",
|
|
942
|
+
"text",
|
|
943
|
+
"bottom-navigation",
|
|
944
|
+
"use-theme"
|
|
945
|
+
],
|
|
946
|
+
"files": [
|
|
947
|
+
{
|
|
948
|
+
"path": "src/components/app-shell.tsx",
|
|
949
|
+
"type": "registry:component"
|
|
950
|
+
}
|
|
951
|
+
],
|
|
952
|
+
"docs": "Prefer sidebarAppearance=\"inverted\" for contrasting navigation; customise --role-sidebar-primary and --role-sidebar-primary-foreground independently of the page primary pair. Mark the current page with active: true on its nav item; pass user and onSignOut from SessionGate; pass the app's actions and records as commands, and read matching records in onCommandSearch."
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"name": "page-header",
|
|
956
|
+
"type": "registry:component",
|
|
957
|
+
"title": "Page header",
|
|
958
|
+
"description": "One page title, a muted summary and one primary action",
|
|
959
|
+
"registryDependencies": [
|
|
960
|
+
"utils",
|
|
961
|
+
"heading",
|
|
962
|
+
"text"
|
|
963
|
+
],
|
|
964
|
+
"files": [
|
|
965
|
+
{
|
|
966
|
+
"path": "src/components/page-header.tsx",
|
|
967
|
+
"type": "registry:component"
|
|
968
|
+
}
|
|
969
|
+
],
|
|
970
|
+
"docs": "Use it when AppShell has no title; pass an sm Button as the action."
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"name": "status-dot",
|
|
974
|
+
"type": "registry:component",
|
|
975
|
+
"title": "Status dot",
|
|
976
|
+
"description": "A status as plain text with a small coloured dot",
|
|
977
|
+
"registryDependencies": [
|
|
978
|
+
"utils"
|
|
979
|
+
],
|
|
980
|
+
"files": [
|
|
981
|
+
{
|
|
982
|
+
"path": "src/components/status-dot.tsx",
|
|
983
|
+
"type": "registry:component"
|
|
984
|
+
}
|
|
985
|
+
],
|
|
986
|
+
"docs": "Use it for status in tables and on cards; keep a tone other than neutral for state that needs attention."
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"name": "metrics",
|
|
990
|
+
"type": "registry:component",
|
|
991
|
+
"title": "Metrics",
|
|
992
|
+
"description": "The figures that head a screen, as one compact row",
|
|
993
|
+
"registryDependencies": [
|
|
994
|
+
"skeleton",
|
|
995
|
+
"text",
|
|
996
|
+
"count-up"
|
|
997
|
+
],
|
|
998
|
+
"files": [
|
|
999
|
+
{
|
|
1000
|
+
"path": "src/components/metrics.tsx",
|
|
1001
|
+
"type": "registry:component"
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"docs": "Compute each figure in SQL, and keep to the few that tell the state of the screen."
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "bar-list",
|
|
1008
|
+
"type": "registry:component",
|
|
1009
|
+
"title": "Bar list",
|
|
1010
|
+
"description": "Amounts to compare, one bar to a row, that reflow on a phone",
|
|
1011
|
+
"registryDependencies": [
|
|
1012
|
+
"utils",
|
|
1013
|
+
"status-dot"
|
|
1014
|
+
],
|
|
1015
|
+
"files": [
|
|
1016
|
+
{
|
|
1017
|
+
"path": "src/components/bar-list.tsx",
|
|
1018
|
+
"type": "registry:component"
|
|
1019
|
+
}
|
|
1020
|
+
],
|
|
1021
|
+
"docs": "Compute the amounts in SQL. Give a status its StatusDot tone."
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"name": "charts",
|
|
1025
|
+
"type": "registry:component",
|
|
1026
|
+
"title": "Charts",
|
|
1027
|
+
"description": "LineChart, StackedBarChart and Sparkline, which show values over time, totals made of parts and a small trend in the theme's chart colours",
|
|
1028
|
+
"registryDependencies": [
|
|
1029
|
+
"utils",
|
|
1030
|
+
"text",
|
|
1031
|
+
"button",
|
|
1032
|
+
"table",
|
|
1033
|
+
"collapsible"
|
|
1034
|
+
],
|
|
1035
|
+
"files": [
|
|
1036
|
+
{
|
|
1037
|
+
"path": "src/components/charts.tsx",
|
|
1038
|
+
"type": "registry:component"
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
"docs": "Compute the series in SQL, one row per point. Pass formatValue, such as (v) => formatCompact(v), and keep to five series or fewer."
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"name": "record-name",
|
|
1045
|
+
"type": "registry:component",
|
|
1046
|
+
"title": "Record name",
|
|
1047
|
+
"description": "The name of a record after a small mark of its initials",
|
|
1048
|
+
"registryDependencies": [
|
|
1049
|
+
"utils",
|
|
1050
|
+
"avatar"
|
|
1051
|
+
],
|
|
1052
|
+
"files": [
|
|
1053
|
+
{
|
|
1054
|
+
"path": "src/components/record-name.tsx",
|
|
1055
|
+
"type": "registry:component"
|
|
1056
|
+
}
|
|
1057
|
+
],
|
|
1058
|
+
"docs": "Use it in the first column of a list of people or customers; round for a person."
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"name": "empty-state",
|
|
1062
|
+
"type": "registry:component",
|
|
1063
|
+
"title": "Empty state",
|
|
1064
|
+
"description": "What belongs in an empty place, with the action that adds it",
|
|
1065
|
+
"registryDependencies": [
|
|
1066
|
+
"utils",
|
|
1067
|
+
"text"
|
|
1068
|
+
],
|
|
1069
|
+
"files": [
|
|
1070
|
+
{
|
|
1071
|
+
"path": "src/components/empty-state.tsx",
|
|
1072
|
+
"type": "registry:component"
|
|
1073
|
+
}
|
|
1074
|
+
],
|
|
1075
|
+
"docs": "Pass it as DataTable's empty, or in place of an empty list."
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "data-table",
|
|
1079
|
+
"type": "registry:component",
|
|
1080
|
+
"title": "Data table",
|
|
1081
|
+
"description": "Rows in columns with sortable headers, row selection, row click, a pager and a footer, and a grid variant with cell borders and a sticky first column",
|
|
1082
|
+
"registryDependencies": [
|
|
1083
|
+
"utils",
|
|
1084
|
+
"table",
|
|
1085
|
+
"skeleton",
|
|
1086
|
+
"alert",
|
|
1087
|
+
"button",
|
|
1088
|
+
"checkbox",
|
|
1089
|
+
"text",
|
|
1090
|
+
"error-state",
|
|
1091
|
+
"collection-controls",
|
|
1092
|
+
"popover",
|
|
1093
|
+
"dropdown-menu",
|
|
1094
|
+
"label"
|
|
1095
|
+
],
|
|
1096
|
+
"files": [
|
|
1097
|
+
{
|
|
1098
|
+
"path": "src/components/data-table.tsx",
|
|
1099
|
+
"type": "registry:component"
|
|
1100
|
+
}
|
|
1101
|
+
],
|
|
1102
|
+
"docs": "Pass usePagedRows(table, { page, pageSize, orderBy, ascending, filters }).data to rows and page, and keep sort, page and selection in state.",
|
|
1103
|
+
"dependencies": [
|
|
1104
|
+
"lucide-react@^1.51.0"
|
|
1105
|
+
]
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"name": "record-form",
|
|
1109
|
+
"type": "registry:component",
|
|
1110
|
+
"title": "Record form",
|
|
1111
|
+
"description": "One control per field, with text, number, email, date, textarea and select fields and an error beside each wrong field",
|
|
1112
|
+
"registryDependencies": [
|
|
1113
|
+
"utils",
|
|
1114
|
+
"button",
|
|
1115
|
+
"input",
|
|
1116
|
+
"label",
|
|
1117
|
+
"alert",
|
|
1118
|
+
"select",
|
|
1119
|
+
"text",
|
|
1120
|
+
"textarea",
|
|
1121
|
+
"form-field"
|
|
1122
|
+
],
|
|
1123
|
+
"files": [
|
|
1124
|
+
{
|
|
1125
|
+
"path": "src/components/record-form.tsx",
|
|
1126
|
+
"type": "registry:component"
|
|
1127
|
+
}
|
|
1128
|
+
],
|
|
1129
|
+
"docs": "Pass useInsertRow(table).mutateAsync, isPending and error to RecordForm. It clears when the insert resolves and keeps the values when it fails."
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"name": "stepper",
|
|
1133
|
+
"type": "registry:component",
|
|
1134
|
+
"title": "Stepper",
|
|
1135
|
+
"description": "The steps of a form in several parts as done, current and upcoming, with done steps to go back to, and a step count and a progress bar on a phone",
|
|
1136
|
+
"dependencies": [
|
|
1137
|
+
"lucide-react@^1.51.0"
|
|
1138
|
+
],
|
|
1139
|
+
"registryDependencies": [
|
|
1140
|
+
"utils",
|
|
1141
|
+
"progress",
|
|
1142
|
+
"text",
|
|
1143
|
+
"button"
|
|
1144
|
+
],
|
|
1145
|
+
"files": [
|
|
1146
|
+
{
|
|
1147
|
+
"path": "src/components/stepper.tsx",
|
|
1148
|
+
"type": "registry:component"
|
|
1149
|
+
}
|
|
1150
|
+
],
|
|
1151
|
+
"docs": "Keep the step in useUrlState and pass it as current; pass onStepSelect to let a member go back to a done step."
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"name": "line-items",
|
|
1155
|
+
"type": "registry:component",
|
|
1156
|
+
"title": "Line items",
|
|
1157
|
+
"description": "Editable lines of an order, quote or invoice with quantity, unit price, tax and each line's amount, a subtotal, tax and total footer and cards on a phone, and lineItemTotals, which adds lines up in whole minor units",
|
|
1158
|
+
"registryDependencies": [
|
|
1159
|
+
"utils",
|
|
1160
|
+
"button",
|
|
1161
|
+
"input",
|
|
1162
|
+
"label",
|
|
1163
|
+
"skeleton",
|
|
1164
|
+
"text",
|
|
1165
|
+
"format",
|
|
1166
|
+
"use-breakpoint",
|
|
1167
|
+
"table"
|
|
1168
|
+
],
|
|
1169
|
+
"files": [
|
|
1170
|
+
{
|
|
1171
|
+
"path": "src/components/line-items.tsx",
|
|
1172
|
+
"type": "registry:component"
|
|
1173
|
+
}
|
|
1174
|
+
],
|
|
1175
|
+
"docs": "Map line rows to LineItem, keep edits in state with onChange and write them when the member saves (check lineItemsValid first); read an order total for a list with lineItemTotals(lines, currency).",
|
|
1176
|
+
"dependencies": [
|
|
1177
|
+
"lucide-react@^1.51.0"
|
|
1178
|
+
]
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"name": "date-input",
|
|
1182
|
+
"type": "registry:component",
|
|
1183
|
+
"title": "Date input",
|
|
1184
|
+
"description": "DateInput and DateRangeInput, which pick a day or a span of days with the browser's own date picker",
|
|
1185
|
+
"registryDependencies": [
|
|
1186
|
+
"utils",
|
|
1187
|
+
"input",
|
|
1188
|
+
"label",
|
|
1189
|
+
"text",
|
|
1190
|
+
"form-field",
|
|
1191
|
+
"select"
|
|
1192
|
+
],
|
|
1193
|
+
"files": [
|
|
1194
|
+
{
|
|
1195
|
+
"path": "src/components/date-input.tsx",
|
|
1196
|
+
"type": "registry:component"
|
|
1197
|
+
}
|
|
1198
|
+
],
|
|
1199
|
+
"docs": "The value is the member's day as YYYY-MM-DD, as a date column holds it; format it on screen with formatDate().",
|
|
1200
|
+
"dependencies": [
|
|
1201
|
+
"temporal-polyfill@1.0.8"
|
|
1202
|
+
]
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"name": "calendar-view",
|
|
1206
|
+
"type": "registry:component",
|
|
1207
|
+
"title": "Calendar view",
|
|
1208
|
+
"description": "CalendarView and CalendarLegend, which show a month grid from Monday and a week by the hour, with events coloured by chart colour, \"+N more\", arrow-key days and an agenda list on a phone, and the local-day maths they use",
|
|
1209
|
+
"dependencies": [
|
|
1210
|
+
"lucide-react@^1.51.0",
|
|
1211
|
+
"temporal-polyfill@1.0.8"
|
|
1212
|
+
],
|
|
1213
|
+
"registryDependencies": [
|
|
1214
|
+
"utils",
|
|
1215
|
+
"alert",
|
|
1216
|
+
"button",
|
|
1217
|
+
"heading",
|
|
1218
|
+
"popover",
|
|
1219
|
+
"skeleton",
|
|
1220
|
+
"text",
|
|
1221
|
+
"empty-state",
|
|
1222
|
+
"format",
|
|
1223
|
+
"use-breakpoint",
|
|
1224
|
+
"error-state",
|
|
1225
|
+
"date-input",
|
|
1226
|
+
"label",
|
|
1227
|
+
"select"
|
|
1228
|
+
],
|
|
1229
|
+
"files": [
|
|
1230
|
+
{
|
|
1231
|
+
"path": "src/components/calendar-view.tsx",
|
|
1232
|
+
"type": "registry:component"
|
|
1233
|
+
}
|
|
1234
|
+
],
|
|
1235
|
+
"docs": "Read the rows that overlap visibleRange(view, date) (starts_at lt to, ends_at gt from), map each to { id, title, start, end, allDay, color }, and keep view and date in useUrlState; findOverlaps() checks a new booking against a resource's rows."
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"name": "filter-bar",
|
|
1239
|
+
"type": "registry:component",
|
|
1240
|
+
"title": "Filter bar",
|
|
1241
|
+
"description": "FilterBar and toRowFilters, which turn a search box and a Filter menu (or the F key) that adds a filter chip per field into query filters",
|
|
1242
|
+
"dependencies": [
|
|
1243
|
+
"cmdk@^1.1.1",
|
|
1244
|
+
"lucide-react@^1.51.0"
|
|
1245
|
+
],
|
|
1246
|
+
"registryDependencies": [
|
|
1247
|
+
"utils",
|
|
1248
|
+
"button",
|
|
1249
|
+
"command-palette",
|
|
1250
|
+
"input",
|
|
1251
|
+
"popover",
|
|
1252
|
+
"text",
|
|
1253
|
+
"sheet",
|
|
1254
|
+
"use-breakpoint"
|
|
1255
|
+
],
|
|
1256
|
+
"files": [
|
|
1257
|
+
{
|
|
1258
|
+
"path": "src/components/filter-bar.tsx",
|
|
1259
|
+
"type": "registry:component"
|
|
1260
|
+
}
|
|
1261
|
+
],
|
|
1262
|
+
"docs": "Keep FilterValues in state and pass toRowFilters(value, { searchColumn }) to useRows or usePagedRows as filters."
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"name": "record-detail",
|
|
1266
|
+
"type": "registry:component",
|
|
1267
|
+
"title": "Record detail",
|
|
1268
|
+
"description": "RecordDetail and RecordDetailDialog, which show one record's fields with inline editing, and related records below",
|
|
1269
|
+
"registryDependencies": [
|
|
1270
|
+
"utils",
|
|
1271
|
+
"alert",
|
|
1272
|
+
"heading",
|
|
1273
|
+
"input",
|
|
1274
|
+
"select",
|
|
1275
|
+
"skeleton",
|
|
1276
|
+
"text",
|
|
1277
|
+
"textarea",
|
|
1278
|
+
"dialog",
|
|
1279
|
+
"button",
|
|
1280
|
+
"label"
|
|
1281
|
+
],
|
|
1282
|
+
"files": [
|
|
1283
|
+
{
|
|
1284
|
+
"path": "src/components/record-detail.tsx",
|
|
1285
|
+
"type": "registry:component"
|
|
1286
|
+
}
|
|
1287
|
+
],
|
|
1288
|
+
"docs": "Pass useRow(table, id).data as row and save with useUpdateRow: onSave={(column, value) => update.mutateAsync({ id, values: { [column]: value } })}."
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"name": "activity-timeline",
|
|
1292
|
+
"type": "registry:component",
|
|
1293
|
+
"title": "Activity timeline",
|
|
1294
|
+
"description": "A record's comments and changes, oldest first, with an optional comment box",
|
|
1295
|
+
"registryDependencies": [
|
|
1296
|
+
"utils",
|
|
1297
|
+
"button",
|
|
1298
|
+
"text",
|
|
1299
|
+
"textarea",
|
|
1300
|
+
"record-name",
|
|
1301
|
+
"format",
|
|
1302
|
+
"use-arrivals"
|
|
1303
|
+
],
|
|
1304
|
+
"files": [
|
|
1305
|
+
{
|
|
1306
|
+
"path": "src/components/activity-timeline.tsx",
|
|
1307
|
+
"type": "registry:component"
|
|
1308
|
+
}
|
|
1309
|
+
],
|
|
1310
|
+
"docs": "Read the record's comments and changes from a table of their own; pass onComment={(body) => insert.mutateAsync({ ... })}."
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"name": "board",
|
|
1314
|
+
"type": "registry:component",
|
|
1315
|
+
"title": "Board",
|
|
1316
|
+
"description": "Board and positionBetween, which show cards in columns with a toned dot, a count, a summary and a header action, moved by drag or with Alt and the arrow keys",
|
|
1317
|
+
"dependencies": [
|
|
1318
|
+
"@dnd-kit/core@^6.3.1"
|
|
1319
|
+
],
|
|
1320
|
+
"registryDependencies": [
|
|
1321
|
+
"utils",
|
|
1322
|
+
"alert",
|
|
1323
|
+
"skeleton",
|
|
1324
|
+
"text",
|
|
1325
|
+
"status-dot",
|
|
1326
|
+
"breakpoints",
|
|
1327
|
+
"scroll-fade",
|
|
1328
|
+
"error-state",
|
|
1329
|
+
"dropdown-menu",
|
|
1330
|
+
"button"
|
|
1331
|
+
],
|
|
1332
|
+
"files": [
|
|
1333
|
+
{
|
|
1334
|
+
"path": "src/components/board.tsx",
|
|
1335
|
+
"type": "registry:component"
|
|
1336
|
+
}
|
|
1337
|
+
],
|
|
1338
|
+
"docs": "Give the table a stage column and a numeric position column. Save each move with useUpdateRow: { [stage]: move.toColumn, position: move.position }."
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"name": "command-palette",
|
|
1342
|
+
"type": "registry:component",
|
|
1343
|
+
"title": "Command palette",
|
|
1344
|
+
"description": "CommandPalette and useHotkey, which give a searchable list of actions and records in a dialog, with nested pages, a context chip, a preview pane and page-wide keyboard shortcuts",
|
|
1345
|
+
"dependencies": [
|
|
1346
|
+
"cmdk@^1.1.1",
|
|
1347
|
+
"lucide-react@^1.51.0"
|
|
1348
|
+
],
|
|
1349
|
+
"registryDependencies": [
|
|
1350
|
+
"utils",
|
|
1351
|
+
"dialog",
|
|
1352
|
+
"text"
|
|
1353
|
+
],
|
|
1354
|
+
"files": [
|
|
1355
|
+
{
|
|
1356
|
+
"path": "src/components/command-palette.tsx",
|
|
1357
|
+
"type": "registry:component"
|
|
1358
|
+
}
|
|
1359
|
+
],
|
|
1360
|
+
"docs": "Hold open in state, open it with useHotkey('k', () => setOpen(true), { mod: true }), and pass actions and records as groups. Give an item `items` to open a page, such as Change status \u203a Todo; pass `context` for the record the actions act on."
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"name": "property-picker",
|
|
1364
|
+
"type": "registry:component",
|
|
1365
|
+
"title": "Property picker",
|
|
1366
|
+
"description": "One property of a record, such as status, priority or owner, set from a searchable menu with a chip, row or icon trigger",
|
|
1367
|
+
"dependencies": [
|
|
1368
|
+
"cmdk@^1.1.1",
|
|
1369
|
+
"lucide-react@^1.51.0"
|
|
1370
|
+
],
|
|
1371
|
+
"registryDependencies": [
|
|
1372
|
+
"utils",
|
|
1373
|
+
"popover",
|
|
1374
|
+
"sheet",
|
|
1375
|
+
"use-breakpoint",
|
|
1376
|
+
"error-state",
|
|
1377
|
+
"button"
|
|
1378
|
+
],
|
|
1379
|
+
"files": [
|
|
1380
|
+
{
|
|
1381
|
+
"path": "src/components/property-picker.tsx",
|
|
1382
|
+
"type": "registry:component"
|
|
1383
|
+
}
|
|
1384
|
+
],
|
|
1385
|
+
"docs": "Save the chosen value with useUpdateRow. Pass open and onOpenChange to open it with a hotkey, such as S for status."
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"name": "list-view",
|
|
1389
|
+
"type": "registry:component",
|
|
1390
|
+
"title": "List view",
|
|
1391
|
+
"description": "A dense list of rows in collapsible groups, with J/K focus, X selection, Enter to open, a + per group and a right-click menu",
|
|
1392
|
+
"dependencies": [
|
|
1393
|
+
"lucide-react@^1.51.0"
|
|
1394
|
+
],
|
|
1395
|
+
"registryDependencies": [
|
|
1396
|
+
"utils",
|
|
1397
|
+
"alert",
|
|
1398
|
+
"checkbox",
|
|
1399
|
+
"context-menu",
|
|
1400
|
+
"skeleton",
|
|
1401
|
+
"text",
|
|
1402
|
+
"use-arrivals",
|
|
1403
|
+
"error-state",
|
|
1404
|
+
"button",
|
|
1405
|
+
"collapsible"
|
|
1406
|
+
],
|
|
1407
|
+
"files": [
|
|
1408
|
+
{
|
|
1409
|
+
"path": "src/components/list-view.tsx",
|
|
1410
|
+
"type": "registry:component"
|
|
1411
|
+
}
|
|
1412
|
+
],
|
|
1413
|
+
"docs": "Group the rows from useRows by a column such as status. Use onFocusedChange to point hotkeys at the focused row."
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"name": "card-grid",
|
|
1417
|
+
"type": "registry:component",
|
|
1418
|
+
"title": "Card grid",
|
|
1419
|
+
"description": "Records as cards in a responsive grid, each one button or link with a picture or tinted fallback, a two-line title, a meta line, a status and a figure, with loading, empty, error and open states",
|
|
1420
|
+
"registryDependencies": [
|
|
1421
|
+
"utils",
|
|
1422
|
+
"alert",
|
|
1423
|
+
"skeleton",
|
|
1424
|
+
"text",
|
|
1425
|
+
"error-state",
|
|
1426
|
+
"button",
|
|
1427
|
+
"checkbox"
|
|
1428
|
+
],
|
|
1429
|
+
"files": [
|
|
1430
|
+
{
|
|
1431
|
+
"path": "src/components/card-grid.tsx",
|
|
1432
|
+
"type": "registry:component"
|
|
1433
|
+
}
|
|
1434
|
+
],
|
|
1435
|
+
"docs": "Pass useRows or usePagedRows rows with title, meta, image and figure per row, keep the open record in useUrlState and pass its id to selected."
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"name": "split-view",
|
|
1439
|
+
"type": "registry:component",
|
|
1440
|
+
"title": "Split view",
|
|
1441
|
+
"description": "A list and the record opened from it side by side, each pane scrolling on its own, with the record in place of the list and a Back button on a phone",
|
|
1442
|
+
"dependencies": [
|
|
1443
|
+
"lucide-react@^1.51.0"
|
|
1444
|
+
],
|
|
1445
|
+
"registryDependencies": [
|
|
1446
|
+
"utils",
|
|
1447
|
+
"button",
|
|
1448
|
+
"use-breakpoint"
|
|
1449
|
+
],
|
|
1450
|
+
"files": [
|
|
1451
|
+
{
|
|
1452
|
+
"path": "src/components/split-view.tsx",
|
|
1453
|
+
"type": "registry:component"
|
|
1454
|
+
}
|
|
1455
|
+
],
|
|
1456
|
+
"docs": "Keep the open record id in useUrlState, pass the list as list and the open record as detail, and clear the id in onBack."
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"name": "orb-spinner",
|
|
1460
|
+
"type": "registry:ui",
|
|
1461
|
+
"title": "Orb spinner",
|
|
1462
|
+
"description": "The OAIZ four-petal spinner that shows the agent is working",
|
|
1463
|
+
"registryDependencies": [
|
|
1464
|
+
"utils"
|
|
1465
|
+
],
|
|
1466
|
+
"files": [
|
|
1467
|
+
{
|
|
1468
|
+
"path": "src/components/ui/orb-spinner.tsx",
|
|
1469
|
+
"type": "registry:ui"
|
|
1470
|
+
}
|
|
1471
|
+
]
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"name": "voice-orb",
|
|
1475
|
+
"type": "registry:ui",
|
|
1476
|
+
"title": "Voice orb",
|
|
1477
|
+
"description": "The OAIZ voice orb, a drifting mesh that swells with the voice model's loudness",
|
|
1478
|
+
"registryDependencies": [
|
|
1479
|
+
"utils",
|
|
1480
|
+
"theme"
|
|
1481
|
+
],
|
|
1482
|
+
"files": [
|
|
1483
|
+
{
|
|
1484
|
+
"path": "src/components/ui/voice-orb.tsx",
|
|
1485
|
+
"type": "registry:ui"
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"path": "src/lib/speech-level.ts",
|
|
1489
|
+
"type": "registry:lib"
|
|
1490
|
+
}
|
|
1491
|
+
]
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
"name": "shimmer-text",
|
|
1495
|
+
"type": "registry:ui",
|
|
1496
|
+
"title": "Shimmer text",
|
|
1497
|
+
"description": "Text with a moving shimmer, for work in progress",
|
|
1498
|
+
"dependencies": [
|
|
1499
|
+
"@radix-ui/react-slot@^1.3.3",
|
|
1500
|
+
"class-variance-authority@^0.7.1"
|
|
1501
|
+
],
|
|
1502
|
+
"registryDependencies": [
|
|
1503
|
+
"utils"
|
|
1504
|
+
],
|
|
1505
|
+
"files": [
|
|
1506
|
+
{
|
|
1507
|
+
"path": "src/components/ui/shimmer-text.tsx",
|
|
1508
|
+
"type": "registry:ui"
|
|
1509
|
+
}
|
|
1510
|
+
]
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"name": "chat-panel",
|
|
1514
|
+
"type": "registry:component",
|
|
1515
|
+
"title": "Chat panel",
|
|
1516
|
+
"description": "A conversation as in OAIZ chat, with Markdown answers, one collapsing activity row per run of tools, a composer card with a stop button, a scroll-to-latest button, and voice with an orb, mute and the spoken line",
|
|
1517
|
+
"dependencies": [
|
|
1518
|
+
"lucide-react@^1.51.0",
|
|
1519
|
+
"react-markdown@^10.1.0",
|
|
1520
|
+
"remark-breaks@^4.0.0",
|
|
1521
|
+
"remark-gfm@^4.0.1"
|
|
1522
|
+
],
|
|
1523
|
+
"registryDependencies": [
|
|
1524
|
+
"utils",
|
|
1525
|
+
"oaiz-chat",
|
|
1526
|
+
"avatar",
|
|
1527
|
+
"button",
|
|
1528
|
+
"heading",
|
|
1529
|
+
"orb-spinner",
|
|
1530
|
+
"shimmer-text",
|
|
1531
|
+
"skeleton",
|
|
1532
|
+
"text",
|
|
1533
|
+
"voice-orb",
|
|
1534
|
+
"scroll-fade",
|
|
1535
|
+
"table",
|
|
1536
|
+
"textarea",
|
|
1537
|
+
"separator"
|
|
1538
|
+
],
|
|
1539
|
+
"files": [
|
|
1540
|
+
{
|
|
1541
|
+
"path": "src/components/chat-panel.tsx",
|
|
1542
|
+
"type": "registry:component"
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
"path": "src/components/chat-markdown.tsx",
|
|
1546
|
+
"type": "registry:component"
|
|
1547
|
+
}
|
|
1548
|
+
],
|
|
1549
|
+
"docs": "Pass the rows and status of useOaizChat to ChatPanel, with send, stop and retry as onSend, onStop and onRetry. Give its parent a height. Pass empty for the greeting above the centred composer and emptyFooter for suggested questions below it. Pass voice of useOaizChat to offer voice."
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
"name": "form-field",
|
|
1553
|
+
"type": "registry:ui",
|
|
1554
|
+
"title": "Form fields and errors",
|
|
1555
|
+
"description": "FormField, FieldGroup and ErrorSummary, which compose labels, required state, hints and linked validation feedback",
|
|
1556
|
+
"registryDependencies": [
|
|
1557
|
+
"label",
|
|
1558
|
+
"text",
|
|
1559
|
+
"utils"
|
|
1560
|
+
],
|
|
1561
|
+
"files": [
|
|
1562
|
+
{
|
|
1563
|
+
"path": "src/components/ui/form-field.tsx",
|
|
1564
|
+
"type": "registry:ui"
|
|
1565
|
+
}
|
|
1566
|
+
]
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"name": "radio-group",
|
|
1570
|
+
"type": "registry:ui",
|
|
1571
|
+
"title": "Radio group and choice cards",
|
|
1572
|
+
"description": "Native single-choice options with descriptions, required state and card presentation",
|
|
1573
|
+
"registryDependencies": [
|
|
1574
|
+
"form-field",
|
|
1575
|
+
"text",
|
|
1576
|
+
"utils"
|
|
1577
|
+
],
|
|
1578
|
+
"files": [
|
|
1579
|
+
{
|
|
1580
|
+
"path": "src/components/ui/radio-group.tsx",
|
|
1581
|
+
"type": "registry:ui"
|
|
1582
|
+
}
|
|
1583
|
+
]
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
"name": "alert-dialog",
|
|
1587
|
+
"type": "registry:ui",
|
|
1588
|
+
"title": "Alert dialog",
|
|
1589
|
+
"description": "An explicit confirmation dialog with least-destructive initial focus and focus return",
|
|
1590
|
+
"registryDependencies": [
|
|
1591
|
+
"dialog"
|
|
1592
|
+
],
|
|
1593
|
+
"files": [
|
|
1594
|
+
{
|
|
1595
|
+
"path": "src/components/ui/alert-dialog.tsx",
|
|
1596
|
+
"type": "registry:ui"
|
|
1597
|
+
}
|
|
1598
|
+
]
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
"name": "file-upload",
|
|
1602
|
+
"type": "registry:component",
|
|
1603
|
+
"title": "File upload and attachments",
|
|
1604
|
+
"description": "FileUpload and AttachmentList, which give picking, dropping, validation, controlled progress, previews, cancellation and removal, with the upload itself left to the app",
|
|
1605
|
+
"registryDependencies": [
|
|
1606
|
+
"utils",
|
|
1607
|
+
"button",
|
|
1608
|
+
"text",
|
|
1609
|
+
"dialog",
|
|
1610
|
+
"input",
|
|
1611
|
+
"progress",
|
|
1612
|
+
"skeleton"
|
|
1613
|
+
],
|
|
1614
|
+
"files": [
|
|
1615
|
+
{
|
|
1616
|
+
"path": "src/components/file-upload.tsx",
|
|
1617
|
+
"type": "registry:component"
|
|
1618
|
+
}
|
|
1619
|
+
],
|
|
1620
|
+
"dependencies": [
|
|
1621
|
+
"lucide-react@^1.51.0"
|
|
1622
|
+
]
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
"name": "confirm-action",
|
|
1626
|
+
"type": "registry:component",
|
|
1627
|
+
"title": "Confirm action",
|
|
1628
|
+
"description": "A reusable explicit action confirmation with asynchronous pending and failure states",
|
|
1629
|
+
"registryDependencies": [
|
|
1630
|
+
"alert",
|
|
1631
|
+
"alert-dialog",
|
|
1632
|
+
"button"
|
|
1633
|
+
],
|
|
1634
|
+
"files": [
|
|
1635
|
+
{
|
|
1636
|
+
"path": "src/components/confirm-action.tsx",
|
|
1637
|
+
"type": "registry:component"
|
|
1638
|
+
}
|
|
1639
|
+
]
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
"name": "save-bar",
|
|
1643
|
+
"type": "registry:component",
|
|
1644
|
+
"title": "Save bar and unsaved changes",
|
|
1645
|
+
"description": "SaveBar and UnsavedChanges, which compose dirty, saving, saved and error states with explicit save, discard and navigation decisions",
|
|
1646
|
+
"registryDependencies": [
|
|
1647
|
+
"utils",
|
|
1648
|
+
"confirm-action",
|
|
1649
|
+
"button",
|
|
1650
|
+
"text"
|
|
1651
|
+
],
|
|
1652
|
+
"files": [
|
|
1653
|
+
{
|
|
1654
|
+
"path": "src/components/save-bar.tsx",
|
|
1655
|
+
"type": "registry:component"
|
|
1656
|
+
}
|
|
1657
|
+
]
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"name": "collection-controls",
|
|
1661
|
+
"type": "registry:component",
|
|
1662
|
+
"title": "Collection controls",
|
|
1663
|
+
"description": "Pager, sorting and BulkActionBar controls for caller-owned paging, sorting and page-versus-all selection",
|
|
1664
|
+
"registryDependencies": [
|
|
1665
|
+
"button",
|
|
1666
|
+
"text",
|
|
1667
|
+
"label",
|
|
1668
|
+
"select",
|
|
1669
|
+
"switch"
|
|
1670
|
+
],
|
|
1671
|
+
"files": [
|
|
1672
|
+
{
|
|
1673
|
+
"path": "src/components/collection-controls.tsx",
|
|
1674
|
+
"type": "registry:component"
|
|
1675
|
+
}
|
|
1676
|
+
]
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
"name": "error-state",
|
|
1680
|
+
"type": "registry:component",
|
|
1681
|
+
"title": "Error state",
|
|
1682
|
+
"description": "A consistent collection error panel with an optional explicit retry, which the app runs",
|
|
1683
|
+
"registryDependencies": [
|
|
1684
|
+
"alert",
|
|
1685
|
+
"button"
|
|
1686
|
+
],
|
|
1687
|
+
"files": [
|
|
1688
|
+
{
|
|
1689
|
+
"path": "src/components/error-state.tsx",
|
|
1690
|
+
"type": "registry:component"
|
|
1691
|
+
}
|
|
1692
|
+
]
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"name": "resizable",
|
|
1696
|
+
"type": "registry:ui",
|
|
1697
|
+
"title": "Resizable panels",
|
|
1698
|
+
"description": "Keyboard and pointer resizing between named panels",
|
|
1699
|
+
"files": [
|
|
1700
|
+
{
|
|
1701
|
+
"path": "src/components/ui/resizable.tsx",
|
|
1702
|
+
"type": "registry:ui"
|
|
1703
|
+
}
|
|
1704
|
+
],
|
|
1705
|
+
"registryDependencies": [
|
|
1706
|
+
"utils"
|
|
1707
|
+
],
|
|
1708
|
+
"dependencies": [
|
|
1709
|
+
"react-resizable-panels@^4.14.2"
|
|
1710
|
+
]
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
"name": "detail-disclosure-section",
|
|
1714
|
+
"type": "registry:ui",
|
|
1715
|
+
"title": "Detail disclosure section",
|
|
1716
|
+
"description": "Collapsible detail sections with caller-localised action labels",
|
|
1717
|
+
"files": [
|
|
1718
|
+
{
|
|
1719
|
+
"path": "src/components/ui/detail-disclosure-section.tsx",
|
|
1720
|
+
"type": "registry:ui"
|
|
1721
|
+
}
|
|
1722
|
+
],
|
|
1723
|
+
"docs": "Supply getToggleLabel for localised accessible action names.",
|
|
1724
|
+
"registryDependencies": [
|
|
1725
|
+
"button",
|
|
1726
|
+
"collapsible",
|
|
1727
|
+
"heading",
|
|
1728
|
+
"text",
|
|
1729
|
+
"utils"
|
|
1730
|
+
],
|
|
1731
|
+
"dependencies": [
|
|
1732
|
+
"lucide-react@^1.51.0"
|
|
1733
|
+
]
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"name": "top-banner",
|
|
1737
|
+
"type": "registry:ui",
|
|
1738
|
+
"title": "Top banner",
|
|
1739
|
+
"description": "Wrapping notices with independent actions and dismissal",
|
|
1740
|
+
"files": [
|
|
1741
|
+
{
|
|
1742
|
+
"path": "src/components/ui/top-banner.tsx",
|
|
1743
|
+
"type": "registry:ui"
|
|
1744
|
+
}
|
|
1745
|
+
],
|
|
1746
|
+
"registryDependencies": [
|
|
1747
|
+
"button",
|
|
1748
|
+
"separator",
|
|
1749
|
+
"text",
|
|
1750
|
+
"utils"
|
|
1751
|
+
],
|
|
1752
|
+
"dependencies": [
|
|
1753
|
+
"class-variance-authority@^0.7.1",
|
|
1754
|
+
"lucide-react@^1.51.0"
|
|
1755
|
+
]
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
"name": "grouped-picker",
|
|
1759
|
+
"type": "registry:component",
|
|
1760
|
+
"title": "Grouped picker",
|
|
1761
|
+
"description": "Category navigation and controlled multiselection with phone detail navigation",
|
|
1762
|
+
"files": [
|
|
1763
|
+
{
|
|
1764
|
+
"path": "src/components/grouped-picker.tsx",
|
|
1765
|
+
"type": "registry:component"
|
|
1766
|
+
}
|
|
1767
|
+
],
|
|
1768
|
+
"registryDependencies": [
|
|
1769
|
+
"button",
|
|
1770
|
+
"checkbox",
|
|
1771
|
+
"heading",
|
|
1772
|
+
"input",
|
|
1773
|
+
"label",
|
|
1774
|
+
"property-picker",
|
|
1775
|
+
"split-view",
|
|
1776
|
+
"text",
|
|
1777
|
+
"utils"
|
|
1778
|
+
],
|
|
1779
|
+
"dependencies": [
|
|
1780
|
+
"lucide-react@^1.51.0"
|
|
1781
|
+
]
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
"name": "time-zone-picker",
|
|
1785
|
+
"type": "registry:component",
|
|
1786
|
+
"title": "Time zone picker",
|
|
1787
|
+
"description": "Searchable IANA time zone selection with offsets",
|
|
1788
|
+
"files": [
|
|
1789
|
+
{
|
|
1790
|
+
"path": "src/components/time-zone-picker.tsx",
|
|
1791
|
+
"type": "registry:component"
|
|
1792
|
+
}
|
|
1793
|
+
],
|
|
1794
|
+
"registryDependencies": [
|
|
1795
|
+
"property-picker"
|
|
1796
|
+
]
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
"name": "text-diff",
|
|
1800
|
+
"type": "registry:component",
|
|
1801
|
+
"title": "Text diff",
|
|
1802
|
+
"description": "Bounded line comparison with addition and deletion labels",
|
|
1803
|
+
"files": [
|
|
1804
|
+
{
|
|
1805
|
+
"path": "src/components/text-diff.tsx",
|
|
1806
|
+
"type": "registry:component"
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
"path": "src/components/text-diff-model.ts",
|
|
1810
|
+
"type": "registry:component"
|
|
1811
|
+
}
|
|
1812
|
+
],
|
|
1813
|
+
"registryDependencies": [
|
|
1814
|
+
"alert",
|
|
1815
|
+
"text",
|
|
1816
|
+
"utils"
|
|
1817
|
+
]
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
"name": "code-editor",
|
|
1821
|
+
"type": "registry:component",
|
|
1822
|
+
"title": "Code editor",
|
|
1823
|
+
"description": "Controlled Python and SQL editing with schema completion and theme tokens",
|
|
1824
|
+
"files": [
|
|
1825
|
+
{
|
|
1826
|
+
"path": "src/components/code-editor.tsx",
|
|
1827
|
+
"type": "registry:component"
|
|
1828
|
+
}
|
|
1829
|
+
],
|
|
1830
|
+
"docs": "Pass labels and SQL schema from the caller. Tab leaves the editor; Mod+Enter invokes onSubmit.",
|
|
1831
|
+
"registryDependencies": [
|
|
1832
|
+
"select",
|
|
1833
|
+
"utils"
|
|
1834
|
+
],
|
|
1835
|
+
"dependencies": [
|
|
1836
|
+
"@codemirror/autocomplete@^6.20.3",
|
|
1837
|
+
"@codemirror/commands@^6.11.1",
|
|
1838
|
+
"@codemirror/lang-python@^6.2.1",
|
|
1839
|
+
"@codemirror/lang-sql@6.10.0",
|
|
1840
|
+
"@codemirror/language@6.13.1",
|
|
1841
|
+
"@codemirror/state@^6.7.6",
|
|
1842
|
+
"@codemirror/view@^6.43.13",
|
|
1843
|
+
"@lezer/highlight@1.2.5"
|
|
1844
|
+
]
|
|
1845
|
+
}
|
|
1846
|
+
]
|
|
1847
|
+
}
|