Skip to content

Commit 2ad00d9

Browse files
Feat: add cli (#4)
* feat: add cli * fix: formatting
1 parent 1a2e4ad commit 2ad00d9

File tree

131 files changed

+10820
-10693
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+10820
-10693
lines changed

apps/www/__registry__/index.tsx

+60-32
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ export const Index: Record<string, any> = {
88
"address": {
99
name: "address",
1010
type: "components:buidl",
11-
registryDependencies: undefined,
11+
registryDependencies: ["toast"],
1212
component: React.lazy(() => import("@/registry/default/buidl/address")),
1313
files: ["registry/default/buidl/address.tsx"],
1414
},
1515
"balance": {
1616
name: "balance",
1717
type: "components:buidl",
18-
registryDependencies: undefined,
18+
registryDependencies: ["skeleton","error-message"],
1919
component: React.lazy(() => import("@/registry/default/buidl/balance")),
2020
files: ["registry/default/buidl/balance.tsx"],
2121
},
@@ -29,77 +29,77 @@ export const Index: Record<string, any> = {
2929
"block-number": {
3030
name: "block-number",
3131
type: "components:buidl",
32-
registryDependencies: undefined,
32+
registryDependencies: ["skeleton","error-message"],
3333
component: React.lazy(() => import("@/registry/default/buidl/block-number")),
3434
files: ["registry/default/buidl/block-number.tsx"],
3535
},
3636
"nonce": {
3737
name: "nonce",
3838
type: "components:buidl",
39-
registryDependencies: undefined,
39+
registryDependencies: ["skeleton","error-message"],
4040
component: React.lazy(() => import("@/registry/default/buidl/nonce")),
4141
files: ["registry/default/buidl/nonce.tsx"],
4242
},
4343
"transaction": {
4444
name: "transaction",
4545
type: "components:buidl",
46-
registryDependencies: undefined,
46+
registryDependencies: ["skeleton","error-message"],
4747
component: React.lazy(() => import("@/registry/default/buidl/transaction")),
4848
files: ["registry/default/buidl/transaction.tsx"],
4949
},
5050
"transaction-status": {
5151
name: "transaction-status",
5252
type: "components:buidl",
53-
registryDependencies: undefined,
53+
registryDependencies: ["skeleton","error-message"],
5454
component: React.lazy(() => import("@/registry/default/buidl/transaction-status")),
5555
files: ["registry/default/buidl/transaction-status.tsx"],
5656
},
57-
"sign-message-button": {
58-
name: "sign-message-button",
59-
type: "components:buidl",
60-
registryDependencies: undefined,
61-
component: React.lazy(() => import("@/registry/default/buidl/sign-message-button")),
62-
files: ["registry/default/buidl/sign-message-button.tsx"],
63-
},
6457
"fee-data": {
6558
name: "fee-data",
6659
type: "components:buidl",
67-
registryDependencies: undefined,
60+
registryDependencies: ["skeleton","error-message"],
6861
component: React.lazy(() => import("@/registry/default/buidl/fee-data")),
6962
files: ["registry/default/buidl/fee-data.tsx"],
7063
},
64+
"sign-message-button": {
65+
name: "sign-message-button",
66+
type: "components:buidl",
67+
registryDependencies: ["button","error-message"],
68+
component: React.lazy(() => import("@/registry/default/buidl/sign-message-button")),
69+
files: ["registry/default/buidl/sign-message-button.tsx"],
70+
},
7171
"blockie": {
7272
name: "blockie",
7373
type: "components:buidl",
74-
registryDependencies: undefined,
74+
registryDependencies: ["skeleton"],
7575
component: React.lazy(() => import("@/registry/default/buidl/blockie")),
7676
files: ["registry/default/buidl/blockie.tsx"],
7777
},
7878
"ens-avatar": {
7979
name: "ens-avatar",
8080
type: "components:buidl",
81-
registryDependencies: undefined,
81+
registryDependencies: ["blockie","skeleton"],
8282
component: React.lazy(() => import("@/registry/default/buidl/ens-avatar")),
8383
files: ["registry/default/buidl/ens-avatar.tsx"],
8484
},
8585
"ens-name": {
8686
name: "ens-name",
8787
type: "components:buidl",
88-
registryDependencies: undefined,
88+
registryDependencies: ["address","skeleton"],
8989
component: React.lazy(() => import("@/registry/default/buidl/ens-name")),
9090
files: ["registry/default/buidl/ens-name.tsx"],
9191
},
9292
"ens-address": {
9393
name: "ens-address",
9494
type: "components:buidl",
95-
registryDependencies: undefined,
95+
registryDependencies: ["address","skeleton","error-message"],
9696
component: React.lazy(() => import("@/registry/default/buidl/ens-address")),
9797
files: ["registry/default/buidl/ens-address.tsx"],
9898
},
9999
"image-ipfs": {
100100
name: "image-ipfs",
101101
type: "components:buidl",
102-
registryDependencies: undefined,
102+
registryDependencies: ["skeleton","error-message"],
103103
component: React.lazy(() => import("@/registry/default/buidl/image-ipfs")),
104104
files: ["registry/default/buidl/image-ipfs.tsx"],
105105
},
@@ -120,35 +120,35 @@ export const Index: Record<string, any> = {
120120
"wallet-connect": {
121121
name: "wallet-connect",
122122
type: "components:buidl",
123-
registryDependencies: undefined,
123+
registryDependencies: ["button","dialog"],
124124
component: React.lazy(() => import("@/registry/default/buidl/wallet-connect")),
125125
files: ["registry/default/buidl/wallet-connect.tsx"],
126126
},
127127
"wallet-disconnect": {
128128
name: "wallet-disconnect",
129129
type: "components:buidl",
130-
registryDependencies: undefined,
130+
registryDependencies: ["button"],
131131
component: React.lazy(() => import("@/registry/default/buidl/wallet-disconnect")),
132132
files: ["registry/default/buidl/wallet-disconnect.tsx"],
133133
},
134134
"erc20-balance": {
135135
name: "erc20-balance",
136136
type: "components:buidl",
137-
registryDependencies: undefined,
137+
registryDependencies: ["skeleton","error-message"],
138138
component: React.lazy(() => import("@/registry/default/buidl/erc20/erc20-balance")),
139139
files: ["registry/default/buidl/erc20/erc20-balance.tsx"],
140140
},
141141
"erc20-decimals": {
142142
name: "erc20-decimals",
143143
type: "components:buidl",
144-
registryDependencies: undefined,
144+
registryDependencies: ["skeleton","error-message"],
145145
component: React.lazy(() => import("@/registry/default/buidl/erc20/erc20-decimals")),
146146
files: ["registry/default/buidl/erc20/erc20-decimals.tsx"],
147147
},
148148
"erc20-name": {
149149
name: "erc20-name",
150150
type: "components:buidl",
151-
registryDependencies: undefined,
151+
registryDependencies: ["skeleton","error-message"],
152152
component: React.lazy(() => import("@/registry/default/buidl/erc20/erc20-name")),
153153
files: ["registry/default/buidl/erc20/erc20-name.tsx"],
154154
},
@@ -169,56 +169,56 @@ export const Index: Record<string, any> = {
169169
"erc20-symbol": {
170170
name: "erc20-symbol",
171171
type: "components:buidl",
172-
registryDependencies: undefined,
172+
registryDependencies: ["skeleton","error-message"],
173173
component: React.lazy(() => import("@/registry/default/buidl/erc20/erc20-symbol")),
174174
files: ["registry/default/buidl/erc20/erc20-symbol.tsx"],
175175
},
176176
"erc20-total-supply": {
177177
name: "erc20-total-supply",
178178
type: "components:buidl",
179-
registryDependencies: undefined,
179+
registryDependencies: ["skeleton","error-message"],
180180
component: React.lazy(() => import("@/registry/default/buidl/erc20/erc20-total-supply")),
181181
files: ["registry/default/buidl/erc20/erc20-total-supply.tsx"],
182182
},
183183
"erc721-name": {
184184
name: "erc721-name",
185185
type: "components:buidl",
186-
registryDependencies: undefined,
186+
registryDependencies: ["skeleton","error-message"],
187187
component: React.lazy(() => import("@/registry/default/buidl/erc721/erc721-name")),
188188
files: ["registry/default/buidl/erc721/erc721-name.tsx"],
189189
},
190190
"erc721-symbol": {
191191
name: "erc721-symbol",
192192
type: "components:buidl",
193-
registryDependencies: undefined,
193+
registryDependencies: ["skeleton","error-message"],
194194
component: React.lazy(() => import("@/registry/default/buidl/erc721/erc721-symbol")),
195195
files: ["registry/default/buidl/erc721/erc721-symbol.tsx"],
196196
},
197197
"erc721-owner-of": {
198198
name: "erc721-owner-of",
199199
type: "components:buidl",
200-
registryDependencies: undefined,
200+
registryDependencies: ["skeleton","error-message"],
201201
component: React.lazy(() => import("@/registry/default/buidl/erc721/erc721-owner-of")),
202202
files: ["registry/default/buidl/erc721/erc721-owner-of.tsx"],
203203
},
204204
"erc721-total-supply": {
205205
name: "erc721-total-supply",
206206
type: "components:buidl",
207-
registryDependencies: undefined,
207+
registryDependencies: ["skeleton","error-message"],
208208
component: React.lazy(() => import("@/registry/default/buidl/erc721/erc721-total-supply")),
209209
files: ["registry/default/buidl/erc721/erc721-total-supply.tsx"],
210210
},
211211
"erc721-token-uri": {
212212
name: "erc721-token-uri",
213213
type: "components:buidl",
214-
registryDependencies: undefined,
214+
registryDependencies: ["skeleton","error-message"],
215215
component: React.lazy(() => import("@/registry/default/buidl/erc721/erc721-token-uri")),
216216
files: ["registry/default/buidl/erc721/erc721-token-uri.tsx"],
217217
},
218218
"erc721-metadata": {
219219
name: "erc721-metadata",
220220
type: "components:buidl",
221-
registryDependencies: undefined,
221+
registryDependencies: ["skeleton","error-message"],
222222
component: React.lazy(() => import("@/registry/default/buidl/erc721/erc721-metadata")),
223223
files: ["registry/default/buidl/erc721/erc721-metadata.tsx"],
224224
},
@@ -229,6 +229,34 @@ export const Index: Record<string, any> = {
229229
component: React.lazy(() => import("@/registry/default/buidl/error-message")),
230230
files: ["registry/default/buidl/error-message.tsx"],
231231
},
232+
"button": {
233+
name: "button",
234+
type: "components:ui",
235+
registryDependencies: undefined,
236+
component: React.lazy(() => import("@/registry/default/ui/button")),
237+
files: ["registry/default/ui/button.tsx"],
238+
},
239+
"dialog": {
240+
name: "dialog",
241+
type: "components:ui",
242+
registryDependencies: undefined,
243+
component: React.lazy(() => import("@/registry/default/ui/dialog")),
244+
files: ["registry/default/ui/dialog.tsx"],
245+
},
246+
"toast": {
247+
name: "toast",
248+
type: "components:ui",
249+
registryDependencies: undefined,
250+
component: React.lazy(() => import("@/registry/default/ui/toast")),
251+
files: ["registry/default/ui/toast.tsx","registry/default/ui/use-toast.ts","registry/default/ui/toaster.tsx"],
252+
},
253+
"skeleton": {
254+
name: "skeleton",
255+
type: "components:ui",
256+
registryDependencies: undefined,
257+
component: React.lazy(() => import("@/registry/default/ui/skeleton")),
258+
files: ["registry/default/ui/skeleton.tsx"],
259+
},
232260
"nonce-demo": {
233261
name: "nonce-demo",
234262
type: "components:example",

apps/www/content/docs/components/sign-message-button.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ wagmi:
3636

3737
<Steps>
3838

39+
<Step>Install the following components:</Step>
40+
41+
- [ErrorMessage](/docs/components/error-message)
42+
3943
<Step>Install the following shadcn/ui components:</Step>
4044

4145
- [Button](https://ui.shadcn.com/docs/components/button)

0 commit comments

Comments
 (0)