@rash2x/bridge-widget 0.6.68 → 0.6.70

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.
@@ -4244,11 +4244,41 @@ const CircleLinedIcon = (props) => {
4244
4244
  const DevStatusControls = () => {
4245
4245
  const { current, updateStatus, setSrcHash, setError } = useTransactionStore();
4246
4246
  if (!current) return null;
4247
- return null;
4247
+ const statuses = [
4248
+ "executing",
4249
+ "approving",
4250
+ "processing",
4251
+ "completed",
4252
+ "failed"
4253
+ ];
4254
+ const handleStatusChange = (status) => {
4255
+ if (status === "failed") {
4256
+ setError("UNKNOWN_ERROR", { message: "Test error message" });
4257
+ } else {
4258
+ updateStatus(status);
4259
+ }
4260
+ if ((status === "processing" || status === "completed" || status === "failed") && !current.srcTxHash) {
4261
+ setSrcHash(
4262
+ "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
4263
+ );
4264
+ }
4265
+ };
4266
+ return /* @__PURE__ */ jsx("div", { className: "mt-5", children: /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1", children: statuses.map((status) => /* @__PURE__ */ jsx(
4267
+ Button,
4268
+ {
4269
+ size: "sm",
4270
+ variant: current.status === status ? "default" : "outline",
4271
+ onClick: () => handleStatusChange(status),
4272
+ className: "text-xs h-7 px-2",
4273
+ children: status
4274
+ },
4275
+ status
4276
+ )) }) });
4248
4277
  };
