@ctlyst.id/internal-ui 5.4.1 → 5.4.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 +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -6222,6 +6222,10 @@ var Uploader = ({
|
|
6222
6222
|
if (typeof value === "string") {
|
6223
6223
|
setFilePreview(value);
|
6224
6224
|
} else {
|
6225
|
+
if (value.type === "image/heic") {
|
6226
|
+
setFilePreview(value.name);
|
6227
|
+
return;
|
6228
|
+
}
|
6225
6229
|
setFilePreview(URL.createObjectURL(value));
|
6226
6230
|
}
|
6227
6231
|
} else {
|
@@ -6292,7 +6296,7 @@ var Uploader = ({
|
|
6292
6296
|
alt: "uploader-preview",
|
6293
6297
|
objectFit: "contain"
|
6294
6298
|
}
|
6295
|
-
) : filePreview
|
6299
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react93.Text, { noOfLines: 3, mx: 2, textAlign: "center", children: filePreview })
|
6296
6300
|
}
|
6297
6301
|
) }),
|
6298
6302
|
!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: [
|