@hyperbridge/ui 0.0.12 → 0.0.14
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 +6 -4
- package/dist/index.mjs +196 -189
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -557,9 +557,6 @@ declare const SummaryValues: {
|
|
|
557
557
|
};
|
|
558
558
|
};
|
|
559
559
|
|
|
560
|
-
declare function TimelineList(props: {
|
|
561
|
-
children: React__default.ReactNode;
|
|
562
|
-
}): react_jsx_runtime.JSX.Element;
|
|
563
560
|
type TimePrefix = "min" | "second" | "hours";
|
|
564
561
|
type EstimatedTimeFormatted = `${number} ${TimePrefix | `${TimePrefix}s`}` | "";
|
|
565
562
|
type Prettify<T> = {
|
|
@@ -574,7 +571,7 @@ type Level = {
|
|
|
574
571
|
type TimelineData = {
|
|
575
572
|
processingStatus: "processing";
|
|
576
573
|
data: {
|
|
577
|
-
eta:
|
|
574
|
+
eta: React__default.ReactNode;
|
|
578
575
|
};
|
|
579
576
|
} | {
|
|
580
577
|
processingStatus: "upcoming" | "error";
|
|
@@ -594,6 +591,9 @@ declare function TimelineItem(props: TimelineItemProps): react_jsx_runtime.JSX.E
|
|
|
594
591
|
declare function TimelineListGroup(props: {
|
|
595
592
|
children: React__default.ReactNode;
|
|
596
593
|
}): react_jsx_runtime.JSX.Element;
|
|
594
|
+
declare function TimelineList(props: {
|
|
595
|
+
children: React__default.ReactNode;
|
|
596
|
+
}): react_jsx_runtime.JSX.Element;
|
|
597
597
|
declare const TimelineRoot: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React__default.RefAttributes<HTMLUListElement>>;
|
|
598
598
|
type TimerProps = {
|
|
599
599
|
hours: number;
|
|
@@ -601,6 +601,8 @@ type TimerProps = {
|
|
|
601
601
|
seconds: number;
|
|
602
602
|
progress: number;
|
|
603
603
|
severity?: "default" | "warning";
|
|
604
|
+
tooltipContent?: string;
|
|
605
|
+
timerMessage?: string;
|
|
604
606
|
};
|
|
605
607
|
declare function TransactionTimer(props: TimerProps): react_jsx_runtime.JSX.Element;
|
|
606
608
|
declare function TimerWrap(props: {
|
package/dist/index.mjs
CHANGED
|
@@ -3244,11 +3244,61 @@ function Progress(_a) {
|
|
|
3244
3244
|
);
|
|
3245
3245
|
}
|
|
3246
3246
|
|
|
3247
|
-
// src/
|
|
3247
|
+
// src/@/ui/tooltip.tsx
|
|
3248
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3248
3249
|
import { jsx as jsx35, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3249
|
-
function
|
|
3250
|
-
|
|
3250
|
+
function TooltipProvider(_a) {
|
|
3251
|
+
var _b = _a, {
|
|
3252
|
+
delayDuration = 0
|
|
3253
|
+
} = _b, props = __objRest(_b, [
|
|
3254
|
+
"delayDuration"
|
|
3255
|
+
]);
|
|
3256
|
+
return /* @__PURE__ */ jsx35(
|
|
3257
|
+
TooltipPrimitive.Provider,
|
|
3258
|
+
__spreadValues({
|
|
3259
|
+
"data-slot": "tooltip-provider",
|
|
3260
|
+
delayDuration
|
|
3261
|
+
}, props)
|
|
3262
|
+
);
|
|
3263
|
+
}
|
|
3264
|
+
function Tooltip(_a) {
|
|
3265
|
+
var props = __objRest(_a, []);
|
|
3266
|
+
return /* @__PURE__ */ jsx35(TooltipProvider, { children: /* @__PURE__ */ jsx35(TooltipPrimitive.Root, __spreadValues({ "data-slot": "tooltip" }, props)) });
|
|
3267
|
+
}
|
|
3268
|
+
function TooltipTrigger(_a) {
|
|
3269
|
+
var props = __objRest(_a, []);
|
|
3270
|
+
return /* @__PURE__ */ jsx35(TooltipPrimitive.Trigger, __spreadValues({ "data-slot": "tooltip-trigger" }, props));
|
|
3271
|
+
}
|
|
3272
|
+
function TooltipContent(_a) {
|
|
3273
|
+
var _b = _a, {
|
|
3274
|
+
className,
|
|
3275
|
+
sideOffset = 0,
|
|
3276
|
+
children
|
|
3277
|
+
} = _b, props = __objRest(_b, [
|
|
3278
|
+
"className",
|
|
3279
|
+
"sideOffset",
|
|
3280
|
+
"children"
|
|
3281
|
+
]);
|
|
3282
|
+
return /* @__PURE__ */ jsx35(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs24(
|
|
3283
|
+
TooltipPrimitive.Content,
|
|
3284
|
+
__spreadProps(__spreadValues({
|
|
3285
|
+
"data-slot": "tooltip-content",
|
|
3286
|
+
sideOffset,
|
|
3287
|
+
className: cn(
|
|
3288
|
+
"bg-brand-black-600 text-brand-black-100 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
3289
|
+
className
|
|
3290
|
+
)
|
|
3291
|
+
}, props), {
|
|
3292
|
+
children: [
|
|
3293
|
+
children,
|
|
3294
|
+
/* @__PURE__ */ jsx35(TooltipPrimitive.Arrow, { className: "bg-brand-black-600 fill-brand-black-600 z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
3295
|
+
]
|
|
3296
|
+
})
|
|
3297
|
+
) });
|
|
3251
3298
|
}
|
|
3299
|
+
|
|
3300
|
+
// src/components/molecules/timeline.tsx
|
|
3301
|
+
import { jsx as jsx36, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3252
3302
|
var StatusTextMap = {
|
|
3253
3303
|
processing: "Processing",
|
|
3254
3304
|
upcoming: "Upcoming",
|
|
@@ -3261,12 +3311,12 @@ function TimelineItem(props) {
|
|
|
3261
3311
|
const id = React13.useId();
|
|
3262
3312
|
const layoutId = `${id}/${caption}/content-2`;
|
|
3263
3313
|
const hideTime = durationMode === "none";
|
|
3264
|
-
return /* @__PURE__ */
|
|
3314
|
+
return /* @__PURE__ */ jsx36(
|
|
3265
3315
|
motion3.li,
|
|
3266
3316
|
{
|
|
3267
3317
|
"data-process-status": processingStatus,
|
|
3268
3318
|
className: "block bg-brand-black-350 cursor-default select-none font-medium text-brand-white-500",
|
|
3269
|
-
children: /* @__PURE__ */
|
|
3319
|
+
children: /* @__PURE__ */ jsxs25(
|
|
3270
3320
|
motion3.div,
|
|
3271
3321
|
{
|
|
3272
3322
|
initial: { opacity: 0.5 },
|
|
@@ -3275,7 +3325,7 @@ function TimelineItem(props) {
|
|
|
3275
3325
|
},
|
|
3276
3326
|
className: "flex h-[3.5rem] items-center gap-[0.86rem] py-[0.5625rem] px-[0.75rem] ",
|
|
3277
3327
|
children: [
|
|
3278
|
-
props.level === 0 ? /* @__PURE__ */
|
|
3328
|
+
props.level === 0 ? /* @__PURE__ */ jsx36(BadgeIcon, __spreadValues({}, props.badge)) : /* @__PURE__ */ jsx36(
|
|
3279
3329
|
IconButton,
|
|
3280
3330
|
{
|
|
3281
3331
|
variant: "level_2",
|
|
@@ -3285,7 +3335,7 @@ function TimelineItem(props) {
|
|
|
3285
3335
|
style: {
|
|
3286
3336
|
boxShadow: "0 4px 24px 0 rgba(255, 255, 255, 0.05) inset"
|
|
3287
3337
|
},
|
|
3288
|
-
children: /* @__PURE__ */
|
|
3338
|
+
children: /* @__PURE__ */ jsx36(
|
|
3289
3339
|
"span",
|
|
3290
3340
|
{
|
|
3291
3341
|
className: cn(
|
|
@@ -3299,9 +3349,9 @@ function TimelineItem(props) {
|
|
|
3299
3349
|
)
|
|
3300
3350
|
}
|
|
3301
3351
|
),
|
|
3302
|
-
/* @__PURE__ */
|
|
3303
|
-
/* @__PURE__ */
|
|
3304
|
-
/* @__PURE__ */
|
|
3352
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col flex-1 gap-[calc(4/16rem)]", children: [
|
|
3353
|
+
/* @__PURE__ */ jsx36("div", { className: "text-brand-white-500 text-[1rem] h-[1.25rem]", children: caption }),
|
|
3354
|
+
/* @__PURE__ */ jsx36("div", { className: "text-xs h-[1rem] text-brand-black-100", children: processingStatus === "completed" ? ((_a = props.data) == null ? void 0 : _a.transactionUrl) ? /* @__PURE__ */ jsxs25(
|
|
3305
3355
|
"a",
|
|
3306
3356
|
{
|
|
3307
3357
|
href: props.data.transactionUrl,
|
|
@@ -3309,14 +3359,14 @@ function TimelineItem(props) {
|
|
|
3309
3359
|
target: "_blank",
|
|
3310
3360
|
rel: "noopener noreferrer",
|
|
3311
3361
|
children: [
|
|
3312
|
-
/* @__PURE__ */
|
|
3313
|
-
/* @__PURE__ */
|
|
3362
|
+
/* @__PURE__ */ jsx36("span", { children: "View in explorer " }),
|
|
3363
|
+
/* @__PURE__ */ jsx36(ArrowUpRight_default, { width: "0.75rem", height: "0.75rem" })
|
|
3314
3364
|
]
|
|
3315
3365
|
}
|
|
3316
|
-
) : /* @__PURE__ */
|
|
3366
|
+
) : /* @__PURE__ */ jsx36("span", { children: props.secondary }) : /* @__PURE__ */ jsx36("span", { children: (_b = props == null ? void 0 : props.secondary) != null ? _b : StatusTextMap[processingStatus] }) })
|
|
3317
3367
|
] }),
|
|
3318
|
-
/* @__PURE__ */
|
|
3319
|
-
processingStatus === "completed" ? /* @__PURE__ */
|
|
3368
|
+
/* @__PURE__ */ jsxs25(AnimatePresence2, { children: [
|
|
3369
|
+
processingStatus === "completed" ? /* @__PURE__ */ jsxs25(
|
|
3320
3370
|
motion3.div,
|
|
3321
3371
|
{
|
|
3322
3372
|
layoutId,
|
|
@@ -3325,8 +3375,8 @@ function TimelineItem(props) {
|
|
|
3325
3375
|
exit: { x: 10, opacity: 0 },
|
|
3326
3376
|
className: "flex gap-[calc(8rem/16)] items-center",
|
|
3327
3377
|
children: [
|
|
3328
|
-
!hideTime && /* @__PURE__ */
|
|
3329
|
-
/* @__PURE__ */
|
|
3378
|
+
!hideTime && /* @__PURE__ */ jsx36("span", { className: "text-[calc(13rem/16)] text-brand-black-100", children: (_c = props == null ? void 0 : props.data) == null ? void 0 : _c.completedIn }),
|
|
3379
|
+
/* @__PURE__ */ jsx36(
|
|
3330
3380
|
Check_default,
|
|
3331
3381
|
{
|
|
3332
3382
|
height: "1rem",
|
|
@@ -3337,7 +3387,7 @@ function TimelineItem(props) {
|
|
|
3337
3387
|
]
|
|
3338
3388
|
}
|
|
3339
3389
|
) : null,
|
|
3340
|
-
processingStatus === "processing" ? /* @__PURE__ */
|
|
3390
|
+
processingStatus === "processing" ? /* @__PURE__ */ jsxs25(
|
|
3341
3391
|
motion3.div,
|
|
3342
3392
|
{
|
|
3343
3393
|
initial: { x: 10, opacity: 0 },
|
|
@@ -3346,11 +3396,8 @@ function TimelineItem(props) {
|
|
|
3346
3396
|
layoutId,
|
|
3347
3397
|
className: "flex gap-[calc(10rem/16)] items-center",
|
|
3348
3398
|
children: [
|
|
3349
|
-
!hideTime && /* @__PURE__ */
|
|
3350
|
-
|
|
3351
|
-
(_d = props == null ? void 0 : props.data) == null ? void 0 : _d.eta
|
|
3352
|
-
] }),
|
|
3353
|
-
/* @__PURE__ */ jsx35(
|
|
3399
|
+
!hideTime && /* @__PURE__ */ jsx36("span", { className: "text-[calc(13rem/16)]", children: (_d = props == null ? void 0 : props.data) == null ? void 0 : _d.eta }),
|
|
3400
|
+
/* @__PURE__ */ jsx36(
|
|
3354
3401
|
Loader2,
|
|
3355
3402
|
{
|
|
3356
3403
|
size: "1rem",
|
|
@@ -3368,10 +3415,13 @@ function TimelineItem(props) {
|
|
|
3368
3415
|
);
|
|
3369
3416
|
}
|
|
3370
3417
|
function TimelineListGroup(props) {
|
|
3371
|
-
return /* @__PURE__ */
|
|
3418
|
+
return /* @__PURE__ */ jsx36("ul", { className: cn("flex flex-col overflow-hidden"), children: props.children });
|
|
3419
|
+
}
|
|
3420
|
+
function TimelineList(props) {
|
|
3421
|
+
return /* @__PURE__ */ jsx36("ul", { className: "flex flex-col", children: props.children });
|
|
3372
3422
|
}
|
|
3373
3423
|
var TimelineRoot = React13.forwardRef((props, ref) => {
|
|
3374
|
-
return /* @__PURE__ */
|
|
3424
|
+
return /* @__PURE__ */ jsx36(
|
|
3375
3425
|
"ul",
|
|
3376
3426
|
__spreadProps(__spreadValues({
|
|
3377
3427
|
ref
|
|
@@ -3390,9 +3440,16 @@ var trackColorMap = {
|
|
|
3390
3440
|
default: "var(--color-brand-black-100)"
|
|
3391
3441
|
};
|
|
3392
3442
|
function TransactionTimer(props) {
|
|
3393
|
-
const {
|
|
3394
|
-
|
|
3395
|
-
|
|
3443
|
+
const {
|
|
3444
|
+
mins,
|
|
3445
|
+
hours,
|
|
3446
|
+
seconds,
|
|
3447
|
+
severity = "warning",
|
|
3448
|
+
tooltipContent,
|
|
3449
|
+
timerMessage = "Transaction will timeout in"
|
|
3450
|
+
} = props;
|
|
3451
|
+
return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-[calc(6rem/16)]", children: [
|
|
3452
|
+
/* @__PURE__ */ jsxs25(
|
|
3396
3453
|
"div",
|
|
3397
3454
|
{
|
|
3398
3455
|
className: cn(
|
|
@@ -3403,19 +3460,22 @@ function TransactionTimer(props) {
|
|
|
3403
3460
|
}
|
|
3404
3461
|
),
|
|
3405
3462
|
children: [
|
|
3406
|
-
/* @__PURE__ */
|
|
3407
|
-
/* @__PURE__ */
|
|
3463
|
+
/* @__PURE__ */ jsx36("span", { children: timerMessage }),
|
|
3464
|
+
/* @__PURE__ */ jsxs25("span", { className: "text-brand-white-500", children: [
|
|
3408
3465
|
String(hours).padStart(2, "0"),
|
|
3409
3466
|
":",
|
|
3410
3467
|
String(mins).padStart(2, "0"),
|
|
3411
3468
|
":",
|
|
3412
3469
|
String(seconds).padStart(2, "0")
|
|
3413
3470
|
] }),
|
|
3414
|
-
/* @__PURE__ */
|
|
3471
|
+
tooltipContent && /* @__PURE__ */ jsx36(TooltipProvider, { children: /* @__PURE__ */ jsxs25(Tooltip, { children: [
|
|
3472
|
+
/* @__PURE__ */ jsx36(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx36("span", { children: /* @__PURE__ */ jsx36(CircleInfo_default, { width: "1em", height: "1em" }) }) }),
|
|
3473
|
+
/* @__PURE__ */ jsx36(TooltipContent, { children: /* @__PURE__ */ jsx36("p", { children: tooltipContent }) })
|
|
3474
|
+
] }) })
|
|
3415
3475
|
]
|
|
3416
3476
|
}
|
|
3417
3477
|
),
|
|
3418
|
-
/* @__PURE__ */
|
|
3478
|
+
/* @__PURE__ */ jsx36(
|
|
3419
3479
|
Progress,
|
|
3420
3480
|
{
|
|
3421
3481
|
value: props.progress,
|
|
@@ -3429,7 +3489,7 @@ function TransactionTimer(props) {
|
|
|
3429
3489
|
}
|
|
3430
3490
|
function TimerWrap(props) {
|
|
3431
3491
|
const show = props.reveal;
|
|
3432
|
-
return /* @__PURE__ */
|
|
3492
|
+
return /* @__PURE__ */ jsxs25(
|
|
3433
3493
|
motion3.div,
|
|
3434
3494
|
{
|
|
3435
3495
|
initial: { paddingTop: 0 },
|
|
@@ -3439,7 +3499,7 @@ function TimerWrap(props) {
|
|
|
3439
3499
|
},
|
|
3440
3500
|
className: "flex flex-col items-stretch justify-start relative",
|
|
3441
3501
|
children: [
|
|
3442
|
-
/* @__PURE__ */
|
|
3502
|
+
/* @__PURE__ */ jsx36(
|
|
3443
3503
|
"div",
|
|
3444
3504
|
{
|
|
3445
3505
|
className: cn(
|
|
@@ -3449,7 +3509,7 @@ function TimerWrap(props) {
|
|
|
3449
3509
|
children: props.Timer
|
|
3450
3510
|
}
|
|
3451
3511
|
),
|
|
3452
|
-
/* @__PURE__ */
|
|
3512
|
+
/* @__PURE__ */ jsx36(
|
|
3453
3513
|
Slot9,
|
|
3454
3514
|
{
|
|
3455
3515
|
className: cn("min-h-[calc(56rem/11)] z-20 relative !rounded-[1rem]", {
|
|
@@ -3464,7 +3524,7 @@ function TimerWrap(props) {
|
|
|
3464
3524
|
}
|
|
3465
3525
|
|
|
3466
3526
|
// src/components/molecules/toast.tsx
|
|
3467
|
-
import { Fragment as Fragment8, jsx as
|
|
3527
|
+
import { Fragment as Fragment8, jsx as jsx37, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3468
3528
|
var SeverityConfig = {
|
|
3469
3529
|
error: {
|
|
3470
3530
|
icon: Alert_default,
|
|
@@ -3490,23 +3550,23 @@ function ToastBox(props) {
|
|
|
3490
3550
|
event.stopPropagation();
|
|
3491
3551
|
onDismiss == null ? void 0 : onDismiss(event);
|
|
3492
3552
|
};
|
|
3493
|
-
return /* @__PURE__ */
|
|
3553
|
+
return /* @__PURE__ */ jsx37(SmoothCorners, { size: "sm", children: /* @__PURE__ */ jsxs26(
|
|
3494
3554
|
"div",
|
|
3495
3555
|
{
|
|
3496
3556
|
"data-is-toast": "true",
|
|
3497
3557
|
className: "bg-brand-black-500 flex flex-col md:flex-row gap-[0.75rem] items-start py-[calc(10rem/16)] px-[calc(12rem/16)] text-muted-foreground",
|
|
3498
3558
|
children: [
|
|
3499
|
-
/* @__PURE__ */
|
|
3559
|
+
/* @__PURE__ */ jsx37(
|
|
3500
3560
|
"div",
|
|
3501
3561
|
{
|
|
3502
3562
|
className: cn("items-center justify-center shrink-0 grow-0", color),
|
|
3503
3563
|
style: { fontSize: "calc(calc(24/16) * 1rem)" },
|
|
3504
|
-
children: /* @__PURE__ */
|
|
3564
|
+
children: /* @__PURE__ */ jsx37(Icon, { width: "1em", height: "1em" })
|
|
3505
3565
|
}
|
|
3506
3566
|
),
|
|
3507
|
-
/* @__PURE__ */
|
|
3508
|
-
/* @__PURE__ */
|
|
3509
|
-
/* @__PURE__ */
|
|
3567
|
+
/* @__PURE__ */ jsxs26("div", { className: "flex flex-col flex-1", children: [
|
|
3568
|
+
/* @__PURE__ */ jsx37(Text, { variant: "body1", className: "text-foreground", children: props.heading }),
|
|
3569
|
+
/* @__PURE__ */ jsx37(
|
|
3510
3570
|
Text,
|
|
3511
3571
|
{
|
|
3512
3572
|
variant: "caption2",
|
|
@@ -3515,9 +3575,9 @@ function ToastBox(props) {
|
|
|
3515
3575
|
}
|
|
3516
3576
|
)
|
|
3517
3577
|
] }),
|
|
3518
|
-
/* @__PURE__ */
|
|
3519
|
-
/* @__PURE__ */
|
|
3520
|
-
/* @__PURE__ */
|
|
3578
|
+
/* @__PURE__ */ jsx37("div", { className: "flex gap-[calc(6rem/16)] items-center self-center w-full md:w-auto", children: actions ? /* @__PURE__ */ jsxs26(Fragment8, { children: [
|
|
3579
|
+
/* @__PURE__ */ jsx37("div", { className: "flex gap-[calc(6rem/16)] flex-1 items-center *:flex-1", children: actions }),
|
|
3580
|
+
/* @__PURE__ */ jsx37(
|
|
3521
3581
|
IconButton,
|
|
3522
3582
|
{
|
|
3523
3583
|
className: "cursor-pointer",
|
|
@@ -3525,10 +3585,10 @@ function ToastBox(props) {
|
|
|
3525
3585
|
size: "smx",
|
|
3526
3586
|
variant: "level_2",
|
|
3527
3587
|
rounded: "default",
|
|
3528
|
-
children: /* @__PURE__ */
|
|
3588
|
+
children: /* @__PURE__ */ jsx37(XIcon_default, { width: "1rem" })
|
|
3529
3589
|
}
|
|
3530
3590
|
)
|
|
3531
|
-
] }) : /* @__PURE__ */
|
|
3591
|
+
] }) : /* @__PURE__ */ jsx37(
|
|
3532
3592
|
Button2,
|
|
3533
3593
|
{
|
|
3534
3594
|
size: "sm",
|
|
@@ -3545,10 +3605,10 @@ function ToastBox(props) {
|
|
|
3545
3605
|
|
|
3546
3606
|
// src/components/molecules/transaction-list.tsx
|
|
3547
3607
|
import { motion as motion4 } from "motion/react";
|
|
3548
|
-
import { Fragment as Fragment9, jsx as
|
|
3608
|
+
import { Fragment as Fragment9, jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3549
3609
|
function TxListItemProcessing(props) {
|
|
3550
|
-
return /* @__PURE__ */
|
|
3551
|
-
/* @__PURE__ */
|
|
3610
|
+
return /* @__PURE__ */ jsx38(GradientContainer, { children: /* @__PURE__ */ jsxs27("div", { className: "rounded-[1rem] bg-brand-black-350 px-[0.75rem] h-[3.75rem] flex items-center", children: [
|
|
3611
|
+
/* @__PURE__ */ jsx38(
|
|
3552
3612
|
GradientLine,
|
|
3553
3613
|
{
|
|
3554
3614
|
behaviour: "progress",
|
|
@@ -3556,8 +3616,8 @@ function TxListItemProcessing(props) {
|
|
|
3556
3616
|
mode: props.status === "failed" ? "error" : "default"
|
|
3557
3617
|
}
|
|
3558
3618
|
),
|
|
3559
|
-
/* @__PURE__ */
|
|
3560
|
-
/* @__PURE__ */
|
|
3619
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex gap-[1rem] flex-1 z-20 text-brand-black-100 font-medium", children: [
|
|
3620
|
+
/* @__PURE__ */ jsx38(
|
|
3561
3621
|
TokenTransferPair,
|
|
3562
3622
|
{
|
|
3563
3623
|
fromToken: props.from,
|
|
@@ -3565,48 +3625,48 @@ function TxListItemProcessing(props) {
|
|
|
3565
3625
|
size: "2rem"
|
|
3566
3626
|
}
|
|
3567
3627
|
),
|
|
3568
|
-
/* @__PURE__ */
|
|
3569
|
-
/* @__PURE__ */
|
|
3570
|
-
/* @__PURE__ */
|
|
3628
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex flex-grow flex-col text-start", children: [
|
|
3629
|
+
/* @__PURE__ */ jsx38("span", { className: "text-brand-white-500 whitespace-nowrap text-[0.875rem] h-[1.25rem]", children: props.caption }),
|
|
3630
|
+
/* @__PURE__ */ jsxs27(StatusBadge, { variant: props.status === "failed" ? "error" : "none", children: [
|
|
3571
3631
|
"~ ",
|
|
3572
3632
|
props.eta
|
|
3573
3633
|
] })
|
|
3574
3634
|
] }),
|
|
3575
|
-
/* @__PURE__ */
|
|
3635
|
+
/* @__PURE__ */ jsx38("div", { className: "basis-4/12 max-w-xs shrink-0 flex justify-end h-[2.25rem] whitespace-nowrap", children: /* @__PURE__ */ jsxs27(
|
|
3576
3636
|
motion4.div,
|
|
3577
3637
|
{
|
|
3578
3638
|
initial: { y: 0 },
|
|
3579
3639
|
animate: { y: props.status === "failed" ? "-100%" : 0 },
|
|
3580
3640
|
className: "grid",
|
|
3581
3641
|
children: [
|
|
3582
|
-
/* @__PURE__ */
|
|
3642
|
+
/* @__PURE__ */ jsxs27(
|
|
3583
3643
|
motion4.div,
|
|
3584
3644
|
{
|
|
3585
3645
|
animate: { opacity: props.status === "processing" ? 1 : 0 },
|
|
3586
3646
|
className: "flex flex-col text-end h-[2.25rem]",
|
|
3587
3647
|
children: [
|
|
3588
|
-
/* @__PURE__ */
|
|
3589
|
-
/* @__PURE__ */
|
|
3648
|
+
/* @__PURE__ */ jsx38("span", { className: "text-base text-brand-white-500 h-[1.25rem]", children: props.amount }),
|
|
3649
|
+
/* @__PURE__ */ jsxs27("span", { className: "text-xs h-[1rem]", children: [
|
|
3590
3650
|
props.percentage,
|
|
3591
3651
|
"%"
|
|
3592
3652
|
] })
|
|
3593
3653
|
]
|
|
3594
3654
|
}
|
|
3595
3655
|
),
|
|
3596
|
-
/* @__PURE__ */
|
|
3656
|
+
/* @__PURE__ */ jsxs27(
|
|
3597
3657
|
motion4.div,
|
|
3598
3658
|
{
|
|
3599
3659
|
animate: { opacity: props.status === "failed" ? 1 : 0 },
|
|
3600
3660
|
className: "flex gap-[0.75rem] items-center h-[2.25rem] justify-end",
|
|
3601
3661
|
children: [
|
|
3602
|
-
/* @__PURE__ */
|
|
3603
|
-
/* @__PURE__ */
|
|
3662
|
+
/* @__PURE__ */ jsx38("span", { className: "text-base text-brand-white-500 h-[1.25rem]", children: props.amount }),
|
|
3663
|
+
/* @__PURE__ */ jsx38(
|
|
3604
3664
|
IconButton,
|
|
3605
3665
|
{
|
|
3606
3666
|
variant: "destructive",
|
|
3607
3667
|
rounded: "default",
|
|
3608
3668
|
size: "smx",
|
|
3609
|
-
children: /* @__PURE__ */
|
|
3669
|
+
children: /* @__PURE__ */ jsx38(RotateCcw_default, { className: "size-4 text-[currentColor]" })
|
|
3610
3670
|
}
|
|
3611
3671
|
)
|
|
3612
3672
|
]
|
|
@@ -3620,7 +3680,7 @@ function TxListItemProcessing(props) {
|
|
|
3620
3680
|
}
|
|
3621
3681
|
var TxListItem = function TxListItem2(props) {
|
|
3622
3682
|
const _a = props, { caption, completedAt, mode, from, to, amount } = _a, rest = __objRest(_a, ["caption", "completedAt", "mode", "from", "to", "amount"]);
|
|
3623
|
-
return /* @__PURE__ */
|
|
3683
|
+
return /* @__PURE__ */ jsx38(
|
|
3624
3684
|
"button",
|
|
3625
3685
|
__spreadProps(__spreadValues({}, rest), {
|
|
3626
3686
|
type: "button",
|
|
@@ -3628,15 +3688,15 @@ var TxListItem = function TxListItem2(props) {
|
|
|
3628
3688
|
"apperance-none rounded-[1rem] bg-brand-black-350 px-[0.75rem] h-[3.75rem] flex items-center",
|
|
3629
3689
|
props.className
|
|
3630
3690
|
),
|
|
3631
|
-
children: /* @__PURE__ */
|
|
3632
|
-
/* @__PURE__ */
|
|
3633
|
-
/* @__PURE__ */
|
|
3634
|
-
/* @__PURE__ */
|
|
3635
|
-
/* @__PURE__ */
|
|
3691
|
+
children: /* @__PURE__ */ jsxs27("div", { className: "flex gap-[1rem] flex-1 z-20 text-brand-black-100 font-medium", children: [
|
|
3692
|
+
/* @__PURE__ */ jsx38(TokenTransferPair, { fromToken: from, toToken: to, size: "2rem" }),
|
|
3693
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex flex-grow flex-col text-start whitespace-nowrap", children: [
|
|
3694
|
+
/* @__PURE__ */ jsx38("span", { className: "text-brand-white-500 text-[0.875rem] h-[1.25rem]", children: caption }),
|
|
3695
|
+
/* @__PURE__ */ jsx38(StatusBadge, { variant: mode === "rollback" ? "refunded" : "success" })
|
|
3636
3696
|
] }),
|
|
3637
|
-
/* @__PURE__ */
|
|
3638
|
-
/* @__PURE__ */
|
|
3639
|
-
/* @__PURE__ */
|
|
3697
|
+
/* @__PURE__ */ jsxs27("div", { className: "shrink-0 flex flex-col text-end", children: [
|
|
3698
|
+
/* @__PURE__ */ jsx38("span", { className: "text-base text-brand-white-500 h-[1.25rem]", children: amount }),
|
|
3699
|
+
/* @__PURE__ */ jsx38("span", { className: "text-xs h-[1rem]", children: completedAt })
|
|
3640
3700
|
] })
|
|
3641
3701
|
] })
|
|
3642
3702
|
})
|
|
@@ -3646,18 +3706,18 @@ function StatusBadge({
|
|
|
3646
3706
|
variant,
|
|
3647
3707
|
children
|
|
3648
3708
|
}) {
|
|
3649
|
-
return /* @__PURE__ */
|
|
3650
|
-
variant === "success" ? /* @__PURE__ */
|
|
3651
|
-
/* @__PURE__ */
|
|
3709
|
+
return /* @__PURE__ */ jsxs27("span", { className: "text-xs h-[1rem] flex items-center gap-[0.125rem]", children: [
|
|
3710
|
+
variant === "success" ? /* @__PURE__ */ jsxs27("span", { className: "text-brand-success-400 flex items-center gap-[0.125rem]", children: [
|
|
3711
|
+
/* @__PURE__ */ jsx38(Check_default, { width: "0.75rem", height: "0.75rem" }),
|
|
3652
3712
|
" ",
|
|
3653
|
-
/* @__PURE__ */
|
|
3713
|
+
/* @__PURE__ */ jsx38("span", { children: "Success" })
|
|
3654
3714
|
] }) : null,
|
|
3655
|
-
variant === "refunded" ? /* @__PURE__ */
|
|
3656
|
-
/* @__PURE__ */
|
|
3657
|
-
/* @__PURE__ */
|
|
3715
|
+
variant === "refunded" ? /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
3716
|
+
/* @__PURE__ */ jsx38(StepBack_default, { strokeWidth: 2, width: "0.75rem", height: "0.75rem" }),
|
|
3717
|
+
/* @__PURE__ */ jsx38("span", { children: "Refunded" })
|
|
3658
3718
|
] }) : null,
|
|
3659
|
-
variant === "error" ? /* @__PURE__ */
|
|
3660
|
-
/* @__PURE__ */
|
|
3719
|
+
variant === "error" ? /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
3720
|
+
/* @__PURE__ */ jsx38(
|
|
3661
3721
|
Alert_default,
|
|
3662
3722
|
{
|
|
3663
3723
|
width: "0.75rem",
|
|
@@ -3665,13 +3725,13 @@ function StatusBadge({
|
|
|
3665
3725
|
className: "text-brand-danger-500"
|
|
3666
3726
|
}
|
|
3667
3727
|
),
|
|
3668
|
-
/* @__PURE__ */
|
|
3728
|
+
/* @__PURE__ */ jsx38("span", { className: "text-brand-danger-500", children: "Order expired" })
|
|
3669
3729
|
] }) : null,
|
|
3670
3730
|
variant === "none" ? children : null
|
|
3671
3731
|
] });
|
|
3672
3732
|
}
|
|
3673
3733
|
function TxList({ children }) {
|
|
3674
|
-
return /* @__PURE__ */
|
|
3734
|
+
return /* @__PURE__ */ jsx38("ul", { className: "flex flex-col gap-[0.5rem]", children });
|
|
3675
3735
|
}
|
|
3676
3736
|
|
|
3677
3737
|
// src/components/molecules/wallet-header.tsx
|
|
@@ -3685,14 +3745,14 @@ import * as Tab_ from "@radix-ui/react-tabs";
|
|
|
3685
3745
|
|
|
3686
3746
|
// src/@/ui/tabs.tsx
|
|
3687
3747
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3688
|
-
import { jsx as
|
|
3748
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3689
3749
|
function Tabs(_a) {
|
|
3690
3750
|
var _b = _a, {
|
|
3691
3751
|
className
|
|
3692
3752
|
} = _b, props = __objRest(_b, [
|
|
3693
3753
|
"className"
|
|
3694
3754
|
]);
|
|
3695
|
-
return /* @__PURE__ */
|
|
3755
|
+
return /* @__PURE__ */ jsx39(
|
|
3696
3756
|
TabsPrimitive.Root,
|
|
3697
3757
|
__spreadValues({
|
|
3698
3758
|
"data-slot": "tabs",
|
|
@@ -3706,7 +3766,7 @@ function TabsContent(_a) {
|
|
|
3706
3766
|
} = _b, props = __objRest(_b, [
|
|
3707
3767
|
"className"
|
|
3708
3768
|
]);
|
|
3709
|
-
return /* @__PURE__ */
|
|
3769
|
+
return /* @__PURE__ */ jsx39(
|
|
3710
3770
|
TabsPrimitive.Content,
|
|
3711
3771
|
__spreadValues({
|
|
3712
3772
|
"data-slot": "tabs-content",
|
|
@@ -3716,12 +3776,12 @@ function TabsContent(_a) {
|
|
|
3716
3776
|
}
|
|
3717
3777
|
|
|
3718
3778
|
// src/components/organisms/assets-collection.tsx
|
|
3719
|
-
import { jsx as
|
|
3779
|
+
import { jsx as jsx40, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3720
3780
|
function TabsList2(props) {
|
|
3721
|
-
return /* @__PURE__ */
|
|
3781
|
+
return /* @__PURE__ */ jsx40("nav", { className: "flex flex-col", children: /* @__PURE__ */ jsx40(Tab_.TabsList, { asChild: true, children: /* @__PURE__ */ jsx40("ul", { className: "flex p-0 bg-transparent gap-3", children: props.children }) }) });
|
|
3722
3782
|
}
|
|
3723
3783
|
function TabItem(props) {
|
|
3724
|
-
return /* @__PURE__ */
|
|
3784
|
+
return /* @__PURE__ */ jsx40(
|
|
3725
3785
|
Tab_.TabsTrigger,
|
|
3726
3786
|
{
|
|
3727
3787
|
value: props.value,
|
|
@@ -3734,7 +3794,7 @@ function AssetValueTrend(props) {
|
|
|
3734
3794
|
const { percentage = 0, direction: dir, dollarValue = 0 } = props;
|
|
3735
3795
|
const isZero = dollarValue === 0;
|
|
3736
3796
|
const isUp = isZero ? "up" : dir === "up";
|
|
3737
|
-
return /* @__PURE__ */
|
|
3797
|
+
return /* @__PURE__ */ jsxs28(
|
|
3738
3798
|
"div",
|
|
3739
3799
|
{
|
|
3740
3800
|
className: "inline-flex select-none gap-[0.125rem] text-brand-black-100 h-[1rem] text-[0.7rem] font-medium items-center",
|
|
@@ -3743,7 +3803,7 @@ function AssetValueTrend(props) {
|
|
|
3743
3803
|
"--trend-color": isZero ? "inherit" : !isUp ? "var(--color-brand-danger-500, indigo)" : "var(--color-brand-success-400, cyan)"
|
|
3744
3804
|
},
|
|
3745
3805
|
children: [
|
|
3746
|
-
/* @__PURE__ */
|
|
3806
|
+
/* @__PURE__ */ jsx40("span", { className: "text-[var(--trend-color)]", children: /* @__PURE__ */ jsx40(
|
|
3747
3807
|
ArrowTriangleBottom_default,
|
|
3748
3808
|
{
|
|
3749
3809
|
width: "0.75rem",
|
|
@@ -3754,13 +3814,13 @@ function AssetValueTrend(props) {
|
|
|
3754
3814
|
)
|
|
3755
3815
|
}
|
|
3756
3816
|
) }),
|
|
3757
|
-
/* @__PURE__ */
|
|
3758
|
-
/* @__PURE__ */
|
|
3817
|
+
/* @__PURE__ */ jsxs28("span", { className: "flex items-center", children: [
|
|
3818
|
+
/* @__PURE__ */ jsxs28("span", { className: "text-[var(--trend-color)]", children: [
|
|
3759
3819
|
"$",
|
|
3760
3820
|
dollarValue
|
|
3761
3821
|
] }),
|
|
3762
3822
|
"\xA0",
|
|
3763
|
-
/* @__PURE__ */
|
|
3823
|
+
/* @__PURE__ */ jsxs28("span", { className: "text-[var(--trend-base)]", children: [
|
|
3764
3824
|
"(",
|
|
3765
3825
|
percentage,
|
|
3766
3826
|
"%)"
|
|
@@ -3778,8 +3838,8 @@ function Balance(props) {
|
|
|
3778
3838
|
const [int_, decimal] = String(props.amount).split(".");
|
|
3779
3839
|
const int = Number.isNaN(+int_) ? 0 : int_;
|
|
3780
3840
|
const is_zero = props.amount === 0;
|
|
3781
|
-
return /* @__PURE__ */
|
|
3782
|
-
/* @__PURE__ */
|
|
3841
|
+
return /* @__PURE__ */ jsx40("div", { className: "select-none", children: /* @__PURE__ */ jsxs28("span", { className: "text-[2.375rem] font-medium leading-[2.875rem] whitespace-nowrap", children: [
|
|
3842
|
+
/* @__PURE__ */ jsxs28(
|
|
3783
3843
|
"span",
|
|
3784
3844
|
{
|
|
3785
3845
|
className: cn(
|
|
@@ -3791,11 +3851,11 @@ function Balance(props) {
|
|
|
3791
3851
|
]
|
|
3792
3852
|
}
|
|
3793
3853
|
),
|
|
3794
|
-
/* @__PURE__ */
|
|
3854
|
+
/* @__PURE__ */ jsxs28("span", { className: "text-brand-black-100", children: [
|
|
3795
3855
|
".",
|
|
3796
3856
|
decimal != null ? decimal : "00"
|
|
3797
3857
|
] }),
|
|
3798
|
-
/* @__PURE__ */
|
|
3858
|
+
/* @__PURE__ */ jsxs28("span", { className: "text-brand-white-500", children: [
|
|
3799
3859
|
"\xA0",
|
|
3800
3860
|
suffix
|
|
3801
3861
|
] })
|
|
@@ -3803,7 +3863,7 @@ function Balance(props) {
|
|
|
3803
3863
|
}
|
|
3804
3864
|
|
|
3805
3865
|
// src/components/molecules/wallet-header.tsx
|
|
3806
|
-
import { Fragment as Fragment11, jsx as
|
|
3866
|
+
import { Fragment as Fragment11, jsx as jsx41, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3807
3867
|
var WalletHeaderContext = React14.createContext(null);
|
|
3808
3868
|
function useWalletHeader() {
|
|
3809
3869
|
const context = React14.useContext(WalletHeaderContext);
|
|
@@ -3849,7 +3909,7 @@ var WalletHeader = React14.forwardRef(
|
|
|
3849
3909
|
React14.useEffect(() => {
|
|
3850
3910
|
globalWalletHeaderState = show;
|
|
3851
3911
|
}, [show]);
|
|
3852
|
-
return /* @__PURE__ */
|
|
3912
|
+
return /* @__PURE__ */ jsx41(WalletHeaderContext.Provider, { value: { show, setShow }, children: /* @__PURE__ */ jsx41(
|
|
3853
3913
|
Comp,
|
|
3854
3914
|
__spreadProps(__spreadValues({
|
|
3855
3915
|
ref,
|
|
@@ -3865,7 +3925,7 @@ WalletHeader.displayName = "WalletHeader";
|
|
|
3865
3925
|
var WalletConnectedHeader = React14.forwardRef((_a, ref) => {
|
|
3866
3926
|
var _b = _a, { className, accounts, children } = _b, props = __objRest(_b, ["className", "accounts", "children"]);
|
|
3867
3927
|
const { show: open, setShow } = useWalletHeader();
|
|
3868
|
-
return /* @__PURE__ */
|
|
3928
|
+
return /* @__PURE__ */ jsx41(
|
|
3869
3929
|
"button",
|
|
3870
3930
|
__spreadProps(__spreadValues({
|
|
3871
3931
|
ref,
|
|
@@ -3879,9 +3939,9 @@ var WalletConnectedHeader = React14.forwardRef((_a, ref) => {
|
|
|
3879
3939
|
),
|
|
3880
3940
|
onClick: () => setShow((e) => !e)
|
|
3881
3941
|
}, props), {
|
|
3882
|
-
children: /* @__PURE__ */
|
|
3883
|
-
children || /* @__PURE__ */
|
|
3884
|
-
/* @__PURE__ */
|
|
3942
|
+
children: /* @__PURE__ */ jsxs29("div", { className: "flex w-full gap-2 justify-between items-center", children: [
|
|
3943
|
+
children || /* @__PURE__ */ jsx41(AccountStack, { accounts }),
|
|
3944
|
+
/* @__PURE__ */ jsx41(
|
|
3885
3945
|
IconButton,
|
|
3886
3946
|
{
|
|
3887
3947
|
variant: "level_1",
|
|
@@ -3890,7 +3950,7 @@ var WalletConnectedHeader = React14.forwardRef((_a, ref) => {
|
|
|
3890
3950
|
rounded: "full",
|
|
3891
3951
|
size: "sm",
|
|
3892
3952
|
asChild: true,
|
|
3893
|
-
children: /* @__PURE__ */
|
|
3953
|
+
children: /* @__PURE__ */ jsx41("span", { children: /* @__PURE__ */ jsx41(ChevronBottomDown_default, {}) })
|
|
3894
3954
|
}
|
|
3895
3955
|
)
|
|
3896
3956
|
] })
|
|
@@ -3962,7 +4022,7 @@ var WalletHeaderContent = React14.forwardRef((_a, _ref) => {
|
|
|
3962
4022
|
"onTransitionRun",
|
|
3963
4023
|
"onTransitionCancel"
|
|
3964
4024
|
]);
|
|
3965
|
-
return /* @__PURE__ */
|
|
4025
|
+
return /* @__PURE__ */ jsx41(
|
|
3966
4026
|
motion5.div,
|
|
3967
4027
|
{
|
|
3968
4028
|
ref: parentRef,
|
|
@@ -3971,7 +4031,7 @@ var WalletHeaderContent = React14.forwardRef((_a, _ref) => {
|
|
|
3971
4031
|
className: cn("z-10 relative", {
|
|
3972
4032
|
"pointer-events-none": !open
|
|
3973
4033
|
}),
|
|
3974
|
-
children: /* @__PURE__ */
|
|
4034
|
+
children: /* @__PURE__ */ jsx41(
|
|
3975
4035
|
motion5.div,
|
|
3976
4036
|
__spreadProps(__spreadValues({
|
|
3977
4037
|
ref: containerRef,
|
|
@@ -3994,15 +4054,15 @@ WalletHeaderContent.displayName = "WalletHeaderContent";
|
|
|
3994
4054
|
var AccountStack = React14.forwardRef(
|
|
3995
4055
|
({ accounts = [] }, ref) => {
|
|
3996
4056
|
var _a, _b;
|
|
3997
|
-
return /* @__PURE__ */
|
|
3998
|
-
/* @__PURE__ */
|
|
4057
|
+
return /* @__PURE__ */ jsx41("div", { ref, className: "flex gap-[0.625rem] items-center", children: accounts.length > 0 ? /* @__PURE__ */ jsxs29(React14.Fragment, { children: [
|
|
4058
|
+
/* @__PURE__ */ jsx41("div", { className: "inline-flex -space-x-[0.3125rem]", children: accounts.map((account, index) => /* @__PURE__ */ jsx41(
|
|
3999
4059
|
"div",
|
|
4000
4060
|
{
|
|
4001
4061
|
style: {
|
|
4002
4062
|
zIndex: accounts.length - index,
|
|
4003
4063
|
position: "relative"
|
|
4004
4064
|
},
|
|
4005
|
-
children: /* @__PURE__ */
|
|
4065
|
+
children: /* @__PURE__ */ jsx41(
|
|
4006
4066
|
BadgeIcon,
|
|
4007
4067
|
{
|
|
4008
4068
|
outline: true,
|
|
@@ -4016,15 +4076,15 @@ var AccountStack = React14.forwardRef(
|
|
|
4016
4076
|
},
|
|
4017
4077
|
account.address
|
|
4018
4078
|
)) }),
|
|
4019
|
-
/* @__PURE__ */
|
|
4020
|
-
/* @__PURE__ */
|
|
4079
|
+
/* @__PURE__ */ jsxs29("span", { className: "flex flex-col whitespace-nowrap", children: [
|
|
4080
|
+
/* @__PURE__ */ jsx41("span", { className: "text-base font-medium h-[1.25rem] text-brand-white-500", children: accounts.length > 1 ? /* @__PURE__ */ jsxs29(Fragment11, { children: [
|
|
4021
4081
|
accounts.length,
|
|
4022
4082
|
" wallets"
|
|
4023
|
-
] }) : /* @__PURE__ */
|
|
4024
|
-
/* @__PURE__ */
|
|
4083
|
+
] }) : /* @__PURE__ */ jsx41(Fragment11, { children: shortenAccountAddress((_b = (_a = accounts[0]) == null ? void 0 : _a.address) != null ? _b : "") || "--" }) }),
|
|
4084
|
+
/* @__PURE__ */ jsx41("span", { className: "text-xs text-start h-[1rem] font-medium inline-flex items-center gap-[0.125rem] text-brand-black-100", children: "Connected" })
|
|
4025
4085
|
] })
|
|
4026
|
-
] }) : /* @__PURE__ */
|
|
4027
|
-
/* @__PURE__ */
|
|
4086
|
+
] }) : /* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-[0.625rem] select-none", children: [
|
|
4087
|
+
/* @__PURE__ */ jsx41(
|
|
4028
4088
|
IconButton,
|
|
4029
4089
|
{
|
|
4030
4090
|
disabled: true,
|
|
@@ -4032,22 +4092,22 @@ var AccountStack = React14.forwardRef(
|
|
|
4032
4092
|
variant: "level_2",
|
|
4033
4093
|
rounded: "full",
|
|
4034
4094
|
size: "sm",
|
|
4035
|
-
children: /* @__PURE__ */
|
|
4095
|
+
children: /* @__PURE__ */ jsx41(Wallet_default, { className: "size-5" })
|
|
4036
4096
|
}
|
|
4037
4097
|
),
|
|
4038
|
-
/* @__PURE__ */
|
|
4098
|
+
/* @__PURE__ */ jsx41("p", { className: "text-base font-medium text-brand-white-100", children: "Connect Your Wallet" })
|
|
4039
4099
|
] }) });
|
|
4040
4100
|
}
|
|
4041
4101
|
);
|
|
4042
4102
|
AccountStack.displayName = "AccountStack";
|
|
4043
4103
|
var WalletHeaderTabs = React14.forwardRef((_a, ref) => {
|
|
4044
4104
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
4045
|
-
return /* @__PURE__ */
|
|
4105
|
+
return /* @__PURE__ */ jsx41(Tabs, __spreadProps(__spreadValues({ ref, className: cn("gap-0 pt-3", className) }, props), { children }));
|
|
4046
4106
|
});
|
|
4047
4107
|
WalletHeaderTabs.displayName = "WalletHeaderTabs";
|
|
4048
4108
|
var WalletHeaderTabsList = React14.forwardRef((_a, ref) => {
|
|
4049
4109
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
4050
|
-
return /* @__PURE__ */
|
|
4110
|
+
return /* @__PURE__ */ jsx41(
|
|
4051
4111
|
TabsList2,
|
|
4052
4112
|
__spreadProps(__spreadValues({
|
|
4053
4113
|
ref,
|
|
@@ -4060,7 +4120,7 @@ var WalletHeaderTabsList = React14.forwardRef((_a, ref) => {
|
|
|
4060
4120
|
WalletHeaderTabsList.displayName = "WalletHeaderTabsList";
|
|
4061
4121
|
var WalletHeaderTabItem = React14.forwardRef((_a, ref) => {
|
|
4062
4122
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
4063
|
-
return /* @__PURE__ */
|
|
4123
|
+
return /* @__PURE__ */ jsx41(
|
|
4064
4124
|
TabItem,
|
|
4065
4125
|
__spreadProps(__spreadValues({
|
|
4066
4126
|
ref,
|
|
@@ -4076,7 +4136,7 @@ var WalletHeaderTabItem = React14.forwardRef((_a, ref) => {
|
|
|
4076
4136
|
WalletHeaderTabItem.displayName = "WalletHeaderTabItem";
|
|
4077
4137
|
var WalletHeaderTabsContent = React14.forwardRef((_a, ref) => {
|
|
4078
4138
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
4079
|
-
return /* @__PURE__ */
|
|
4139
|
+
return /* @__PURE__ */ jsx41(
|
|
4080
4140
|
TabsContent,
|
|
4081
4141
|
__spreadProps(__spreadValues({
|
|
4082
4142
|
ref,
|
|
@@ -4091,7 +4151,7 @@ var WalletHeaderContentBlur = React14.forwardRef((_a, ref) => {
|
|
|
4091
4151
|
var _b = _a, { className, children, asChild = false } = _b, props = __objRest(_b, ["className", "children", "asChild"]);
|
|
4092
4152
|
const { show: open } = useWalletHeader();
|
|
4093
4153
|
const Comp = asChild ? Slot10 : "div";
|
|
4094
|
-
return /* @__PURE__ */
|
|
4154
|
+
return /* @__PURE__ */ jsx41(
|
|
4095
4155
|
Comp,
|
|
4096
4156
|
__spreadProps(__spreadValues({
|
|
4097
4157
|
ref,
|
|
@@ -4110,15 +4170,15 @@ var WalletHeaderContentBlur = React14.forwardRef((_a, ref) => {
|
|
|
4110
4170
|
WalletHeaderContentBlur.displayName = "WalletHeaderContentBlur";
|
|
4111
4171
|
|
|
4112
4172
|
// src/components/navigation/header.tsx
|
|
4113
|
-
import { jsx as
|
|
4173
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
4114
4174
|
function HeaderGradient() {
|
|
4115
|
-
return /* @__PURE__ */
|
|
4175
|
+
return /* @__PURE__ */ jsx42("div", { className: "absolute inset-0 h-[3px] bg-gradient-brand-animated" });
|
|
4116
4176
|
}
|
|
4117
4177
|
function HeaderContent({
|
|
4118
4178
|
children,
|
|
4119
4179
|
className
|
|
4120
4180
|
}) {
|
|
4121
|
-
return /* @__PURE__ */
|
|
4181
|
+
return /* @__PURE__ */ jsx42(
|
|
4122
4182
|
"div",
|
|
4123
4183
|
{
|
|
4124
4184
|
className: cn(
|
|
@@ -4133,7 +4193,7 @@ function Header({
|
|
|
4133
4193
|
children,
|
|
4134
4194
|
className
|
|
4135
4195
|
}) {
|
|
4136
|
-
return /* @__PURE__ */
|
|
4196
|
+
return /* @__PURE__ */ jsx42(
|
|
4137
4197
|
"header",
|
|
4138
4198
|
{
|
|
4139
4199
|
className: cn(
|
|
@@ -4146,7 +4206,7 @@ function Header({
|
|
|
4146
4206
|
}
|
|
4147
4207
|
|
|
4148
4208
|
// src/components/navigation/tabs.tsx
|
|
4149
|
-
import { jsx as
|
|
4209
|
+
import { jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4150
4210
|
function TabAltHeader({
|
|
4151
4211
|
label,
|
|
4152
4212
|
isNew,
|
|
@@ -4154,7 +4214,7 @@ function TabAltHeader({
|
|
|
4154
4214
|
onClick,
|
|
4155
4215
|
className = ""
|
|
4156
4216
|
}) {
|
|
4157
|
-
return /* @__PURE__ */
|
|
4217
|
+
return /* @__PURE__ */ jsx43(
|
|
4158
4218
|
"button",
|
|
4159
4219
|
{
|
|
4160
4220
|
type: "button",
|
|
@@ -4164,9 +4224,9 @@ function TabAltHeader({
|
|
|
4164
4224
|
isActive ? "text-white" : "text-brand-black-100 hover:text-white",
|
|
4165
4225
|
className
|
|
4166
4226
|
),
|
|
4167
|
-
children: /* @__PURE__ */
|
|
4168
|
-
/* @__PURE__ */
|
|
4169
|
-
isNew && /* @__PURE__ */
|
|
4227
|
+
children: /* @__PURE__ */ jsxs30("span", { className: "relative z-10 flex items-center gap-2", children: [
|
|
4228
|
+
/* @__PURE__ */ jsx43("span", { className: "font-medium", children: label }),
|
|
4229
|
+
isNew && /* @__PURE__ */ jsx43("span", { className: "text-brand-warning-500 caption-text absolute top-0 left-[100%] w-max", children: "New" })
|
|
4170
4230
|
] })
|
|
4171
4231
|
}
|
|
4172
4232
|
);
|
|
@@ -4175,13 +4235,13 @@ function TabAltHeaders({
|
|
|
4175
4235
|
children,
|
|
4176
4236
|
className = ""
|
|
4177
4237
|
}) {
|
|
4178
|
-
return /* @__PURE__ */
|
|
4238
|
+
return /* @__PURE__ */ jsx43("div", { className: cn("flex space-x-3 mb-6", className), children });
|
|
4179
4239
|
}
|
|
4180
4240
|
function TabAltContent({
|
|
4181
4241
|
children,
|
|
4182
4242
|
className = ""
|
|
4183
4243
|
}) {
|
|
4184
|
-
return /* @__PURE__ */
|
|
4244
|
+
return /* @__PURE__ */ jsx43("div", { className, children });
|
|
4185
4245
|
}
|
|
4186
4246
|
function TabAltPanel({
|
|
4187
4247
|
id,
|
|
@@ -4190,66 +4250,13 @@ function TabAltPanel({
|
|
|
4190
4250
|
className = ""
|
|
4191
4251
|
}) {
|
|
4192
4252
|
if (activeTab !== id) return null;
|
|
4193
|
-
return /* @__PURE__ */
|
|
4253
|
+
return /* @__PURE__ */ jsx43("div", { className, children }, id);
|
|
4194
4254
|
}
|
|
4195
4255
|
function TabAlt({
|
|
4196
4256
|
children,
|
|
4197
4257
|
className = ""
|
|
4198
4258
|
}) {
|
|
4199
|
-
return /* @__PURE__ */
|
|
4200
|
-
}
|
|
4201
|
-
|
|
4202
|
-
// src/@/ui/tooltip.tsx
|
|
4203
|
-
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
4204
|
-
import { jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4205
|
-
function TooltipProvider(_a) {
|
|
4206
|
-
var _b = _a, {
|
|
4207
|
-
delayDuration = 0
|
|
4208
|
-
} = _b, props = __objRest(_b, [
|
|
4209
|
-
"delayDuration"
|
|
4210
|
-
]);
|
|
4211
|
-
return /* @__PURE__ */ jsx43(
|
|
4212
|
-
TooltipPrimitive.Provider,
|
|
4213
|
-
__spreadValues({
|
|
4214
|
-
"data-slot": "tooltip-provider",
|
|
4215
|
-
delayDuration
|
|
4216
|
-
}, props)
|
|
4217
|
-
);
|
|
4218
|
-
}
|
|
4219
|
-
function Tooltip(_a) {
|
|
4220
|
-
var props = __objRest(_a, []);
|
|
4221
|
-
return /* @__PURE__ */ jsx43(TooltipProvider, { children: /* @__PURE__ */ jsx43(TooltipPrimitive.Root, __spreadValues({ "data-slot": "tooltip" }, props)) });
|
|
4222
|
-
}
|
|
4223
|
-
function TooltipTrigger(_a) {
|
|
4224
|
-
var props = __objRest(_a, []);
|
|
4225
|
-
return /* @__PURE__ */ jsx43(TooltipPrimitive.Trigger, __spreadValues({ "data-slot": "tooltip-trigger" }, props));
|
|
4226
|
-
}
|
|
4227
|
-
function TooltipContent(_a) {
|
|
4228
|
-
var _b = _a, {
|
|
4229
|
-
className,
|
|
4230
|
-
sideOffset = 0,
|
|
4231
|
-
children
|
|
4232
|
-
} = _b, props = __objRest(_b, [
|
|
4233
|
-
"className",
|
|
4234
|
-
"sideOffset",
|
|
4235
|
-
"children"
|
|
4236
|
-
]);
|
|
4237
|
-
return /* @__PURE__ */ jsx43(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs30(
|
|
4238
|
-
TooltipPrimitive.Content,
|
|
4239
|
-
__spreadProps(__spreadValues({
|
|
4240
|
-
"data-slot": "tooltip-content",
|
|
4241
|
-
sideOffset,
|
|
4242
|
-
className: cn(
|
|
4243
|
-
"bg-brand-black-600 text-brand-black-100 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
4244
|
-
className
|
|
4245
|
-
)
|
|
4246
|
-
}, props), {
|
|
4247
|
-
children: [
|
|
4248
|
-
children,
|
|
4249
|
-
/* @__PURE__ */ jsx43(TooltipPrimitive.Arrow, { className: "bg-brand-black-600 fill-brand-black-600 z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
4250
|
-
]
|
|
4251
|
-
})
|
|
4252
|
-
) });
|
|
4259
|
+
return /* @__PURE__ */ jsx43("div", { className: cn("w-full", className), children });
|
|
4253
4260
|
}
|
|
4254
4261
|
|
|
4255
4262
|
// src/components/organisms/settings.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperbridge/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"typescript": "5.8.3",
|
|
34
34
|
"vite": "^6.3.4",
|
|
35
35
|
"vitest": "^3.1.2",
|
|
36
|
-
"@repo/
|
|
37
|
-
"@repo/
|
|
36
|
+
"@repo/eslint-config": "0.0.0",
|
|
37
|
+
"@repo/typescript-config": "0.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@radix-ui/react-dialog": "^1.1.14",
|