hey-pharmacist-ecommerce 1.1.40 → 1.1.41
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.js +18 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/providers/ThemeProvider.tsx +23 -23
- package/src/styles/globals.css +43 -44
package/dist/index.js
CHANGED
|
@@ -243,20 +243,20 @@ function ThemeProvider({ config, children }) {
|
|
|
243
243
|
const secondaryShades = generateColorShades(config.colors.secondary);
|
|
244
244
|
const accentShades = generateColorShades(config.colors.accent);
|
|
245
245
|
const vars = [];
|
|
246
|
-
vars.push(`--
|
|
247
|
-
vars.push(`--
|
|
248
|
-
vars.push(`--
|
|
249
|
-
vars.push(`--
|
|
250
|
-
vars.push(`--
|
|
251
|
-
vars.push(`--
|
|
246
|
+
vars.push(`--hp-primary: ${config.colors.primary}`);
|
|
247
|
+
vars.push(`--hp-primary-dark: ${config.colors.primaryDark}`);
|
|
248
|
+
vars.push(`--hp-secondary: ${config.colors.secondary}`);
|
|
249
|
+
vars.push(`--hp-accent: ${config.colors.accent}`);
|
|
250
|
+
vars.push(`--hp-accent-dark: ${config.colors.accentDark}`);
|
|
251
|
+
vars.push(`--hp-text-muted: ${config.colors.textMuted}`);
|
|
252
252
|
Object.entries(primaryShades).forEach(([shade, rgb]) => {
|
|
253
|
-
vars.push(`--
|
|
253
|
+
vars.push(`--hp-primary-${shade}: ${rgb}`);
|
|
254
254
|
});
|
|
255
255
|
Object.entries(secondaryShades).forEach(([shade, rgb]) => {
|
|
256
|
-
vars.push(`--
|
|
256
|
+
vars.push(`--hp-secondary-${shade}: ${rgb}`);
|
|
257
257
|
});
|
|
258
258
|
Object.entries(accentShades).forEach(([shade, rgb]) => {
|
|
259
|
-
vars.push(`--
|
|
259
|
+
vars.push(`--hp-accent-${shade}: ${rgb}`);
|
|
260
260
|
});
|
|
261
261
|
return vars.join("; ");
|
|
262
262
|
}, [config.colors]);
|
|
@@ -265,20 +265,20 @@ function ThemeProvider({ config, children }) {
|
|
|
265
265
|
const primaryShades = generateColorShades(config.colors.primary);
|
|
266
266
|
const secondaryShades = generateColorShades(config.colors.secondary);
|
|
267
267
|
const accentShades = generateColorShades(config.colors.accent);
|
|
268
|
-
root.style.setProperty("--
|
|
269
|
-
root.style.setProperty("--
|
|
270
|
-
root.style.setProperty("--
|
|
271
|
-
root.style.setProperty("--
|
|
272
|
-
root.style.setProperty("--
|
|
273
|
-
root.style.setProperty("--
|
|
268
|
+
root.style.setProperty("--hp-primary", config.colors.primary);
|
|
269
|
+
root.style.setProperty("--hp-primary-dark", config.colors.primaryDark);
|
|
270
|
+
root.style.setProperty("--hp-secondary", config.colors.secondary);
|
|
271
|
+
root.style.setProperty("--hp-accent", config.colors.accent);
|
|
272
|
+
root.style.setProperty("--hp-accent-dark", config.colors.accentDark);
|
|
273
|
+
root.style.setProperty("--hp-text-muted", config.colors.textMuted);
|
|
274
274
|
Object.entries(primaryShades).forEach(([shade, rgb]) => {
|
|
275
|
-
root.style.setProperty(`--
|
|
275
|
+
root.style.setProperty(`--hp-primary-${shade}`, rgb);
|
|
276
276
|
});
|
|
277
277
|
Object.entries(secondaryShades).forEach(([shade, rgb]) => {
|
|
278
|
-
root.style.setProperty(`--
|
|
278
|
+
root.style.setProperty(`--hp-secondary-${shade}`, rgb);
|
|
279
279
|
});
|
|
280
280
|
Object.entries(accentShades).forEach(([shade, rgb]) => {
|
|
281
|
-
root.style.setProperty(`--
|
|
281
|
+
root.style.setProperty(`--hp-accent-${shade}`, rgb);
|
|
282
282
|
});
|
|
283
283
|
}, [config]);
|
|
284
284
|
return /* @__PURE__ */ jsxRuntime.jsxs(ThemeContext.Provider, { value: { config }, children: [
|