@storm-software/config 1.16.3 → 1.16.5
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/CHANGELOG.md +671 -0
- package/README.md +1 -1
- package/declarations.d.ts +72 -0
- package/index.cjs +4077 -0
- package/index.js +4055 -0
- package/meta.cjs.json +1 -0
- package/meta.esm.json +1 -0
- package/package.json +1 -5
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type * as z from "zod";
|
|
2
|
+
import {
|
|
3
|
+
ColorConfigMapSchema,
|
|
4
|
+
ColorConfigSchema,
|
|
5
|
+
DarkThemeColorConfigSchema,
|
|
6
|
+
LightThemeColorConfigSchema,
|
|
7
|
+
MultiThemeColorConfigSchema,
|
|
8
|
+
SingleThemeColorConfigSchema,
|
|
9
|
+
StormConfigSchema
|
|
10
|
+
} from "./src/schema";
|
|
11
|
+
|
|
12
|
+
export type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
|
|
13
|
+
export type DarkThemeColorConfigInput = z.input<
|
|
14
|
+
typeof DarkThemeColorConfigSchema
|
|
15
|
+
>;
|
|
16
|
+
|
|
17
|
+
export type LightThemeColorConfig = z.infer<typeof LightThemeColorConfigSchema>;
|
|
18
|
+
export type LightThemeColorConfigInput = z.input<
|
|
19
|
+
typeof LightThemeColorConfigSchema
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export type MultiThemeColorConfig = z.infer<typeof MultiThemeColorConfigSchema>;
|
|
23
|
+
export type MultiThemeColorConfigInput = z.input<
|
|
24
|
+
typeof MultiThemeColorConfigSchema
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
export type SingleThemeColorConfig = z.infer<
|
|
28
|
+
typeof SingleThemeColorConfigSchema
|
|
29
|
+
>;
|
|
30
|
+
export type SingleThemeColorConfigInput = z.input<
|
|
31
|
+
typeof SingleThemeColorConfigSchema
|
|
32
|
+
>;
|
|
33
|
+
|
|
34
|
+
export type ColorConfig = z.infer<typeof ColorConfigSchema>;
|
|
35
|
+
export type ColorConfigInput = z.input<typeof ColorConfigSchema>;
|
|
36
|
+
|
|
37
|
+
export type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
|
|
38
|
+
export type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
|
|
39
|
+
|
|
40
|
+
type TStormConfig = z.infer<typeof StormConfigSchema>;
|
|
41
|
+
|
|
42
|
+
declare type StormConfig<
|
|
43
|
+
TExtensionName extends
|
|
44
|
+
keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"],
|
|
45
|
+
TExtensionConfig extends
|
|
46
|
+
TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]
|
|
47
|
+
> = TStormConfig & {
|
|
48
|
+
extensions:
|
|
49
|
+
| (TStormConfig["extensions"] & {
|
|
50
|
+
[extensionName in TExtensionName]: TExtensionConfig;
|
|
51
|
+
})
|
|
52
|
+
| NonNullable<Record<string, any>>;
|
|
53
|
+
};
|
|
54
|
+
export type { StormConfig };
|
|
55
|
+
|
|
56
|
+
declare type StormConfigInput = z.input<typeof StormConfigSchema>;
|
|
57
|
+
export type { StormConfigInput };
|
|
58
|
+
|
|
59
|
+
export { StormConfigSchema } from "./src/schema";
|
|
60
|
+
|
|
61
|
+
export const COLOR_KEYS = [
|
|
62
|
+
"dark",
|
|
63
|
+
"light",
|
|
64
|
+
"base",
|
|
65
|
+
"brand",
|
|
66
|
+
"accent",
|
|
67
|
+
"success",
|
|
68
|
+
"info",
|
|
69
|
+
"warning",
|
|
70
|
+
"error",
|
|
71
|
+
"fatal"
|
|
72
|
+
];
|