4249
4278
  const ProgressStep = ({
4250
4279
  icon = /* @__PURE__ */ jsx(Loader2, { className: "w-16 h-16 animate-spin" }),
4251
- isApproving = false
4280
+ isApproving = false,
4281
+ className
4252
4282
  }) => {
4253
4283
  const { t: t2 } = useBridgeTranslation();
4254
4284
  const { current } = useTransactionStore();
@@ -4256,7 +4286,13 @@ const ProgressStep = ({
4256
4286
  const srcTxHash = current?.tonTransactionHash || current?.srcTxHash;
4257
4287
  const steps = isApproving && currentStep ? [
4258
4288
  {
4259
- icon: /* @__PURE__ */ jsx(Loader2, { className: "w-5 h-5 text-primary animate-spin", strokeWidth: 3 }),
4289
+ icon: /* @__PURE__ */ jsx(
4290
+ Loader2,
4291
+ {
4292
+ className: "w-5 h-5 text-primary animate-spin",
4293
+ strokeWidth: 3
4294
+ }
4295
+ ),
4260
4296
  title: t2("transaction.steps.approving"),
4261
4297
  description: t2("transaction.steps.approvingNote", {
4262
4298
  current: currentStep.index + 1,
@@ -4277,7 +4313,13 @@ const ProgressStep = ({
4277
4313
  title: t2("transaction.steps.sent")
4278
4314
  },
4279
4315
  {
4280
- icon: /* @__PURE__ */ jsx(Loader2, { className: "w-5 h-5 text-primary animate-spin", strokeWidth: 3 }),
4316
+ icon: /* @__PURE__ */ jsx(
4317
+ Loader2,
4318
+ {
4319
+ className: "w-5 h-5 text-primary animate-spin",
4320
+ strokeWidth: 3
4321
+ }
4322
+ ),
4281
4323
  title: t2("transaction.steps.processing"),
4282
4324
  description: t2("transaction.steps.processingNote")
4283
4325
  },
@@ -4286,43 +4328,34 @@ const ProgressStep = ({
4286
4328
  title: t2("transaction.steps.completed")
4287
4329
  }
4288
4330
  ];
4289
- return /* @__PURE__ */ jsxs(DialogContent, { showCloseButton: false, className: "overflow-hidden md:max-w-[420px] p-0 fixed top-0 left-0 right-0 bottom-0 translate-x-0 translate-y-0 md:left-[50%] md:top-[50%] md:translate-x-[-50%] md:translate-y-[-50%] rounded-none md:rounded-lg", children: [
4290
- /* @__PURE__ */ jsxs("div", { className: "flex relative flex-col gap-6 flex-1 items-center justify-center md:justify-start text-center bg-background noise p-10", children: [
4291
- icon,
4292
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 pt-4 pb-2 text-center relative z-50", children: [
4293
- /* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.inProgress") }),
4294
- srcTxHash && /* @__PURE__ */ jsxs(
4295
- "a",
4296
- {
4297
- href: `https://layerzeroscan.com/tx/${srcTxHash}`,
4298
- target: "_blank",
4299
- rel: "noopener noreferrer",
4300
- className: "text-xs text-muted-foreground hover:text-foreground cursor-pointer underline hover:no-underline px-4 mt-1",
4301
- children: [
4302
- t2("transaction.hash"),
4303
- ": ",
4304
- formatHash(srcTxHash)
4305
- ]
4306
- }
4307
- )
4308
- ] }),
4309
- /* @__PURE__ */ jsxs("div", { className: "relative", children: [
4310
- /* @__PURE__ */ jsx("div", { className: "absolute left-5 top-5 bottom-5 border-l border-dashed border-foreground opacity-50" }),
4311
- /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-6 relative z-10", children: steps.map((step) => /* @__PURE__ */ jsxs(
4312
- "div",
4313
- {
4314
- className: "flex items-center gap-5 text-left",
4315
- children: [
4316
- /* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-full bg-muted flex items-center justify-center text-foreground shadow-inner", children: step.icon }),
4317
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
4318
- /* @__PURE__ */ jsx("span", { className: "text-base leading-5", children: step.title }),
4319
- step.description && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground leading-4", children: step.description })
4320
- ] })
4321
- ]
4322
- },
4323
- step.title
4324
- )) })
4325
- ] })
4331
+ return /* @__PURE__ */ jsxs(DialogContent, { showCloseButton: false, className, children: [
4332
+ icon,
4333
+ /* @__PURE__ */ jsxs(DialogHeader, { className: "relative z-10 p-0", children: [
4334
+ /* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.inProgress") }),
4335
+ srcTxHash && /* @__PURE__ */ jsxs(
4336
+ "a",
4337
+ {
4338
+ href: `https://layerzeroscan.com/tx/${srcTxHash}`,
4339
+ target: "_blank",
4340
+ rel: "noopener noreferrer",
4341
+ className: "text-xs text-muted-foreground hover:text-foreground cursor-pointer underline hover:no-underline px-4 mt-1",
4342
+ children: [
4343
+ t2("transaction.hash"),
4344
+ ": ",
4345
+ formatHash(srcTxHash)
4346
+ ]
4347
+ }
4348
+ )
4349
+ ] }),
4350
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
4351
+ /* @__PURE__ */ jsx("div", { className: "absolute left-5 top-5 bottom-5 border-l border-dashed border-foreground opacity-50" }),
4352
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-6 relative z-10", children: steps.map((step) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-5 text-left", children: [
4353
+ /* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-full bg-muted flex items-center justify-center text-foreground shadow-inner", children: step.icon }),
4354
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
4355
+ /* @__PURE__ */ jsx("span", { className: "text-base leading-5", children: step.title }),
4356
+ step.description && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground leading-4", children: step.description })
4357
+ ] })
4358
+ ] }, step.title)) })
4326
4359
  ] }),
4327
4360
  /* @__PURE__ */ jsx(DevStatusControls, {})
4328
4361
  ] });
@@ -4331,49 +4364,42 @@ const getLayerZeroScanUrl = (txHash) => {
4331
4364
  return `https://layerzeroscan.com/tx/${txHash}`;
4332
4365
  };
