@fakhrirafiki/theme-engine 0.2.2 → 0.2.6
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/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +231 -65
- package/dist/index.mjs +231 -65
- package/package.json +5 -2
package/dist/index.d.mts
CHANGED
|
@@ -318,7 +318,7 @@ interface UnifiedThemeContextValue {
|
|
|
318
318
|
/** Current appearance mode setting */
|
|
319
319
|
mode: Mode;
|
|
320
320
|
/** Resolved appearance mode (never 'system') */
|
|
321
|
-
resolvedMode:
|
|
321
|
+
resolvedMode: "light" | "dark";
|
|
322
322
|
/** Change the appearance mode */
|
|
323
323
|
setMode: (mode: Mode) => void;
|
|
324
324
|
/** Toggle between light and dark modes with optional animation */
|
|
@@ -330,7 +330,7 @@ interface UnifiedThemeContextValue {
|
|
|
330
330
|
/** Human-readable preset name */
|
|
331
331
|
presetName: string;
|
|
332
332
|
/** Color values for light and dark modes */
|
|
333
|
-
colors: ThemePreset[
|
|
333
|
+
colors: ThemePreset["colors"];
|
|
334
334
|
/** Timestamp when preset was applied */
|
|
335
335
|
appliedAt: number;
|
|
336
336
|
} | null;
|
|
@@ -340,6 +340,8 @@ interface UnifiedThemeContextValue {
|
|
|
340
340
|
setThemePresetById: (presetId: string) => void;
|
|
341
341
|
/** Clear the current preset and revert to default colors */
|
|
342
342
|
clearPreset: () => void;
|
|
343
|
+
/** Whether the currently active preset matches the defaultPreset prop */
|
|
344
|
+
isUsingDefaultPreset: boolean;
|
|
343
345
|
/** Available presets (merged built-in + custom) */
|
|
344
346
|
availablePresets: Record<string, TweakCNThemePreset>;
|
|
345
347
|
/** Built-in presets only */
|
package/dist/index.d.ts
CHANGED
|
@@ -318,7 +318,7 @@ interface UnifiedThemeContextValue {
|
|
|
318
318
|
/** Current appearance mode setting */
|
|
319
319
|
mode: Mode;
|
|
320
320
|
/** Resolved appearance mode (never 'system') */
|
|
321
|
-
resolvedMode:
|
|
321
|
+
resolvedMode: "light" | "dark";
|
|
322
322
|
/** Change the appearance mode */
|
|
323
323
|
setMode: (mode: Mode) => void;
|
|
324
324
|
/** Toggle between light and dark modes with optional animation */
|
|
@@ -330,7 +330,7 @@ interface UnifiedThemeContextValue {
|
|
|
330
330
|
/** Human-readable preset name */
|
|
331
331
|
presetName: string;
|
|
332
332
|
/** Color values for light and dark modes */
|
|
333
|
-
colors: ThemePreset[
|
|
333
|
+
colors: ThemePreset["colors"];
|
|
334
334
|
/** Timestamp when preset was applied */
|
|
335
335
|
appliedAt: number;
|
|
336
336
|
} | null;
|
|
@@ -340,6 +340,8 @@ interface UnifiedThemeContextValue {
|
|
|
340
340
|
setThemePresetById: (presetId: string) => void;
|
|
341
341
|
/** Clear the current preset and revert to default colors */
|
|
342
342
|
clearPreset: () => void;
|
|
343
|
+
/** Whether the currently active preset matches the defaultPreset prop */
|
|
344
|
+
isUsingDefaultPreset: boolean;
|
|
343
345
|
/** Available presets (merged built-in + custom) */
|
|
344
346
|
availablePresets: Record<string, TweakCNThemePreset>;
|
|
345
347
|
/** Built-in presets only */
|