phaser-wind 0.1.0 → 0.2.0
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/README.md +243 -10
- package/dist/color/color-picker.d.ts +12 -2
- package/dist/color/color-picker.d.ts.map +1 -1
- package/dist/color/color-picker.js +59 -2
- package/dist/color/color-picker.js.map +1 -1
- package/dist/color/color-picker.spec.js +19 -0
- package/dist/color/color-picker.spec.js.map +1 -1
- package/dist/examples/nested-theme-example.d.ts +28 -0
- package/dist/examples/nested-theme-example.d.ts.map +1 -0
- package/dist/examples/nested-theme-example.js +313 -0
- package/dist/examples/nested-theme-example.js.map +1 -0
- package/dist/examples/usage-example.d.ts +17 -0
- package/dist/examples/usage-example.d.ts.map +1 -0
- package/dist/examples/usage-example.js +158 -0
- package/dist/examples/usage-example.js.map +1 -0
- package/dist/font/font-picker.d.ts +93 -0
- package/dist/font/font-picker.d.ts.map +1 -0
- package/dist/font/font-picker.js +212 -0
- package/dist/font/font-picker.js.map +1 -0
- package/dist/font/index.d.ts +1 -0
- package/dist/font/index.d.ts.map +1 -1
- package/dist/font/index.js +1 -0
- package/dist/font/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +3 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/theme-config.d.ts +162 -0
- package/dist/theme/theme-config.d.ts.map +1 -0
- package/dist/theme/theme-config.js +196 -0
- package/dist/theme/theme-config.js.map +1 -0
- package/dist/theme/theme-manager.d.ts +96 -0
- package/dist/theme/theme-manager.d.ts.map +1 -0
- package/dist/theme/theme-manager.js +171 -0
- package/dist/theme/theme-manager.js.map +1 -0
- package/dist/theme/type.d.ts +1 -0
- package/dist/theme/type.d.ts.map +1 -0
- package/dist/theme/type.js +2 -0
- package/dist/theme/type.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { type BaseThemeConfig, type DefaultThemeStructure } from './theme-config';
|
|
2
|
+
/**
|
|
3
|
+
* Global theme manager for Phaser Wind
|
|
4
|
+
* Handles theme registration, switching, and token resolution with nested object support
|
|
5
|
+
*/
|
|
6
|
+
declare class ThemeManagerClass {
|
|
7
|
+
private currentTheme;
|
|
8
|
+
private registeredThemes;
|
|
9
|
+
private listeners;
|
|
10
|
+
/**
|
|
11
|
+
* Initialize the theme manager with a default theme
|
|
12
|
+
*/
|
|
13
|
+
init<T extends BaseThemeConfig>(theme: T): void;
|
|
14
|
+
/**
|
|
15
|
+
* Register a named theme
|
|
16
|
+
*/
|
|
17
|
+
registerTheme<T extends BaseThemeConfig>(name: string, theme: T): void;
|
|
18
|
+
/**
|
|
19
|
+
* Switch to a registered theme by name
|
|
20
|
+
*/
|
|
21
|
+
setTheme(name: string): void;
|
|
22
|
+
/**
|
|
23
|
+
* Set theme directly with object
|
|
24
|
+
*/
|
|
25
|
+
setThemeObject<T extends BaseThemeConfig>(theme: T): void;
|
|
26
|
+
/**
|
|
27
|
+
* Get the current theme
|
|
28
|
+
*/
|
|
29
|
+
getCurrentTheme(): BaseThemeConfig;
|
|
30
|
+
/**
|
|
31
|
+
* Get a nested token using dot notation (e.g., 'colors.primary', 'fonts.display')
|
|
32
|
+
* @param path - The path to the token (e.g., 'colors.primary')
|
|
33
|
+
* @returns The resolved token value
|
|
34
|
+
*/
|
|
35
|
+
getToken(path: string): unknown;
|
|
36
|
+
/**
|
|
37
|
+
* Check if a nested token exists using dot notation
|
|
38
|
+
* @param path - The path to check (e.g., 'colors.primary')
|
|
39
|
+
* @returns True if the token exists
|
|
40
|
+
*/
|
|
41
|
+
hasToken(path: string): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Get a token with type safety for specific namespaces
|
|
44
|
+
*/
|
|
45
|
+
getColorToken(key: string): string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Get a font token
|
|
48
|
+
*/
|
|
49
|
+
getFontToken(key: string): string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Get a spacing token
|
|
52
|
+
*/
|
|
53
|
+
getSpacingToken(key: string): number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Get a typography token
|
|
56
|
+
*/
|
|
57
|
+
getTypographyToken(key: string): unknown;
|
|
58
|
+
/**
|
|
59
|
+
* Get an effect token
|
|
60
|
+
*/
|
|
61
|
+
getEffectToken(key: string): unknown;
|
|
62
|
+
/**
|
|
63
|
+
* Resolve a theme reference (e.g., 'colors.primary' -> actual color value)
|
|
64
|
+
* This allows theme tokens to reference other theme tokens
|
|
65
|
+
*/
|
|
66
|
+
resolveToken(value: string): unknown;
|
|
67
|
+
/**
|
|
68
|
+
* Listen for theme changes
|
|
69
|
+
*/
|
|
70
|
+
onThemeChange(listener: (theme: BaseThemeConfig) => void): () => void;
|
|
71
|
+
/**
|
|
72
|
+
* Get all registered theme names
|
|
73
|
+
*/
|
|
74
|
+
getRegisteredThemes(): string[];
|
|
75
|
+
/**
|
|
76
|
+
* Create a new theme based on the current one with overrides
|
|
77
|
+
*/
|
|
78
|
+
extendCurrentTheme<T extends BaseThemeConfig>(overrides: Partial<T>): BaseThemeConfig;
|
|
79
|
+
/**
|
|
80
|
+
* Reset to default theme
|
|
81
|
+
*/
|
|
82
|
+
reset(): void;
|
|
83
|
+
private notifyListeners;
|
|
84
|
+
/**
|
|
85
|
+
* Helper method to get nested values using dot notation
|
|
86
|
+
* @param obj - The object to search in
|
|
87
|
+
* @param path - The dot notation path (e.g., 'colors.primary')
|
|
88
|
+
* @returns The value at the path or undefined
|
|
89
|
+
*/
|
|
90
|
+
private getNestedValue;
|
|
91
|
+
}
|
|
92
|
+
export declare const ThemeManager: ThemeManagerClass;
|
|
93
|
+
export declare const createTheme: <T extends BaseThemeConfig>(theme: T) => T;
|
|
94
|
+
export type ThemeConfig<T extends BaseThemeConfig = DefaultThemeStructure> = T;
|
|
95
|
+
export {};
|
|
96
|
+
//# sourceMappingURL=theme-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-manager.d.ts","sourceRoot":"","sources":["../../src/theme/theme-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,gBAAgB,CAAC;AAExB;;;GAGG;AACH,cAAM,iBAAiB;IACrB,OAAO,CAAC,YAAY,CAAsC;IAC1D,OAAO,CAAC,gBAAgB,CAA2C;IACnE,OAAO,CAAC,SAAS,CAA+C;IAEhE;;OAEG;IACH,IAAI,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAK/C;;OAEG;IACH,aAAa,CAAC,CAAC,SAAS,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAItE;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAc5B;;OAEG;IACH,cAAc,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAKzD;;OAEG;IACH,eAAe,IAAI,eAAe;IAIlC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI/B;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI/B;;OAEG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAK9C;;OAEG;IACH,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAK7C;;OAEG;IACH,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAKhD;;OAEG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAIxC;;OAEG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAIpC;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAcpC;;OAEG;IACH,aAAa,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,GAAG,MAAM,IAAI;IAYrE;;OAEG;IACH,mBAAmB,IAAI,MAAM,EAAE;IAI/B;;OAEG;IACH,kBAAkB,CAAC,CAAC,SAAS,eAAe,EAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,GACpB,eAAe;IAIlB;;OAEG;IACH,KAAK,IAAI,IAAI;IAQb,OAAO,CAAC,eAAe;IAIvB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;CAOvB;AAGD,eAAO,MAAM,YAAY,mBAA0B,CAAC;AAGpD,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,eAAe,EAAE,OAAO,CAAC,KAAG,CAAU,CAAC;AAG7E,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,eAAe,GAAG,qBAAqB,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { defaultLightTheme, } from './theme-config';
|
|
2
|
+
/**
|
|
3
|
+
* Global theme manager for Phaser Wind
|
|
4
|
+
* Handles theme registration, switching, and token resolution with nested object support
|
|
5
|
+
*/
|
|
6
|
+
class ThemeManagerClass {
|
|
7
|
+
currentTheme = defaultLightTheme;
|
|
8
|
+
registeredThemes = new Map();
|
|
9
|
+
listeners = [];
|
|
10
|
+
/**
|
|
11
|
+
* Initialize the theme manager with a default theme
|
|
12
|
+
*/
|
|
13
|
+
init(theme) {
|
|
14
|
+
this.currentTheme = theme;
|
|
15
|
+
this.registerTheme('default', theme);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Register a named theme
|
|
19
|
+
*/
|
|
20
|
+
registerTheme(name, theme) {
|
|
21
|
+
this.registeredThemes.set(name, theme);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Switch to a registered theme by name
|
|
25
|
+
*/
|
|
26
|
+
setTheme(name) {
|
|
27
|
+
const theme = this.registeredThemes.get(name);
|
|
28
|
+
if (!theme) {
|
|
29
|
+
// eslint-disable-next-line no-console
|
|
30
|
+
console.warn(`[Phaser Wind] Theme "${name}" not found. Available themes: ${Array.from(this.registeredThemes.keys()).join(', ')}`);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this.currentTheme = theme;
|
|
34
|
+
this.notifyListeners();
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Set theme directly with object
|
|
38
|
+
*/
|
|
39
|
+
setThemeObject(theme) {
|
|
40
|
+
this.currentTheme = theme;
|
|
41
|
+
this.notifyListeners();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get the current theme
|
|
45
|
+
*/
|
|
46
|
+
getCurrentTheme() {
|
|
47
|
+
return this.currentTheme;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Get a nested token using dot notation (e.g., 'colors.primary', 'fonts.display')
|
|
51
|
+
* @param path - The path to the token (e.g., 'colors.primary')
|
|
52
|
+
* @returns The resolved token value
|
|
53
|
+
*/
|
|
54
|
+
getToken(path) {
|
|
55
|
+
return this.getNestedValue(this.currentTheme, path);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a nested token exists using dot notation
|
|
59
|
+
* @param path - The path to check (e.g., 'colors.primary')
|
|
60
|
+
* @returns True if the token exists
|
|
61
|
+
*/
|
|
62
|
+
hasToken(path) {
|
|
63
|
+
return this.getNestedValue(this.currentTheme, path) !== undefined;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Get a token with type safety for specific namespaces
|
|
67
|
+
*/
|
|
68
|
+
getColorToken(key) {
|
|
69
|
+
const value = this.getToken(`colors.${key}`);
|
|
70
|
+
return typeof value === 'string' ? value : undefined;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Get a font token
|
|
74
|
+
*/
|
|
75
|
+
getFontToken(key) {
|
|
76
|
+
const value = this.getToken(`fonts.${key}`);
|
|
77
|
+
return typeof value === 'string' ? value : undefined;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Get a spacing token
|
|
81
|
+
*/
|
|
82
|
+
getSpacingToken(key) {
|
|
83
|
+
const value = this.getToken(`spacing.${key}`);
|
|
84
|
+
return typeof value === 'number' ? value : undefined;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Get a typography token
|
|
88
|
+
*/
|
|
89
|
+
getTypographyToken(key) {
|
|
90
|
+
return this.getToken(`typography.${key}`);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Get an effect token
|
|
94
|
+
*/
|
|
95
|
+
getEffectToken(key) {
|
|
96
|
+
return this.getToken(`effects.${key}`);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Resolve a theme reference (e.g., 'colors.primary' -> actual color value)
|
|
100
|
+
* This allows theme tokens to reference other theme tokens
|
|
101
|
+
*/
|
|
102
|
+
resolveToken(value) {
|
|
103
|
+
if (typeof value === 'string' && value.includes('.')) {
|
|
104
|
+
// Check if it's a theme reference
|
|
105
|
+
const resolved = this.getToken(value);
|
|
106
|
+
if (resolved !== undefined) {
|
|
107
|
+
// Recursively resolve in case of nested references
|
|
108
|
+
return typeof resolved === 'string' && resolved.includes('.')
|
|
109
|
+
? this.resolveToken(resolved)
|
|
110
|
+
: resolved;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Listen for theme changes
|
|
117
|
+
*/
|
|
118
|
+
onThemeChange(listener) {
|
|
119
|
+
this.listeners.push(listener);
|
|
120
|
+
// Return unsubscribe function
|
|
121
|
+
return () => {
|
|
122
|
+
const index = this.listeners.indexOf(listener);
|
|
123
|
+
if (index > -1) {
|
|
124
|
+
this.listeners.splice(index, 1);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Get all registered theme names
|
|
130
|
+
*/
|
|
131
|
+
getRegisteredThemes() {
|
|
132
|
+
return Array.from(this.registeredThemes.keys());
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Create a new theme based on the current one with overrides
|
|
136
|
+
*/
|
|
137
|
+
extendCurrentTheme(overrides) {
|
|
138
|
+
return { ...this.currentTheme, ...overrides };
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Reset to default theme
|
|
142
|
+
*/
|
|
143
|
+
reset() {
|
|
144
|
+
const defaultTheme = this.registeredThemes.get('default');
|
|
145
|
+
if (defaultTheme) {
|
|
146
|
+
this.currentTheme = defaultTheme;
|
|
147
|
+
this.notifyListeners();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
notifyListeners() {
|
|
151
|
+
this.listeners.forEach(listener => listener(this.currentTheme));
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Helper method to get nested values using dot notation
|
|
155
|
+
* @param obj - The object to search in
|
|
156
|
+
* @param path - The dot notation path (e.g., 'colors.primary')
|
|
157
|
+
* @returns The value at the path or undefined
|
|
158
|
+
*/
|
|
159
|
+
getNestedValue(obj, path) {
|
|
160
|
+
return path.split('.').reduce((current, key) => {
|
|
161
|
+
return current && typeof current === 'object'
|
|
162
|
+
? current[key]
|
|
163
|
+
: undefined;
|
|
164
|
+
}, obj);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
// Export singleton instance
|
|
168
|
+
export const ThemeManager = new ThemeManagerClass();
|
|
169
|
+
// Type helper for creating themes with proper typing
|
|
170
|
+
export const createTheme = (theme) => theme;
|
|
171
|
+
//# sourceMappingURL=theme-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-manager.js","sourceRoot":"","sources":["../../src/theme/theme-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,GAGlB,MAAM,gBAAgB,CAA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CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACK,cAAc,CAAC,GAAY,EAAE,IAAY;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE;YAC7C,OAAO,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ;gBAC3C,CAAC,CAAE,OAAmC,CAAC,GAAG,CAAC;gBAC3C,CAAC,CAAC,SAAS,CAAC;QAChB,CAAC,EAAE,GAAG,CAAC,CAAC;IACV,CAAC;CACF;AAED,4BAA4B;AAC5B,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,iBAAiB,EAAE,CAAC;AAEpD,qDAAqD;AACrD,MAAM,CAAC,MAAM,WAAW,GAAG,CAA4B,KAAQ,EAAK,EAAE,CAAC,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/theme/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../src/theme/type.ts"],"names":[],"mappings":""}
|