@retinalabsllc/zairusjs 15.0.45 → 15.0.55
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -5
- package/dist/index.mjs +7 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -234,6 +234,7 @@ var ThreeDActionButton = ({
|
|
|
234
234
|
disabled = false,
|
|
235
235
|
isLoading = false,
|
|
236
236
|
children,
|
|
237
|
+
style = {},
|
|
237
238
|
className = ""
|
|
238
239
|
}) => {
|
|
239
240
|
const isInteractionDisabled = disabled || isLoading;
|
|
@@ -273,7 +274,7 @@ var ThreeDActionButton = ({
|
|
|
273
274
|
${isInteractionDisabled ? "opacity-50 cursor-not-allowed" : "active:translate-y-0.5"}
|
|
274
275
|
${className}
|
|
275
276
|
`,
|
|
276
|
-
style: { boxShadow: isInteractionDisabled ? disabledShadow : baseShadow },
|
|
277
|
+
style: { boxShadow: isInteractionDisabled ? disabledShadow : baseShadow, ...style },
|
|
277
278
|
onMouseEnter: (e) => {
|
|
278
279
|
if (isInteractionDisabled) return;
|
|
279
280
|
e.currentTarget.style.boxShadow = hoverShadow;
|
|
@@ -1446,7 +1447,8 @@ var UniversalTransactionPage = ({
|
|
|
1446
1447
|
{
|
|
1447
1448
|
onClick: handleGenerateReceipt,
|
|
1448
1449
|
isLoading: isGeneratingReceipt,
|
|
1449
|
-
className: "
|
|
1450
|
+
className: "hidden",
|
|
1451
|
+
style: { display: "none" }
|
|
1450
1452
|
},
|
|
1451
1453
|
"Generate Receipt"
|
|
1452
1454
|
), /* @__PURE__ */ import_react23.default.createElement(
|
|
@@ -1947,7 +1949,7 @@ var UniversalWalletPage = ({
|
|
|
1947
1949
|
message: `Ensure you only send assets using the exact network specified. Minimum deposit is 15 ${selectedWallet.currency}. Sending funds through an unsupported network or under the minimum will result in permanent loss of funds.`,
|
|
1948
1950
|
isDismissible: false
|
|
1949
1951
|
}
|
|
1950
|
-
)), /* @__PURE__ */ import_react29.default.createElement("div", { className: "grid grid-cols-1 gap-y-6 gap-x-4 mb-10" }, /* @__PURE__ */ import_react29.default.createElement("div", null, /* @__PURE__ */ import_react29.default.createElement("span", { className: "text-[11px] tracking-[0.2em] text-neutral-400 block mb-2" }, "Wallet Address"), /* @__PURE__ */ import_react29.default.createElement("div", { className: "flex items-center gap-2 min-w-0" }, /* @__PURE__ */ import_react29.default.createElement("span", { className: "text-[13px] text-black truncate min-w-0 block" }, truncateAddress2(selectedWallet.address)), /* @__PURE__ */ import_react29.default.createElement("button", { type: "button", onClick: () => setShowCopyWarning(true), className: "text-neutral-400 hover:text-black transition-colors outline-none" }, /* @__PURE__ */ import_react29.default.createElement(import_react30.HugeiconsIcon, { icon: import_core_free_icons10.Copy01Icon, size: 14 })))), !external && /* @__PURE__ */ import_react29.default.createElement("div", null, /* @__PURE__ */ import_react29.default.createElement("span", { className: "text-[11px] tracking-[0.2em] text-neutral-400 block mb-2" }, "Wallet Status"), selectedWallet.isActive ? /* @__PURE__ */ import_react29.default.createElement("span", { className: "text-[13px] px-1.5 py-0.5 bg-emerald-50 text-emerald-600 " }, "Active on this device") : /* @__PURE__ */ import_react29.default.createElement("span", { className: "text-[13px] px-1.5 py-0.5 bg-red-50 text-red-600 " }, "Inactive - Requires Import"))), /* @__PURE__ */ import_react29.default.createElement("div", { className: "flex flex-col gap-3" }, /* @__PURE__ */ import_react29.default.createElement(
|
|
1952
|
+
)), /* @__PURE__ */ import_react29.default.createElement("div", { className: "grid grid-cols-1 gap-y-6 gap-x-4 mb-10" }, /* @__PURE__ */ import_react29.default.createElement("div", null, /* @__PURE__ */ import_react29.default.createElement("span", { className: "text-[11px] tracking-[0.2em] text-neutral-400 block mb-2" }, "Wallet Address"), /* @__PURE__ */ import_react29.default.createElement("div", { className: "flex items-center gap-2 min-w-0" }, /* @__PURE__ */ import_react29.default.createElement("span", { className: "text-[13px] text-black truncate min-w-0 block" }, truncateAddress2(selectedWallet.address)), /* @__PURE__ */ import_react29.default.createElement("button", { type: "button", onClick: () => setShowCopyWarning(true), className: "text-neutral-400 hover:text-black transition-colors outline-none" }, /* @__PURE__ */ import_react29.default.createElement(import_react30.HugeiconsIcon, { icon: import_core_free_icons10.Copy01Icon, size: 14 })))), !external && /* @__PURE__ */ import_react29.default.createElement("div", null, /* @__PURE__ */ import_react29.default.createElement("span", { className: "text-[11px] tracking-[0.2em] text-neutral-400 block mb-2" }, "Wallet Status"), selectedWallet.isActive ? /* @__PURE__ */ import_react29.default.createElement("span", { className: "text-[13px] px-1.5 py-0.5 bg-emerald-50 text-emerald-600 " }, "Active on this device") : /* @__PURE__ */ import_react29.default.createElement("span", { className: "text-[13px] px-1.5 py-0.5 bg-red-50 text-red-600 " }, "Inactive - Requires Import"))), /* @__PURE__ */ import_react29.default.createElement("div", { className: "flex flex-col gap-3" }, /* @__PURE__ */ import_react29.default.createElement("button", { type: "button", onClick: () => setShowCopyWarning(true), className: "w-full flex items-center justify-center py-2.5 rounded-full border border-neutral-200 text-black hover:bg-neutral-50 outline-none text-xs tracking-wide transition-colors" }, "Copy Wallet Address"))))), selectedWallet && /* @__PURE__ */ import_react29.default.createElement(
|
|
1951
1953
|
ConfirmationDialog,
|
|
1952
1954
|
{
|
|
1953
1955
|
isOpen: showCopyWarning,
|
|
@@ -2017,7 +2019,7 @@ var UniversalCardPage = ({
|
|
|
2017
2019
|
className: "w-12 h-12 fill-neutral-100"
|
|
2018
2020
|
},
|
|
2019
2021
|
/* @__PURE__ */ import_react31.default.createElement("path", { fillRule: "evenodd", d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })
|
|
2020
|
-
)), /* @__PURE__ */ import_react31.default.createElement("h1", { className: "text-xl text-black tracking-tight mb-4" }, "No cards
|
|
2022
|
+
)), /* @__PURE__ */ import_react31.default.createElement("h1", { className: "text-xl text-black tracking-tight mb-4" }, "No cards available"), /* @__PURE__ */ import_react31.default.createElement("p", { className: "text-[13px] leading-[1.8] text-neutral-600 mb-12" }, "You do not have any virtual or physical cards generated yet.")));
|
|
2021
2023
|
}
|
|
2022
2024
|
const isActivated = activeCard.status === "ACTIVATED";
|
|
2023
2025
|
const isFrozen = activeCard.status === "FROZEN";
|
|
@@ -2054,7 +2056,7 @@ var UniversalCardPage = ({
|
|
|
2054
2056
|
const capitalizedType = card.type.charAt(0).toUpperCase() + card.type.slice(1).toLowerCase();
|
|
2055
2057
|
return `${capitalizedType}`;
|
|
2056
2058
|
};
|
|
2057
|
-
return /* @__PURE__ */ import_react31.default.createElement("div", { className: "w-full max-w-3xl mx-auto flex flex-col animate-in fade-in duration-300 relative" }, onCreateCard && /* @__PURE__ */ import_react31.default.createElement(
|
|
2059
|
+
return /* @__PURE__ */ import_react31.default.createElement("div", { className: "w-full max-w-3xl mx-auto flex flex-col animate-in fade-in duration-300 relative" }, /* @__PURE__ */ import_react31.default.createElement("h1", { className: "text-2xl mt-2 text-black tracking-tight mb-2 text-center" }, "My Cards"), onCreateCard && /* @__PURE__ */ import_react31.default.createElement(
|
|
2058
2060
|
"button",
|
|
2059
2061
|
{
|
|
2060
2062
|
onClick: onCreateCard,
|
package/dist/index.mjs
CHANGED
|
@@ -156,6 +156,7 @@ var ThreeDActionButton = ({
|
|
|
156
156
|
disabled = false,
|
|
157
157
|
isLoading = false,
|
|
158
158
|
children,
|
|
159
|
+
style = {},
|
|
159
160
|
className = ""
|
|
160
161
|
}) => {
|
|
161
162
|
const isInteractionDisabled = disabled || isLoading;
|
|
@@ -195,7 +196,7 @@ var ThreeDActionButton = ({
|
|
|
195
196
|
${isInteractionDisabled ? "opacity-50 cursor-not-allowed" : "active:translate-y-0.5"}
|
|
196
197
|
${className}
|
|
197
198
|
`,
|
|
198
|
-
style: { boxShadow: isInteractionDisabled ? disabledShadow : baseShadow },
|
|
199
|
+
style: { boxShadow: isInteractionDisabled ? disabledShadow : baseShadow, ...style },
|
|
199
200
|
onMouseEnter: (e) => {
|
|
200
201
|
if (isInteractionDisabled) return;
|
|
201
202
|
e.currentTarget.style.boxShadow = hoverShadow;
|
|
@@ -1393,7 +1394,8 @@ var UniversalTransactionPage = ({
|
|
|
1393
1394
|
{
|
|
1394
1395
|
onClick: handleGenerateReceipt,
|
|
1395
1396
|
isLoading: isGeneratingReceipt,
|
|
1396
|
-
className: "
|
|
1397
|
+
className: "hidden",
|
|
1398
|
+
style: { display: "none" }
|
|
1397
1399
|
},
|
|
1398
1400
|
"Generate Receipt"
|
|
1399
1401
|
), /* @__PURE__ */ React15.createElement(
|
|
@@ -1912,7 +1914,7 @@ var UniversalWalletPage = ({
|
|
|
1912
1914
|
message: `Ensure you only send assets using the exact network specified. Minimum deposit is 15 ${selectedWallet.currency}. Sending funds through an unsupported network or under the minimum will result in permanent loss of funds.`,
|
|
1913
1915
|
isDismissible: false
|
|
1914
1916
|
}
|
|
1915
|
-
)), /* @__PURE__ */ React18.createElement("div", { className: "grid grid-cols-1 gap-y-6 gap-x-4 mb-10" }, /* @__PURE__ */ React18.createElement("div", null, /* @__PURE__ */ React18.createElement("span", { className: "text-[11px] tracking-[0.2em] text-neutral-400 block mb-2" }, "Wallet Address"), /* @__PURE__ */ React18.createElement("div", { className: "flex items-center gap-2 min-w-0" }, /* @__PURE__ */ React18.createElement("span", { className: "text-[13px] text-black truncate min-w-0 block" }, truncateAddress2(selectedWallet.address)), /* @__PURE__ */ React18.createElement("button", { type: "button", onClick: () => setShowCopyWarning(true), className: "text-neutral-400 hover:text-black transition-colors outline-none" }, /* @__PURE__ */ React18.createElement(HugeiconsIcon12, { icon: Copy01Icon2, size: 14 })))), !external && /* @__PURE__ */ React18.createElement("div", null, /* @__PURE__ */ React18.createElement("span", { className: "text-[11px] tracking-[0.2em] text-neutral-400 block mb-2" }, "Wallet Status"), selectedWallet.isActive ? /* @__PURE__ */ React18.createElement("span", { className: "text-[13px] px-1.5 py-0.5 bg-emerald-50 text-emerald-600 " }, "Active on this device") : /* @__PURE__ */ React18.createElement("span", { className: "text-[13px] px-1.5 py-0.5 bg-red-50 text-red-600 " }, "Inactive - Requires Import"))), /* @__PURE__ */ React18.createElement("div", { className: "flex flex-col gap-3" }, /* @__PURE__ */ React18.createElement(
|
|
1917
|
+
)), /* @__PURE__ */ React18.createElement("div", { className: "grid grid-cols-1 gap-y-6 gap-x-4 mb-10" }, /* @__PURE__ */ React18.createElement("div", null, /* @__PURE__ */ React18.createElement("span", { className: "text-[11px] tracking-[0.2em] text-neutral-400 block mb-2" }, "Wallet Address"), /* @__PURE__ */ React18.createElement("div", { className: "flex items-center gap-2 min-w-0" }, /* @__PURE__ */ React18.createElement("span", { className: "text-[13px] text-black truncate min-w-0 block" }, truncateAddress2(selectedWallet.address)), /* @__PURE__ */ React18.createElement("button", { type: "button", onClick: () => setShowCopyWarning(true), className: "text-neutral-400 hover:text-black transition-colors outline-none" }, /* @__PURE__ */ React18.createElement(HugeiconsIcon12, { icon: Copy01Icon2, size: 14 })))), !external && /* @__PURE__ */ React18.createElement("div", null, /* @__PURE__ */ React18.createElement("span", { className: "text-[11px] tracking-[0.2em] text-neutral-400 block mb-2" }, "Wallet Status"), selectedWallet.isActive ? /* @__PURE__ */ React18.createElement("span", { className: "text-[13px] px-1.5 py-0.5 bg-emerald-50 text-emerald-600 " }, "Active on this device") : /* @__PURE__ */ React18.createElement("span", { className: "text-[13px] px-1.5 py-0.5 bg-red-50 text-red-600 " }, "Inactive - Requires Import"))), /* @__PURE__ */ React18.createElement("div", { className: "flex flex-col gap-3" }, /* @__PURE__ */ React18.createElement("button", { type: "button", onClick: () => setShowCopyWarning(true), className: "w-full flex items-center justify-center py-2.5 rounded-full border border-neutral-200 text-black hover:bg-neutral-50 outline-none text-xs tracking-wide transition-colors" }, "Copy Wallet Address"))))), selectedWallet && /* @__PURE__ */ React18.createElement(
|
|
1916
1918
|
ConfirmationDialog,
|
|
1917
1919
|
{
|
|
1918
1920
|
isOpen: showCopyWarning,
|
|
@@ -1990,7 +1992,7 @@ var UniversalCardPage = ({
|
|
|
1990
1992
|
className: "w-12 h-12 fill-neutral-100"
|
|
1991
1993
|
},
|
|
1992
1994
|
/* @__PURE__ */ React19.createElement("path", { fillRule: "evenodd", d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })
|
|
1993
|
-
)), /* @__PURE__ */ React19.createElement("h1", { className: "text-xl text-black tracking-tight mb-4" }, "No cards
|
|
1995
|
+
)), /* @__PURE__ */ React19.createElement("h1", { className: "text-xl text-black tracking-tight mb-4" }, "No cards available"), /* @__PURE__ */ React19.createElement("p", { className: "text-[13px] leading-[1.8] text-neutral-600 mb-12" }, "You do not have any virtual or physical cards generated yet.")));
|
|
1994
1996
|
}
|
|
1995
1997
|
const isActivated = activeCard.status === "ACTIVATED";
|
|
1996
1998
|
const isFrozen = activeCard.status === "FROZEN";
|
|
@@ -2027,7 +2029,7 @@ var UniversalCardPage = ({
|
|
|
2027
2029
|
const capitalizedType = card.type.charAt(0).toUpperCase() + card.type.slice(1).toLowerCase();
|
|
2028
2030
|
return `${capitalizedType}`;
|
|
2029
2031
|
};
|
|
2030
|
-
return /* @__PURE__ */ React19.createElement("div", { className: "w-full max-w-3xl mx-auto flex flex-col animate-in fade-in duration-300 relative" }, onCreateCard && /* @__PURE__ */ React19.createElement(
|
|
2032
|
+
return /* @__PURE__ */ React19.createElement("div", { className: "w-full max-w-3xl mx-auto flex flex-col animate-in fade-in duration-300 relative" }, /* @__PURE__ */ React19.createElement("h1", { className: "text-2xl mt-2 text-black tracking-tight mb-2 text-center" }, "My Cards"), onCreateCard && /* @__PURE__ */ React19.createElement(
|
|
2031
2033
|
"button",
|
|
2032
2034
|
{
|
|
2033
2035
|
onClick: onCreateCard,
|