@razorwind/shadcn 0.0.73 → 0.0.75

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.
@@ -27,16 +27,16 @@ declare const DEFAULT_TAILWIND_CONFIG = "tailwind.config.js";
27
27
  declare const DEFAULT_TAILWIND_BASE_COLOR = "slate";
28
28
  type RegistryConfig = ShadcnConfig;
29
29
  declare function getRegistryConfig(cwd: string): Promise<{
30
+ style: string;
31
+ rsc: boolean;
32
+ tsx: boolean;
30
33
  tailwind: {
31
- baseColor: string;
32
34
  css: string;
35
+ baseColor: string;
33
36
  cssVariables: boolean;
34
37
  config?: string | undefined;
35
38
  prefix?: string | undefined;
36
39
  };
37
- style: string;
38
- rsc: boolean;
39
- tsx: boolean;
40
40
  aliases: {
41
41
  components: string;
42
42
  utils: string;
@@ -46,19 +46,19 @@ declare function getRegistryConfig(cwd: string): Promise<{
46
46
  };
47
47
  resolvedPaths: {
48
48
  components: string;
49
- ui: string;
50
49
  utils: string;
50
+ ui: string;
51
51
  lib: string;
52
52
  hooks: string;
53
53
  cwd: string;
54
54
  tailwindConfig: string;
55
55
  tailwindCss: string;
56
56
  };
57
- menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
58
- menuAccent?: "subtle" | "bold" | undefined;
59
- iconLibrary?: string | undefined;
60
57
  $schema?: string | undefined;
58
+ iconLibrary?: string | undefined;
61
59
  rtl?: boolean | undefined;
60
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
61
+ menuAccent?: "subtle" | "bold" | undefined;
62
62
  registries?: Record<string, string | {
63
63
  url: string;
64
64
  params?: Record<string, string> | undefined;
@@ -67,16 +67,16 @@ declare function getRegistryConfig(cwd: string): Promise<{
67
67
  } | null>;
68
68
  declare const BUILTIN_REGISTRIES: ShadcnRegistryConfig;
69
69
  declare function resolveConfigPaths(cwd: string, config: ShadcnRawConfig): Promise<{
70
+ style: string;
71
+ rsc: boolean;
72
+ tsx: boolean;
70
73
  tailwind: {
71
- baseColor: string;
72
74
  css: string;
75
+ baseColor: string;
73
76
  cssVariables: boolean;
74
77
  config?: string | undefined;
75
78
  prefix?: string | undefined;
76
79
  };
77
- style: string;
78
- rsc: boolean;
79
- tsx: boolean;
80
80
  aliases: {
81
81
  components: string;
82
82
  utils: string;
@@ -86,19 +86,19 @@ declare function resolveConfigPaths(cwd: string, config: ShadcnRawConfig): Promi
86
86
  };
87
87
  resolvedPaths: {
88
88
  components: string;
89
- ui: string;
90
89
  utils: string;
90
+ ui: string;
91
91
  lib: string;
92
92
  hooks: string;
93
93
  cwd: string;
94
94
  tailwindConfig: string;
95
95
  tailwindCss: string;
96
96
  };
97
- menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
98
- menuAccent?: "subtle" | "bold" | undefined;
99
- iconLibrary?: string | undefined;
100
97
  $schema?: string | undefined;
98
+ iconLibrary?: string | undefined;
101
99
  rtl?: boolean | undefined;
100
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
101
+ menuAccent?: "subtle" | "bold" | undefined;
102
102
  registries?: Record<string, string | {
103
103
  url: string;
104
104
  params?: Record<string, string> | undefined;
@@ -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-CwrNS8sj.d.mts.map
168
+ //# sourceMappingURL=extract-BHw0cSFv.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract-BHw0cSFv.d.mts","names":[],"sources":["../src/registry/shadcn-types.ts","../src/registry/config.ts","../src/extract.ts"],"mappings":""}
@@ -27,16 +27,16 @@ declare const DEFAULT_TAILWIND_CONFIG = "tailwind.config.js";
27
27
  declare const DEFAULT_TAILWIND_BASE_COLOR = "slate";
28
28
  type RegistryConfig = ShadcnConfig;
29
29
  declare function getRegistryConfig(cwd: string): Promise<{
30
+ style: string;
31
+ rsc: boolean;
32
+ tsx: boolean;
30
33
  tailwind: {
31
- baseColor: string;
32
34
  css: string;
35
+ baseColor: string;
33
36
  cssVariables: boolean;
34
37
  config?: string | undefined;
35
38
  prefix?: string | undefined;
36
39
  };
37
- style: string;
38
- rsc: boolean;
39
- tsx: boolean;
40
40
  aliases: {
41
41
  components: string;
42
42
  utils: string;
@@ -46,19 +46,19 @@ declare function getRegistryConfig(cwd: string): Promise<{
46
46
  };
47
47
  resolvedPaths: {
48
48
  components: string;
49
- ui: string;
50
49
  utils: string;
50
+ ui: string;
51
51
  lib: string;
52
52
  hooks: string;
53
53
  cwd: string;
54
54
  tailwindConfig: string;
55
55
  tailwindCss: string;
56
56
  };
57
- menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
58
- menuAccent?: "subtle" | "bold" | undefined;
59
- iconLibrary?: string | undefined;
60
57
  $schema?: string | undefined;
58
+ iconLibrary?: string | undefined;
61
59
  rtl?: boolean | undefined;
60
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
61
+ menuAccent?: "subtle" | "bold" | undefined;
62
62
  registries?: Record<string, string | {
63
63
  url: string;
64
64
  params?: Record<string, string> | undefined;
@@ -67,16 +67,16 @@ declare function getRegistryConfig(cwd: string): Promise<{
67
67
  } | null>;
68
68
  declare const BUILTIN_REGISTRIES: ShadcnRegistryConfig;
69
69
  declare function resolveConfigPaths(cwd: string, config: ShadcnRawConfig): Promise<{
70
+ style: string;
71
+ rsc: boolean;
72
+ tsx: boolean;
70
73
  tailwind: {
71
- baseColor: string;
72
74
  css: string;
75
+ baseColor: string;
73
76
  cssVariables: boolean;
74
77
  config?: string | undefined;
75
78
  prefix?: string | undefined;
76
79
  };
77
- style: string;
78
- rsc: boolean;
79
- tsx: boolean;
80
80
  aliases: {
81
81
  components: string;
82
82
  utils: string;
@@ -86,19 +86,19 @@ declare function resolveConfigPaths(cwd: string, config: ShadcnRawConfig): Promi
86
86
  };
87
87
  resolvedPaths: {
88
88
  components: string;
89
- ui: string;
90
89
  utils: string;
90
+ ui: string;
91
91
  lib: string;
92
92
  hooks: string;
93
93
  cwd: string;
94
94
  tailwindConfig: string;
95
95
  tailwindCss: string;
96
96
  };
97
- menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
98
- menuAccent?: "subtle" | "bold" | undefined;
99
- iconLibrary?: string | undefined;
100
97
  $schema?: string | undefined;
98
+ iconLibrary?: string | undefined;
101
99
  rtl?: boolean | undefined;
100
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
101
+ menuAccent?: "subtle" | "bold" | undefined;
102
102
  registries?: Record<string, string | {
103
103
  url: string;
104
104
  params?: Record<string, string> | undefined;
@@ -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-yy--t-RM.d.cts.map
168
+ //# sourceMappingURL=extract-BOD6umnM.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract-BOD6umnM.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;;;;;;;;IAgNzB;IAItB;;;;;IAKsB;IAAkC;IAGtD;;;;;;;;;;;;;;;;;;;IAsBS,SAAC;IACH,UAAC;;;cArOD,oBAAoB;iBAIX,mBAAmB,aAAa,QAAQ,kBAAe;;;;;;;;IA8LnD;IAItB;;;;;IAKsB;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"}
@@ -1,3 +1,3 @@
1
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";
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-BOD6umnM.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 };
@@ -1,3 +1,3 @@
1
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";
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-BHw0cSFv.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 };
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { r as extract_d_exports } from "./extract-yy--t-RM.cjs";
1
+ import { r as extract_d_exports } from "./extract-BOD6umnM.cjs";
2
2
  import { l as generate_d_exports } from "./generate-CeAMsu9A.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-CwrNS8sj.mjs";
1
+ import { r as extract_d_exports } from "./extract-BHw0cSFv.mjs";
2
2
  import { l as generate_d_exports } from "./generate-Dw8npW9-.mjs";
3
3
  export { extract_d_exports as extract, generate_d_exports as generate };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@razorwind/shadcn",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
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": {
@@ -80,23 +80,23 @@
80
80
  "dependencies": {
81
81
  "@power-plant/core": "^0.0.93",
82
82
  "@power-plant/dtcg-schema": "^0.0.1",
83
- "@razorwind/core": "^0.0.77",
83
+ "@razorwind/core": "^0.0.79",
84
84
  "@stryke/fs": "^0.33.118",
85
85
  "@stryke/path": "^0.29.43",
86
86
  "@stryke/types": "^0.12.44",
87
87
  "c12": "^3.3.4",
88
88
  "chalk": "^5.6.2",
89
89
  "fast-glob": "^3.3.3",
90
- "shadcn": "^4.21.0",
90
+ "shadcn": "^4.21.1",
91
91
  "tsconfig-paths": "^4.2.0",
92
92
  "yaml": "^2.9.1",
93
93
  "zod": "^4.6.5"
94
94
  },
95
95
  "devDependencies": {
96
96
  "@powerlines/plugin-tsdown": "^0.1.614",
97
- "@types/node": "^25.9.8",
97
+ "@types/node": "^25.9.9",
98
98
  "typescript": "^6.0.3"
99
99
  },
100
100
  "publishConfig": { "access": "public" },
101
- "gitHead": "8ee43cd3d54f8ae7de2442124d43e16b388f6db2"
101
+ "gitHead": "5c48ab00f4080e9bd1f21bf517af901586565400"
102
102
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"extract-CwrNS8sj.d.mts","names":[],"sources":["../src/registry/shadcn-types.ts","../src/registry/config.ts","../src/extract.ts"],"mappings":""}
@@ -1 +0,0 @@
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"}