@ctlyst.id/internal-ui 5.4.2 → 5.4.4
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 +9 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -868,11 +868,14 @@ var CheckboxComponent = (0, import_react13.forwardRef)(
|
|
868
868
|
throttle((val) => setIsChecked(val), throttleTime),
|
869
869
|
[]
|
870
870
|
);
|
871
|
-
const handleOnChange = (0, import_react14.useCallback)(
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
871
|
+
const handleOnChange = (0, import_react14.useCallback)(
|
872
|
+
(event) => {
|
873
|
+
if (throttleTime) throttleFn(event.target.checked);
|
874
|
+
else setIsChecked(event.target.checked);
|
875
|
+
if (rest.onChange) rest.onChange(event);
|
876
|
+
},
|
877
|
+
[rest.onChange]
|
878
|
+
);
|
876
879
|
const variant = isError ? "errors" : "unstyled";
|
877
880
|
const renderIcon2 = () => {
|
878
881
|
if (state.isChecked) return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon.Check, { size: 3, color: "inherit" });
|
@@ -6296,7 +6299,7 @@ var Uploader = ({
|
|
6296
6299
|
alt: "uploader-preview",
|
6297
6300
|
objectFit: "contain"
|
6298
6301
|
}
|
6299
|
-
) : filePreview
|
6302
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react93.Text, { noOfLines: 3, mx: 2, textAlign: "center", children: filePreview })
|
6300
6303
|
}
|
6301
6304
|
) }),
|
6302
6305
|
!filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react93.Text, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react93.Flex, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
|