@gearbox-protocol/permissionless-ui 1.22.0-next.32 → 1.22.0-next.34
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/cjs/components/accordion/accordion.cjs +1 -1
- package/dist/cjs/components/alert-badge/alert-badge.cjs +1 -1
- package/dist/cjs/components/apy/apy.cjs +1 -1
- package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
- package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/cjs/components/button-checkbox/button-checkbox.cjs +1 -1
- package/dist/cjs/components/buttons/back-button/back-button.cjs +1 -1
- package/dist/cjs/components/buttons/copy-button/copy-button.cjs +1 -1
- package/dist/cjs/components/buttons/external-button/external-button.cjs +1 -1
- package/dist/cjs/components/buttons/filter-button/filter-button.cjs +1 -1
- package/dist/cjs/components/cards/expandable-call/expandable-call.cjs +1 -1
- package/dist/cjs/components/cards/expandable-card/expandable-card.cjs +1 -1
- package/dist/cjs/components/carousel/carousel.cjs +3 -3
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox.cjs +1 -1
- package/dist/cjs/components/checkbox-item/checkbox-item.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/confirm-menu/confirm-menu.cjs +1 -1
- package/dist/cjs/components/currency-button/currency-button.cjs +1 -1
- package/dist/cjs/components/detailed-apy/detailed-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/dialog/dialog-content.cjs +1 -1
- package/dist/cjs/components/dropdown-label/dropdown-label.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-checkbox-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-radio-item.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-content.cjs +1 -1
- package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-trigger.cjs +1 -1
- package/dist/cjs/components/edit-input/edit-input.cjs +1 -1
- package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -1
- package/dist/cjs/components/filter/filter-checkbox-item.cjs +1 -1
- package/dist/cjs/components/filter/filter-chip.cjs +1 -1
- package/dist/cjs/components/filter/filter-radio-item.cjs +1 -1
- package/dist/cjs/components/head-cell/head-cell.cjs +1 -1
- package/dist/cjs/components/help-tip/help-tip.cjs +1 -1
- package/dist/cjs/components/horizontal-indicator/horizontal-indicator.cjs +1 -1
- package/dist/cjs/components/icons/fa-icon.cjs +1 -0
- package/dist/cjs/components/icons/index.cjs +1 -0
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/layout/header/header.cjs +1 -1
- package/dist/cjs/components/legal-agreement/legal-agreement-dialog.cjs +1 -1
- package/dist/cjs/components/network-icon/network-icon.cjs +1 -1
- package/dist/cjs/components/pool-apy-tooltip/pool-apy-tooltip.cjs +1 -1
- package/dist/cjs/components/radio-group/radio-group.cjs +1 -1
- package/dist/cjs/components/search-bar/search-bar.cjs +1 -1
- package/dist/cjs/components/search-line/search-line.cjs +1 -1
- package/dist/cjs/components/select/select.cjs +1 -1
- package/dist/cjs/components/short-string/short-string.cjs +1 -1
- package/dist/cjs/components/signatures/vertical-timeline.cjs +1 -1
- package/dist/cjs/components/smart-number-input/smart-number-input.cjs +1 -1
- package/dist/cjs/components/spinner/spinner.cjs +1 -1
- package/dist/cjs/components/stat-badge/stat-badge.cjs +1 -1
- package/dist/cjs/components/stepper/stepper.cjs +1 -1
- package/dist/cjs/components/table/edit-button.cjs +1 -1
- package/dist/cjs/components/table/editable-grid-table.cjs +1 -1
- package/dist/cjs/components/table/sortable-head-cell.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/token-symbol/token-symbol.cjs +1 -1
- package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
- package/dist/cjs/components/tooltip/index.cjs +1 -1
- package/dist/cjs/components/tooltip/simple-tooltip.cjs +1 -0
- package/dist/cjs/components/trading-view/graph-dropdown.cjs +1 -1
- package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/accordion/accordion.js +24 -18
- package/dist/esm/components/alert-badge/alert-badge.js +74 -60
- package/dist/esm/components/apy/apy.js +3 -2
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +31 -30
- package/dist/esm/components/block-sync/block-sync.js +6 -3
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +18 -12
- package/dist/esm/components/button-checkbox/button-checkbox.js +28 -21
- package/dist/esm/components/buttons/back-button/back-button.js +10 -9
- package/dist/esm/components/buttons/copy-button/copy-button.js +28 -20
- package/dist/esm/components/buttons/external-button/external-button.js +22 -10
- package/dist/esm/components/buttons/filter-button/filter-button.js +12 -12
- package/dist/esm/components/cards/expandable-call/expandable-call.js +11 -9
- package/dist/esm/components/cards/expandable-card/expandable-card.js +20 -18
- package/dist/esm/components/carousel/carousel.js +30 -29
- package/dist/esm/components/checkbox/checkbox-labeled.js +4 -1
- package/dist/esm/components/checkbox/checkbox.js +20 -19
- package/dist/esm/components/checkbox-item/checkbox-item.js +7 -6
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +4 -1
- package/dist/esm/components/compound-apy/compound-apy.js +73 -106
- package/dist/esm/components/confirm-menu/confirm-menu.js +13 -12
- package/dist/esm/components/currency-button/currency-button.js +11 -11
- package/dist/esm/components/detailed-apy/detailed-apy.js +14 -13
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +23 -21
- package/dist/esm/components/dialog/dialog-content.js +11 -10
- package/dist/esm/components/dropdown-label/dropdown-label.js +16 -14
- package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +14 -13
- package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +4 -4
- package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +10 -9
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +1 -1
- package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +6 -6
- package/dist/esm/components/edit-input/edit-input.js +46 -37
- package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +7 -7
- package/dist/esm/components/filter/filter-checkbox-item.js +9 -8
- package/dist/esm/components/filter/filter-chip.js +16 -15
- package/dist/esm/components/filter/filter-radio-item.js +9 -8
- package/dist/esm/components/head-cell/head-cell.js +33 -31
- package/dist/esm/components/help-tip/help-tip.js +2 -1
- package/dist/esm/components/horizontal-indicator/horizontal-indicator.js +10 -9
- package/dist/esm/components/icons/fa-icon.js +20 -0
- package/dist/esm/components/icons/index.js +42 -0
- package/dist/esm/components/index.js +31 -29
- package/dist/esm/components/layout/header/header.js +21 -20
- package/dist/esm/components/legal-agreement/legal-agreement-dialog.js +54 -46
- package/dist/esm/components/network-icon/network-icon.js +32 -53
- package/dist/esm/components/pool-apy-tooltip/pool-apy-tooltip.js +3 -2
- package/dist/esm/components/radio-group/radio-group.js +21 -14
- package/dist/esm/components/search-bar/search-bar.js +20 -19
- package/dist/esm/components/search-line/search-line.js +42 -34
- package/dist/esm/components/select/select.js +46 -39
- package/dist/esm/components/short-string/short-string.js +6 -5
- package/dist/esm/components/signatures/vertical-timeline.js +24 -23
- package/dist/esm/components/smart-number-input/smart-number-input.js +52 -51
- package/dist/esm/components/spinner/spinner.js +20 -19
- package/dist/esm/components/stat-badge/stat-badge.js +1 -0
- package/dist/esm/components/stepper/stepper.js +25 -24
- package/dist/esm/components/table/edit-button.js +8 -8
- package/dist/esm/components/table/editable-grid-table.js +4 -4
- package/dist/esm/components/table/sortable-head-cell.js +12 -11
- package/dist/esm/components/table/table.js +41 -38
- package/dist/esm/components/token-symbol/token-symbol.js +1 -0
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +22 -21
- package/dist/esm/components/tooltip/index.js +6 -4
- package/dist/esm/components/tooltip/simple-tooltip.js +128 -0
- package/dist/esm/components/trading-view/graph-dropdown.js +45 -37
- package/dist/esm/components/vertical-indicator/vertical-indicator.js +32 -25
- package/dist/esm/components/with-copy/with-copy.js +30 -21
- package/dist/esm/index.js +198 -196
- package/dist/globals.css +1 -1
- package/dist/types/components/alert-badge/alert-badge.d.ts +7 -1
- package/dist/types/components/buttons/button/button.d.ts +1 -1
- package/dist/types/components/card-grid/card-grid.d.ts +1 -1
- package/dist/types/components/colored-text/colored-text.d.ts +1 -1
- package/dist/types/components/dialog/dialog-container.d.ts +3 -3
- package/dist/types/components/edit-input/edit-input.d.ts +1 -1
- package/dist/types/components/icons/fa-icon.d.ts +2 -0
- package/dist/types/components/icons/index.d.ts +2 -0
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components/network-icon/network-icon.d.ts +3 -3
- package/dist/types/components/segmented-control/segmented-control.d.ts +1 -1
- package/dist/types/components/skeleton/skeleton.d.ts +3 -3
- package/dist/types/components/status-dot/status-dot.d.ts +1 -1
- package/dist/types/components/tooltip/index.d.ts +1 -0
- package/dist/types/components/tooltip/simple-tooltip.d.ts +84 -0
- package/package.json +5 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { IconExternal as k } from "@gearbox-protocol/static";
|
|
3
|
+
import * as s from "react";
|
|
4
4
|
import { DropdownMenu as C, DropdownMenuTrigger as b } from "../dropdown-menu/dropdown-menu.js";
|
|
5
5
|
import "../dropdown-menu/dropdown-menu-checkbox-item.js";
|
|
6
6
|
import { DropdownMenuContent as D } from "../dropdown-menu/dropdown-menu-content.js";
|
|
@@ -44,16 +44,16 @@ function q({
|
|
|
44
44
|
className: f,
|
|
45
45
|
children: d
|
|
46
46
|
}) {
|
|
47
|
-
const [g, i] =
|
|
48
|
-
|
|
47
|
+
const [g, i] = s.useState(r ?? !1);
|
|
48
|
+
s.useEffect(() => {
|
|
49
49
|
r !== void 0 && i(r);
|
|
50
50
|
}, [r]);
|
|
51
51
|
const x = (t) => {
|
|
52
52
|
i(t), t || p?.();
|
|
53
53
|
}, E = e ?? m[h] ?? m[1];
|
|
54
|
-
return /* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ c(C, { open: g, onOpenChange: x, children: [
|
|
55
55
|
/* @__PURE__ */ o(b, { asChild: !0, children: /* @__PURE__ */ o("span", { className: M("cursor-pointer", f), children: d || a || "Explorer" }) }),
|
|
56
|
-
/* @__PURE__ */ o(D, { align: n === "left" ? "start" : "end", children: E?.map((t) => /* @__PURE__ */ o(w, { asChild: !0, children: /* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ o(D, { align: n === "left" ? "start" : "end", children: E?.map((t) => /* @__PURE__ */ o(w, { asChild: !0, children: /* @__PURE__ */ c(
|
|
57
57
|
"a",
|
|
58
58
|
{
|
|
59
59
|
href: N(t.url, l, u),
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { faCheck as m } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
+
import { FaIcon as l } from "../icons/fa-icon.js";
|
|
5
6
|
import "@gearbox-protocol/sdk";
|
|
6
|
-
import { cn as
|
|
7
|
+
import { cn as d } from "../../utils/cn.js";
|
|
7
8
|
import "sonner";
|
|
8
|
-
const
|
|
9
|
+
const p = n.forwardRef(({ className: o, children: r, checked: a, ...s }, i) => /* @__PURE__ */ c(
|
|
9
10
|
t.CheckboxItem,
|
|
10
11
|
{
|
|
11
12
|
ref: i,
|
|
12
|
-
className:
|
|
13
|
+
className: d(
|
|
13
14
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
14
15
|
o
|
|
15
16
|
),
|
|
16
17
|
checked: a,
|
|
17
18
|
...s,
|
|
18
19
|
children: [
|
|
19
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
20
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(l, { icon: m, className: "size-4" }) }) }),
|
|
20
21
|
r
|
|
21
22
|
]
|
|
22
23
|
}
|
|
23
24
|
));
|
|
24
|
-
|
|
25
|
+
p.displayName = t.CheckboxItem.displayName;
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
p as FilterCheckboxItem
|
|
27
28
|
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { Badge as m } from "../badge/badge.js";
|
|
4
|
+
import { faXmark as f } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
+
import { FaIcon as l } from "../icons/fa-icon.js";
|
|
5
6
|
import "@gearbox-protocol/sdk";
|
|
6
|
-
import { cn as
|
|
7
|
+
import { cn as u } from "../../utils/cn.js";
|
|
7
8
|
import "sonner";
|
|
8
|
-
const
|
|
9
|
-
({ className: e, label:
|
|
10
|
-
|
|
9
|
+
const d = p.forwardRef(
|
|
10
|
+
({ className: e, label: i, value: g, onRemove: o, showRemove: t = !0, ...a }, n) => /* @__PURE__ */ r("div", { ref: n, ...a, children: /* @__PURE__ */ s(
|
|
11
|
+
m,
|
|
11
12
|
{
|
|
12
13
|
variant: "secondary",
|
|
13
|
-
className:
|
|
14
|
+
className: u(
|
|
14
15
|
"gap-1.5 px-2 py-1 pr-1.5",
|
|
15
|
-
|
|
16
|
+
t && o && "cursor-pointer",
|
|
16
17
|
e
|
|
17
18
|
),
|
|
18
19
|
children: [
|
|
19
|
-
/* @__PURE__ */ r("span", { children:
|
|
20
|
-
|
|
20
|
+
/* @__PURE__ */ r("span", { children: i }),
|
|
21
|
+
t && o && /* @__PURE__ */ r(
|
|
21
22
|
"button",
|
|
22
23
|
{
|
|
23
24
|
type: "button",
|
|
@@ -25,15 +26,15 @@ const u = m.forwardRef(
|
|
|
25
26
|
c.stopPropagation(), o();
|
|
26
27
|
},
|
|
27
28
|
className: "ml-1 rounded-sm hover:bg-accent hover:text-accent-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
28
|
-
"aria-label": `Remove filter: ${
|
|
29
|
-
children: /* @__PURE__ */ r(
|
|
29
|
+
"aria-label": `Remove filter: ${i}`,
|
|
30
|
+
children: /* @__PURE__ */ r(l, { icon: f, className: "size-3" })
|
|
30
31
|
}
|
|
31
32
|
)
|
|
32
33
|
]
|
|
33
34
|
}
|
|
34
35
|
) })
|
|
35
36
|
);
|
|
36
|
-
|
|
37
|
+
d.displayName = "FilterChip";
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
+
d as FilterChip
|
|
39
40
|
};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { faCircle as c } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
+
import { FaIcon as m } from "../icons/fa-icon.js";
|
|
5
6
|
import "@gearbox-protocol/sdk";
|
|
6
|
-
import { cn as
|
|
7
|
+
import { cn as l } from "../../utils/cn.js";
|
|
7
8
|
import "sonner";
|
|
8
|
-
const
|
|
9
|
+
const d = n.forwardRef(({ className: o, children: r, ...a }, i) => /* @__PURE__ */ s(
|
|
9
10
|
t.RadioItem,
|
|
10
11
|
{
|
|
11
12
|
ref: i,
|
|
12
|
-
className:
|
|
13
|
+
className: l(
|
|
13
14
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
14
15
|
o
|
|
15
16
|
),
|
|
16
17
|
...a,
|
|
17
18
|
children: [
|
|
18
|
-
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
19
|
+
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(t.ItemIndicator, { children: /* @__PURE__ */ e(m, { icon: c, className: "size-2 fill-current" }) }) }),
|
|
19
20
|
r
|
|
20
21
|
]
|
|
21
22
|
}
|
|
22
23
|
));
|
|
23
|
-
|
|
24
|
+
d.displayName = t.RadioItem.displayName;
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
d as FilterRadioItem
|
|
26
27
|
};
|
|
@@ -1,60 +1,62 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as v from "react";
|
|
3
|
+
import { HelpTip as f } from "../help-tip/help-tip.js";
|
|
4
|
+
import { faCaretUp as N, faCaretDown as T } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
+
import { FaIcon as d } from "../icons/fa-icon.js";
|
|
6
|
+
import "../tooltip/simple-tooltip.js";
|
|
7
|
+
import { TooltipProvider as y, Tooltip as b, TooltipTrigger as H, TooltipContent as w } from "../tooltip/tooltip.js";
|
|
6
8
|
import "@gearbox-protocol/sdk";
|
|
7
|
-
import { cn as
|
|
9
|
+
import { cn as n } from "../../utils/cn.js";
|
|
8
10
|
import "sonner";
|
|
9
11
|
function R({
|
|
10
12
|
title: l,
|
|
11
13
|
tip: r,
|
|
12
|
-
arrowPosition:
|
|
14
|
+
arrowPosition: i = "left",
|
|
13
15
|
sortDirection: s,
|
|
14
|
-
sortField:
|
|
15
|
-
sortTip:
|
|
16
|
+
sortField: p = "this field",
|
|
17
|
+
sortTip: u,
|
|
16
18
|
onSort: t,
|
|
17
|
-
className:
|
|
19
|
+
className: h
|
|
18
20
|
}) {
|
|
19
|
-
const [
|
|
21
|
+
const [x, a] = v.useState(!1), g = !!s || x, c = () => /* @__PURE__ */ e(
|
|
20
22
|
"span",
|
|
21
23
|
{
|
|
22
|
-
className:
|
|
24
|
+
className: n(
|
|
23
25
|
"inline-flex items-center transition-opacity",
|
|
24
|
-
|
|
26
|
+
g ? "opacity-100" : "opacity-0"
|
|
25
27
|
),
|
|
26
|
-
children: s === "asc" ? /* @__PURE__ */ e(
|
|
28
|
+
children: s === "asc" ? /* @__PURE__ */ e(d, { icon: N, className: "size-3 text-muted-foreground" }) : /* @__PURE__ */ e(d, { icon: T, className: "size-3 text-muted-foreground" })
|
|
27
29
|
}
|
|
28
|
-
),
|
|
30
|
+
), m = () => /* @__PURE__ */ o(
|
|
29
31
|
"button",
|
|
30
32
|
{
|
|
31
33
|
type: "button",
|
|
32
34
|
onClick: t,
|
|
33
35
|
disabled: !t,
|
|
34
|
-
className:
|
|
36
|
+
className: n(
|
|
35
37
|
"inline-flex items-center gap-1 text-sm font-medium text-muted-foreground",
|
|
36
38
|
t && "cursor-pointer hover:text-foreground transition-colors",
|
|
37
39
|
!t && "cursor-default"
|
|
38
40
|
),
|
|
39
41
|
children: [
|
|
40
|
-
t &&
|
|
42
|
+
t && i === "left" && c(),
|
|
41
43
|
l,
|
|
42
|
-
t &&
|
|
44
|
+
t && i === "right" && c()
|
|
43
45
|
]
|
|
44
46
|
}
|
|
45
|
-
),
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
+
), C = `Sort by ${p}`;
|
|
48
|
+
return /* @__PURE__ */ o(
|
|
47
49
|
"div",
|
|
48
50
|
{
|
|
49
|
-
className:
|
|
50
|
-
onPointerEnter: () =>
|
|
51
|
-
onPointerLeave: () =>
|
|
51
|
+
className: n("inline-flex items-center gap-1.5", h),
|
|
52
|
+
onPointerEnter: () => a(!0),
|
|
53
|
+
onPointerLeave: () => a(!1),
|
|
52
54
|
children: [
|
|
53
|
-
t ? /* @__PURE__ */ e(
|
|
54
|
-
/* @__PURE__ */ e(
|
|
55
|
-
/* @__PURE__ */ e(
|
|
56
|
-
] }) }) :
|
|
57
|
-
r && /* @__PURE__ */ e(
|
|
55
|
+
t ? /* @__PURE__ */ e(y, { children: /* @__PURE__ */ o(b, { children: [
|
|
56
|
+
/* @__PURE__ */ e(H, { asChild: !0, children: m() }),
|
|
57
|
+
/* @__PURE__ */ e(w, { children: u || C })
|
|
58
|
+
] }) }) : m(),
|
|
59
|
+
r && /* @__PURE__ */ e(f, { children: r })
|
|
58
60
|
]
|
|
59
61
|
}
|
|
60
62
|
);
|
|
@@ -62,11 +64,11 @@ function R({
|
|
|
62
64
|
function U({
|
|
63
65
|
title: l,
|
|
64
66
|
tip: r,
|
|
65
|
-
className:
|
|
67
|
+
className: i
|
|
66
68
|
}) {
|
|
67
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ o("div", { className: n("inline-flex items-center gap-1.5", i), children: [
|
|
68
70
|
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-muted-foreground", children: l }),
|
|
69
|
-
r && /* @__PURE__ */ e(
|
|
71
|
+
r && /* @__PURE__ */ e(f, { children: r })
|
|
70
72
|
] });
|
|
71
73
|
}
|
|
72
74
|
export {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as e, jsxs as x } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { IconQuestionCircle as s } from "@gearbox-protocol/static";
|
|
3
3
|
import * as l from "react";
|
|
4
4
|
import "@gearbox-protocol/sdk";
|
|
5
5
|
import { cn as t } from "../../utils/cn.js";
|
|
6
6
|
import "sonner";
|
|
7
|
+
import "../tooltip/simple-tooltip.js";
|
|
7
8
|
import { TooltipProvider as T, Tooltip as h, TooltipTrigger as y, TooltipContent as g } from "../tooltip/tooltip.js";
|
|
8
9
|
const N = l.forwardRef(
|
|
9
10
|
({
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { IconQuestionCircle as a } from "@gearbox-protocol/static";
|
|
3
3
|
import * as d from "react";
|
|
4
|
+
import "../tooltip/simple-tooltip.js";
|
|
4
5
|
import { TooltipProvider as c, Tooltip as m, TooltipTrigger as f, TooltipContent as p } from "../tooltip/tooltip.js";
|
|
5
6
|
import "@gearbox-protocol/sdk";
|
|
6
7
|
import { cn as x } from "../../utils/cn.js";
|
|
7
8
|
import "sonner";
|
|
8
|
-
const h = d.forwardRef(({ label: i, value: l, tip:
|
|
9
|
-
/* @__PURE__ */
|
|
9
|
+
const h = d.forwardRef(({ label: i, value: l, tip: r, valueDescription: t, className: n }, s) => /* @__PURE__ */ o("div", { ref: s, className: x("flex flex-col gap-2 w-full", n), children: [
|
|
10
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
10
11
|
/* @__PURE__ */ e("span", { children: i }),
|
|
11
|
-
|
|
12
|
+
r && /* @__PURE__ */ e(c, { delayDuration: 0, children: /* @__PURE__ */ o(m, { children: [
|
|
12
13
|
/* @__PURE__ */ e(f, { asChild: !0, children: /* @__PURE__ */ e(
|
|
13
14
|
"button",
|
|
14
15
|
{
|
|
15
16
|
type: "button",
|
|
16
17
|
className: "inline-flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-help",
|
|
17
|
-
children: /* @__PURE__ */ e(a, { className: "
|
|
18
|
+
children: /* @__PURE__ */ e(a, { size: 14, className: "size-3.5" })
|
|
18
19
|
}
|
|
19
20
|
) }),
|
|
20
|
-
/* @__PURE__ */ e(p, { side: "top", className: "max-w-xs", children: /* @__PURE__ */ e("p", { children:
|
|
21
|
+
/* @__PURE__ */ e(p, { side: "top", className: "max-w-xs", children: /* @__PURE__ */ e("p", { children: r }) })
|
|
21
22
|
] }) })
|
|
22
23
|
] }),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col gap-1", children: [
|
|
24
25
|
/* @__PURE__ */ e("div", { className: "text-base font-semibold text-foreground", children: l }),
|
|
25
|
-
|
|
26
|
+
t && /* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground", children: t })
|
|
26
27
|
] })
|
|
27
28
|
] }));
|
|
28
29
|
h.displayName = "HorizontalIndicator";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { config as i } from "@fortawesome/fontawesome-svg-core";
|
|
3
|
+
import { FontAwesomeIcon as t } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import "react";
|
|
5
|
+
import "@gearbox-protocol/sdk";
|
|
6
|
+
import { cn as n } from "../../utils/cn.js";
|
|
7
|
+
import "sonner";
|
|
8
|
+
i.autoAddCss = !1;
|
|
9
|
+
function u({ className: o, ...r }) {
|
|
10
|
+
return /* @__PURE__ */ m(
|
|
11
|
+
t,
|
|
12
|
+
{
|
|
13
|
+
className: n("inline-block shrink-0", o),
|
|
14
|
+
...r
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
u as FaIcon
|
|
20
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { faArrowDown as r, faArrowLeft as e, faArrowRight as o, faArrowUp as i, faArrowsUpDown as t, faBars as l, faBolt as s, faCaretDown as C, faCaretLeft as n, faCaretRight as c, faCaretUp as g, faCheck as h, faChevronLeft as w, faChevronRight as p, faCircle as m, faCircleCheck as U, faCircleExclamation as u, faCirclePlus as A, faCircleQuestion as R, faCloud as d, faCog as k, faCreditCard as x, faEllipsisVertical as E, faEnvelope as L, faKeyboard as v, faLifeRing as B, faMagnifyingGlass as D, faMessage as P, faPlus as y, faRightFromBracket as F, faTrash as M, faTriangleExclamation as T, faUser as b, faUserPlus as G, faUsers as I, faWallet as K, faXmark as Q } from "@fortawesome/free-solid-svg-icons";
|
|
2
|
+
import { FaIcon as W } from "./fa-icon.js";
|
|
3
|
+
export {
|
|
4
|
+
W as FaIcon,
|
|
5
|
+
r as faArrowDown,
|
|
6
|
+
e as faArrowLeft,
|
|
7
|
+
o as faArrowRight,
|
|
8
|
+
i as faArrowUp,
|
|
9
|
+
t as faArrowsUpDown,
|
|
10
|
+
l as faBars,
|
|
11
|
+
s as faBolt,
|
|
12
|
+
C as faCaretDown,
|
|
13
|
+
n as faCaretLeft,
|
|
14
|
+
c as faCaretRight,
|
|
15
|
+
g as faCaretUp,
|
|
16
|
+
h as faCheck,
|
|
17
|
+
w as faChevronLeft,
|
|
18
|
+
p as faChevronRight,
|
|
19
|
+
m as faCircle,
|
|
20
|
+
U as faCircleCheck,
|
|
21
|
+
u as faCircleExclamation,
|
|
22
|
+
A as faCirclePlus,
|
|
23
|
+
R as faCircleQuestion,
|
|
24
|
+
d as faCloud,
|
|
25
|
+
k as faCog,
|
|
26
|
+
x as faCreditCard,
|
|
27
|
+
E as faEllipsisVertical,
|
|
28
|
+
L as faEnvelope,
|
|
29
|
+
v as faKeyboard,
|
|
30
|
+
B as faLifeRing,
|
|
31
|
+
D as faMagnifyingGlass,
|
|
32
|
+
P as faMessage,
|
|
33
|
+
y as faPlus,
|
|
34
|
+
F as faRightFromBracket,
|
|
35
|
+
M as faTrash,
|
|
36
|
+
T as faTriangleExclamation,
|
|
37
|
+
b as faUser,
|
|
38
|
+
G as faUserPlus,
|
|
39
|
+
I as faUsers,
|
|
40
|
+
K as faWallet,
|
|
41
|
+
Q as faXmark
|
|
42
|
+
};
|
|
@@ -193,17 +193,18 @@ import { TokenIcon as Hl, preloadTokenIcons as vl } from "./token-icon/token-ico
|
|
|
193
193
|
import { TokenSymbol as El } from "./token-symbol/token-symbol.js";
|
|
194
194
|
import { TokenTemplate as Rl } from "./token-template/token-template.js";
|
|
195
195
|
import { TokensListCell as Nl } from "./tokens-list-cell/tokens-list-cell.js";
|
|
196
|
-
import {
|
|
197
|
-
import {
|
|
198
|
-
import {
|
|
199
|
-
import {
|
|
200
|
-
import {
|
|
201
|
-
import {
|
|
202
|
-
import {
|
|
203
|
-
import {
|
|
204
|
-
import {
|
|
205
|
-
import {
|
|
206
|
-
import {
|
|
196
|
+
import { SimpleTooltip as Ul } from "./tooltip/simple-tooltip.js";
|
|
197
|
+
import { Tooltip as ql, TooltipContent as Yl, TooltipProvider as Zl, TooltipTrigger as zl } from "./tooltip/tooltip.js";
|
|
198
|
+
import { GraphDropdown as jl } from "./trading-view/graph-dropdown.js";
|
|
199
|
+
import { TradingView as Kl } from "./trading-view/trading-view.js";
|
|
200
|
+
import { FormattedMessageTyped as $l, useIntlTyped as rm } from "./typed-intl/index.js";
|
|
201
|
+
import { Typography as em, typographyVariants as tm } from "./typography/typography.js";
|
|
202
|
+
import { VerticalIndicator as pm, verticalIndicatorVariants as im } from "./vertical-indicator/vertical-indicator.js";
|
|
203
|
+
import { VerticalList as lm, verticalListVariants as mm } from "./vertical-list/vertical-list.js";
|
|
204
|
+
import { VSpace as fm } from "./vspace/vspace.js";
|
|
205
|
+
import { WithCopy as sm } from "./with-copy/with-copy.js";
|
|
206
|
+
import { WithFilterButton as Tm } from "./with-filter-button/with-filter-button.js";
|
|
207
|
+
import { WithTitle as cm } from "./with-title/with-title.js";
|
|
207
208
|
export {
|
|
208
209
|
e as Accordion,
|
|
209
210
|
t as AccordionContent,
|
|
@@ -326,7 +327,7 @@ export {
|
|
|
326
327
|
La as FooterLink,
|
|
327
328
|
Va as FooterLinkSection,
|
|
328
329
|
Qe as FormField,
|
|
329
|
-
|
|
330
|
+
$l as FormattedMessageTyped,
|
|
330
331
|
rt as FormattedNumberString,
|
|
331
332
|
Rt as GOOD_HF,
|
|
332
333
|
Ia as GearboxFooter,
|
|
@@ -334,7 +335,7 @@ export {
|
|
|
334
335
|
at as GeneralSelect,
|
|
335
336
|
ct as Graph,
|
|
336
337
|
Ct as GraphCurrentValue,
|
|
337
|
-
|
|
338
|
+
jl as GraphDropdown,
|
|
338
339
|
Dt as GraphTooltip,
|
|
339
340
|
Vt as GraphView,
|
|
340
341
|
It as GraphViewWithData,
|
|
@@ -427,6 +428,7 @@ export {
|
|
|
427
428
|
Qt as ShowOn,
|
|
428
429
|
R as SignInRequired,
|
|
429
430
|
yt as SimpleHeadCell,
|
|
431
|
+
Ul as SimpleTooltip,
|
|
430
432
|
Bi as Skeleton,
|
|
431
433
|
ki as SkeletonStack,
|
|
432
434
|
Hi as Slider,
|
|
@@ -481,22 +483,22 @@ export {
|
|
|
481
483
|
El as TokenSymbol,
|
|
482
484
|
Rl as TokenTemplate,
|
|
483
485
|
Nl as TokensListCell,
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
486
|
+
ql as Tooltip,
|
|
487
|
+
Yl as TooltipContent,
|
|
488
|
+
Zl as TooltipProvider,
|
|
489
|
+
zl as TooltipTrigger,
|
|
490
|
+
Kl as TradingView,
|
|
491
|
+
em as Typography,
|
|
490
492
|
sl as UpdatedValue,
|
|
491
|
-
|
|
493
|
+
fm as VSpace,
|
|
492
494
|
Bt as VertLine,
|
|
493
|
-
|
|
494
|
-
|
|
495
|
+
pm as VerticalIndicator,
|
|
496
|
+
lm as VerticalList,
|
|
495
497
|
Gi as VerticalTimeline,
|
|
496
|
-
|
|
497
|
-
|
|
498
|
+
sm as WithCopy,
|
|
499
|
+
Tm as WithFilterButton,
|
|
498
500
|
$p as WithSearchLine,
|
|
499
|
-
|
|
501
|
+
cm as WithTitle,
|
|
500
502
|
x as alertBadgeVariants,
|
|
501
503
|
ar as backButtonVariants,
|
|
502
504
|
z as badgeVariants,
|
|
@@ -541,15 +543,15 @@ export {
|
|
|
541
543
|
al as tableVariants,
|
|
542
544
|
Vl as textareaVariants,
|
|
543
545
|
kl as tipCardVariants,
|
|
544
|
-
|
|
546
|
+
tm as typographyVariants,
|
|
545
547
|
Gt as useGraphAside,
|
|
546
548
|
fn as useHashTabs,
|
|
547
|
-
|
|
549
|
+
rm as useIntlTyped,
|
|
548
550
|
Fa as useMobileMenu,
|
|
549
551
|
np as useNavbarIndicator,
|
|
550
552
|
dn as useSectionTab,
|
|
551
553
|
sn as useTabControl,
|
|
552
554
|
Gl as useTheme,
|
|
553
|
-
|
|
554
|
-
|
|
555
|
+
im as verticalIndicatorVariants,
|
|
556
|
+
mm as verticalListVariants
|
|
555
557
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { X as b, Menu as N } from "lucide-react";
|
|
3
2
|
import * as c from "react";
|
|
3
|
+
import { faXmark as N, faBars as v } from "@fortawesome/free-solid-svg-icons";
|
|
4
|
+
import { FaIcon as m } from "../../icons/fa-icon.js";
|
|
4
5
|
import { cn as o } from "../../../utils/cn.js";
|
|
5
|
-
const
|
|
6
|
+
const f = c.createContext(
|
|
6
7
|
null
|
|
7
8
|
);
|
|
8
9
|
function j() {
|
|
9
|
-
const e = c.useContext(
|
|
10
|
+
const e = c.useContext(f);
|
|
10
11
|
if (!e)
|
|
11
12
|
throw new Error("useMobileMenu must be used within Header component");
|
|
12
13
|
return e;
|
|
@@ -16,34 +17,34 @@ const w = c.forwardRef(
|
|
|
16
17
|
navigation: e,
|
|
17
18
|
logo: a,
|
|
18
19
|
actions: l,
|
|
19
|
-
fixed:
|
|
20
|
-
sticky:
|
|
21
|
-
containerClassName:
|
|
20
|
+
fixed: i = !1,
|
|
21
|
+
sticky: u = !1,
|
|
22
|
+
containerClassName: p,
|
|
22
23
|
className: h,
|
|
23
|
-
children:
|
|
24
|
+
children: g,
|
|
24
25
|
mobileMenuContent: s,
|
|
25
|
-
...
|
|
26
|
-
},
|
|
27
|
-
const [t,
|
|
26
|
+
...x
|
|
27
|
+
}, b) => {
|
|
28
|
+
const [t, n] = c.useState(!1);
|
|
28
29
|
return /* @__PURE__ */ d(
|
|
29
30
|
"header",
|
|
30
31
|
{
|
|
31
|
-
ref:
|
|
32
|
+
ref: b,
|
|
32
33
|
className: o(
|
|
33
34
|
"relative w-full bg-background h-18 flex flex-nowrap items-center",
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
i && "fixed top-0 left-0 right-0 z-50",
|
|
36
|
+
u && "sticky top-0 z-50",
|
|
36
37
|
h
|
|
37
38
|
),
|
|
38
|
-
"data-fixed":
|
|
39
|
-
...
|
|
39
|
+
"data-fixed": i ? "true" : void 0,
|
|
40
|
+
...x,
|
|
40
41
|
children: [
|
|
41
42
|
/* @__PURE__ */ d(
|
|
42
43
|
"div",
|
|
43
44
|
{
|
|
44
45
|
className: o(
|
|
45
46
|
"w-full h-full flex items-stretch justify-between mx-auto px-4 sm:px-6 lg:px-8",
|
|
46
|
-
|
|
47
|
+
p
|
|
47
48
|
),
|
|
48
49
|
children: [
|
|
49
50
|
a && /* @__PURE__ */ r("div", { className: "flex items-center", children: a }),
|
|
@@ -55,9 +56,9 @@ const w = c.forwardRef(
|
|
|
55
56
|
{
|
|
56
57
|
type: "button",
|
|
57
58
|
className: "md:hidden flex items-center justify-center p-2 rounded-md hover:bg-secondary hover:text-accent-foreground focus:outline-none cursor-pointer",
|
|
58
|
-
onClick: () =>
|
|
59
|
+
onClick: () => n(!t),
|
|
59
60
|
"aria-label": t ? "Close menu" : "Open menu",
|
|
60
|
-
children: t ? /* @__PURE__ */ r(
|
|
61
|
+
children: t ? /* @__PURE__ */ r(m, { icon: N, className: "size-6" }) : /* @__PURE__ */ r(m, { icon: v, className: "size-6" })
|
|
61
62
|
}
|
|
62
63
|
)
|
|
63
64
|
] })
|
|
@@ -65,9 +66,9 @@ const w = c.forwardRef(
|
|
|
65
66
|
}
|
|
66
67
|
),
|
|
67
68
|
t && (e || s || l) && /* @__PURE__ */ r(
|
|
68
|
-
|
|
69
|
+
f.Provider,
|
|
69
70
|
{
|
|
70
|
-
value: { closeMobileMenu: () =>
|
|
71
|
+
value: { closeMobileMenu: () => n(!1) },
|
|
71
72
|
children: /* @__PURE__ */ r("div", { className: "absolute top-full left-0 right-0 bg-background border-b border-border md:hidden z-40 shadow-lg", children: /* @__PURE__ */ d("div", { className: "flex flex-col px-4 sm:px-6 py-4 space-y-2", children: [
|
|
72
73
|
s || e,
|
|
73
74
|
l && /* @__PURE__ */ r(
|