4333
4366
  const FailedStep = ({
4334
- icon = /* @__PURE__ */ jsx(AlertCircleIcon, { className: "w-16 h-16" })
4367
+ icon = /* @__PURE__ */ jsx(AlertCircleIcon, { className: "w-16 h-16" }),
4368
+ className
4335
4369
  }) => {
4336
4370
  const { current, reset } = useTransactionStore();
4337
4371
  const { t: t2 } = useBridgeTranslation();
4338
4372
  const srcTxHash = current?.tonTransactionHash || current?.srcTxHash;
4339
- return /* @__PURE__ */ jsxs(
4340
- DialogContent,
4341
- {
4342
- showCloseButton: true,
4343
- className: "overflow-hidden md:max-w-[420px] p-0 fixed top-0 left-0 right-0 bottom-0 translate-x-0 translate-y-0 md:left-[50%] md:top-[50%] md:translate-x-[-50%] md:translate-y-[-50%] rounded-none md:rounded-lg",
4344
- children: [
4345
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col relative gap-4 flex-1 items-center justify-center md:justify-start text-center noise p-10 pb-0", children: [
4346
- icon,
4347
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 pt-4 pb-2 text-center", children: [
4348
- /* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.failed") }),
4349
- current?.errorCode && /* @__PURE__ */ jsx(DialogDescription$1, { children: t2(
4350
- `errors.${current.errorCode}`,
4351
- current.errorParams || {}
4352
- ) }),
4353
- srcTxHash && /* @__PURE__ */ jsxs(
4354
- "a",
4355
- {
4356
- href: getLayerZeroScanUrl(srcTxHash),
4357
- target: "_blank",
4358
- rel: "noopener noreferrer",
4359
- className: "text-xs text-muted-foreground hover:text-foreground cursor-pointer underline hover:no-underline px-4 mt-2",
4360
- children: [
4361
- t2("transaction.hash"),
4362
- ": ",
4363
- formatHash(srcTxHash)
4364
- ]
4365
- }
4366
- )
4367
- ] })
4368
- ] }),
4369
- /* @__PURE__ */ jsx(DialogFooter, { className: "px-10 pb-10 ", children: /* @__PURE__ */ jsx(Button, { variant: "outline", className: "w-full min-w-40", onClick: reset, children: t2("common.close") }) }),
4370
- /* @__PURE__ */ jsx(DevStatusControls, {})
4371
- ]
4372
- }
4373
- );
4373
+ return /* @__PURE__ */ jsxs(DialogContent, { closeButtonClassName: "!absolute", showCloseButton: true, className, children: [
4374
+ icon,
4375
+ /* @__PURE__ */ jsxs(DialogHeader, { className: "relative z-10 p-0", children: [
4376
+ /* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.failed") }),
4377
+ current?.errorCode && /* @__PURE__ */ jsx(DialogDescription$1, { children: t2(
4378
+ `errors.${current.errorCode}`,
4379
+ current.errorParams || {}
4380
+ ) }),
4381
+ srcTxHash && /* @__PURE__ */ jsxs(
4382
+ "a",
4383
+ {
4384
+ href: getLayerZeroScanUrl(srcTxHash),
4385
+ target: "_blank",
4386
+ rel: "noopener noreferrer",
4387
+ className: "text-xs text-muted-foreground hover:text-foreground cursor-pointer underline hover:no-underline px-4 mt-2",
4388
+ children: [
4389
+ t2("transaction.hash"),
4390
+ ": ",
4391
+ formatHash(srcTxHash)
4392
+ ]
4393
+ }
4394
+ )
4395
+ ] }),
4396
+ /* @__PURE__ */ jsx(DialogFooter, { className: "w-full", children: /* @__PURE__ */ jsx(Button, { variant: "outline", className: "w-full min-w-40", onClick: reset, children: t2("common.close") }) }),
4397
+ /* @__PURE__ */ jsx(DevStatusControls, {})
4398
+ ] });
4374
4399
  };
