kaleido-ui 0.1.7 → 0.1.8

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.
@@ -5197,8 +5197,7 @@ function DepositGeneratedView({
5197
5197
  setAddress,
5198
5198
  setRecipientId,
5199
5199
  setAmount,
5200
- setInvoiceStatus,
5201
- handleDone
5200
+ setInvoiceStatus
5202
5201
  }) {
5203
5202
  return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "space-y-3 animate-in fade-in zoom-in-95 duration-300", children: [
5204
5203
  (network === "lightning" || network === "arkade" && arkSubMode === "ark") && isBtc && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col gap-1.5 rounded-xl border border-white/8 bg-white/3 p-2.5", children: [
@@ -5343,36 +5342,24 @@ function DepositGeneratedView({
5343
5342
  ]
5344
5343
  }
5345
5344
  ),
5346
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5347
- NetworkInfoDisclosure,
5345
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex justify-center pt-1", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5346
+ "button",
5348
5347
  {
5349
- networks: network === "arkade" ? arkSubMode === "boarding" ? ["onchain", "arkade"] : ["arkade"] : [network]
5348
+ type: "button",
5349
+ onClick: () => {
5350
+ setAddress("");
5351
+ setRecipientId("");
5352
+ setAmount("");
5353
+ setInvoiceStatus(null);
5354
+ },
5355
+ className: "flex items-center justify-center gap-1.5 rounded-xl bg-primary/15 px-5 py-3 text-xs font-bold text-primary transition-all hover:bg-primary/25 active:scale-[0.98]",
5356
+ children: [
5357
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "material-symbols-outlined text-icon-sm", children: "refresh" }),
5358
+ "New ",
5359
+ network === "lightning" ? "Invoice" : "Address"
5360
+ ]
5350
5361
  }
5351
- ),
5352
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex gap-2.5 pt-1", children: [
5353
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5354
- "button",
5355
- {
5356
- type: "button",
5357
- onClick: () => {
5358
- setAddress("");
5359
- setRecipientId("");
5360
- setAmount("");
5361
- setInvoiceStatus(null);
5362
- },
5363
- className: "flex flex-1 items-center justify-center gap-1.5 rounded-xl border py-3 text-xs font-bold text-muted-foreground transition-all hover:border-border hover:bg-accent hover:text-white active:scale-[0.98]",
5364
- children: [
5365
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "material-symbols-outlined text-icon-sm", children: "refresh" }),
5366
- "New ",
5367
- network === "lightning" ? "Invoice" : "Address"
5368
- ]
5369
- }
5370
- ),
5371
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Button, { variant: "cta", onClick: handleDone, children: [
5372
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "material-symbols-outlined text-icon-sm", children: "check" }),
5373
- "Done"
5374
- ] })
5375
- ] })
5362
+ ) })
5376
5363
  ] });
5377
5364
  }
5378
5365
 
@@ -1130,9 +1130,14 @@ interface DepositGeneratedViewProps {
1130
1130
  setRecipientId: (value: string) => void;
1131
1131
  setAmount: (value: string) => void;
1132
1132
  setInvoiceStatus: (value: string | null) => void;
1133
- handleDone: () => void;
1133
+ /**
1134
+ * @deprecated Done button removed in v0.1.8 per the v1.0.0 wallet redesign;
1135
+ * users navigate away via the standard back button. Prop kept for source
1136
+ * compatibility — it is no longer invoked.
1137
+ */
1138
+ handleDone?: () => void;
1134
1139
  }
1135
- declare function DepositGeneratedView({ network, net, isBtc, address, addressLabel, recipientId, arkSubMode, invoiceStatus, isInvoicePending, isInvoicePaid, isInvoiceFailedOrExpired, amount, handleAmountChange, loading, copied, copyToClipboard, getUnitLabel, selectedAsset, maxDepositAmount, setAddress, setRecipientId, setAmount, setInvoiceStatus, handleDone, }: DepositGeneratedViewProps): react_jsx_runtime.JSX.Element;
1140
+ declare function DepositGeneratedView({ network, net, isBtc, address, addressLabel, recipientId, arkSubMode, invoiceStatus, isInvoicePending, isInvoicePaid, isInvoiceFailedOrExpired, amount, handleAmountChange, loading, copied, copyToClipboard, getUnitLabel, selectedAsset, maxDepositAmount, setAddress, setRecipientId, setAmount, setInvoiceStatus, }: DepositGeneratedViewProps): react_jsx_runtime.JSX.Element;
1136
1141
 
