@sellgar/kit 0.0.151 → 0.0.153

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 CHANGED
@@ -2225,7 +2225,10 @@ import './index.css';const Pm = "_wrapper_y5p8d_1", ct = {
2225
2225
  typhoonLine: "typhoon-line",
2226
2226
  windyFill: "windy-fill",
2227
2227
  windyLine: "windy-line"
2228
- }, zm = (e) => /* @__PURE__ */ s.createElement("span", { className: "icon-" + e.icon }), Fe = Object.assign(zm, { ...$m }), Im = "_wrapper_bigne_1", Am = "_label_bigne_8", Ym = "_stroke_bigne_176", Wm = "_disabled_bigne_180", Ce = {
2228
+ }, zm = (e) => {
2229
+ const t = s.useMemo(() => oe("icon-" + e.icon, e.className), [e.className, e.icon]);
2230
+ return /* @__PURE__ */ s.createElement("span", { className: t });
2231
+ }, Fe = Object.assign(zm, { ...$m }), Im = "_wrapper_bigne_1", Am = "_label_bigne_8", Ym = "_stroke_bigne_176", Wm = "_disabled_bigne_180", Ce = {
2229
2232
  wrapper: Im,
2230
2233
  label: Am,
2231
2234
  "lead-icon": "_lead-icon_bigne_9",
@@ -12918,7 +12921,7 @@ const tk = "_wrapper_txfvj_1", nk = "_container_txfvj_9", Ji = {
12918
12921
  }), y0 = "_spin_1uson_1", w0 = {
12919
12922
  spin: y0
12920
12923
  }, _0 = () => null, F0 = (e) => s.Children.map(e.children, (t) => {
12921
- if (console.log(123, s.isValidElement(t), t), s.isValidElement(t)) {
12924
+ if (s.isValidElement(t)) {
12922
12925
  const n = t;
12923
12926
  return s.cloneElement(n, {
12924
12927
  className: oe(w0.spin, n.props.className)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sellgar/kit",
3
3
  "type": "module",
4
- "version": "0.0.151",
4
+ "version": "0.0.153",
5
5
  "description": "Sellgar kit",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { iconName, TIconName } from './icon.types.ts';
3
3
  interface IProps {
4
+ className?: string;
4
5
  icon: TIconName;
5
6
  }
6
7
  export declare const IconComponent: React.FC<IProps>;