@hanzo/ui 4.6.0 → 4.8.2

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 (184) hide show
  1. package/assets/general.tsx +1 -1
  2. package/assets/hanzo-logo.tsx +3 -1
  3. package/assets/index.ts +119 -5
  4. package/blocks/auth/index.ts +6 -0
  5. package/blocks/auth/login-2fa.tsx +165 -0
  6. package/blocks/auth/login-basic.tsx +94 -0
  7. package/blocks/auth/login-social.tsx +148 -0
  8. package/blocks/auth/magic-link.tsx +129 -0
  9. package/blocks/auth/password-reset.tsx +97 -0
  10. package/blocks/auth/signup.tsx +157 -0
  11. package/blocks/data-display/activity-feed.tsx +242 -0
  12. package/blocks/data-display/data-table.tsx +235 -0
  13. package/blocks/data-display/stats-grid.tsx +194 -0
  14. package/blocks/ecommerce/checkout.tsx +242 -0
  15. package/blocks/ecommerce/index.ts +7 -0
  16. package/blocks/ecommerce/product-detail.tsx +257 -0
  17. package/blocks/ecommerce/product-grid.tsx +148 -0
  18. package/blocks/ecommerce/shopping-cart.tsx +181 -0
  19. package/blocks/marketing/cta-section.tsx +207 -0
  20. package/blocks/marketing/faq.tsx +159 -0
  21. package/blocks/marketing/features-grid.tsx +156 -0
  22. package/blocks/marketing/hero-section.tsx +192 -0
  23. package/blocks/marketing/index.ts +6 -0
  24. package/blocks/marketing/pricing-table.tsx +121 -0
  25. package/blocks/marketing/testimonials.tsx +196 -0
  26. package/components/index.ts +4 -51
  27. package/dist/index.js +9351 -0
  28. package/dist/index.mjs +9340 -0
  29. package/dist/lib/utils.js +47 -0
  30. package/dist/lib/utils.mjs +28 -0
  31. package/dist/src/utils.js +47 -0
  32. package/dist/src/utils.mjs +28 -0
  33. package/dist/tailwind/index.js +2050 -0
  34. package/dist/tailwind/index.mjs +2019 -0
  35. package/dist/types/index.js +79 -0
  36. package/dist/types/index.mjs +56 -0
  37. package/dist/util/format-text.js +51 -0
  38. package/dist/util/format-text.mjs +32 -0
  39. package/dist/util/index.js +384 -0
  40. package/dist/util/index.mjs +363 -0
  41. package/frameworks/core/index.ts +6 -0
  42. package/frameworks/core/utils/index.ts +64 -0
  43. package/frameworks/react/components/button.tsx +26 -0
  44. package/frameworks/react/components/index.ts +5 -0
  45. package/frameworks/react/hooks/index.ts +5 -0
  46. package/frameworks/react/index.ts +9 -0
  47. package/frameworks/react/package.json +8 -0
  48. package/frameworks/react/utils/index.ts +2 -0
  49. package/frameworks/react-native/index.ts +9 -0
  50. package/frameworks/react-native/package.json +8 -0
  51. package/frameworks/registry.json +371 -0
  52. package/frameworks/setup.sh +69 -0
  53. package/frameworks/svelte/index.ts +9 -0
  54. package/frameworks/svelte/package.json +8 -0
  55. package/frameworks/tracker.json +1854 -0
  56. package/frameworks/vue/index.ts +9 -0
  57. package/frameworks/vue/package.json +8 -0
  58. package/package.json +192 -28
  59. package/primitives/accordion.tsx +1 -1
  60. package/primitives/alert-dialog.tsx +1 -1
  61. package/primitives/alert.tsx +1 -1
  62. package/primitives/avatar.tsx +1 -1
  63. package/primitives/badge.tsx +2 -1
  64. package/primitives/breadcrumb.tsx +1 -1
  65. package/primitives/button.tsx +37 -47
  66. package/primitives/card.tsx +1 -1
  67. package/primitives/carousel.tsx +3 -2
  68. package/primitives/chat/chat-input-area.tsx +5 -4
  69. package/primitives/chat/chat-input.tsx +2 -2
  70. package/primitives/chat/files-preview.tsx +5 -4
  71. package/primitives/chat/message-list.tsx +2 -1
  72. package/primitives/chat/sqlite-preview.tsx +8 -8
  73. package/primitives/checkbox.tsx +2 -1
  74. package/primitives/command.tsx +3 -1
  75. package/primitives/context-menu.tsx +1 -1
  76. package/primitives/dialog.tsx +6 -1
  77. package/primitives/drawer.tsx +4 -1
  78. package/primitives/dropdown-menu.tsx +1 -1
  79. package/primitives/file-uploader.tsx +4 -2
  80. package/primitives/form.tsx +1 -1
  81. package/primitives/hover-card.tsx +1 -1
  82. package/primitives/icons/github.tsx +2 -2
  83. package/primitives/icons/youtube-logo.tsx +1 -1
  84. package/primitives/index-common.ts +7 -6
  85. package/primitives/input-otp.tsx +1 -1
  86. package/primitives/input.tsx +2 -1
  87. package/primitives/label.tsx +2 -1
  88. package/primitives/markdown-preview.tsx +3 -0
  89. package/primitives/mermaid.tsx +13 -18
  90. package/primitives/next/image.tsx +2 -1
  91. package/primitives/next/inline-icon.tsx +14 -14
  92. package/primitives/next/media-stack.tsx +2 -19
  93. package/primitives/pagination.tsx +1 -1
  94. package/primitives/popover.tsx +4 -2
  95. package/primitives/progress.tsx +2 -1
  96. package/primitives/prompt-textarea.tsx +1 -1
  97. package/primitives/radio-group.tsx +1 -1
  98. package/primitives/scroll-area.tsx +1 -1
  99. package/primitives/search-input.tsx +1 -1
  100. package/primitives/select.tsx +1 -1
  101. package/primitives/separator.tsx +2 -1
  102. package/primitives/sheet.tsx +1 -1
  103. package/primitives/skeleton.tsx +1 -0
  104. package/primitives/slider.tsx +2 -1
  105. package/primitives/stepper.tsx +1 -1
  106. package/primitives/switch.tsx +2 -1
  107. package/primitives/table.tsx +1 -1
  108. package/primitives/tabs.tsx +1 -1
  109. package/primitives/textarea.tsx +2 -1
  110. package/primitives/textfield.tsx +1 -0
  111. package/primitives/toggle-group.tsx +1 -1
  112. package/primitives/toggle.tsx +1 -1
  113. package/primitives/tooltip.tsx +1 -1
  114. package/src/hooks/use-copy-clipboard.ts +1 -1
  115. package/src/index-lean.ts +87 -0
  116. package/src/index.ts +54 -0
  117. package/src/registry/api.ts +1 -1
  118. package/src/utils.ts +19 -1
  119. package/tailwind/tailwind.config.hanzo-preset.js +7 -7
  120. package/tailwind/typo-plugin/index.js +1 -1
  121. package/types/animation-def.ts +1 -1
  122. package/types/index.ts +2 -1
  123. package/util/blob.ts +9 -4
  124. package/util/date.ts +2 -1
  125. package/util/format-text.ts +2 -1
  126. package/util/index.ts +103 -0
  127. package/util/spread-to-transform.ts +9 -8
  128. package/MCP-INSTRUCTIONS.md +0 -73
  129. package/README-MCP.md +0 -175
  130. package/dist/button.d.ts +0 -1
  131. package/dist/button.js +0 -1
  132. package/dist/hooks/index.d.ts +0 -7
  133. package/dist/hooks/index.js +0 -7
  134. package/dist/hooks/use-click-away.d.ts +0 -2
  135. package/dist/hooks/use-click-away.js +0 -23
  136. package/dist/hooks/use-combined-refs.d.ts +0 -3
  137. package/dist/hooks/use-combined-refs.js +0 -18
  138. package/dist/hooks/use-copy-clipboard.d.ts +0 -9
  139. package/dist/hooks/use-copy-clipboard.js +0 -21
  140. package/dist/hooks/use-debounce.d.ts +0 -1
  141. package/dist/hooks/use-debounce.js +0 -13
  142. package/dist/hooks/use-fill-ids.d.ts +0 -8
  143. package/dist/hooks/use-fill-ids.js +0 -20
  144. package/dist/hooks/use-map.d.ts +0 -1
  145. package/dist/hooks/use-map.js +0 -20
  146. package/dist/hooks/use-measure.d.ts +0 -8
  147. package/dist/hooks/use-measure.js +0 -25
  148. package/dist/hooks/use-reverse-video-playback.d.ts +0 -1
  149. package/dist/hooks/use-reverse-video-playback.js +0 -41
  150. package/dist/hooks/use-scroll-restoration.d.ts +0 -8
  151. package/dist/hooks/use-scroll-restoration.js +0 -36
  152. package/dist/mcp/enhanced-server.d.ts +0 -29
  153. package/dist/mcp/enhanced-server.js +0 -1128
  154. package/dist/mcp/index.d.ts +0 -28
  155. package/dist/mcp/index.js +0 -436
  156. package/dist/registry/api.d.ts +0 -37
  157. package/dist/registry/api.js +0 -129
  158. package/dist/registry/index.d.ts +0 -353
  159. package/dist/registry/index.js +0 -45
  160. package/dist/utils.d.ts +0 -1
  161. package/dist/utils.js +0 -1
  162. package/environment.d.ts +0 -6
  163. package/public/r/accordion.json +0 -11
  164. package/public/r/alert.json +0 -11
  165. package/public/r/avatar.json +0 -11
  166. package/public/r/badge.json +0 -11
  167. package/public/r/button.json +0 -11
  168. package/public/r/card.json +0 -11
  169. package/public/r/checkbox.json +0 -11
  170. package/public/r/default.json +0 -6
  171. package/public/r/dialog.json +0 -11
  172. package/public/r/input.json +0 -11
  173. package/public/r/label.json +0 -11
  174. package/public/r/new-york.json +0 -6
  175. package/public/r/popover.json +0 -11
  176. package/public/r/select.json +0 -11
  177. package/public/r/table.json +0 -11
  178. package/public/r/tabs.json +0 -11
  179. package/public/r/toast.json +0 -11
  180. package/registry.json +0 -184
  181. package/test/test-registry.js +0 -73
  182. package/test-imports.mjs +0 -19
  183. package/tsconfig.json +0 -22
  184. package/utils.ts +0 -9
