@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.mjs
CHANGED
@@ -6093,6 +6093,10 @@ var Uploader = ({
|
|
6093
6093
|
if (typeof value === "string") {
|
6094
6094
|
setFilePreview(value);
|
6095
6095
|
} else {
|
6096
|
+
if (value.type === "image/heic") {
|
6097
|
+
setFilePreview(value.name);
|
6098
|
+
return;
|
6099
|
+
}
|
6096
6100
|
setFilePreview(URL.createObjectURL(value));
|
6097
6101
|
}
|
6098
6102
|
} else {
|
@@ -6163,7 +6167,7 @@ var Uploader = ({
|
|
6163
6167
|
alt: "uploader-preview",
|
6164
6168
|
objectFit: "contain"
|
6165
6169
|
}
|
6166
|
-
) : filePreview
|
6170
|
+
) : /* @__PURE__ */ jsx66(Text18, { noOfLines: 3, mx: 2, textAlign: "center", children: filePreview })
|
6167
6171
|
}
|
6168
6172
|
) }),
|
6169
6173
|
!filePreview && /* @__PURE__ */ jsx66(Fragment12, { children: isDragActive ? /* @__PURE__ */ jsx66(Text18, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ jsxs31(Flex19, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
|