@ctlyst.id/internal-ui 4.1.0 → 4.1.2
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.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -4731,16 +4731,16 @@ var InputOption = ({
|
|
4731
4731
|
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ jsx57(
|
4732
4732
|
Checkbox3,
|
4733
4733
|
{
|
4734
|
-
onClick: (e) => e.stopPropagation(),
|
4735
4734
|
isChecked: checkedState === CHECKBOX_STATE.CHECKED,
|
4736
4735
|
isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
|
4737
4736
|
isDisabled,
|
4737
|
+
pointerEvents: "none",
|
4738
4738
|
"data-test-id": "CT_component_select-checkbox_select-all-option"
|
4739
4739
|
}
|
4740
4740
|
) : /* @__PURE__ */ jsx57(
|
4741
4741
|
Checkbox3,
|
4742
4742
|
{
|
4743
|
-
|
4743
|
+
pointerEvents: "none",
|
4744
4744
|
isChecked: isSelected,
|
4745
4745
|
"data-test-id": "CT_component_select-checkbox_option-checkbox"
|
4746
4746
|
}
|
@@ -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]
|