@razorwind/core 0.0.46 → 0.0.47

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 (67) hide show
  1. package/dist/{config-25eDAKIq.d.cts → config-BjuUx31T.d.cts} +10 -3
  2. package/dist/config-BjuUx31T.d.cts.map +1 -0
  3. package/dist/{config-rgbP9zhp.d.mts → config-CEPqgKnD.d.mts} +10 -3
  4. package/dist/config-CEPqgKnD.d.mts.map +1 -0
  5. package/dist/fonts-75PPb25H.cjs +9 -0
  6. package/dist/fonts-B0ESWBBC.mjs +2 -0
  7. package/dist/fonts-B0ESWBBC.mjs.map +1 -0
  8. package/dist/fonts-CUwsBEd5.mjs +10 -0
  9. package/dist/fonts-CUwsBEd5.mjs.map +1 -0
  10. package/dist/fonts-vhz5FAsy.cjs +1 -0
  11. package/dist/index-D7VrdiAn.d.mts +100 -0
  12. package/dist/index-D7VrdiAn.d.mts.map +1 -0
  13. package/dist/index-DNAWtBG8.d.cts +100 -0
  14. package/dist/index-DNAWtBG8.d.cts.map +1 -0
  15. package/dist/{index-D1ayVOTE.d.mts → index-DXx1b3vZ.d.cts} +5 -5
  16. package/dist/{index-Dk-i27fI.d.cts.map → index-DXx1b3vZ.d.cts.map} +1 -1
  17. package/dist/{index-BjSOzDOH.d.cts → index-DovYOOtL.d.cts} +1 -1
  18. package/dist/{index-Dk-i27fI.d.cts → index-crrCGMN9.d.mts} +5 -5
  19. package/dist/{index-D1ayVOTE.d.mts.map → index-crrCGMN9.d.mts.map} +1 -1
  20. package/dist/{index-DM8vit-J.d.mts → index-ktFi0nZL.d.mts} +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.d.cts +7 -6
  23. package/dist/index.d.cts.map +1 -1
  24. package/dist/index.d.mts +7 -6
  25. package/dist/index.mjs +1 -1
  26. package/dist/lib/fonts/index.cjs +1 -0
  27. package/dist/lib/fonts/index.d.cts +2 -0
  28. package/dist/lib/fonts/index.d.mts +2 -0
  29. package/dist/lib/fonts/index.mjs +1 -0
  30. package/dist/lib/tokens/index.cjs +1 -1
  31. package/dist/lib/tokens/index.d.cts +1 -1
  32. package/dist/lib/tokens/index.d.mts +1 -1
  33. package/dist/lib/tokens/index.mjs +1 -1
  34. package/dist/{plugin-CAoFfyMa.d.mts → plugin-BocNoTkM.d.mts} +2 -2
  35. package/dist/plugin-BocNoTkM.d.mts.map +1 -0
  36. package/dist/{plugin-m5Bm4WrK.d.cts → plugin-DMOM9PDs.d.cts} +2 -2
  37. package/dist/{plugin-m5Bm4WrK.d.cts.map → plugin-DMOM9PDs.d.cts.map} +1 -1
  38. package/dist/plugin.d.cts +2 -2
  39. package/dist/plugin.d.mts +2 -2
  40. package/dist/schema/index.cjs +1 -1
  41. package/dist/schema/index.d.cts +3 -3
  42. package/dist/schema/index.d.mts +3 -3
  43. package/dist/schema/index.mjs +1 -1
  44. package/dist/schema-Btk_-NEI.mjs +2 -0
  45. package/dist/schema-Btk_-NEI.mjs.map +1 -0
  46. package/dist/schema-Crr8KMUY.d.cts +540 -0
  47. package/dist/schema-Crr8KMUY.d.cts.map +1 -0
  48. package/dist/schema-Crr8KMUY.d.mts +540 -0
  49. package/dist/schema-Crr8KMUY.d.mts.map +1 -0
  50. package/dist/schema-D0sXEBjV.cjs +1 -0
  51. package/dist/{tokens-pHmukPOW.cjs → tokens-BSuKch7x.cjs} +7 -1
  52. package/dist/{tokens-CFh9AQab.mjs → tokens-CsosSHvJ.mjs} +8 -2
  53. package/dist/tokens-CsosSHvJ.mjs.map +1 -0
  54. package/dist/utils/index.d.cts +2 -2
  55. package/dist/utils/index.d.mts +2 -2
  56. package/package.json +16 -2
  57. package/dist/config-25eDAKIq.d.cts.map +0 -1
  58. package/dist/config-rgbP9zhp.d.mts.map +0 -1
  59. package/dist/plugin-CAoFfyMa.d.mts.map +0 -1
  60. package/dist/schema-93daQRSN.cjs +0 -1
  61. package/dist/schema-CsbyELyn.d.cts +0 -263
  62. package/dist/schema-CsbyELyn.d.cts.map +0 -1
  63. package/dist/schema-CsbyELyn.d.mts +0 -263
  64. package/dist/schema-CsbyELyn.d.mts.map +0 -1
  65. package/dist/schema-buR6a6IP.mjs +0 -2
  66. package/dist/schema-buR6a6IP.mjs.map +0 -1
  67. package/dist/tokens-CFh9AQab.mjs.map +0 -1
