@razorwind/core 0.0.46 → 0.0.48

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 (84) hide show
  1. package/dist/{config-25eDAKIq.d.cts → config-BtscEr7S.d.cts} +17 -5
  2. package/dist/config-BtscEr7S.d.cts.map +1 -0
  3. package/dist/{config-rgbP9zhp.d.mts → config-CNTGHrST.d.mts} +16 -4
  4. package/dist/config-CNTGHrST.d.mts.map +1 -0
  5. package/dist/flatten-tokens-CMlVe_J6.d.cts +54 -0
  6. package/dist/flatten-tokens-CMlVe_J6.d.cts.map +1 -0
  7. package/dist/flatten-tokens-DgTPHEhI.d.mts +54 -0
  8. package/dist/flatten-tokens-DgTPHEhI.d.mts.map +1 -0
  9. package/dist/fonts-B0ESWBBC.mjs +2 -0
  10. package/dist/fonts-B0ESWBBC.mjs.map +1 -0
  11. package/dist/fonts-BiuIJVev.mjs +10 -0
  12. package/dist/fonts-BiuIJVev.mjs.map +1 -0
  13. package/dist/fonts-CkBPEFie.cjs +9 -0
  14. package/dist/fonts-vhz5FAsy.cjs +1 -0
  15. package/dist/{index-D1ayVOTE.d.mts → index-B7MsziQp.d.cts} +4 -4
  16. package/dist/{index-Dk-i27fI.d.cts.map → index-B7MsziQp.d.cts.map} +1 -1
  17. package/dist/{index-BjSOzDOH.d.cts → index-CwN0c1Q4.d.cts} +1 -1
  18. package/dist/index-CzbZzpnz.d.mts +100 -0
  19. package/dist/index-CzbZzpnz.d.mts.map +1 -0
  20. package/dist/{index-Dk-i27fI.d.cts → index-CzjDptav.d.mts} +5 -5
  21. package/dist/{index-D1ayVOTE.d.mts.map → index-CzjDptav.d.mts.map} +1 -1
  22. package/dist/{index-DM8vit-J.d.mts → index-D5L2WXYk.d.mts} +1 -1
  23. package/dist/index-Di7vqmsi.d.cts +100 -0
  24. package/dist/index-Di7vqmsi.d.cts.map +1 -0
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.d.cts +82 -15
  27. package/dist/index.d.cts.map +1 -1
  28. package/dist/index.d.mts +82 -15
  29. package/dist/index.d.mts.map +1 -1
  30. package/dist/index.mjs +1 -1
  31. package/dist/lib/fonts/index.cjs +1 -0
  32. package/dist/lib/fonts/index.d.cts +2 -0
  33. package/dist/lib/fonts/index.d.mts +2 -0
  34. package/dist/lib/fonts/index.mjs +1 -0
  35. package/dist/lib/tokens/index.cjs +1 -1
  36. package/dist/lib/tokens/index.d.cts +1 -1
  37. package/dist/lib/tokens/index.d.mts +1 -1
  38. package/dist/lib/tokens/index.mjs +1 -1
  39. package/dist/{plugin-CAoFfyMa.d.mts → plugin-0UYp_yIy.d.cts} +2 -2
  40. package/dist/{plugin-m5Bm4WrK.d.cts.map → plugin-0UYp_yIy.d.cts.map} +1 -1
  41. package/dist/{plugin-m5Bm4WrK.d.cts → plugin-CH6vFnxu.d.mts} +2 -2
  42. package/dist/plugin-CH6vFnxu.d.mts.map +1 -0
  43. package/dist/plugin.d.cts +2 -2
  44. package/dist/plugin.d.mts +2 -2
  45. package/dist/schema/index.cjs +1 -1
  46. package/dist/schema/index.d.cts +3 -3
  47. package/dist/schema/index.d.mts +3 -3
  48. package/dist/schema/index.mjs +1 -1
  49. package/dist/schema-BCofDJWf.cjs +1 -0
  50. package/dist/schema-BwOBgJIM.d.cts +545 -0
  51. package/dist/schema-BwOBgJIM.d.cts.map +1 -0
  52. package/dist/schema-BwOBgJIM.d.mts +545 -0
  53. package/dist/schema-BwOBgJIM.d.mts.map +1 -0
  54. package/dist/schema-CXK5pVmJ.mjs +2 -0
  55. package/dist/schema-CXK5pVmJ.mjs.map +1 -0
  56. package/dist/tokens-By75va9Y.cjs +7 -0
  57. package/dist/tokens-DFYNBFFR.mjs +8 -0
  58. package/dist/tokens-DFYNBFFR.mjs.map +1 -0
  59. package/dist/utils/index.cjs +1 -1
  60. package/dist/utils/index.d.cts +78 -92
  61. package/dist/utils/index.d.cts.map +1 -1
  62. package/dist/utils/index.d.mts +78 -92
  63. package/dist/utils/index.d.mts.map +1 -1
  64. package/dist/utils/index.mjs +1 -1
  65. package/dist/utils-CDYdsyyW.mjs +2 -0
  66. package/dist/utils-CDYdsyyW.mjs.map +1 -0
  67. package/dist/utils-DyK4l_bT.cjs +1 -0
  68. package/package.json +16 -2
  69. package/dist/config-25eDAKIq.d.cts.map +0 -1
  70. package/dist/config-rgbP9zhp.d.mts.map +0 -1
  71. package/dist/plugin-CAoFfyMa.d.mts.map +0 -1
  72. package/dist/schema-93daQRSN.cjs +0 -1
  73. package/dist/schema-CsbyELyn.d.cts +0 -263
  74. package/dist/schema-CsbyELyn.d.cts.map +0 -1
  75. package/dist/schema-CsbyELyn.d.mts +0 -263
  76. package/dist/schema-CsbyELyn.d.mts.map +0 -1
  77. package/dist/schema-buR6a6IP.mjs +0 -2
  78. package/dist/schema-buR6a6IP.mjs.map +0 -1
  79. package/dist/tokens-CFh9AQab.mjs +0 -2
  80. package/dist/tokens-CFh9AQab.mjs.map +0 -1
  81. package/dist/tokens-pHmukPOW.cjs +0 -1
  82. package/dist/utils-B5uabOd5.mjs +0 -2
  83. package/dist/utils-B5uabOd5.mjs.map +0 -1
  84. package/dist/utils-BiL8zQzg.cjs +0 -1