4375
4400
  const SuccessStep = ({
4376
- icon = /* @__PURE__ */ jsx(CheckCircle2, { className: "w-16 h-16" })
4401
+ icon = /* @__PURE__ */ jsx(CheckCircle2, { className: "w-16 h-16" }),
4402
+ className
4377
4403
  }) => {
4378
4404
  const { current, reset } = useTransactionStore();
4379
4405
  const { t: t2 } = useBridgeTranslation();
@@ -4436,83 +4462,74 @@ const SuccessStep = ({
4436
4462
  finalFee,
4437
4463
  t2
4438
4464
  ]);
4439
- return /* @__PURE__ */ jsxs(
4440
- DialogContent,
4441
- {
4442
- showCloseButton: true,
4443
- className: "overflow-hidden md:max-w-[420px] p-0 fixed top-0 left-0 right-0 bottom-0 translate-x-0 translate-y-0 md:left-[50%] md:top-[50%] md:translate-x-[-50%] md:translate-y-[-50%] rounded-none md:rounded-lg",
4444
- children: [
4445
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 flex-1 justify-center md:justify-start items-center text-center bg-background noise p-10 pb-0", children: [
4446
- icon,
4447
- /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2 pt-4 text-center", children: /* @__PURE__ */ jsx(DialogTitle, { className: "text-[28px]", children: t2("transaction.success") }) }),
4448
- /* @__PURE__ */ jsxs("div", { className: "w-full space-y-2 mt-3 relative z-10 pb-14", children: [
4449
- metadata?.srcAmountHuman && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
4450
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t2("transaction.bridged") }),
4451
- /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 font-medium", children: [
4452
- formatBalance(metadata.srcAmountHuman, 2),
4453
- " ",
4454
- metadata?.srcTokenSymbol,
4455
- /* @__PURE__ */ jsx(
4456
- TokenSymbol,
4457
- {
4458
- className: "w-[18px] h-[18px]",
4459
- symbol: metadata?.srcTokenSymbol
4460
- }
4461
- )
4462
- ] })
4463
- ] }),
4464
- metadata?.srcChainName && metadata?.dstChainName && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
4465
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t2("transaction.transferTitle") }),
4466
- /* @__PURE__ */ jsxs("span", { className: "font-medium flex gap-1 items-center", children: [
4467
- /* @__PURE__ */ jsxs("span", { className: "inline-flex gap-1 items-center", children: [
4468
- metadata.srcChainName,
4469
- " ",
4470
- /* @__PURE__ */ jsx(
4471
- NetworkSymbol,
4472
- {
4473
- className: "w-[18px] h-[18px] rounded-full",
4474
- chainKey: metadata.srcChainName
4475
- }
4476
- )
4477
- ] }),
4478
- /* @__PURE__ */ jsx(ArrowRight, { className: "text-muted-foreground/50 size-4" }),
4479
- /* @__PURE__ */ jsxs("span", { className: "inline-flex gap-1 items-center", children: [
4480
- metadata.dstChainName,
4481
- " ",
4482
- /* @__PURE__ */ jsx(
4483
- NetworkSymbol,
4484
- {
4485
- className: "w-[18px] h-[18px] rounded-full",
4486
- chainKey: metadata.dstChainName
4487
- }
4488
- )
4489
- ] })
4490
- ] })
4491
- ] }),
4492
- srcTxHash && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
4493
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t2("transaction.hash") }),
4494
- /* @__PURE__ */ jsx(
4495
- "a",
4496
- {
4497
- href: `https://layerzeroscan.com/tx/${srcTxHash}`,
4498
- target: "_blank",
4499
- rel: "noopener noreferrer",
4500
- className: "font-medium cursor-pointer inline-flex items-center gap-1 underline hover:no-underline",
4501
- children: formatHash(srcTxHash)
4502
- }
4503
- )
4504
- ] }),
4505
- totalFee && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
4506
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: totalFee.label }),
4507
- /* @__PURE__ */ jsx("span", { className: "font-medium", children: totalFee.display })
4508
- ] })
4465
+ return /* @__PURE__ */ jsxs(DialogContent, { closeButtonClassName: "!absolute", showCloseButton: true, className, children: [
4466
+ icon,
4467
+ /* @__PURE__ */ jsx(DialogHeader, { className: "z-10 relative p-0", children: /* @__PURE__ */ jsx(DialogTitle, { className: "text-[28px]", children: t2("transaction.success") }) }),
4468
+ /* @__PURE__ */ jsxs("div", { className: "w-full space-y-2 mt-5 relative z-10 pb-14", children: [
4469
+ metadata?.srcAmountHuman && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
4470
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t2("transaction.bridged") }),
4471
+ /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 font-medium", children: [
4472
+ formatBalance(metadata.srcAmountHuman, 2),
4473
+ " ",
4474
+ metadata?.srcTokenSymbol,
4475
+ /* @__PURE__ */ jsx(
4476
+ TokenSymbol,
4477
+ {
4478
+ className: "w-[18px] h-[18px]",
4479
+ symbol: metadata?.srcTokenSymbol
4480
+ }
4481
+ )
4482
+ ] })
4483
+ ] }),
4484
+ metadata?.srcChainName && metadata?.dstChainName && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
4485
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t2("transaction.transferTitle") }),
4486
+ /* @__PURE__ */ jsxs("span", { className: "font-medium flex gap-1 items-center", children: [
4487
+ /* @__PURE__ */ jsxs("span", { className: "inline-flex gap-1 items-center", children: [
4488
+ metadata.srcChainName,
4489
+ " ",
4490
+ /* @__PURE__ */ jsx(
4491
+ NetworkSymbol,
4492
+ {
4493
+ className: "w-[18px] h-[18px] rounded-full",
4494
+ chainKey: metadata.srcChainName
4495
+ }
4496
+ )
4497
+ ] }),
4498
+ /* @__PURE__ */ jsx(ArrowRight, { className: "text-muted-foreground/50 size-4" }),
4499
+ /* @__PURE__ */ jsxs("span", { className: "inline-flex gap-1 items-center", children: [
4500
+ metadata.dstChainName,
4501
+ " ",
4502
+ /* @__PURE__ */ jsx(
4503
+ NetworkSymbol,
4504
+ {
4505
+ className: "w-[18px] h-[18px] rounded-full",
4506
+ chainKey: metadata.dstChainName
4507
+ }
4508
+ )
4509
4509
  ] })
4510
- ] }),
4511
- /* @__PURE__ */ jsx(DialogFooter, { className: "px-10 pb-10 pt-12", children: /* @__PURE__ */ jsx(Button, { onClick: reset, className: "w-full", children: t2("transaction.done") }) }),
4512
- /* @__PURE__ */ jsx(DevStatusControls, {})
4513
- ]
4514
- }
4515
- );
4510
+ ] })
4511
+ ] }),
4512
+ srcTxHash && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
4513
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t2("transaction.hash") }),
4514
+ /* @__PURE__ */ jsx(
4515
+ "a",
4516
+ {
4517
+ href: `https://layerzeroscan.com/tx/${srcTxHash}`,
4518
+ target: "_blank",
4519
+ rel: "noopener noreferrer",
4520
+ className: "font-medium cursor-pointer inline-flex items-center gap-1 underline hover:no-underline",
4521
+ children: formatHash(srcTxHash)
4522
+ }
4523
+ )
4524
+ ] }),
4525
+ totalFee && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
4526
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: totalFee.label }),
4527
+ /* @__PURE__ */ jsx("span", { className: "font-medium", children: totalFee.display })
4528
+ ] })
4529
+ ] }),
4530
+ /* @__PURE__ */ jsx(DialogFooter, { className: "w-full", children: /* @__PURE__ */ jsx(Button, { onClick: reset, className: "w-full", children: t2("transaction.done") }) }),
4531
+ /* @__PURE__ */ jsx(DevStatusControls, {})
4532
+ ] });
4516
4533
  };
