ingeniuscliq-core 0.3.8 → 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.
@@ -1,2 +1,2 @@
1
1
  import { CoreDesignTemplate } from '../types/ui/template';
2
- export declare const getTemplateStyles: (template?: CoreDesignTemplate) => {} | undefined;
2
+ export declare const getTemplateStyles: (template?: CoreDesignTemplate) => Record<string, string>;
package/dist/index.js CHANGED
@@ -1788,15 +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) => e == null ? void 0 : e.styles.reduce((t, n) => {
1792
- var r;
1793
- return {
1794
- ...t,
1795
- ...Object.fromEntries(
1796
- (r = n.colorProperties) == null ? void 0 : r.map((o) => [o.key, o.value])
1797
- )
1798
- };
1799
- }, {});
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
+ };
1800
1801
  function z5(e) {
1801
1802
  return !e || typeof e != "string" ? e : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
1802
1803
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",