vrfi-design-system 1.1.85 → 1.1.86
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/main.es.js +5 -2
- package/dist/main.umd.js +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -53957,7 +53957,7 @@ const tC = ({
|
|
|
53957
53957
|
verificationStatusRevoked: Uie
|
|
53958
53958
|
};
|
|
53959
53959
|
function pDe(e) {
|
|
53960
|
-
const { verificationStatus: t } = e, r = ((a) => a ? a.toLowerCase().split("_").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join(" ") : "
|
|
53960
|
+
const { verificationStatus: t } = e, r = ((a) => a ? a.toLowerCase().split("_").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join(" ") : "-")(t), o = `verificationStatus${r.replace(/\s/g, "")}`;
|
|
53961
53961
|
return /* @__PURE__ */ B.jsx(
|
|
53962
53962
|
"span",
|
|
53963
53963
|
{
|
|
@@ -54437,7 +54437,10 @@ const xse = [".jpg", ".jpeg", ".png"], wse = ".pdf", xx = "Image Preview", ra =
|
|
|
54437
54437
|
PREVIEW_IMAGE: "preview-image",
|
|
54438
54438
|
PREVIEW_PDF: "preview-pdf",
|
|
54439
54439
|
DELETE_ICON: "delete-icon"
|
|
54440
|
-
}, eR = "Failed to fetch the particular resource !", Ese = "Upload", Cg = (e) =>
|
|
54440
|
+
}, eR = "Failed to fetch the particular resource !", Ese = "Upload", Cg = (e) => {
|
|
54441
|
+
const n = (e || "").toLowerCase().match(/\.[^.]+$/), r = n ? n[0] : "";
|
|
54442
|
+
return xse.includes(r) ? ur.IMAGE : r === wse ? ur.PDF : "unknown";
|
|
54443
|
+
}, EDe = (e) => {
|
|
54441
54444
|
const { visible: t, toggleVisiblity: n, fileName: r = "", url: o } = e, a = Cg(r), i = a === ur.PDF;
|
|
54442
54445
|
return /* @__PURE__ */ B.jsx(
|
|
54443
54446
|
_5,
|