@conboai/storybook.components 0.5.47 → 0.5.48

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.
@@ -8,6 +8,7 @@ interface ISvg {
8
8
  height?: number;
9
9
  fillOpacity?: string;
10
10
  className?: string;
11
+ customPaths?: string[];
11
12
  }
12
- declare function Svg({ fill, icon, width, height, fillOpacity, className }: ISvg): React.JSX.Element;
13
+ declare function Svg({ fill, icon, width, height, fillOpacity, className, customPaths }: ISvg): React.JSX.Element;
13
14
  export default Svg;
@@ -28914,31 +28914,31 @@ const UZ = {
28914
28914
  }
28915
28915
  }
28916
28916
  };
28917
- function Cn({ fill: e = "black", icon: t, width: n, height: r, fillOpacity: o, className: i }) {
28918
- const s = zZ[t], {
28919
- paths: l,
28920
- width: c,
28921
- height: u,
28922
- strokeWidth: d,
28923
- attributes: h
28924
- } = s, f = n || c, b = r || u;
28917
+ function Cn({ fill: e = "black", icon: t, width: n, height: r, fillOpacity: o, className: i, customPaths: s }) {
28918
+ const l = zZ[t], {
28919
+ paths: c,
28920
+ width: u,
28921
+ height: d,
28922
+ strokeWidth: h,
28923
+ attributes: f
28924
+ } = l, b = n || u, p = r || d;
28925
28925
  return /* @__PURE__ */ V.jsx(
28926
28926
  "svg",
28927
28927
  {
28928
- viewBox: `0 0 ${c} ${u}`,
28929
- width: f,
28930
- height: b,
28928
+ viewBox: `0 0 ${u} ${d}`,
28929
+ width: b,
28930
+ height: p,
28931
28931
  className: i,
28932
- children: l.map((p) => /* @__PURE__ */ V.jsx(
28932
+ children: (s || c).map((g) => /* @__PURE__ */ V.jsx(
28933
28933
  "path",
28934
28934
  {
28935
- d: p,
28936
- strokeWidth: d,
28935
+ d: g,
28936
+ strokeWidth: h,
28937
28937
  fillOpacity: o,
28938
- ...h,
28939
- ...d ? { stroke: e, fill: "transparent" } : { fill: e }
28938
+ ...f,
28939
+ ...h ? { stroke: e, fill: "transparent" } : { fill: e }
28940
28940
  },
28941
- p
28941
+ g
28942
28942
  ))
28943
28943
  }
28944
28944
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/storybook.components",
3
- "version": "0.5.47",
3
+ "version": "0.5.48",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [