shadcn 4.13.0 → 4.14.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.
@@ -1,4 +1,4 @@
1
- import {Qa,Oa,Pa,qa,k,ma,sa,Ra}from'./chunk-G7PLOKI6.js';import {Server}from'@modelcontextprotocol/sdk/server/index.js';import {ListToolsRequestSchema,CallToolRequestSchema}from'@modelcontextprotocol/sdk/types.js';import m from'dedent';import {z}from'zod';import {zodToJsonSchema}from'zod-to-json-schema';var R="shadcn@latest";async function u(r){return `${await ma(process.cwd())} ${R} ${r}`}async function d(r=process.cwd()){return {registries:(await sa(r,{useCache:false})).registries}}function _(r,t){let{query:n,registries:i}=t||{},o=r.items.map(c=>{let g=[`- ${c.name}`];return c.type&&g.push(`(${c.type})`),c.description&&g.push(`- ${c.description}`),c.registry&&g.push(`[${c.registry}]`),g.push(`
1
+ import {Qa,Oa,Pa,qa,k,ma,sa,Ra}from'./chunk-JHQYUTIO.js';import {Server}from'@modelcontextprotocol/sdk/server/index.js';import {ListToolsRequestSchema,CallToolRequestSchema}from'@modelcontextprotocol/sdk/types.js';import m from'dedent';import {z}from'zod';import {zodToJsonSchema}from'zod-to-json-schema';var R="shadcn@latest";async function u(r){return `${await ma(process.cwd())} ${R} ${r}`}async function d(r=process.cwd()){return {registries:(await sa(r,{useCache:false})).registries}}function _(r,t){let{query:n,registries:i}=t||{},o=r.items.map(c=>{let g=[`- ${c.name}`];return c.type&&g.push(`(${c.type})`),c.description&&g.push(`- ${c.description}`),c.registry&&g.push(`[${c.registry}]`),g.push(`
2
2
  Add command: \`${u(`add ${c.addCommandArgument}`)}\``),g.join(" ")}),a=`Found ${r.pagination.total} items`;n&&(a+=` matching "${n}"`),i&&i.length>0&&(a+=` in registries ${i.join(", ")}`),a+=":";let s=`Showing items ${r.pagination.offset+1}-${Math.min(r.pagination.offset+r.pagination.limit,r.pagination.total)} of ${r.pagination.total}:`,p=`${a}
3
3
 
4
4
  ${s}
@@ -44,4 +44,17 @@ type IconLibraries = typeof iconLibraries;
44
44
  type IconLibrary = IconLibraries[keyof IconLibraries];
45
45
  type IconLibraryName = keyof IconLibraries;
46
46
 
47
- export { type IconLibraries, type IconLibrary, type IconLibraryName, iconLibraries };
47
+ interface ParsedImport {
48
+ moduleSpecifier: string;
49
+ namedImports: string[];
50
+ }
51
+ interface ParsedUsage {
52
+ componentName: string;
53
+ iconAttribute?: string;
54
+ attributes: Record<string, string>;
55
+ }
56
+ declare function parseImportTemplate(template: string): ParsedImport[];
57
+ declare function getIconModuleSpecifier(template: string): string | undefined;
58
+ declare function parseUsageTemplate(usage: string): ParsedUsage;
59
+
60
+ export { type IconLibraries, type IconLibrary, type IconLibraryName, type ParsedImport, type ParsedUsage, getIconModuleSpecifier, iconLibraries, parseImportTemplate, parseUsageTemplate };
@@ -1 +1 @@
1
- export{a as iconLibraries}from'../chunk-CHWMSXYA.js';
1
+ export{b as getIconModuleSpecifier,a as parseImportTemplate,c as parseUsageTemplate}from'../chunk-3W6BGJGE.js';export{a as iconLibraries}from'../chunk-CHWMSXYA.js';