4517
4534
  const useCountdown = (initialSeconds) => {
4518
4535
  const [time2, setTime] = useState(initialSeconds);
@@ -4532,19 +4549,18 @@ const useCountdown = (initialSeconds) => {
4532
4549
  };
4533
4550
  };
4534
4551
  const ConfirmStep = ({
4535
- icon = /* @__PURE__ */ jsx(Clock, { className: "w-16 h-16" })
4552
+ icon = /* @__PURE__ */ jsx(Clock, { className: "w-16 h-16" }),
4553
+ className
4536
4554
  }) => {
4537
4555
  const { t: t2 } = useBridgeTranslation();
4538
4556
  const { formatTime } = useCountdown(90);
4539
- return /* @__PURE__ */ jsxs(DialogContent, { className: "overflow-hidden md:max-w-[420px] p-0 fixed top-0 left-0 right-0 bottom-0 translate-x-0 translate-y-0 md:left-[50%] md:top-[50%] md:translate-x-[-50%] md:translate-y-[-50%] rounded-none md:rounded-lg", children: [
4540
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col relative gap-4 flex-1 items-center justify-center md:justify-start text-center noise p-10", children: [
4541
- icon,
4542
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 pt-4 pb-2 text-center", children: [
4543
- /* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.confirm") }),
4544
- /* @__PURE__ */ jsx(DialogDescription, { children: t2("transaction.signTransaction") })
4545
- ] }),
4546
- /* @__PURE__ */ jsx("div", { className: "text-3xl font-black relative z-10", children: formatTime })
4557
+ return /* @__PURE__ */ jsxs(DialogContent, { className, children: [
4558
+ icon,
4559
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 pt-4 pb-2 text-center relative z-10", children: [
4560
+ /* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.confirm") }),
4561
+ /* @__PURE__ */ jsx(DialogDescription, { children: t2("transaction.signTransaction") })
4547
4562
  ] }),
4563
+ /* @__PURE__ */ jsx("div", { className: "text-3xl font-black relative z-10", children: formatTime }),
4548
4564
  /* @__PURE__ */ jsx(DevStatusControls, {})
4549
4565
  ] });
