@razorwind/core 0.0.25 → 0.0.27

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.
Files changed (46) hide show
  1. package/dist/{config-CdWp8VAJ.d.mts → config-B-9DV8mT.d.cts} +12 -5
  2. package/dist/config-B-9DV8mT.d.cts.map +1 -0
  3. package/dist/{config-DBWJv6wm.d.cts → config-BIIL6BJa.d.mts} +12 -5
  4. package/dist/config-BIIL6BJa.d.mts.map +1 -0
  5. package/dist/{index-CH__zCuk.d.cts → index-BGy8EkAJ.d.mts} +5 -5
  6. package/dist/{index-DLV7_d-V.d.mts.map → index-BGy8EkAJ.d.mts.map} +1 -1
  7. package/dist/{index-DW51mcvl.d.cts → index-BzsWyssi.d.cts} +1 -1
  8. package/dist/{index-DLV7_d-V.d.mts → index-Di8KVEql.d.cts} +5 -5
  9. package/dist/{index-CH__zCuk.d.cts.map → index-Di8KVEql.d.cts.map} +1 -1
  10. package/dist/{index-BhVvIILv.d.mts → index-dMv2FZkj.d.mts} +1 -1
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.d.cts +18 -6
  13. package/dist/index.d.cts.map +1 -1
  14. package/dist/index.d.mts +18 -6
  15. package/dist/index.d.mts.map +1 -1
  16. package/dist/index.mjs +1 -1
  17. package/dist/lib/tokens/index.d.cts +1 -1
  18. package/dist/lib/tokens/index.d.mts +1 -1
  19. package/dist/{plugin-BRsuaaQR.d.mts → plugin-49itXF3F.d.mts} +2 -2
  20. package/dist/plugin-49itXF3F.d.mts.map +1 -0
  21. package/dist/{plugin-C6HpaHMi.d.cts → plugin-D9baACxf.d.cts} +2 -2
  22. package/dist/{plugin-C6HpaHMi.d.cts.map → plugin-D9baACxf.d.cts.map} +1 -1
  23. package/dist/plugin.d.cts +2 -2
  24. package/dist/plugin.d.mts +2 -2
  25. package/dist/schema/index.cjs +1 -1
  26. package/dist/schema/index.d.cts +3 -3
  27. package/dist/schema/index.d.mts +3 -3
  28. package/dist/schema/index.mjs +1 -1
  29. package/dist/schema-D_QQto0V.d.cts +257 -0
  30. package/dist/schema-D_QQto0V.d.cts.map +1 -0
  31. package/dist/schema-D_QQto0V.d.mts +257 -0
  32. package/dist/schema-D_QQto0V.d.mts.map +1 -0
  33. package/dist/schema-jfwKMfbW.mjs +2 -0
  34. package/dist/schema-jfwKMfbW.mjs.map +1 -0
  35. package/dist/schema-r6H4qZHJ.cjs +1 -0
  36. package/package.json +13 -13
  37. package/dist/config-CdWp8VAJ.d.mts.map +0 -1
  38. package/dist/config-DBWJv6wm.d.cts.map +0 -1
  39. package/dist/plugin-BRsuaaQR.d.mts.map +0 -1
  40. package/dist/schema-C6-umW1r.d.cts +0 -115
  41. package/dist/schema-C6-umW1r.d.cts.map +0 -1
  42. package/dist/schema-C6-umW1r.d.mts +0 -115
  43. package/dist/schema-C6-umW1r.d.mts.map +0 -1
  44. package/dist/schema-CzpHs4s7.mjs +0 -2
  45. package/dist/schema-CzpHs4s7.mjs.map +0 -1
  46. package/dist/schema-DWEhLYz4.cjs +0 -1
