@turtleclub/ui 0.0.1
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/.turbo/turbo-build.log +15 -0
- package/.turbo/turbo-type-check.log +360 -0
- package/README.md +3 -0
- package/components.json +21 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +1672 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +1 -0
- package/package.json +66 -0
- package/src/components/molecules/index.ts +7 -0
- package/src/components/molecules/opportunity-details.tsx +145 -0
- package/src/components/molecules/opportunity-item.tsx +63 -0
- package/src/components/molecules/route-details.tsx +87 -0
- package/src/components/molecules/swap-details.tsx +95 -0
- package/src/components/molecules/swap-input.tsx +115 -0
- package/src/components/molecules/token-selector.tsx +72 -0
- package/src/components/molecules/tx-status.tsx +254 -0
- package/src/components/ui/button.tsx +65 -0
- package/src/components/ui/card.tsx +101 -0
- package/src/components/ui/chip.tsx +48 -0
- package/src/components/ui/icon-animation.tsx +82 -0
- package/src/components/ui/index.ts +18 -0
- package/src/components/ui/info-card.tsx +128 -0
- package/src/components/ui/input.tsx +78 -0
- package/src/components/ui/label-with-icon.tsx +112 -0
- package/src/components/ui/label.tsx +22 -0
- package/src/components/ui/navigation-bar.tsx +135 -0
- package/src/components/ui/opportunity-details-v1.tsx +90 -0
- package/src/components/ui/scroll-area.tsx +56 -0
- package/src/components/ui/select.tsx +180 -0
- package/src/components/ui/separator.tsx +26 -0
- package/src/components/ui/sonner.tsx +23 -0
- package/src/components/ui/switch.tsx +29 -0
- package/src/components/ui/toggle-group.tsx +71 -0
- package/src/components/ui/toggle.tsx +47 -0
- package/src/components/ui/tooltip.tsx +59 -0
- package/src/index.ts +9 -0
- package/src/lib/utils.ts +6 -0
- package/src/styles/globals.css +75 -0
- package/src/styles/themes/index.css +9 -0
- package/src/styles/themes/semantic.css +107 -0
- package/src/styles/tokens/colors.css +77 -0
- package/src/styles/tokens/index.css +15 -0
- package/src/styles/tokens/radius.css +46 -0
- package/src/styles/tokens/spacing.css +52 -0
- package/src/styles/tokens/typography.css +86 -0
- package/src/tokens/index.ts +108 -0
- package/tsconfig.json +21 -0
- package/vite.config.js +65 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1672 @@
|
|
|
1
|
+
import { clsx as q } from "clsx";
|
|
2
|
+
import { twMerge as J } from "tailwind-merge";
|
|
3
|
+
import { jsxs as n, jsx as e, Fragment as K } from "react/jsx-runtime";
|
|
4
|
+
import * as x from "react";
|
|
5
|
+
import { useEffect as Q } from "react";
|
|
6
|
+
import { cva as b } from "class-variance-authority";
|
|
7
|
+
import * as U from "@radix-ui/react-label";
|
|
8
|
+
import * as L from "@radix-ui/react-scroll-area";
|
|
9
|
+
import * as v from "@radix-ui/react-select";
|
|
10
|
+
import { ChevronDownIcon as _, ChevronUpIcon as ee, XIcon as te, CheckIcon as re, TurtleIcon as ae, ChevronsRightIcon as ne } from "lucide-react";
|
|
11
|
+
import * as oe from "@radix-ui/react-separator";
|
|
12
|
+
import { useTheme as se } from "next-themes";
|
|
13
|
+
import { Toaster as ie } from "sonner";
|
|
14
|
+
import * as B from "@radix-ui/react-switch";
|
|
15
|
+
import * as A from "@radix-ui/react-toggle-group";
|
|
16
|
+
import * as le from "@radix-ui/react-toggle";
|
|
17
|
+
import * as k from "@radix-ui/react-tooltip";
|
|
18
|
+
import { Slot as de } from "@radix-ui/react-slot";
|
|
19
|
+
function s(...r) {
|
|
20
|
+
return J(q(r));
|
|
21
|
+
}
|
|
22
|
+
const V = b(
|
|
23
|
+
"flex w-full bg-transparent text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground transition-colors outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
24
|
+
{
|
|
25
|
+
variants: {
|
|
26
|
+
variant: {
|
|
27
|
+
// Turtle Design System - transparent input with no borders
|
|
28
|
+
default: "border-none focus:ring-0 focus:border-none caret-primary",
|
|
29
|
+
// Optional bordered version for other use cases
|
|
30
|
+
bordered: "border border-border rounded-md focus:border-primary focus:ring-2 focus:ring-primary/20 caret-primary",
|
|
31
|
+
// No focus variant - cursor color only, no focus styles
|
|
32
|
+
nofocus: "border-none focus:ring-0 focus:border-none focus:outline-none caret-primary"
|
|
33
|
+
},
|
|
34
|
+
size: {
|
|
35
|
+
default: "h-10 px-3 py-2 text-sm",
|
|
36
|
+
sm: "h-8 px-2 py-1 text-xs",
|
|
37
|
+
lg: "h-12 px-4 py-3 text-base"
|
|
38
|
+
},
|
|
39
|
+
cursor: {
|
|
40
|
+
primary: "caret-primary",
|
|
41
|
+
foreground: "caret-foreground",
|
|
42
|
+
white: "caret-white",
|
|
43
|
+
green: "caret-green-500"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
variant: "default",
|
|
48
|
+
size: "default",
|
|
49
|
+
cursor: "primary"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
), D = x.forwardRef(
|
|
53
|
+
({ className: r, variant: t, size: a, cursor: o, type: l, prompt: c, ...i }, d) => c ? /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
54
|
+
/* @__PURE__ */ e("span", { className: "text-primary text-sm font-medium shrink-0", children: c }),
|
|
55
|
+
/* @__PURE__ */ e(
|
|
56
|
+
"input",
|
|
57
|
+
{
|
|
58
|
+
type: l,
|
|
59
|
+
"data-slot": "input",
|
|
60
|
+
className: s(V({ variant: t, size: a, cursor: o, className: r })),
|
|
61
|
+
ref: d,
|
|
62
|
+
...i
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
] }) : /* @__PURE__ */ e(
|
|
66
|
+
"input",
|
|
67
|
+
{
|
|
68
|
+
type: l,
|
|
69
|
+
"data-slot": "input",
|
|
70
|
+
className: s(V({ variant: t, size: a, cursor: o, className: r })),
|
|
71
|
+
ref: d,
|
|
72
|
+
...i
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
D.displayName = "Input";
|
|
77
|
+
function Me({
|
|
78
|
+
className: r,
|
|
79
|
+
...t
|
|
80
|
+
}) {
|
|
81
|
+
return /* @__PURE__ */ e(
|
|
82
|
+
U.Root,
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "label",
|
|
85
|
+
className: s(
|
|
86
|
+
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
87
|
+
r
|
|
88
|
+
),
|
|
89
|
+
...t
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function ce({
|
|
94
|
+
className: r,
|
|
95
|
+
children: t,
|
|
96
|
+
...a
|
|
97
|
+
}) {
|
|
98
|
+
return /* @__PURE__ */ n(
|
|
99
|
+
L.Root,
|
|
100
|
+
{
|
|
101
|
+
"data-slot": "scroll-area",
|
|
102
|
+
className: s("relative", r),
|
|
103
|
+
...a,
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ e(
|
|
106
|
+
L.Viewport,
|
|
107
|
+
{
|
|
108
|
+
"data-slot": "scroll-area-viewport",
|
|
109
|
+
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
110
|
+
children: t
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
/* @__PURE__ */ e($, {}),
|
|
114
|
+
/* @__PURE__ */ e(L.Corner, {})
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
function $({
|
|
120
|
+
className: r,
|
|
121
|
+
orientation: t = "vertical",
|
|
122
|
+
...a
|
|
123
|
+
}) {
|
|
124
|
+
return /* @__PURE__ */ e(
|
|
125
|
+
L.ScrollAreaScrollbar,
|
|
126
|
+
{
|
|
127
|
+
"data-slot": "scroll-area-scrollbar",
|
|
128
|
+
orientation: t,
|
|
129
|
+
className: s(
|
|
130
|
+
"flex touch-none p-px transition-colors select-none",
|
|
131
|
+
t === "vertical" && "h-full w-2.5 border-l border-l-transparent",
|
|
132
|
+
t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
|
|
133
|
+
r
|
|
134
|
+
),
|
|
135
|
+
...a,
|
|
136
|
+
children: /* @__PURE__ */ e(
|
|
137
|
+
L.ScrollAreaThumb,
|
|
138
|
+
{
|
|
139
|
+
"data-slot": "scroll-area-thumb",
|
|
140
|
+
className: "bg-border relative flex-1 rounded-full"
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
function me({ ...r }) {
|
|
147
|
+
return /* @__PURE__ */ e(v.Root, { "data-slot": "select", ...r });
|
|
148
|
+
}
|
|
149
|
+
function Ye({ ...r }) {
|
|
150
|
+
return /* @__PURE__ */ e(v.Group, { "data-slot": "select-group", ...r });
|
|
151
|
+
}
|
|
152
|
+
function Ze({ ...r }) {
|
|
153
|
+
return /* @__PURE__ */ e(v.Value, { "data-slot": "select-value", ...r });
|
|
154
|
+
}
|
|
155
|
+
function ue({
|
|
156
|
+
className: r,
|
|
157
|
+
size: t = "default",
|
|
158
|
+
children: a,
|
|
159
|
+
...o
|
|
160
|
+
}) {
|
|
161
|
+
return /* @__PURE__ */ n(
|
|
162
|
+
v.Trigger,
|
|
163
|
+
{
|
|
164
|
+
"data-slot": "select-trigger",
|
|
165
|
+
"data-size": t,
|
|
166
|
+
className: s(
|
|
167
|
+
// Turtle Design System - transparent trigger with wise white text
|
|
168
|
+
"flex w-fit items-center justify-between gap-2 bg-transparent px-3 py-2 text-sm text-foreground whitespace-nowrap transition-colors outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 border-none focus:ring-0",
|
|
169
|
+
"data-[placeholder]:text-muted-foreground",
|
|
170
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg]:text-muted-foreground",
|
|
171
|
+
"*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2",
|
|
172
|
+
r
|
|
173
|
+
),
|
|
174
|
+
...o,
|
|
175
|
+
children: [
|
|
176
|
+
a,
|
|
177
|
+
/* @__PURE__ */ e(v.Icon, { asChild: !0, children: /* @__PURE__ */ e(_, { className: "size-4 opacity-50" }) })
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
function fe({
|
|
183
|
+
className: r,
|
|
184
|
+
children: t,
|
|
185
|
+
position: a = "popper",
|
|
186
|
+
...o
|
|
187
|
+
}) {
|
|
188
|
+
return /* @__PURE__ */ e(v.Portal, { children: /* @__PURE__ */ n(
|
|
189
|
+
v.Content,
|
|
190
|
+
{
|
|
191
|
+
"data-slot": "select-content",
|
|
192
|
+
className: s(
|
|
193
|
+
// Turtle Design System - ninja black background for content
|
|
194
|
+
"bg-background text-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-border shadow-md",
|
|
195
|
+
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
196
|
+
r
|
|
197
|
+
),
|
|
198
|
+
position: a,
|
|
199
|
+
...o,
|
|
200
|
+
children: [
|
|
201
|
+
/* @__PURE__ */ e(xe, {}),
|
|
202
|
+
/* @__PURE__ */ e(
|
|
203
|
+
v.Viewport,
|
|
204
|
+
{
|
|
205
|
+
className: s(
|
|
206
|
+
"p-1",
|
|
207
|
+
a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
208
|
+
),
|
|
209
|
+
children: t
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
/* @__PURE__ */ e(he, {})
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
) });
|
|
216
|
+
}
|
|
217
|
+
function Xe({ className: r, ...t }) {
|
|
218
|
+
return /* @__PURE__ */ e(
|
|
219
|
+
v.Label,
|
|
220
|
+
{
|
|
221
|
+
"data-slot": "select-label",
|
|
222
|
+
className: s("text-muted-foreground px-2 py-1.5 text-xs", r),
|
|
223
|
+
...t
|
|
224
|
+
}
|
|
225
|
+
);
|
|
226
|
+
}
|
|
227
|
+
function pe({
|
|
228
|
+
className: r,
|
|
229
|
+
children: t,
|
|
230
|
+
...a
|
|
231
|
+
}) {
|
|
232
|
+
return /* @__PURE__ */ n(
|
|
233
|
+
v.Item,
|
|
234
|
+
{
|
|
235
|
+
"data-slot": "select-item",
|
|
236
|
+
className: s(
|
|
237
|
+
// Turtle Design System - items with wise white alpha (2%) background and ninja black text
|
|
238
|
+
"relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm text-foreground outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
239
|
+
"bg-muted hover:bg-muted/80 focus:bg-muted/80",
|
|
240
|
+
// wise white alpha (2%) background
|
|
241
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
242
|
+
"*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
243
|
+
r
|
|
244
|
+
),
|
|
245
|
+
...a,
|
|
246
|
+
children: [
|
|
247
|
+
/* @__PURE__ */ n("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: [
|
|
248
|
+
/* @__PURE__ */ e("div", { className: "w-2 h-2 rounded-full bg-muted-foreground/30 transition-colors" }),
|
|
249
|
+
/* @__PURE__ */ e(v.ItemIndicator, { className: "absolute", children: /* @__PURE__ */ e("div", { className: "w-2 h-2 rounded-full bg-primary" }) })
|
|
250
|
+
] }),
|
|
251
|
+
/* @__PURE__ */ e(v.ItemText, { children: t })
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
function qe({
|
|
257
|
+
className: r,
|
|
258
|
+
...t
|
|
259
|
+
}) {
|
|
260
|
+
return /* @__PURE__ */ e(
|
|
261
|
+
v.Separator,
|
|
262
|
+
{
|
|
263
|
+
"data-slot": "select-separator",
|
|
264
|
+
className: s("bg-border pointer-events-none -mx-1 my-1 h-px", r),
|
|
265
|
+
...t
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
function xe({
|
|
270
|
+
className: r,
|
|
271
|
+
...t
|
|
272
|
+
}) {
|
|
273
|
+
return /* @__PURE__ */ e(
|
|
274
|
+
v.ScrollUpButton,
|
|
275
|
+
{
|
|
276
|
+
"data-slot": "select-scroll-up-button",
|
|
277
|
+
className: s("flex cursor-default items-center justify-center py-1", r),
|
|
278
|
+
...t,
|
|
279
|
+
children: /* @__PURE__ */ e(ee, { className: "size-4" })
|
|
280
|
+
}
|
|
281
|
+
);
|
|
282
|
+
}
|
|
283
|
+
function he({
|
|
284
|
+
className: r,
|
|
285
|
+
...t
|
|
286
|
+
}) {
|
|
287
|
+
return /* @__PURE__ */ e(
|
|
288
|
+
v.ScrollDownButton,
|
|
289
|
+
{
|
|
290
|
+
"data-slot": "select-scroll-down-button",
|
|
291
|
+
className: s("flex cursor-default items-center justify-center py-1", r),
|
|
292
|
+
...t,
|
|
293
|
+
children: /* @__PURE__ */ e(_, { className: "size-4" })
|
|
294
|
+
}
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
function Je({
|
|
298
|
+
className: r,
|
|
299
|
+
orientation: t = "horizontal",
|
|
300
|
+
decorative: a = !0,
|
|
301
|
+
...o
|
|
302
|
+
}) {
|
|
303
|
+
return /* @__PURE__ */ e(
|
|
304
|
+
oe.Root,
|
|
305
|
+
{
|
|
306
|
+
"data-slot": "separator",
|
|
307
|
+
decorative: a,
|
|
308
|
+
orientation: t,
|
|
309
|
+
className: s(
|
|
310
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
311
|
+
r
|
|
312
|
+
),
|
|
313
|
+
...o
|
|
314
|
+
}
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
const Ke = ({ ...r }) => {
|
|
318
|
+
const { theme: t = "system" } = se();
|
|
319
|
+
return /* @__PURE__ */ e(
|
|
320
|
+
ie,
|
|
321
|
+
{
|
|
322
|
+
theme: t,
|
|
323
|
+
className: "toaster group",
|
|
324
|
+
style: {
|
|
325
|
+
"--normal-bg": "var(--popover)",
|
|
326
|
+
"--normal-text": "var(--popover-foreground)",
|
|
327
|
+
"--normal-border": "var(--border)"
|
|
328
|
+
},
|
|
329
|
+
...r
|
|
330
|
+
}
|
|
331
|
+
);
|
|
332
|
+
};
|
|
333
|
+
function Qe({
|
|
334
|
+
className: r,
|
|
335
|
+
...t
|
|
336
|
+
}) {
|
|
337
|
+
return /* @__PURE__ */ e(
|
|
338
|
+
B.Root,
|
|
339
|
+
{
|
|
340
|
+
"data-slot": "switch",
|
|
341
|
+
className: s(
|
|
342
|
+
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
343
|
+
r
|
|
344
|
+
),
|
|
345
|
+
...t,
|
|
346
|
+
children: /* @__PURE__ */ e(
|
|
347
|
+
B.Thumb,
|
|
348
|
+
{
|
|
349
|
+
"data-slot": "switch-thumb",
|
|
350
|
+
className: s(
|
|
351
|
+
"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
|
|
352
|
+
)
|
|
353
|
+
}
|
|
354
|
+
)
|
|
355
|
+
}
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
const H = b(
|
|
359
|
+
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
360
|
+
{
|
|
361
|
+
variants: {
|
|
362
|
+
variant: {
|
|
363
|
+
default: "bg-transparent",
|
|
364
|
+
outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
|
|
365
|
+
},
|
|
366
|
+
size: {
|
|
367
|
+
default: "h-9 px-2 min-w-9",
|
|
368
|
+
sm: "h-8 px-1.5 min-w-8",
|
|
369
|
+
lg: "h-10 px-2.5 min-w-10"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
defaultVariants: {
|
|
373
|
+
variant: "default",
|
|
374
|
+
size: "default"
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
);
|
|
378
|
+
function Ue({
|
|
379
|
+
className: r,
|
|
380
|
+
variant: t,
|
|
381
|
+
size: a,
|
|
382
|
+
...o
|
|
383
|
+
}) {
|
|
384
|
+
return /* @__PURE__ */ e(
|
|
385
|
+
le.Root,
|
|
386
|
+
{
|
|
387
|
+
"data-slot": "toggle",
|
|
388
|
+
className: s(H({ variant: t, size: a, className: r })),
|
|
389
|
+
...o
|
|
390
|
+
}
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
const E = x.createContext({
|
|
394
|
+
size: "default",
|
|
395
|
+
variant: "default"
|
|
396
|
+
});
|
|
397
|
+
function et({
|
|
398
|
+
className: r,
|
|
399
|
+
variant: t,
|
|
400
|
+
size: a,
|
|
401
|
+
children: o,
|
|
402
|
+
...l
|
|
403
|
+
}) {
|
|
404
|
+
return /* @__PURE__ */ e(
|
|
405
|
+
A.Root,
|
|
406
|
+
{
|
|
407
|
+
"data-slot": "toggle-group",
|
|
408
|
+
"data-variant": t,
|
|
409
|
+
"data-size": a,
|
|
410
|
+
className: s(
|
|
411
|
+
"group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
|
|
412
|
+
r
|
|
413
|
+
),
|
|
414
|
+
...l,
|
|
415
|
+
children: /* @__PURE__ */ e(E.Provider, { value: { variant: t, size: a }, children: o })
|
|
416
|
+
}
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
function tt({
|
|
420
|
+
className: r,
|
|
421
|
+
children: t,
|
|
422
|
+
variant: a,
|
|
423
|
+
size: o,
|
|
424
|
+
...l
|
|
425
|
+
}) {
|
|
426
|
+
const c = x.useContext(E);
|
|
427
|
+
return /* @__PURE__ */ e(
|
|
428
|
+
A.Item,
|
|
429
|
+
{
|
|
430
|
+
"data-slot": "toggle-group-item",
|
|
431
|
+
"data-variant": c.variant || a,
|
|
432
|
+
"data-size": c.size || o,
|
|
433
|
+
className: s(
|
|
434
|
+
H({
|
|
435
|
+
variant: c.variant || a,
|
|
436
|
+
size: c.size || o
|
|
437
|
+
}),
|
|
438
|
+
"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
|
|
439
|
+
r
|
|
440
|
+
),
|
|
441
|
+
...l,
|
|
442
|
+
children: t
|
|
443
|
+
}
|
|
444
|
+
);
|
|
445
|
+
}
|
|
446
|
+
function ge({
|
|
447
|
+
delayDuration: r = 0,
|
|
448
|
+
...t
|
|
449
|
+
}) {
|
|
450
|
+
return /* @__PURE__ */ e(
|
|
451
|
+
k.Provider,
|
|
452
|
+
{
|
|
453
|
+
"data-slot": "tooltip-provider",
|
|
454
|
+
delayDuration: r,
|
|
455
|
+
...t
|
|
456
|
+
}
|
|
457
|
+
);
|
|
458
|
+
}
|
|
459
|
+
function rt({
|
|
460
|
+
...r
|
|
461
|
+
}) {
|
|
462
|
+
return /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(k.Root, { "data-slot": "tooltip", ...r }) });
|
|
463
|
+
}
|
|
464
|
+
function at({
|
|
465
|
+
...r
|
|
466
|
+
}) {
|
|
467
|
+
return /* @__PURE__ */ e(k.Trigger, { "data-slot": "tooltip-trigger", ...r });
|
|
468
|
+
}
|
|
469
|
+
function nt({
|
|
470
|
+
className: r,
|
|
471
|
+
sideOffset: t = 0,
|
|
472
|
+
children: a,
|
|
473
|
+
...o
|
|
474
|
+
}) {
|
|
475
|
+
return /* @__PURE__ */ e(k.Portal, { children: /* @__PURE__ */ n(
|
|
476
|
+
k.Content,
|
|
477
|
+
{
|
|
478
|
+
"data-slot": "tooltip-content",
|
|
479
|
+
sideOffset: t,
|
|
480
|
+
className: s(
|
|
481
|
+
"bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
482
|
+
r
|
|
483
|
+
),
|
|
484
|
+
...o,
|
|
485
|
+
children: [
|
|
486
|
+
a,
|
|
487
|
+
/* @__PURE__ */ e(k.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
488
|
+
]
|
|
489
|
+
}
|
|
490
|
+
) });
|
|
491
|
+
}
|
|
492
|
+
const ve = b(
|
|
493
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none border",
|
|
494
|
+
{
|
|
495
|
+
variants: {
|
|
496
|
+
variant: {
|
|
497
|
+
// Turtle Design System variants using semantic classes
|
|
498
|
+
default: "bg-background text-primary border-primary shadow-[0_0_4px_0_hsl(var(--primary))] hover:bg-background/90 hover:shadow-[0_0_6px_0_hsl(var(--primary))]",
|
|
499
|
+
green: "bg-primary text-primary-foreground border-primary shadow-[0_0_4px_0_hsl(var(--primary))] hover:bg-primary/90 hover:shadow-[0_0_6px_0_hsl(var(--primary))]",
|
|
500
|
+
transparentWhite: "bg-secondary text-secondary-foreground border-secondary hover:bg-secondary/80",
|
|
501
|
+
transparentGreen: "bg-secondary text-primary border-secondary hover:bg-secondary/80"
|
|
502
|
+
},
|
|
503
|
+
size: {
|
|
504
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
505
|
+
sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
506
|
+
lg: "h-10 px-6 has-[>svg]:px-4",
|
|
507
|
+
icon: "size-9"
|
|
508
|
+
},
|
|
509
|
+
rounded: {
|
|
510
|
+
default: "rounded-full",
|
|
511
|
+
none: "rounded-none",
|
|
512
|
+
sm: "rounded-sm",
|
|
513
|
+
md: "rounded-md",
|
|
514
|
+
lg: "rounded-lg",
|
|
515
|
+
full: "rounded-full"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
defaultVariants: {
|
|
519
|
+
variant: "default",
|
|
520
|
+
size: "default",
|
|
521
|
+
rounded: "default"
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
);
|
|
525
|
+
function F({
|
|
526
|
+
className: r,
|
|
527
|
+
variant: t,
|
|
528
|
+
size: a,
|
|
529
|
+
rounded: o,
|
|
530
|
+
asChild: l = !1,
|
|
531
|
+
...c
|
|
532
|
+
}) {
|
|
533
|
+
return /* @__PURE__ */ e(
|
|
534
|
+
l ? de : "button",
|
|
535
|
+
{
|
|
536
|
+
"data-slot": "button",
|
|
537
|
+
className: s(ve({ variant: t, size: a, rounded: o, className: r })),
|
|
538
|
+
...c
|
|
539
|
+
}
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
const be = b("transition-all", {
|
|
543
|
+
variants: {
|
|
544
|
+
variant: {
|
|
545
|
+
// Turtle Design System variants
|
|
546
|
+
container: "relative bg-card shadow-[0_0_20px_0_rgba(0,0,0,0.25)] before:absolute before:inset-0 before:rounded-[inherit] before:p-px before:bg-gradient-to-b before:from-[#F9F9F9] before:from-40% before:via-white before:via-40.01% before:to-white before:to-50% before:content-[''] before:pointer-events-none before:-z-10",
|
|
547
|
+
simple: "bg-muted",
|
|
548
|
+
item: "bg-muted shadow-[0_4px_4px_0_rgba(0,0,0,0.25)]"
|
|
549
|
+
},
|
|
550
|
+
padding: {
|
|
551
|
+
none: "p-0",
|
|
552
|
+
sm: "p-3",
|
|
553
|
+
default: "p-4",
|
|
554
|
+
md: "p-6",
|
|
555
|
+
lg: "p-8"
|
|
556
|
+
},
|
|
557
|
+
rounded: {
|
|
558
|
+
default: "rounded-lg",
|
|
559
|
+
none: "rounded-none",
|
|
560
|
+
sm: "rounded-sm",
|
|
561
|
+
md: "rounded-md",
|
|
562
|
+
lg: "rounded-lg",
|
|
563
|
+
xl: "rounded-xl",
|
|
564
|
+
full: "rounded-full"
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
defaultVariants: {
|
|
568
|
+
variant: "container",
|
|
569
|
+
padding: "default",
|
|
570
|
+
rounded: "default"
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
function y({
|
|
574
|
+
className: r,
|
|
575
|
+
variant: t,
|
|
576
|
+
padding: a,
|
|
577
|
+
rounded: o,
|
|
578
|
+
...l
|
|
579
|
+
}) {
|
|
580
|
+
return /* @__PURE__ */ e(
|
|
581
|
+
"div",
|
|
582
|
+
{
|
|
583
|
+
"data-slot": "card",
|
|
584
|
+
className: s(be({ variant: t, padding: a, rounded: o, className: r })),
|
|
585
|
+
...l
|
|
586
|
+
}
|
|
587
|
+
);
|
|
588
|
+
}
|
|
589
|
+
function ot({ className: r, ...t }) {
|
|
590
|
+
return /* @__PURE__ */ e(
|
|
591
|
+
"div",
|
|
592
|
+
{
|
|
593
|
+
"data-slot": "card-header",
|
|
594
|
+
className: s("flex flex-col space-y-1.5 p-6", r),
|
|
595
|
+
...t
|
|
596
|
+
}
|
|
597
|
+
);
|
|
598
|
+
}
|
|
599
|
+
function st({ className: r, children: t, ...a }) {
|
|
600
|
+
return /* @__PURE__ */ e(
|
|
601
|
+
"h3",
|
|
602
|
+
{
|
|
603
|
+
"data-slot": "card-title",
|
|
604
|
+
className: s("text-2xl font-semibold leading-none tracking-tight", r),
|
|
605
|
+
...a,
|
|
606
|
+
children: t
|
|
607
|
+
}
|
|
608
|
+
);
|
|
609
|
+
}
|
|
610
|
+
function it({ className: r, ...t }) {
|
|
611
|
+
return /* @__PURE__ */ e(
|
|
612
|
+
"p",
|
|
613
|
+
{
|
|
614
|
+
"data-slot": "card-description",
|
|
615
|
+
className: s("text-sm text-muted-foreground", r),
|
|
616
|
+
...t
|
|
617
|
+
}
|
|
618
|
+
);
|
|
619
|
+
}
|
|
620
|
+
function lt({ className: r, ...t }) {
|
|
621
|
+
return /* @__PURE__ */ e("div", { "data-slot": "card-content", className: s("p-6 pt-0", r), ...t });
|
|
622
|
+
}
|
|
623
|
+
function dt({ className: r, ...t }) {
|
|
624
|
+
return /* @__PURE__ */ e(
|
|
625
|
+
"div",
|
|
626
|
+
{
|
|
627
|
+
"data-slot": "card-footer",
|
|
628
|
+
className: s("flex items-center p-6 pt-0", r),
|
|
629
|
+
...t
|
|
630
|
+
}
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
const ye = b(
|
|
634
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 cursor-pointer border-none rounded-full",
|
|
635
|
+
{
|
|
636
|
+
variants: {
|
|
637
|
+
variant: {
|
|
638
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
639
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
640
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground"
|
|
641
|
+
},
|
|
642
|
+
size: {
|
|
643
|
+
xs: "h-6 px-2 py-1 text-xs",
|
|
644
|
+
default: "h-8 px-4 py-1",
|
|
645
|
+
sm: "h-7 px-3 py-1 text-xs",
|
|
646
|
+
lg: "h-9 px-6 py-2"
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
defaultVariants: {
|
|
650
|
+
variant: "default",
|
|
651
|
+
size: "default"
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
), O = x.forwardRef(
|
|
655
|
+
({ className: r, variant: t, size: a, asChild: o = !1, ...l }, c) => /* @__PURE__ */ e(
|
|
656
|
+
"div",
|
|
657
|
+
{
|
|
658
|
+
"data-slot": "chip",
|
|
659
|
+
className: s(ye({ variant: t, size: a, className: r })),
|
|
660
|
+
ref: c,
|
|
661
|
+
...l
|
|
662
|
+
}
|
|
663
|
+
)
|
|
664
|
+
);
|
|
665
|
+
O.displayName = "Chip";
|
|
666
|
+
const Ne = b(
|
|
667
|
+
"relative inline-flex items-center justify-center rounded-full",
|
|
668
|
+
{
|
|
669
|
+
variants: {
|
|
670
|
+
size: {
|
|
671
|
+
default: "w-12 h-12",
|
|
672
|
+
sm: "w-8 h-8",
|
|
673
|
+
lg: "w-16 h-16",
|
|
674
|
+
xl: "w-20 h-20"
|
|
675
|
+
},
|
|
676
|
+
variant: {
|
|
677
|
+
default: "bg-background",
|
|
678
|
+
transparent: "bg-transparent"
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
defaultVariants: {
|
|
682
|
+
size: "default",
|
|
683
|
+
variant: "default"
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
), W = x.forwardRef(
|
|
687
|
+
({ className: r, size: t, variant: a, children: o, spinning: l = !0, ...c }, i) => /* @__PURE__ */ n(
|
|
688
|
+
"div",
|
|
689
|
+
{
|
|
690
|
+
ref: i,
|
|
691
|
+
className: s(Ne({ size: t, variant: a }), r),
|
|
692
|
+
...c,
|
|
693
|
+
children: [
|
|
694
|
+
/* @__PURE__ */ e(
|
|
695
|
+
"div",
|
|
696
|
+
{
|
|
697
|
+
className: s(
|
|
698
|
+
"absolute inset-0 rounded-full",
|
|
699
|
+
"bg-gradient-to-r from-transparent via-primary to-transparent",
|
|
700
|
+
"animate-spin",
|
|
701
|
+
{
|
|
702
|
+
"animate-spin": l,
|
|
703
|
+
"animate-none": !l
|
|
704
|
+
}
|
|
705
|
+
),
|
|
706
|
+
style: {
|
|
707
|
+
background: l ? "conic-gradient(from 0deg, transparent 0deg, var(--primary) 180deg, transparent 360deg)" : "conic-gradient(from 0deg, var(--primary) 0deg, var(--primary) 360deg)",
|
|
708
|
+
padding: "1px",
|
|
709
|
+
borderRadius: "9999px"
|
|
710
|
+
},
|
|
711
|
+
children: /* @__PURE__ */ e(
|
|
712
|
+
"div",
|
|
713
|
+
{
|
|
714
|
+
className: s(
|
|
715
|
+
"w-full h-full rounded-full",
|
|
716
|
+
a === "transparent" ? "bg-transparent" : "bg-background"
|
|
717
|
+
)
|
|
718
|
+
}
|
|
719
|
+
)
|
|
720
|
+
}
|
|
721
|
+
),
|
|
722
|
+
/* @__PURE__ */ e("div", { className: "relative z-10 flex items-center justify-center", children: o })
|
|
723
|
+
]
|
|
724
|
+
}
|
|
725
|
+
)
|
|
726
|
+
);
|
|
727
|
+
W.displayName = "IconAnimation";
|
|
728
|
+
const we = b("inline-flex items-center gap-2 font-medium", {
|
|
729
|
+
variants: {
|
|
730
|
+
variant: {
|
|
731
|
+
default: "text-foreground",
|
|
732
|
+
muted: "text-muted-foreground",
|
|
733
|
+
primary: "text-primary",
|
|
734
|
+
secondary: "text-secondary-foreground"
|
|
735
|
+
},
|
|
736
|
+
textSize: {
|
|
737
|
+
xs: "text-xs",
|
|
738
|
+
sm: "text-sm",
|
|
739
|
+
base: "text-base",
|
|
740
|
+
lg: "text-lg",
|
|
741
|
+
xl: "text-xl",
|
|
742
|
+
"2xl": "text-2xl",
|
|
743
|
+
"3xl": "text-3xl",
|
|
744
|
+
"4xl": "text-4xl",
|
|
745
|
+
"5xl": "text-5xl",
|
|
746
|
+
"6xl": "text-6xl",
|
|
747
|
+
"7xl": "text-7xl",
|
|
748
|
+
"8xl": "text-8xl"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
defaultVariants: {
|
|
752
|
+
variant: "default",
|
|
753
|
+
textSize: "sm"
|
|
754
|
+
}
|
|
755
|
+
}), P = {
|
|
756
|
+
xs: "w-3 h-3",
|
|
757
|
+
sm: "w-4 h-4",
|
|
758
|
+
base: "w-5 h-5",
|
|
759
|
+
lg: "w-6 h-6",
|
|
760
|
+
xl: "w-8 h-8"
|
|
761
|
+
}, S = x.forwardRef(
|
|
762
|
+
({
|
|
763
|
+
className: r,
|
|
764
|
+
variant: t,
|
|
765
|
+
textSize: a,
|
|
766
|
+
icon: o,
|
|
767
|
+
children: l,
|
|
768
|
+
iconPosition: c = "left",
|
|
769
|
+
iconSize: i = "sm",
|
|
770
|
+
iconClassName: d,
|
|
771
|
+
...f
|
|
772
|
+
}, m) => {
|
|
773
|
+
const h = () => {
|
|
774
|
+
var u;
|
|
775
|
+
return typeof o == "string" ? /* @__PURE__ */ e(
|
|
776
|
+
"img",
|
|
777
|
+
{
|
|
778
|
+
src: o,
|
|
779
|
+
alt: "",
|
|
780
|
+
className: s(P[i], "object-contain", d)
|
|
781
|
+
}
|
|
782
|
+
) : /* @__PURE__ */ e("span", { className: s("shrink-0", d), children: x.isValidElement(o) ? x.cloneElement(o, {
|
|
783
|
+
className: s(P[i], (u = o.props) == null ? void 0 : u.className)
|
|
784
|
+
}) : o });
|
|
785
|
+
};
|
|
786
|
+
return /* @__PURE__ */ n(
|
|
787
|
+
"div",
|
|
788
|
+
{
|
|
789
|
+
ref: m,
|
|
790
|
+
className: s(
|
|
791
|
+
we({ variant: t, textSize: a }),
|
|
792
|
+
c === "right" && "flex-row-reverse",
|
|
793
|
+
r
|
|
794
|
+
),
|
|
795
|
+
...f,
|
|
796
|
+
children: [
|
|
797
|
+
h(),
|
|
798
|
+
/* @__PURE__ */ e("span", { children: l })
|
|
799
|
+
]
|
|
800
|
+
}
|
|
801
|
+
);
|
|
802
|
+
}
|
|
803
|
+
);
|
|
804
|
+
S.displayName = "LabelWithIcon";
|
|
805
|
+
const ke = b("flex w-full", {
|
|
806
|
+
variants: {
|
|
807
|
+
variant: {
|
|
808
|
+
default: "justify-between border border-border shadow-sm bg-background",
|
|
809
|
+
transparent: "justify-between border border-border shadow-sm bg-transparent",
|
|
810
|
+
menuBar: "relative h-12 gap-3 rounded-full border border-border bg-background font-medium shadow-sm"
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
defaultVariants: {
|
|
814
|
+
variant: "default"
|
|
815
|
+
}
|
|
816
|
+
}), ze = b(
|
|
817
|
+
"flex items-center justify-center whitespace-nowrap font-medium transition-all disabled:pointer-events-none disabled:opacity-50 cursor-pointer",
|
|
818
|
+
{
|
|
819
|
+
variants: {
|
|
820
|
+
variant: {
|
|
821
|
+
default: "text-sm text-muted-foreground hover:text-foreground",
|
|
822
|
+
active: "text-sm text-primary bg-muted",
|
|
823
|
+
menuBarDefault: "relative z-[1] w-full text-base text-foreground rounded-full px-3 py-2 hover:text-primary",
|
|
824
|
+
menuBarActive: "relative z-[1] w-full text-base text-primary rounded-full px-3 py-2"
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
defaultVariants: {
|
|
828
|
+
variant: "default"
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
), Le = x.forwardRef(
|
|
832
|
+
({ className: r, variant: t, activeValue: a, children: o, ...l }, c) => {
|
|
833
|
+
const i = x.useRef(null), d = x.useRef(null), f = x.useCallback(() => {
|
|
834
|
+
if (t !== "menuBar" || !i.current || !d.current) return;
|
|
835
|
+
const m = i.current.querySelector('[data-active="true"]');
|
|
836
|
+
m && (d.current.style.width = `${m.offsetWidth}px`, d.current.style.left = `${m.offsetLeft}px`);
|
|
837
|
+
}, [t]);
|
|
838
|
+
return x.useEffect(() => {
|
|
839
|
+
if (t !== "menuBar") return;
|
|
840
|
+
f();
|
|
841
|
+
const m = new ResizeObserver(f);
|
|
842
|
+
return i.current && m.observe(i.current), () => {
|
|
843
|
+
m.disconnect();
|
|
844
|
+
};
|
|
845
|
+
}, [a, f, t]), /* @__PURE__ */ n(
|
|
846
|
+
"nav",
|
|
847
|
+
{
|
|
848
|
+
ref: c || i,
|
|
849
|
+
className: s(ke({ variant: t, className: r })),
|
|
850
|
+
...l,
|
|
851
|
+
children: [
|
|
852
|
+
t === "menuBar" && /* @__PURE__ */ e(
|
|
853
|
+
"div",
|
|
854
|
+
{
|
|
855
|
+
ref: d,
|
|
856
|
+
className: "absolute bottom-0 h-full origin-left rounded-full bg-secondary transition-all duration-300"
|
|
857
|
+
}
|
|
858
|
+
),
|
|
859
|
+
o
|
|
860
|
+
]
|
|
861
|
+
}
|
|
862
|
+
);
|
|
863
|
+
}
|
|
864
|
+
);
|
|
865
|
+
Le.displayName = "NavigationBar";
|
|
866
|
+
const Se = x.forwardRef(
|
|
867
|
+
({ className: r, variant: t, active: a, value: o, ...l }, c) => {
|
|
868
|
+
const d = t === "menuBarDefault" || t === "menuBarActive" ? a ? "menuBarActive" : "menuBarDefault" : a ? "active" : t || "default", f = d === "menuBarDefault" || d === "menuBarActive";
|
|
869
|
+
return /* @__PURE__ */ e(
|
|
870
|
+
"button",
|
|
871
|
+
{
|
|
872
|
+
ref: c,
|
|
873
|
+
"data-active": a,
|
|
874
|
+
"data-value": o,
|
|
875
|
+
className: s(
|
|
876
|
+
ze({
|
|
877
|
+
variant: d,
|
|
878
|
+
className: r
|
|
879
|
+
}),
|
|
880
|
+
!f && "px-4 py-2 rounded-md"
|
|
881
|
+
),
|
|
882
|
+
...l
|
|
883
|
+
}
|
|
884
|
+
);
|
|
885
|
+
}
|
|
886
|
+
);
|
|
887
|
+
Se.displayName = "NavigationItem";
|
|
888
|
+
const je = b("space-y-1", {
|
|
889
|
+
variants: {
|
|
890
|
+
size: {
|
|
891
|
+
sm: "p-2",
|
|
892
|
+
default: "p-3",
|
|
893
|
+
lg: "p-4"
|
|
894
|
+
},
|
|
895
|
+
align: {
|
|
896
|
+
left: "text-left",
|
|
897
|
+
center: "text-center",
|
|
898
|
+
right: "text-right"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
defaultVariants: {
|
|
902
|
+
size: "default",
|
|
903
|
+
align: "center"
|
|
904
|
+
}
|
|
905
|
+
}), _e = b("font-bold", {
|
|
906
|
+
variants: {
|
|
907
|
+
color: {
|
|
908
|
+
primary: "text-foreground",
|
|
909
|
+
secondary: "text-muted-foreground",
|
|
910
|
+
accent: "text-primary",
|
|
911
|
+
success: "text-green-600",
|
|
912
|
+
warning: "text-yellow-600",
|
|
913
|
+
error: "text-red-600"
|
|
914
|
+
},
|
|
915
|
+
size: {
|
|
916
|
+
sm: "text-sm",
|
|
917
|
+
default: "text-lg",
|
|
918
|
+
lg: "text-xl",
|
|
919
|
+
xl: "text-2xl"
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
defaultVariants: {
|
|
923
|
+
color: "primary",
|
|
924
|
+
size: "default"
|
|
925
|
+
}
|
|
926
|
+
}), Ie = b("font-medium text-muted-foreground", {
|
|
927
|
+
variants: {
|
|
928
|
+
size: {
|
|
929
|
+
sm: "text-xs",
|
|
930
|
+
default: "text-xs",
|
|
931
|
+
lg: "text-sm"
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
defaultVariants: {
|
|
935
|
+
size: "default"
|
|
936
|
+
}
|
|
937
|
+
}), C = x.forwardRef(
|
|
938
|
+
({
|
|
939
|
+
title: r,
|
|
940
|
+
value: t,
|
|
941
|
+
color: a = "primary",
|
|
942
|
+
valueSize: o = "default",
|
|
943
|
+
titleSize: l = "default",
|
|
944
|
+
size: c = "default",
|
|
945
|
+
align: i = "center",
|
|
946
|
+
icon: d,
|
|
947
|
+
subtitle: f,
|
|
948
|
+
className: m,
|
|
949
|
+
...h
|
|
950
|
+
}, u) => /* @__PURE__ */ n(
|
|
951
|
+
y,
|
|
952
|
+
{
|
|
953
|
+
ref: u,
|
|
954
|
+
variant: "item",
|
|
955
|
+
className: s(je({ size: c, align: i }), m),
|
|
956
|
+
...h,
|
|
957
|
+
children: [
|
|
958
|
+
d && /* @__PURE__ */ e(
|
|
959
|
+
"div",
|
|
960
|
+
{
|
|
961
|
+
className: s(
|
|
962
|
+
"flex mb-2",
|
|
963
|
+
i === "left" && "justify-start",
|
|
964
|
+
i === "center" && "justify-center",
|
|
965
|
+
i === "right" && "justify-end"
|
|
966
|
+
),
|
|
967
|
+
children: d
|
|
968
|
+
}
|
|
969
|
+
),
|
|
970
|
+
/* @__PURE__ */ e("p", { className: Ie({ size: l }), children: r }),
|
|
971
|
+
/* @__PURE__ */ e("p", { className: _e({ color: a, size: o }), children: t }),
|
|
972
|
+
f && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground/70", children: f })
|
|
973
|
+
]
|
|
974
|
+
}
|
|
975
|
+
)
|
|
976
|
+
);
|
|
977
|
+
C.displayName = "InfoCard";
|
|
978
|
+
function ct({
|
|
979
|
+
className: r,
|
|
980
|
+
title: t,
|
|
981
|
+
titleIcon: a,
|
|
982
|
+
topCards: o,
|
|
983
|
+
bottomCards: l
|
|
984
|
+
}) {
|
|
985
|
+
const c = /* @__PURE__ */ e("div", { className: "w-8 h-8 rounded-full bg-primary/20 flex items-center justify-center", children: /* @__PURE__ */ e("svg", { className: "w-4 h-4", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12 2L13.09 8.26L20 7L18.74 13.09L22 14L16.74 19.26L17 21L10.91 19.74L10 22L8.09 15.74L2 17L3.26 10.91L0 10L5.26 4.74L5 3L11.09 4.26L12 2Z" }) }) });
|
|
986
|
+
return /* @__PURE__ */ e(y, { className: s("space-y-4", r), children: /* @__PURE__ */ e("div", { className: "h-full overflow-y-auto", children: /* @__PURE__ */ n("div", { className: "space-y-4", children: [
|
|
987
|
+
(t || a) && /* @__PURE__ */ e("div", { className: "flex items-center", children: /* @__PURE__ */ e(S, { icon: a || c, textSize: "lg", iconSize: "lg", children: t }) }),
|
|
988
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-3 gap-3", children: o.map((i, d) => /* @__PURE__ */ e(
|
|
989
|
+
C,
|
|
990
|
+
{
|
|
991
|
+
title: i.title,
|
|
992
|
+
value: i.value,
|
|
993
|
+
color: i.color || "primary",
|
|
994
|
+
icon: i.icon,
|
|
995
|
+
size: "sm",
|
|
996
|
+
valueSize: "sm",
|
|
997
|
+
titleSize: "sm",
|
|
998
|
+
align: "left"
|
|
999
|
+
},
|
|
1000
|
+
d
|
|
1001
|
+
)) }),
|
|
1002
|
+
/* @__PURE__ */ e("div", { className: "space-y-2", children: l.map((i, d) => /* @__PURE__ */ e(
|
|
1003
|
+
C,
|
|
1004
|
+
{
|
|
1005
|
+
title: i.title,
|
|
1006
|
+
value: i.value,
|
|
1007
|
+
color: i.color || "primary",
|
|
1008
|
+
size: "sm",
|
|
1009
|
+
valueSize: "sm",
|
|
1010
|
+
titleSize: "sm",
|
|
1011
|
+
align: "left",
|
|
1012
|
+
className: "w-full"
|
|
1013
|
+
},
|
|
1014
|
+
d
|
|
1015
|
+
)) })
|
|
1016
|
+
] }) }) });
|
|
1017
|
+
}
|
|
1018
|
+
const Ce = x.forwardRef(
|
|
1019
|
+
({ className: r, icon: t, name: a, tvl: o, yield: l, onSelect: c, selected: i = !1, ...d }, f) => {
|
|
1020
|
+
const m = /* @__PURE__ */ e("div", { className: "w-6 h-6 rounded-full bg-primary/20 flex items-center justify-center", children: /* @__PURE__ */ e("svg", { className: "w-4 h-4", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12 2L13.09 8.26L20 7L18.74 13.09L22 14L16.74 19.26L17 21L10.91 19.74L10 22L8.09 15.74L2 17L3.26 10.91L0 10L5.26 4.74L5 3L11.09 4.26L12 2Z" }) }) });
|
|
1021
|
+
return /* @__PURE__ */ e(
|
|
1022
|
+
y,
|
|
1023
|
+
{
|
|
1024
|
+
ref: f,
|
|
1025
|
+
className: s(
|
|
1026
|
+
"cursor-pointer transition-all duration-200 hover:shadow-md w-full",
|
|
1027
|
+
i && "ring-2 ring-primary ring-offset-2",
|
|
1028
|
+
r
|
|
1029
|
+
),
|
|
1030
|
+
onClick: c,
|
|
1031
|
+
...d,
|
|
1032
|
+
children: /* @__PURE__ */ n("div", { className: "flex gap-12 items-start justify-between", children: [
|
|
1033
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col min-w-0 flex-1 items-start justify-start", children: [
|
|
1034
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-foreground truncate", children: /* @__PURE__ */ e(S, { icon: t || m, textSize: "2xl", children: a }) }),
|
|
1035
|
+
o && /* @__PURE__ */ n("span", { className: "text-xs text-muted-foreground", children: [
|
|
1036
|
+
"TVL: ",
|
|
1037
|
+
o
|
|
1038
|
+
] })
|
|
1039
|
+
] }),
|
|
1040
|
+
/* @__PURE__ */ e("div", { className: "flex-shrink-0", children: l && /* @__PURE__ */ e("span", { className: "text-lg font-bold text-primary", children: l }) })
|
|
1041
|
+
] })
|
|
1042
|
+
}
|
|
1043
|
+
);
|
|
1044
|
+
}
|
|
1045
|
+
);
|
|
1046
|
+
Ce.displayName = "OpportunityItem";
|
|
1047
|
+
const Te = x.forwardRef(
|
|
1048
|
+
({
|
|
1049
|
+
className: r,
|
|
1050
|
+
title: t,
|
|
1051
|
+
titleIcon: a,
|
|
1052
|
+
yield: o,
|
|
1053
|
+
details: l = [],
|
|
1054
|
+
badges: c = [],
|
|
1055
|
+
externalLink: i,
|
|
1056
|
+
...d
|
|
1057
|
+
}, f) => {
|
|
1058
|
+
const m = /* @__PURE__ */ e("div", { className: "w-8 h-8 rounded-full bg-primary/20 flex items-center justify-center", children: /* @__PURE__ */ e("svg", { className: "w-4 h-4", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12 2L13.09 8.26L20 7L18.74 13.09L22 14L16.74 19.26L17 21L10.91 19.74L10 22L8.09 15.74L2 17L3.26 10.91L0 10L5.26 4.74L5 3L11.09 4.26L12 2Z" }) }) }), h = () => /* @__PURE__ */ e("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e(
|
|
1059
|
+
"path",
|
|
1060
|
+
{
|
|
1061
|
+
strokeLinecap: "round",
|
|
1062
|
+
strokeLinejoin: "round",
|
|
1063
|
+
strokeWidth: 2,
|
|
1064
|
+
d: "M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
|
|
1065
|
+
}
|
|
1066
|
+
) });
|
|
1067
|
+
return /* @__PURE__ */ n(y, { ref: f, className: s("p-4 space-y-4", r), ...d, children: [
|
|
1068
|
+
(t || a) && /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
|
|
1069
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ e(S, { icon: a || m, textSize: "lg", iconSize: "lg", children: t }) }),
|
|
1070
|
+
o && /* @__PURE__ */ n("div", { className: "text-right", children: [
|
|
1071
|
+
/* @__PURE__ */ e("div", { className: "text-2xl font-bold text-primary", children: o }),
|
|
1072
|
+
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "APY" })
|
|
1073
|
+
] })
|
|
1074
|
+
] }),
|
|
1075
|
+
l.length > 0 && /* @__PURE__ */ e("div", { className: "space-y-3", children: l.map((u, g) => /* @__PURE__ */ e("div", { className: "space-y-2", children: /* @__PURE__ */ e(y, { className: "p-3", children: /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
|
|
1076
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
1077
|
+
u.icon,
|
|
1078
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground", children: u.label })
|
|
1079
|
+
] }),
|
|
1080
|
+
/* @__PURE__ */ e("span", { className: s("text-sm font-medium", u.highlight && "text-primary"), children: u.value })
|
|
1081
|
+
] }) }) }, g)) }),
|
|
1082
|
+
c.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: c.map((u, g) => /* @__PURE__ */ n(
|
|
1083
|
+
"div",
|
|
1084
|
+
{
|
|
1085
|
+
className: s(
|
|
1086
|
+
"inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-medium",
|
|
1087
|
+
u.variant === "secondary" && "bg-secondary text-secondary-foreground",
|
|
1088
|
+
u.variant === "outline" && "border border-border bg-background",
|
|
1089
|
+
(!u.variant || u.variant === "default") && "bg-primary/10 text-primary"
|
|
1090
|
+
),
|
|
1091
|
+
children: [
|
|
1092
|
+
u.icon,
|
|
1093
|
+
u.text
|
|
1094
|
+
]
|
|
1095
|
+
},
|
|
1096
|
+
g
|
|
1097
|
+
)) }),
|
|
1098
|
+
i && /* @__PURE__ */ e("div", { className: "pt-2 border-t border-border", children: /* @__PURE__ */ n(
|
|
1099
|
+
"a",
|
|
1100
|
+
{
|
|
1101
|
+
href: i.href,
|
|
1102
|
+
target: "_blank",
|
|
1103
|
+
rel: "noopener noreferrer",
|
|
1104
|
+
className: "inline-flex items-center gap-2 text-sm text-primary hover:text-primary/80 transition-colors",
|
|
1105
|
+
children: [
|
|
1106
|
+
i.icon,
|
|
1107
|
+
i.text,
|
|
1108
|
+
/* @__PURE__ */ e(h, {})
|
|
1109
|
+
]
|
|
1110
|
+
}
|
|
1111
|
+
) })
|
|
1112
|
+
] });
|
|
1113
|
+
}
|
|
1114
|
+
);
|
|
1115
|
+
Te.displayName = "OpportunityDetails";
|
|
1116
|
+
const Re = x.forwardRef(
|
|
1117
|
+
({
|
|
1118
|
+
className: r,
|
|
1119
|
+
title: t,
|
|
1120
|
+
description: a,
|
|
1121
|
+
txHash: o,
|
|
1122
|
+
explorerUrl: l,
|
|
1123
|
+
estimatedTime: c,
|
|
1124
|
+
amount: i,
|
|
1125
|
+
token: d,
|
|
1126
|
+
protocol: f,
|
|
1127
|
+
steps: m = [],
|
|
1128
|
+
variant: h = "default",
|
|
1129
|
+
completed: u = !1,
|
|
1130
|
+
cancelled: g = !1,
|
|
1131
|
+
onViewDetails: N,
|
|
1132
|
+
onClose: w,
|
|
1133
|
+
showActions: I = !0,
|
|
1134
|
+
...z
|
|
1135
|
+
}, j) => {
|
|
1136
|
+
const M = g ? "Transaction Cancelled" : u ? "Transaction Completed" : "Processing Transaction", Y = g ? "Transaction was cancelled by user" : u ? "Your transaction has been successfully processed!" : "Please wait while your transaction is being processed...", T = ({ size: p = "w-4 h-4" }) => /* @__PURE__ */ e("svg", { className: p, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e(
|
|
1137
|
+
"path",
|
|
1138
|
+
{
|
|
1139
|
+
strokeLinecap: "round",
|
|
1140
|
+
strokeLinejoin: "round",
|
|
1141
|
+
strokeWidth: 2,
|
|
1142
|
+
d: "M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
|
|
1143
|
+
}
|
|
1144
|
+
) }), Z = () => /* @__PURE__ */ e("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }), R = (p) => p.length <= 12 ? p : `${p.slice(0, 6)}...${p.slice(-6)}`;
|
|
1145
|
+
return /* @__PURE__ */ n(
|
|
1146
|
+
y,
|
|
1147
|
+
{
|
|
1148
|
+
ref: j,
|
|
1149
|
+
className: s(
|
|
1150
|
+
"p-6 text-center space-y-4",
|
|
1151
|
+
h === "compact" && "p-4 space-y-3",
|
|
1152
|
+
r
|
|
1153
|
+
),
|
|
1154
|
+
...z,
|
|
1155
|
+
children: [
|
|
1156
|
+
/* @__PURE__ */ e("div", { className: "flex justify-center", children: /* @__PURE__ */ e(W, { spinning: !u && !g, size: h === "compact" ? "default" : "lg", children: g ? /* @__PURE__ */ e(te, { className: "w-8 h-8 text-destructive" }) : u ? /* @__PURE__ */ e(re, { className: "w-8 h-8 text-primary" }) : /* @__PURE__ */ e(ae, { className: "w-8 h-8 text-primary" }) }) }),
|
|
1157
|
+
/* @__PURE__ */ n("div", { className: "space-y-2", children: [
|
|
1158
|
+
/* @__PURE__ */ e(
|
|
1159
|
+
"h3",
|
|
1160
|
+
{
|
|
1161
|
+
className: s(
|
|
1162
|
+
"font-medium text-foreground",
|
|
1163
|
+
h === "compact" ? "text-sm" : "text-base"
|
|
1164
|
+
),
|
|
1165
|
+
children: t || M
|
|
1166
|
+
}
|
|
1167
|
+
),
|
|
1168
|
+
/* @__PURE__ */ e("p", { className: s("text-muted-foreground", h === "compact" ? "text-xs" : "text-sm"), children: a || Y })
|
|
1169
|
+
] }),
|
|
1170
|
+
u && !g && (i || d || f) && /* @__PURE__ */ n("div", { className: "p-3 bg-muted/50 rounded-lg space-y-1", children: [
|
|
1171
|
+
i && d && /* @__PURE__ */ n("div", { className: "text-sm font-medium", children: [
|
|
1172
|
+
i,
|
|
1173
|
+
" ",
|
|
1174
|
+
d
|
|
1175
|
+
] }),
|
|
1176
|
+
f && /* @__PURE__ */ n("div", { className: "text-xs text-muted-foreground", children: [
|
|
1177
|
+
"via ",
|
|
1178
|
+
f
|
|
1179
|
+
] })
|
|
1180
|
+
] }),
|
|
1181
|
+
o && !g && /* @__PURE__ */ n("div", { className: "space-y-1", children: [
|
|
1182
|
+
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: "Transaction Hash" }),
|
|
1183
|
+
l ? /* @__PURE__ */ n(
|
|
1184
|
+
"a",
|
|
1185
|
+
{
|
|
1186
|
+
href: `${l}/tx/${o}`,
|
|
1187
|
+
target: "_blank",
|
|
1188
|
+
rel: "noopener noreferrer",
|
|
1189
|
+
className: "inline-flex items-center gap-2 text-sm text-primary hover:text-primary/80 transition-colors",
|
|
1190
|
+
children: [
|
|
1191
|
+
R(o),
|
|
1192
|
+
/* @__PURE__ */ e(T, {})
|
|
1193
|
+
]
|
|
1194
|
+
}
|
|
1195
|
+
) : /* @__PURE__ */ e("div", { className: "text-sm font-mono text-foreground", children: R(o) })
|
|
1196
|
+
] }),
|
|
1197
|
+
!u && !g && c && /* @__PURE__ */ n("div", { className: "text-xs text-muted-foreground", children: [
|
|
1198
|
+
"Estimated time: ",
|
|
1199
|
+
c
|
|
1200
|
+
] }),
|
|
1201
|
+
!u && !g && m.length > 0 && /* @__PURE__ */ n("div", { className: "space-y-2 pt-2 border-t border-border", children: [
|
|
1202
|
+
/* @__PURE__ */ e("div", { className: "text-xs font-medium text-muted-foreground text-left", children: "Progress" }),
|
|
1203
|
+
/* @__PURE__ */ e("div", { className: "space-y-2", children: m.map((p, X) => /* @__PURE__ */ n("div", { className: "flex items-center gap-3 text-left", children: [
|
|
1204
|
+
/* @__PURE__ */ e(
|
|
1205
|
+
"div",
|
|
1206
|
+
{
|
|
1207
|
+
className: s(
|
|
1208
|
+
"flex items-center justify-center w-5 h-5 rounded-full border-2 flex-shrink-0",
|
|
1209
|
+
p.completed && "bg-primary border-primary text-primary-foreground",
|
|
1210
|
+
p.current && !p.completed && "border-primary text-primary animate-pulse",
|
|
1211
|
+
!p.completed && !p.current && "border-muted-foreground/30 text-muted-foreground"
|
|
1212
|
+
),
|
|
1213
|
+
children: p.completed ? /* @__PURE__ */ e(Z, {}) : p.current ? /* @__PURE__ */ e("div", { className: "w-2 h-2 rounded-full bg-primary animate-pulse" }) : /* @__PURE__ */ e("div", { className: "w-2 h-2 rounded-full bg-muted-foreground/30" })
|
|
1214
|
+
}
|
|
1215
|
+
),
|
|
1216
|
+
/* @__PURE__ */ n("div", { className: "flex-1 flex items-center justify-between", children: [
|
|
1217
|
+
/* @__PURE__ */ e(
|
|
1218
|
+
"span",
|
|
1219
|
+
{
|
|
1220
|
+
className: s(
|
|
1221
|
+
"text-sm",
|
|
1222
|
+
p.completed && "text-foreground",
|
|
1223
|
+
p.current && !p.completed && "text-foreground font-medium",
|
|
1224
|
+
!p.completed && !p.current && "text-muted-foreground"
|
|
1225
|
+
),
|
|
1226
|
+
children: p.label
|
|
1227
|
+
}
|
|
1228
|
+
),
|
|
1229
|
+
p.txHash && l && /* @__PURE__ */ n(
|
|
1230
|
+
"a",
|
|
1231
|
+
{
|
|
1232
|
+
href: `${l}/tx/${p.txHash}`,
|
|
1233
|
+
target: "_blank",
|
|
1234
|
+
rel: "noopener noreferrer",
|
|
1235
|
+
className: "inline-flex items-center gap-1 text-xs text-primary hover:text-primary/80 transition-colors ml-2",
|
|
1236
|
+
title: `View transaction: ${p.txHash}`,
|
|
1237
|
+
children: [
|
|
1238
|
+
/* @__PURE__ */ n("span", { className: "font-mono", children: [
|
|
1239
|
+
p.txHash.slice(0, 6),
|
|
1240
|
+
"...",
|
|
1241
|
+
p.txHash.slice(-4)
|
|
1242
|
+
] }),
|
|
1243
|
+
/* @__PURE__ */ e(T, { size: "w-3 h-3" })
|
|
1244
|
+
]
|
|
1245
|
+
}
|
|
1246
|
+
)
|
|
1247
|
+
] })
|
|
1248
|
+
] }, X)) })
|
|
1249
|
+
] }),
|
|
1250
|
+
(u || g) && I && (N || w) && /* @__PURE__ */ n(
|
|
1251
|
+
"div",
|
|
1252
|
+
{
|
|
1253
|
+
className: s(
|
|
1254
|
+
"flex gap-2 pt-2",
|
|
1255
|
+
h === "compact" ? "flex-col" : "flex-row justify-center"
|
|
1256
|
+
),
|
|
1257
|
+
children: [
|
|
1258
|
+
!g && N && /* @__PURE__ */ e(
|
|
1259
|
+
F,
|
|
1260
|
+
{
|
|
1261
|
+
variant: "transparentWhite",
|
|
1262
|
+
size: h === "compact" ? "sm" : "default",
|
|
1263
|
+
onClick: N,
|
|
1264
|
+
children: "View Details"
|
|
1265
|
+
}
|
|
1266
|
+
),
|
|
1267
|
+
w && /* @__PURE__ */ e(
|
|
1268
|
+
F,
|
|
1269
|
+
{
|
|
1270
|
+
variant: "default",
|
|
1271
|
+
size: h === "compact" ? "sm" : "default",
|
|
1272
|
+
onClick: w,
|
|
1273
|
+
children: g ? "Try Again" : "Done"
|
|
1274
|
+
}
|
|
1275
|
+
)
|
|
1276
|
+
]
|
|
1277
|
+
}
|
|
1278
|
+
)
|
|
1279
|
+
]
|
|
1280
|
+
}
|
|
1281
|
+
);
|
|
1282
|
+
}
|
|
1283
|
+
);
|
|
1284
|
+
Re.displayName = "TxStatus";
|
|
1285
|
+
const G = x.forwardRef(
|
|
1286
|
+
({ tokens: r, value: t, onValueChange: a, placeholder: o = "Select token", disabled: l, className: c }, i) => {
|
|
1287
|
+
const d = t || (r.length > 0 ? r[0].address : void 0), f = r.find((m) => m.address === d);
|
|
1288
|
+
return Q(() => {
|
|
1289
|
+
!t && r.length > 0 && a && a(r[0].address);
|
|
1290
|
+
}, [t, r, a]), /* @__PURE__ */ n(me, { value: d, onValueChange: a, disabled: l, children: [
|
|
1291
|
+
/* @__PURE__ */ e(
|
|
1292
|
+
ue,
|
|
1293
|
+
{
|
|
1294
|
+
ref: i,
|
|
1295
|
+
className: s(
|
|
1296
|
+
"w-auto min-w-[80px] h-8 px-2 py-1 bg-muted hover:bg-muted/80 border-none rounded-md text-sm font-medium",
|
|
1297
|
+
"focus:ring-2 focus:ring-primary/20 focus:outline-none",
|
|
1298
|
+
c
|
|
1299
|
+
),
|
|
1300
|
+
children: f ? /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5", children: [
|
|
1301
|
+
/* @__PURE__ */ e("span", { className: "w-4 h-4 flex items-center justify-center", children: f.icon }),
|
|
1302
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: f.symbol })
|
|
1303
|
+
] }) : /* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground", children: o })
|
|
1304
|
+
}
|
|
1305
|
+
),
|
|
1306
|
+
/* @__PURE__ */ e(fe, { children: r.map((m) => /* @__PURE__ */ e(pe, { value: m.address, className: "cursor-pointer", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
1307
|
+
/* @__PURE__ */ e("span", { className: "w-4 h-4 flex items-center justify-center", children: m.icon }),
|
|
1308
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: m.symbol })
|
|
1309
|
+
] }) }, m.address)) })
|
|
1310
|
+
] });
|
|
1311
|
+
}
|
|
1312
|
+
);
|
|
1313
|
+
G.displayName = "TokenSelector";
|
|
1314
|
+
const Be = x.forwardRef(
|
|
1315
|
+
({
|
|
1316
|
+
className: r,
|
|
1317
|
+
value: t = "",
|
|
1318
|
+
onChange: a,
|
|
1319
|
+
tokens: o,
|
|
1320
|
+
selectedToken: l,
|
|
1321
|
+
onTokenChange: c,
|
|
1322
|
+
usdValue: i,
|
|
1323
|
+
balance: d,
|
|
1324
|
+
onMaxClick: f,
|
|
1325
|
+
placeholder: m = "0",
|
|
1326
|
+
disabled: h = !1,
|
|
1327
|
+
hideTokenSelector: u = !1,
|
|
1328
|
+
...g
|
|
1329
|
+
}, N) => {
|
|
1330
|
+
const w = o.find((z) => z.address === l), I = (z) => {
|
|
1331
|
+
const j = z.target.value;
|
|
1332
|
+
/^\d*\.?\d*$/.test(j) && (a == null || a(j));
|
|
1333
|
+
};
|
|
1334
|
+
return /* @__PURE__ */ n(
|
|
1335
|
+
y,
|
|
1336
|
+
{
|
|
1337
|
+
ref: N,
|
|
1338
|
+
className: s("space-y-3", h && "opacity-50", r),
|
|
1339
|
+
...g,
|
|
1340
|
+
children: [
|
|
1341
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-3", children: [
|
|
1342
|
+
/* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
|
|
1343
|
+
D,
|
|
1344
|
+
{
|
|
1345
|
+
variant: "nofocus",
|
|
1346
|
+
value: t,
|
|
1347
|
+
onChange: I,
|
|
1348
|
+
placeholder: m,
|
|
1349
|
+
disabled: h,
|
|
1350
|
+
className: "text-2xl font-medium border-none bg-transparent p-0 h-auto focus:ring-0"
|
|
1351
|
+
}
|
|
1352
|
+
) }),
|
|
1353
|
+
!u && /* @__PURE__ */ e(
|
|
1354
|
+
G,
|
|
1355
|
+
{
|
|
1356
|
+
tokens: o,
|
|
1357
|
+
value: l,
|
|
1358
|
+
onValueChange: c,
|
|
1359
|
+
disabled: h,
|
|
1360
|
+
placeholder: "Select token"
|
|
1361
|
+
}
|
|
1362
|
+
)
|
|
1363
|
+
] }),
|
|
1364
|
+
/* @__PURE__ */ n("div", { className: "flex items-center justify-between text-sm text-muted-foreground", children: [
|
|
1365
|
+
/* @__PURE__ */ e("div", { children: i && /* @__PURE__ */ n("span", { children: [
|
|
1366
|
+
"≈ $",
|
|
1367
|
+
i
|
|
1368
|
+
] }) }),
|
|
1369
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
1370
|
+
d && /* @__PURE__ */ n("span", { children: [
|
|
1371
|
+
"Balance: ",
|
|
1372
|
+
d,
|
|
1373
|
+
" ",
|
|
1374
|
+
(w == null ? void 0 : w.symbol) || ""
|
|
1375
|
+
] }),
|
|
1376
|
+
f && /* @__PURE__ */ e(
|
|
1377
|
+
O,
|
|
1378
|
+
{
|
|
1379
|
+
variant: "default",
|
|
1380
|
+
size: "xs",
|
|
1381
|
+
onClick: f,
|
|
1382
|
+
className: s(
|
|
1383
|
+
"cursor-pointer hover:bg-primary hover:text-primary-foreground transition-colors text-xs",
|
|
1384
|
+
h && "cursor-not-allowed opacity-50"
|
|
1385
|
+
),
|
|
1386
|
+
children: "MAX"
|
|
1387
|
+
}
|
|
1388
|
+
)
|
|
1389
|
+
] })
|
|
1390
|
+
] })
|
|
1391
|
+
]
|
|
1392
|
+
}
|
|
1393
|
+
);
|
|
1394
|
+
}
|
|
1395
|
+
);
|
|
1396
|
+
Be.displayName = "SwapInput";
|
|
1397
|
+
const Ve = x.forwardRef(
|
|
1398
|
+
({
|
|
1399
|
+
className: r,
|
|
1400
|
+
swapFee: t,
|
|
1401
|
+
slippageInUsd: a,
|
|
1402
|
+
deposit: o,
|
|
1403
|
+
receive: l,
|
|
1404
|
+
equivalentInUsd: c,
|
|
1405
|
+
networkFee: i,
|
|
1406
|
+
networkFeeInUsd: d,
|
|
1407
|
+
showFree: f = !1,
|
|
1408
|
+
defaultOpen: m = !1,
|
|
1409
|
+
...h
|
|
1410
|
+
}, u) => {
|
|
1411
|
+
const [g, N] = x.useState(m);
|
|
1412
|
+
return /* @__PURE__ */ n(y, { ref: u, className: s("overflow-hidden", r), ...h, children: [
|
|
1413
|
+
/* @__PURE__ */ n(
|
|
1414
|
+
"button",
|
|
1415
|
+
{
|
|
1416
|
+
onClick: () => N(!g),
|
|
1417
|
+
className: "w-full flex items-center justify-between p-1 hover:bg-muted/50 transition-colors",
|
|
1418
|
+
children: [
|
|
1419
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
1420
|
+
/* @__PURE__ */ n("span", { className: "text-sm font-medium", children: [
|
|
1421
|
+
o,
|
|
1422
|
+
" = ",
|
|
1423
|
+
l
|
|
1424
|
+
] }),
|
|
1425
|
+
/* @__PURE__ */ n("span", { className: "text-xs text-muted-foreground", children: [
|
|
1426
|
+
"(≈ $",
|
|
1427
|
+
c,
|
|
1428
|
+
")"
|
|
1429
|
+
] })
|
|
1430
|
+
] }),
|
|
1431
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-1", children: [
|
|
1432
|
+
/* @__PURE__ */ n("span", { className: "text-xs text-muted-foreground", children: [
|
|
1433
|
+
"≈ $",
|
|
1434
|
+
a
|
|
1435
|
+
] }),
|
|
1436
|
+
/* @__PURE__ */ e(_, { className: "w-4 h-4" })
|
|
1437
|
+
] })
|
|
1438
|
+
]
|
|
1439
|
+
}
|
|
1440
|
+
),
|
|
1441
|
+
g && /* @__PURE__ */ n("div", { className: "transition-all animate-in fade-in-0 duration-300", children: [
|
|
1442
|
+
/* @__PURE__ */ n("div", { className: "flex items-center justify-between text-sm", children: [
|
|
1443
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground text-xs", children: "Swap Fee" }),
|
|
1444
|
+
t ? /* @__PURE__ */ n("span", { className: "font-medium", children: [
|
|
1445
|
+
t,
|
|
1446
|
+
"%"
|
|
1447
|
+
] }) : /* @__PURE__ */ e("span", { className: "text-xs px-2 py-1 bg-primary/10 text-primary rounded-full font-medium", children: "FREE" })
|
|
1448
|
+
] }),
|
|
1449
|
+
/* @__PURE__ */ n("div", { className: "flex items-center justify-between text-sm", children: [
|
|
1450
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground text-xs", children: "Network Fee" }),
|
|
1451
|
+
/* @__PURE__ */ n("span", { className: "font-medium", children: [
|
|
1452
|
+
/* @__PURE__ */ e("span", { className: "text-xs text-foreground", children: i }),
|
|
1453
|
+
d ? /* @__PURE__ */ n("span", { className: "text-xs text-muted-foreground", children: [
|
|
1454
|
+
"(≈ $",
|
|
1455
|
+
d,
|
|
1456
|
+
")"
|
|
1457
|
+
] }) : /* @__PURE__ */ e("span", { className: "text-xs px-2 py-1 bg-primary/10 text-primary rounded-full font-medium", children: "FREE" })
|
|
1458
|
+
] })
|
|
1459
|
+
] })
|
|
1460
|
+
] })
|
|
1461
|
+
] });
|
|
1462
|
+
}
|
|
1463
|
+
);
|
|
1464
|
+
Ve.displayName = "SwapDetails";
|
|
1465
|
+
const Fe = x.forwardRef(
|
|
1466
|
+
({ className: r, tokens: t = [], variant: a = "default", defaultOpen: o = !1, ...l }, c) => {
|
|
1467
|
+
const [i, d] = x.useState(o), f = (m) => /* @__PURE__ */ e("div", { className: "w-8 h-8 rounded-full bg-primary/20 flex items-center justify-center", children: /* @__PURE__ */ e("span", { className: "text-xs font-bold text-primary", children: m.charAt(0) }) });
|
|
1468
|
+
return t.length === 0 ? null : /* @__PURE__ */ n(y, { ref: c, className: s("overflow-hidden", r), ...l, children: [
|
|
1469
|
+
/* @__PURE__ */ n(
|
|
1470
|
+
"button",
|
|
1471
|
+
{
|
|
1472
|
+
onClick: () => d(!i),
|
|
1473
|
+
className: "w-full flex items-center justify-between p-2 hover:bg-muted/50 transition-colors",
|
|
1474
|
+
children: [
|
|
1475
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "Swap Route" }),
|
|
1476
|
+
/* @__PURE__ */ n("div", { className: "flex items-center justify-between gap-2", children: [
|
|
1477
|
+
/* @__PURE__ */ n("span", { className: "text-xs text-muted-foreground", children: [
|
|
1478
|
+
t.length,
|
|
1479
|
+
" token",
|
|
1480
|
+
t.length > 1 ? "s" : ""
|
|
1481
|
+
] }),
|
|
1482
|
+
/* @__PURE__ */ e(_, { className: "w-4 h-4 text-primary" })
|
|
1483
|
+
] })
|
|
1484
|
+
]
|
|
1485
|
+
}
|
|
1486
|
+
),
|
|
1487
|
+
i && /* @__PURE__ */ e("div", { className: "px-4 pb-4 border-t border-border", children: /* @__PURE__ */ n(ce, { className: "rounded-md whitespace-nowrap", children: [
|
|
1488
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-2 overflow-x-auto py-3", children: t.map((m, h) => /* @__PURE__ */ n(K, { children: [
|
|
1489
|
+
/* @__PURE__ */ e(y, { variant: "item", className: "p-2 rounded-full", children: /* @__PURE__ */ e(
|
|
1490
|
+
S,
|
|
1491
|
+
{
|
|
1492
|
+
icon: m.icon || f(m.symbol),
|
|
1493
|
+
textSize: "xs",
|
|
1494
|
+
iconSize: "sm",
|
|
1495
|
+
children: /* @__PURE__ */ n("span", { className: "gap-2", children: [
|
|
1496
|
+
m.amount,
|
|
1497
|
+
" ",
|
|
1498
|
+
m.symbol
|
|
1499
|
+
] })
|
|
1500
|
+
}
|
|
1501
|
+
) }, h),
|
|
1502
|
+
h < t.length - 1 && /* @__PURE__ */ e("div", { className: "flex-shrink-0 mx-1", children: /* @__PURE__ */ e(ne, { className: "w-4 h-4 text-primary" }) })
|
|
1503
|
+
] })) }),
|
|
1504
|
+
/* @__PURE__ */ e($, { orientation: "horizontal", className: "h-2" })
|
|
1505
|
+
] }) })
|
|
1506
|
+
] });
|
|
1507
|
+
}
|
|
1508
|
+
);
|
|
1509
|
+
Fe.displayName = "RouteDetails";
|
|
1510
|
+
const mt = {
|
|
1511
|
+
colors: {
|
|
1512
|
+
// Turtle brand colors
|
|
1513
|
+
neonGreen: "oklch(0.86 0.16 142.5)",
|
|
1514
|
+
darkGreen: "oklch(0.24 0.16 142.5)",
|
|
1515
|
+
ninjaBlack: "oklch(0.1 0.005 120)",
|
|
1516
|
+
wiseWhite: "oklch(0.98 0 0)",
|
|
1517
|
+
wiseGray: "oklch(0.17 0.003 120)",
|
|
1518
|
+
mintCream: "oklch(0.95 0.046 109)",
|
|
1519
|
+
turtleYellow: "oklch(0.97 0.21 98.2)",
|
|
1520
|
+
turtleRed: "oklch(0.6 0.28 29)",
|
|
1521
|
+
whiteTransparent: "oklch(0.98 0 0 / 0.02)",
|
|
1522
|
+
// Semantic colors - light theme
|
|
1523
|
+
light: {
|
|
1524
|
+
background: "oklch(1 0 0)",
|
|
1525
|
+
foreground: "oklch(0.141 0.005 285.823)",
|
|
1526
|
+
card: "oklch(1 0 0)",
|
|
1527
|
+
cardForeground: "oklch(0.141 0.005 285.823)",
|
|
1528
|
+
popover: "oklch(1 0 0)",
|
|
1529
|
+
popoverForeground: "oklch(0.141 0.005 285.823)",
|
|
1530
|
+
primary: "oklch(0.21 0.006 285.885)",
|
|
1531
|
+
primaryForeground: "oklch(0.985 0 0)",
|
|
1532
|
+
secondary: "oklch(0.967 0.001 286.375)",
|
|
1533
|
+
secondaryForeground: "oklch(0.21 0.006 285.885)",
|
|
1534
|
+
muted: "oklch(0.967 0.001 286.375)",
|
|
1535
|
+
mutedForeground: "oklch(0.552 0.016 285.938)",
|
|
1536
|
+
accent: "oklch(0.967 0.001 286.375)",
|
|
1537
|
+
accentForeground: "oklch(0.21 0.006 285.885)",
|
|
1538
|
+
destructive: "oklch(0.577 0.245 27.325)",
|
|
1539
|
+
border: "oklch(0.92 0.004 286.32)",
|
|
1540
|
+
input: "oklch(0.92 0.004 286.32)",
|
|
1541
|
+
ring: "oklch(0.705 0.015 286.067)"
|
|
1542
|
+
},
|
|
1543
|
+
// Semantic colors - dark theme
|
|
1544
|
+
dark: {
|
|
1545
|
+
background: "oklch(0.141 0.005 285.823)",
|
|
1546
|
+
foreground: "oklch(0.985 0 0)",
|
|
1547
|
+
card: "oklch(0.21 0.006 285.885)",
|
|
1548
|
+
cardForeground: "oklch(0.985 0 0)",
|
|
1549
|
+
popover: "oklch(0.21 0.006 285.885)",
|
|
1550
|
+
popoverForeground: "oklch(0.985 0 0)",
|
|
1551
|
+
primary: "oklch(0.92 0.004 286.32)",
|
|
1552
|
+
primaryForeground: "oklch(0.21 0.006 285.885)",
|
|
1553
|
+
secondary: "oklch(0.274 0.006 286.033)",
|
|
1554
|
+
secondaryForeground: "oklch(0.985 0 0)",
|
|
1555
|
+
muted: "oklch(0.274 0.006 286.033)",
|
|
1556
|
+
mutedForeground: "oklch(0.705 0.015 286.067)",
|
|
1557
|
+
accent: "oklch(0.274 0.006 286.033)",
|
|
1558
|
+
accentForeground: "oklch(0.985 0 0)",
|
|
1559
|
+
destructive: "oklch(0.704 0.191 22.216)",
|
|
1560
|
+
border: "oklch(1 0 0 / 10%)",
|
|
1561
|
+
input: "oklch(1 0 0 / 15%)",
|
|
1562
|
+
ring: "oklch(0.552 0.016 285.938)"
|
|
1563
|
+
}
|
|
1564
|
+
},
|
|
1565
|
+
spacing: {
|
|
1566
|
+
xs: "0.25rem",
|
|
1567
|
+
// 4px
|
|
1568
|
+
sm: "0.5rem",
|
|
1569
|
+
// 8px
|
|
1570
|
+
md: "0.75rem",
|
|
1571
|
+
// 12px
|
|
1572
|
+
lg: "1rem",
|
|
1573
|
+
// 16px
|
|
1574
|
+
xl: "1.5rem",
|
|
1575
|
+
// 24px
|
|
1576
|
+
"2xl": "2rem",
|
|
1577
|
+
// 32px
|
|
1578
|
+
"3xl": "3rem",
|
|
1579
|
+
// 48px
|
|
1580
|
+
"4xl": "4rem"
|
|
1581
|
+
// 64px
|
|
1582
|
+
},
|
|
1583
|
+
radius: {
|
|
1584
|
+
none: "0",
|
|
1585
|
+
sm: "calc(0.625rem - 4px)",
|
|
1586
|
+
md: "calc(0.625rem - 2px)",
|
|
1587
|
+
lg: "0.625rem",
|
|
1588
|
+
xl: "calc(0.625rem + 4px)",
|
|
1589
|
+
full: "9999px"
|
|
1590
|
+
},
|
|
1591
|
+
fontSize: {
|
|
1592
|
+
xs: ["0.75rem", { lineHeight: "1rem" }],
|
|
1593
|
+
sm: ["0.875rem", { lineHeight: "1.25rem" }],
|
|
1594
|
+
base: ["1rem", { lineHeight: "1.5rem" }],
|
|
1595
|
+
lg: ["1.125rem", { lineHeight: "1.75rem" }],
|
|
1596
|
+
xl: ["1.25rem", { lineHeight: "1.75rem" }],
|
|
1597
|
+
"2xl": ["1.5rem", { lineHeight: "2rem" }],
|
|
1598
|
+
"3xl": ["1.875rem", { lineHeight: "2.25rem" }]
|
|
1599
|
+
},
|
|
1600
|
+
fontWeight: {
|
|
1601
|
+
normal: "400",
|
|
1602
|
+
medium: "500",
|
|
1603
|
+
semibold: "600",
|
|
1604
|
+
bold: "700"
|
|
1605
|
+
},
|
|
1606
|
+
shadow: {
|
|
1607
|
+
xs: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
1608
|
+
sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
1609
|
+
md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
1610
|
+
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
1611
|
+
xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"
|
|
1612
|
+
}
|
|
1613
|
+
};
|
|
1614
|
+
export {
|
|
1615
|
+
F as Button,
|
|
1616
|
+
y as Card,
|
|
1617
|
+
lt as CardContent,
|
|
1618
|
+
it as CardDescription,
|
|
1619
|
+
dt as CardFooter,
|
|
1620
|
+
ot as CardHeader,
|
|
1621
|
+
st as CardTitle,
|
|
1622
|
+
O as Chip,
|
|
1623
|
+
W as IconAnimation,
|
|
1624
|
+
C as InfoCard,
|
|
1625
|
+
D as Input,
|
|
1626
|
+
Me as Label,
|
|
1627
|
+
S as LabelWithIcon,
|
|
1628
|
+
Le as NavigationBar,
|
|
1629
|
+
Se as NavigationItem,
|
|
1630
|
+
Te as OpportunityDetails,
|
|
1631
|
+
ct as OpportunityDetailsV1,
|
|
1632
|
+
Ce as OpportunityItem,
|
|
1633
|
+
Fe as RouteDetails,
|
|
1634
|
+
ce as ScrollArea,
|
|
1635
|
+
$ as ScrollBar,
|
|
1636
|
+
me as Select,
|
|
1637
|
+
fe as SelectContent,
|
|
1638
|
+
Ye as SelectGroup,
|
|
1639
|
+
pe as SelectItem,
|
|
1640
|
+
Xe as SelectLabel,
|
|
1641
|
+
he as SelectScrollDownButton,
|
|
1642
|
+
xe as SelectScrollUpButton,
|
|
1643
|
+
qe as SelectSeparator,
|
|
1644
|
+
ue as SelectTrigger,
|
|
1645
|
+
Ze as SelectValue,
|
|
1646
|
+
Je as Separator,
|
|
1647
|
+
Ve as SwapDetails,
|
|
1648
|
+
Be as SwapInput,
|
|
1649
|
+
Qe as Switch,
|
|
1650
|
+
Ke as Toaster,
|
|
1651
|
+
Ue as Toggle,
|
|
1652
|
+
et as ToggleGroup,
|
|
1653
|
+
tt as ToggleGroupItem,
|
|
1654
|
+
G as TokenSelector,
|
|
1655
|
+
rt as Tooltip,
|
|
1656
|
+
nt as TooltipContent,
|
|
1657
|
+
ge as TooltipProvider,
|
|
1658
|
+
at as TooltipTrigger,
|
|
1659
|
+
Re as TxStatus,
|
|
1660
|
+
ve as buttonVariants,
|
|
1661
|
+
be as cardVariants,
|
|
1662
|
+
ye as chipVariants,
|
|
1663
|
+
s as cn,
|
|
1664
|
+
Ne as iconAnimationVariants,
|
|
1665
|
+
V as inputVariants,
|
|
1666
|
+
we as labelWithIconVariants,
|
|
1667
|
+
ke as navigationBarVariants,
|
|
1668
|
+
ze as navigationItemVariants,
|
|
1669
|
+
H as toggleVariants,
|
|
1670
|
+
mt as tokens
|
|
1671
|
+
};
|
|
1672
|
+
//# sourceMappingURL=index.js.map
|