@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.
- package/assets/general.tsx +1 -1
- package/assets/hanzo-logo.tsx +3 -1
- package/assets/index.ts +119 -5
- package/blocks/auth/index.ts +6 -0
- package/blocks/auth/login-2fa.tsx +165 -0
- package/blocks/auth/login-basic.tsx +94 -0
- package/blocks/auth/login-social.tsx +148 -0
- package/blocks/auth/magic-link.tsx +129 -0
- package/blocks/auth/password-reset.tsx +97 -0
- package/blocks/auth/signup.tsx +157 -0
- package/blocks/data-display/activity-feed.tsx +242 -0
- package/blocks/data-display/data-table.tsx +235 -0
- package/blocks/data-display/stats-grid.tsx +194 -0
- package/blocks/ecommerce/checkout.tsx +242 -0
- package/blocks/ecommerce/index.ts +7 -0
- package/blocks/ecommerce/product-detail.tsx +257 -0
- package/blocks/ecommerce/product-grid.tsx +148 -0
- package/blocks/ecommerce/shopping-cart.tsx +181 -0
- package/blocks/marketing/cta-section.tsx +207 -0
- package/blocks/marketing/faq.tsx +159 -0
- package/blocks/marketing/features-grid.tsx +156 -0
- package/blocks/marketing/hero-section.tsx +192 -0
- package/blocks/marketing/index.ts +6 -0
- package/blocks/marketing/pricing-table.tsx +121 -0
- package/blocks/marketing/testimonials.tsx +196 -0
- package/components/index.ts +4 -51
- package/dist/index.js +9351 -0
- package/dist/index.mjs +9340 -0
- package/dist/lib/utils.js +47 -0
- package/dist/lib/utils.mjs +28 -0
- package/dist/src/utils.js +47 -0
- package/dist/src/utils.mjs +28 -0
- package/dist/tailwind/index.js +2050 -0
- package/dist/tailwind/index.mjs +2019 -0
- package/dist/types/index.js +79 -0
- package/dist/types/index.mjs +56 -0
- package/dist/util/format-text.js +51 -0
- package/dist/util/format-text.mjs +32 -0
- package/dist/util/index.js +384 -0
- package/dist/util/index.mjs +363 -0
- package/frameworks/core/index.ts +6 -0
- package/frameworks/core/utils/index.ts +64 -0
- package/frameworks/react/components/button.tsx +26 -0
- package/frameworks/react/components/index.ts +5 -0
- package/frameworks/react/hooks/index.ts +5 -0
- package/frameworks/react/index.ts +9 -0
- package/frameworks/react/package.json +8 -0
- package/frameworks/react/utils/index.ts +2 -0
- package/frameworks/react-native/index.ts +9 -0
- package/frameworks/react-native/package.json +8 -0
- package/frameworks/registry.json +371 -0
- package/frameworks/setup.sh +69 -0
- package/frameworks/svelte/index.ts +9 -0
- package/frameworks/svelte/package.json +8 -0
- package/frameworks/tracker.json +1854 -0
- package/frameworks/vue/index.ts +9 -0
- package/frameworks/vue/package.json +8 -0
- package/package.json +192 -28
- package/primitives/accordion.tsx +1 -1
- package/primitives/alert-dialog.tsx +1 -1
- package/primitives/alert.tsx +1 -1
- package/primitives/avatar.tsx +1 -1
- package/primitives/badge.tsx +2 -1
- package/primitives/breadcrumb.tsx +1 -1
- package/primitives/button.tsx +37 -47
- package/primitives/card.tsx +1 -1
- package/primitives/carousel.tsx +3 -2
- package/primitives/chat/chat-input-area.tsx +5 -4
- package/primitives/chat/chat-input.tsx +2 -2
- package/primitives/chat/files-preview.tsx +5 -4
- package/primitives/chat/message-list.tsx +2 -1
- package/primitives/chat/sqlite-preview.tsx +8 -8
- package/primitives/checkbox.tsx +2 -1
- package/primitives/command.tsx +3 -1
- package/primitives/context-menu.tsx +1 -1
- package/primitives/dialog.tsx +6 -1
- package/primitives/drawer.tsx +4 -1
- package/primitives/dropdown-menu.tsx +1 -1
- package/primitives/file-uploader.tsx +4 -2
- package/primitives/form.tsx +1 -1
- package/primitives/hover-card.tsx +1 -1
- package/primitives/icons/github.tsx +2 -2
- package/primitives/icons/youtube-logo.tsx +1 -1
- package/primitives/index-common.ts +7 -6
- package/primitives/input-otp.tsx +1 -1
- package/primitives/input.tsx +2 -1
- package/primitives/label.tsx +2 -1
- package/primitives/markdown-preview.tsx +3 -0
- package/primitives/mermaid.tsx +13 -18
- package/primitives/next/image.tsx +2 -1
- package/primitives/next/inline-icon.tsx +14 -14
- package/primitives/next/media-stack.tsx +2 -19
- package/primitives/pagination.tsx +1 -1
- package/primitives/popover.tsx +4 -2
- package/primitives/progress.tsx +2 -1
- package/primitives/prompt-textarea.tsx +1 -1
- package/primitives/radio-group.tsx +1 -1
- package/primitives/scroll-area.tsx +1 -1
- package/primitives/search-input.tsx +1 -1
- package/primitives/select.tsx +1 -1
- package/primitives/separator.tsx +2 -1
- package/primitives/sheet.tsx +1 -1
- package/primitives/skeleton.tsx +1 -0
- package/primitives/slider.tsx +2 -1
- package/primitives/stepper.tsx +1 -1
- package/primitives/switch.tsx +2 -1
- package/primitives/table.tsx +1 -1
- package/primitives/tabs.tsx +1 -1
- package/primitives/textarea.tsx +2 -1
- package/primitives/textfield.tsx +1 -0
- package/primitives/toggle-group.tsx +1 -1
- package/primitives/toggle.tsx +1 -1
- package/primitives/tooltip.tsx +1 -1
- package/src/hooks/use-copy-clipboard.ts +1 -1
- package/src/index-lean.ts +87 -0
- package/src/index.ts +54 -0
- package/src/registry/api.ts +1 -1
- package/src/utils.ts +19 -1
- package/tailwind/tailwind.config.hanzo-preset.js +7 -7
- package/tailwind/typo-plugin/index.js +1 -1
- package/types/animation-def.ts +1 -1
- package/types/index.ts +2 -1
- package/util/blob.ts +9 -4
- package/util/date.ts +2 -1
- package/util/format-text.ts +2 -1
- package/util/index.ts +103 -0
- package/util/spread-to-transform.ts +9 -8
- package/MCP-INSTRUCTIONS.md +0 -73
- package/README-MCP.md +0 -175
- package/dist/button.d.ts +0 -1
- package/dist/button.js +0 -1
- package/dist/hooks/index.d.ts +0 -7
- package/dist/hooks/index.js +0 -7
- package/dist/hooks/use-click-away.d.ts +0 -2
- package/dist/hooks/use-click-away.js +0 -23
- package/dist/hooks/use-combined-refs.d.ts +0 -3
- package/dist/hooks/use-combined-refs.js +0 -18
- package/dist/hooks/use-copy-clipboard.d.ts +0 -9
- package/dist/hooks/use-copy-clipboard.js +0 -21
- package/dist/hooks/use-debounce.d.ts +0 -1
- package/dist/hooks/use-debounce.js +0 -13
- package/dist/hooks/use-fill-ids.d.ts +0 -8
- package/dist/hooks/use-fill-ids.js +0 -20
- package/dist/hooks/use-map.d.ts +0 -1
- package/dist/hooks/use-map.js +0 -20
- package/dist/hooks/use-measure.d.ts +0 -8
- package/dist/hooks/use-measure.js +0 -25
- package/dist/hooks/use-reverse-video-playback.d.ts +0 -1
- package/dist/hooks/use-reverse-video-playback.js +0 -41
- package/dist/hooks/use-scroll-restoration.d.ts +0 -8
- package/dist/hooks/use-scroll-restoration.js +0 -36
- package/dist/mcp/enhanced-server.d.ts +0 -29
- package/dist/mcp/enhanced-server.js +0 -1128
- package/dist/mcp/index.d.ts +0 -28
- package/dist/mcp/index.js +0 -436
- package/dist/registry/api.d.ts +0 -37
- package/dist/registry/api.js +0 -129
- package/dist/registry/index.d.ts +0 -353
- package/dist/registry/index.js +0 -45
- package/dist/utils.d.ts +0 -1
- package/dist/utils.js +0 -1
- package/environment.d.ts +0 -6
- package/public/r/accordion.json +0 -11
- package/public/r/alert.json +0 -11
- package/public/r/avatar.json +0 -11
- package/public/r/badge.json +0 -11
- package/public/r/button.json +0 -11
- package/public/r/card.json +0 -11
- package/public/r/checkbox.json +0 -11
- package/public/r/default.json +0 -6
- package/public/r/dialog.json +0 -11
- package/public/r/input.json +0 -11
- package/public/r/label.json +0 -11
- package/public/r/new-york.json +0 -6
- package/public/r/popover.json +0 -11
- package/public/r/select.json +0 -11
- package/public/r/table.json +0 -11
- package/public/r/tabs.json +0 -11
- package/public/r/toast.json +0 -11
- package/registry.json +0 -184
- package/test/test-registry.js +0 -73
- package/test-imports.mjs +0 -19
- package/tsconfig.json +0 -22
- package/utils.ts +0 -9
package/dist/registry/index.d.ts
DELETED
|
@@ -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>;
|
package/dist/registry/index.js
DELETED
|
@@ -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
package/public/r/accordion.json
DELETED
package/public/r/alert.json
DELETED
package/public/r/avatar.json
DELETED
package/public/r/badge.json
DELETED
package/public/r/button.json
DELETED
package/public/r/card.json
DELETED
package/public/r/checkbox.json
DELETED
package/public/r/default.json
DELETED
package/public/r/dialog.json
DELETED
package/public/r/input.json
DELETED
package/public/r/label.json
DELETED
package/public/r/new-york.json
DELETED
package/public/r/popover.json
DELETED
package/public/r/select.json
DELETED
package/public/r/table.json
DELETED
package/public/r/tabs.json
DELETED