@ctlyst.id/internal-ui 4.1.0 → 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
@@ -4935,16 +4935,16 @@ var InputOption = ({
4935
4935
  (data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4936
4936
  import_react74.Checkbox,
4937
4937
  {
4938
- onClick: (e) => e.stopPropagation(),
4939
4938
  isChecked: checkedState === CHECKBOX_STATE.CHECKED,
4940
4939
  isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
4941
4940
  isDisabled,
4941
+ pointerEvents: "none",
4942
4942
  "data-test-id": "CT_component_select-checkbox_select-all-option"
4943
4943
  }
4944
4944
  ) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4945
4945
  import_react74.Checkbox,
4946
4946
  {
4947
- onClick: (e) => e.stopPropagation(),
4947
+ pointerEvents: "none",
4948
4948
  isChecked: isSelected,
4949
4949
  "data-test-id": "CT_component_select-checkbox_option-checkbox"
4950
4950
  }
@@ -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]