package/dist/plugin.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { d as TokensPreprocessor, l as Plugin, u as TokensParser } from "./config-rgbP9zhp.mjs";
2
- import { t as definePlugin } from "./plugin-CAoFfyMa.mjs";
1
+ import { d as TokensPreprocessor, l as Plugin, u as TokensParser } from "./config-CNTGHrST.mjs";
2
+ import { t as definePlugin } from "./plugin-CH6vFnxu.mjs";
3
3
  export { type Plugin, type TokensParser, type TokensPreprocessor, definePlugin };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../schema-93daQRSN.cjs");let t=require("@power-plant/dtcg-schema");exports.componentFileSchema=e.a,exports.componentSchema=e.o,exports.componentUsageSchema=e.s,exports.componentsSchema=e.c,exports.iconFileSchema=e.n,exports.iconSchema=e.r,exports.iconsSchema=e.i,exports.schema=e.t,Object.defineProperty(exports,"tokenSchema",{enumerable:!0,get:function(){return t.tokenSchema}}),Object.defineProperty(exports,"tokensSchema",{enumerable:!0,get:function(){return t.tokensSchema}});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../schema-BCofDJWf.cjs"),t=require("../fonts-vhz5FAsy.cjs");let n=require("@power-plant/dtcg-schema");exports.componentFileSchema=e.a,exports.componentSchema=e.o,exports.componentUsageSchema=e.s,exports.componentsSchema=e.c,exports.fontDisplaySchema=t.t,exports.fontFileFormatSchema=t.n,exports.fontFileSchema=t.r,exports.fontRoleSchema=t.i,exports.fontSchema=t.a,exports.fontsSchema=t.o,exports.googleFontSchema=t.s,exports.iconFileSchema=e.n,exports.iconSchema=e.r,exports.iconsSchema=e.i,exports.localFontSchema=t.c,exports.schema=e.t,Object.defineProperty(exports,"tokenSchema",{enumerable:!0,get:function(){return n.tokenSchema}}),Object.defineProperty(exports,"tokensSchema",{enumerable:!0,get:function(){return n.tokensSchema}});
