ingeniuscliq-core 0.3.7 → 0.3.9
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/helpers/template.d.ts +1 -1
- package/dist/index.js +10 -6
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CoreDesignTemplate } from '../types/ui/template';
|
|
2
|
-
export declare const getTemplateStyles: (template?: CoreDesignTemplate) =>
|
|
2
|
+
export declare const getTemplateStyles: (template?: CoreDesignTemplate) => Record<string, string>;
|
package/dist/index.js
CHANGED
|
@@ -1788,12 +1788,16 @@ const H5 = (e) => {
|
|
|
1788
1788
|
const r = decodeURIComponent(t);
|
|
1789
1789
|
e.headers && (e.headers["X-XSRF-TOKEN"] = r);
|
|
1790
1790
|
}
|
|
1791
|
-
}, M0 = (e) =>
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1791
|
+
}, M0 = (e) => {
|
|
1792
|
+
var t;
|
|
1793
|
+
return (t = e == null ? void 0 : e.styles) != null && t.length ? e.styles.reduce((n, r) => {
|
|
1794
|
+
if (!Array.isArray(r == null ? void 0 : r.colorProperties) || r.colorProperties.length === 0)
|
|
1795
|
+
return n;
|
|
1796
|
+
for (const { key: o, value: a } of r.colorProperties)
|
|
1797
|
+
n[o] = a;
|
|
1798
|
+
return n;
|
|
1799
|
+
}, {}) : {};
|
|
1800
|
+
};
|
|
1797
1801
|
function z5(e) {
|
|
1798
1802
|
return !e || typeof e != "string" ? e : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
|
|
1799
1803
|
}
|