@razorwind/shadcn 0.0.25 → 0.0.26
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/{extract-Bzw3D4LY.d.mts → extract-CwrNS8sj.d.mts} +2 -2
- package/dist/extract-CwrNS8sj.d.mts.map +1 -0
- package/dist/{extract-CG0ODI_Z.d.cts → extract-yy--t-RM.d.cts} +2 -2
- package/dist/{extract-CG0ODI_Z.d.cts.map → extract-yy--t-RM.d.cts.map} +1 -1
- package/dist/extract.d.cts +2 -2
- package/dist/extract.d.mts +2 -2
- package/dist/generate-BdQe824w.cjs +34 -0
- package/dist/generate-C_UxH4C_.d.cts +79 -0
- package/dist/generate-C_UxH4C_.d.cts.map +1 -0
- package/dist/generate-Cz11zwTF.mjs +35 -0
- package/dist/generate-Cz11zwTF.mjs.map +1 -0
- package/dist/generate-Dtlbk-1_.d.mts +79 -0
- package/dist/generate-Dtlbk-1_.d.mts.map +1 -0
- package/dist/generate.cjs +1 -1
- package/dist/generate.d.cts +3 -69
- package/dist/generate.d.mts +3 -69
- package/dist/generate.mjs +1 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{types-BH0MT5Wk.d.mts → types-BKVZEcei.d.mts} +6 -1
- package/dist/types-BKVZEcei.d.mts.map +1 -0
- package/dist/{types-Jkebh8QA.d.cts → types-BvsYQIch.d.cts} +6 -1
- package/dist/types-BvsYQIch.d.cts.map +1 -0
- package/package.json +5 -5
- package/dist/extract-Bzw3D4LY.d.mts.map +0 -1
- package/dist/generate.d.cts.map +0 -1
- package/dist/generate.d.mts.map +0 -1
- package/dist/generate.mjs.map +0 -1
- package/dist/types-BH0MT5Wk.d.mts.map +0 -1
- package/dist/types-Jkebh8QA.d.cts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ShadcnExtractPluginOptions } from "./types-
|
|
1
|
+
import { t as ShadcnExtractPluginOptions } from "./types-BKVZEcei.mjs";
|
|
2
2
|
import { configSchema, rawConfigSchema, registryConfigSchema, workspaceConfigSchema } from "shadcn/schema";
|
|
3
3
|
import "shadcn/preset";
|
|
4
4
|
import { Component, Components } from "@razorwind/core/schema";
|
|
@@ -165,4 +165,4 @@ declare function extractComponentsFromRegistry(registryPath: string): Promise<Co
|
|
|
165
165
|
declare const _default: (options?: ShadcnExtractPluginOptions | undefined) => import("@razorwind/core/plugin").Plugin;
|
|
166
166
|
//#endregion
|
|
167
167
|
export { ShadcnWorkspaceConfig as S, getRegistryConfig as _, registryItemsToComponents as a, ShadcnRawConfig as b, DEFAULT_COMPONENTS as c, DEFAULT_TAILWIND_CONFIG as d, DEFAULT_TAILWIND_CSS as f, getRawConfig as g, createRegistryConfig as h, registryItemToComponent as i, DEFAULT_STYLE as l, RegistryConfig as m, extractComponentsFromRegistry as n, toDependencyRecord as o, DEFAULT_UTILS as p, extract_d_exports as r, BUILTIN_REGISTRIES as s, _default as t, DEFAULT_TAILWIND_BASE_COLOR as u, resolveConfigPaths as v, ShadcnRegistryConfig as x, ShadcnConfig as y };
|
|
168
|
-
//# sourceMappingURL=extract-
|
|
168
|
+
//# sourceMappingURL=extract-CwrNS8sj.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-CwrNS8sj.d.mts","names":[],"sources":["../src/registry/shadcn-types.ts","../src/registry/config.ts","../src/extract.ts"],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as __exportAll, t as ShadcnExtractPluginOptions } from "./types-
|
|
1
|
+
import { r as __exportAll, t as ShadcnExtractPluginOptions } from "./types-BvsYQIch.cjs";
|
|
2
2
|
import { Component, Components } from "@razorwind/core/schema";
|
|
3
3
|
import "shadcn/preset";
|
|
4
4
|
import { configSchema, rawConfigSchema, registryConfigSchema, workspaceConfigSchema } from "shadcn/schema";
|
|
@@ -165,4 +165,4 @@ declare function extractComponentsFromRegistry(registryPath: string): Promise<Co
|
|
|
165
165
|
declare const _default: (options?: ShadcnExtractPluginOptions | undefined) => import("@razorwind/core/plugin").Plugin;
|
|
166
166
|
//#endregion
|
|
167
167
|
export { ShadcnWorkspaceConfig as S, getRegistryConfig as _, registryItemsToComponents as a, ShadcnRawConfig as b, DEFAULT_COMPONENTS as c, DEFAULT_TAILWIND_CONFIG as d, DEFAULT_TAILWIND_CSS as f, getRawConfig as g, createRegistryConfig as h, registryItemToComponent as i, DEFAULT_STYLE as l, RegistryConfig as m, extractComponentsFromRegistry as n, toDependencyRecord as o, DEFAULT_UTILS as p, extract_d_exports as r, BUILTIN_REGISTRIES as s, _default as t, DEFAULT_TAILWIND_BASE_COLOR as u, resolveConfigPaths as v, ShadcnRegistryConfig as x, ShadcnConfig as y };
|
|
168
|
-
//# sourceMappingURL=extract-
|
|
168
|
+
//# sourceMappingURL=extract-yy--t-RM.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-
|
|
1
|
+
{"version":3,"file":"extract-yy--t-RM.d.cts","names":[],"sources":["../src/registry/shadcn-types.ts","../src/registry/config.ts","../src/extract.ts"],"mappings":";;;;;;;;;;;;KAgCK,kBAAkB,KAAK;EAC1B,WAAW,wBAAwB;IAEjC;KAGQ,eAAe,yBAAyB;KACxC,kBAAkB,yBAAyB;KAC3C,uBAAuB,yBAC1B;KAEG,wBAAwB,yBAC3B;;;cCHI;cACA;cACA;cACA;cACA;cACA;KAmCD,iBAAiB;iBAEP,kBAAkB,cAAW;;;;;IA+MjC;IACV;;;;;;;;IASkB;IAAkC;IAGtD;;;;;;;;;;;;;;;;;;;IAsBS,SAAC;IACH,UAAC;;;cArOD,oBAAoB;iBAIX,mBAAmB,aAAa,QAAQ,kBAAe;;;;;IA6L3D;IACV;;;;;;;;IASkB;IAAkC;IAGtD;;;;;;;;;;;;;;;;;;;IAsBS,SAAC;IACH,UAAC;;;iBAtFQ,aACpB,cACC,QAAQ;KA6IC,YAAY,QACrB,WAAW,KAAK,EAAE,oBAAoB,YAAY,EAAE,MAAM,EAAE;;;;;;;;iBAU/C,qBACd,UAAU,YAAY,kBACrB;;;;UCtUO;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;iBAOc,mBACd,6BACC;;;;iBAgGa,wBAAwB,MAAM,mBAAmB;;;;iBA2BjD,0BACd,OAAO,iCACN;;;;;;iBAqCmB,8BACpB,uBACC,QAAQ"}
|
package/dist/extract.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as ShadcnExtractPluginOptions } from "./types-
|
|
2
|
-
import { S as ShadcnWorkspaceConfig, _ as getRegistryConfig, a as registryItemsToComponents, b as ShadcnRawConfig, c as DEFAULT_COMPONENTS, d as DEFAULT_TAILWIND_CONFIG, f as DEFAULT_TAILWIND_CSS, g as getRawConfig, h as createRegistryConfig, i as registryItemToComponent, l as DEFAULT_STYLE, m as RegistryConfig, n as extractComponentsFromRegistry, o as toDependencyRecord, p as DEFAULT_UTILS, s as BUILTIN_REGISTRIES, t as _default, u as DEFAULT_TAILWIND_BASE_COLOR, v as resolveConfigPaths, x as ShadcnRegistryConfig, y as ShadcnConfig } from "./extract-
|
|
1
|
+
import { t as ShadcnExtractPluginOptions } from "./types-BvsYQIch.cjs";
|
|
2
|
+
import { S as ShadcnWorkspaceConfig, _ as getRegistryConfig, a as registryItemsToComponents, b as ShadcnRawConfig, c as DEFAULT_COMPONENTS, d as DEFAULT_TAILWIND_CONFIG, f as DEFAULT_TAILWIND_CSS, g as getRawConfig, h as createRegistryConfig, i as registryItemToComponent, l as DEFAULT_STYLE, m as RegistryConfig, n as extractComponentsFromRegistry, o as toDependencyRecord, p as DEFAULT_UTILS, s as BUILTIN_REGISTRIES, t as _default, u as DEFAULT_TAILWIND_BASE_COLOR, v as resolveConfigPaths, x as ShadcnRegistryConfig, y as ShadcnConfig } from "./extract-yy--t-RM.cjs";
|
|
3
3
|
export { BUILTIN_REGISTRIES, DEFAULT_COMPONENTS, DEFAULT_STYLE, DEFAULT_TAILWIND_BASE_COLOR, DEFAULT_TAILWIND_CONFIG, DEFAULT_TAILWIND_CSS, DEFAULT_UTILS, type RegistryConfig, type ShadcnConfig, type ShadcnExtractPluginOptions, type ShadcnRawConfig, type ShadcnRegistryConfig, type ShadcnWorkspaceConfig, createRegistryConfig, _default as default, extractComponentsFromRegistry, getRawConfig, getRegistryConfig, registryItemToComponent, registryItemsToComponents, resolveConfigPaths, toDependencyRecord };
|
package/dist/extract.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as ShadcnExtractPluginOptions } from "./types-
|
|
2
|
-
import { S as ShadcnWorkspaceConfig, _ as getRegistryConfig, a as registryItemsToComponents, b as ShadcnRawConfig, c as DEFAULT_COMPONENTS, d as DEFAULT_TAILWIND_CONFIG, f as DEFAULT_TAILWIND_CSS, g as getRawConfig, h as createRegistryConfig, i as registryItemToComponent, l as DEFAULT_STYLE, m as RegistryConfig, n as extractComponentsFromRegistry, o as toDependencyRecord, p as DEFAULT_UTILS, s as BUILTIN_REGISTRIES, t as _default, u as DEFAULT_TAILWIND_BASE_COLOR, v as resolveConfigPaths, x as ShadcnRegistryConfig, y as ShadcnConfig } from "./extract-
|
|
1
|
+
import { t as ShadcnExtractPluginOptions } from "./types-BKVZEcei.mjs";
|
|
2
|
+
import { S as ShadcnWorkspaceConfig, _ as getRegistryConfig, a as registryItemsToComponents, b as ShadcnRawConfig, c as DEFAULT_COMPONENTS, d as DEFAULT_TAILWIND_CONFIG, f as DEFAULT_TAILWIND_CSS, g as getRawConfig, h as createRegistryConfig, i as registryItemToComponent, l as DEFAULT_STYLE, m as RegistryConfig, n as extractComponentsFromRegistry, o as toDependencyRecord, p as DEFAULT_UTILS, s as BUILTIN_REGISTRIES, t as _default, u as DEFAULT_TAILWIND_BASE_COLOR, v as resolveConfigPaths, x as ShadcnRegistryConfig, y as ShadcnConfig } from "./extract-CwrNS8sj.mjs";
|
|
3
3
|
export { BUILTIN_REGISTRIES, DEFAULT_COMPONENTS, DEFAULT_STYLE, DEFAULT_TAILWIND_BASE_COLOR, DEFAULT_TAILWIND_CONFIG, DEFAULT_TAILWIND_CSS, DEFAULT_UTILS, type RegistryConfig, type ShadcnConfig, type ShadcnExtractPluginOptions, type ShadcnRawConfig, type ShadcnRegistryConfig, type ShadcnWorkspaceConfig, createRegistryConfig, _default as default, extractComponentsFromRegistry, getRawConfig, getRegistryConfig, registryItemToComponent, registryItemsToComponents, resolveConfigPaths, toDependencyRecord };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-Chgba0Kb.cjs");let t=require("@power-plant/core"),n=require("@razorwind/core/plugin"),r=require("@stryke/path/join"),i=require("node:path"),a=require("@razorwind/core/utils");function o(e){let t=e.name??`acme`;return`# Installing shadcn Registry
|
|
2
|
+
|
|
3
|
+
Generated by \`@razorwind/shadcn\`.
|
|
4
|
+
|
|
5
|
+
## Files
|
|
6
|
+
|
|
7
|
+
- \`${e.configFile}\` — shadcn registry manifest (registry.json schema)
|
|
8
|
+
|
|
9
|
+
## Setup
|
|
10
|
+
|
|
11
|
+
1. Ensure \`components.json\` points at this registry URL or local path.
|
|
12
|
+
|
|
13
|
+
2. Add items from the registry:
|
|
14
|
+
|
|
15
|
+
\`\`\`bash
|
|
16
|
+
npx shadcn@latest add button --registry ./${e.configFile}
|
|
17
|
+
\`\`\`
|
|
18
|
+
|
|
19
|
+
Or publish \`${e.configFile}\` and reference it in \`components.json\`:
|
|
20
|
+
|
|
21
|
+
\`\`\`json
|
|
22
|
+
{
|
|
23
|
+
"registries": {
|
|
24
|
+
"@${t}": "./${e.configFile}"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
\`\`\`
|
|
28
|
+
|
|
29
|
+
3. Re-run Razorwind generate when Razorwind components change so the registry stays current.
|
|
30
|
+
|
|
31
|
+
## Regenerate
|
|
32
|
+
|
|
33
|
+
\`${e.configFile}\` is generated — update Razorwind schema components instead of editing by hand.
|
|
34
|
+
`}var s=e.t({componentToRegistryItem:()=>f,componentsToRegistryItems:()=>p,default:()=>_,fromDependencyRecord:()=>c,generateRegistryJson:()=>g,renderInstallMd:()=>o,renderRegistryJson:()=>m});function c(e){if(!(!e||Object.keys(e).length===0))return Object.entries(e).map(([e,t])=>!t||t===`*`?e:`${e}@${t}`)}function l(e){switch(e){case`block`:case`component`:case`ui`:case`page`:return`registry:${e}`;case void 0:default:return`registry:component`}}function u(e){return`registry:${e}`}function d(e){if(e?.length)return e.map(e=>{let t=u(e.type),n={path:e.path,type:t};return e.content&&(n.content=e.content),e.target?n.target=e.target:(t===`registry:file`||t===`registry:page`)&&(n.target=e.path),n})}function f(e){let t=e.tags?.length?[...e.tags]:e.category?[e.category]:void 0,n=c(e.dependencies),r=c(e.devDependencies),i=c(e.registryDependencies),a=d(e.files);return{name:e.name,type:l(e.type),...e.title?{title:e.title}:{},...e.description?{description:e.description}:{},...t?{categories:t}:{},...n?{dependencies:n}:{},...r?{devDependencies:r}:{},...i?{registryDependencies:i}:{},...a?{files:a}:{}}}function p(e){return!e||Object.keys(e).length===0?[]:Object.values(e).filter(e=>!!e?.name).map(f).toSorted((e,t)=>e.name.localeCompare(t.name))}function m(e,t={}){let n={$schema:`https://ui.shadcn.com/schema/registry.json`,items:p(e)};return t.name&&(n.name=t.name),t.homepage&&(n.homepage=t.homepage),n}async function h(e){if(e.configFile)return e.configFile;let{cwd:n}=(0,t.useExecution)();return(0,r.joinPaths)(n,`registry.json`)}async function g(e,t={}){if(!e.components||Object.keys(e.components).length===0)return{};let n=await h(t),r=`${JSON.stringify(m(e.components,t),null,2)}\n`,s=t.installGuide??o({configFile:n,name:t.name}),c=(0,i.join)((0,i.dirname)(n),`INSTALL.md`);return{[n]:(0,a.createDocument)(n,r,{name:`shadcn:generate`},`json`),[c]:(0,a.createDocument)(c,s,{name:`shadcn:generate`},`markdown`)}}var _=(0,n.definePlugin)(e=>({name:`shadcn:generate`,generate:async t=>g(t,e??{})}));Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { n as ShadcnGeneratePluginOptions, r as __exportAll } from "./types-BvsYQIch.cjs";
|
|
2
|
+
import { Component, Components, Schema } from "@razorwind/core/schema";
|
|
3
|
+
import { GeneratorFunctionResult } from "@power-plant/core";
|
|
4
|
+
//#region src/install.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Build shadcn INSTALL.md for generated registry.json.
|
|
7
|
+
*
|
|
8
|
+
* @see https://ui.shadcn.com/docs/registry
|
|
9
|
+
*/
|
|
10
|
+
declare function renderInstallMd(options: {
|
|
11
|
+
configFile: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
}): string;
|
|
14
|
+
declare namespace generate_d_exports {
|
|
15
|
+
export { RegistryDocument, RegistryFileLike, RegistryItemLike, ShadcnGeneratePluginOptions, componentToRegistryItem, componentsToRegistryItems, _default as default, fromDependencyRecord, generateRegistryJson, renderInstallMd, renderRegistryJson };
|
|
16
|
+
}
|
|
17
|
+
type RegistryItemType = "registry:block" | "registry:component" | "registry:ui" | "registry:page";
|
|
18
|
+
type RegistryFileType = "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:page" | "registry:file" | "registry:style" | "registry:base" | "registry:font" | "registry:item";
|
|
19
|
+
interface RegistryFileLike {
|
|
20
|
+
path: string;
|
|
21
|
+
type: RegistryFileType;
|
|
22
|
+
content?: string;
|
|
23
|
+
target?: string;
|
|
24
|
+
}
|
|
25
|
+
interface RegistryItemLike {
|
|
26
|
+
name: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
type: RegistryItemType;
|
|
29
|
+
description?: string;
|
|
30
|
+
categories?: string[];
|
|
31
|
+
dependencies?: string[];
|
|
32
|
+
devDependencies?: string[];
|
|
33
|
+
registryDependencies?: string[];
|
|
34
|
+
files?: RegistryFileLike[];
|
|
35
|
+
}
|
|
36
|
+
interface RegistryDocument {
|
|
37
|
+
$schema: string;
|
|
38
|
+
name?: string;
|
|
39
|
+
homepage?: string;
|
|
40
|
+
items: RegistryItemLike[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Convert a name → version record back into npm-style dependency strings.
|
|
44
|
+
* Versions of `*` omit the `@version` suffix.
|
|
45
|
+
*/
|
|
46
|
+
declare function fromDependencyRecord(deps: Record<string, string> | undefined): string[] | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Map a Razorwind {@link Component} into a shadcn registry item.
|
|
49
|
+
*/
|
|
50
|
+
declare function componentToRegistryItem(component: Component): RegistryItemLike;
|
|
51
|
+
/**
|
|
52
|
+
* Convert a `schema.components` record into a shadcn registry `items` list.
|
|
53
|
+
*/
|
|
54
|
+
declare function componentsToRegistryItems(components: Components | undefined): RegistryItemLike[];
|
|
55
|
+
/**
|
|
56
|
+
* Build a shadcn `registry.json` document from schema components.
|
|
57
|
+
*/
|
|
58
|
+
declare function renderRegistryJson(components: Components | undefined, options?: Pick<ShadcnGeneratePluginOptions, "name" | "homepage">): RegistryDocument;
|
|
59
|
+
/**
|
|
60
|
+
* Generate a shadcn `registry.json` file from a Razorwind schema.
|
|
61
|
+
*/
|
|
62
|
+
declare function generateRegistryJson(spec: Schema, options?: ShadcnGeneratePluginOptions): Promise<GeneratorFunctionResult<Schema, ShadcnGeneratePluginOptions>>;
|
|
63
|
+
/**
|
|
64
|
+
* Razorwind plugin: generate a shadcn `registry.json` from schema components.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* import { defineConfig } from "@razorwind/core";
|
|
69
|
+
* import shadcn from "@razorwind/shadcn/generate";
|
|
70
|
+
*
|
|
71
|
+
* export default defineConfig({
|
|
72
|
+
* plugins: [shadcn({ name: "acme", homepage: "https://acme.com" })]
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
declare const _default: (options?: ShadcnGeneratePluginOptions | undefined) => import("@razorwind/core/plugin").Plugin;
|
|
77
|
+
//#endregion
|
|
78
|
+
export { componentToRegistryItem as a, generateRegistryJson as c, renderInstallMd as d, _default as i, generate_d_exports as l, RegistryFileLike as n, componentsToRegistryItems as o, RegistryItemLike as r, fromDependencyRecord as s, RegistryDocument as t, renderRegistryJson as u };
|
|
79
|
+
//# sourceMappingURL=generate-C_UxH4C_.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-C_UxH4C_.d.cts","names":[],"sources":["../src/install.ts","../src/generate.ts"],"mappings":";;;;;;;;;iBAuBgB,gBAAgB;EAC9B;EACA;;;;;KCYG;KAGA;UAcY;EACf;EACA,MAAM;EACN;EACA;;UAGe;EACf;EACA;EACA,MAAM;EACN;EACA;EACA;EACA;EACA;EACA,QAAQ;;UAGO;EACf;EACA;EACA;EACA,OAAO;;;;;;iBAOO,qBACd,MAAM;;;;iBA8DQ,wBACd,WAAW,YACV;;;;iBA6Ba,0BACd,YAAY,yBACX;;;;iBAca,mBACd,YAAY,wBACZ,UAAS,KAAK,oDACb;;;;iBAmCmB,qBACpB,MAAM,QACN,UAAS,8BACR,QAAQ,wBAAwB,QAAQ"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.mjs";import{useExecution as t}from"@power-plant/core";import{definePlugin as n}from"@razorwind/core/plugin";import{joinPaths as r}from"@stryke/path/join";import{dirname as i,join as a}from"node:path";import{createDocument as o}from"@razorwind/core/utils";function s(e){let t=e.name??`acme`;return`# Installing shadcn Registry
|
|
2
|
+
|
|
3
|
+
Generated by \`@razorwind/shadcn\`.
|
|
4
|
+
|
|
5
|
+
## Files
|
|
6
|
+
|
|
7
|
+
- \`${e.configFile}\` — shadcn registry manifest (registry.json schema)
|
|
8
|
+
|
|
9
|
+
## Setup
|
|
10
|
+
|
|
11
|
+
1. Ensure \`components.json\` points at this registry URL or local path.
|
|
12
|
+
|
|
13
|
+
2. Add items from the registry:
|
|
14
|
+
|
|
15
|
+
\`\`\`bash
|
|
16
|
+
npx shadcn@latest add button --registry ./${e.configFile}
|
|
17
|
+
\`\`\`
|
|
18
|
+
|
|
19
|
+
Or publish \`${e.configFile}\` and reference it in \`components.json\`:
|
|
20
|
+
|
|
21
|
+
\`\`\`json
|
|
22
|
+
{
|
|
23
|
+
"registries": {
|
|
24
|
+
"@${t}": "./${e.configFile}"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
\`\`\`
|
|
28
|
+
|
|
29
|
+
3. Re-run Razorwind generate when Razorwind components change so the registry stays current.
|
|
30
|
+
|
|
31
|
+
## Regenerate
|
|
32
|
+
|
|
33
|
+
\`${e.configFile}\` is generated — update Razorwind schema components instead of editing by hand.
|
|
34
|
+
`}var c=e({componentToRegistryItem:()=>p,componentsToRegistryItems:()=>m,default:()=>v,fromDependencyRecord:()=>l,generateRegistryJson:()=>_,renderInstallMd:()=>s,renderRegistryJson:()=>h});function l(e){if(!(!e||Object.keys(e).length===0))return Object.entries(e).map(([e,t])=>!t||t===`*`?e:`${e}@${t}`)}function u(e){switch(e){case`block`:case`component`:case`ui`:case`page`:return`registry:${e}`;case void 0:default:return`registry:component`}}function d(e){return`registry:${e}`}function f(e){if(e?.length)return e.map(e=>{let t=d(e.type),n={path:e.path,type:t};return e.content&&(n.content=e.content),e.target?n.target=e.target:(t===`registry:file`||t===`registry:page`)&&(n.target=e.path),n})}function p(e){let t=e.tags?.length?[...e.tags]:e.category?[e.category]:void 0,n=l(e.dependencies),r=l(e.devDependencies),i=l(e.registryDependencies),a=f(e.files);return{name:e.name,type:u(e.type),...e.title?{title:e.title}:{},...e.description?{description:e.description}:{},...t?{categories:t}:{},...n?{dependencies:n}:{},...r?{devDependencies:r}:{},...i?{registryDependencies:i}:{},...a?{files:a}:{}}}function m(e){return!e||Object.keys(e).length===0?[]:Object.values(e).filter(e=>!!e?.name).map(p).toSorted((e,t)=>e.name.localeCompare(t.name))}function h(e,t={}){let n={$schema:`https://ui.shadcn.com/schema/registry.json`,items:m(e)};return t.name&&(n.name=t.name),t.homepage&&(n.homepage=t.homepage),n}async function g(e){if(e.configFile)return e.configFile;let{cwd:n}=t();return r(n,`registry.json`)}async function _(e,t={}){if(!e.components||Object.keys(e.components).length===0)return{};let n=await g(t),r=`${JSON.stringify(h(e.components,t),null,2)}\n`,c=t.installGuide??s({configFile:n,name:t.name}),l=a(i(n),`INSTALL.md`);return{[n]:o(n,r,{name:`shadcn:generate`},`json`),[l]:o(l,c,{name:`shadcn:generate`},`markdown`)}}var v=n(e=>({name:`shadcn:generate`,generate:async t=>_(t,e??{})}));export{v as a,s as c,_ as i,m as n,c as o,l as r,h as s,p as t};
|
|
35
|
+
//# sourceMappingURL=generate-Cz11zwTF.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-Cz11zwTF.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { n as ShadcnGeneratePluginOptions } from "./types-BKVZEcei.mjs";
|
|
2
|
+
import { GeneratorFunctionResult } from "@power-plant/core";
|
|
3
|
+
import { Component, Components, Schema } from "@razorwind/core/schema";
|
|
4
|
+
//#region src/install.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Build shadcn INSTALL.md for generated registry.json.
|
|
7
|
+
*
|
|
8
|
+
* @see https://ui.shadcn.com/docs/registry
|
|
9
|
+
*/
|
|
10
|
+
declare function renderInstallMd(options: {
|
|
11
|
+
configFile: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
}): string;
|
|
14
|
+
declare namespace generate_d_exports {
|
|
15
|
+
export { RegistryDocument, RegistryFileLike, RegistryItemLike, ShadcnGeneratePluginOptions, componentToRegistryItem, componentsToRegistryItems, _default as default, fromDependencyRecord, generateRegistryJson, renderInstallMd, renderRegistryJson };
|
|
16
|
+
}
|
|
17
|
+
type RegistryItemType = "registry:block" | "registry:component" | "registry:ui" | "registry:page";
|
|
18
|
+
type RegistryFileType = "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:page" | "registry:file" | "registry:style" | "registry:base" | "registry:font" | "registry:item";
|
|
19
|
+
interface RegistryFileLike {
|
|
20
|
+
path: string;
|
|
21
|
+
type: RegistryFileType;
|
|
22
|
+
content?: string;
|
|
23
|
+
target?: string;
|
|
24
|
+
}
|
|
25
|
+
interface RegistryItemLike {
|
|
26
|
+
name: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
type: RegistryItemType;
|
|
29
|
+
description?: string;
|
|
30
|
+
categories?: string[];
|
|
31
|
+
dependencies?: string[];
|
|
32
|
+
devDependencies?: string[];
|
|
33
|
+
registryDependencies?: string[];
|
|
34
|
+
files?: RegistryFileLike[];
|
|
35
|
+
}
|
|
36
|
+
interface RegistryDocument {
|
|
37
|
+
$schema: string;
|
|
38
|
+
name?: string;
|
|
39
|
+
homepage?: string;
|
|
40
|
+
items: RegistryItemLike[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Convert a name → version record back into npm-style dependency strings.
|
|
44
|
+
* Versions of `*` omit the `@version` suffix.
|
|
45
|
+
*/
|
|
46
|
+
declare function fromDependencyRecord(deps: Record<string, string> | undefined): string[] | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Map a Razorwind {@link Component} into a shadcn registry item.
|
|
49
|
+
*/
|
|
50
|
+
declare function componentToRegistryItem(component: Component): RegistryItemLike;
|
|
51
|
+
/**
|
|
52
|
+
* Convert a `schema.components` record into a shadcn registry `items` list.
|
|
53
|
+
*/
|
|
54
|
+
declare function componentsToRegistryItems(components: Components | undefined): RegistryItemLike[];
|
|
55
|
+
/**
|
|
56
|
+
* Build a shadcn `registry.json` document from schema components.
|
|
57
|
+
*/
|
|
58
|
+
declare function renderRegistryJson(components: Components | undefined, options?: Pick<ShadcnGeneratePluginOptions, "name" | "homepage">): RegistryDocument;
|
|
59
|
+
/**
|
|
60
|
+
* Generate a shadcn `registry.json` file from a Razorwind schema.
|
|
61
|
+
*/
|
|
62
|
+
declare function generateRegistryJson(spec: Schema, options?: ShadcnGeneratePluginOptions): Promise<GeneratorFunctionResult<Schema, ShadcnGeneratePluginOptions>>;
|
|
63
|
+
/**
|
|
64
|
+
* Razorwind plugin: generate a shadcn `registry.json` from schema components.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* import { defineConfig } from "@razorwind/core";
|
|
69
|
+
* import shadcn from "@razorwind/shadcn/generate";
|
|
70
|
+
*
|
|
71
|
+
* export default defineConfig({
|
|
72
|
+
* plugins: [shadcn({ name: "acme", homepage: "https://acme.com" })]
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
declare const _default: (options?: ShadcnGeneratePluginOptions | undefined) => import("@razorwind/core/plugin").Plugin;
|
|
77
|
+
//#endregion
|
|
78
|
+
export { componentToRegistryItem as a, generateRegistryJson as c, renderInstallMd as d, _default as i, generate_d_exports as l, RegistryFileLike as n, componentsToRegistryItems as o, RegistryItemLike as r, fromDependencyRecord as s, RegistryDocument as t, renderRegistryJson as u };
|
|
79
|
+
//# sourceMappingURL=generate-Dtlbk-1_.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-Dtlbk-1_.d.mts","names":[],"sources":["../src/install.ts","../src/generate.ts"],"mappings":""}
|
package/dist/generate.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./generate-BdQe824w.cjs");exports.componentToRegistryItem=e.t,exports.componentsToRegistryItems=e.n,exports.default=e.a,exports.fromDependencyRecord=e.r,exports.generateRegistryJson=e.i,exports.renderInstallMd=e.c,exports.renderRegistryJson=e.s;
|
package/dist/generate.d.cts
CHANGED
|
@@ -1,69 +1,3 @@
|
|
|
1
|
-
import { n as ShadcnGeneratePluginOptions
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare namespace generate_d_exports {
|
|
5
|
-
export { RegistryDocument, RegistryFileLike, RegistryItemLike, ShadcnGeneratePluginOptions, componentToRegistryItem, componentsToRegistryItems, _default as default, fromDependencyRecord, generateRegistryJson, renderRegistryJson };
|
|
6
|
-
}
|
|
7
|
-
type RegistryItemType = "registry:block" | "registry:component" | "registry:ui" | "registry:page";
|
|
8
|
-
type RegistryFileType = "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:page" | "registry:file" | "registry:style" | "registry:base" | "registry:font" | "registry:item";
|
|
9
|
-
interface RegistryFileLike {
|
|
10
|
-
path: string;
|
|
11
|
-
type: RegistryFileType;
|
|
12
|
-
content?: string;
|
|
13
|
-
target?: string;
|
|
14
|
-
}
|
|
15
|
-
interface RegistryItemLike {
|
|
16
|
-
name: string;
|
|
17
|
-
title?: string;
|
|
18
|
-
type: RegistryItemType;
|
|
19
|
-
description?: string;
|
|
20
|
-
categories?: string[];
|
|
21
|
-
dependencies?: string[];
|
|
22
|
-
devDependencies?: string[];
|
|
23
|
-
registryDependencies?: string[];
|
|
24
|
-
files?: RegistryFileLike[];
|
|
25
|
-
}
|
|
26
|
-
interface RegistryDocument {
|
|
27
|
-
$schema: string;
|
|
28
|
-
name?: string;
|
|
29
|
-
homepage?: string;
|
|
30
|
-
items: RegistryItemLike[];
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Convert a name → version record back into npm-style dependency strings.
|
|
34
|
-
* Versions of `*` omit the `@version` suffix.
|
|
35
|
-
*/
|
|
36
|
-
declare function fromDependencyRecord(deps: Record<string, string> | undefined): string[] | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Map a Razorwind {@link Component} into a shadcn registry item.
|
|
39
|
-
*/
|
|
40
|
-
declare function componentToRegistryItem(component: Component): RegistryItemLike;
|
|
41
|
-
/**
|
|
42
|
-
* Convert a `schema.components` record into a shadcn registry `items` list.
|
|
43
|
-
*/
|
|
44
|
-
declare function componentsToRegistryItems(components: Components | undefined): RegistryItemLike[];
|
|
45
|
-
/**
|
|
46
|
-
* Build a shadcn `registry.json` document from schema components.
|
|
47
|
-
*/
|
|
48
|
-
declare function renderRegistryJson(components: Components | undefined, options?: Pick<ShadcnGeneratePluginOptions, "name" | "homepage">): RegistryDocument;
|
|
49
|
-
/**
|
|
50
|
-
* Generate a shadcn `registry.json` file from a Razorwind schema.
|
|
51
|
-
*/
|
|
52
|
-
declare function generateRegistryJson(spec: Schema, options?: ShadcnGeneratePluginOptions): Promise<GeneratorFunctionResult<Schema, ShadcnGeneratePluginOptions>>;
|
|
53
|
-
/**
|
|
54
|
-
* Razorwind plugin: generate a shadcn `registry.json` from schema components.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* import { defineConfig } from "@razorwind/core";
|
|
59
|
-
* import shadcn from "@razorwind/shadcn/generate";
|
|
60
|
-
*
|
|
61
|
-
* export default defineConfig({
|
|
62
|
-
* plugins: [shadcn({ name: "acme", homepage: "https://acme.com" })]
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
declare const _default: (options?: ShadcnGeneratePluginOptions | undefined) => import("@razorwind/core/plugin").Plugin;
|
|
67
|
-
//#endregion
|
|
68
|
-
export { RegistryDocument, RegistryFileLike, RegistryItemLike, type ShadcnGeneratePluginOptions, componentToRegistryItem, componentsToRegistryItems, _default as default, fromDependencyRecord, generateRegistryJson, renderRegistryJson, generate_d_exports as t };
|
|
69
|
-
//# sourceMappingURL=generate.d.cts.map
|
|
1
|
+
import { n as ShadcnGeneratePluginOptions } from "./types-BvsYQIch.cjs";
|
|
2
|
+
import { a as componentToRegistryItem, c as generateRegistryJson, d as renderInstallMd, i as _default, n as RegistryFileLike, o as componentsToRegistryItems, r as RegistryItemLike, s as fromDependencyRecord, t as RegistryDocument, u as renderRegistryJson } from "./generate-C_UxH4C_.cjs";
|
|
3
|
+
export { RegistryDocument, RegistryFileLike, RegistryItemLike, type ShadcnGeneratePluginOptions, componentToRegistryItem, componentsToRegistryItems, _default as default, fromDependencyRecord, generateRegistryJson, renderInstallMd, renderRegistryJson };
|
package/dist/generate.d.mts
CHANGED
|
@@ -1,69 +1,3 @@
|
|
|
1
|
-
import { n as ShadcnGeneratePluginOptions } from "./types-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare namespace generate_d_exports {
|
|
5
|
-
export { RegistryDocument, RegistryFileLike, RegistryItemLike, ShadcnGeneratePluginOptions, componentToRegistryItem, componentsToRegistryItems, _default as default, fromDependencyRecord, generateRegistryJson, renderRegistryJson };
|
|
6
|
-
}
|
|
7
|
-
type RegistryItemType = "registry:block" | "registry:component" | "registry:ui" | "registry:page";
|
|
8
|
-
type RegistryFileType = "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:page" | "registry:file" | "registry:style" | "registry:base" | "registry:font" | "registry:item";
|
|
9
|
-
interface RegistryFileLike {
|
|
10
|
-
path: string;
|
|
11
|
-
type: RegistryFileType;
|
|
12
|
-
content?: string;
|
|
13
|
-
target?: string;
|
|
14
|
-
}
|
|
15
|
-
interface RegistryItemLike {
|
|
16
|
-
name: string;
|
|
17
|
-
title?: string;
|
|
18
|
-
type: RegistryItemType;
|
|
19
|
-
description?: string;
|
|
20
|
-
categories?: string[];
|
|
21
|
-
dependencies?: string[];
|
|
22
|
-
devDependencies?: string[];
|
|
23
|
-
registryDependencies?: string[];
|
|
24
|
-
files?: RegistryFileLike[];
|
|
25
|
-
}
|
|
26
|
-
interface RegistryDocument {
|
|
27
|
-
$schema: string;
|
|
28
|
-
name?: string;
|
|
29
|
-
homepage?: string;
|
|
30
|
-
items: RegistryItemLike[];
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Convert a name → version record back into npm-style dependency strings.
|
|
34
|
-
* Versions of `*` omit the `@version` suffix.
|
|
35
|
-
*/
|
|
36
|
-
declare function fromDependencyRecord(deps: Record<string, string> | undefined): string[] | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Map a Razorwind {@link Component} into a shadcn registry item.
|
|
39
|
-
*/
|
|
40
|
-
declare function componentToRegistryItem(component: Component): RegistryItemLike;
|
|
41
|
-
/**
|
|
42
|
-
* Convert a `schema.components` record into a shadcn registry `items` list.
|
|
43
|
-
*/
|
|
44
|
-
declare function componentsToRegistryItems(components: Components | undefined): RegistryItemLike[];
|
|
45
|
-
/**
|
|
46
|
-
* Build a shadcn `registry.json` document from schema components.
|
|
47
|
-
*/
|
|
48
|
-
declare function renderRegistryJson(components: Components | undefined, options?: Pick<ShadcnGeneratePluginOptions, "name" | "homepage">): RegistryDocument;
|
|
49
|
-
/**
|
|
50
|
-
* Generate a shadcn `registry.json` file from a Razorwind schema.
|
|
51
|
-
*/
|
|
52
|
-
declare function generateRegistryJson(spec: Schema, options?: ShadcnGeneratePluginOptions): Promise<GeneratorFunctionResult<Schema, ShadcnGeneratePluginOptions>>;
|
|
53
|
-
/**
|
|
54
|
-
* Razorwind plugin: generate a shadcn `registry.json` from schema components.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* import { defineConfig } from "@razorwind/core";
|
|
59
|
-
* import shadcn from "@razorwind/shadcn/generate";
|
|
60
|
-
*
|
|
61
|
-
* export default defineConfig({
|
|
62
|
-
* plugins: [shadcn({ name: "acme", homepage: "https://acme.com" })]
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
declare const _default: (options?: ShadcnGeneratePluginOptions | undefined) => import("@razorwind/core/plugin").Plugin;
|
|
67
|
-
//#endregion
|
|
68
|
-
export { RegistryDocument, RegistryFileLike, RegistryItemLike, type ShadcnGeneratePluginOptions, componentToRegistryItem, componentsToRegistryItems, _default as default, fromDependencyRecord, generateRegistryJson, renderRegistryJson, generate_d_exports as t };
|
|
69
|
-
//# sourceMappingURL=generate.d.mts.map
|
|
1
|
+
import { n as ShadcnGeneratePluginOptions } from "./types-BKVZEcei.mjs";
|
|
2
|
+
import { a as componentToRegistryItem, c as generateRegistryJson, d as renderInstallMd, i as _default, n as RegistryFileLike, o as componentsToRegistryItems, r as RegistryItemLike, s as fromDependencyRecord, t as RegistryDocument, u as renderRegistryJson } from "./generate-Dtlbk-1_.mjs";
|
|
3
|
+
export { RegistryDocument, RegistryFileLike, RegistryItemLike, type ShadcnGeneratePluginOptions, componentToRegistryItem, componentsToRegistryItems, _default as default, fromDependencyRecord, generateRegistryJson, renderInstallMd, renderRegistryJson };
|
package/dist/generate.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=generate.mjs.map
|
|
1
|
+
import{a as e,c as t,i as n,n as r,r as i,s as a,t as o}from"./generate-Cz11zwTF.mjs";export{o as componentToRegistryItem,r as componentsToRegistryItems,e as default,i as fromDependencyRecord,n as generateRegistryJson,t as renderInstallMd,a as renderRegistryJson};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./extract-B_5jkDlD.cjs"),t=require("./generate.cjs");Object.defineProperty(exports,"extract",{enumerable:!0,get:function(){return e.r}}),Object.defineProperty(exports,"generate",{enumerable:!0,get:function(){return t.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./extract-B_5jkDlD.cjs"),t=require("./generate-BdQe824w.cjs");Object.defineProperty(exports,"extract",{enumerable:!0,get:function(){return e.r}}),Object.defineProperty(exports,"generate",{enumerable:!0,get:function(){return t.o}});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as extract_d_exports } from "./extract-
|
|
2
|
-
import {
|
|
1
|
+
import { r as extract_d_exports } from "./extract-yy--t-RM.cjs";
|
|
2
|
+
import { l as generate_d_exports } from "./generate-C_UxH4C_.cjs";
|
|
3
3
|
export { extract_d_exports as extract, generate_d_exports as generate };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as extract_d_exports } from "./extract-
|
|
2
|
-
import {
|
|
1
|
+
import { r as extract_d_exports } from "./extract-CwrNS8sj.mjs";
|
|
2
|
+
import { l as generate_d_exports } from "./generate-Dtlbk-1_.mjs";
|
|
3
3
|
export { extract_d_exports as extract, generate_d_exports as generate };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./extract-DZbvJZfZ.mjs";import{t}from"./generate.mjs";export{e as extract,t as generate};
|
|
1
|
+
import{r as e}from"./extract-DZbvJZfZ.mjs";import{o as t}from"./generate-Cz11zwTF.mjs";export{e as extract,t as generate};
|
|
@@ -37,7 +37,12 @@ interface ShadcnGeneratePluginOptions {
|
|
|
37
37
|
* Registry `homepage` field written into `registry.json`.
|
|
38
38
|
*/
|
|
39
39
|
homepage?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Override body for generated `INSTALL.md`. When omitted, shadcn registry
|
|
42
|
+
* wiring steps are generated for the output file.
|
|
43
|
+
*/
|
|
44
|
+
installGuide?: string;
|
|
40
45
|
}
|
|
41
46
|
//#endregion
|
|
42
47
|
export { ShadcnGeneratePluginOptions as n, ShadcnExtractPluginOptions as t };
|
|
43
|
-
//# sourceMappingURL=types-
|
|
48
|
+
//# sourceMappingURL=types-BKVZEcei.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-BKVZEcei.d.mts","names":[],"sources":["../src/types.ts"],"mappings":""}
|
|
@@ -38,7 +38,12 @@ interface ShadcnGeneratePluginOptions {
|
|
|
38
38
|
* Registry `homepage` field written into `registry.json`.
|
|
39
39
|
*/
|
|
40
40
|
homepage?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Override body for generated `INSTALL.md`. When omitted, shadcn registry
|
|
43
|
+
* wiring steps are generated for the output file.
|
|
44
|
+
*/
|
|
45
|
+
installGuide?: string;
|
|
41
46
|
}
|
|
42
47
|
//#endregion
|
|
43
48
|
export { ShadcnGeneratePluginOptions as n, __exportAll as r, ShadcnExtractPluginOptions as t };
|
|
44
|
-
//# sourceMappingURL=types-
|
|
49
|
+
//# sourceMappingURL=types-BvsYQIch.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-BvsYQIch.d.cts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;UAqBiB;;;;;;;;;;;;;;;EAef;;;;;UAMe;;;;;;EAMf;;;;EAKA;;;;EAKA;;;;;EAMA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@razorwind/shadcn",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Razorwind Shadcn plugin that can create Shadcn UI registry files from design tokens/components or read a Shadcn UI registry file and return the design tokens/components.",
|
|
6
6
|
"repository": {
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
"types": "./dist/index.d.cts",
|
|
79
79
|
"typings": "dist/index.d.mts",
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@power-plant/core": "^0.0.
|
|
81
|
+
"@power-plant/core": "^0.0.81",
|
|
82
82
|
"@power-plant/dtcg-schema": "^0.0.1",
|
|
83
|
-
"@razorwind/core": "0.0.
|
|
83
|
+
"@razorwind/core": "^0.0.30",
|
|
84
84
|
"@stryke/fs": "^0.33.103",
|
|
85
85
|
"@stryke/path": "^0.29.29",
|
|
86
86
|
"@stryke/types": "^0.12.30",
|
|
@@ -92,10 +92,10 @@
|
|
|
92
92
|
"zod": "^4.4.3"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
95
|
+
"@powerlines/plugin-tsdown": "^0.1.590",
|
|
96
96
|
"@types/node": "^25.9.5",
|
|
97
97
|
"typescript": "^6.0.3"
|
|
98
98
|
},
|
|
99
99
|
"publishConfig": { "access": "public" },
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "11a6e827627acf51ef0044e366fd9493f2173ec2"
|
|
101
101
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extract-Bzw3D4LY.d.mts","names":[],"sources":["../src/registry/shadcn-types.ts","../src/registry/config.ts","../src/extract.ts"],"mappings":""}
|
package/dist/generate.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.cts","names":[],"sources":["../src/generate.ts"],"mappings":";;;;;;KAmCK;KAGA;UAcY;EACf;EACA,MAAM;EACN;EACA;;UAGe;EACf;EACA;EACA,MAAM;EACN;EACA;EACA;EACA;EACA;EACA,QAAQ;;UAGO;EACf;EACA;EACA;EACA,OAAO;;;;;;iBAOO,qBACd,MAAM;;;;iBA8DQ,wBACd,WAAW,YACV;;;;iBA6Ba,0BACd,YAAY,yBACX;;;;iBAca,mBACd,YAAY,wBACZ,UAAS,KAAK,oDACb;;;;iBAiCmB,qBACpB,MAAM,QACN,UAAS,8BACR,QAAQ,wBAAwB,QAAQ"}
|
package/dist/generate.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.mts","names":[],"sources":["../src/generate.ts"],"mappings":""}
|
package/dist/generate.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-BH0MT5Wk.d.mts","names":[],"sources":["../src/types.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-Jkebh8QA.d.cts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;UAqBiB;;;;;;;;;;;;;;;EAef;;;;;UAMe;;;;;;EAMf;;;;EAKA;;;;EAKA"}
|