myshell-react-lib 0.1.80 → 0.1.81

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 CHANGED
@@ -4824,40 +4824,8 @@ var Icon = React.forwardRef(function(props, ref) {
4824
4824
  "rotate",
4825
4825
  "className"
4826
4826
  ]);
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({
4827
+ var Com = component || "span";
4828
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Com, _object_spread_props(_object_spread({
4861
4829
  ref: ref
4862
4830
  }, passProps), {
4863
4831
  className: cn(iconVariants({