@conboai/storybook.components 0.5.29 → 0.5.30

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.
@@ -7,6 +7,7 @@ interface ISvg {
7
7
  width?: number;
8
8
  height?: number;
9
9
  fillOpacity?: string;
10
+ className?: string;
10
11
  }
11
- declare function Svg({ fill, icon, width, height, fillOpacity }: ISvg): React.JSX.Element;
12
+ declare function Svg({ fill, icon, width, height, fillOpacity, className }: ISvg): React.JSX.Element;
12
13
  export default Svg;
@@ -28884,30 +28884,31 @@ const HZ = {
28884
28884
  }
28885
28885
  }
28886
28886
  };
28887
- function Cn({ fill: e = "black", icon: t, width: n, height: r, fillOpacity: o }) {
28888
- const i = UZ[t], {
28889
- paths: s,
28890
- width: l,
28891
- height: c,
28892
- strokeWidth: u,
28893
- attributes: d
28894
- } = i, h = n || l, f = r || c;
28887
+ function Cn({ fill: e = "black", icon: t, width: n, height: r, fillOpacity: o, className: i }) {
28888
+ const s = UZ[t], {
28889
+ paths: l,
28890
+ width: c,
28891
+ height: u,
28892
+ strokeWidth: d,
28893
+ attributes: h
28894
+ } = s, f = n || c, b = r || u;
28895
28895
  return /* @__PURE__ */ V.jsx(
28896
28896
  "svg",
28897
28897
  {
28898
- viewBox: `0 0 ${l} ${c}`,
28899
- width: h,
28900
- height: f,
28901
- children: s.map((b) => /* @__PURE__ */ V.jsx(
28898
+ viewBox: `0 0 ${c} ${u}`,
28899
+ width: f,
28900
+ height: b,
28901
+ className: i,
28902
+ children: l.map((p) => /* @__PURE__ */ V.jsx(
28902
28903
  "path",
28903
28904
  {
28904
- d: b,
28905
- strokeWidth: u,
28905
+ d: p,
28906
+ strokeWidth: d,
28906
28907
  fillOpacity: o,
28907
- ...d,
28908
- ...u ? { stroke: e, fill: "transparent" } : { fill: e }
28908
+ ...h,
28909
+ ...d ? { stroke: e, fill: "transparent" } : { fill: e }
28909
28910
  },
28910
- b
28911
+ p
28911
28912
  ))
28912
28913
  }
28913
28914
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/storybook.components",
3
- "version": "0.5.29",
3
+ "version": "0.5.30",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [