myshell-react-lib 0.1.80 → 0.1.82
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 +6 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -17
- package/dist/index.d.ts +16 -17
- package/dist/index.js +6 -34
- package/dist/index.js.map +1 -1
- package/dist/styles/global.scss +2 -4
- package/package.json +1 -1
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
|
-
|
|
4828
|
-
|
|
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({
|
|
@@ -8812,6 +8780,10 @@ var Modal = function(_param) {
|
|
|
8812
8780
|
onOpenAutoFocus: function(e) {
|
|
8813
8781
|
!autoFocus && e.preventDefault();
|
|
8814
8782
|
},
|
|
8783
|
+
onPointerDownOutside: function(e) {
|
|
8784
|
+
return e.preventDefault();
|
|
8785
|
+
},
|
|
8786
|
+
tabIndex: void 0,
|
|
8815
8787
|
children: [
|
|
8816
8788
|
isNotification ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, {
|
|
8817
8789
|
children: [
|