xertica-ui 1.2.3 → 1.2.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.
|
@@ -20,7 +20,8 @@ const BrandColorsContext = createContext<BrandColorsContextType | undefined>(und
|
|
|
20
20
|
|
|
21
21
|
export const BrandColorsProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
|
|
22
22
|
const [currentTheme, setCurrentTheme] = useState<string>(() => {
|
|
23
|
-
|
|
23
|
+
// Updated key to avoid conflicts with previous local storage
|
|
24
|
+
const saved = localStorage.getItem('xertica-theme-preference');
|
|
24
25
|
return saved || 'xertica-original';
|
|
25
26
|
});
|
|
26
27
|
|
|
@@ -175,7 +176,7 @@ export const BrandColorsProvider: React.FC<{ children: React.ReactNode }> = ({ c
|
|
|
175
176
|
);
|
|
176
177
|
|
|
177
178
|
// Save preferences
|
|
178
|
-
localStorage.setItem('
|
|
179
|
+
localStorage.setItem('xertica-theme-preference', currentTheme);
|
|
179
180
|
}, [colors, currentTheme, radius]);
|
|
180
181
|
|
|
181
182
|
// Aplicar cores quando elas mudarem
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xertica-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "Xertica UI - Design System completo com componentes React e Tailwind CSS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./dist/cli.js",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"build": "vite build",
|
|
10
10
|
"build:production": "npm run build",
|
|
11
11
|
"build:cli": "tsup bin/cli.ts --format esm --clean",
|
|
12
|
+
"prepublishOnly": "npm run build:production && npm run build:cli",
|
|
12
13
|
"preview": "vite preview",
|
|
13
14
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
14
15
|
"type-check": "tsc --noEmit"
|
|
@@ -116,4 +117,4 @@
|
|
|
116
117
|
"typescript": "^5.7.2",
|
|
117
118
|
"vite": "^6.0.5"
|
|
118
119
|
}
|
|
119
|
-
}
|
|
120
|
+
}
|