@stackwright/themes 0.3.1 → 0.4.1
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/LICENSE +21 -0
- package/dist/index.d.mts +213 -64
- package/dist/index.d.ts +213 -64
- package/dist/index.js +72 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +69 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -6
- package/AGENTS.md +0 -222
- package/CHANGELOG.md +0 -61
- package/src/ThemeProvider.tsx +0 -31
- package/src/index.ts +0 -4
- package/src/themeLoader.ts +0 -116
- package/src/themes/corporate.ts +0 -31
- package/src/themes/corporate.yaml +0 -36
- package/src/themes/soft.ts +0 -32
- package/src/themes/soft.yaml +0 -36
- package/src/types.ts +0 -66
- package/test/setup.ts +0 -1
- package/test/themeLoader.test.ts +0 -174
- package/tsconfig.json +0 -14
- package/tsup.config.ts +0 -16
- package/vitest.config.ts +0 -12
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Per Aspera Sapientia LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,68 +1,217 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import React, { ReactNode } from 'react';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
4
|
+
declare const componentStyleSchema: z.ZodObject<{
|
|
5
|
+
base: z.ZodOptional<z.ZodString>;
|
|
6
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
7
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
8
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
9
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
10
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
11
|
+
text: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>;
|
|
13
|
+
declare const themeConfigSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
description: z.ZodString;
|
|
17
|
+
colors: z.ZodObject<{
|
|
18
|
+
primary: z.ZodString;
|
|
19
|
+
secondary: z.ZodString;
|
|
20
|
+
accent: z.ZodString;
|
|
21
|
+
background: z.ZodString;
|
|
22
|
+
surface: z.ZodString;
|
|
23
|
+
text: z.ZodString;
|
|
24
|
+
textSecondary: z.ZodString;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
backgroundImage: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
url: z.ZodString;
|
|
28
|
+
repeat: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
repeat: "repeat";
|
|
30
|
+
"repeat-x": "repeat-x";
|
|
31
|
+
"repeat-y": "repeat-y";
|
|
32
|
+
"no-repeat": "no-repeat";
|
|
33
|
+
}>>;
|
|
34
|
+
size: z.ZodOptional<z.ZodString>;
|
|
35
|
+
position: z.ZodOptional<z.ZodString>;
|
|
36
|
+
attachment: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
scroll: "scroll";
|
|
38
|
+
fixed: "fixed";
|
|
39
|
+
local: "local";
|
|
40
|
+
}>>;
|
|
41
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
animation: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
drift: "drift";
|
|
44
|
+
float: "float";
|
|
45
|
+
shimmer: "shimmer";
|
|
46
|
+
"shimmer-float": "shimmer-float";
|
|
47
|
+
none: "none";
|
|
48
|
+
}>>;
|
|
49
|
+
customAnimation: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
typography: z.ZodObject<{
|
|
52
|
+
fontFamily: z.ZodObject<{
|
|
53
|
+
primary: z.ZodString;
|
|
54
|
+
secondary: z.ZodString;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
scale: z.ZodObject<{
|
|
57
|
+
xs: z.ZodString;
|
|
58
|
+
sm: z.ZodString;
|
|
59
|
+
base: z.ZodString;
|
|
60
|
+
lg: z.ZodString;
|
|
61
|
+
xl: z.ZodString;
|
|
62
|
+
'2xl': z.ZodString;
|
|
63
|
+
'3xl': z.ZodString;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
spacing: z.ZodObject<{
|
|
67
|
+
xs: z.ZodString;
|
|
68
|
+
sm: z.ZodString;
|
|
69
|
+
md: z.ZodString;
|
|
70
|
+
lg: z.ZodString;
|
|
71
|
+
xl: z.ZodString;
|
|
72
|
+
'2xl': z.ZodString;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
components: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
button: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
base: z.ZodOptional<z.ZodString>;
|
|
77
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
78
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
79
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
80
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
81
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
82
|
+
text: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
84
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
base: z.ZodOptional<z.ZodString>;
|
|
86
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
87
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
88
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
89
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
90
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
91
|
+
text: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
93
|
+
header: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
base: z.ZodOptional<z.ZodString>;
|
|
95
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
96
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
97
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
98
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
99
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
100
|
+
text: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
102
|
+
footer: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
base: z.ZodOptional<z.ZodString>;
|
|
104
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
105
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
106
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
107
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
108
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
109
|
+
text: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
declare const themeSchema: z.ZodObject<{
|
|
114
|
+
id: z.ZodString;
|
|
115
|
+
name: z.ZodString;
|
|
116
|
+
description: z.ZodString;
|
|
117
|
+
colors: z.ZodObject<{
|
|
118
|
+
primary: z.ZodString;
|
|
119
|
+
secondary: z.ZodString;
|
|
120
|
+
accent: z.ZodString;
|
|
121
|
+
background: z.ZodString;
|
|
122
|
+
surface: z.ZodString;
|
|
123
|
+
text: z.ZodString;
|
|
124
|
+
textSecondary: z.ZodString;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
backgroundImage: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
url: z.ZodString;
|
|
128
|
+
repeat: z.ZodOptional<z.ZodEnum<{
|
|
129
|
+
repeat: "repeat";
|
|
130
|
+
"repeat-x": "repeat-x";
|
|
131
|
+
"repeat-y": "repeat-y";
|
|
132
|
+
"no-repeat": "no-repeat";
|
|
133
|
+
}>>;
|
|
134
|
+
size: z.ZodOptional<z.ZodString>;
|
|
135
|
+
position: z.ZodOptional<z.ZodString>;
|
|
136
|
+
attachment: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
scroll: "scroll";
|
|
138
|
+
fixed: "fixed";
|
|
139
|
+
local: "local";
|
|
140
|
+
}>>;
|
|
141
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
animation: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
drift: "drift";
|
|
144
|
+
float: "float";
|
|
145
|
+
shimmer: "shimmer";
|
|
146
|
+
"shimmer-float": "shimmer-float";
|
|
147
|
+
none: "none";
|
|
148
|
+
}>>;
|
|
149
|
+
customAnimation: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
typography: z.ZodObject<{
|
|
152
|
+
fontFamily: z.ZodObject<{
|
|
153
|
+
primary: z.ZodString;
|
|
154
|
+
secondary: z.ZodString;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
scale: z.ZodObject<{
|
|
157
|
+
xs: z.ZodString;
|
|
158
|
+
sm: z.ZodString;
|
|
159
|
+
base: z.ZodString;
|
|
160
|
+
lg: z.ZodString;
|
|
161
|
+
xl: z.ZodString;
|
|
162
|
+
'2xl': z.ZodString;
|
|
163
|
+
'3xl': z.ZodString;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
spacing: z.ZodObject<{
|
|
167
|
+
xs: z.ZodString;
|
|
168
|
+
sm: z.ZodString;
|
|
169
|
+
md: z.ZodString;
|
|
170
|
+
lg: z.ZodString;
|
|
171
|
+
xl: z.ZodString;
|
|
172
|
+
'2xl': z.ZodString;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
components: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
button: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
base: z.ZodOptional<z.ZodString>;
|
|
177
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
178
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
179
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
180
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
181
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
182
|
+
text: z.ZodOptional<z.ZodString>;
|
|
183
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
184
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
base: z.ZodOptional<z.ZodString>;
|
|
186
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
187
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
188
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
189
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
190
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
191
|
+
text: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
193
|
+
header: z.ZodOptional<z.ZodObject<{
|
|
194
|
+
base: z.ZodOptional<z.ZodString>;
|
|
195
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
196
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
197
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
198
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
199
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
200
|
+
text: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
202
|
+
footer: z.ZodOptional<z.ZodObject<{
|
|
203
|
+
base: z.ZodOptional<z.ZodString>;
|
|
204
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
205
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
206
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
207
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
208
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
209
|
+
text: z.ZodOptional<z.ZodString>;
|
|
210
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
211
|
+
}, z.core.$strip>>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
type ThemeConfig = z.infer<typeof themeConfigSchema>;
|
|
214
|
+
type ComponentStyle = z.infer<typeof componentStyleSchema>;
|
|
66
215
|
interface Theme extends ThemeConfig {
|
|
67
216
|
}
|
|
68
217
|
|
|
@@ -88,4 +237,4 @@ declare class ThemeLoader {
|
|
|
88
237
|
private static getEmbeddedTheme;
|
|
89
238
|
}
|
|
90
239
|
|
|
91
|
-
export { type ComponentStyle, type Theme, type ThemeConfig, ThemeLoader, ThemeProvider, useTheme };
|
|
240
|
+
export { type ComponentStyle, type Theme, type ThemeConfig, ThemeLoader, ThemeProvider, componentStyleSchema, themeConfigSchema, themeSchema, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,68 +1,217 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import React, { ReactNode } from 'react';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
4
|
+
declare const componentStyleSchema: z.ZodObject<{
|
|
5
|
+
base: z.ZodOptional<z.ZodString>;
|
|
6
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
7
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
8
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
9
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
10
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
11
|
+
text: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>;
|
|
13
|
+
declare const themeConfigSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
description: z.ZodString;
|
|
17
|
+
colors: z.ZodObject<{
|
|
18
|
+
primary: z.ZodString;
|
|
19
|
+
secondary: z.ZodString;
|
|
20
|
+
accent: z.ZodString;
|
|
21
|
+
background: z.ZodString;
|
|
22
|
+
surface: z.ZodString;
|
|
23
|
+
text: z.ZodString;
|
|
24
|
+
textSecondary: z.ZodString;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
backgroundImage: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
url: z.ZodString;
|
|
28
|
+
repeat: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
repeat: "repeat";
|
|
30
|
+
"repeat-x": "repeat-x";
|
|
31
|
+
"repeat-y": "repeat-y";
|
|
32
|
+
"no-repeat": "no-repeat";
|
|
33
|
+
}>>;
|
|
34
|
+
size: z.ZodOptional<z.ZodString>;
|
|
35
|
+
position: z.ZodOptional<z.ZodString>;
|
|
36
|
+
attachment: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
scroll: "scroll";
|
|
38
|
+
fixed: "fixed";
|
|
39
|
+
local: "local";
|
|
40
|
+
}>>;
|
|
41
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
animation: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
drift: "drift";
|
|
44
|
+
float: "float";
|
|
45
|
+
shimmer: "shimmer";
|
|
46
|
+
"shimmer-float": "shimmer-float";
|
|
47
|
+
none: "none";
|
|
48
|
+
}>>;
|
|
49
|
+
customAnimation: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
typography: z.ZodObject<{
|
|
52
|
+
fontFamily: z.ZodObject<{
|
|
53
|
+
primary: z.ZodString;
|
|
54
|
+
secondary: z.ZodString;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
scale: z.ZodObject<{
|
|
57
|
+
xs: z.ZodString;
|
|
58
|
+
sm: z.ZodString;
|
|
59
|
+
base: z.ZodString;
|
|
60
|
+
lg: z.ZodString;
|
|
61
|
+
xl: z.ZodString;
|
|
62
|
+
'2xl': z.ZodString;
|
|
63
|
+
'3xl': z.ZodString;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
spacing: z.ZodObject<{
|
|
67
|
+
xs: z.ZodString;
|
|
68
|
+
sm: z.ZodString;
|
|
69
|
+
md: z.ZodString;
|
|
70
|
+
lg: z.ZodString;
|
|
71
|
+
xl: z.ZodString;
|
|
72
|
+
'2xl': z.ZodString;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
components: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
button: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
base: z.ZodOptional<z.ZodString>;
|
|
77
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
78
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
79
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
80
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
81
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
82
|
+
text: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
84
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
base: z.ZodOptional<z.ZodString>;
|
|
86
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
87
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
88
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
89
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
90
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
91
|
+
text: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
93
|
+
header: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
base: z.ZodOptional<z.ZodString>;
|
|
95
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
96
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
97
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
98
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
99
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
100
|
+
text: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
102
|
+
footer: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
base: z.ZodOptional<z.ZodString>;
|
|
104
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
105
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
106
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
107
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
108
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
109
|
+
text: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
declare const themeSchema: z.ZodObject<{
|
|
114
|
+
id: z.ZodString;
|
|
115
|
+
name: z.ZodString;
|
|
116
|
+
description: z.ZodString;
|
|
117
|
+
colors: z.ZodObject<{
|
|
118
|
+
primary: z.ZodString;
|
|
119
|
+
secondary: z.ZodString;
|
|
120
|
+
accent: z.ZodString;
|
|
121
|
+
background: z.ZodString;
|
|
122
|
+
surface: z.ZodString;
|
|
123
|
+
text: z.ZodString;
|
|
124
|
+
textSecondary: z.ZodString;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
backgroundImage: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
url: z.ZodString;
|
|
128
|
+
repeat: z.ZodOptional<z.ZodEnum<{
|
|
129
|
+
repeat: "repeat";
|
|
130
|
+
"repeat-x": "repeat-x";
|
|
131
|
+
"repeat-y": "repeat-y";
|
|
132
|
+
"no-repeat": "no-repeat";
|
|
133
|
+
}>>;
|
|
134
|
+
size: z.ZodOptional<z.ZodString>;
|
|
135
|
+
position: z.ZodOptional<z.ZodString>;
|
|
136
|
+
attachment: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
scroll: "scroll";
|
|
138
|
+
fixed: "fixed";
|
|
139
|
+
local: "local";
|
|
140
|
+
}>>;
|
|
141
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
animation: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
drift: "drift";
|
|
144
|
+
float: "float";
|
|
145
|
+
shimmer: "shimmer";
|
|
146
|
+
"shimmer-float": "shimmer-float";
|
|
147
|
+
none: "none";
|
|
148
|
+
}>>;
|
|
149
|
+
customAnimation: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
typography: z.ZodObject<{
|
|
152
|
+
fontFamily: z.ZodObject<{
|
|
153
|
+
primary: z.ZodString;
|
|
154
|
+
secondary: z.ZodString;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
scale: z.ZodObject<{
|
|
157
|
+
xs: z.ZodString;
|
|
158
|
+
sm: z.ZodString;
|
|
159
|
+
base: z.ZodString;
|
|
160
|
+
lg: z.ZodString;
|
|
161
|
+
xl: z.ZodString;
|
|
162
|
+
'2xl': z.ZodString;
|
|
163
|
+
'3xl': z.ZodString;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
spacing: z.ZodObject<{
|
|
167
|
+
xs: z.ZodString;
|
|
168
|
+
sm: z.ZodString;
|
|
169
|
+
md: z.ZodString;
|
|
170
|
+
lg: z.ZodString;
|
|
171
|
+
xl: z.ZodString;
|
|
172
|
+
'2xl': z.ZodString;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
components: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
button: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
base: z.ZodOptional<z.ZodString>;
|
|
177
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
178
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
179
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
180
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
181
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
182
|
+
text: z.ZodOptional<z.ZodString>;
|
|
183
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
184
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
base: z.ZodOptional<z.ZodString>;
|
|
186
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
187
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
188
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
189
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
190
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
191
|
+
text: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
193
|
+
header: z.ZodOptional<z.ZodObject<{
|
|
194
|
+
base: z.ZodOptional<z.ZodString>;
|
|
195
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
196
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
197
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
198
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
199
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
200
|
+
text: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
202
|
+
footer: z.ZodOptional<z.ZodObject<{
|
|
203
|
+
base: z.ZodOptional<z.ZodString>;
|
|
204
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
205
|
+
secondary: z.ZodOptional<z.ZodString>;
|
|
206
|
+
outline: z.ZodOptional<z.ZodString>;
|
|
207
|
+
shadow: z.ZodOptional<z.ZodString>;
|
|
208
|
+
nav: z.ZodOptional<z.ZodString>;
|
|
209
|
+
text: z.ZodOptional<z.ZodString>;
|
|
210
|
+
}, z.core.$catchall<z.ZodOptional<z.ZodString>>>>;
|
|
211
|
+
}, z.core.$strip>>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
type ThemeConfig = z.infer<typeof themeConfigSchema>;
|
|
214
|
+
type ComponentStyle = z.infer<typeof componentStyleSchema>;
|
|
66
215
|
interface Theme extends ThemeConfig {
|
|
67
216
|
}
|
|
68
217
|
|
|
@@ -88,4 +237,4 @@ declare class ThemeLoader {
|
|
|
88
237
|
private static getEmbeddedTheme;
|
|
89
238
|
}
|
|
90
239
|
|
|
91
|
-
export { type ComponentStyle, type Theme, type ThemeConfig, ThemeLoader, ThemeProvider, useTheme };
|
|
240
|
+
export { type ComponentStyle, type Theme, type ThemeConfig, ThemeLoader, ThemeProvider, componentStyleSchema, themeConfigSchema, themeSchema, useTheme };
|