@@ -1,353 +0,0 @@
1
- import { z } from "zod";
2
- export declare const fileSchema: z.ZodObject<{
3
- path: z.ZodString;
4
- content: z.ZodOptional<z.ZodString>;
5
- type: z.ZodString;
6
- target: z.ZodOptional<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
8
- type: string;
9
- path: string;
10
- content?: string | undefined;
11
- target?: string | undefined;
12
- }, {
13
- type: string;
14
- path: string;
15
- content?: string | undefined;
16
- target?: string | undefined;
17
- }>;
18
- export declare const registryItemSchema: z.ZodObject<{
19
- name: z.ZodString;
20
- type: z.ZodString;
21
- description: z.ZodOptional<z.ZodString>;
22
- author: z.ZodOptional<z.ZodString>;
23
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24
- devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25
- registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
26
- files: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
- path: z.ZodString;
28
- content: z.ZodOptional<z.ZodString>;
29
- type: z.ZodString;
30
- target: z.ZodOptional<z.ZodString>;
31
- }, "strip", z.ZodTypeAny, {
32
- type: string;
33
- path: string;
34
- content?: string | undefined;
35
- target?: string | undefined;
36
- }, {
37
- type: string;
38
- path: string;
39
- content?: string | undefined;
40
- target?: string | undefined;
41
- }>, "many">>;
42
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
43
- title: z.ZodOptional<z.ZodString>;
44
- cssVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
45
- tailwind: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
46
- category: z.ZodOptional<z.ZodString>;
47
- subcategory: z.ZodOptional<z.ZodString>;
48
- }, "strip", z.ZodTypeAny, {
49
- name: string;
50
- type: string;
51
- title?: string | undefined;
52
- description?: string | undefined;
53
- author?: string | undefined;
54
- dependencies?: string[] | undefined;
55
- devDependencies?: string[] | undefined;
56
- registryDependencies?: string[] | undefined;
57
- files?: {
58
- type: string;
59
- path: string;
60
- content?: string | undefined;
61
- target?: string | undefined;
62
- }[] | undefined;
63
- meta?: Record<string, any> | undefined;
64
- cssVars?: Record<string, any> | undefined;
65
- tailwind?: Record<string, any> | undefined;
66
- category?: string | undefined;
67
- subcategory?: string | undefined;
68
- }, {
69
- name: string;
70
- type: string;
71
- title?: string | undefined;
72
- description?: string | undefined;
73
- author?: string | undefined;
74
- dependencies?: string[] | undefined;
75
- devDependencies?: string[] | undefined;
76
- registryDependencies?: string[] | undefined;
77
- files?: {
78
- type: string;
79
- path: string;
80
- content?: string | undefined;
81
- target?: string | undefined;
82
- }[] | undefined;
83
- meta?: Record<string, any> | undefined;
84
- cssVars?: Record<string, any> | undefined;
85
- tailwind?: Record<string, any> | undefined;
86
- category?: string | undefined;
87
- subcategory?: string | undefined;
88
- }>;
89
- export declare const registrySchema: z.ZodObject<{
90
- $schema: z.ZodOptional<z.ZodString>;
91
- name: z.ZodString;
92
- homepage: z.ZodOptional<z.ZodString>;
93
- style: z.ZodOptional<z.ZodString>;
94
- items: z.ZodArray<z.ZodObject<{
95
- name: z.ZodString;
96
- type: z.ZodString;
97
- description: z.ZodOptional<z.ZodString>;
98
- author: z.ZodOptional<z.ZodString>;
99
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
100
- devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
101
- registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
102
- files: z.ZodOptional<z.ZodArray<z.ZodObject<{
103
- path: z.ZodString;
104
- content: z.ZodOptional<z.ZodString>;
105
- type: z.ZodString;
106
- target: z.ZodOptional<z.ZodString>;
107
- }, "strip", z.ZodTypeAny, {
108
- type: string;
109
- path: string;
110
- content?: string | undefined;
111
- target?: string | undefined;
112
- }, {
113
- type: string;
114
- path: string;
115
- content?: string | undefined;
116
- target?: string | undefined;
117
- }>, "many">>;
118
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
119
- title: z.ZodOptional<z.ZodString>;
120
- cssVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
121
- tailwind: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
122
- category: z.ZodOptional<z.ZodString>;
123
- subcategory: z.ZodOptional<z.ZodString>;
124
- }, "strip", z.ZodTypeAny, {
125
- name: string;
126
- type: string;
127
- title?: string | undefined;
128
- description?: string | undefined;
129
- author?: string | undefined;
130
- dependencies?: string[] | undefined;
131
- devDependencies?: string[] | undefined;
132
- registryDependencies?: string[] | undefined;
133
- files?: {
134
- type: string;
135
- path: string;
136
- content?: string | undefined;
137
- target?: string | undefined;
138
- }[] | undefined;
139
- meta?: Record<string, any> | undefined;
140
- cssVars?: Record<string, any> | undefined;
141
- tailwind?: Record<string, any> | undefined;
142
- category?: string | undefined;
143
- subcategory?: string | undefined;
144
- }, {
145
- name: string;
146
- type: string;
147
- title?: string | undefined;
148
- description?: string | undefined;
149
- author?: string | undefined;
150
- dependencies?: string[] | undefined;
151
- devDependencies?: string[] | undefined;
152
- registryDependencies?: string[] | undefined;
153
- files?: {
154
- type: string;
155
- path: string;
156
- content?: string | undefined;
157
- target?: string | undefined;
158
- }[] | undefined;
159
- meta?: Record<string, any> | undefined;
160
- cssVars?: Record<string, any> | undefined;
161
- tailwind?: Record<string, any> | undefined;
162
- category?: string | undefined;
163
- subcategory?: string | undefined;
164
- }>, "many">;
165
- }, "strip", z.ZodTypeAny, {
166
- name: string;
167
- items: {
168
- name: string;
169
- type: string;
170
- title?: string | undefined;
171
- description?: string | undefined;
172
- author?: string | undefined;
173
- dependencies?: string[] | undefined;
174
- devDependencies?: string[] | undefined;
175
- registryDependencies?: string[] | undefined;
176
- files?: {
177
- type: string;
178
- path: string;
179
- content?: string | undefined;
180
- target?: string | undefined;
181
- }[] | undefined;
182
- meta?: Record<string, any> | undefined;
183
- cssVars?: Record<string, any> | undefined;
184
- tailwind?: Record<string, any> | undefined;
185
- category?: string | undefined;
186
- subcategory?: string | undefined;
187
- }[];
188
- style?: string | undefined;
189
- $schema?: string | undefined;
190
- homepage?: string | undefined;
191
- }, {
192
- name: string;
193
- items: {
194
- name: string;
195
- type: string;
196
- title?: string | undefined;
197
- description?: string | undefined;
198
- author?: string | undefined;
199
- dependencies?: string[] | undefined;
200
- devDependencies?: string[] | undefined;
201
- registryDependencies?: string[] | undefined;
202
- files?: {
203
- type: string;
204
- path: string;
205
- content?: string | undefined;
206
- target?: string | undefined;
207
- }[] | undefined;
208
- meta?: Record<string, any> | undefined;
209
- cssVars?: Record<string, any> | undefined;
210
- tailwind?: Record<string, any> | undefined;
211
- category?: string | undefined;
212
- subcategory?: string | undefined;
213
- }[];
214
- style?: string | undefined;
215
- $schema?: string | undefined;
216
- homepage?: string | undefined;
217
- }>;
218
- export declare const registryWithContentSchema: z.ZodObject<{
219
- $schema: z.ZodOptional<z.ZodString>;
220
- name: z.ZodString;
221
- homepage: z.ZodOptional<z.ZodString>;
222
- style: z.ZodOptional<z.ZodString>;
223
- } & {
224
- items: z.ZodArray<z.ZodObject<{
225
- name: z.ZodString;
226
- type: z.ZodString;
227
- description: z.ZodOptional<z.ZodString>;
228
- author: z.ZodOptional<z.ZodString>;
229
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
230
- devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
231
- registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
232
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
233
- title: z.ZodOptional<z.ZodString>;
234
- cssVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
235
- tailwind: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
236
- category: z.ZodOptional<z.ZodString>;
237
- subcategory: z.ZodOptional<z.ZodString>;
238
- } & {
239
- files: z.ZodArray<z.ZodObject<{
240
- path: z.ZodString;
241
- type: z.ZodString;
242
- target: z.ZodOptional<z.ZodString>;
243
- } & {
244
- content: z.ZodString;
245
- }, "strip", z.ZodTypeAny, {
246
- type: string;
247
- content: string;
248
- path: string;
249
- target?: string | undefined;
250
- }, {
251
- type: string;
252
- content: string;
253
- path: string;
254
- target?: string | undefined;
255
- }>, "many">;
256
- }, "strip", z.ZodTypeAny, {
257
- name: string;
258
- type: string;
259
- files: {
260
- type: string;
261
- content: string;
262
- path: string;
263
- target?: string | undefined;
264
- }[];
265
- title?: string | undefined;
266
- description?: string | undefined;
267
- author?: string | undefined;
268
- dependencies?: string[] | undefined;
269
- devDependencies?: string[] | undefined;
270
- registryDependencies?: string[] | undefined;
271
- meta?: Record<string, any> | undefined;
272
- cssVars?: Record<string, any> | undefined;
273
- tailwind?: Record<string, any> | undefined;
274
- category?: string | undefined;
275
- subcategory?: string | undefined;
276
- }, {
277
- name: string;
278
- type: string;
279
- files: {
280
- type: string;
281
- content: string;
282
- path: string;
283
- target?: string | undefined;
284
- }[];
285
- title?: string | undefined;
286
- description?: string | undefined;
287
- author?: string | undefined;
288
- dependencies?: string[] | undefined;
289
- devDependencies?: string[] | undefined;
290
- registryDependencies?: string[] | undefined;
291
- meta?: Record<string, any> | undefined;
292
- cssVars?: Record<string, any> | undefined;
293
- tailwind?: Record<string, any> | undefined;
294
- category?: string | undefined;
295
- subcategory?: string | undefined;
296
- }>, "many">;
297
- }, "strip", z.ZodTypeAny, {
298
- name: string;
299
- items: {
300
- name: string;
301
- type: string;
302
- files: {
303
- type: string;
304
- content: string;
305
- path: string;
306
- target?: string | undefined;
307
- }[];
308
- title?: string | undefined;
309
- description?: string | undefined;
310
- author?: string | undefined;
311
- dependencies?: string[] | undefined;
312
- devDependencies?: string[] | undefined;
313
- registryDependencies?: string[] | undefined;
314
- meta?: Record<string, any> | undefined;
315
- cssVars?: Record<string, any> | undefined;
316
- tailwind?: Record<string, any> | undefined;
317
- category?: string | undefined;
318
- subcategory?: string | undefined;
319
- }[];
320
- style?: string | undefined;
321
- $schema?: string | undefined;
322
- homepage?: string | undefined;
323
- }, {
324
- name: string;
325
- items: {
326
- name: string;
327
- type: string;
328
- files: {
329
- type: string;
330
- content: string;
331
- path: string;
332
- target?: string | undefined;
333
- }[];
334
- title?: string | undefined;
335
- description?: string | undefined;
336
- author?: string | undefined;
337
- dependencies?: string[] | undefined;
338
- devDependencies?: string[] | undefined;
339
- registryDependencies?: string[] | undefined;
340
- meta?: Record<string, any> | undefined;
341
- cssVars?: Record<string, any> | undefined;
342
- tailwind?: Record<string, any> | undefined;
343
- category?: string | undefined;
344
- subcategory?: string | undefined;
345
- }[];
346
- style?: string | undefined;
347
- $schema?: string | undefined;
348
- homepage?: string | undefined;
349
- }>;
350
- export type RegistryItem = z.infer<typeof registryItemSchema>;
351
- export type Registry = z.infer<typeof registrySchema>;
352
- export type RegistryWithContent = z.infer<typeof registryWithContentSchema>;
353
- export type RegistryFile = z.infer<typeof fileSchema>;
@@ -1,45 +0,0 @@
1
- import { z } from "zod";
2
- // Define the file schema to match hanzo/ui's format
3
- export const fileSchema = z.object({
4
- path: z.string(),
5
- content: z.string().optional(),
6
- type: z.string(),
7
- target: z.string().optional(),
8
- });
9
- // Registry item schema aligned with hanzo/ui format
10
- export const registryItemSchema = z.object({
11
- name: z.string(),
12
- type: z.string(),
13
- description: z.string().optional(),
14
- author: z.string().optional(),
15
- dependencies: z.array(z.string()).optional(),
16
- devDependencies: z.array(z.string()).optional(),
17
- registryDependencies: z.array(z.string()).optional(),
18
- files: z.array(fileSchema).optional(),
19
- meta: z.record(z.any()).optional(),
20
- title: z.string().optional(),
21
- cssVars: z.record(z.any()).optional(),
22
- tailwind: z.record(z.any()).optional(),
23
- category: z.string().optional(),
24
- subcategory: z.string().optional(),
25
- });
26
- // Registry schema aligned with hanzo/ui format
27
- export const registrySchema = z.object({
28
- $schema: z.string().optional(),
29
- name: z.string(),
30
- homepage: z.string().optional(),
31
- style: z.string().optional(),
32
- items: z.array(registryItemSchema),
33
- });
34
- // Schema for a registry with full content
35
- export const registryWithContentSchema = registrySchema.extend({
36
- items: z.array(registryItemSchema.extend({
37
- files: z.array(fileSchema.extend({
38
- content: z.string(),
39
- })),
40
- })),
41
- });
42
- // Support CommonJS
43
- if (typeof module !== 'undefined') {
44
- module.exports = { fileSchema, registryItemSchema, registrySchema, registryWithContentSchema };
45
- }
package/dist/utils.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from '../../../app/lib/utils';
package/dist/utils.js DELETED
@@ -1 +0,0 @@
1
- export * from '../../../app/lib/utils';
package/environment.d.ts DELETED
@@ -1,6 +0,0 @@
1
- namespace NodeJS {
2
- interface ProcessEnv {
3
- NEXT_PUBLIC_GA_MEASUREMENT_ID: string;
4
- NEXT_PUBLIC_FACEBOOK_PIXEL_ID: string;
5
- }
6
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "accordion",
3
- "type": "registry:component",
4
- "description": "A accordion component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/accordion/accordion.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "alert",
3
- "type": "registry:component",
4
- "description": "A alert component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/alert/alert.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "avatar",
3
- "type": "registry:component",
4
- "description": "A avatar component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/avatar/avatar.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "badge",
3
- "type": "registry:component",
4
- "description": "A badge component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/badge/badge.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "button",
3
- "type": "registry:component",
4
- "description": "A button component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/button/button.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "card",
3
- "type": "registry:component",
4
- "description": "A card component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/card/card.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "checkbox",
3
- "type": "registry:component",
4
- "description": "A checkbox component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/checkbox/checkbox.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,6 +0,0 @@
1
- {
2
- "name": "default",
3
- "type": "registry:style",
4
- "description": "The default style for Hanzo UI components.",
5
- "files": []
6
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "dialog",
3
- "type": "registry:component",
4
- "description": "A dialog component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/dialog/dialog.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "input",
3
- "type": "registry:component",
4
- "description": "A input component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/input/input.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "label",
3
- "type": "registry:component",
4
- "description": "A label component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/label/label.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,6 +0,0 @@
1
- {
2
- "name": "new-york",
3
- "type": "registry:style",
4
- "description": "The new-york style for Hanzo UI components.",
5
- "files": []
6
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "popover",
3
- "type": "registry:component",
4
- "description": "A popover component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/popover/popover.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "select",
3
- "type": "registry:component",
4
- "description": "A select component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/select/select.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "table",
3
- "type": "registry:component",
4
- "description": "A table component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/table/table.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "tabs",
3
- "type": "registry:component",
4
- "description": "A tabs component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/tabs/tabs.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "name": "toast",
3
- "type": "registry:component",
4
- "description": "A toast component for your UI.",
5
- "files": [
6
- {
7
- "path": "default/ui/toast/toast.tsx",
8
- "type": "registry:component"
9
- }
10
- ]
11
- }