@ctlyst.id/internal-ui 4.1.1 → 4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -5536,7 +5536,7 @@ var styles_default2 = Styles2;
|
|
5536
5536
|
import { Fragment as Fragment11, jsx as jsx65, jsxs as jsxs30 } from "react/jsx-runtime";
|
5537
5537
|
var CustomCloseButton = (props) => {
|
5538
5538
|
const { closeToast } = props;
|
5539
|
-
return /* @__PURE__ */ jsx65(Box30, { p: 2, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: closeToast, children: /* @__PURE__ */ jsx65(Close6, { size: 4, color: "white" }) });
|
5539
|
+
return /* @__PURE__ */ jsx65(Box30, { p: 2, mb: 1, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: closeToast, children: /* @__PURE__ */ jsx65(Close6, { size: 4, color: "white" }) });
|
5540
5540
|
};
|
5541
5541
|
var DEFAULT_OPTIONS = {
|
5542
5542
|
position: "top-right",
|
@@ -5570,7 +5570,7 @@ var useToast = () => {
|
|
5570
5570
|
const content = (icon, message, link) => {
|
5571
5571
|
return /* @__PURE__ */ jsxs30(Fragment11, { children: [
|
5572
5572
|
/* @__PURE__ */ jsx65(styles_default2, {}),
|
5573
|
-
/* @__PURE__ */ jsxs30(Flex18, { justifyContent: "space-between", alignItems: "center", gap: 4, children: [
|
5573
|
+
/* @__PURE__ */ jsxs30(Flex18, { justifyContent: "space-between", alignItems: "center", gap: 4, mb: 1, children: [
|
5574
5574
|
/* @__PURE__ */ jsxs30(Flex18, { alignItems: "center", children: [
|
5575
5575
|
icon && /* @__PURE__ */ jsx65(chakra7.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
|
5576
5576
|
/* @__PURE__ */ jsx65(chakra7.span, { noOfLines: 2, children: message })
|
@@ -5760,7 +5760,6 @@ var Uploader = ({
|
|
5760
5760
|
customValidation,
|
5761
5761
|
value,
|
5762
5762
|
isShowCloseButton = true,
|
5763
|
-
isClosableToast,
|
5764
5763
|
testId,
|
5765
5764
|
isError,
|
5766
5765
|
errorText,
|
@@ -5776,9 +5775,7 @@ var Uploader = ({
|
|
5776
5775
|
if (onHandleRejections) {
|
5777
5776
|
onHandleRejections(file, image);
|
5778
5777
|
}
|
5779
|
-
return toast2.error(message
|
5780
|
-
closeButton: isClosableToast
|
5781
|
-
});
|
5778
|
+
return toast2.error(message);
|
5782
5779
|
},
|
5783
5780
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
5784
5781
|
[onHandleRejections]
|