myshell-react-lib 0.1.79 → 0.1.80
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.cjs +34 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -16
- package/dist/index.d.ts +17 -16
- package/dist/index.js +34 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/global.scss +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4824,8 +4824,40 @@ var Icon = React.forwardRef(function(props, ref) {
|
|
|
4824
4824
|
"rotate",
|
|
4825
4825
|
"className"
|
|
4826
4826
|
]);
|
|
4827
|
-
|
|
4828
|
-
|
|
4827
|
+
if (!component) {
|
|
4828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", _object_spread_props(_object_spread({
|
|
4829
|
+
ref: ref
|
|
4830
|
+
}, passProps), {
|
|
4831
|
+
className: cn(iconVariants({
|
|
4832
|
+
size: size,
|
|
4833
|
+
color: color,
|
|
4834
|
+
rotate: rotate
|
|
4835
|
+
}), className),
|
|
4836
|
+
children: children
|
|
4837
|
+
}));
|
|
4838
|
+
}
|
|
4839
|
+
if (typeof component === "function") {
|
|
4840
|
+
var isReactComponent = "displayName" in component || component.name && /^[A-Z]/.test(component.name);
|
|
4841
|
+
if (!isReactComponent) {
|
|
4842
|
+
try {
|
|
4843
|
+
var iconElement = component();
|
|
4844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", _object_spread_props(_object_spread({
|
|
4845
|
+
ref: ref
|
|
4846
|
+
}, passProps), {
|
|
4847
|
+
className: cn(iconVariants({
|
|
4848
|
+
size: size,
|
|
4849
|
+
color: color,
|
|
4850
|
+
rotate: rotate
|
|
4851
|
+
}), className),
|
|
4852
|
+
children: iconElement || children
|
|
4853
|
+
}));
|
|
4854
|
+
} catch (error) {
|
|
4855
|
+
console.error("Error rendering icon component as a function", error);
|
|
4856
|
+
}
|
|
4857
|
+
}
|
|
4858
|
+
}
|
|
4859
|
+
var Component = component;
|
|
4860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, _object_spread_props(_object_spread({
|
|
4829
4861
|
ref: ref
|
|
4830
4862
|
}, passProps), {
|
|
4831
4863
|
className: cn(iconVariants({
|