@hyperbridge/ui 0.0.31 → 0.0.33
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/{chunk-Z3U6XEBY.mjs → chunk-VAQN7OAZ.mjs} +0 -1
- package/dist/icons/index.mjs +1 -1
- package/dist/index.d.mts +70 -3
- package/dist/index.mjs +670 -344
- package/package.json +1 -1
- package/styles/base.css +6 -0
package/dist/index.mjs
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
__objRest,
|
|
31
31
|
__spreadProps,
|
|
32
32
|
__spreadValues
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VAQN7OAZ.mjs";
|
|
34
34
|
|
|
35
35
|
// src/components/atoms/search-input.tsx
|
|
36
36
|
import { cva } from "class-variance-authority";
|
|
@@ -183,7 +183,10 @@ function BadgeIcon(props) {
|
|
|
183
183
|
{
|
|
184
184
|
"data-chain": "true",
|
|
185
185
|
"data-token": "BNC",
|
|
186
|
-
className:
|
|
186
|
+
className: cn(
|
|
187
|
+
"relative rounded-full w-[var(--badge-size)] h-[var(--badge-size)] shrink-0",
|
|
188
|
+
props.className
|
|
189
|
+
),
|
|
187
190
|
style: {
|
|
188
191
|
fontSize: size,
|
|
189
192
|
"--badge-size": size
|
|
@@ -3059,10 +3062,166 @@ var ReviewItemCopyAddressButton = React10.forwardRef((props, ref) => {
|
|
|
3059
3062
|
);
|
|
3060
3063
|
});
|
|
3061
3064
|
|
|
3065
|
+
// src/components/molecules/swap-review-item.tsx
|
|
3066
|
+
import { Loader2Icon } from "lucide-react";
|
|
3067
|
+
import React11 from "react";
|
|
3068
|
+
import { jsx as jsx31, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3069
|
+
function SwapReviewItem(props) {
|
|
3070
|
+
const addressButton = props.addressButton;
|
|
3071
|
+
const { pendingMode = "idle" } = props;
|
|
3072
|
+
return /* @__PURE__ */ jsxs22("li", { className: "font-medium text-brand-black-100 items-center w-full h-[calc(48rem/16)] flex gap-[1rem]", children: [
|
|
3073
|
+
/* @__PURE__ */ jsx31(BadgeIcon, __spreadValues({ size: "2.5rem" }, props.badge)),
|
|
3074
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex-1 text-start flex flex-col", children: [
|
|
3075
|
+
/* @__PURE__ */ jsx31("span", { className: "text-[calc(12rem/16)] leading-[1rem]", children: props.tag === "from" ? "Amount in" : "Amount out" }),
|
|
3076
|
+
/* @__PURE__ */ jsxs22(
|
|
3077
|
+
"span",
|
|
3078
|
+
{
|
|
3079
|
+
className: cn(
|
|
3080
|
+
"text-[calc(20rem/16)] leading-[1.25] text-brand-white-500",
|
|
3081
|
+
{
|
|
3082
|
+
"text-brand-success-400": pendingMode === "complete" && props.tag === "to"
|
|
3083
|
+
}
|
|
3084
|
+
),
|
|
3085
|
+
children: [
|
|
3086
|
+
props.asset.amount,
|
|
3087
|
+
" ",
|
|
3088
|
+
props.asset.symbol
|
|
3089
|
+
]
|
|
3090
|
+
}
|
|
3091
|
+
)
|
|
3092
|
+
] }),
|
|
3093
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex self-stretch items-end text-end shrink-0", children: [
|
|
3094
|
+
/* @__PURE__ */ jsx31(if_default, { cond: props.variant === "processing", children: /* @__PURE__ */ jsx31(
|
|
3095
|
+
"span",
|
|
3096
|
+
{
|
|
3097
|
+
className: cn(
|
|
3098
|
+
"transition-all opacity-0 translate-y-full delay-200 transform mb-1 text-[calc(12rem/16)] leading-[1rem] duration-400 ease-fluid",
|
|
3099
|
+
{
|
|
3100
|
+
"opacity-100 translate-y-0 delay-100": props.asset.secondaryValue !== null,
|
|
3101
|
+
"text-brand-success-400": pendingMode === "complete" && props.tag === "to"
|
|
3102
|
+
}
|
|
3103
|
+
),
|
|
3104
|
+
children: props.asset.secondaryValue
|
|
3105
|
+
}
|
|
3106
|
+
) }),
|
|
3107
|
+
/* @__PURE__ */ jsx31(if_default, { cond: props.variant === "reviewing", children: /* @__PURE__ */ jsxs22("div", { className: "flex flex-col items-end gap-1.5", children: [
|
|
3108
|
+
addressButton,
|
|
3109
|
+
/* @__PURE__ */ jsxs22("span", { className: "text-[calc(11rem/16)] text-brand-black-100 px-2", children: [
|
|
3110
|
+
props.wallet.networkName,
|
|
3111
|
+
" wallet"
|
|
3112
|
+
] })
|
|
3113
|
+
] }) })
|
|
3114
|
+
] })
|
|
3115
|
+
] });
|
|
3116
|
+
}
|
|
3117
|
+
var SwapReviewCopyAddressButton = React11.forwardRef(function SwapReviewCopyAddressButton2(props, ref) {
|
|
3118
|
+
return /* @__PURE__ */ jsx31(
|
|
3119
|
+
ReviewItemCopyAddressButton,
|
|
3120
|
+
__spreadValues({
|
|
3121
|
+
ref,
|
|
3122
|
+
className: "bg-brand-black-500"
|
|
3123
|
+
}, props)
|
|
3124
|
+
);
|
|
3125
|
+
});
|
|
3126
|
+
var SwapReviewItemAddress = React11.forwardRef((props, ref) => {
|
|
3127
|
+
const _a = props, { address, tag } = _a, PROPS = __objRest(_a, ["address", "tag"]);
|
|
3128
|
+
return /* @__PURE__ */ jsx31(
|
|
3129
|
+
"span",
|
|
3130
|
+
__spreadProps(__spreadValues({
|
|
3131
|
+
ref
|
|
3132
|
+
}, PROPS), {
|
|
3133
|
+
className: cn(
|
|
3134
|
+
"rounded-full px-[6px] py-[3px] text-[calc(14rem/16)] inline-flex items-center gap-[calc(4rem/16)] bg-brand-black-300",
|
|
3135
|
+
props.className
|
|
3136
|
+
),
|
|
3137
|
+
children: /* @__PURE__ */ jsx31("span", { className: "text-[calc(12rem/16)] not-sr-only leading-[1rem] text-brand-white-500", children: address })
|
|
3138
|
+
})
|
|
3139
|
+
);
|
|
3140
|
+
});
|
|
3141
|
+
function SwapReviewRoot(props) {
|
|
3142
|
+
return /* @__PURE__ */ jsx31(
|
|
3143
|
+
"section",
|
|
3144
|
+
{
|
|
3145
|
+
className: "select-none flex max-w-[25rem] flex-col gap-2 rounded-xl bg-brand-black-550 py-5 px-3.5",
|
|
3146
|
+
style: {
|
|
3147
|
+
// @ts-expect-error Not fully supported in modern browsers
|
|
3148
|
+
cornerShape: "superellipse(1.2)"
|
|
3149
|
+
},
|
|
3150
|
+
children: props.children
|
|
3151
|
+
}
|
|
3152
|
+
);
|
|
3153
|
+
}
|
|
3154
|
+
function SwapReviewSeperator(props) {
|
|
3155
|
+
return /* @__PURE__ */ jsxs22("div", { className: "overflow-x-hidden relative flex items-center justify-center", children: [
|
|
3156
|
+
/* @__PURE__ */ jsx31("div", { className: "border-dashed border-brand-black-200 z-10 absolute inset-x-0 border-b" }),
|
|
3157
|
+
/* @__PURE__ */ jsx31(
|
|
3158
|
+
"div",
|
|
3159
|
+
{
|
|
3160
|
+
className: "z-20 absolute inset-0",
|
|
3161
|
+
style: {
|
|
3162
|
+
backgroundImage: "linear-gradient(45deg, transparent 10%, var(--color-brand-black-550) 40%,var(--color-brand-black-550), var(--color-brand-black-550) 60%,transparent)"
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
),
|
|
3166
|
+
/* @__PURE__ */ jsx31("div", { className: "self-center place-self-center relative z-30", children: props.children })
|
|
3167
|
+
] });
|
|
3168
|
+
}
|
|
3169
|
+
function SwapReviewSeperatorStatus(props) {
|
|
3170
|
+
const { mode } = props;
|
|
3171
|
+
const isLoading = mode === "processing";
|
|
3172
|
+
const isIdle = mode === "idle";
|
|
3173
|
+
return /* @__PURE__ */ jsxs22(
|
|
3174
|
+
"span",
|
|
3175
|
+
{
|
|
3176
|
+
className: cn(
|
|
3177
|
+
"bg-[#1E2227] z-30 transition-all relative duration-[400ms] ease-fluid flex rounded-full py-1.5 px-2.5 items-center overflow-hidden",
|
|
3178
|
+
{
|
|
3179
|
+
"pr-6": !isIdle
|
|
3180
|
+
}
|
|
3181
|
+
),
|
|
3182
|
+
children: [
|
|
3183
|
+
/* @__PURE__ */ jsx31(
|
|
3184
|
+
"span",
|
|
3185
|
+
{
|
|
3186
|
+
className: cn("text-xs text-brand-black-100", {
|
|
3187
|
+
"text-white": mode === "complete"
|
|
3188
|
+
}),
|
|
3189
|
+
children: mode === "processing" ? "Swapping" : "Swapped"
|
|
3190
|
+
}
|
|
3191
|
+
),
|
|
3192
|
+
/* @__PURE__ */ jsx31("span", { role: "presentation", className: "absolute end-2.5", children: /* @__PURE__ */ jsxs22("span", { className: "text-[0.65625rem] size-[1em] flex items-center justify-center *:absolute *:left-0 *:top-0 relative", children: [
|
|
3193
|
+
/* @__PURE__ */ jsx31(
|
|
3194
|
+
Loader2Icon,
|
|
3195
|
+
{
|
|
3196
|
+
className: cn(
|
|
3197
|
+
"transition-all ease-fluid opacity-0 delay-0 duration-[400ms] animate-spin size-[1em]",
|
|
3198
|
+
{
|
|
3199
|
+
"opacity-100 delay-200": isLoading
|
|
3200
|
+
}
|
|
3201
|
+
)
|
|
3202
|
+
}
|
|
3203
|
+
),
|
|
3204
|
+
/* @__PURE__ */ jsx31(
|
|
3205
|
+
Check_default,
|
|
3206
|
+
{
|
|
3207
|
+
className: cn(
|
|
3208
|
+
"text-brand-success-400 opacity-0 transition-default -rotate-45 transform",
|
|
3209
|
+
{
|
|
3210
|
+
"opacity-100 rotate-0": mode === "complete"
|
|
3211
|
+
}
|
|
3212
|
+
)
|
|
3213
|
+
}
|
|
3214
|
+
)
|
|
3215
|
+
] }) })
|
|
3216
|
+
]
|
|
3217
|
+
}
|
|
3218
|
+
);
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3062
3221
|
// src/components/molecules/dialog.tsx
|
|
3063
3222
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
3064
|
-
import
|
|
3065
|
-
import { Fragment as Fragment7, jsx as
|
|
3223
|
+
import React12 from "react";
|
|
3224
|
+
import { Fragment as Fragment7, jsx as jsx32, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3066
3225
|
function DialogMorphContent(_a) {
|
|
3067
3226
|
var _b = _a, {
|
|
3068
3227
|
className,
|
|
@@ -3075,8 +3234,8 @@ function DialogMorphContent(_a) {
|
|
|
3075
3234
|
"showCloseButton",
|
|
3076
3235
|
"onInteractOutside"
|
|
3077
3236
|
]);
|
|
3078
|
-
const [mode, setViewMode] =
|
|
3079
|
-
|
|
3237
|
+
const [mode, setViewMode] = React12.useState("card");
|
|
3238
|
+
React12.useEffect(() => {
|
|
3080
3239
|
const controller = new AbortController();
|
|
3081
3240
|
const signal = controller.signal;
|
|
3082
3241
|
const checkOrientation = () => {
|
|
@@ -3102,7 +3261,7 @@ function DialogMorphContent(_a) {
|
|
|
3102
3261
|
event.preventDefault();
|
|
3103
3262
|
}
|
|
3104
3263
|
};
|
|
3105
|
-
const Content9 = /* @__PURE__ */
|
|
3264
|
+
const Content9 = /* @__PURE__ */ jsxs23(
|
|
3106
3265
|
DialogPrimitive2.Content,
|
|
3107
3266
|
__spreadProps(__spreadValues({
|
|
3108
3267
|
onInteractOutside: handleInteractOutside,
|
|
@@ -3118,48 +3277,48 @@ function DialogMorphContent(_a) {
|
|
|
3118
3277
|
}, props), {
|
|
3119
3278
|
children: [
|
|
3120
3279
|
children,
|
|
3121
|
-
showCloseButton && /* @__PURE__ */
|
|
3280
|
+
showCloseButton && /* @__PURE__ */ jsxs23(
|
|
3122
3281
|
DialogPrimitive2.Close,
|
|
3123
3282
|
{
|
|
3124
3283
|
"data-slot": "dialog-close",
|
|
3125
3284
|
className: "ring-offset-background cursor-pointer w-[calc(32rem/16)] inline-flex items-center justify-center rounded-full text-brand-black-100 aspect-square focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3126
3285
|
children: [
|
|
3127
|
-
/* @__PURE__ */
|
|
3128
|
-
/* @__PURE__ */
|
|
3286
|
+
/* @__PURE__ */ jsx32(XIcon_default, { width: "1rem", height: "1rem" }),
|
|
3287
|
+
/* @__PURE__ */ jsx32("span", { className: "sr-only", children: "Close" })
|
|
3129
3288
|
]
|
|
3130
3289
|
}
|
|
3131
3290
|
)
|
|
3132
3291
|
]
|
|
3133
3292
|
})
|
|
3134
3293
|
);
|
|
3135
|
-
return /* @__PURE__ */
|
|
3136
|
-
/* @__PURE__ */
|
|
3137
|
-
mode === "card" ? /* @__PURE__ */
|
|
3294
|
+
return /* @__PURE__ */ jsxs23(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
3295
|
+
/* @__PURE__ */ jsx32(DialogOverlay, {}),
|
|
3296
|
+
mode === "card" ? /* @__PURE__ */ jsx32(SmoothCorners, { children: Content9 }) : /* @__PURE__ */ jsx32(Fragment7, { children: Content9 })
|
|
3138
3297
|
] });
|
|
3139
3298
|
}
|
|
3140
3299
|
|
|
3141
3300
|
// src/components/molecules/manage-wallet.tsx
|
|
3142
|
-
import
|
|
3301
|
+
import React13 from "react";
|
|
3143
3302
|
import { Slot as Slot8 } from "@radix-ui/react-slot";
|
|
3144
|
-
import { jsx as
|
|
3303
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3145
3304
|
function WalletManagerUIProvider(props) {
|
|
3146
3305
|
const { expand: open = false, children } = props;
|
|
3147
|
-
const [show, setShow] =
|
|
3148
|
-
return /* @__PURE__ */
|
|
3306
|
+
const [show, setShow] = React13.useState(open);
|
|
3307
|
+
return /* @__PURE__ */ jsx33(WalletManagerContext.Provider, { value: { show, setShow }, children });
|
|
3149
3308
|
}
|
|
3150
|
-
var WalletManagerContext =
|
|
3309
|
+
var WalletManagerContext = React13.createContext({
|
|
3151
3310
|
show: false,
|
|
3152
3311
|
// @ts-expect-error
|
|
3153
|
-
setShow:
|
|
3312
|
+
setShow: React13.Dispatch
|
|
3154
3313
|
});
|
|
3155
3314
|
function useManager() {
|
|
3156
|
-
return
|
|
3315
|
+
return React13.useContext(WalletManagerContext);
|
|
3157
3316
|
}
|
|
3158
3317
|
function WalletManagerUIContent({
|
|
3159
3318
|
children
|
|
3160
3319
|
}) {
|
|
3161
3320
|
const { show } = useManager();
|
|
3162
|
-
return /* @__PURE__ */
|
|
3321
|
+
return /* @__PURE__ */ jsx33(
|
|
3163
3322
|
Slot8,
|
|
3164
3323
|
{
|
|
3165
3324
|
className: cn("transition-all pt-[1rem] flex-1", {
|
|
@@ -3175,14 +3334,14 @@ import { InfoIcon } from "lucide-react";
|
|
|
3175
3334
|
|
|
3176
3335
|
// src/@/ui/tooltip.tsx
|
|
3177
3336
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3178
|
-
import { jsx as
|
|
3337
|
+
import { jsx as jsx34, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3179
3338
|
function TooltipProvider(_a) {
|
|
3180
3339
|
var _b = _a, {
|
|
3181
3340
|
delayDuration = 0
|
|
3182
3341
|
} = _b, props = __objRest(_b, [
|
|
3183
3342
|
"delayDuration"
|
|
3184
3343
|
]);
|
|
3185
|
-
return /* @__PURE__ */
|
|
3344
|
+
return /* @__PURE__ */ jsx34(
|
|
3186
3345
|
TooltipPrimitive.Provider,
|
|
3187
3346
|
__spreadValues({
|
|
3188
3347
|
"data-slot": "tooltip-provider",
|
|
@@ -3192,11 +3351,11 @@ function TooltipProvider(_a) {
|
|
|
3192
3351
|
}
|
|
3193
3352
|
function Tooltip(_a) {
|
|
3194
3353
|
var props = __objRest(_a, []);
|
|
3195
|
-
return /* @__PURE__ */
|
|
3354
|
+
return /* @__PURE__ */ jsx34(TooltipProvider, { children: /* @__PURE__ */ jsx34(TooltipPrimitive.Root, __spreadValues({ "data-slot": "tooltip" }, props)) });
|
|
3196
3355
|
}
|
|
3197
3356
|
function TooltipTrigger(_a) {
|
|
3198
3357
|
var props = __objRest(_a, []);
|
|
3199
|
-
return /* @__PURE__ */
|
|
3358
|
+
return /* @__PURE__ */ jsx34(TooltipPrimitive.Trigger, __spreadValues({ "data-slot": "tooltip-trigger" }, props));
|
|
3200
3359
|
}
|
|
3201
3360
|
function TooltipContent(_a) {
|
|
3202
3361
|
var _b = _a, {
|
|
@@ -3208,7 +3367,7 @@ function TooltipContent(_a) {
|
|
|
3208
3367
|
"sideOffset",
|
|
3209
3368
|
"children"
|
|
3210
3369
|
]);
|
|
3211
|
-
return /* @__PURE__ */
|
|
3370
|
+
return /* @__PURE__ */ jsx34(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs24(
|
|
3212
3371
|
TooltipPrimitive.Content,
|
|
3213
3372
|
__spreadProps(__spreadValues({
|
|
3214
3373
|
"data-slot": "tooltip-content",
|
|
@@ -3220,31 +3379,31 @@ function TooltipContent(_a) {
|
|
|
3220
3379
|
}, props), {
|
|
3221
3380
|
children: [
|
|
3222
3381
|
children,
|
|
3223
|
-
/* @__PURE__ */
|
|
3382
|
+
/* @__PURE__ */ jsx34(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]" })
|
|
3224
3383
|
]
|
|
3225
3384
|
})
|
|
3226
3385
|
) });
|
|
3227
3386
|
}
|
|
3228
3387
|
|
|
3229
3388
|
// src/components/molecules/summary.tsx
|
|
3230
|
-
import { jsx as
|
|
3389
|
+
import { jsx as jsx35, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3231
3390
|
function Summary(props) {
|
|
3232
|
-
return /* @__PURE__ */
|
|
3391
|
+
return /* @__PURE__ */ jsx35("div", { className: "flex flex-col gap-2 text-brand-black-100", children: props.children });
|
|
3233
3392
|
}
|
|
3234
3393
|
function SummaryEntry(props) {
|
|
3235
3394
|
var _a;
|
|
3236
3395
|
const Icon = props.icon;
|
|
3237
|
-
const tooltip = typeof props.tooltip === "string" ? /* @__PURE__ */
|
|
3238
|
-
/* @__PURE__ */
|
|
3239
|
-
/* @__PURE__ */
|
|
3396
|
+
const tooltip = typeof props.tooltip === "string" ? /* @__PURE__ */ jsxs25(Tooltip, { children: [
|
|
3397
|
+
/* @__PURE__ */ jsx35(TooltipTrigger, { children: /* @__PURE__ */ jsx35(InfoIcon, { size: "1em" }) }),
|
|
3398
|
+
/* @__PURE__ */ jsx35(TooltipContent, { children: props.tooltip })
|
|
3240
3399
|
] }) : (_a = props.tooltip) != null ? _a : null;
|
|
3241
|
-
return /* @__PURE__ */
|
|
3242
|
-
/* @__PURE__ */
|
|
3243
|
-
/* @__PURE__ */
|
|
3244
|
-
/* @__PURE__ */
|
|
3400
|
+
return /* @__PURE__ */ jsxs25("div", { className: "flex select-none items-center text-[calc(12rem/16)] font-medium", children: [
|
|
3401
|
+
/* @__PURE__ */ jsxs25("dt", { className: "flex-1 gap-1 flex items-center", children: [
|
|
3402
|
+
/* @__PURE__ */ jsx35(Icon, { size: "1.16em" }),
|
|
3403
|
+
/* @__PURE__ */ jsx35("span", { className: "text-[1em] leading-[1rem]", children: props.name }),
|
|
3245
3404
|
tooltip
|
|
3246
3405
|
] }),
|
|
3247
|
-
/* @__PURE__ */
|
|
3406
|
+
/* @__PURE__ */ jsx35("dd", { children: props.children })
|
|
3248
3407
|
] });
|
|
3249
3408
|
}
|
|
3250
3409
|
function makeEntry({
|
|
@@ -3256,7 +3415,7 @@ function makeEntry({
|
|
|
3256
3415
|
children,
|
|
3257
3416
|
tooltip: overwriteTooltip
|
|
3258
3417
|
}) {
|
|
3259
|
-
return /* @__PURE__ */
|
|
3418
|
+
return /* @__PURE__ */ jsx35(
|
|
3260
3419
|
SummaryEntry,
|
|
3261
3420
|
{
|
|
3262
3421
|
icon,
|
|
@@ -3269,39 +3428,39 @@ function makeEntry({
|
|
|
3269
3428
|
};
|
|
3270
3429
|
}
|
|
3271
3430
|
var Bridge = makeEntry({
|
|
3272
|
-
icon: ({ size }) => /* @__PURE__ */
|
|
3431
|
+
icon: ({ size }) => /* @__PURE__ */ jsx35(Percent_default, { width: size }),
|
|
3273
3432
|
name: "Bridge fee"
|
|
3274
3433
|
});
|
|
3275
3434
|
var RecipientAddress = makeEntry({
|
|
3276
|
-
icon: ({ size }) => /* @__PURE__ */
|
|
3435
|
+
icon: ({ size }) => /* @__PURE__ */ jsx35(Wallet_default, { width: size }),
|
|
3277
3436
|
name: "Recipient Address"
|
|
3278
3437
|
});
|
|
3279
3438
|
var GasEntry = makeEntry({
|
|
3280
|
-
icon: ({ size }) => /* @__PURE__ */
|
|
3439
|
+
icon: ({ size }) => /* @__PURE__ */ jsx35(Gas_default, { width: size }),
|
|
3281
3440
|
name: "Gas costs"
|
|
3282
3441
|
});
|
|
3283
3442
|
var SpillageTolerance = makeEntry({
|
|
3284
|
-
icon: ({ size }) => /* @__PURE__ */
|
|
3443
|
+
icon: ({ size }) => /* @__PURE__ */ jsx35(ArrowBottomTop_default, { width: size }),
|
|
3285
3444
|
name: "Spillage tolerance"
|
|
3286
3445
|
});
|
|
3287
3446
|
var Route = makeEntry({
|
|
3288
|
-
icon: ({ size }) => /* @__PURE__ */
|
|
3447
|
+
icon: ({ size }) => /* @__PURE__ */ jsx35(ArrowSplit_default, { width: size }),
|
|
3289
3448
|
name: "Route"
|
|
3290
3449
|
});
|
|
3291
3450
|
var Rate = makeEntry({
|
|
3292
|
-
icon: ({ size }) => /* @__PURE__ */
|
|
3451
|
+
icon: ({ size }) => /* @__PURE__ */ jsx35(ArrowBottomTop_default, { width: size }),
|
|
3293
3452
|
name: "Rate"
|
|
3294
3453
|
});
|
|
3295
3454
|
var Fee = makeEntry({
|
|
3296
|
-
icon: ({ size }) => /* @__PURE__ */
|
|
3455
|
+
icon: ({ size }) => /* @__PURE__ */ jsx35(Gas_default, { width: size }),
|
|
3297
3456
|
name: "Fee"
|
|
3298
3457
|
});
|
|
3299
3458
|
var ETA = makeEntry({
|
|
3300
|
-
icon: ({ size }) => /* @__PURE__ */
|
|
3459
|
+
icon: ({ size }) => /* @__PURE__ */ jsx35(Clock_default, { width: size }),
|
|
3301
3460
|
name: "Estimated time"
|
|
3302
3461
|
});
|
|
3303
3462
|
var Points = makeEntry({
|
|
3304
|
-
icon: ({ size }) => /* @__PURE__ */
|
|
3463
|
+
icon: ({ size }) => /* @__PURE__ */ jsx35(Star_default, { width: size }),
|
|
3305
3464
|
name: "Points"
|
|
3306
3465
|
});
|
|
3307
3466
|
var SummaryValues = {
|
|
@@ -3318,10 +3477,10 @@ var SummaryValues = {
|
|
|
3318
3477
|
},
|
|
3319
3478
|
Values: {
|
|
3320
3479
|
Highlight: ({ children }) => {
|
|
3321
|
-
return /* @__PURE__ */
|
|
3480
|
+
return /* @__PURE__ */ jsx35("span", { className: "text-[inherit] text-brand-white-500", children });
|
|
3322
3481
|
},
|
|
3323
3482
|
Soft: ({ children }) => {
|
|
3324
|
-
return /* @__PURE__ */
|
|
3483
|
+
return /* @__PURE__ */ jsx35("span", { className: "text-[inherit]text-brand-black-50", children });
|
|
3325
3484
|
}
|
|
3326
3485
|
}
|
|
3327
3486
|
};
|
|
@@ -3330,11 +3489,11 @@ var SummaryValues = {
|
|
|
3330
3489
|
import { Slot as Slot9 } from "@radix-ui/react-slot";
|
|
3331
3490
|
import { Loader2 } from "lucide-react";
|
|
3332
3491
|
import { AnimatePresence as AnimatePresence2, motion as motion3 } from "motion/react";
|
|
3333
|
-
import
|
|
3492
|
+
import React14 from "react";
|
|
3334
3493
|
|
|
3335
3494
|
// src/@/ui/progress.tsx
|
|
3336
3495
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3337
|
-
import { jsx as
|
|
3496
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3338
3497
|
function Progress(_a) {
|
|
3339
3498
|
var _b = _a, {
|
|
3340
3499
|
className,
|
|
@@ -3343,7 +3502,7 @@ function Progress(_a) {
|
|
|
3343
3502
|
"className",
|
|
3344
3503
|
"value"
|
|
3345
3504
|
]);
|
|
3346
|
-
return /* @__PURE__ */
|
|
3505
|
+
return /* @__PURE__ */ jsx36(
|
|
3347
3506
|
ProgressPrimitive.Root,
|
|
3348
3507
|
__spreadProps(__spreadValues({
|
|
3349
3508
|
"data-slot": "progress",
|
|
@@ -3352,7 +3511,7 @@ function Progress(_a) {
|
|
|
3352
3511
|
className
|
|
3353
3512
|
)
|
|
3354
3513
|
}, props), {
|
|
3355
|
-
children: /* @__PURE__ */
|
|
3514
|
+
children: /* @__PURE__ */ jsx36(
|
|
3356
3515
|
ProgressPrimitive.Indicator,
|
|
3357
3516
|
{
|
|
3358
3517
|
"data-slot": "progress-indicator",
|
|
@@ -3365,13 +3524,13 @@ function Progress(_a) {
|
|
|
3365
3524
|
}
|
|
3366
3525
|
|
|
3367
3526
|
// src/components/molecules/timeline.tsx
|
|
3368
|
-
import { jsx as
|
|
3527
|
+
import { jsx as jsx37, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3369
3528
|
var StatusTextMap = {
|
|
3370
3529
|
processing: "Processing",
|
|
3371
3530
|
upcoming: "Upcoming",
|
|
3372
3531
|
error: "Failed"
|
|
3373
3532
|
};
|
|
3374
|
-
var TimelineItem =
|
|
3533
|
+
var TimelineItem = React14.forwardRef(function TimelineItem2(props, ref) {
|
|
3375
3534
|
var _b, _c, _d, _e;
|
|
3376
3535
|
const _a = props, {
|
|
3377
3536
|
processingStatus,
|
|
@@ -3387,17 +3546,17 @@ var TimelineItem = React13.forwardRef(function TimelineItem2(props, ref) {
|
|
|
3387
3546
|
"durationMode"
|
|
3388
3547
|
]);
|
|
3389
3548
|
const is_visually_active = processingStatus !== "upcoming";
|
|
3390
|
-
const id =
|
|
3549
|
+
const id = React14.useId();
|
|
3391
3550
|
const layoutId = `${id}/${caption}/content-2`;
|
|
3392
3551
|
const hideTime = durationMode === "none";
|
|
3393
|
-
return /* @__PURE__ */
|
|
3552
|
+
return /* @__PURE__ */ jsx37(
|
|
3394
3553
|
motion3.li,
|
|
3395
3554
|
__spreadProps(__spreadValues({
|
|
3396
3555
|
ref
|
|
3397
3556
|
}, REST), {
|
|
3398
3557
|
"data-process-status": processingStatus,
|
|
3399
3558
|
className: "block bg-brand-black-350 cursor-default select-none font-medium text-brand-white-500",
|
|
3400
|
-
children: /* @__PURE__ */
|
|
3559
|
+
children: /* @__PURE__ */ jsxs26(
|
|
3401
3560
|
motion3.div,
|
|
3402
3561
|
{
|
|
3403
3562
|
initial: { opacity: 0.5 },
|
|
@@ -3406,7 +3565,7 @@ var TimelineItem = React13.forwardRef(function TimelineItem2(props, ref) {
|
|
|
3406
3565
|
},
|
|
3407
3566
|
className: "flex h-[3.5rem] items-center gap-[0.86rem] py-[0.5625rem] px-[0.75rem] ",
|
|
3408
3567
|
children: [
|
|
3409
|
-
props.level === 0 ? /* @__PURE__ */
|
|
3568
|
+
props.level === 0 ? /* @__PURE__ */ jsx37(BadgeIcon, __spreadValues({}, props.badge)) : /* @__PURE__ */ jsx37(
|
|
3410
3569
|
IconButton,
|
|
3411
3570
|
{
|
|
3412
3571
|
variant: "level_2",
|
|
@@ -3416,7 +3575,7 @@ var TimelineItem = React13.forwardRef(function TimelineItem2(props, ref) {
|
|
|
3416
3575
|
style: {
|
|
3417
3576
|
boxShadow: "0 4px 24px 0 rgba(255, 255, 255, 0.05) inset"
|
|
3418
3577
|
},
|
|
3419
|
-
children: /* @__PURE__ */
|
|
3578
|
+
children: /* @__PURE__ */ jsx37(
|
|
3420
3579
|
"span",
|
|
3421
3580
|
{
|
|
3422
3581
|
className: cn(
|
|
@@ -3430,9 +3589,9 @@ var TimelineItem = React13.forwardRef(function TimelineItem2(props, ref) {
|
|
|
3430
3589
|
)
|
|
3431
3590
|
}
|
|
3432
3591
|
),
|
|
3433
|
-
/* @__PURE__ */
|
|
3434
|
-
/* @__PURE__ */
|
|
3435
|
-
/* @__PURE__ */
|
|
3592
|
+
/* @__PURE__ */ jsxs26("div", { className: "flex flex-col flex-1 gap-[calc(4/16rem)]", children: [
|
|
3593
|
+
/* @__PURE__ */ jsx37("div", { className: "text-brand-white-500 text-xs md:!text-base h-auto md:h-[1.25rem] truncate max-w-[150px] md:max-w-full", children: caption }),
|
|
3594
|
+
/* @__PURE__ */ jsx37("div", { className: "text-xs h-[1rem] text-brand-black-100", children: processingStatus === "completed" ? ((_b = props.data) == null ? void 0 : _b.transactionUrl) ? /* @__PURE__ */ jsxs26(
|
|
3436
3595
|
"a",
|
|
3437
3596
|
{
|
|
3438
3597
|
href: props.data.transactionUrl,
|
|
@@ -3440,14 +3599,14 @@ var TimelineItem = React13.forwardRef(function TimelineItem2(props, ref) {
|
|
|
3440
3599
|
target: "_blank",
|
|
3441
3600
|
rel: "noopener noreferrer",
|
|
3442
3601
|
children: [
|
|
3443
|
-
/* @__PURE__ */
|
|
3444
|
-
/* @__PURE__ */
|
|
3602
|
+
/* @__PURE__ */ jsx37("span", { children: "View in explorer " }),
|
|
3603
|
+
/* @__PURE__ */ jsx37(ArrowUpRight_default, { width: "0.75rem", height: "0.75rem" })
|
|
3445
3604
|
]
|
|
3446
3605
|
}
|
|
3447
|
-
) : /* @__PURE__ */
|
|
3606
|
+
) : /* @__PURE__ */ jsx37("span", { children: props.secondary }) : /* @__PURE__ */ jsx37("span", { children: (_c = props == null ? void 0 : props.secondary) != null ? _c : StatusTextMap[processingStatus] }) })
|
|
3448
3607
|
] }),
|
|
3449
|
-
/* @__PURE__ */
|
|
3450
|
-
processingStatus === "completed" ? /* @__PURE__ */
|
|
3608
|
+
/* @__PURE__ */ jsxs26(AnimatePresence2, { children: [
|
|
3609
|
+
processingStatus === "completed" ? /* @__PURE__ */ jsxs26(
|
|
3451
3610
|
motion3.div,
|
|
3452
3611
|
{
|
|
3453
3612
|
layoutId,
|
|
@@ -3456,8 +3615,8 @@ var TimelineItem = React13.forwardRef(function TimelineItem2(props, ref) {
|
|
|
3456
3615
|
exit: { x: 10, opacity: 0 },
|
|
3457
3616
|
className: "flex gap-[calc(8rem/16)] items-center",
|
|
3458
3617
|
children: [
|
|
3459
|
-
!hideTime && /* @__PURE__ */
|
|
3460
|
-
/* @__PURE__ */
|
|
3618
|
+
!hideTime && /* @__PURE__ */ jsx37("span", { className: "text-[calc(13rem/16)] text-brand-black-100", children: (_d = props == null ? void 0 : props.data) == null ? void 0 : _d.completedIn }),
|
|
3619
|
+
/* @__PURE__ */ jsx37(
|
|
3461
3620
|
Check_default,
|
|
3462
3621
|
{
|
|
3463
3622
|
height: "1rem",
|
|
@@ -3468,7 +3627,7 @@ var TimelineItem = React13.forwardRef(function TimelineItem2(props, ref) {
|
|
|
3468
3627
|
]
|
|
3469
3628
|
}
|
|
3470
3629
|
) : null,
|
|
3471
|
-
processingStatus === "processing" ? /* @__PURE__ */
|
|
3630
|
+
processingStatus === "processing" ? /* @__PURE__ */ jsxs26(
|
|
3472
3631
|
motion3.div,
|
|
3473
3632
|
{
|
|
3474
3633
|
initial: { x: 10, opacity: 0 },
|
|
@@ -3477,8 +3636,8 @@ var TimelineItem = React13.forwardRef(function TimelineItem2(props, ref) {
|
|
|
3477
3636
|
layoutId,
|
|
3478
3637
|
className: "flex gap-[calc(10rem/16)] items-center",
|
|
3479
3638
|
children: [
|
|
3480
|
-
!hideTime && /* @__PURE__ */
|
|
3481
|
-
/* @__PURE__ */
|
|
3639
|
+
!hideTime && /* @__PURE__ */ jsx37("span", { className: "text-[calc(13rem/16)]", children: (_e = props == null ? void 0 : props.data) == null ? void 0 : _e.eta }),
|
|
3640
|
+
/* @__PURE__ */ jsx37(
|
|
3482
3641
|
Loader2,
|
|
3483
3642
|
{
|
|
3484
3643
|
size: "1rem",
|
|
@@ -3496,13 +3655,13 @@ var TimelineItem = React13.forwardRef(function TimelineItem2(props, ref) {
|
|
|
3496
3655
|
);
|
|
3497
3656
|
});
|
|
3498
3657
|
function TimelineListGroup(props) {
|
|
3499
|
-
return /* @__PURE__ */
|
|
3658
|
+
return /* @__PURE__ */ jsx37("ul", { className: cn("flex flex-col overflow-hidden"), children: props.children });
|
|
3500
3659
|
}
|
|
3501
3660
|
function TimelineList(props) {
|
|
3502
|
-
return /* @__PURE__ */
|
|
3661
|
+
return /* @__PURE__ */ jsx37("ul", { className: "flex flex-col", children: props.children });
|
|
3503
3662
|
}
|
|
3504
|
-
var TimelineRoot =
|
|
3505
|
-
return /* @__PURE__ */
|
|
3663
|
+
var TimelineRoot = React14.forwardRef((props, ref) => {
|
|
3664
|
+
return /* @__PURE__ */ jsx37(
|
|
3506
3665
|
"ul",
|
|
3507
3666
|
__spreadProps(__spreadValues({
|
|
3508
3667
|
ref
|
|
@@ -3529,8 +3688,8 @@ function TransactionTimer(props) {
|
|
|
3529
3688
|
tooltipContent,
|
|
3530
3689
|
timerMessage = "Transaction will timeout in"
|
|
3531
3690
|
} = props;
|
|
3532
|
-
return /* @__PURE__ */
|
|
3533
|
-
/* @__PURE__ */
|
|
3691
|
+
return /* @__PURE__ */ jsxs26("div", { className: "flex flex-col gap-[calc(6rem/16)]", children: [
|
|
3692
|
+
/* @__PURE__ */ jsxs26(
|
|
3534
3693
|
"div",
|
|
3535
3694
|
{
|
|
3536
3695
|
className: cn(
|
|
@@ -3541,22 +3700,22 @@ function TransactionTimer(props) {
|
|
|
3541
3700
|
}
|
|
3542
3701
|
),
|
|
3543
3702
|
children: [
|
|
3544
|
-
/* @__PURE__ */
|
|
3545
|
-
/* @__PURE__ */
|
|
3703
|
+
/* @__PURE__ */ jsx37("span", { children: timerMessage }),
|
|
3704
|
+
/* @__PURE__ */ jsxs26("span", { className: "text-brand-white-500", children: [
|
|
3546
3705
|
String(hours).padStart(2, "0"),
|
|
3547
3706
|
":",
|
|
3548
3707
|
String(mins).padStart(2, "0"),
|
|
3549
3708
|
":",
|
|
3550
3709
|
String(seconds).padStart(2, "0")
|
|
3551
3710
|
] }),
|
|
3552
|
-
tooltipContent && /* @__PURE__ */
|
|
3553
|
-
/* @__PURE__ */
|
|
3554
|
-
/* @__PURE__ */
|
|
3711
|
+
tooltipContent && /* @__PURE__ */ jsx37(TooltipProvider, { children: /* @__PURE__ */ jsxs26(Tooltip, { children: [
|
|
3712
|
+
/* @__PURE__ */ jsx37(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx37("span", { children: /* @__PURE__ */ jsx37(CircleInfo_default, { width: "1em", height: "1em" }) }) }),
|
|
3713
|
+
/* @__PURE__ */ jsx37(TooltipContent, { children: /* @__PURE__ */ jsx37("p", { children: tooltipContent }) })
|
|
3555
3714
|
] }) })
|
|
3556
3715
|
]
|
|
3557
3716
|
}
|
|
3558
3717
|
),
|
|
3559
|
-
/* @__PURE__ */
|
|
3718
|
+
/* @__PURE__ */ jsx37(
|
|
3560
3719
|
Progress,
|
|
3561
3720
|
{
|
|
3562
3721
|
value: props.progress,
|
|
@@ -3570,7 +3729,7 @@ function TransactionTimer(props) {
|
|
|
3570
3729
|
}
|
|
3571
3730
|
function TimerWrap(props) {
|
|
3572
3731
|
const show = props.reveal;
|
|
3573
|
-
return /* @__PURE__ */
|
|
3732
|
+
return /* @__PURE__ */ jsxs26(
|
|
3574
3733
|
motion3.div,
|
|
3575
3734
|
{
|
|
3576
3735
|
initial: { paddingTop: 0 },
|
|
@@ -3580,7 +3739,7 @@ function TimerWrap(props) {
|
|
|
3580
3739
|
},
|
|
3581
3740
|
className: "flex flex-col items-stretch justify-start relative",
|
|
3582
3741
|
children: [
|
|
3583
|
-
/* @__PURE__ */
|
|
3742
|
+
/* @__PURE__ */ jsx37(
|
|
3584
3743
|
"div",
|
|
3585
3744
|
{
|
|
3586
3745
|
className: cn(
|
|
@@ -3590,7 +3749,7 @@ function TimerWrap(props) {
|
|
|
3590
3749
|
children: props.Timer
|
|
3591
3750
|
}
|
|
3592
3751
|
),
|
|
3593
|
-
/* @__PURE__ */
|
|
3752
|
+
/* @__PURE__ */ jsx37(
|
|
3594
3753
|
Slot9,
|
|
3595
3754
|
{
|
|
3596
3755
|
className: cn("min-h-[calc(56rem/11)] z-20 relative !rounded-[1rem]", {
|
|
@@ -3604,8 +3763,165 @@ function TimerWrap(props) {
|
|
|
3604
3763
|
);
|
|
3605
3764
|
}
|
|
3606
3765
|
|
|
3766
|
+
// src/components/molecules/timeline-alt.tsx
|
|
3767
|
+
import { Loader2 as Loader22 } from "lucide-react";
|
|
3768
|
+
import { AnimatePresence as AnimatePresence3, motion as motion4 } from "motion/react";
|
|
3769
|
+
import React15 from "react";
|
|
3770
|
+
import { jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3771
|
+
var StatusTextMap2 = {
|
|
3772
|
+
processing: "Processing",
|
|
3773
|
+
upcoming: "Upcoming",
|
|
3774
|
+
error: "Failed"
|
|
3775
|
+
};
|
|
3776
|
+
var TimelineAltItem = React15.forwardRef(function TimelineAltItem2(props, ref) {
|
|
3777
|
+
var _b, _c, _d, _e;
|
|
3778
|
+
const _a = props, {
|
|
3779
|
+
processingStatus,
|
|
3780
|
+
caption,
|
|
3781
|
+
secondary,
|
|
3782
|
+
data,
|
|
3783
|
+
durationMode = "none"
|
|
3784
|
+
} = _a, REST = __objRest(_a, [
|
|
3785
|
+
"processingStatus",
|
|
3786
|
+
"caption",
|
|
3787
|
+
"secondary",
|
|
3788
|
+
"data",
|
|
3789
|
+
"durationMode"
|
|
3790
|
+
]);
|
|
3791
|
+
const is_visually_active = processingStatus !== "upcoming";
|
|
3792
|
+
const id = React15.useId();
|
|
3793
|
+
const layoutId = `${id}/${caption}/content-2`;
|
|
3794
|
+
const hideTime = durationMode === "none";
|
|
3795
|
+
return /* @__PURE__ */ jsx38(
|
|
3796
|
+
motion4.li,
|
|
3797
|
+
__spreadProps(__spreadValues({
|
|
3798
|
+
ref
|
|
3799
|
+
}, REST), {
|
|
3800
|
+
"data-process-status": processingStatus,
|
|
3801
|
+
className: "block group-[.group-list]/list:border-x group-[.group-list]/list:border-y-0 border border-(--timeline-alt-list-outline) group-[.group-list-group]/listgroup:border-x group-[.group-list-group]/listgroup:border-y-0 cursor-default select-none font-medium text-brand-white-500",
|
|
3802
|
+
style: {
|
|
3803
|
+
"--timeline-alt-list-outline": "var(--timeline-alt-outline, #222429)"
|
|
3804
|
+
},
|
|
3805
|
+
children: /* @__PURE__ */ jsxs27(motion4.div, { className: "flex items-center bordergap-[0.86rem] py-[0.75rem] px-[0.875rem] ", children: [
|
|
3806
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex flex-col flex-1 gap-[calc(4/16rem)]", children: [
|
|
3807
|
+
/* @__PURE__ */ jsx38(
|
|
3808
|
+
"div",
|
|
3809
|
+
{
|
|
3810
|
+
className: cn(
|
|
3811
|
+
"text-brand-white-500 text-xs md:!text-base truncate max-w-[150px] md:max-w-full",
|
|
3812
|
+
{
|
|
3813
|
+
"text-brand-black-100": processingStatus !== "completed",
|
|
3814
|
+
"text-brand-white-500": processingStatus === "completed",
|
|
3815
|
+
"text-brand-danger-500": processingStatus === "error"
|
|
3816
|
+
}
|
|
3817
|
+
),
|
|
3818
|
+
children: caption
|
|
3819
|
+
}
|
|
3820
|
+
),
|
|
3821
|
+
/* @__PURE__ */ jsx38("div", { className: "text-xs h-[1rem] text-brand-black-100", children: processingStatus === "completed" ? ((_b = props.data) == null ? void 0 : _b.transactionUrl) ? /* @__PURE__ */ jsxs27(
|
|
3822
|
+
"a",
|
|
3823
|
+
{
|
|
3824
|
+
href: props.data.transactionUrl,
|
|
3825
|
+
className: "flex cursor-pointer transition-default hover:text-brand-white-500 gap-[calc(2rem/16)] items-center",
|
|
3826
|
+
target: "_blank",
|
|
3827
|
+
rel: "noopener noreferrer",
|
|
3828
|
+
children: [
|
|
3829
|
+
/* @__PURE__ */ jsx38("span", { children: "View in explorer " }),
|
|
3830
|
+
/* @__PURE__ */ jsx38(ArrowUpRight_default, { width: "0.75rem", height: "0.75rem" })
|
|
3831
|
+
]
|
|
3832
|
+
}
|
|
3833
|
+
) : /* @__PURE__ */ jsx38("span", { children: props.secondary }) : /* @__PURE__ */ jsx38("span", { children: (_c = props == null ? void 0 : props.secondary) != null ? _c : StatusTextMap2[processingStatus] }) })
|
|
3834
|
+
] }),
|
|
3835
|
+
/* @__PURE__ */ jsxs27(AnimatePresence3, { children: [
|
|
3836
|
+
processingStatus === "completed" ? /* @__PURE__ */ jsxs27(
|
|
3837
|
+
motion4.div,
|
|
3838
|
+
{
|
|
3839
|
+
layoutId,
|
|
3840
|
+
initial: { x: 10, opacity: 0 },
|
|
3841
|
+
animate: { x: 0, opacity: 1 },
|
|
3842
|
+
exit: { x: 10, opacity: 0 },
|
|
3843
|
+
className: "flex gap-[calc(8rem/16)] items-center",
|
|
3844
|
+
children: [
|
|
3845
|
+
!hideTime && /* @__PURE__ */ jsx38(
|
|
3846
|
+
"span",
|
|
3847
|
+
{
|
|
3848
|
+
className: cn("text-[calc(13rem/16)] text-brand-black-100", {
|
|
3849
|
+
"text-brand-white-500": processingStatus === "completed"
|
|
3850
|
+
}),
|
|
3851
|
+
children: (_d = props == null ? void 0 : props.data) == null ? void 0 : _d.completedIn
|
|
3852
|
+
}
|
|
3853
|
+
),
|
|
3854
|
+
/* @__PURE__ */ jsx38(
|
|
3855
|
+
Check_default,
|
|
3856
|
+
{
|
|
3857
|
+
height: "1rem",
|
|
3858
|
+
width: "1rem",
|
|
3859
|
+
className: "text-brand-success-400"
|
|
3860
|
+
}
|
|
3861
|
+
)
|
|
3862
|
+
]
|
|
3863
|
+
}
|
|
3864
|
+
) : null,
|
|
3865
|
+
processingStatus === "processing" ? /* @__PURE__ */ jsxs27(
|
|
3866
|
+
motion4.div,
|
|
3867
|
+
{
|
|
3868
|
+
initial: { x: 10, opacity: 0 },
|
|
3869
|
+
animate: { x: 0, opacity: 1 },
|
|
3870
|
+
exit: { x: 10, opacity: 0 },
|
|
3871
|
+
layoutId,
|
|
3872
|
+
className: "flex gap-[calc(10rem/16)] items-center",
|
|
3873
|
+
children: [
|
|
3874
|
+
!hideTime && /* @__PURE__ */ jsx38("span", { className: "text-[calc(13rem/16)]", children: (_e = props == null ? void 0 : props.data) == null ? void 0 : _e.eta }),
|
|
3875
|
+
/* @__PURE__ */ jsx38(
|
|
3876
|
+
Loader22,
|
|
3877
|
+
{
|
|
3878
|
+
size: "1rem",
|
|
3879
|
+
className: "animate text-brand-black-100 animate-spin"
|
|
3880
|
+
}
|
|
3881
|
+
)
|
|
3882
|
+
]
|
|
3883
|
+
}
|
|
3884
|
+
) : null
|
|
3885
|
+
] })
|
|
3886
|
+
] })
|
|
3887
|
+
})
|
|
3888
|
+
);
|
|
3889
|
+
});
|
|
3890
|
+
function TimelineAltListGroup(props) {
|
|
3891
|
+
return /* @__PURE__ */ jsx38(
|
|
3892
|
+
"ul",
|
|
3893
|
+
{
|
|
3894
|
+
className: cn(
|
|
3895
|
+
"flex group/listgroup group-list-group flex-col overflow-hidden !divide-y divide-[#222429]"
|
|
3896
|
+
),
|
|
3897
|
+
children: props.children
|
|
3898
|
+
}
|
|
3899
|
+
);
|
|
3900
|
+
}
|
|
3901
|
+
function TimelineAltList(props) {
|
|
3902
|
+
return /* @__PURE__ */ jsx38("ul", { className: "group/list group-list flex flex-col", children: props.children });
|
|
3903
|
+
}
|
|
3904
|
+
var TimelineAltRoot = React15.forwardRef((props, ref) => {
|
|
3905
|
+
return /* @__PURE__ */ jsx38(
|
|
3906
|
+
"ul",
|
|
3907
|
+
__spreadProps(__spreadValues({
|
|
3908
|
+
ref
|
|
3909
|
+
}, props), {
|
|
3910
|
+
className: cn(
|
|
3911
|
+
"flex flex-col gap-y-0 overflow-hidden *:first:rounded-t-[1rem] *:last:rounded-b-[1rem]",
|
|
3912
|
+
props.className
|
|
3913
|
+
),
|
|
3914
|
+
style: {
|
|
3915
|
+
"--timeline-alt-outline": "#222429"
|
|
3916
|
+
},
|
|
3917
|
+
children: props.children
|
|
3918
|
+
})
|
|
3919
|
+
);
|
|
3920
|
+
});
|
|
3921
|
+
TimelineAltRoot.displayName = "TimelineAltRoot";
|
|
3922
|
+
|
|
3607
3923
|
// src/components/molecules/toast.tsx
|
|
3608
|
-
import { Fragment as Fragment8, jsx as
|
|
3924
|
+
import { Fragment as Fragment8, jsx as jsx39, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3609
3925
|
var SeverityConfig = {
|
|
3610
3926
|
error: {
|
|
3611
3927
|
icon: Alert_default,
|
|
@@ -3631,23 +3947,23 @@ function ToastBox(props) {
|
|
|
3631
3947
|
event.stopPropagation();
|
|
3632
3948
|
onDismiss == null ? void 0 : onDismiss(event);
|
|
3633
3949
|
};
|
|
3634
|
-
return /* @__PURE__ */
|
|
3950
|
+
return /* @__PURE__ */ jsx39(SmoothCorners, { size: "sm", children: /* @__PURE__ */ jsxs28(
|
|
3635
3951
|
"div",
|
|
3636
3952
|
{
|
|
3637
3953
|
"data-is-toast": "true",
|
|
3638
3954
|
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",
|
|
3639
3955
|
children: [
|
|
3640
|
-
/* @__PURE__ */
|
|
3956
|
+
/* @__PURE__ */ jsx39(
|
|
3641
3957
|
"div",
|
|
3642
3958
|
{
|
|
3643
3959
|
className: cn("items-center justify-center shrink-0 grow-0", color),
|
|
3644
3960
|
style: { fontSize: "calc(calc(24/16) * 1rem)" },
|
|
3645
|
-
children: /* @__PURE__ */
|
|
3961
|
+
children: /* @__PURE__ */ jsx39(Icon, { width: "1em", height: "1em" })
|
|
3646
3962
|
}
|
|
3647
3963
|
),
|
|
3648
|
-
/* @__PURE__ */
|
|
3649
|
-
/* @__PURE__ */
|
|
3650
|
-
/* @__PURE__ */
|
|
3964
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex flex-col flex-1", children: [
|
|
3965
|
+
/* @__PURE__ */ jsx39(Text, { variant: "body1", className: "text-foreground", children: props.heading }),
|
|
3966
|
+
/* @__PURE__ */ jsx39(
|
|
3651
3967
|
Text,
|
|
3652
3968
|
{
|
|
3653
3969
|
variant: "caption2",
|
|
@@ -3656,9 +3972,9 @@ function ToastBox(props) {
|
|
|
3656
3972
|
}
|
|
3657
3973
|
)
|
|
3658
3974
|
] }),
|
|
3659
|
-
/* @__PURE__ */
|
|
3660
|
-
/* @__PURE__ */
|
|
3661
|
-
/* @__PURE__ */
|
|
3975
|
+
/* @__PURE__ */ jsx39("div", { className: "flex gap-[calc(6rem/16)] items-center self-center w-full md:w-auto", children: actions ? /* @__PURE__ */ jsxs28(Fragment8, { children: [
|
|
3976
|
+
/* @__PURE__ */ jsx39("div", { className: "flex gap-[calc(6rem/16)] flex-1 items-center *:flex-1", children: actions }),
|
|
3977
|
+
/* @__PURE__ */ jsx39(
|
|
3662
3978
|
IconButton,
|
|
3663
3979
|
{
|
|
3664
3980
|
className: "cursor-pointer",
|
|
@@ -3666,10 +3982,10 @@ function ToastBox(props) {
|
|
|
3666
3982
|
size: "smx",
|
|
3667
3983
|
variant: "level_2",
|
|
3668
3984
|
rounded: "default",
|
|
3669
|
-
children: /* @__PURE__ */
|
|
3985
|
+
children: /* @__PURE__ */ jsx39(XIcon_default, { width: "1rem" })
|
|
3670
3986
|
}
|
|
3671
3987
|
)
|
|
3672
|
-
] }) : /* @__PURE__ */
|
|
3988
|
+
] }) : /* @__PURE__ */ jsx39(
|
|
3673
3989
|
Button2,
|
|
3674
3990
|
{
|
|
3675
3991
|
size: "sm",
|
|
@@ -3685,12 +4001,12 @@ function ToastBox(props) {
|
|
|
3685
4001
|
}
|
|
3686
4002
|
|
|
3687
4003
|
// src/components/molecules/transaction-list.tsx
|
|
3688
|
-
import { motion as
|
|
3689
|
-
import { Fragment as Fragment9, jsx as
|
|
4004
|
+
import { motion as motion5 } from "motion/react";
|
|
4005
|
+
import { Fragment as Fragment9, jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3690
4006
|
function TxListItemProcessing(props) {
|
|
3691
4007
|
const { size = "2rem" } = props;
|
|
3692
|
-
return /* @__PURE__ */
|
|
3693
|
-
/* @__PURE__ */
|
|
4008
|
+
return /* @__PURE__ */ jsx40(GradientContainer, { children: /* @__PURE__ */ jsxs29("div", { className: "rounded-[1rem] bg-brand-black-350 px-[0.75rem] h-[3.75rem] flex items-center", children: [
|
|
4009
|
+
/* @__PURE__ */ jsx40(
|
|
3694
4010
|
GradientLine,
|
|
3695
4011
|
{
|
|
3696
4012
|
behaviour: "progress",
|
|
@@ -3698,8 +4014,8 @@ function TxListItemProcessing(props) {
|
|
|
3698
4014
|
mode: props.status === "failed" ? "error" : "default"
|
|
3699
4015
|
}
|
|
3700
4016
|
),
|
|
3701
|
-
/* @__PURE__ */
|
|
3702
|
-
/* @__PURE__ */
|
|
4017
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex gap-[1rem] flex-1 z-20 text-brand-black-100 font-medium", children: [
|
|
4018
|
+
/* @__PURE__ */ jsx40(
|
|
3703
4019
|
TokenTransferPair,
|
|
3704
4020
|
{
|
|
3705
4021
|
fromToken: props.from,
|
|
@@ -3707,48 +4023,48 @@ function TxListItemProcessing(props) {
|
|
|
3707
4023
|
size
|
|
3708
4024
|
}
|
|
3709
4025
|
),
|
|
3710
|
-
/* @__PURE__ */
|
|
3711
|
-
/* @__PURE__ */
|
|
3712
|
-
/* @__PURE__ */
|
|
4026
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex flex-grow flex-col text-start", children: [
|
|
4027
|
+
/* @__PURE__ */ jsx40("span", { className: "text-brand-white-500 whitespace-nowrap text-[0.875rem] h-[1.25rem] max-w-28 md:max-w-full truncate", children: props.caption }),
|
|
4028
|
+
/* @__PURE__ */ jsxs29(StatusBadge, { variant: props.status === "failed" ? "error" : "none", children: [
|
|
3713
4029
|
"~ ",
|
|
3714
4030
|
props.eta
|
|
3715
4031
|
] })
|
|
3716
4032
|
] }),
|
|
3717
|
-
/* @__PURE__ */
|
|
3718
|
-
|
|
4033
|
+
/* @__PURE__ */ jsx40("div", { className: "basis-4/12 max-w-xs shrink-0 flex justify-end h-[2.25rem] whitespace-nowrap", children: /* @__PURE__ */ jsxs29(
|
|
4034
|
+
motion5.div,
|
|
3719
4035
|
{
|
|
3720
4036
|
initial: { y: 0 },
|
|
3721
4037
|
animate: { y: props.status === "failed" ? "-100%" : 0 },
|
|
3722
4038
|
className: "grid",
|
|
3723
4039
|
children: [
|
|
3724
|
-
/* @__PURE__ */
|
|
3725
|
-
|
|
4040
|
+
/* @__PURE__ */ jsxs29(
|
|
4041
|
+
motion5.div,
|
|
3726
4042
|
{
|
|
3727
4043
|
animate: { opacity: props.status === "processing" ? 1 : 0 },
|
|
3728
4044
|
className: "flex flex-col text-end h-[2.25rem]",
|
|
3729
4045
|
children: [
|
|
3730
|
-
/* @__PURE__ */
|
|
3731
|
-
/* @__PURE__ */
|
|
4046
|
+
/* @__PURE__ */ jsx40("span", { className: "text-base text-brand-white-500 h-[1.25rem]", children: props.amount }),
|
|
4047
|
+
/* @__PURE__ */ jsxs29("span", { className: "text-xs h-[1rem]", children: [
|
|
3732
4048
|
props.percentage,
|
|
3733
4049
|
"%"
|
|
3734
4050
|
] })
|
|
3735
4051
|
]
|
|
3736
4052
|
}
|
|
3737
4053
|
),
|
|
3738
|
-
/* @__PURE__ */
|
|
3739
|
-
|
|
4054
|
+
/* @__PURE__ */ jsxs29(
|
|
4055
|
+
motion5.div,
|
|
3740
4056
|
{
|
|
3741
4057
|
animate: { opacity: props.status === "failed" ? 1 : 0 },
|
|
3742
4058
|
className: "flex gap-[0.75rem] items-center h-[2.25rem] justify-end",
|
|
3743
4059
|
children: [
|
|
3744
|
-
/* @__PURE__ */
|
|
3745
|
-
/* @__PURE__ */
|
|
4060
|
+
/* @__PURE__ */ jsx40("span", { className: "text-base text-brand-white-500 h-[1.25rem]", children: props.amount }),
|
|
4061
|
+
/* @__PURE__ */ jsx40(
|
|
3746
4062
|
IconButton,
|
|
3747
4063
|
{
|
|
3748
4064
|
variant: "destructive",
|
|
3749
4065
|
rounded: "default",
|
|
3750
4066
|
size: "smx",
|
|
3751
|
-
children: /* @__PURE__ */
|
|
4067
|
+
children: /* @__PURE__ */ jsx40(RotateCcw_default, { className: "size-4 text-[currentColor]" })
|
|
3752
4068
|
}
|
|
3753
4069
|
)
|
|
3754
4070
|
]
|
|
@@ -3778,7 +4094,7 @@ var TxListItem = function TxListItem2(props) {
|
|
|
3778
4094
|
"amount",
|
|
3779
4095
|
"size"
|
|
3780
4096
|
]);
|
|
3781
|
-
return /* @__PURE__ */
|
|
4097
|
+
return /* @__PURE__ */ jsx40(
|
|
3782
4098
|
"button",
|
|
3783
4099
|
__spreadProps(__spreadValues({}, rest), {
|
|
3784
4100
|
type: "button",
|
|
@@ -3786,15 +4102,15 @@ var TxListItem = function TxListItem2(props) {
|
|
|
3786
4102
|
"apperance-none rounded-[1rem] bg-brand-black-350 px-[0.75rem] h-[3.75rem] flex items-center",
|
|
3787
4103
|
props.className
|
|
3788
4104
|
),
|
|
3789
|
-
children: /* @__PURE__ */
|
|
3790
|
-
/* @__PURE__ */
|
|
3791
|
-
/* @__PURE__ */
|
|
3792
|
-
/* @__PURE__ */
|
|
3793
|
-
/* @__PURE__ */
|
|
4105
|
+
children: /* @__PURE__ */ jsxs29("div", { className: "flex justify-between gap-4 flex-1 z-20 text-brand-black-100 font-medium", children: [
|
|
4106
|
+
/* @__PURE__ */ jsx40(TokenTransferPair, { fromToken: from, toToken: to, size }),
|
|
4107
|
+
/* @__PURE__ */ jsxs29("div", { className: "flex flex-grow flex-col text-start whitespace-nowrap", children: [
|
|
4108
|
+
/* @__PURE__ */ jsx40("span", { className: "text-brand-white-500 text-[0.875rem] h-[1.25rem] max-w-28 md:max-w-full truncate", children: caption }),
|
|
4109
|
+
/* @__PURE__ */ jsx40(StatusBadge, { variant: mode === "rollback" ? "refunded" : "success" })
|
|
3794
4110
|
] }),
|
|
3795
|
-
/* @__PURE__ */
|
|
3796
|
-
/* @__PURE__ */
|
|
3797
|
-
/* @__PURE__ */
|
|
4111
|
+
/* @__PURE__ */ jsxs29("div", { className: "shrink-0 flex flex-col text-end", children: [
|
|
4112
|
+
/* @__PURE__ */ jsx40("span", { className: "text-base text-brand-white-500 h-[1.25rem]", children: amount }),
|
|
4113
|
+
/* @__PURE__ */ jsx40("span", { className: "text-xs h-[1rem]", children: completedAt })
|
|
3798
4114
|
] })
|
|
3799
4115
|
] })
|
|
3800
4116
|
})
|
|
@@ -3804,46 +4120,46 @@ function StatusBadge({
|
|
|
3804
4120
|
variant,
|
|
3805
4121
|
children
|
|
3806
4122
|
}) {
|
|
3807
|
-
return /* @__PURE__ */
|
|
3808
|
-
variant === "success" ? /* @__PURE__ */
|
|
3809
|
-
/* @__PURE__ */
|
|
4123
|
+
return /* @__PURE__ */ jsxs29("span", { className: "text-[0.625rem] md:text-xs h-[1rem] flex items-center gap-[0.125rem]", children: [
|
|
4124
|
+
variant === "success" ? /* @__PURE__ */ jsxs29("span", { className: "text-brand-success-400 flex items-center gap-[0.125rem]", children: [
|
|
4125
|
+
/* @__PURE__ */ jsx40(Check_default, { className: "size-2 md:size-3" }),
|
|
3810
4126
|
" ",
|
|
3811
|
-
/* @__PURE__ */
|
|
4127
|
+
/* @__PURE__ */ jsx40("span", { children: "Success" })
|
|
3812
4128
|
] }) : null,
|
|
3813
|
-
variant === "refunded" ? /* @__PURE__ */
|
|
3814
|
-
/* @__PURE__ */
|
|
3815
|
-
/* @__PURE__ */
|
|
4129
|
+
variant === "refunded" ? /* @__PURE__ */ jsxs29(Fragment9, { children: [
|
|
4130
|
+
/* @__PURE__ */ jsx40(StepBack_default, { strokeWidth: 2, className: "size-2 md:size-3" }),
|
|
4131
|
+
/* @__PURE__ */ jsx40("span", { children: "Refunded" })
|
|
3816
4132
|
] }) : null,
|
|
3817
|
-
variant === "error" ? /* @__PURE__ */
|
|
3818
|
-
/* @__PURE__ */
|
|
3819
|
-
/* @__PURE__ */
|
|
4133
|
+
variant === "error" ? /* @__PURE__ */ jsxs29(Fragment9, { children: [
|
|
4134
|
+
/* @__PURE__ */ jsx40(Alert_default, { className: "size-2 md:size-3 text-brand-danger-500" }),
|
|
4135
|
+
/* @__PURE__ */ jsx40("span", { className: "text-brand-danger-500", children: "Order expired" })
|
|
3820
4136
|
] }) : null,
|
|
3821
4137
|
variant === "none" ? children : null
|
|
3822
4138
|
] });
|
|
3823
4139
|
}
|
|
3824
4140
|
function TxList({ children }) {
|
|
3825
|
-
return /* @__PURE__ */
|
|
4141
|
+
return /* @__PURE__ */ jsx40("ul", { className: "flex flex-col gap-[0.5rem]", children });
|
|
3826
4142
|
}
|
|
3827
4143
|
|
|
3828
4144
|
// src/components/molecules/wallet-header.tsx
|
|
3829
4145
|
import { Slot as Slot10 } from "@radix-ui/react-slot";
|
|
3830
4146
|
import { cva as cva6 } from "class-variance-authority";
|
|
3831
|
-
import { motion as
|
|
3832
|
-
import * as
|
|
4147
|
+
import { motion as motion6 } from "motion/react";
|
|
4148
|
+
import * as React16 from "react";
|
|
3833
4149
|
|
|
3834
4150
|
// src/components/organisms/assets-collection.tsx
|
|
3835
4151
|
import * as Tab_ from "@radix-ui/react-tabs";
|
|
3836
4152
|
|
|
3837
4153
|
// src/@/ui/tabs.tsx
|
|
3838
4154
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3839
|
-
import { jsx as
|
|
4155
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3840
4156
|
function Tabs(_a) {
|
|
3841
4157
|
var _b = _a, {
|
|
3842
4158
|
className
|
|
3843
4159
|
} = _b, props = __objRest(_b, [
|
|
3844
4160
|
"className"
|
|
3845
4161
|
]);
|
|
3846
|
-
return /* @__PURE__ */
|
|
4162
|
+
return /* @__PURE__ */ jsx41(
|
|
3847
4163
|
TabsPrimitive.Root,
|
|
3848
4164
|
__spreadValues({
|
|
3849
4165
|
"data-slot": "tabs",
|
|
@@ -3857,7 +4173,7 @@ function TabsContent(_a) {
|
|
|
3857
4173
|
} = _b, props = __objRest(_b, [
|
|
3858
4174
|
"className"
|
|
3859
4175
|
]);
|
|
3860
|
-
return /* @__PURE__ */
|
|
4176
|
+
return /* @__PURE__ */ jsx41(
|
|
3861
4177
|
TabsPrimitive.Content,
|
|
3862
4178
|
__spreadValues({
|
|
3863
4179
|
"data-slot": "tabs-content",
|
|
@@ -3867,12 +4183,12 @@ function TabsContent(_a) {
|
|
|
3867
4183
|
}
|
|
3868
4184
|
|
|
3869
4185
|
// src/components/organisms/assets-collection.tsx
|
|
3870
|
-
import { jsx as
|
|
4186
|
+
import { jsx as jsx42, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3871
4187
|
function TabsList2(props) {
|
|
3872
|
-
return /* @__PURE__ */
|
|
4188
|
+
return /* @__PURE__ */ jsx42("nav", { className: "flex flex-col", children: /* @__PURE__ */ jsx42(Tab_.TabsList, { asChild: true, children: /* @__PURE__ */ jsx42("ul", { className: "flex p-0 bg-transparent gap-3", children: props.children }) }) });
|
|
3873
4189
|
}
|
|
3874
4190
|
function TabItem(props) {
|
|
3875
|
-
return /* @__PURE__ */
|
|
4191
|
+
return /* @__PURE__ */ jsx42(
|
|
3876
4192
|
Tab_.TabsTrigger,
|
|
3877
4193
|
{
|
|
3878
4194
|
value: props.value,
|
|
@@ -3885,7 +4201,7 @@ function AssetValueTrend(props) {
|
|
|
3885
4201
|
const { percentage = 0, direction: dir, dollarValue = 0 } = props;
|
|
3886
4202
|
const isZero = dollarValue === 0;
|
|
3887
4203
|
const isUp = isZero ? "up" : dir === "up";
|
|
3888
|
-
return /* @__PURE__ */
|
|
4204
|
+
return /* @__PURE__ */ jsxs30(
|
|
3889
4205
|
"div",
|
|
3890
4206
|
{
|
|
3891
4207
|
className: "inline-flex select-none gap-[0.125rem] text-brand-black-100 h-[1rem] text-[0.7rem] font-medium items-center",
|
|
@@ -3894,7 +4210,7 @@ function AssetValueTrend(props) {
|
|
|
3894
4210
|
"--trend-color": isZero ? "inherit" : !isUp ? "var(--color-brand-danger-500, indigo)" : "var(--color-brand-success-400, cyan)"
|
|
3895
4211
|
},
|
|
3896
4212
|
children: [
|
|
3897
|
-
/* @__PURE__ */
|
|
4213
|
+
/* @__PURE__ */ jsx42("span", { className: "text-[var(--trend-color)]", children: /* @__PURE__ */ jsx42(
|
|
3898
4214
|
ArrowTriangleBottom_default,
|
|
3899
4215
|
{
|
|
3900
4216
|
width: "0.75rem",
|
|
@@ -3905,13 +4221,13 @@ function AssetValueTrend(props) {
|
|
|
3905
4221
|
)
|
|
3906
4222
|
}
|
|
3907
4223
|
) }),
|
|
3908
|
-
/* @__PURE__ */
|
|
3909
|
-
/* @__PURE__ */
|
|
4224
|
+
/* @__PURE__ */ jsxs30("span", { className: "flex items-center", children: [
|
|
4225
|
+
/* @__PURE__ */ jsxs30("span", { className: "text-[var(--trend-color)]", children: [
|
|
3910
4226
|
"$",
|
|
3911
4227
|
dollarValue
|
|
3912
4228
|
] }),
|
|
3913
4229
|
"\xA0",
|
|
3914
|
-
/* @__PURE__ */
|
|
4230
|
+
/* @__PURE__ */ jsxs30("span", { className: "text-[var(--trend-base)]", children: [
|
|
3915
4231
|
"(",
|
|
3916
4232
|
percentage,
|
|
3917
4233
|
"%)"
|
|
@@ -3928,8 +4244,8 @@ function Balance(props) {
|
|
|
3928
4244
|
const { prefix = "$", suffix = "", formatter = currencyFormat } = props;
|
|
3929
4245
|
const is_zero = props.amount === 0;
|
|
3930
4246
|
const [int_, fraction] = formatter.format(props.amount).split(".");
|
|
3931
|
-
return /* @__PURE__ */
|
|
3932
|
-
/* @__PURE__ */
|
|
4247
|
+
return /* @__PURE__ */ jsx42("div", { className: "select-none", children: /* @__PURE__ */ jsxs30("span", { className: "text-[2.375rem] font-medium leading-[2.875rem] whitespace-nowrap", children: [
|
|
4248
|
+
/* @__PURE__ */ jsxs30(
|
|
3933
4249
|
"span",
|
|
3934
4250
|
{
|
|
3935
4251
|
className: cn(
|
|
@@ -3941,11 +4257,11 @@ function Balance(props) {
|
|
|
3941
4257
|
]
|
|
3942
4258
|
}
|
|
3943
4259
|
),
|
|
3944
|
-
/* @__PURE__ */
|
|
4260
|
+
/* @__PURE__ */ jsxs30("span", { className: "text-brand-black-100", children: [
|
|
3945
4261
|
".",
|
|
3946
4262
|
fraction != null ? fraction : "00"
|
|
3947
4263
|
] }),
|
|
3948
|
-
/* @__PURE__ */
|
|
4264
|
+
/* @__PURE__ */ jsxs30("span", { className: "text-brand-white-500", children: [
|
|
3949
4265
|
"\xA0",
|
|
3950
4266
|
suffix
|
|
3951
4267
|
] })
|
|
@@ -3953,10 +4269,10 @@ function Balance(props) {
|
|
|
3953
4269
|
}
|
|
3954
4270
|
|
|
3955
4271
|
// src/components/molecules/wallet-header.tsx
|
|
3956
|
-
import { Fragment as Fragment11, jsx as
|
|
3957
|
-
var WalletHeaderContext =
|
|
4272
|
+
import { Fragment as Fragment11, jsx as jsx43, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4273
|
+
var WalletHeaderContext = React16.createContext(null);
|
|
3958
4274
|
function useWalletHeader() {
|
|
3959
|
-
const context =
|
|
4275
|
+
const context = React16.useContext(WalletHeaderContext);
|
|
3960
4276
|
if (!context) {
|
|
3961
4277
|
throw new Error("useWalletHeader must be used within a WalletHeader");
|
|
3962
4278
|
}
|
|
@@ -3977,7 +4293,7 @@ var walletHeaderVariants = cva6(
|
|
|
3977
4293
|
}
|
|
3978
4294
|
);
|
|
3979
4295
|
var globalWalletHeaderState = null;
|
|
3980
|
-
var WalletHeader =
|
|
4296
|
+
var WalletHeader = React16.forwardRef(
|
|
3981
4297
|
(_a, ref) => {
|
|
3982
4298
|
var _b = _a, {
|
|
3983
4299
|
className,
|
|
@@ -3995,15 +4311,15 @@ var WalletHeader = React14.forwardRef(
|
|
|
3995
4311
|
"children"
|
|
3996
4312
|
]);
|
|
3997
4313
|
const Comp = asChild ? Slot10 : "div";
|
|
3998
|
-
const [show, setShow] =
|
|
4314
|
+
const [show, setShow] = React16.useState(() => {
|
|
3999
4315
|
return persistOpen && globalWalletHeaderState !== null ? globalWalletHeaderState : defaultOpen;
|
|
4000
4316
|
});
|
|
4001
|
-
|
|
4317
|
+
React16.useEffect(() => {
|
|
4002
4318
|
if (persistOpen) {
|
|
4003
4319
|
globalWalletHeaderState = show;
|
|
4004
4320
|
}
|
|
4005
4321
|
}, [show, persistOpen]);
|
|
4006
|
-
return /* @__PURE__ */
|
|
4322
|
+
return /* @__PURE__ */ jsx43(WalletHeaderContext.Provider, { value: { show, setShow }, children: /* @__PURE__ */ jsx43(
|
|
4007
4323
|
Comp,
|
|
4008
4324
|
__spreadProps(__spreadValues({
|
|
4009
4325
|
ref,
|
|
@@ -4016,10 +4332,10 @@ var WalletHeader = React14.forwardRef(
|
|
|
4016
4332
|
}
|
|
4017
4333
|
);
|
|
4018
4334
|
WalletHeader.displayName = "WalletHeader";
|
|
4019
|
-
var WalletConnectedHeader =
|
|
4335
|
+
var WalletConnectedHeader = React16.forwardRef((_a, ref) => {
|
|
4020
4336
|
var _b = _a, { className, accounts, children } = _b, props = __objRest(_b, ["className", "accounts", "children"]);
|
|
4021
4337
|
const { show: open, setShow } = useWalletHeader();
|
|
4022
|
-
return /* @__PURE__ */
|
|
4338
|
+
return /* @__PURE__ */ jsx43(
|
|
4023
4339
|
"button",
|
|
4024
4340
|
__spreadProps(__spreadValues({
|
|
4025
4341
|
ref,
|
|
@@ -4033,9 +4349,9 @@ var WalletConnectedHeader = React14.forwardRef((_a, ref) => {
|
|
|
4033
4349
|
),
|
|
4034
4350
|
onClick: () => setShow((e) => !e)
|
|
4035
4351
|
}, props), {
|
|
4036
|
-
children: /* @__PURE__ */
|
|
4037
|
-
children || /* @__PURE__ */
|
|
4038
|
-
/* @__PURE__ */
|
|
4352
|
+
children: /* @__PURE__ */ jsxs31("div", { className: "flex w-full gap-2 justify-between items-center", children: [
|
|
4353
|
+
children || /* @__PURE__ */ jsx43(AccountStack, { accounts }),
|
|
4354
|
+
/* @__PURE__ */ jsx43(
|
|
4039
4355
|
IconButton,
|
|
4040
4356
|
{
|
|
4041
4357
|
variant: "level_1",
|
|
@@ -4044,7 +4360,7 @@ var WalletConnectedHeader = React14.forwardRef((_a, ref) => {
|
|
|
4044
4360
|
rounded: "full",
|
|
4045
4361
|
size: "sm",
|
|
4046
4362
|
asChild: true,
|
|
4047
|
-
children: /* @__PURE__ */
|
|
4363
|
+
children: /* @__PURE__ */ jsx43("span", { children: /* @__PURE__ */ jsx43(ChevronBottomDown_default, {}) })
|
|
4048
4364
|
}
|
|
4049
4365
|
)
|
|
4050
4366
|
] })
|
|
@@ -4052,16 +4368,16 @@ var WalletConnectedHeader = React14.forwardRef((_a, ref) => {
|
|
|
4052
4368
|
);
|
|
4053
4369
|
});
|
|
4054
4370
|
WalletConnectedHeader.displayName = "WalletConnectedHeader";
|
|
4055
|
-
var WalletHeaderContent =
|
|
4371
|
+
var WalletHeaderContent = React16.forwardRef((_a, _ref) => {
|
|
4056
4372
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
4057
4373
|
const { show: open } = useWalletHeader();
|
|
4058
|
-
const containerRef =
|
|
4059
|
-
const parentRef =
|
|
4374
|
+
const containerRef = React16.useRef(null);
|
|
4375
|
+
const parentRef = React16.useRef(null);
|
|
4060
4376
|
const slideDown = {
|
|
4061
4377
|
show: { opacity: [0, 0.8, 1] },
|
|
4062
4378
|
hide: { opacity: [1, 0.25, 0] }
|
|
4063
4379
|
};
|
|
4064
|
-
|
|
4380
|
+
React16.useEffect(() => {
|
|
4065
4381
|
const updateHeight = () => {
|
|
4066
4382
|
if (containerRef.current && parentRef.current) {
|
|
4067
4383
|
const height = containerRef.current.offsetHeight;
|
|
@@ -4116,8 +4432,8 @@ var WalletHeaderContent = React14.forwardRef((_a, _ref) => {
|
|
|
4116
4432
|
"onTransitionRun",
|
|
4117
4433
|
"onTransitionCancel"
|
|
4118
4434
|
]);
|
|
4119
|
-
return /* @__PURE__ */
|
|
4120
|
-
|
|
4435
|
+
return /* @__PURE__ */ jsx43(
|
|
4436
|
+
motion6.div,
|
|
4121
4437
|
{
|
|
4122
4438
|
ref: parentRef,
|
|
4123
4439
|
initial: { height: 0 },
|
|
@@ -4125,8 +4441,8 @@ var WalletHeaderContent = React14.forwardRef((_a, _ref) => {
|
|
|
4125
4441
|
className: cn("z-10 relative", {
|
|
4126
4442
|
"pointer-events-none": !open
|
|
4127
4443
|
}),
|
|
4128
|
-
children: /* @__PURE__ */
|
|
4129
|
-
|
|
4444
|
+
children: /* @__PURE__ */ jsx43(
|
|
4445
|
+
motion6.div,
|
|
4130
4446
|
__spreadProps(__spreadValues({
|
|
4131
4447
|
ref: containerRef,
|
|
4132
4448
|
initial: { opacity: 0 },
|
|
@@ -4145,18 +4461,18 @@ var WalletHeaderContent = React14.forwardRef((_a, _ref) => {
|
|
|
4145
4461
|
);
|
|
4146
4462
|
});
|
|
4147
4463
|
WalletHeaderContent.displayName = "WalletHeaderContent";
|
|
4148
|
-
var AccountStack =
|
|
4464
|
+
var AccountStack = React16.forwardRef(
|
|
4149
4465
|
({ accounts = [] }, ref) => {
|
|
4150
4466
|
var _a, _b;
|
|
4151
|
-
return /* @__PURE__ */
|
|
4152
|
-
/* @__PURE__ */
|
|
4467
|
+
return /* @__PURE__ */ jsx43("div", { ref, className: "flex gap-[0.625rem] items-center", children: accounts.length > 0 ? /* @__PURE__ */ jsxs31(React16.Fragment, { children: [
|
|
4468
|
+
/* @__PURE__ */ jsx43("div", { className: "inline-flex -space-x-[0.3125rem]", children: accounts.map((account, index) => /* @__PURE__ */ jsx43(
|
|
4153
4469
|
"div",
|
|
4154
4470
|
{
|
|
4155
4471
|
style: {
|
|
4156
4472
|
zIndex: accounts.length - index,
|
|
4157
4473
|
position: "relative"
|
|
4158
4474
|
},
|
|
4159
|
-
children: /* @__PURE__ */
|
|
4475
|
+
children: /* @__PURE__ */ jsx43(
|
|
4160
4476
|
BadgeIcon,
|
|
4161
4477
|
{
|
|
4162
4478
|
outline: true,
|
|
@@ -4170,15 +4486,15 @@ var AccountStack = React14.forwardRef(
|
|
|
4170
4486
|
},
|
|
4171
4487
|
account.address
|
|
4172
4488
|
)) }),
|
|
4173
|
-
/* @__PURE__ */
|
|
4174
|
-
/* @__PURE__ */
|
|
4489
|
+
/* @__PURE__ */ jsxs31("span", { className: "flex flex-col whitespace-nowrap", children: [
|
|
4490
|
+
/* @__PURE__ */ jsx43("span", { className: "text-base font-medium h-[1.25rem] text-brand-white-500", children: accounts.length > 1 ? /* @__PURE__ */ jsxs31(Fragment11, { children: [
|
|
4175
4491
|
accounts.length,
|
|
4176
4492
|
" wallets"
|
|
4177
|
-
] }) : /* @__PURE__ */
|
|
4178
|
-
/* @__PURE__ */
|
|
4493
|
+
] }) : /* @__PURE__ */ jsx43(Fragment11, { children: shortenAccountAddress((_b = (_a = accounts[0]) == null ? void 0 : _a.address) != null ? _b : "") || "--" }) }),
|
|
4494
|
+
/* @__PURE__ */ jsx43("span", { className: "text-xs text-start h-[1rem] font-medium inline-flex items-center gap-[0.125rem] text-brand-black-100", children: "Connected" })
|
|
4179
4495
|
] })
|
|
4180
|
-
] }) : /* @__PURE__ */
|
|
4181
|
-
/* @__PURE__ */
|
|
4496
|
+
] }) : /* @__PURE__ */ jsxs31("div", { className: "flex items-center gap-[0.625rem] select-none", children: [
|
|
4497
|
+
/* @__PURE__ */ jsx43(
|
|
4182
4498
|
IconButton,
|
|
4183
4499
|
{
|
|
4184
4500
|
disabled: true,
|
|
@@ -4186,22 +4502,22 @@ var AccountStack = React14.forwardRef(
|
|
|
4186
4502
|
variant: "level_2",
|
|
4187
4503
|
rounded: "full",
|
|
4188
4504
|
size: "sm",
|
|
4189
|
-
children: /* @__PURE__ */
|
|
4505
|
+
children: /* @__PURE__ */ jsx43(Wallet_default, { className: "size-5" })
|
|
4190
4506
|
}
|
|
4191
4507
|
),
|
|
4192
|
-
/* @__PURE__ */
|
|
4508
|
+
/* @__PURE__ */ jsx43("p", { className: "text-base font-medium text-brand-white-100", children: "Select an account" })
|
|
4193
4509
|
] }) });
|
|
4194
4510
|
}
|
|
4195
4511
|
);
|
|
4196
4512
|
AccountStack.displayName = "AccountStack";
|
|
4197
|
-
var WalletHeaderTabs =
|
|
4513
|
+
var WalletHeaderTabs = React16.forwardRef((_a, ref) => {
|
|
4198
4514
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
4199
|
-
return /* @__PURE__ */
|
|
4515
|
+
return /* @__PURE__ */ jsx43(Tabs, __spreadProps(__spreadValues({ ref, className: cn("gap-0 pt-3", className) }, props), { children }));
|
|
4200
4516
|
});
|
|
4201
4517
|
WalletHeaderTabs.displayName = "WalletHeaderTabs";
|
|
4202
|
-
var WalletHeaderTabsList =
|
|
4518
|
+
var WalletHeaderTabsList = React16.forwardRef((_a, ref) => {
|
|
4203
4519
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
4204
|
-
return /* @__PURE__ */
|
|
4520
|
+
return /* @__PURE__ */ jsx43(
|
|
4205
4521
|
TabsList2,
|
|
4206
4522
|
__spreadProps(__spreadValues({
|
|
4207
4523
|
ref,
|
|
@@ -4212,9 +4528,9 @@ var WalletHeaderTabsList = React14.forwardRef((_a, ref) => {
|
|
|
4212
4528
|
);
|
|
4213
4529
|
});
|
|
4214
4530
|
WalletHeaderTabsList.displayName = "WalletHeaderTabsList";
|
|
4215
|
-
var WalletHeaderTabItem =
|
|
4531
|
+
var WalletHeaderTabItem = React16.forwardRef((_a, ref) => {
|
|
4216
4532
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
4217
|
-
return /* @__PURE__ */
|
|
4533
|
+
return /* @__PURE__ */ jsx43(
|
|
4218
4534
|
TabItem,
|
|
4219
4535
|
__spreadProps(__spreadValues({
|
|
4220
4536
|
ref,
|
|
@@ -4228,9 +4544,9 @@ var WalletHeaderTabItem = React14.forwardRef((_a, ref) => {
|
|
|
4228
4544
|
);
|
|
4229
4545
|
});
|
|
4230
4546
|
WalletHeaderTabItem.displayName = "WalletHeaderTabItem";
|
|
4231
|
-
var WalletHeaderTabsContent =
|
|
4547
|
+
var WalletHeaderTabsContent = React16.forwardRef((_a, ref) => {
|
|
4232
4548
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
4233
|
-
return /* @__PURE__ */
|
|
4549
|
+
return /* @__PURE__ */ jsx43(
|
|
4234
4550
|
TabsContent,
|
|
4235
4551
|
__spreadProps(__spreadValues({
|
|
4236
4552
|
ref,
|
|
@@ -4241,7 +4557,7 @@ var WalletHeaderTabsContent = React14.forwardRef((_a, ref) => {
|
|
|
4241
4557
|
);
|
|
4242
4558
|
});
|
|
4243
4559
|
WalletHeaderTabsContent.displayName = "WalletHeaderTabsContent";
|
|
4244
|
-
var WalletHeaderContentBlur =
|
|
4560
|
+
var WalletHeaderContentBlur = React16.forwardRef((_a, ref) => {
|
|
4245
4561
|
var _b = _a, { className, children, asChild = false } = _b, props = __objRest(_b, ["className", "children", "asChild"]);
|
|
4246
4562
|
const { show: open, setShow } = useWalletHeader();
|
|
4247
4563
|
const Comp = asChild ? Slot10 : "div";
|
|
@@ -4252,7 +4568,7 @@ var WalletHeaderContentBlur = React14.forwardRef((_a, ref) => {
|
|
|
4252
4568
|
const handleKeyDown = (e) => {
|
|
4253
4569
|
if (["Enter", " "].includes(e.key)) handleClose(e);
|
|
4254
4570
|
};
|
|
4255
|
-
return /* @__PURE__ */
|
|
4571
|
+
return /* @__PURE__ */ jsxs31(
|
|
4256
4572
|
Comp,
|
|
4257
4573
|
__spreadProps(__spreadValues({
|
|
4258
4574
|
ref,
|
|
@@ -4263,7 +4579,7 @@ var WalletHeaderContentBlur = React14.forwardRef((_a, ref) => {
|
|
|
4263
4579
|
)
|
|
4264
4580
|
}, props), {
|
|
4265
4581
|
children: [
|
|
4266
|
-
open && /* @__PURE__ */
|
|
4582
|
+
open && /* @__PURE__ */ jsx43(
|
|
4267
4583
|
"div",
|
|
4268
4584
|
{
|
|
4269
4585
|
className: "absolute inset-0 z-10",
|
|
@@ -4282,15 +4598,15 @@ var WalletHeaderContentBlur = React14.forwardRef((_a, ref) => {
|
|
|
4282
4598
|
WalletHeaderContentBlur.displayName = "WalletHeaderContentBlur";
|
|
4283
4599
|
|
|
4284
4600
|
// src/components/navigation/header.tsx
|
|
4285
|
-
import { jsx as
|
|
4601
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
4286
4602
|
function HeaderGradient() {
|
|
4287
|
-
return /* @__PURE__ */
|
|
4603
|
+
return /* @__PURE__ */ jsx44("div", { className: "absolute inset-0 h-[3px] bg-gradient-brand-animated" });
|
|
4288
4604
|
}
|
|
4289
4605
|
function HeaderContent({
|
|
4290
4606
|
children,
|
|
4291
4607
|
className
|
|
4292
4608
|
}) {
|
|
4293
|
-
return /* @__PURE__ */
|
|
4609
|
+
return /* @__PURE__ */ jsx44(
|
|
4294
4610
|
"div",
|
|
4295
4611
|
{
|
|
4296
4612
|
className: cn(
|
|
@@ -4305,7 +4621,7 @@ function Header({
|
|
|
4305
4621
|
children,
|
|
4306
4622
|
className
|
|
4307
4623
|
}) {
|
|
4308
|
-
return /* @__PURE__ */
|
|
4624
|
+
return /* @__PURE__ */ jsx44(
|
|
4309
4625
|
"header",
|
|
4310
4626
|
{
|
|
4311
4627
|
className: cn(
|
|
@@ -4318,7 +4634,7 @@ function Header({
|
|
|
4318
4634
|
}
|
|
4319
4635
|
|
|
4320
4636
|
// src/components/navigation/tabs.tsx
|
|
4321
|
-
import { jsx as
|
|
4637
|
+
import { jsx as jsx45, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4322
4638
|
function TabAltHeader({
|
|
4323
4639
|
label,
|
|
4324
4640
|
isNew,
|
|
@@ -4326,7 +4642,7 @@ function TabAltHeader({
|
|
|
4326
4642
|
onClick,
|
|
4327
4643
|
className = ""
|
|
4328
4644
|
}) {
|
|
4329
|
-
return /* @__PURE__ */
|
|
4645
|
+
return /* @__PURE__ */ jsx45(
|
|
4330
4646
|
"button",
|
|
4331
4647
|
{
|
|
4332
4648
|
type: "button",
|
|
@@ -4336,9 +4652,9 @@ function TabAltHeader({
|
|
|
4336
4652
|
isActive ? "text-white" : "text-brand-black-100 hover:text-white",
|
|
4337
4653
|
className
|
|
4338
4654
|
),
|
|
4339
|
-
children: /* @__PURE__ */
|
|
4340
|
-
/* @__PURE__ */
|
|
4341
|
-
isNew && /* @__PURE__ */
|
|
4655
|
+
children: /* @__PURE__ */ jsxs32("span", { className: "relative z-10 flex items-center gap-2", children: [
|
|
4656
|
+
/* @__PURE__ */ jsx45("span", { className: "font-medium", children: label }),
|
|
4657
|
+
isNew && /* @__PURE__ */ jsx45("span", { className: "text-brand-warning-500 caption-text absolute top-0 left-[100%] w-max", children: "New" })
|
|
4342
4658
|
] })
|
|
4343
4659
|
}
|
|
4344
4660
|
);
|
|
@@ -4347,13 +4663,13 @@ function TabAltHeaders({
|
|
|
4347
4663
|
children,
|
|
4348
4664
|
className = ""
|
|
4349
4665
|
}) {
|
|
4350
|
-
return /* @__PURE__ */
|
|
4666
|
+
return /* @__PURE__ */ jsx45("div", { className: cn("flex space-x-3 mb-6", className), children });
|
|
4351
4667
|
}
|
|
4352
4668
|
function TabAltContent({
|
|
4353
4669
|
children,
|
|
4354
4670
|
className = ""
|
|
4355
4671
|
}) {
|
|
4356
|
-
return /* @__PURE__ */
|
|
4672
|
+
return /* @__PURE__ */ jsx45("div", { className, children });
|
|
4357
4673
|
}
|
|
4358
4674
|
function TabAltPanel({
|
|
4359
4675
|
id,
|
|
@@ -4362,18 +4678,18 @@ function TabAltPanel({
|
|
|
4362
4678
|
className = ""
|
|
4363
4679
|
}) {
|
|
4364
4680
|
if (activeTab !== id) return null;
|
|
4365
|
-
return /* @__PURE__ */
|
|
4681
|
+
return /* @__PURE__ */ jsx45("div", { className, children }, id);
|
|
4366
4682
|
}
|
|
4367
4683
|
function TabAlt({
|
|
4368
4684
|
children,
|
|
4369
4685
|
className = ""
|
|
4370
4686
|
}) {
|
|
4371
|
-
return /* @__PURE__ */
|
|
4687
|
+
return /* @__PURE__ */ jsx45("div", { className: cn("w-full", className), children });
|
|
4372
4688
|
}
|
|
4373
4689
|
|
|
4374
4690
|
// src/components/organisms/settings.tsx
|
|
4375
4691
|
import { useState as useState7 } from "react";
|
|
4376
|
-
import { jsx as
|
|
4692
|
+
import { jsx as jsx46, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4377
4693
|
var PRESET_SLIPPAGES = ["Auto", "0.25%", "0.5%", "0.75%", "1%"];
|
|
4378
4694
|
var DEFAULT_TOOLTIP_TEXTS = {
|
|
4379
4695
|
bridge: {
|
|
@@ -4447,13 +4763,13 @@ var Settings = ({
|
|
|
4447
4763
|
const title = type === "bridge" ? "Bridge" : "Swap";
|
|
4448
4764
|
const effectiveSlippageTooltip = slippageTooltipText || DEFAULT_TOOLTIP_TEXTS[type].slippage;
|
|
4449
4765
|
const effectiveDeadlineTooltip = deadlineTooltipText || DEFAULT_TOOLTIP_TEXTS[type].deadline;
|
|
4450
|
-
return /* @__PURE__ */
|
|
4451
|
-
/* @__PURE__ */
|
|
4452
|
-
/* @__PURE__ */
|
|
4766
|
+
return /* @__PURE__ */ jsxs33(Modal, { className: "p-4 !h-max", isOpen, onClose, children: [
|
|
4767
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex items-center justify-between", children: [
|
|
4768
|
+
/* @__PURE__ */ jsxs33("div", { className: "body-1 font-medium text-white max-w-[200px] break-words", children: [
|
|
4453
4769
|
title,
|
|
4454
4770
|
" settings"
|
|
4455
4771
|
] }),
|
|
4456
|
-
/* @__PURE__ */
|
|
4772
|
+
/* @__PURE__ */ jsx46(
|
|
4457
4773
|
XIcon_default,
|
|
4458
4774
|
{
|
|
4459
4775
|
className: "size-4 cursor-pointer text-brand-black-100 hover:text-white duration-200 transition-colors",
|
|
@@ -4461,46 +4777,46 @@ var Settings = ({
|
|
|
4461
4777
|
}
|
|
4462
4778
|
)
|
|
4463
4779
|
] }),
|
|
4464
|
-
/* @__PURE__ */
|
|
4465
|
-
/* @__PURE__ */
|
|
4466
|
-
/* @__PURE__ */
|
|
4780
|
+
/* @__PURE__ */ jsxs33("div", { className: "mt-4", children: [
|
|
4781
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-1 text-brand-black-100", children: [
|
|
4782
|
+
/* @__PURE__ */ jsxs33("p", { className: "text-caption", children: [
|
|
4467
4783
|
title,
|
|
4468
4784
|
" Slippage"
|
|
4469
4785
|
] }),
|
|
4470
|
-
/* @__PURE__ */
|
|
4471
|
-
/* @__PURE__ */
|
|
4472
|
-
/* @__PURE__ */
|
|
4786
|
+
/* @__PURE__ */ jsxs33(Tooltip, { children: [
|
|
4787
|
+
/* @__PURE__ */ jsx46(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx46(CircleInfo_default, { className: "size-[14px] cursor-pointer hover:text-white duration-200 transition-colors" }) }),
|
|
4788
|
+
/* @__PURE__ */ jsx46(TooltipContent, { children: /* @__PURE__ */ jsx46("p", { className: "text-caption", children: effectiveSlippageTooltip }) })
|
|
4473
4789
|
] })
|
|
4474
4790
|
] }),
|
|
4475
|
-
/* @__PURE__ */
|
|
4476
|
-
PRESET_SLIPPAGES.map((option) => /* @__PURE__ */
|
|
4791
|
+
/* @__PURE__ */ jsxs33("div", { className: "grid grid-cols-3 gap-2 mt-3", children: [
|
|
4792
|
+
PRESET_SLIPPAGES.map((option) => /* @__PURE__ */ jsx46(
|
|
4477
4793
|
"div",
|
|
4478
4794
|
{
|
|
4479
4795
|
className: cn(
|
|
4480
4796
|
"relative rounded-2xl p-[1.5px]",
|
|
4481
4797
|
isSlippageSelected(option) ? "animated-gradient-border" : "bg-transparent"
|
|
4482
4798
|
),
|
|
4483
|
-
children: /* @__PURE__ */
|
|
4799
|
+
children: /* @__PURE__ */ jsx46(
|
|
4484
4800
|
"button",
|
|
4485
4801
|
{
|
|
4486
4802
|
type: "button",
|
|
4487
4803
|
onClick: () => handleSlippageSelect(option),
|
|
4488
4804
|
className: "cursor-pointer w-full rounded-[16px] bg-brand-card-100 hover:bg-brand-card-100/80 transition-colors duration-200 p-[14px] flex items-center justify-center min-h-12",
|
|
4489
|
-
children: /* @__PURE__ */
|
|
4805
|
+
children: /* @__PURE__ */ jsx46("p", { className: "body-1 font-medium", children: option })
|
|
4490
4806
|
}
|
|
4491
4807
|
)
|
|
4492
4808
|
},
|
|
4493
4809
|
option
|
|
4494
4810
|
)),
|
|
4495
|
-
/* @__PURE__ */
|
|
4811
|
+
/* @__PURE__ */ jsx46(
|
|
4496
4812
|
"div",
|
|
4497
4813
|
{
|
|
4498
4814
|
className: cn(
|
|
4499
4815
|
"relative rounded-2xl p-[1.5px]",
|
|
4500
4816
|
isCustomSlippageActive ? "animated-gradient-border" : "bg-transparent"
|
|
4501
4817
|
),
|
|
4502
|
-
children: /* @__PURE__ */
|
|
4503
|
-
/* @__PURE__ */
|
|
4818
|
+
children: /* @__PURE__ */ jsxs33("div", { className: "relative bg-brand-card-100 rounded-[16px]", children: [
|
|
4819
|
+
/* @__PURE__ */ jsx46(
|
|
4504
4820
|
Input,
|
|
4505
4821
|
{
|
|
4506
4822
|
min: 0,
|
|
@@ -4515,25 +4831,25 @@ var Settings = ({
|
|
|
4515
4831
|
onKeyDown: handleKeyDown
|
|
4516
4832
|
}
|
|
4517
4833
|
),
|
|
4518
|
-
/* @__PURE__ */
|
|
4834
|
+
/* @__PURE__ */ jsx46("span", { className: "body-1 absolute right-4 top-1/2 -translate-y-1/2 text-brand-black-100", children: "%" })
|
|
4519
4835
|
] })
|
|
4520
4836
|
}
|
|
4521
4837
|
)
|
|
4522
4838
|
] })
|
|
4523
4839
|
] }),
|
|
4524
|
-
/* @__PURE__ */
|
|
4525
|
-
/* @__PURE__ */
|
|
4526
|
-
/* @__PURE__ */
|
|
4840
|
+
/* @__PURE__ */ jsxs33("div", { className: "mt-6", children: [
|
|
4841
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-1 text-brand-black-100", children: [
|
|
4842
|
+
/* @__PURE__ */ jsxs33("p", { className: "text-caption", children: [
|
|
4527
4843
|
title,
|
|
4528
4844
|
" deadline"
|
|
4529
4845
|
] }),
|
|
4530
|
-
/* @__PURE__ */
|
|
4531
|
-
/* @__PURE__ */
|
|
4532
|
-
/* @__PURE__ */
|
|
4846
|
+
/* @__PURE__ */ jsxs33(Tooltip, { children: [
|
|
4847
|
+
/* @__PURE__ */ jsx46(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx46(CircleInfo_default, { className: "size-[14px] cursor-pointer hover:text-white duration-200 transition-colors" }) }),
|
|
4848
|
+
/* @__PURE__ */ jsx46(TooltipContent, { children: /* @__PURE__ */ jsx46("p", { className: "text-caption", children: effectiveDeadlineTooltip }) })
|
|
4533
4849
|
] })
|
|
4534
4850
|
] }),
|
|
4535
|
-
/* @__PURE__ */
|
|
4536
|
-
/* @__PURE__ */
|
|
4851
|
+
/* @__PURE__ */ jsxs33("div", { className: "relative mt-3", children: [
|
|
4852
|
+
/* @__PURE__ */ jsx46(
|
|
4537
4853
|
Input,
|
|
4538
4854
|
{
|
|
4539
4855
|
value: customDeadline,
|
|
@@ -4546,32 +4862,32 @@ var Settings = ({
|
|
|
4546
4862
|
min: 0
|
|
4547
4863
|
}
|
|
4548
4864
|
),
|
|
4549
|
-
/* @__PURE__ */
|
|
4865
|
+
/* @__PURE__ */ jsx46("span", { className: "body-1 absolute right-4 top-1/2 -translate-y-1/2 text-brand-black-100", children: "minutes" })
|
|
4550
4866
|
] })
|
|
4551
4867
|
] })
|
|
4552
4868
|
] });
|
|
4553
4869
|
};
|
|
4554
4870
|
|
|
4555
4871
|
// src/components/organisms/bridge-settings.tsx
|
|
4556
|
-
import { jsx as
|
|
4872
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4557
4873
|
var BridgeSettings = (props) => {
|
|
4558
|
-
return /* @__PURE__ */
|
|
4874
|
+
return /* @__PURE__ */ jsx47(Settings, __spreadProps(__spreadValues({}, props), { type: "bridge" }));
|
|
4559
4875
|
};
|
|
4560
4876
|
|
|
4561
4877
|
// src/@/ui/sheet.tsx
|
|
4562
4878
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
4563
|
-
import { jsx as
|
|
4879
|
+
import { jsx as jsx48, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4564
4880
|
function Sheet(_a) {
|
|
4565
4881
|
var props = __objRest(_a, []);
|
|
4566
|
-
return /* @__PURE__ */
|
|
4882
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Root, __spreadValues({ "data-slot": "sheet" }, props));
|
|
4567
4883
|
}
|
|
4568
4884
|
function SheetTrigger(_a) {
|
|
4569
4885
|
var props = __objRest(_a, []);
|
|
4570
|
-
return /* @__PURE__ */
|
|
4886
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Trigger, __spreadValues({ "data-slot": "sheet-trigger" }, props));
|
|
4571
4887
|
}
|
|
4572
4888
|
function SheetPortal(_a) {
|
|
4573
4889
|
var props = __objRest(_a, []);
|
|
4574
|
-
return /* @__PURE__ */
|
|
4890
|
+
return /* @__PURE__ */ jsx48(SheetPrimitive.Portal, __spreadValues({ "data-slot": "sheet-portal" }, props));
|
|
4575
4891
|
}
|
|
4576
4892
|
function SheetOverlay(_a) {
|
|
4577
4893
|
var _b = _a, {
|
|
@@ -4579,7 +4895,7 @@ function SheetOverlay(_a) {
|
|
|
4579
4895
|
} = _b, props = __objRest(_b, [
|
|
4580
4896
|
"className"
|
|
4581
4897
|
]);
|
|
4582
|
-
return /* @__PURE__ */
|
|
4898
|
+
return /* @__PURE__ */ jsx48(
|
|
4583
4899
|
SheetPrimitive.Overlay,
|
|
4584
4900
|
__spreadValues({
|
|
4585
4901
|
"data-slot": "sheet-overlay",
|
|
@@ -4600,9 +4916,9 @@ function SheetContent(_a) {
|
|
|
4600
4916
|
"children",
|
|
4601
4917
|
"side"
|
|
4602
4918
|
]);
|
|
4603
|
-
return /* @__PURE__ */
|
|
4604
|
-
/* @__PURE__ */
|
|
4605
|
-
/* @__PURE__ */
|
|
4919
|
+
return /* @__PURE__ */ jsxs34(SheetPortal, { children: [
|
|
4920
|
+
/* @__PURE__ */ jsx48(SheetOverlay, {}),
|
|
4921
|
+
/* @__PURE__ */ jsxs34(
|
|
4606
4922
|
SheetPrimitive.Content,
|
|
4607
4923
|
__spreadProps(__spreadValues({
|
|
4608
4924
|
"data-slot": "sheet-content",
|
|
@@ -4617,12 +4933,12 @@ function SheetContent(_a) {
|
|
|
4617
4933
|
}, props), {
|
|
4618
4934
|
children: [
|
|
4619
4935
|
children,
|
|
4620
|
-
/* @__PURE__ */
|
|
4936
|
+
/* @__PURE__ */ jsx48(
|
|
4621
4937
|
SheetPrimitive.Close,
|
|
4622
4938
|
{
|
|
4623
4939
|
asChild: true,
|
|
4624
4940
|
className: "absolute top-[1.625rem] -left-10",
|
|
4625
|
-
children: /* @__PURE__ */
|
|
4941
|
+
children: /* @__PURE__ */ jsxs34(
|
|
4626
4942
|
IconButton,
|
|
4627
4943
|
{
|
|
4628
4944
|
className: "cursor-pointer",
|
|
@@ -4630,8 +4946,8 @@ function SheetContent(_a) {
|
|
|
4630
4946
|
rounded: "full",
|
|
4631
4947
|
size: "sm",
|
|
4632
4948
|
children: [
|
|
4633
|
-
/* @__PURE__ */
|
|
4634
|
-
/* @__PURE__ */
|
|
4949
|
+
/* @__PURE__ */ jsx48(ChevronDoubleRight_default, { className: "size-4 text-brand-black-100" }),
|
|
4950
|
+
/* @__PURE__ */ jsx48("span", { className: "sr-only", children: "Close" })
|
|
4635
4951
|
]
|
|
4636
4952
|
}
|
|
4637
4953
|
)
|
|
@@ -4644,7 +4960,7 @@ function SheetContent(_a) {
|
|
|
4644
4960
|
}
|
|
4645
4961
|
function SheetHeader(_a) {
|
|
4646
4962
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4647
|
-
return /* @__PURE__ */
|
|
4963
|
+
return /* @__PURE__ */ jsx48(
|
|
4648
4964
|
"div",
|
|
4649
4965
|
__spreadValues({
|
|
4650
4966
|
"data-slot": "sheet-header",
|
|
@@ -4658,7 +4974,7 @@ function SheetTitle(_a) {
|
|
|
4658
4974
|
} = _b, props = __objRest(_b, [
|
|
4659
4975
|
"className"
|
|
4660
4976
|
]);
|
|
4661
|
-
return /* @__PURE__ */
|
|
4977
|
+
return /* @__PURE__ */ jsx48(
|
|
4662
4978
|
SheetPrimitive.Title,
|
|
4663
4979
|
__spreadValues({
|
|
4664
4980
|
"data-slot": "sheet-title",
|
|
@@ -4672,7 +4988,7 @@ function SheetDescription(_a) {
|
|
|
4672
4988
|
} = _b, props = __objRest(_b, [
|
|
4673
4989
|
"className"
|
|
4674
4990
|
]);
|
|
4675
|
-
return /* @__PURE__ */
|
|
4991
|
+
return /* @__PURE__ */ jsx48(
|
|
4676
4992
|
SheetPrimitive.Description,
|
|
4677
4993
|
__spreadValues({
|
|
4678
4994
|
"data-slot": "sheet-description",
|
|
@@ -4683,22 +4999,22 @@ function SheetDescription(_a) {
|
|
|
4683
4999
|
|
|
4684
5000
|
// src/components/navigation/hyperbridge-drawer.tsx
|
|
4685
5001
|
import { Drawer as DrawerPrimitive2 } from "vaul";
|
|
4686
|
-
import { Fragment as Fragment12, jsx as
|
|
5002
|
+
import { Fragment as Fragment12, jsx as jsx49, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4687
5003
|
function HBDrawer(_a) {
|
|
4688
5004
|
var props = __objRest(_a, []);
|
|
4689
|
-
return /* @__PURE__ */
|
|
5005
|
+
return /* @__PURE__ */ jsx49(DrawerPrimitive2.Root, __spreadValues({ "data-slot": "hb-drawer" }, props));
|
|
4690
5006
|
}
|
|
4691
5007
|
function HBDrawerTrigger(_a) {
|
|
4692
5008
|
var props = __objRest(_a, []);
|
|
4693
|
-
return /* @__PURE__ */
|
|
5009
|
+
return /* @__PURE__ */ jsx49(DrawerPrimitive2.Trigger, __spreadValues({ "data-slot": "hb-drawer-trigger" }, props));
|
|
4694
5010
|
}
|
|
4695
5011
|
function HBDrawerPortal(_a) {
|
|
4696
5012
|
var props = __objRest(_a, []);
|
|
4697
|
-
return /* @__PURE__ */
|
|
5013
|
+
return /* @__PURE__ */ jsx49(DrawerPrimitive2.Portal, __spreadValues({ "data-slot": "hb-drawer-portal" }, props));
|
|
4698
5014
|
}
|
|
4699
5015
|
function HBDrawerClose(_a) {
|
|
4700
5016
|
var props = __objRest(_a, []);
|
|
4701
|
-
return /* @__PURE__ */
|
|
5017
|
+
return /* @__PURE__ */ jsx49(DrawerPrimitive2.Close, __spreadValues({ "data-slot": "hb-drawer-close" }, props));
|
|
4702
5018
|
}
|
|
4703
5019
|
function HBDrawerOverlay(_a) {
|
|
4704
5020
|
var _b = _a, {
|
|
@@ -4706,7 +5022,7 @@ function HBDrawerOverlay(_a) {
|
|
|
4706
5022
|
} = _b, props = __objRest(_b, [
|
|
4707
5023
|
"className"
|
|
4708
5024
|
]);
|
|
4709
|
-
return /* @__PURE__ */
|
|
5025
|
+
return /* @__PURE__ */ jsx49(
|
|
4710
5026
|
DrawerPrimitive2.Overlay,
|
|
4711
5027
|
__spreadValues({
|
|
4712
5028
|
"data-slot": "hb-drawer-overlay",
|
|
@@ -4725,10 +5041,10 @@ function HBDrawerContent(_a) {
|
|
|
4725
5041
|
"className",
|
|
4726
5042
|
"children"
|
|
4727
5043
|
]);
|
|
4728
|
-
return /* @__PURE__ */
|
|
4729
|
-
/* @__PURE__ */
|
|
4730
|
-
/* @__PURE__ */
|
|
4731
|
-
/* @__PURE__ */
|
|
5044
|
+
return /* @__PURE__ */ jsxs35(Fragment12, { children: [
|
|
5045
|
+
/* @__PURE__ */ jsx49(HBDrawerPortal, {}),
|
|
5046
|
+
/* @__PURE__ */ jsx49(HBDrawerOverlay, {}),
|
|
5047
|
+
/* @__PURE__ */ jsxs35(
|
|
4732
5048
|
DrawerPrimitive2.Content,
|
|
4733
5049
|
__spreadProps(__spreadValues({
|
|
4734
5050
|
"data-slot": "hb-drawer-content",
|
|
@@ -4742,7 +5058,7 @@ function HBDrawerContent(_a) {
|
|
|
4742
5058
|
)
|
|
4743
5059
|
}, props), {
|
|
4744
5060
|
children: [
|
|
4745
|
-
/* @__PURE__ */
|
|
5061
|
+
/* @__PURE__ */ jsx49("div", { className: "bg-brand-black-350 mx-auto my-2 hidden h-[5px] w-16 shrink-0 rounded-[2.5px] group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
4746
5062
|
children
|
|
4747
5063
|
]
|
|
4748
5064
|
})
|
|
@@ -4751,7 +5067,7 @@ function HBDrawerContent(_a) {
|
|
|
4751
5067
|
}
|
|
4752
5068
|
function HBDrawerHeader(_a) {
|
|
4753
5069
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4754
|
-
return /* @__PURE__ */
|
|
5070
|
+
return /* @__PURE__ */ jsx49(
|
|
4755
5071
|
"div",
|
|
4756
5072
|
__spreadValues({
|
|
4757
5073
|
"data-slot": "hb-drawer-header",
|
|
@@ -4764,7 +5080,7 @@ function HBDrawerHeader(_a) {
|
|
|
4764
5080
|
}
|
|
4765
5081
|
function HBDrawerFooter(_a) {
|
|
4766
5082
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4767
|
-
return /* @__PURE__ */
|
|
5083
|
+
return /* @__PURE__ */ jsx49(
|
|
4768
5084
|
"div",
|
|
4769
5085
|
__spreadValues({
|
|
4770
5086
|
"data-slot": "hb-drawer-footer",
|
|
@@ -4778,7 +5094,7 @@ function HBDrawerTitle(_a) {
|
|
|
4778
5094
|
} = _b, props = __objRest(_b, [
|
|
4779
5095
|
"className"
|
|
4780
5096
|
]);
|
|
4781
|
-
return /* @__PURE__ */
|
|
5097
|
+
return /* @__PURE__ */ jsx49(
|
|
4782
5098
|
DrawerPrimitive2.Title,
|
|
4783
5099
|
__spreadValues({
|
|
4784
5100
|
"data-slot": "hb-drawer-title",
|
|
@@ -4792,7 +5108,7 @@ function HBDrawerDescription(_a) {
|
|
|
4792
5108
|
} = _b, props = __objRest(_b, [
|
|
4793
5109
|
"className"
|
|
4794
5110
|
]);
|
|
4795
|
-
return /* @__PURE__ */
|
|
5111
|
+
return /* @__PURE__ */ jsx49(
|
|
4796
5112
|
DrawerPrimitive2.Description,
|
|
4797
5113
|
__spreadValues({
|
|
4798
5114
|
"data-slot": "hb-drawer-description",
|
|
@@ -4802,15 +5118,15 @@ function HBDrawerDescription(_a) {
|
|
|
4802
5118
|
}
|
|
4803
5119
|
|
|
4804
5120
|
// src/components/organisms/manage-account.tsx
|
|
4805
|
-
import { jsx as
|
|
5121
|
+
import { jsx as jsx50, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4806
5122
|
function ManageAccounts() {
|
|
4807
5123
|
console.warn("ManageAccounts is deprecated");
|
|
4808
5124
|
return null;
|
|
4809
5125
|
}
|
|
4810
5126
|
function HeaderChooseProvider() {
|
|
4811
|
-
return /* @__PURE__ */
|
|
4812
|
-
/* @__PURE__ */
|
|
4813
|
-
/* @__PURE__ */
|
|
5127
|
+
return /* @__PURE__ */ jsxs36(SheetHeader, { className: "p-[1rem] -mx-[1rem]", children: [
|
|
5128
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-[0.625rem] select-none", children: [
|
|
5129
|
+
/* @__PURE__ */ jsx50(
|
|
4814
5130
|
IconButton,
|
|
4815
5131
|
{
|
|
4816
5132
|
disabled: true,
|
|
@@ -4818,20 +5134,20 @@ function HeaderChooseProvider() {
|
|
|
4818
5134
|
variant: "level_2",
|
|
4819
5135
|
rounded: "full",
|
|
4820
5136
|
size: "sm",
|
|
4821
|
-
children: /* @__PURE__ */
|
|
5137
|
+
children: /* @__PURE__ */ jsx50(Wallet_default, { className: "size-5" })
|
|
4822
5138
|
}
|
|
4823
5139
|
),
|
|
4824
|
-
/* @__PURE__ */
|
|
5140
|
+
/* @__PURE__ */ jsx50(SheetTitle, { className: "text-brand-white-100", children: /* @__PURE__ */ jsx50("span", { className: "text-base font-medium", children: "Connect Your Wallet" }) })
|
|
4825
5141
|
] }),
|
|
4826
|
-
/* @__PURE__ */
|
|
5142
|
+
/* @__PURE__ */ jsx50(SheetDescription, { className: "sr-only", children: "Choose a wallet provider to connect to our application." })
|
|
4827
5143
|
] });
|
|
4828
5144
|
}
|
|
4829
5145
|
function HeaderNested(props) {
|
|
4830
5146
|
var _a;
|
|
4831
5147
|
const { heading, image, onBack, hideBackButton } = props;
|
|
4832
|
-
return /* @__PURE__ */
|
|
4833
|
-
/* @__PURE__ */
|
|
4834
|
-
/* @__PURE__ */
|
|
5148
|
+
return /* @__PURE__ */ jsxs36("div", { className: "p-[1rem] -mx-[1rem]", children: [
|
|
5149
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-[0.625rem] select-none", children: [
|
|
5150
|
+
/* @__PURE__ */ jsx50(
|
|
4835
5151
|
TokenImage,
|
|
4836
5152
|
{
|
|
4837
5153
|
src: image.src,
|
|
@@ -4839,15 +5155,15 @@ function HeaderNested(props) {
|
|
|
4839
5155
|
alt: (_a = image.alt) != null ? _a : heading
|
|
4840
5156
|
}
|
|
4841
5157
|
),
|
|
4842
|
-
/* @__PURE__ */
|
|
4843
|
-
!hideBackButton && /* @__PURE__ */
|
|
5158
|
+
/* @__PURE__ */ jsx50(SheetTitle, { className: "text-brand-white-100 flex-1", children: /* @__PURE__ */ jsx50("span", { className: "text-base font-medium", children: heading }) }),
|
|
5159
|
+
!hideBackButton && /* @__PURE__ */ jsx50(
|
|
4844
5160
|
IconButton,
|
|
4845
5161
|
{
|
|
4846
5162
|
variant: "level_1",
|
|
4847
5163
|
rounded: "full",
|
|
4848
5164
|
size: "sm",
|
|
4849
5165
|
onClick: onBack,
|
|
4850
|
-
children: /* @__PURE__ */
|
|
5166
|
+
children: /* @__PURE__ */ jsx50(
|
|
4851
5167
|
StepBack_default,
|
|
4852
5168
|
{
|
|
4853
5169
|
width: "1rem",
|
|
@@ -4858,7 +5174,7 @@ function HeaderNested(props) {
|
|
|
4858
5174
|
}
|
|
4859
5175
|
)
|
|
4860
5176
|
] }),
|
|
4861
|
-
/* @__PURE__ */
|
|
5177
|
+
/* @__PURE__ */ jsx50(SheetDescription, { className: "sr-only", children: "Choose a wallet provider to connect to our application." })
|
|
4862
5178
|
] });
|
|
4863
5179
|
}
|
|
4864
5180
|
function ListSection({
|
|
@@ -4866,9 +5182,9 @@ function ListSection({
|
|
|
4866
5182
|
caption = "Heading",
|
|
4867
5183
|
contentClassName
|
|
4868
5184
|
}) {
|
|
4869
|
-
return /* @__PURE__ */
|
|
4870
|
-
/* @__PURE__ */
|
|
4871
|
-
/* @__PURE__ */
|
|
5185
|
+
return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-y-[0.375rem]", children: [
|
|
5186
|
+
/* @__PURE__ */ jsx50("div", { className: "text-caption text-brand-black-100 select-none font-normal", children: caption }),
|
|
5187
|
+
/* @__PURE__ */ jsx50("div", { className: cn("flex flex-col gap-2", contentClassName), children })
|
|
4872
5188
|
] });
|
|
4873
5189
|
}
|
|
4874
5190
|
function CWDrawerContent(_a) {
|
|
@@ -4880,7 +5196,7 @@ function CWDrawerContent(_a) {
|
|
|
4880
5196
|
const isMobile = useIsMobile();
|
|
4881
5197
|
const viewportHeight = useViewportHeight(isMobile);
|
|
4882
5198
|
if (isMobile) {
|
|
4883
|
-
return /* @__PURE__ */
|
|
5199
|
+
return /* @__PURE__ */ jsx50(
|
|
4884
5200
|
HBDrawerContent,
|
|
4885
5201
|
{
|
|
4886
5202
|
className: "bg-brand-black-550 rounded-t-[1rem] w-full px-[1rem] border-t border-brand-black-300",
|
|
@@ -4891,30 +5207,30 @@ function CWDrawerContent(_a) {
|
|
|
4891
5207
|
} : {
|
|
4892
5208
|
minHeight: "90dvh"
|
|
4893
5209
|
},
|
|
4894
|
-
children: /* @__PURE__ */
|
|
5210
|
+
children: /* @__PURE__ */ jsx50("div", { className: "flex flex-col flex-1", children })
|
|
4895
5211
|
}
|
|
4896
5212
|
);
|
|
4897
5213
|
}
|
|
4898
|
-
return /* @__PURE__ */
|
|
5214
|
+
return /* @__PURE__ */ jsx50(
|
|
4899
5215
|
SheetContent,
|
|
4900
5216
|
__spreadProps(__spreadValues({}, props), {
|
|
4901
5217
|
side: "right",
|
|
4902
5218
|
className: "h-full max-h-auto max-w-[calc(29.75rem_+_1.25rem)] select-none border-none shadow-none text-brand-white-500 w-full sm:w-[540px] bg-transparent p-[0.625rem]",
|
|
4903
|
-
children: /* @__PURE__ */
|
|
5219
|
+
children: /* @__PURE__ */ jsx50("div", { className: "bg-brand-black-550 flex-1 flex flex-col rounded-[1rem] px-[1rem] overflow-hidden", children })
|
|
4904
5220
|
})
|
|
4905
5221
|
);
|
|
4906
5222
|
}
|
|
4907
5223
|
|
|
4908
5224
|
// src/components/tokens/swap-token-selector.tsx
|
|
4909
5225
|
import { useRef as useRef3 } from "react";
|
|
4910
|
-
import { jsx as
|
|
5226
|
+
import { jsx as jsx51, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4911
5227
|
var SwapTokenSelector = ({
|
|
4912
5228
|
isOpen,
|
|
4913
5229
|
onClose,
|
|
4914
5230
|
children,
|
|
4915
5231
|
className
|
|
4916
5232
|
}) => {
|
|
4917
|
-
return /* @__PURE__ */
|
|
5233
|
+
return /* @__PURE__ */ jsx51(Modal, { isOpen, onClose, className, children });
|
|
4918
5234
|
};
|
|
4919
5235
|
var SwapTokenSelectorHeader = ({
|
|
4920
5236
|
title,
|
|
@@ -4922,7 +5238,7 @@ var SwapTokenSelectorHeader = ({
|
|
|
4922
5238
|
children,
|
|
4923
5239
|
className
|
|
4924
5240
|
}) => {
|
|
4925
|
-
return /* @__PURE__ */
|
|
5241
|
+
return /* @__PURE__ */ jsxs37(
|
|
4926
5242
|
"div",
|
|
4927
5243
|
{
|
|
4928
5244
|
className: cn(
|
|
@@ -4930,9 +5246,9 @@ var SwapTokenSelectorHeader = ({
|
|
|
4930
5246
|
className
|
|
4931
5247
|
),
|
|
4932
5248
|
children: [
|
|
4933
|
-
/* @__PURE__ */
|
|
4934
|
-
title && /* @__PURE__ */
|
|
4935
|
-
onClose && /* @__PURE__ */
|
|
5249
|
+
/* @__PURE__ */ jsxs37("div", { className: "flex items-center justify-between", children: [
|
|
5250
|
+
title && /* @__PURE__ */ jsx51("div", { className: "body-1 font-medium text-white max-w-[200px] break-words", children: title }),
|
|
5251
|
+
onClose && /* @__PURE__ */ jsx51(
|
|
4936
5252
|
XIcon_default,
|
|
4937
5253
|
{
|
|
4938
5254
|
className: "size-4 cursor-pointer text-brand-black-100 hover:text-white duration-200 transition-colors",
|
|
@@ -4949,16 +5265,16 @@ var SwapTokenSelectorSearch = ({
|
|
|
4949
5265
|
children,
|
|
4950
5266
|
className
|
|
4951
5267
|
}) => {
|
|
4952
|
-
return /* @__PURE__ */
|
|
5268
|
+
return /* @__PURE__ */ jsx51("div", { className: cn("mt-4", className), children });
|
|
4953
5269
|
};
|
|
4954
5270
|
var SwapTokenSelectorContent = ({
|
|
4955
5271
|
children,
|
|
4956
5272
|
className
|
|
4957
5273
|
}) => {
|
|
4958
5274
|
const scrollRef = useRef3(null);
|
|
4959
|
-
return /* @__PURE__ */
|
|
4960
|
-
/* @__PURE__ */
|
|
4961
|
-
/* @__PURE__ */
|
|
5275
|
+
return /* @__PURE__ */ jsxs37("div", { className: "relative flex-1 flex flex-col min-h-0", children: [
|
|
5276
|
+
/* @__PURE__ */ jsx51(ScrollAwareSeparator, { scrollRef }),
|
|
5277
|
+
/* @__PURE__ */ jsx51(ScrollArea, { ref: scrollRef, className: "h-full", children: /* @__PURE__ */ jsx51("div", { className: cn("px-6 pb-6 space-y-4", className), children }) })
|
|
4962
5278
|
] });
|
|
4963
5279
|
};
|
|
4964
5280
|
var SwapTokenSelectorSection = ({
|
|
@@ -4966,16 +5282,16 @@ var SwapTokenSelectorSection = ({
|
|
|
4966
5282
|
children,
|
|
4967
5283
|
className
|
|
4968
5284
|
}) => {
|
|
4969
|
-
return /* @__PURE__ */
|
|
4970
|
-
title && /* @__PURE__ */
|
|
4971
|
-
/* @__PURE__ */
|
|
5285
|
+
return /* @__PURE__ */ jsxs37("div", { className: cn("flex flex-col", className), children: [
|
|
5286
|
+
title && /* @__PURE__ */ jsx51("p", { className: "text-caption text-brand-black-100 mb-2", children: title }),
|
|
5287
|
+
/* @__PURE__ */ jsx51("div", { className: "space-y-2", children })
|
|
4972
5288
|
] });
|
|
4973
5289
|
};
|
|
4974
5290
|
var SwapTokenSelectorEmpty = ({
|
|
4975
5291
|
children,
|
|
4976
5292
|
className
|
|
4977
5293
|
}) => {
|
|
4978
|
-
return /* @__PURE__ */
|
|
5294
|
+
return /* @__PURE__ */ jsx51(
|
|
4979
5295
|
"div",
|
|
4980
5296
|
{
|
|
4981
5297
|
className: cn(
|
|
@@ -4996,7 +5312,7 @@ var SwapTokenItem = ({
|
|
|
4996
5312
|
amount,
|
|
4997
5313
|
usdValue
|
|
4998
5314
|
}) => {
|
|
4999
|
-
return /* @__PURE__ */
|
|
5315
|
+
return /* @__PURE__ */ jsx51(
|
|
5000
5316
|
"div",
|
|
5001
5317
|
{
|
|
5002
5318
|
className: cn(
|
|
@@ -5004,15 +5320,15 @@ var SwapTokenItem = ({
|
|
|
5004
5320
|
isActive && "animated-gradient-border",
|
|
5005
5321
|
className
|
|
5006
5322
|
),
|
|
5007
|
-
children: /* @__PURE__ */
|
|
5323
|
+
children: /* @__PURE__ */ jsxs37(
|
|
5008
5324
|
"button",
|
|
5009
5325
|
{
|
|
5010
5326
|
type: "button",
|
|
5011
5327
|
className: "cursor-pointer flex items-center justify-between w-full bg-brand-black-500 hover:bg-brand-black-300 duration-200 transition-colors p-3 rounded-[16px]",
|
|
5012
5328
|
onClick,
|
|
5013
5329
|
children: [
|
|
5014
|
-
/* @__PURE__ */
|
|
5015
|
-
/* @__PURE__ */
|
|
5330
|
+
/* @__PURE__ */ jsxs37("div", { className: "flex items-center text-start gap-3", children: [
|
|
5331
|
+
/* @__PURE__ */ jsx51(
|
|
5016
5332
|
BadgeIcon,
|
|
5017
5333
|
{
|
|
5018
5334
|
src: token.image,
|
|
@@ -5021,14 +5337,14 @@ var SwapTokenItem = ({
|
|
|
5021
5337
|
badgeAlt: network.name
|
|
5022
5338
|
}
|
|
5023
5339
|
),
|
|
5024
|
-
/* @__PURE__ */
|
|
5025
|
-
/* @__PURE__ */
|
|
5340
|
+
/* @__PURE__ */ jsxs37("div", { className: "flex flex-col gap-[2px] items-start", children: [
|
|
5341
|
+
/* @__PURE__ */ jsx51("p", { className: "body-1 font-medium text-white", children: token.name }),
|
|
5026
5342
|
address
|
|
5027
5343
|
] })
|
|
5028
5344
|
] }),
|
|
5029
|
-
/* @__PURE__ */
|
|
5030
|
-
/* @__PURE__ */
|
|
5031
|
-
/* @__PURE__ */
|
|
5345
|
+
/* @__PURE__ */ jsxs37("div", { className: "flex flex-col items-end gap-[2px]", children: [
|
|
5346
|
+
/* @__PURE__ */ jsx51("p", { className: "body-1 font-medium text-white", children: amount }),
|
|
5347
|
+
/* @__PURE__ */ jsx51("p", { className: "text-caption text-brand-black-100", children: usdValue })
|
|
5032
5348
|
] })
|
|
5033
5349
|
]
|
|
5034
5350
|
}
|
|
@@ -5040,18 +5356,18 @@ var SwapTokenItem = ({
|
|
|
5040
5356
|
// src/@/ui/dropdown-menu.tsx
|
|
5041
5357
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
5042
5358
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
5043
|
-
import { jsx as
|
|
5359
|
+
import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
5044
5360
|
function DropdownMenu(_a) {
|
|
5045
5361
|
var props = __objRest(_a, []);
|
|
5046
|
-
return /* @__PURE__ */
|
|
5362
|
+
return /* @__PURE__ */ jsx52(DropdownMenuPrimitive.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
|
|
5047
5363
|
}
|
|
5048
5364
|
function DropdownMenuPortal(_a) {
|
|
5049
5365
|
var props = __objRest(_a, []);
|
|
5050
|
-
return /* @__PURE__ */
|
|
5366
|
+
return /* @__PURE__ */ jsx52(DropdownMenuPrimitive.Portal, __spreadValues({ "data-slot": "dropdown-menu-portal" }, props));
|
|
5051
5367
|
}
|
|
5052
5368
|
function DropdownMenuTrigger(_a) {
|
|
5053
5369
|
var props = __objRest(_a, []);
|
|
5054
|
-
return /* @__PURE__ */
|
|
5370
|
+
return /* @__PURE__ */ jsx52(
|
|
5055
5371
|
DropdownMenuPrimitive.Trigger,
|
|
5056
5372
|
__spreadValues({
|
|
5057
5373
|
"data-slot": "dropdown-menu-trigger"
|
|
@@ -5066,7 +5382,7 @@ function DropdownMenuContent(_a) {
|
|
|
5066
5382
|
"className",
|
|
5067
5383
|
"sideOffset"
|
|
5068
5384
|
]);
|
|
5069
|
-
return /* @__PURE__ */
|
|
5385
|
+
return /* @__PURE__ */ jsx52(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx52(
|
|
5070
5386
|
DropdownMenuPrimitive.Content,
|
|
5071
5387
|
__spreadValues({
|
|
5072
5388
|
"data-slot": "dropdown-menu-content",
|
|
@@ -5080,7 +5396,7 @@ function DropdownMenuContent(_a) {
|
|
|
5080
5396
|
}
|
|
5081
5397
|
function DropdownMenuGroup(_a) {
|
|
5082
5398
|
var props = __objRest(_a, []);
|
|
5083
|
-
return /* @__PURE__ */
|
|
5399
|
+
return /* @__PURE__ */ jsx52(DropdownMenuPrimitive.Group, __spreadValues({ "data-slot": "dropdown-menu-group" }, props));
|
|
5084
5400
|
}
|
|
5085
5401
|
function DropdownMenuItem(_a) {
|
|
5086
5402
|
var _b = _a, {
|
|
@@ -5092,7 +5408,7 @@ function DropdownMenuItem(_a) {
|
|
|
5092
5408
|
"inset",
|
|
5093
5409
|
"variant"
|
|
5094
5410
|
]);
|
|
5095
|
-
return /* @__PURE__ */
|
|
5411
|
+
return /* @__PURE__ */ jsx52(
|
|
5096
5412
|
DropdownMenuPrimitive.Item,
|
|
5097
5413
|
__spreadValues({
|
|
5098
5414
|
"data-slot": "dropdown-menu-item",
|
|
@@ -5115,7 +5431,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
5115
5431
|
"children",
|
|
5116
5432
|
"checked"
|
|
5117
5433
|
]);
|
|
5118
|
-
return /* @__PURE__ */
|
|
5434
|
+
return /* @__PURE__ */ jsxs38(
|
|
5119
5435
|
DropdownMenuPrimitive.CheckboxItem,
|
|
5120
5436
|
__spreadProps(__spreadValues({
|
|
5121
5437
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -5126,7 +5442,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
5126
5442
|
checked
|
|
5127
5443
|
}, props), {
|
|
5128
5444
|
children: [
|
|
5129
|
-
/* @__PURE__ */
|
|
5445
|
+
/* @__PURE__ */ jsx52("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx52(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx52(CheckIcon, { className: "size-4" }) }) }),
|
|
5130
5446
|
children
|
|
5131
5447
|
]
|
|
5132
5448
|
})
|
|
@@ -5134,7 +5450,7 @@ function DropdownMenuCheckboxItem(_a) {
|
|
|
5134
5450
|
}
|
|
5135
5451
|
function DropdownMenuRadioGroup(_a) {
|
|
5136
5452
|
var props = __objRest(_a, []);
|
|
5137
|
-
return /* @__PURE__ */
|
|
5453
|
+
return /* @__PURE__ */ jsx52(
|
|
5138
5454
|
DropdownMenuPrimitive.RadioGroup,
|
|
5139
5455
|
__spreadValues({
|
|
5140
5456
|
"data-slot": "dropdown-menu-radio-group"
|
|
@@ -5149,7 +5465,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
5149
5465
|
"className",
|
|
5150
5466
|
"children"
|
|
5151
5467
|
]);
|
|
5152
|
-
return /* @__PURE__ */
|
|
5468
|
+
return /* @__PURE__ */ jsxs38(
|
|
5153
5469
|
DropdownMenuPrimitive.RadioItem,
|
|
5154
5470
|
__spreadProps(__spreadValues({
|
|
5155
5471
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -5159,7 +5475,7 @@ function DropdownMenuRadioItem(_a) {
|
|
|
5159
5475
|
)
|
|
5160
5476
|
}, props), {
|
|
5161
5477
|
children: [
|
|
5162
|
-
/* @__PURE__ */
|
|
5478
|
+
/* @__PURE__ */ jsx52("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx52(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx52(CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
5163
5479
|
children
|
|
5164
5480
|
]
|
|
5165
5481
|
})
|
|
@@ -5173,7 +5489,7 @@ function DropdownMenuLabel(_a) {
|
|
|
5173
5489
|
"className",
|
|
5174
5490
|
"inset"
|
|
5175
5491
|
]);
|
|
5176
|
-
return /* @__PURE__ */
|
|
5492
|
+
return /* @__PURE__ */ jsx52(
|
|
5177
5493
|
DropdownMenuPrimitive.Label,
|
|
5178
5494
|
__spreadValues({
|
|
5179
5495
|
"data-slot": "dropdown-menu-label",
|
|
@@ -5191,7 +5507,7 @@ function DropdownMenuSeparator(_a) {
|
|
|
5191
5507
|
} = _b, props = __objRest(_b, [
|
|
5192
5508
|
"className"
|
|
5193
5509
|
]);
|
|
5194
|
-
return /* @__PURE__ */
|
|
5510
|
+
return /* @__PURE__ */ jsx52(
|
|
5195
5511
|
DropdownMenuPrimitive.Separator,
|
|
5196
5512
|
__spreadValues({
|
|
5197
5513
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -5205,7 +5521,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
5205
5521
|
} = _b, props = __objRest(_b, [
|
|
5206
5522
|
"className"
|
|
5207
5523
|
]);
|
|
5208
|
-
return /* @__PURE__ */
|
|
5524
|
+
return /* @__PURE__ */ jsx52(
|
|
5209
5525
|
"span",
|
|
5210
5526
|
__spreadValues({
|
|
5211
5527
|
"data-slot": "dropdown-menu-shortcut",
|
|
@@ -5218,7 +5534,7 @@ function DropdownMenuShortcut(_a) {
|
|
|
5218
5534
|
}
|
|
5219
5535
|
function DropdownMenuSub(_a) {
|
|
5220
5536
|
var props = __objRest(_a, []);
|
|
5221
|
-
return /* @__PURE__ */
|
|
5537
|
+
return /* @__PURE__ */ jsx52(DropdownMenuPrimitive.Sub, __spreadValues({ "data-slot": "dropdown-menu-sub" }, props));
|
|
5222
5538
|
}
|
|
5223
5539
|
function DropdownMenuSubTrigger(_a) {
|
|
5224
5540
|
var _b = _a, {
|
|
@@ -5230,7 +5546,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
5230
5546
|
"inset",
|
|
5231
5547
|
"children"
|
|
5232
5548
|
]);
|
|
5233
|
-
return /* @__PURE__ */
|
|
5549
|
+
return /* @__PURE__ */ jsxs38(
|
|
5234
5550
|
DropdownMenuPrimitive.SubTrigger,
|
|
5235
5551
|
__spreadProps(__spreadValues({
|
|
5236
5552
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -5242,7 +5558,7 @@ function DropdownMenuSubTrigger(_a) {
|
|
|
5242
5558
|
}, props), {
|
|
5243
5559
|
children: [
|
|
5244
5560
|
children,
|
|
5245
|
-
/* @__PURE__ */
|
|
5561
|
+
/* @__PURE__ */ jsx52(ChevronRightIcon, { className: "ml-auto size-4" })
|
|
5246
5562
|
]
|
|
5247
5563
|
})
|
|
5248
5564
|
);
|
|
@@ -5253,7 +5569,7 @@ function DropdownMenuSubContent(_a) {
|
|
|
5253
5569
|
} = _b, props = __objRest(_b, [
|
|
5254
5570
|
"className"
|
|
5255
5571
|
]);
|
|
5256
|
-
return /* @__PURE__ */
|
|
5572
|
+
return /* @__PURE__ */ jsx52(
|
|
5257
5573
|
DropdownMenuPrimitive.SubContent,
|
|
5258
5574
|
__spreadValues({
|
|
5259
5575
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -5267,14 +5583,14 @@ function DropdownMenuSubContent(_a) {
|
|
|
5267
5583
|
|
|
5268
5584
|
// src/@/ui/popover.tsx
|
|
5269
5585
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
5270
|
-
import { jsx as
|
|
5586
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
5271
5587
|
function Popover(_a) {
|
|
5272
5588
|
var props = __objRest(_a, []);
|
|
5273
|
-
return /* @__PURE__ */
|
|
5589
|
+
return /* @__PURE__ */ jsx53(PopoverPrimitive.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
5274
5590
|
}
|
|
5275
5591
|
function PopoverTrigger(_a) {
|
|
5276
5592
|
var props = __objRest(_a, []);
|
|
5277
|
-
return /* @__PURE__ */
|
|
5593
|
+
return /* @__PURE__ */ jsx53(PopoverPrimitive.Trigger, __spreadValues({ "data-slot": "popover-trigger" }, props));
|
|
5278
5594
|
}
|
|
5279
5595
|
function PopoverContent(_a) {
|
|
5280
5596
|
var _b = _a, {
|
|
@@ -5286,7 +5602,7 @@ function PopoverContent(_a) {
|
|
|
5286
5602
|
"align",
|
|
5287
5603
|
"sideOffset"
|
|
5288
5604
|
]);
|
|
5289
|
-
return /* @__PURE__ */
|
|
5605
|
+
return /* @__PURE__ */ jsx53(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx53(
|
|
5290
5606
|
PopoverPrimitive.Content,
|
|
5291
5607
|
__spreadValues({
|
|
5292
5608
|
"data-slot": "popover-content",
|
|
@@ -5301,13 +5617,13 @@ function PopoverContent(_a) {
|
|
|
5301
5617
|
}
|
|
5302
5618
|
function PopoverAnchor(_a) {
|
|
5303
5619
|
var props = __objRest(_a, []);
|
|
5304
|
-
return /* @__PURE__ */
|
|
5620
|
+
return /* @__PURE__ */ jsx53(PopoverPrimitive.Anchor, __spreadValues({ "data-slot": "popover-anchor" }, props));
|
|
5305
5621
|
}
|
|
5306
5622
|
|
|
5307
5623
|
// src/@/ui/badge.tsx
|
|
5308
5624
|
import { Slot as Slot11 } from "@radix-ui/react-slot";
|
|
5309
5625
|
import { cva as cva7 } from "class-variance-authority";
|
|
5310
|
-
import { jsx as
|
|
5626
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
5311
5627
|
var badgeVariants = cva7(
|
|
5312
5628
|
"inline-flex font-semibold whitespace-nowrap items-center justify-center rounded-full px-2 py-1 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
5313
5629
|
{
|
|
@@ -5340,7 +5656,7 @@ function Badge(_a) {
|
|
|
5340
5656
|
"asChild"
|
|
5341
5657
|
]);
|
|
5342
5658
|
const Comp = asChild ? Slot11 : "span";
|
|
5343
|
-
return /* @__PURE__ */
|
|
5659
|
+
return /* @__PURE__ */ jsx54(
|
|
5344
5660
|
Comp,
|
|
5345
5661
|
__spreadValues({
|
|
5346
5662
|
"data-slot": "badge",
|
|
@@ -5443,6 +5759,12 @@ export {
|
|
|
5443
5759
|
Summary,
|
|
5444
5760
|
SummaryValues,
|
|
5445
5761
|
SwapForm,
|
|
5762
|
+
SwapReviewCopyAddressButton,
|
|
5763
|
+
SwapReviewItem,
|
|
5764
|
+
SwapReviewItemAddress,
|
|
5765
|
+
SwapReviewRoot,
|
|
5766
|
+
SwapReviewSeperator,
|
|
5767
|
+
SwapReviewSeperatorStatus,
|
|
5446
5768
|
SwapTokenButton,
|
|
5447
5769
|
SwapTokenItem,
|
|
5448
5770
|
SwapTokenSelector,
|
|
@@ -5462,6 +5784,10 @@ export {
|
|
|
5462
5784
|
TabsList2 as TabsList,
|
|
5463
5785
|
TagButton,
|
|
5464
5786
|
Text,
|
|
5787
|
+
TimelineAltItem,
|
|
5788
|
+
TimelineAltList,
|
|
5789
|
+
TimelineAltListGroup,
|
|
5790
|
+
TimelineAltRoot,
|
|
5465
5791
|
TimelineItem,
|
|
5466
5792
|
TimelineList,
|
|
5467
5793
|
TimelineListGroup,
|