1137
1142
  interface DepositPreGenerationAsset {
1138
1143
  ticker?: string;
@@ -1130,9 +1130,14 @@ interface DepositGeneratedViewProps {
1130
1130
  setRecipientId: (value: string) => void;
1131
1131
  setAmount: (value: string) => void;
1132
1132
  setInvoiceStatus: (value: string | null) => void;
1133
- handleDone: () => void;
1133
+ /**
1134
+ * @deprecated Done button removed in v0.1.8 per the v1.0.0 wallet redesign;
1135
+ * users navigate away via the standard back button. Prop kept for source
1136
+ * compatibility — it is no longer invoked.
1137
+ */
1138
+ handleDone?: () => void;
1134
1139
  }
1135
- declare function DepositGeneratedView({ network, net, isBtc, address, addressLabel, recipientId, arkSubMode, invoiceStatus, isInvoicePending, isInvoicePaid, isInvoiceFailedOrExpired, amount, handleAmountChange, loading, copied, copyToClipboard, getUnitLabel, selectedAsset, maxDepositAmount, setAddress, setRecipientId, setAmount, setInvoiceStatus, handleDone, }: DepositGeneratedViewProps): react_jsx_runtime.JSX.Element;
1140
+ declare function DepositGeneratedView({ network, net, isBtc, address, addressLabel, recipientId, arkSubMode, invoiceStatus, isInvoicePending, isInvoicePaid, isInvoiceFailedOrExpired, amount, handleAmountChange, loading, copied, copyToClipboard, getUnitLabel, selectedAsset, maxDepositAmount, setAddress, setRecipientId, setAmount, setInvoiceStatus, }: DepositGeneratedViewProps): react_jsx_runtime.JSX.Element;
1136
1141
 
1137
1142
  interface DepositPreGenerationAsset {
1138
1143
  ticker?: string;
package/dist/web/index.js CHANGED
@@ -5042,8 +5042,7 @@ function DepositGeneratedView({
5042
5042
  setAddress,
5043
5043
  setRecipientId,
5044
5044
  setAmount,
5045
- setInvoiceStatus,
5046
- handleDone
5045
+ setInvoiceStatus
5047
5046
  }) {
5048
5047
  return /* @__PURE__ */ jsxs43("div", { className: "space-y-3 animate-in fade-in zoom-in-95 duration-300", children: [
5049
5048
  (network === "lightning" || network === "arkade" && arkSubMode === "ark") && isBtc && /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-1.5 rounded-xl border border-white/8 bg-white/3 p-2.5", children: [
@@ -5188,36 +5187,24 @@ function DepositGeneratedView({
5188
5187
  ]
5189
5188
  }
5190
5189
  ),
5191
- /* @__PURE__ */ jsx56(
5192
- NetworkInfoDisclosure,
5190
+ /* @__PURE__ */ jsx56("div", { className: "flex justify-center pt-1", children: /* @__PURE__ */ jsxs43(
5191
+ "button",
5193
5192
  {
5194
- networks: network === "arkade" ? arkSubMode === "boarding" ? ["onchain", "arkade"] : ["arkade"] : [network]
5193
+ type: "button",
5194
+ onClick: () => {
5195
+ setAddress("");
5196
+ setRecipientId("");
5197
+ setAmount("");
5198
+ setInvoiceStatus(null);
5199
+ },
5200
+ className: "flex items-center justify-center gap-1.5 rounded-xl bg-primary/15 px-5 py-3 text-xs font-bold text-primary transition-all hover:bg-primary/25 active:scale-[0.98]",
5201
+ children: [
5202
+ /* @__PURE__ */ jsx56("span", { className: "material-symbols-outlined text-icon-sm", children: "refresh" }),
5203
+ "New ",
5204
+ network === "lightning" ? "Invoice" : "Address"
5205
+ ]
5195
5206
  }
5196
- ),
5197
- /* @__PURE__ */ jsxs43("div", { className: "flex gap-2.5 pt-1", children: [
5198
- /* @__PURE__ */ jsxs43(
5199
- "button",
5200
- {
5201
- type: "button",
5202
- onClick: () => {
5203
- setAddress("");
5204
- setRecipientId("");
5205
- setAmount("");
5206
- setInvoiceStatus(null);
5207
- },
5208
- className: "flex flex-1 items-center justify-center gap-1.5 rounded-xl border py-3 text-xs font-bold text-muted-foreground transition-all hover:border-border hover:bg-accent hover:text-white active:scale-[0.98]",
5209
- children: [
5210
- /* @__PURE__ */ jsx56("span", { className: "material-symbols-outlined text-icon-sm", children: "refresh" }),
5211
- "New ",
5212
- network === "lightning" ? "Invoice" : "Address"
5213
- ]
5214
- }
5215
- ),
5216
- /* @__PURE__ */ jsxs43(Button, { variant: "cta", onClick: handleDone, children: [
5217
- /* @__PURE__ */ jsx56("span", { className: "material-symbols-outlined text-icon-sm", children: "check" }),
5218
- "Done"
5219
- ] })
5220
- ] })
5207
+ ) })
5221
5208
  ] });
5222
5209
  }
5223
5210
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaleido-ui",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "KaleidoSwap shared UI library — design tokens, web components (Tailwind + Radix), and React Native components extending WDK UI Kit",
5
5
  "license": "MIT",
6
6
  "type": "module",