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