@@ -1,263 +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
- lib: "lib";
8
- block: "block";
9
- component: "component";
10
- ui: "ui";
11
- hook: "hook";
12
- theme: "theme";
13
- page: "page";
14
- file: "file";
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
- /**
25
- * An example of how a component should be used.
26
- *
27
- * Loaded from a component directory's `usage/` folder, or declared under
28
- * `usage` in `component.json` / `package.json` `razorwind`. Consumed by
29
- * documentation and Storybook plugins.
30
- */
31
- declare const componentUsageSchema: z$1.ZodObject<{
32
- name: z$1.ZodOptional<z$1.ZodString>;
33
- title: z$1.ZodOptional<z$1.ZodString>;
34
- description: z$1.ZodOptional<z$1.ZodString>;
35
- path: z$1.ZodString;
36
- content: z$1.ZodOptional<z$1.ZodString>;
37
- language: z$1.ZodOptional<z$1.ZodEnum<{
38
- tsx: "tsx";
39
- jsx: "jsx";
40
- ts: "ts";
41
- js: "js";
42
- mdx: "mdx";
43
- md: "md";
44
- css: "css";
45
- html: "html";
46
- txt: "txt";
47
- }>>;
48
- }, z$1.core.$strip>;
49
- type ComponentUsage = z$1.infer<typeof componentUsageSchema>;
50
- declare const componentSchema: z$1.ZodObject<{
51
- name: z$1.ZodString;
52
- title: z$1.ZodString;
53
- type: z$1.ZodDefault<z$1.ZodEnum<{
54
- block: "block";
55
- component: "component";
56
- ui: "ui";
57
- page: "page";
58
- }>>;
59
- category: z$1.ZodOptional<z$1.ZodString>;
60
- description: z$1.ZodOptional<z$1.ZodString>;
61
- tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
62
- related: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
63
- since: z$1.ZodOptional<z$1.ZodString>;
64
- version: z$1.ZodOptional<z$1.ZodString>;
65
- repository: z$1.ZodOptional<z$1.ZodString>;
66
- homepage: z$1.ZodOptional<z$1.ZodString>;
67
- dependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
68
- devDependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
69
- registryDependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
70
- files: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
71
- path: z$1.ZodString;
72
- type: z$1.ZodOptional<z$1.ZodEnum<{
73
- lib: "lib";
74
- block: "block";
75
- component: "component";
76
- ui: "ui";
77
- hook: "hook";
78
- theme: "theme";
79
- page: "page";
80
- file: "file";
81
- style: "style";
82
- base: "base";
83
- font: "font";
84
- item: "item";
85
- }>>;
86
- content: z$1.ZodOptional<z$1.ZodString>;
87
- target: z$1.ZodOptional<z$1.ZodString>;
88
- }, z$1.core.$strip>>>;
89
- usage: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
90
- name: z$1.ZodOptional<z$1.ZodString>;
91
- title: z$1.ZodOptional<z$1.ZodString>;
92
- description: z$1.ZodOptional<z$1.ZodString>;
93
- path: z$1.ZodString;
94
- content: z$1.ZodOptional<z$1.ZodString>;
95
- language: z$1.ZodOptional<z$1.ZodEnum<{
96
- tsx: "tsx";
97
- jsx: "jsx";
98
- ts: "ts";
99
- js: "js";
100
- mdx: "mdx";
101
- md: "md";
102
- css: "css";
103
- html: "html";
104
- txt: "txt";
105
- }>>;
106
- }, z$1.core.$strip>>>;
107
- }, z$1.core.$strip>;
108
- type Component = z$1.infer<typeof componentSchema>;
109
- declare const componentsSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
110
- name: z$1.ZodString;
111
- title: z$1.ZodString;
112
- type: z$1.ZodDefault<z$1.ZodEnum<{
113
- block: "block";
114
- component: "component";
115
- ui: "ui";
116
- page: "page";
117
- }>>;
118
- category: z$1.ZodOptional<z$1.ZodString>;
119
- description: z$1.ZodOptional<z$1.ZodString>;
120
- tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
121
- related: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
122
- since: z$1.ZodOptional<z$1.ZodString>;
123
- version: z$1.ZodOptional<z$1.ZodString>;
124
- repository: z$1.ZodOptional<z$1.ZodString>;
125
- homepage: z$1.ZodOptional<z$1.ZodString>;
126
- dependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
127
- devDependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
128
- registryDependencies: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
129
- files: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
130
- path: z$1.ZodString;
131
- type: z$1.ZodOptional<z$1.ZodEnum<{
132
- lib: "lib";
133
- block: "block";
134
- component: "component";
135
- ui: "ui";
136
- hook: "hook";
137
- theme: "theme";
138
- page: "page";
139
- file: "file";
140
- style: "style";
141
- base: "base";
142
- font: "font";
143
- item: "item";
144
- }>>;
145
- content: z$1.ZodOptional<z$1.ZodString>;
146
- target: z$1.ZodOptional<z$1.ZodString>;
147
- }, z$1.core.$strip>>>;
148
- usage: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
149
- name: z$1.ZodOptional<z$1.ZodString>;
150
- title: z$1.ZodOptional<z$1.ZodString>;
151
- description: z$1.ZodOptional<z$1.ZodString>;
152
- path: z$1.ZodString;
153
- content: z$1.ZodOptional<z$1.ZodString>;
154
- language: z$1.ZodOptional<z$1.ZodEnum<{
155
- tsx: "tsx";
156
- jsx: "jsx";
157
- ts: "ts";
158
- js: "js";
159
- mdx: "mdx";
160
- md: "md";
161
- css: "css";
162
- html: "html";
163
- txt: "txt";
164
- }>>;
165
- }, z$1.core.$strip>>>;
166
- }, z$1.core.$strip>>;
167
- type Components = z$1.infer<typeof componentsSchema>;
168
- //#endregion
169
- //#region src/schema/icons.d.ts
170
- declare const iconFileSchema: z$1.ZodObject<{
171
- path: z$1.ZodString;
172
- type: z$1.ZodOptional<z$1.ZodEnum<{
173
- file: "file";
174
- svg: "svg";
175
- png: "png";
176
- webp: "webp";
177
- jpg: "jpg";
178
- jpeg: "jpeg";
179
- gif: "gif";
180
- ico: "ico";
181
- }>>;
182
- content: z$1.ZodOptional<z$1.ZodString>;
183
- theme: z$1.ZodOptional<z$1.ZodString>;
184
- target: z$1.ZodOptional<z$1.ZodString>;
185
- }, z$1.core.$strip>;
186
- type IconFile = z$1.infer<typeof iconFileSchema>;
187
- declare const iconSchema: z$1.ZodObject<{
188
- name: z$1.ZodString;
189
- title: z$1.ZodString;
190
- category: z$1.ZodOptional<z$1.ZodString>;
191
- description: z$1.ZodOptional<z$1.ZodString>;
192
- tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
193
- aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
194
- related: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
195
- since: z$1.ZodOptional<z$1.ZodString>;
196
- version: z$1.ZodOptional<z$1.ZodString>;
197
- repository: z$1.ZodOptional<z$1.ZodString>;
198
- homepage: z$1.ZodOptional<z$1.ZodString>;
199
- files: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
200
- path: z$1.ZodString;
201
- type: z$1.ZodOptional<z$1.ZodEnum<{
202
- file: "file";
203
- svg: "svg";
204
- png: "png";
205
- webp: "webp";
206
- jpg: "jpg";
207
- jpeg: "jpeg";
208
- gif: "gif";
209
- ico: "ico";
210
- }>>;
211
- content: z$1.ZodOptional<z$1.ZodString>;
212
- theme: z$1.ZodOptional<z$1.ZodString>;
213
- target: z$1.ZodOptional<z$1.ZodString>;
214
- }, z$1.core.$strip>>>;
215
- }, z$1.core.$strip>;
216
- type Icon = z$1.infer<typeof iconSchema>;
217
- declare const iconsSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
218
- name: z$1.ZodString;
219
- title: z$1.ZodString;
220
- category: z$1.ZodOptional<z$1.ZodString>;
221
- description: z$1.ZodOptional<z$1.ZodString>;
222
- tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
223
- aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
224
- related: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
225
- since: z$1.ZodOptional<z$1.ZodString>;
226
- version: z$1.ZodOptional<z$1.ZodString>;
227
- repository: z$1.ZodOptional<z$1.ZodString>;
228
- homepage: z$1.ZodOptional<z$1.ZodString>;
229
- files: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
230
- path: z$1.ZodString;
231
- type: z$1.ZodOptional<z$1.ZodEnum<{
232
- file: "file";
233
- svg: "svg";
234
- png: "png";
235
- webp: "webp";
236
- jpg: "jpg";
237
- jpeg: "jpeg";
238
- gif: "gif";
239
- ico: "ico";
240
- }>>;
241
- content: z$1.ZodOptional<z$1.ZodString>;
242
- theme: z$1.ZodOptional<z$1.ZodString>;
243
- target: z$1.ZodOptional<z$1.ZodString>;
244
- }, z$1.core.$strip>>>;
245
- }, z$1.core.$strip>>;
246
- type Icons = z$1.infer<typeof iconsSchema>;
247
- //#endregion
248
- //#region src/schema/schema.d.ts
249
- interface Schema {
250
- name?: string;
251
- title?: string;
252
- repository?: string;
253
- homepage?: string;
254
- description?: string;
255
- logo?: string;
256
- components: Components;
257
- icons: Icons;
258
- tokens: Tokens | Record<string, Tokens>;
259
- }
260
- declare const schema: z.ZodType<Schema>;
261
- //#endregion
262
- export { Icons as a, iconsSchema as c, ComponentUsage as d, Components as f, componentsSchema as g, componentUsageSchema as h, IconFile as i, Component as l, componentSchema as m, schema as n, iconFileSchema as o, componentFileSchema as p, Icon as r, iconSchema as s, Schema as t, ComponentFile as u };
263
- //# sourceMappingURL=schema-CsbyELyn.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-CsbyELyn.d.mts","names":[],"sources":["../src/schema/components.ts","../src/schema/icons.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().optional().describe(`Stable usage example id. Defaults to the source filename without extension.`),title:t.string().optional(),description:t.string().optional(),path:t.string(),content:t.string().optional(),language:t.enum([`tsx`,`jsx`,`ts`,`js`,`mdx`,`md`,`css`,`html`,`txt`]).optional().describe(`Source language for syntax highlighting. Inferred from the file extension when omitted.`)}),s=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(),usage:t.array(o).optional().describe("Example usage snippets for this component. Prefer a `usage/` directory of source files; entries may also be declared in metadata.")}),c=t.record(t.string(),s),l=t.object({path:t.string(),type:t.enum([`svg`,`png`,`webp`,`jpg`,`jpeg`,`gif`,`ico`,`file`]).optional(),content:t.string().optional(),theme:t.string().optional().describe(`Optional theme variant for this asset (for example light or dark).`),target:t.string().optional().describe(`The target path of the file in the project. Supports registry-style placeholders independent of the project's import prefix.`)}),u=t.object({name:t.string(),title:t.string(),category:t.string().optional(),description:t.string().optional(),tags:t.array(t.string()).optional(),aliases: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(),files:t.array(l).optional()}),d=t.record(t.string(),u),f=e.union([r,e.record(e.string(),r)]),p=e.object({name:e.string().optional(),title:e.string().optional(),repository:e.string().optional(),homepage:e.string().optional(),description:e.string().optional(),logo:e.string().optional(),tokens:f,components:c,icons:d});export{u as a,s as c,l as i,o as l,i as n,d as o,p as r,a as s,n as t,c as u};
2
- //# sourceMappingURL=schema-buR6a6IP.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-buR6a6IP.mjs","names":[],"sources":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokens-CFh9AQab.mjs","names":[],"sources":[],"mappings":""}