@ctlyst.id/internal-ui 4.0.2 → 4.0.3
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 +18 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -4934,12 +4934,20 @@ var InputOption = ({
|
|
4934
4934
|
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4935
4935
|
import_react74.Checkbox,
|
4936
4936
|
{
|
4937
|
+
onClick: (e) => e.stopPropagation(),
|
4937
4938
|
isChecked: checkedState === CHECKBOX_STATE.CHECKED,
|
4938
4939
|
isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
|
4939
4940
|
isDisabled,
|
4940
4941
|
"data-test-id": "CT_component_select-checkbox_select-all-option"
|
4941
4942
|
}
|
4942
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4943
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4944
|
+
import_react74.Checkbox,
|
4945
|
+
{
|
4946
|
+
onClick: (e) => e.stopPropagation(),
|
4947
|
+
isChecked: isSelected,
|
4948
|
+
"data-test-id": "CT_component_select-checkbox_option-checkbox"
|
4949
|
+
}
|
4950
|
+
),
|
4943
4951
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react74.Text, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
|
4944
4952
|
]
|
4945
4953
|
}
|
@@ -5616,6 +5624,7 @@ var TimeInput2 = (0, import_react85.forwardRef)(
|
|
5616
5624
|
|
5617
5625
|
// src/components/toast/components/toast.tsx
|
5618
5626
|
var import_react88 = require("@chakra-ui/react");
|
5627
|
+
var import_internal_icon11 = require("@ctlyst.id/internal-icon");
|
5619
5628
|
var import_react_toastify = require("react-toastify");
|
5620
5629
|
|
5621
5630
|
// src/components/toast/components/styles.tsx
|
@@ -5655,6 +5664,10 @@ var styles_default2 = Styles2;
|
|
5655
5664
|
|
5656
5665
|
// src/components/toast/components/toast.tsx
|
5657
5666
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
5667
|
+
var CustomCloseButton = (props) => {
|
5668
|
+
const { closeToast } = props;
|
5669
|
+
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" }) });
|
5670
|
+
};
|
5658
5671
|
var DEFAULT_OPTIONS = {
|
5659
5672
|
position: "top-right",
|
5660
5673
|
autoClose: 5e3,
|
@@ -5664,7 +5677,7 @@ var DEFAULT_OPTIONS = {
|
|
5664
5677
|
draggable: true,
|
5665
5678
|
icon: false,
|
5666
5679
|
theme: "colored",
|
5667
|
-
closeButton:
|
5680
|
+
closeButton: CustomCloseButton,
|
5668
5681
|
className: "container-toast",
|
5669
5682
|
transition: import_react_toastify.Bounce
|
5670
5683
|
};
|
@@ -5773,7 +5786,7 @@ var import_react_toastify2 = require("react-toastify");
|
|
5773
5786
|
|
5774
5787
|
// src/components/uploader/components/uploader.tsx
|
5775
5788
|
var import_react89 = require("@chakra-ui/react");
|
5776
|
-
var
|
5789
|
+
var import_internal_icon12 = require("@ctlyst.id/internal-icon");
|
5777
5790
|
var import_react90 = require("react");
|
5778
5791
|
var import_react_dropzone = require("react-dropzone");
|
5779
5792
|
|
@@ -6020,7 +6033,7 @@ var Uploader = ({
|
|
6020
6033
|
border: "none",
|
6021
6034
|
zIndex: 1,
|
6022
6035
|
onClick: handleRemove,
|
6023
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6036
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_internal_icon12.Close, { size: 3, color: "white" })
|
6024
6037
|
}
|
6025
6038
|
) }),
|
6026
6039
|
filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react89.Box, { w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
@@ -6042,7 +6055,7 @@ var Uploader = ({
|
|
6042
6055
|
}
|
6043
6056
|
) }),
|
6044
6057
|
!filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react89.Text, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react89.Flex, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
|
6045
|
-
size2 === "sm" && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6058
|
+
size2 === "sm" && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_internal_icon12.Plus, { size: 6, color }),
|
6046
6059
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react89.Box, { children: [
|
6047
6060
|
!filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6048
6061
|
import_react89.Heading,
|