shadcn 2.3.0 → 2.4.0-canary.0

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/dist/index.d.ts CHANGED
@@ -8,21 +8,21 @@ declare const configSchema: z.ZodObject<z.objectUtil.extendShape<{
8
8
  rsc: z.ZodDefault<z.ZodBoolean>;
9
9
  tsx: z.ZodDefault<z.ZodBoolean>;
10
10
  tailwind: z.ZodObject<{
11
- config: z.ZodString;
11
+ config: z.ZodOptional<z.ZodString>;
12
12
  css: z.ZodString;
13
13
  baseColor: z.ZodString;
14
14
  cssVariables: z.ZodDefault<z.ZodBoolean>;
15
15
  prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- config: string;
18
17
  css: string;
19
18
  baseColor: string;
20
19
  cssVariables: boolean;
20
+ config?: string | undefined;
21
21
  prefix?: string | undefined;
22
22
  }, {
23
- config: string;
24
23
  css: string;
25
24
  baseColor: string;
25
+ config?: string | undefined;
26
26
  cssVariables?: boolean | undefined;
27
27
  prefix?: string | undefined;
28
28
  }>;
@@ -77,10 +77,10 @@ declare const configSchema: z.ZodObject<z.objectUtil.extendShape<{
77
77
  }>;
78
78
  }>, "strict", z.ZodTypeAny, {
79
79
  tailwind: {
80
- config: string;
81
80
  css: string;
82
81
  baseColor: string;
83
82
  cssVariables: boolean;
83
+ config?: string | undefined;
84
84
  prefix?: string | undefined;
85
85
  };
86
86
  style: string;
@@ -107,9 +107,9 @@ declare const configSchema: z.ZodObject<z.objectUtil.extendShape<{
107
107
  iconLibrary?: string | undefined;
108
108
  }, {
109
109
  tailwind: {
110
- config: string;
111
110
  css: string;
112
111
  baseColor: string;
112
+ config?: string | undefined;
113
113
  cssVariables?: boolean | undefined;
114
114
  prefix?: string | undefined;
115
115
  };
@@ -149,12 +149,8 @@ declare function getRegistryIndex(): Promise<{
149
149
  } | undefined;
150
150
  } | undefined;
151
151
  $schema?: string | undefined;
152
- title?: string | undefined;
153
- author?: string | undefined;
154
- description?: string | undefined;
155
152
  dependencies?: string[] | undefined;
156
153
  devDependencies?: string[] | undefined;
157
- registryDependencies?: string[] | undefined;
158
154
  files?: ({
159
155
  path: string;
160
156
  type: "registry:page" | "registry:file";
@@ -166,6 +162,10 @@ declare function getRegistryIndex(): Promise<{
166
162
  content?: string | undefined;
167
163
  target?: string | undefined;
168
164
  })[] | undefined;
165
+ title?: string | undefined;
166
+ author?: string | undefined;
167
+ description?: string | undefined;
168
+ registryDependencies?: string[] | undefined;
169
169
  cssVars?: {
170
170
  light?: Record<string, string> | undefined;
171
171
  dark?: Record<string, string> | undefined;
@@ -190,12 +190,8 @@ declare function getRegistryItem(name: string, style: string): Promise<{
190
190
  } | undefined;
191
191
  } | undefined;
192
192
  $schema?: string | undefined;
193
- title?: string | undefined;
194
- author?: string | undefined;
195
- description?: string | undefined;
196
193
  dependencies?: string[] | undefined;
197
194
  devDependencies?: string[] | undefined;
198
- registryDependencies?: string[] | undefined;
199
195
  files?: ({
200
196
  path: string;
201
197
  type: "registry:page" | "registry:file";
@@ -207,6 +203,10 @@ declare function getRegistryItem(name: string, style: string): Promise<{
207
203
  content?: string | undefined;
208
204
  target?: string | undefined;
209
205
  })[] | undefined;
206
+ title?: string | undefined;
207
+ author?: string | undefined;
208
+ description?: string | undefined;
209
+ registryDependencies?: string[] | undefined;
210
210
  cssVars?: {
211
211
  light?: Record<string, string> | undefined;
212
212
  dark?: Record<string, string> | undefined;
@@ -242,12 +242,8 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
242
242
  } | undefined;
243
243
  } | undefined;
244
244
  $schema?: string | undefined;
245
- title?: string | undefined;
246
- author?: string | undefined;
247
- description?: string | undefined;
248
245
  dependencies?: string[] | undefined;
249
246
  devDependencies?: string[] | undefined;
250
- registryDependencies?: string[] | undefined;
251
247
  files?: ({
252
248
  path: string;
253
249
  type: "registry:page" | "registry:file";
@@ -259,6 +255,10 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
259
255
  content?: string | undefined;
260
256
  target?: string | undefined;
261
257
  })[] | undefined;
258
+ title?: string | undefined;
259
+ author?: string | undefined;
260
+ description?: string | undefined;
261
+ registryDependencies?: string[] | undefined;
262
262
  cssVars?: {
263
263
  light?: Record<string, string> | undefined;
264
264
  dark?: Record<string, string> | undefined;
@@ -278,12 +278,8 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
278
278
  } | undefined;
279
279
  } | undefined;
280
280
  $schema?: string | undefined;
281
- title?: string | undefined;
282
- author?: string | undefined;
283
- description?: string | undefined;
284
281
  dependencies?: string[] | undefined;
285
282
  devDependencies?: string[] | undefined;
286
- registryDependencies?: string[] | undefined;
287
283
  files?: ({
288
284
  path: string;
289
285
  type: "registry:page" | "registry:file";
@@ -295,6 +291,10 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
295
291
  content?: string | undefined;
296
292
  target?: string | undefined;
297
293
  })[] | undefined;
294
+ title?: string | undefined;
295
+ author?: string | undefined;
296
+ description?: string | undefined;
297
+ registryDependencies?: string[] | undefined;
298
298
  cssVars?: {
299
299
  light?: Record<string, string> | undefined;
300
300
  dark?: Record<string, string> | undefined;
@@ -369,12 +369,8 @@ declare function getRegistryParentMap(registryItems: z.infer<typeof registryItem
369
369
  } | undefined;
370
370
  } | undefined;
371
371
  $schema?: string | undefined;
372
- title?: string | undefined;
373
- author?: string | undefined;
374
- description?: string | undefined;
375
372
  dependencies?: string[] | undefined;
376
373
  devDependencies?: string[] | undefined;
377
- registryDependencies?: string[] | undefined;
378
374
  files?: ({
379
375
  path: string;
380
376
  type: "registry:page" | "registry:file";
@@ -386,6 +382,10 @@ declare function getRegistryParentMap(registryItems: z.infer<typeof registryItem
386
382
  content?: string | undefined;
387
383
  target?: string | undefined;
388
384
  })[] | undefined;
385
+ title?: string | undefined;
386
+ author?: string | undefined;
387
+ description?: string | undefined;
388
+ registryDependencies?: string[] | undefined;
389
389
  cssVars?: {
390
390
  light?: Record<string, string> | undefined;
391
391
  dark?: Record<string, string> | undefined;