myshell-react-lib 0.1.77 → 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 +35 -3
- 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 +35 -3
- 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({
|
|
@@ -6776,7 +6808,7 @@ var badgeVariants = (0, import_class_variance_authority7.cva)("rounded-full flex
|
|
|
6776
6808
|
public: "w-2.5 h-2.5 bg-Colors-Utit border-[2px] bg-Colors-Utility-Lake-Blue-50 border-Colors-Utility-Lake-Blue-10",
|
|
6777
6809
|
private: "w-2.5 h-2.5 bg-Colors-Utility-Khaki-50 border-Colors-Utility-Khaki-10 border-[2px]",
|
|
6778
6810
|
hidden: "w-2.5 h-2.5 bg-Colors-Utility-Gray-40 border-Colors-Utility-Gray-10 border-[2px]",
|
|
6779
|
-
new: "w-9 h-4.5 flex juctify-center items-center bg-Colors-Foreground-Critical-Default px-1
|
|
6811
|
+
new: "w-9 h-4.5 flex juctify-center items-center bg-Colors-Foreground-Critical-Default px-1"
|
|
6780
6812
|
}
|
|
6781
6813
|
},
|
|
6782
6814
|
defaultVariants: {
|