@@ -1,115 +0,0 @@
1
- import z, { z as z$1 } from "zod";
2
- import { Tokens } from "@power-plant/dtcg-schema";
3
- //#region src/schema/components.d.ts
4
- declare const componentFileSchema: z$1.ZodObject<{
5
- path: z$1.ZodString;
6
- type: z$1.ZodOptional<z$1.ZodEnum<{
7
- block: "block";
8
- component: "component";
9
- ui: "ui";
10
- page: "page";
11
- file: "file";
12
- lib: "lib";
13
- hook: "hook";
14
- theme: "theme";
15
- style: "style";
16
- base: "base";
17
- font: "font";
18
- item: "item";
19
- }>>;
20
- content: z$1.ZodOptional<z$1.ZodString>;
21
- target: z$1.ZodOptional<z$1.ZodString>;
22
- }, z$1.core.$strip>;
23
- type ComponentFile = z$1.infer<typeof componentFileSchema>;
24
- declare const componentSchema: z$1.ZodObject<{
25
- name: z$1.ZodString;
26
- title: z$1.ZodString;
27
- type: z$1.ZodDefault<z$1.ZodEnum<{
28
- block: "block";
29
- component: "component";
30
- ui: "ui";
31
- page: "page";
32
- }>>;
33
- category: z$1.ZodOptional<z$1.ZodString>;
34
- description: z$1.ZodOptional<z$1.ZodString>;
35
- tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
36
- related: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
37
- since: z$1.ZodOptional<z$1.ZodString>;
38
- version: z$1.ZodOptional<z$1.ZodString>;
39
- repository: z$1.ZodOptional<z$1.ZodString>;
40
- homepage: z$1.ZodOptional<z$1.ZodString>;
41
- dependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
42
- devDependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
43
- registryDependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
44
- files: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
45
- path: z$1.ZodString;
46
- type: z$1.ZodOptional<z$1.ZodEnum<{
47
- block: "block";
48
- component: "component";
49
- ui: "ui";
50
- page: "page";
51
- file: "file";
52
- lib: "lib";
53
- hook: "hook";
54
- theme: "theme";
55
- style: "style";
56
- base: "base";
57
- font: "font";
58
- item: "item";
59
- }>>;
60
- content: z$1.ZodOptional<z$1.ZodString>;
61
- target: z$1.ZodOptional<z$1.ZodString>;
62
- }, z$1.core.$strip>>>;
63
- }, z$1.core.$strip>;
64
- type Component = z$1.infer<typeof componentSchema>;
65
- declare const componentsSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
66
- name: z$1.ZodString;
67
- title: z$1.ZodString;
68
- type: z$1.ZodDefault<z$1.ZodEnum<{
69
- block: "block";
70
- component: "component";
71
- ui: "ui";
72
- page: "page";
73
- }>>;
74
- category: z$1.ZodOptional<z$1.ZodString>;
75
- description: z$1.ZodOptional<z$1.ZodString>;
76
- tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
77
- related: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
78
- since: z$1.ZodOptional<z$1.ZodString>;
79
- version: z$1.ZodOptional<z$1.ZodString>;
80
- repository: z$1.ZodOptional<z$1.ZodString>;
81
- homepage: z$1.ZodOptional<z$1.ZodString>;
82
- dependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
83
- devDependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
84
- registryDependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
85
- files: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
86
- path: z$1.ZodString;
87
- type: z$1.ZodOptional<z$1.ZodEnum<{
88
- block: "block";
89
- component: "component";
90
- ui: "ui";
91
- page: "page";
92
- file: "file";
93
- lib: "lib";
94
- hook: "hook";
95
- theme: "theme";
96
- style: "style";
97
- base: "base";
98
- font: "font";
99
- item: "item";
100
- }>>;
101
- content: z$1.ZodOptional<z$1.ZodString>;
102
- target: z$1.ZodOptional<z$1.ZodString>;
103
- }, z$1.core.$strip>>>;
104
- }, z$1.core.$strip>>;
105
- type Components = z$1.infer<typeof componentsSchema>;
106
- //#endregion
107
- //#region src/schema/schema.d.ts
108
- interface Schema {
109
- components: Components;
110
- tokens: Tokens | Record<string, Tokens>;
111
- }
112
- declare const schema: z.ZodType<Schema>;
113
- //#endregion
114
- export { Components as a, componentsSchema as c, ComponentFile as i, schema as n, componentFileSchema as o, Component as r, componentSchema as s, Schema as t };
115
- //# sourceMappingURL=schema-C6-umW1r.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-C6-umW1r.d.cts","names":[],"sources":["../src/schema/components.ts","../src/schema/schema.ts"],"mappings":";;;cAoBa,qBAAmB,IAAA;;;;;;;;;;;;;;;;;;GAyB9B,IAAA,KAAA;KAEU,gBAAgB,IAAE,aAAa;cAE9B,iBAAe,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgB1B,IAAA,KAAA;KAEU,YAAY,IAAE,aAAa;cAE1B,kBAAgB,IAAA,UAAA,IAAA,WAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAwC,IAAA,KAAA;KAEzD,aAAa,IAAE,aAAa;;;UC1CvB;EACf,YAAY;EACZ,QAAQ,SAAS,eAAe;;cAGrB,QAAQ,EAAE,QAAQ"}
@@ -1,115 +0,0 @@
1
- import z, { z as z$1 } from "zod";
2
- import { Tokens } from "@power-plant/dtcg-schema";
3
- //#region src/schema/components.d.ts
4
- declare const componentFileSchema: z$1.ZodObject<{
5
- path: z$1.ZodString;
6
- type: z$1.ZodOptional<z$1.ZodEnum<{
7
- block: "block";
8
- component: "component";
9
- ui: "ui";
10
- page: "page";
11
- file: "file";
12
- lib: "lib";
13
- hook: "hook";
14
- theme: "theme";
15
- style: "style";
16
- base: "base";
17
- font: "font";
18
- item: "item";
19
- }>>;
20
- content: z$1.ZodOptional<z$1.ZodString>;
21
- target: z$1.ZodOptional<z$1.ZodString>;
22
- }, z$1.core.$strip>;
23
- type ComponentFile = z$1.infer<typeof componentFileSchema>;
24
- declare const componentSchema: z$1.ZodObject<{
25
- name: z$1.ZodString;
26
- title: z$1.ZodString;
27
- type: z$1.ZodDefault<z$1.ZodEnum<{
28
- block: "block";
29
- component: "component";
30
- ui: "ui";
31
- page: "page";
32
- }>>;
33
- category: z$1.ZodOptional<z$1.ZodString>;
34
- description: z$1.ZodOptional<z$1.ZodString>;
35
- tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
36
- related: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
37
- since: z$1.ZodOptional<z$1.ZodString>;
38
- version: z$1.ZodOptional<z$1.ZodString>;
39
- repository: z$1.ZodOptional<z$1.ZodString>;
40
- homepage: z$1.ZodOptional<z$1.ZodString>;
41
- dependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
42
- devDependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
43
- registryDependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
44
- files: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
45
- path: z$1.ZodString;
46
- type: z$1.ZodOptional<z$1.ZodEnum<{
47
- block: "block";
48
- component: "component";
49
- ui: "ui";
50
- page: "page";
51
- file: "file";
52
- lib: "lib";
53
- hook: "hook";
54
- theme: "theme";
55
- style: "style";
56
- base: "base";
57
- font: "font";
58
- item: "item";
59
- }>>;
60
- content: z$1.ZodOptional<z$1.ZodString>;
61
- target: z$1.ZodOptional<z$1.ZodString>;
62
- }, z$1.core.$strip>>>;
63
- }, z$1.core.$strip>;
64
- type Component = z$1.infer<typeof componentSchema>;
65
- declare const componentsSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
66
- name: z$1.ZodString;
67
- title: z$1.ZodString;
68
- type: z$1.ZodDefault<z$1.ZodEnum<{
69
- block: "block";
70
- component: "component";
71
- ui: "ui";
72
- page: "page";
73
- }>>;
74
- category: z$1.ZodOptional<z$1.ZodString>;
75
- description: z$1.ZodOptional<z$1.ZodString>;
76
- tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
77
- related: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
78
- since: z$1.ZodOptional<z$1.ZodString>;
79
- version: z$1.ZodOptional<z$1.ZodString>;
80
- repository: z$1.ZodOptional<z$1.ZodString>;
81
- homepage: z$1.ZodOptional<z$1.ZodString>;
82
- dependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
83
- devDependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
84
- registryDependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
85
- files: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
86
- path: z$1.ZodString;
87
- type: z$1.ZodOptional<z$1.ZodEnum<{
88
- block: "block";
89
- component: "component";
90
- ui: "ui";
91
- page: "page";
92
- file: "file";
93
- lib: "lib";
94
- hook: "hook";
95
- theme: "theme";
96
- style: "style";
97
- base: "base";
98
- font: "font";
99
- item: "item";
100
- }>>;
101
- content: z$1.ZodOptional<z$1.ZodString>;
102
- target: z$1.ZodOptional<z$1.ZodString>;
103
- }, z$1.core.$strip>>>;
104
- }, z$1.core.$strip>>;
105
- type Components = z$1.infer<typeof componentsSchema>;
106
- //#endregion
107
- //#region src/schema/schema.d.ts
108
- interface Schema {
109
- components: Components;
110
- tokens: Tokens | Record<string, Tokens>;
111
- }
112
- declare const schema: z.ZodType<Schema>;
113
- //#endregion
114
- export { Components as a, componentsSchema as c, ComponentFile as i, schema as n, componentFileSchema as o, Component as r, componentSchema as s, Schema as t };
115
- //# sourceMappingURL=schema-C6-umW1r.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-C6-umW1r.d.mts","names":[],"sources":["../src/schema/components.ts","../src/schema/schema.ts"],"mappings":""}
@@ -1,2 +0,0 @@
1
- import e,{z as t}from"zod";import{tokenSchema as n,tokensSchema as r,tokensSchema as i}from"@power-plant/dtcg-schema";const a=t.object({path:t.string(),type:t.enum([`lib`,`block`,`component`,`ui`,`hook`,`theme`,`page`,`file`,`style`,`base`,`font`,`item`]).optional(),content:t.string().optional(),target:t.string().optional().describe(`The target path of the file. This is the path to the file in the project. Supports registry target placeholders @components/, @ui/, @lib/, and @hooks/, which resolve to the corresponding aliases configured in components.json. These placeholders are independent of the project's import prefix.`)}),o=t.object({name:t.string(),title:t.string(),type:t.enum([`block`,`component`,`ui`,`page`]).default(`component`),category:t.string().optional(),description:t.string().optional(),tags:t.array(t.string()).optional(),related:t.array(t.string()).optional(),since:t.string().optional(),version:t.string().optional(),repository:t.string().optional(),homepage:t.string().optional(),dependencies:t.record(t.string(),t.string()).optional(),devDependencies:t.record(t.string(),t.string()).optional(),registryDependencies:t.record(t.string(),t.string()).optional(),files:t.array(a).optional()}),s=t.record(t.string(),o),c=e.union([r,e.record(e.string(),r)]),l=e.object({tokens:c,components:s});export{o as a,a as i,i as n,s as o,l as r,n as t};
2
- //# sourceMappingURL=schema-CzpHs4s7.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-CzpHs4s7.mjs","names":[],"sources":[],"mappings":""}
@@ -1 +0,0 @@
1
- const e=require("./rolldown-runtime-BocRIvOZ.cjs");let t=require("zod");t=e.t(t,1);let n=require("@power-plant/dtcg-schema");const r=t.z.object({path:t.z.string(),type:t.z.enum([`lib`,`block`,`component`,`ui`,`hook`,`theme`,`page`,`file`,`style`,`base`,`font`,`item`]).optional(),content:t.z.string().optional(),target:t.z.string().optional().describe(`The target path of the file. This is the path to the file in the project. Supports registry target placeholders @components/, @ui/, @lib/, and @hooks/, which resolve to the corresponding aliases configured in components.json. These placeholders are independent of the project's import prefix.`)}),i=t.z.object({name:t.z.string(),title:t.z.string(),type:t.z.enum([`block`,`component`,`ui`,`page`]).default(`component`),category:t.z.string().optional(),description:t.z.string().optional(),tags:t.z.array(t.z.string()).optional(),related:t.z.array(t.z.string()).optional(),since:t.z.string().optional(),version:t.z.string().optional(),repository:t.z.string().optional(),homepage:t.z.string().optional(),dependencies:t.z.record(t.z.string(),t.z.string()).optional(),devDependencies:t.z.record(t.z.string(),t.z.string()).optional(),registryDependencies:t.z.record(t.z.string(),t.z.string()).optional(),files:t.z.array(r).optional()}),a=t.z.record(t.z.string(),i),o=t.default.union([n.tokensSchema,t.default.record(t.default.string(),n.tokensSchema)]),s=t.default.object({tokens:o,components:a});Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});