4550
4566
  };
@@ -4560,20 +4576,28 @@ const StatusStepsDialog = ({
4560
4576
  };
4561
4577
  if (!status || status === "idle") return null;
4562
4578
  let step = null;
4579
+ const sharedClassName = "overflow-hidden noise text-center flex flex-col items-center !fixed";
4563
4580
  if (status === "executing") {
4564
- step = /* @__PURE__ */ jsx(ConfirmStep, { icon: icons?.confirm });
4581
+ step = /* @__PURE__ */ jsx(ConfirmStep, { icon: icons?.confirm, className: sharedClassName });
4565
4582
  }
4566
4583
  if (status === "approving") {
4567
- step = /* @__PURE__ */ jsx(ProgressStep, { icon: icons?.progress, isApproving: true });
4584
+ step = /* @__PURE__ */ jsx(
4585
+ ProgressStep,
4586
+ {
4587
+ icon: icons?.progress,
4588
+ isApproving: true,
4589
+ className: sharedClassName
4590
+ }
4591
+ );
4568
4592
  }
4569
4593
  if (status === "processing") {
4570
- step = /* @__PURE__ */ jsx(ProgressStep, { icon: icons?.progress });
4594
+ step = /* @__PURE__ */ jsx(ProgressStep, { icon: icons?.progress, className: sharedClassName });
4571
4595
  }
4572
4596
  if (status === "completed") {
4573
- step = /* @__PURE__ */ jsx(SuccessStep, { icon: icons?.success });
4597
+ step = /* @__PURE__ */ jsx(SuccessStep, { icon: icons?.success, className: sharedClassName });
4574
4598
  }
4575
4599
  if (status === "failed") {
4576
- step = /* @__PURE__ */ jsx(FailedStep, { icon: icons?.failed });
4600
+ step = /* @__PURE__ */ jsx(FailedStep, { icon: icons?.failed, className: sharedClassName });
4577
4601
  }
4578
4602
  if (!step) return null;
4579
4603
  return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Dialog, { open: true, onOpenChange: handleClose, children: step }) });
@@ -25826,7 +25850,7 @@ class WalletConnectModal {
25826
25850
  }
25827
25851
  async initUi() {
25828
25852
  if (typeof window !== "undefined") {
25829
- await import("./index-qL-cBcPF.js");
25853
+ await import("./index-L-wapa5t.js");
25830
25854
  const modal = document.createElement("wcm-modal");
25831
25855
  document.body.insertAdjacentElement("beforeend", modal);
25832
25856
  OptionsCtrl.setIsUiLoaded(true);
@@ -26595,4 +26619,4 @@ export {
26595
26619
  getQuoteFees as y,
26596
26620
  calculateMinReceived as z
26597
26621
  };
26598
- //# sourceMappingURL=index-BwdYKUP-.js.map
26622
+ //# sourceMappingURL=index-naQPb65y.js.map