@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 CHANGED
@@ -5677,7 +5677,7 @@ var styles_default2 = Styles2;
5677
5677
  var import_jsx_runtime65 = require("react/jsx-runtime");
5678
5678
  var CustomCloseButton = (props) => {
5679
5679
  const { closeToast } = props;
5680
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react88.Box, { p: 2, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_internal_icon11.Close, { size: 4, color: "white" }) });
5680
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react88.Box, { p: 2, mb: 1, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_internal_icon11.Close, { size: 4, color: "white" }) });
5681
5681
  };
5682
5682
  var DEFAULT_OPTIONS = {
5683
5683
  position: "top-right",
@@ -5711,7 +5711,7 @@ var useToast = () => {
5711
5711
  const content = (icon, message, link) => {
5712
5712
  return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
5713
5713
  /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(styles_default2, {}),
5714
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react88.Flex, { justifyContent: "space-between", alignItems: "center", gap: 4, children: [
5714
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react88.Flex, { justifyContent: "space-between", alignItems: "center", gap: 4, mb: 1, children: [
5715
5715
  /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react88.Flex, { alignItems: "center", children: [
5716
5716
  icon && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react88.chakra.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
5717
5717
  /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react88.chakra.span, { noOfLines: 2, children: message })
@@ -5889,7 +5889,6 @@ var Uploader = ({
5889
5889
  customValidation,
5890
5890
  value,
5891
5891
  isShowCloseButton = true,
5892
- isClosableToast,
5893
5892
  testId,
5894
5893
  isError,
5895
5894
  errorText,
@@ -5905,9 +5904,7 @@ var Uploader = ({
5905
5904
  if (onHandleRejections) {
5906
5905
  onHandleRejections(file, image);
5907
5906
  }
5908
- return toast2.error(message, {
5909
- closeButton: isClosableToast
5910
- });
5907
+ return toast2.error(message);
5911
5908
  },
5912
5909
  // eslint-disable-next-line react-hooks/exhaustive-deps
5913
5910
  [onHandleRejections]