@@ -1,3 +1,3 @@
1
- import { a as Icons, c as iconsSchema, d as ComponentUsage, f as Components, g as componentsSchema, h as componentUsageSchema, i as IconFile, l as Component, m as componentSchema, n as schema, o as iconFileSchema, p as componentFileSchema, r as Icon, s as iconSchema, t as Schema, u as ComponentFile } from "../schema-CsbyELyn.cjs";
2
- import { i as tokensSchema, n as Tokens, r as tokenSchema, t as Token } from "../index-BjSOzDOH.cjs";
3
- export { type Component, type ComponentFile, type ComponentUsage, type Components, type Icon, type IconFile, type Icons, type Schema, type Token, type Tokens, componentFileSchema, componentSchema, componentUsageSchema, componentsSchema, iconFileSchema, iconSchema, iconsSchema, schema, tokenSchema, tokensSchema };
1
+ import { A as componentSchema, C as googleFontSchema, D as ComponentUsage, E as ComponentFile, M as componentsSchema, O as Components, S as fontsSchema, T as Component, _ as fontDisplaySchema, a as Icons, b as fontRoleSchema, c as iconsSchema, d as FontFile, f as FontFileFormat, g as LocalFont, h as GoogleFont, i as IconFile, j as componentUsageSchema, k as componentFileSchema, l as Font, m as Fonts, n as schema, o as iconFileSchema, p as FontRole, r as Icon, s as iconSchema, t as Schema, u as FontDisplay, v as fontFileFormatSchema, w as localFontSchema, x as fontSchema, y as fontFileSchema } from "../schema-BwOBgJIM.cjs";
2
+ import { i as tokensSchema, n as Tokens, r as tokenSchema, t as Token } from "../index-CwN0c1Q4.cjs";
3
+ export { type Component, type ComponentFile, type ComponentUsage, type Components, type Font, type FontDisplay, type FontFile, type FontFileFormat, type FontRole, type Fonts, type GoogleFont, type Icon, type IconFile, type Icons, type LocalFont, type Schema, type Token, type Tokens, componentFileSchema, componentSchema, componentUsageSchema, componentsSchema, fontDisplaySchema, fontFileFormatSchema, fontFileSchema, fontRoleSchema, fontSchema, fontsSchema, googleFontSchema, iconFileSchema, iconSchema, iconsSchema, localFontSchema, schema, tokenSchema, tokensSchema };
@@ -1,3 +1,3 @@
1
- import { a as Icons, c as iconsSchema, d as ComponentUsage, f as Components, g as componentsSchema, h as componentUsageSchema, i as IconFile, l as Component, m as componentSchema, n as schema, o as iconFileSchema, p as componentFileSchema, r as Icon, s as iconSchema, t as Schema, u as ComponentFile } from "../schema-CsbyELyn.mjs";
2
- import { i as tokensSchema, n as Tokens, r as tokenSchema, t as Token } from "../index-DM8vit-J.mjs";
3
- export { type Component, type ComponentFile, type ComponentUsage, type Components, type Icon, type IconFile, type Icons, type Schema, type Token, type Tokens, componentFileSchema, componentSchema, componentUsageSchema, componentsSchema, iconFileSchema, iconSchema, iconsSchema, schema, tokenSchema, tokensSchema };
1
+ import { A as componentSchema, C as googleFontSchema, D as ComponentUsage, E as ComponentFile, M as componentsSchema, O as Components, S as fontsSchema, T as Component, _ as fontDisplaySchema, a as Icons, b as fontRoleSchema, c as iconsSchema, d as FontFile, f as FontFileFormat, g as LocalFont, h as GoogleFont, i as IconFile, j as componentUsageSchema, k as componentFileSchema, l as Font, m as Fonts, n as schema, o as iconFileSchema, p as FontRole, r as Icon, s as iconSchema, t as Schema, u as FontDisplay, v as fontFileFormatSchema, w as localFontSchema, x as fontSchema, y as fontFileSchema } from "../schema-BwOBgJIM.mjs";
2
+ import { i as tokensSchema, n as Tokens, r as tokenSchema, t as Token } from "../index-D5L2WXYk.mjs";
3
+ export { type Component, type ComponentFile, type ComponentUsage, type Components, type Font, type FontDisplay, type FontFile, type FontFileFormat, type FontRole, type Fonts, type GoogleFont, type Icon, type IconFile, type Icons, type LocalFont, type Schema, type Token, type Tokens, componentFileSchema, componentSchema, componentUsageSchema, componentsSchema, fontDisplaySchema, fontFileFormatSchema, fontFileSchema, fontRoleSchema, fontSchema, fontsSchema, googleFontSchema, iconFileSchema, iconSchema, iconsSchema, localFontSchema, schema, tokenSchema, tokensSchema };
@@ -1 +1 @@
1
- import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c,u as l}from"../schema-buR6a6IP.mjs";export{s as componentFileSchema,t as componentSchema,r as componentUsageSchema,l as componentsSchema,n as iconFileSchema,e as iconSchema,a as iconsSchema,o as schema,c as tokenSchema,i as tokensSchema};
1
+ import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c,u as l}from"../schema-CXK5pVmJ.mjs";import{a as u,c as d,i as f,n as p,o as m,r as h,s as g,t as _}from"../fonts-B0ESWBBC.mjs";export{s as componentFileSchema,t as componentSchema,r as componentUsageSchema,l as componentsSchema,_ as fontDisplaySchema,p as fontFileFormatSchema,h as fontFileSchema,f as fontRoleSchema,u as fontSchema,m as fontsSchema,g as googleFontSchema,n as iconFileSchema,e as iconSchema,a as iconsSchema,d as localFontSchema,o as schema,c as tokenSchema,i as tokensSchema};
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime-BocRIvOZ.cjs"),t=require("./fonts-vhz5FAsy.cjs");let n=require("zod");n=e.t(n,1);let r=require("@power-plant/dtcg-schema");const i=n.z.object({path:n.z.string(),type:n.z.enum([`lib`,`block`,`component`,`ui`,`hook`,`theme`,`page`,`file`,`style`,`base`,`font`,`item`]).optional(),content:n.z.string().optional(),target:n.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.`)}),a=n.z.object({name:n.z.string().optional().describe(`Stable usage example id. Defaults to the source filename without extension.`),title:n.z.string().optional(),description:n.z.string().optional(),path:n.z.string(),content:n.z.string().optional(),language:n.z.enum([`tsx`,`jsx`,`ts`,`js`,`mdx`,`md`,`css`,`html`,`txt`]).optional().describe(`Source language for syntax highlighting. Inferred from the file extension when omitted.`)}),o=n.z.object({name:n.z.string(),title:n.z.string(),type:n.z.enum([`block`,`component`,`ui`,`page`]).default(`component`),category:n.z.string().optional(),description:n.z.string().optional(),tags:n.z.array(n.z.string()).optional(),related:n.z.array(n.z.string()).optional(),since:n.z.string().optional(),version:n.z.string().optional(),repository:n.z.string().optional(),homepage:n.z.string().optional(),dependencies:n.z.record(n.z.string(),n.z.string()).optional(),devDependencies:n.z.record(n.z.string(),n.z.string()).optional(),registryDependencies:n.z.record(n.z.string(),n.z.string()).optional(),files:n.z.array(i).optional(),usage:n.z.array(a).optional().describe("Example usage snippets for this component. Prefer a `usage/` directory of source files; entries may also be declared in metadata.")}),s=n.z.record(n.z.string(),o),c=n.z.object({path:n.z.string(),type:n.z.enum([`svg`,`png`,`webp`,`jpg`,`jpeg`,`gif`,`ico`,`file`]).optional(),content:n.z.string().optional(),theme:n.z.string().optional().describe(`Optional theme variant for this asset (for example light or dark).`),target:n.z.string().optional().describe(`The target path of the file in the project. Supports registry-style placeholders independent of the project's import prefix.`)}),l=n.z.object({name:n.z.string(),title:n.z.string(),category:n.z.string().optional(),description:n.z.string().optional(),tags:n.z.array(n.z.string()).optional(),aliases:n.z.array(n.z.string()).optional(),related:n.z.array(n.z.string()).optional(),since:n.z.string().optional(),version:n.z.string().optional(),repository:n.z.string().optional(),homepage:n.z.string().optional(),files:n.z.array(c).optional()}),u=n.z.record(n.z.string(),l),d=n.default.union([r.tokensSchema,n.default.record(n.default.string(),r.tokensSchema)]),f=n.default.object({name:n.default.string().optional(),title:n.default.string().optional(),repository:n.default.string().optional(),homepage:n.default.string().optional(),description:n.default.string().optional(),logo:n.default.string().optional(),theme:n.default.string().optional(),tokens:d,components:s,icons:u,fonts:t.o});Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
@@ -0,0 +1,545 @@
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/fonts.d.ts
170
+ declare const fontRoleSchema: z$1.ZodEnum<{
171
+ sans: "sans";
172
+ serif: "serif";
173
+ mono: "mono";
174
+ display: "display";
175
+ heading: "heading";
176
+ body: "body";
177
+ code: "code";
178
+ }>;
179
+ type FontRole = z$1.infer<typeof fontRoleSchema>;
180
+ declare const fontDisplaySchema: z$1.ZodEnum<{
181
+ block: "block";
182
+ optional: "optional";
183
+ auto: "auto";
184
+ swap: "swap";
185
+ fallback: "fallback";
186
+ }>;
187
+ type FontDisplay = z$1.infer<typeof fontDisplaySchema>;
188
+ declare const fontFileFormatSchema: z$1.ZodEnum<{
189
+ woff2: "woff2";
190
+ woff: "woff";
191
+ truetype: "truetype";
192
+ opentype: "opentype";
193
+ svg: "svg";
194
+ }>;
195
+ type FontFileFormat = z$1.infer<typeof fontFileFormatSchema>;
196
+ declare const fontFileSchema: z$1.ZodObject<{
197
+ path: z$1.ZodString;
198
+ format: z$1.ZodOptional<z$1.ZodEnum<{
199
+ woff2: "woff2";
200
+ woff: "woff";
201
+ truetype: "truetype";
202
+ opentype: "opentype";
203
+ svg: "svg";
204
+ }>>;
205
+ weight: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>>;
206
+ style: z$1.ZodOptional<z$1.ZodEnum<{
207
+ normal: "normal";
208
+ italic: "italic";
209
+ oblique: "oblique";
210
+ }>>;
211
+ unicodeRange: z$1.ZodOptional<z$1.ZodString>;
212
+ }, z$1.core.$strip>;
213
+ type FontFile = z$1.infer<typeof fontFileSchema>;
214
+ declare const googleFontSchema: z$1.ZodObject<{
215
+ name: z$1.ZodString;
216
+ title: z$1.ZodString;
217
+ family: z$1.ZodOptional<z$1.ZodString>;
218
+ role: z$1.ZodOptional<z$1.ZodEnum<{
219
+ sans: "sans";
220
+ serif: "serif";
221
+ mono: "mono";
222
+ display: "display";
223
+ heading: "heading";
224
+ body: "body";
225
+ code: "code";
226
+ }>>;
227
+ fallbacks: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
228
+ display: z$1.ZodOptional<z$1.ZodEnum<{
229
+ block: "block";
230
+ optional: "optional";
231
+ auto: "auto";
232
+ swap: "swap";
233
+ fallback: "fallback";
234
+ }>>;
235
+ category: z$1.ZodOptional<z$1.ZodString>;
236
+ description: z$1.ZodOptional<z$1.ZodString>;
237
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
238
+ source: z$1.ZodLiteral<"google">;
239
+ weights: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>>>;
240
+ styles: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
241
+ normal: "normal";
242
+ italic: "italic";
243
+ }>>>;
244
+ subsets: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
245
+ variable: z$1.ZodOptional<z$1.ZodBoolean>;
246
+ }, z$1.core.$strip>;
247
+ type GoogleFont = z$1.infer<typeof googleFontSchema>;
248
+ declare const localFontSchema: z$1.ZodObject<{
249
+ name: z$1.ZodString;
250
+ title: z$1.ZodString;
251
+ family: z$1.ZodOptional<z$1.ZodString>;
252
+ role: z$1.ZodOptional<z$1.ZodEnum<{
253
+ sans: "sans";
254
+ serif: "serif";
255
+ mono: "mono";
256
+ display: "display";
257
+ heading: "heading";
258
+ body: "body";
259
+ code: "code";
260
+ }>>;
261
+ fallbacks: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
262
+ display: z$1.ZodOptional<z$1.ZodEnum<{
263
+ block: "block";
264
+ optional: "optional";
265
+ auto: "auto";
266
+ swap: "swap";
267
+ fallback: "fallback";
268
+ }>>;
269
+ category: z$1.ZodOptional<z$1.ZodString>;
270
+ description: z$1.ZodOptional<z$1.ZodString>;
271
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
272
+ source: z$1.ZodLiteral<"local">;
273
+ files: z$1.ZodArray<z$1.ZodObject<{
274
+ path: z$1.ZodString;
275
+ format: z$1.ZodOptional<z$1.ZodEnum<{
276
+ woff2: "woff2";
277
+ woff: "woff";
278
+ truetype: "truetype";
279
+ opentype: "opentype";
280
+ svg: "svg";
281
+ }>>;
282
+ weight: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>>;
283
+ style: z$1.ZodOptional<z$1.ZodEnum<{
284
+ normal: "normal";
285
+ italic: "italic";
286
+ oblique: "oblique";
287
+ }>>;
288
+ unicodeRange: z$1.ZodOptional<z$1.ZodString>;
289
+ }, z$1.core.$strip>>;
290
+ }, z$1.core.$strip>;
291
+ type LocalFont = z$1.infer<typeof localFontSchema>;
292
+ declare const fontSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
293
+ name: z$1.ZodString;
294
+ title: z$1.ZodString;
295
+ family: z$1.ZodOptional<z$1.ZodString>;
296
+ role: z$1.ZodOptional<z$1.ZodEnum<{
297
+ sans: "sans";
298
+ serif: "serif";
299
+ mono: "mono";
300
+ display: "display";
301
+ heading: "heading";
302
+ body: "body";
303
+ code: "code";
304
+ }>>;
305
+ fallbacks: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
306
+ display: z$1.ZodOptional<z$1.ZodEnum<{
307
+ block: "block";
308
+ optional: "optional";
309
+ auto: "auto";
310
+ swap: "swap";
311
+ fallback: "fallback";
312
+ }>>;
313
+ category: z$1.ZodOptional<z$1.ZodString>;
314
+ description: z$1.ZodOptional<z$1.ZodString>;
315
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
316
+ source: z$1.ZodLiteral<"google">;
317
+ weights: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>>>;
318
+ styles: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
319
+ normal: "normal";
320
+ italic: "italic";
321
+ }>>>;
322
+ subsets: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
323
+ variable: z$1.ZodOptional<z$1.ZodBoolean>;
324
+ }, z$1.core.$strip>, z$1.ZodObject<{
325
+ name: z$1.ZodString;
326
+ title: z$1.ZodString;
327
+ family: z$1.ZodOptional<z$1.ZodString>;
328
+ role: z$1.ZodOptional<z$1.ZodEnum<{
329
+ sans: "sans";
330
+ serif: "serif";
331
+ mono: "mono";
332
+ display: "display";
333
+ heading: "heading";
334
+ body: "body";
335
+ code: "code";
336
+ }>>;
337
+ fallbacks: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
338
+ display: z$1.ZodOptional<z$1.ZodEnum<{
339
+ block: "block";
340
+ optional: "optional";
341
+ auto: "auto";
342
+ swap: "swap";
343
+ fallback: "fallback";
344
+ }>>;
345
+ category: z$1.ZodOptional<z$1.ZodString>;
346
+ description: z$1.ZodOptional<z$1.ZodString>;
347
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
348
+ source: z$1.ZodLiteral<"local">;
349
+ files: z$1.ZodArray<z$1.ZodObject<{
350
+ path: z$1.ZodString;
351
+ format: z$1.ZodOptional<z$1.ZodEnum<{
352
+ woff2: "woff2";
353
+ woff: "woff";
354
+ truetype: "truetype";
355
+ opentype: "opentype";
356
+ svg: "svg";
357
+ }>>;
358
+ weight: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>>;
359
+ style: z$1.ZodOptional<z$1.ZodEnum<{
360
+ normal: "normal";
361
+ italic: "italic";
362
+ oblique: "oblique";
363
+ }>>;
364
+ unicodeRange: z$1.ZodOptional<z$1.ZodString>;
365
+ }, z$1.core.$strip>>;
366
+ }, z$1.core.$strip>], "source">;
367
+ type Font = z$1.infer<typeof fontSchema>;
368
+ declare const fontsSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
369
+ name: z$1.ZodString;
370
+ title: z$1.ZodString;
371
+ family: z$1.ZodOptional<z$1.ZodString>;
372
+ role: z$1.ZodOptional<z$1.ZodEnum<{
373
+ sans: "sans";
374
+ serif: "serif";
375
+ mono: "mono";
376
+ display: "display";
377
+ heading: "heading";
378
+ body: "body";
379
+ code: "code";
380
+ }>>;
381
+ fallbacks: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
382
+ display: z$1.ZodOptional<z$1.ZodEnum<{
383
+ block: "block";
384
+ optional: "optional";
385
+ auto: "auto";
386
+ swap: "swap";
387
+ fallback: "fallback";
388
+ }>>;
389
+ category: z$1.ZodOptional<z$1.ZodString>;
390
+ description: z$1.ZodOptional<z$1.ZodString>;
391
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
392
+ source: z$1.ZodLiteral<"google">;
393
+ weights: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>>>;
394
+ styles: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
395
+ normal: "normal";
396
+ italic: "italic";
397
+ }>>>;
398
+ subsets: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
399
+ variable: z$1.ZodOptional<z$1.ZodBoolean>;
400
+ }, z$1.core.$strip>, z$1.ZodObject<{
401
+ name: z$1.ZodString;
402
+ title: z$1.ZodString;
403
+ family: z$1.ZodOptional<z$1.ZodString>;
404
+ role: z$1.ZodOptional<z$1.ZodEnum<{
405
+ sans: "sans";
406
+ serif: "serif";
407
+ mono: "mono";
408
+ display: "display";
409
+ heading: "heading";
410
+ body: "body";
411
+ code: "code";
412
+ }>>;
413
+ fallbacks: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
414
+ display: z$1.ZodOptional<z$1.ZodEnum<{
415
+ block: "block";
416
+ optional: "optional";
417
+ auto: "auto";
418
+ swap: "swap";
419
+ fallback: "fallback";
420
+ }>>;
421
+ category: z$1.ZodOptional<z$1.ZodString>;
422
+ description: z$1.ZodOptional<z$1.ZodString>;
423
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
424
+ source: z$1.ZodLiteral<"local">;
425
+ files: z$1.ZodArray<z$1.ZodObject<{
426
+ path: z$1.ZodString;
427
+ format: z$1.ZodOptional<z$1.ZodEnum<{
428
+ woff2: "woff2";
429
+ woff: "woff";
430
+ truetype: "truetype";
431
+ opentype: "opentype";
432
+ svg: "svg";
433
+ }>>;
434
+ weight: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>>;
435
+ style: z$1.ZodOptional<z$1.ZodEnum<{
436
+ normal: "normal";
437
+ italic: "italic";
438
+ oblique: "oblique";
439
+ }>>;
440
+ unicodeRange: z$1.ZodOptional<z$1.ZodString>;
441
+ }, z$1.core.$strip>>;
442
+ }, z$1.core.$strip>], "source">>;
443
+ type Fonts = z$1.infer<typeof fontsSchema>;
444
+ //#endregion
445
+ //#region src/schema/icons.d.ts
446
+ declare const iconFileSchema: z$1.ZodObject<{
447
+ path: z$1.ZodString;
448
+ type: z$1.ZodOptional<z$1.ZodEnum<{
449
+ file: "file";
450
+ svg: "svg";
451
+ png: "png";
452
+ webp: "webp";
453
+ jpg: "jpg";
454
+ jpeg: "jpeg";
455
+ gif: "gif";
456
+ ico: "ico";
457
+ }>>;
458
+ content: z$1.ZodOptional<z$1.ZodString>;
459
+ theme: z$1.ZodOptional<z$1.ZodString>;
460
+ target: z$1.ZodOptional<z$1.ZodString>;
461
+ }, z$1.core.$strip>;
462
+ type IconFile = z$1.infer<typeof iconFileSchema>;
463
+ declare const iconSchema: z$1.ZodObject<{
464
+ name: z$1.ZodString;
465
+ title: z$1.ZodString;
466
+ category: z$1.ZodOptional<z$1.ZodString>;
467
+ description: z$1.ZodOptional<z$1.ZodString>;
468
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
469
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
470
+ related: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
471
+ since: z$1.ZodOptional<z$1.ZodString>;
472
+ version: z$1.ZodOptional<z$1.ZodString>;
473
+ repository: z$1.ZodOptional<z$1.ZodString>;
474
+ homepage: z$1.ZodOptional<z$1.ZodString>;
475
+ files: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
476
+ path: z$1.ZodString;
477
+ type: z$1.ZodOptional<z$1.ZodEnum<{
478
+ file: "file";
479
+ svg: "svg";
480
+ png: "png";
481
+ webp: "webp";
482
+ jpg: "jpg";
483
+ jpeg: "jpeg";
484
+ gif: "gif";
485
+ ico: "ico";
486
+ }>>;
487
+ content: z$1.ZodOptional<z$1.ZodString>;
488
+ theme: z$1.ZodOptional<z$1.ZodString>;
489
+ target: z$1.ZodOptional<z$1.ZodString>;
490
+ }, z$1.core.$strip>>>;
491
+ }, z$1.core.$strip>;
492
+ type Icon = z$1.infer<typeof iconSchema>;
493
+ declare const iconsSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
494
+ name: z$1.ZodString;
495
+ title: z$1.ZodString;
496
+ category: z$1.ZodOptional<z$1.ZodString>;
497
+ description: z$1.ZodOptional<z$1.ZodString>;
498
+ tags: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
499
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
500
+ related: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
501
+ since: z$1.ZodOptional<z$1.ZodString>;
502
+ version: z$1.ZodOptional<z$1.ZodString>;
503
+ repository: z$1.ZodOptional<z$1.ZodString>;
504
+ homepage: z$1.ZodOptional<z$1.ZodString>;
505
+ files: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
506
+ path: z$1.ZodString;
507
+ type: z$1.ZodOptional<z$1.ZodEnum<{
508
+ file: "file";
509
+ svg: "svg";
510
+ png: "png";
511
+ webp: "webp";
512
+ jpg: "jpg";
513
+ jpeg: "jpeg";
514
+ gif: "gif";
515
+ ico: "ico";
516
+ }>>;
517
+ content: z$1.ZodOptional<z$1.ZodString>;
518
+ theme: z$1.ZodOptional<z$1.ZodString>;
519
+ target: z$1.ZodOptional<z$1.ZodString>;
520
+ }, z$1.core.$strip>>>;
521
+ }, z$1.core.$strip>>;
522
+ type Icons = z$1.infer<typeof iconsSchema>;
523
+ //#endregion
524
+ //#region src/schema/schema.d.ts
525
+ interface Schema {
526
+ name?: string;
527
+ title?: string;
528
+ repository?: string;
529
+ homepage?: string;
530
+ description?: string;
531
+ logo?: string;
532
+ /**
533
+ * Active theme id when generating a single theme from a multi-theme token
534
+ * record. Generators append this to titles and output file names.
535
+ */
536
+ theme?: string;
537
+ components: Components;
538
+ icons: Icons;
539
+ fonts: Fonts;
540
+ tokens: Tokens | Record<string, Tokens>;
541
+ }
542
+ declare const schema: z.ZodType<Schema>;
543
+ //#endregion
544
+ export { componentSchema as A, googleFontSchema as C, ComponentUsage as D, ComponentFile as E, componentsSchema as M, Components as O, fontsSchema as S, Component as T, fontDisplaySchema as _, Icons as a, fontRoleSchema as b, iconsSchema as c, FontFile as d, FontFileFormat as f, LocalFont as g, GoogleFont as h, IconFile as i, componentUsageSchema as j, componentFileSchema as k, Font as l, Fonts as m, schema as n, iconFileSchema as o, FontRole as p, Icon as r, iconSchema as s, Schema as t, FontDisplay as u, fontFileFormatSchema as v, localFontSchema as w, fontSchema as x, fontFileSchema as y };
545
+ //# sourceMappingURL=schema-BwOBgJIM.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-BwOBgJIM.d.cts","names":[],"sources":["../src/schema/components.ts","../src/schema/fonts.ts","../src/schema/icons.ts","../src/schema/schema.ts"],"mappings":";;;cAoBa,qBAAmB,IAAA;;;;;;;;;;;;;;;;;;GAyB9B,IAAA,KAAA;KAEU,gBAAgB,IAAE,aAAa;;;;;;;;cAS9B,sBAAoB,IAAA;;;;;;;;;;;;;;;;;GAiB/B,IAAA,KAAA;KAEU,iBAAiB,IAAE,aAAa;cAE/B,iBAAe,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsB1B,IAAA,KAAA;KAEU,YAAY,IAAE,aAAa;cAE1B,kBAAgB,IAAA,UAAA,IAAA,WAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAwC,IAAA,KAAA;KAEzD,aAAa,IAAE,aAAa;;;cCrF3B,gBAAc,IAAA;;;;;;;;;KAUf,WAAW,IAAE,aAAa;cAEzB,mBAAiB,IAAA;;;;;;;KAQlB,cAAc,IAAE,aAAa;cAE5B,sBAAoB,IAAA;;;;;;;KAQrB,iBAAiB,IAAE,aAAa;cAE/B,gBAAc,IAAA;;;;;;;;;;;;;;;;GAMzB,IAAA,KAAA;KAEU,WAAW,IAAE,aAAa;cAiBzB,kBAAgB,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM3B,IAAA,KAAA;KAEU,aAAa,IAAE,aAAa;cAE3B,iBAAe,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAG1B,IAAA,KAAA;KAEU,YAAY,IAAE,aAAa;cAE1B,YAAU,IAAA,uBAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGrB,IAAA,KAAA;KAEU,OAAO,IAAE,aAAa;cAErB,aAAW,IAAA,UAAA,IAAA,WAAA,IAAA,uBAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmC,IAAA,KAAA;KAE/C,QAAQ,IAAE,aAAa;;;cCnFtB,gBAAc,IAAA;;;;;;;;;;;;;;;GAkBzB,IAAA,KAAA;KAEU,WAAW,IAAE,aAAa;cAEzB,YAAU,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAarB,IAAA,KAAA;KAEU,OAAO,IAAE,aAAa;cAErB,aAAW,IAAA,UAAA,IAAA,WAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmC,IAAA,KAAA;KAE/C,QAAQ,IAAE,aAAa;;;UC5BlB;EACf;EACA;EACA;EACA;EACA;EACA;;;;;EAKA;EACA,YAAY;EACZ,OAAO;EACP,OAAO;EACP,QAAQ,SAAS,eAAe;;cAGrB,QAAQ,EAAE,QAAQ"}