@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.
Files changed (151) hide show
  1. package/dist/cjs/components/accordion/accordion.cjs +1 -1
  2. package/dist/cjs/components/alert-badge/alert-badge.cjs +1 -1
  3. package/dist/cjs/components/apy/apy.cjs +1 -1
  4. package/dist/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
  5. package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
  6. package/dist/cjs/components/breadcrumbs/breadcrumbs.cjs +1 -1
  7. package/dist/cjs/components/button-checkbox/button-checkbox.cjs +1 -1
  8. package/dist/cjs/components/buttons/back-button/back-button.cjs +1 -1
  9. package/dist/cjs/components/buttons/copy-button/copy-button.cjs +1 -1
  10. package/dist/cjs/components/buttons/external-button/external-button.cjs +1 -1
  11. package/dist/cjs/components/buttons/filter-button/filter-button.cjs +1 -1
  12. package/dist/cjs/components/cards/expandable-call/expandable-call.cjs +1 -1
  13. package/dist/cjs/components/cards/expandable-card/expandable-card.cjs +1 -1
  14. package/dist/cjs/components/carousel/carousel.cjs +3 -3
  15. package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
  16. package/dist/cjs/components/checkbox/checkbox.cjs +1 -1
  17. package/dist/cjs/components/checkbox-item/checkbox-item.cjs +1 -1
  18. package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
  19. package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
  20. package/dist/cjs/components/confirm-menu/confirm-menu.cjs +1 -1
  21. package/dist/cjs/components/currency-button/currency-button.cjs +1 -1
  22. package/dist/cjs/components/detailed-apy/detailed-apy.cjs +1 -1
  23. package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
  24. package/dist/cjs/components/dialog/dialog-content.cjs +1 -1
  25. package/dist/cjs/components/dropdown-label/dropdown-label.cjs +1 -1
  26. package/dist/cjs/components/dropdown-menu/dropdown-menu-checkbox-item.cjs +1 -1
  27. package/dist/cjs/components/dropdown-menu/dropdown-menu-content.cjs +1 -1
  28. package/dist/cjs/components/dropdown-menu/dropdown-menu-radio-item.cjs +1 -1
  29. package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-content.cjs +1 -1
  30. package/dist/cjs/components/dropdown-menu/dropdown-menu-sub-trigger.cjs +1 -1
  31. package/dist/cjs/components/edit-input/edit-input.cjs +1 -1
  32. package/dist/cjs/components/explorer-links-dropdown/explorer-links-dropdown.cjs +1 -1
  33. package/dist/cjs/components/filter/filter-checkbox-item.cjs +1 -1
  34. package/dist/cjs/components/filter/filter-chip.cjs +1 -1
  35. package/dist/cjs/components/filter/filter-radio-item.cjs +1 -1
  36. package/dist/cjs/components/head-cell/head-cell.cjs +1 -1
  37. package/dist/cjs/components/help-tip/help-tip.cjs +1 -1
  38. package/dist/cjs/components/horizontal-indicator/horizontal-indicator.cjs +1 -1
  39. package/dist/cjs/components/icons/fa-icon.cjs +1 -0
  40. package/dist/cjs/components/icons/index.cjs +1 -0
  41. package/dist/cjs/components/index.cjs +1 -1
  42. package/dist/cjs/components/layout/header/header.cjs +1 -1
  43. package/dist/cjs/components/legal-agreement/legal-agreement-dialog.cjs +1 -1
  44. package/dist/cjs/components/network-icon/network-icon.cjs +1 -1
  45. package/dist/cjs/components/pool-apy-tooltip/pool-apy-tooltip.cjs +1 -1
  46. package/dist/cjs/components/radio-group/radio-group.cjs +1 -1
  47. package/dist/cjs/components/search-bar/search-bar.cjs +1 -1
  48. package/dist/cjs/components/search-line/search-line.cjs +1 -1
  49. package/dist/cjs/components/select/select.cjs +1 -1
  50. package/dist/cjs/components/short-string/short-string.cjs +1 -1
  51. package/dist/cjs/components/signatures/vertical-timeline.cjs +1 -1
  52. package/dist/cjs/components/smart-number-input/smart-number-input.cjs +1 -1
  53. package/dist/cjs/components/spinner/spinner.cjs +1 -1
  54. package/dist/cjs/components/stat-badge/stat-badge.cjs +1 -1
  55. package/dist/cjs/components/stepper/stepper.cjs +1 -1
  56. package/dist/cjs/components/table/edit-button.cjs +1 -1
  57. package/dist/cjs/components/table/editable-grid-table.cjs +1 -1
  58. package/dist/cjs/components/table/sortable-head-cell.cjs +1 -1
  59. package/dist/cjs/components/table/table.cjs +1 -1
  60. package/dist/cjs/components/token-symbol/token-symbol.cjs +1 -1
  61. package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
  62. package/dist/cjs/components/tooltip/index.cjs +1 -1
  63. package/dist/cjs/components/tooltip/simple-tooltip.cjs +1 -0
  64. package/dist/cjs/components/trading-view/graph-dropdown.cjs +1 -1
  65. package/dist/cjs/components/vertical-indicator/vertical-indicator.cjs +1 -1
  66. package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
  67. package/dist/cjs/index.cjs +1 -1
  68. package/dist/esm/components/accordion/accordion.js +24 -18
  69. package/dist/esm/components/alert-badge/alert-badge.js +74 -60
  70. package/dist/esm/components/apy/apy.js +3 -2
  71. package/dist/esm/components/assets-list-cell/assets-list-cell.js +31 -30
  72. package/dist/esm/components/block-sync/block-sync.js +6 -3
  73. package/dist/esm/components/breadcrumbs/breadcrumbs.js +18 -12
  74. package/dist/esm/components/button-checkbox/button-checkbox.js +28 -21
  75. package/dist/esm/components/buttons/back-button/back-button.js +10 -9
  76. package/dist/esm/components/buttons/copy-button/copy-button.js +28 -20
  77. package/dist/esm/components/buttons/external-button/external-button.js +22 -10
  78. package/dist/esm/components/buttons/filter-button/filter-button.js +12 -12
  79. package/dist/esm/components/cards/expandable-call/expandable-call.js +11 -9
  80. package/dist/esm/components/cards/expandable-card/expandable-card.js +20 -18
  81. package/dist/esm/components/carousel/carousel.js +30 -29
  82. package/dist/esm/components/checkbox/checkbox-labeled.js +4 -1
  83. package/dist/esm/components/checkbox/checkbox.js +20 -19
  84. package/dist/esm/components/checkbox-item/checkbox-item.js +7 -6
  85. package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +4 -1
  86. package/dist/esm/components/compound-apy/compound-apy.js +73 -106
  87. package/dist/esm/components/confirm-menu/confirm-menu.js +13 -12
  88. package/dist/esm/components/currency-button/currency-button.js +11 -11
  89. package/dist/esm/components/detailed-apy/detailed-apy.js +14 -13
  90. package/dist/esm/components/detailed-page-title/detailed-page-title.js +23 -21
  91. package/dist/esm/components/dialog/dialog-content.js +11 -10
  92. package/dist/esm/components/dropdown-label/dropdown-label.js +16 -14
  93. package/dist/esm/components/dropdown-menu/dropdown-menu-checkbox-item.js +14 -13
  94. package/dist/esm/components/dropdown-menu/dropdown-menu-content.js +4 -4
  95. package/dist/esm/components/dropdown-menu/dropdown-menu-radio-item.js +10 -9
  96. package/dist/esm/components/dropdown-menu/dropdown-menu-sub-content.js +1 -1
  97. package/dist/esm/components/dropdown-menu/dropdown-menu-sub-trigger.js +6 -6
  98. package/dist/esm/components/edit-input/edit-input.js +46 -37
  99. package/dist/esm/components/explorer-links-dropdown/explorer-links-dropdown.js +7 -7
  100. package/dist/esm/components/filter/filter-checkbox-item.js +9 -8
  101. package/dist/esm/components/filter/filter-chip.js +16 -15
  102. package/dist/esm/components/filter/filter-radio-item.js +9 -8
  103. package/dist/esm/components/head-cell/head-cell.js +33 -31
  104. package/dist/esm/components/help-tip/help-tip.js +2 -1
  105. package/dist/esm/components/horizontal-indicator/horizontal-indicator.js +10 -9
  106. package/dist/esm/components/icons/fa-icon.js +20 -0
  107. package/dist/esm/components/icons/index.js +42 -0
  108. package/dist/esm/components/index.js +31 -29
  109. package/dist/esm/components/layout/header/header.js +21 -20
  110. package/dist/esm/components/legal-agreement/legal-agreement-dialog.js +54 -46
  111. package/dist/esm/components/network-icon/network-icon.js +32 -53
  112. package/dist/esm/components/pool-apy-tooltip/pool-apy-tooltip.js +3 -2
  113. package/dist/esm/components/radio-group/radio-group.js +21 -14
  114. package/dist/esm/components/search-bar/search-bar.js +20 -19
  115. package/dist/esm/components/search-line/search-line.js +42 -34
  116. package/dist/esm/components/select/select.js +46 -39
  117. package/dist/esm/components/short-string/short-string.js +6 -5
  118. package/dist/esm/components/signatures/vertical-timeline.js +24 -23
  119. package/dist/esm/components/smart-number-input/smart-number-input.js +52 -51
  120. package/dist/esm/components/spinner/spinner.js +20 -19
  121. package/dist/esm/components/stat-badge/stat-badge.js +1 -0
  122. package/dist/esm/components/stepper/stepper.js +25 -24
  123. package/dist/esm/components/table/edit-button.js +8 -8
  124. package/dist/esm/components/table/editable-grid-table.js +4 -4
  125. package/dist/esm/components/table/sortable-head-cell.js +12 -11
  126. package/dist/esm/components/table/table.js +41 -38
  127. package/dist/esm/components/token-symbol/token-symbol.js +1 -0
  128. package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +22 -21
  129. package/dist/esm/components/tooltip/index.js +6 -4
  130. package/dist/esm/components/tooltip/simple-tooltip.js +128 -0
  131. package/dist/esm/components/trading-view/graph-dropdown.js +45 -37
  132. package/dist/esm/components/vertical-indicator/vertical-indicator.js +32 -25
  133. package/dist/esm/components/with-copy/with-copy.js +30 -21
  134. package/dist/esm/index.js +198 -196
  135. package/dist/globals.css +1 -1
  136. package/dist/types/components/alert-badge/alert-badge.d.ts +7 -1
  137. package/dist/types/components/buttons/button/button.d.ts +1 -1
  138. package/dist/types/components/card-grid/card-grid.d.ts +1 -1
  139. package/dist/types/components/colored-text/colored-text.d.ts +1 -1
  140. package/dist/types/components/dialog/dialog-container.d.ts +3 -3
  141. package/dist/types/components/edit-input/edit-input.d.ts +1 -1
  142. package/dist/types/components/icons/fa-icon.d.ts +2 -0
  143. package/dist/types/components/icons/index.d.ts +2 -0
  144. package/dist/types/components/input/input.d.ts +1 -1
  145. package/dist/types/components/network-icon/network-icon.d.ts +3 -3
  146. package/dist/types/components/segmented-control/segmented-control.d.ts +1 -1
  147. package/dist/types/components/skeleton/skeleton.d.ts +3 -3
  148. package/dist/types/components/status-dot/status-dot.d.ts +1 -1
  149. package/dist/types/components/tooltip/index.d.ts +1 -0
  150. package/dist/types/components/tooltip/simple-tooltip.d.ts +84 -0
  151. package/package.json +5 -2
@@ -1,8 +1,8 @@
1
1
  import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
- import { ExternalLink as O } from "lucide-react";
3
- import { useMemo as $ } from "react";
2
+ import { IconExternal as z } from "@gearbox-protocol/static";
3
+ import { useMemo as O } from "react";
4
4
  import "../buttons/back-button/back-button.js";
5
- import { Button as B } from "../buttons/button/button.js";
5
+ import { Button as $ } from "../buttons/button/button.js";
6
6
  import "../buttons/copy-button/copy-button.js";
7
7
  import "../buttons/external-button/external-button.js";
8
8
  import "../buttons/filter-button/filter-button.js";
@@ -11,22 +11,23 @@ import "@gearbox-protocol/sdk";
11
11
  import { cn as g } from "../../utils/cn.js";
12
12
  import "sonner";
13
13
  import "../buttons/tab-button/tab-button.js";
14
- import { TokenIcon as k } from "../token-icon/token-icon.js";
15
- import { TooltipProvider as E, Tooltip as y, TooltipTrigger as b, TooltipContent as w } from "../tooltip/tooltip.js";
16
- function H(e) {
14
+ import { TokenIcon as C } from "../token-icon/token-icon.js";
15
+ import "../tooltip/simple-tooltip.js";
16
+ import { TooltipProvider as B, Tooltip as y, TooltipTrigger as b, TooltipContent as w } from "../tooltip/tooltip.js";
17
+ function E(e) {
17
18
  return "balances" in e && e.balances !== void 0;
18
19
  }
19
- function P({
20
+ function H({
20
21
  assetAddress: e,
21
22
  symbol: o,
22
23
  iconSymbol: s,
23
24
  comment: n,
24
- explorerUrl: h,
25
+ explorerUrl: a,
25
26
  iconSize: p = 24,
26
27
  className: f
27
28
  }) {
28
29
  return /* @__PURE__ */ i("div", { className: g("flex items-center gap-3", f), children: [
29
- /* @__PURE__ */ t(k, { symbol: s ?? o, size: p }),
30
+ /* @__PURE__ */ t(C, { symbol: s ?? o, size: p }),
30
31
  /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
31
32
  /* @__PURE__ */ t("div", { className: "font-medium", children: o }),
32
33
  n && /* @__PURE__ */ i("div", { className: "text-md text-muted-foreground", children: [
@@ -34,42 +35,42 @@ function P({
34
35
  n,
35
36
  ")"
36
37
  ] }),
37
- h && /* @__PURE__ */ t(
38
- B,
38
+ a && /* @__PURE__ */ t(
39
+ $,
39
40
  {
40
41
  variant: "ghost",
41
42
  size: "sm",
42
43
  className: "text-muted-foreground hover:text-foreground p-0 h-auto",
43
- onClick: () => window.open(`${h}/address/${e}`, "_blank"),
44
- children: /* @__PURE__ */ t(O, { className: "h-3 w-3" })
44
+ onClick: () => window.open(`${a}/address/${e}`, "_blank"),
45
+ children: /* @__PURE__ */ t(z, { size: 12, className: "size-3" })
45
46
  }
46
47
  )
47
48
  ] })
48
49
  ] });
49
50
  }
50
- function R({
51
+ function P({
51
52
  balances: e,
52
53
  tokensList: o,
53
54
  maxAssets: s = 3,
54
55
  iconSize: n = 24,
55
- options: h,
56
+ options: a,
56
57
  className: p
57
58
  }) {
58
59
  const {
59
60
  mode: f = "default",
60
- showIconTooltip: C = !0,
61
- otherTooltip: N,
61
+ showIconTooltip: N = !0,
62
+ otherTooltip: k,
62
63
  onOtherClick: T
63
- } = h || {}, x = f === "cascade", [j, I, M, A] = $(() => {
64
- const r = e, l = r.slice(0, s), c = r.slice(s), a = c.map((m) => {
64
+ } = a || {}, x = f === "cascade", [I, j, M, A] = O(() => {
65
+ const r = e, l = r.slice(0, s), c = r.slice(s), h = c.map((m) => {
65
66
  const u = typeof m == "string" ? m : m.token;
66
67
  return o[u]?.title || o[u]?.symbol || "unknown";
67
68
  }).join(", "), d = r.length > s;
68
- return [l, c, a, d];
69
+ return [l, c, h, d];
69
70
  }, [e, s, o]);
70
- return /* @__PURE__ */ t(E, { children: /* @__PURE__ */ i("div", { className: g("relative inline-flex items-center", p), children: [
71
- j.map((r, l, c) => {
72
- const a = typeof r == "string" ? r : r.token, d = o[a], m = l === c.length - 1, u = x ? c.length - l : void 0, v = /* @__PURE__ */ t(k, { symbol: d?.symbol, size: n });
71
+ return /* @__PURE__ */ t(B, { children: /* @__PURE__ */ i("div", { className: g("relative inline-flex items-center", p), children: [
72
+ I.map((r, l, c) => {
73
+ const h = typeof r == "string" ? r : r.token, d = o[h], m = l === c.length - 1, u = x ? c.length - l : void 0, v = /* @__PURE__ */ t(C, { symbol: d?.symbol, size: n });
73
74
  return /* @__PURE__ */ t(
74
75
  "div",
75
76
  {
@@ -78,12 +79,12 @@ function R({
78
79
  zIndex: u,
79
80
  marginRight: m ? 0 : x ? -Math.round(n * 0.5) : 4
80
81
  },
81
- children: C ? /* @__PURE__ */ i(y, { children: [
82
+ children: N ? /* @__PURE__ */ i(y, { children: [
82
83
  /* @__PURE__ */ t(b, { asChild: !0, children: /* @__PURE__ */ t("span", { children: v }) }),
83
84
  /* @__PURE__ */ t(w, { children: d?.title || d?.symbol || "unknown" })
84
85
  ] }) : v
85
86
  },
86
- a ?? l
87
+ h ?? l
87
88
  );
88
89
  }),
89
90
  A && /* @__PURE__ */ i(y, { children: [
@@ -107,17 +108,17 @@ function R({
107
108
  },
108
109
  children: /* @__PURE__ */ i("span", { className: "text-[10px]! leading-[10px] font-medium", children: [
109
110
  "+",
110
- I.length
111
+ j.length
111
112
  ] })
112
113
  }
113
114
  ) }),
114
- /* @__PURE__ */ t(w, { children: N || M })
115
+ /* @__PURE__ */ t(w, { children: k || M })
115
116
  ] })
116
117
  ] }) });
117
118
  }
118
- function Z(e) {
119
- return H(e) ? /* @__PURE__ */ t(R, { ...e }) : /* @__PURE__ */ t(P, { ...e });
119
+ function U(e) {
120
+ return E(e) ? /* @__PURE__ */ t(P, { ...e }) : /* @__PURE__ */ t(H, { ...e });
120
121
  }
121
122
  export {
122
- Z as AssetsListCell
123
+ U as AssetsListCell
123
124
  };
@@ -1,9 +1,12 @@
1
1
  import { jsx as r, jsxs as e } from "react/jsx-runtime";
2
2
  import { useState as b, useEffect as w, useMemo as E } from "react";
3
+ import "../tooltip/simple-tooltip.js";
3
4
  import { TooltipProvider as j, Tooltip as D, TooltipTrigger as U, TooltipContent as y } from "../tooltip/tooltip.js";
4
5
  import { cn as x } from "../../utils/cn.js";
5
6
  import "../accordion/accordion.js";
6
- import "lucide-react";
7
+ import "@gearbox-protocol/static";
8
+ import "@fortawesome/free-solid-svg-icons";
9
+ import "../icons/fa-icon.js";
7
10
  import "@gearbox-protocol/sdk";
8
11
  import "sonner";
9
12
  import "../alert-badge/alert-badge.js";
@@ -122,7 +125,7 @@ import "../vertical-indicator/vertical-indicator.js";
122
125
  import "../vertical-list/vertical-list.js";
123
126
  import "../with-filter-button/with-filter-button.js";
124
127
  const $ = 1e3 * 60 * 10;
125
- function Vr({
128
+ function Yr({
126
129
  blockByChain: i,
127
130
  explorerAddresses: v,
128
131
  networkById: S
@@ -189,5 +192,5 @@ function Vr({
189
192
  ] }) }) : /* @__PURE__ */ r("div", { className: "select-none", children: d() });
190
193
  }
191
194
  export {
192
- Vr as BlockSync
195
+ Yr as BlockSync
193
196
  };
@@ -1,6 +1,6 @@
1
- import { jsx as e, jsxs as h } from "react/jsx-runtime";
2
- import { ChevronRight as g } from "lucide-react";
3
- import { Link as x } from "react-router-dom";
1
+ import { jsx as e, jsxs as x } from "react/jsx-runtime";
2
+ import { IconExpand as b } from "@gearbox-protocol/static";
3
+ import { Link as g } from "react-router-dom";
4
4
  import "react";
5
5
  import "@gearbox-protocol/sdk";
6
6
  import { cn as c } from "../../utils/cn.js";
@@ -21,8 +21,8 @@ function j({
21
21
  "aria-label": "breadcrumb",
22
22
  className: c("flex items-center gap-2", m),
23
23
  children: /* @__PURE__ */ e("ol", { className: "flex items-center gap-2 flex-wrap", children: o.map((r, t) => {
24
- const s = t === o.length - 1, l = f === t, n = i?.(r, t) ?? !1, a = d && !n, p = r.href || r.step || `${r.label}-${t}`;
25
- return /* @__PURE__ */ h("li", { className: "flex items-center gap-2", children: [
24
+ const s = t === o.length - 1, n = f === t, l = i?.(r, t) ?? !1, a = d && !l, p = r.href || r.step || `${r.label}-${t}`;
25
+ return /* @__PURE__ */ x("li", { className: "flex items-center gap-2", children: [
26
26
  d ? (
27
27
  // Wizard mode: use button
28
28
  /* @__PURE__ */ e(
@@ -30,13 +30,13 @@ function j({
30
30
  {
31
31
  type: "button",
32
32
  onClick: () => a && u(r, t),
33
- disabled: n,
33
+ disabled: l,
34
34
  className: c(
35
35
  "text-sm transition-colors",
36
- l ? "text-foreground font-medium" : "text-muted-foreground",
37
- a && !l && "hover:text-foreground cursor-pointer",
38
- n && "opacity-50 cursor-not-allowed",
39
- !a && !l && "cursor-default"
36
+ n ? "text-foreground font-medium" : "text-muted-foreground",
37
+ a && !n && "hover:text-foreground cursor-pointer",
38
+ l && "opacity-50 cursor-not-allowed",
39
+ !a && !n && "cursor-default"
40
40
  ),
41
41
  children: r.label
42
42
  }
@@ -44,7 +44,7 @@ function j({
44
44
  ) : r.href && !s ? (
45
45
  // Navigation mode with href
46
46
  /* @__PURE__ */ e(
47
- x,
47
+ g,
48
48
  {
49
49
  to: r.href,
50
50
  className: "text-sm text-muted-foreground hover:text-foreground transition-colors",
@@ -64,7 +64,13 @@ function j({
64
64
  }
65
65
  )
66
66
  ),
67
- !s && /* @__PURE__ */ e(g, { className: "h-4 w-4 text-muted-foreground" })
67
+ !s && /* @__PURE__ */ e(
68
+ b,
69
+ {
70
+ size: 10,
71
+ className: "size-4 text-muted-foreground"
72
+ }
73
+ )
68
74
  ] }, p);
69
75
  }) })
70
76
  }
@@ -1,53 +1,60 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { Check as a } from "lucide-react";
2
+ import { faCheck as c } from "@fortawesome/free-solid-svg-icons";
3
+ import { FaIcon as l } from "../icons/fa-icon.js";
3
4
  import "react";
4
5
  import "@gearbox-protocol/sdk";
5
- import { cn as c } from "../../utils/cn.js";
6
+ import { cn as m } from "../../utils/cn.js";
6
7
  import "sonner";
7
- const l = {
8
+ const x = {
8
9
  sm: "px-2 py-1 text-xs gap-1",
9
10
  md: "px-3 py-1.5 text-sm gap-1.5",
10
11
  lg: "px-4 py-2 text-base gap-2"
11
- }, x = {
12
- sm: 12,
13
- md: 14,
14
- lg: 16
15
12
  };
16
- function h({
17
- checked: r = !1,
13
+ function C({
14
+ checked: o = !1,
18
15
  onChange: n,
19
16
  children: s,
20
- disabled: o = !1,
21
- size: t = "md",
22
- className: m
17
+ disabled: t = !1,
18
+ size: r = "md",
19
+ className: a
23
20
  }) {
24
21
  return /* @__PURE__ */ i(
25
22
  "label",
26
23
  {
27
- className: c(
24
+ className: m(
28
25
  "inline-flex items-center rounded-md border font-medium transition-colors cursor-pointer",
29
- l[t],
30
- r ? "bg-primary text-primary-foreground border-primary" : "bg-background text-foreground border-input hover:bg-accent",
31
- o && "opacity-50 cursor-not-allowed",
32
- m
26
+ x[r],
27
+ o ? "bg-primary text-primary-foreground border-primary" : "bg-background text-foreground border-input hover:bg-accent",
28
+ t && "opacity-50 cursor-not-allowed",
29
+ a
33
30
  ),
34
31
  children: [
35
32
  /* @__PURE__ */ e(
36
33
  "input",
37
34
  {
38
35
  type: "checkbox",
39
- checked: r,
36
+ checked: o,
40
37
  onChange: (p) => n?.(p.target.checked),
41
- disabled: o,
38
+ disabled: t,
42
39
  className: "sr-only"
43
40
  }
44
41
  ),
45
- r && /* @__PURE__ */ e(a, { size: x[t] }),
42
+ o && /* @__PURE__ */ e(
43
+ l,
44
+ {
45
+ icon: c,
46
+ className: m(
47
+ r === "sm" && "size-3",
48
+ r === "md" && "size-3.5",
49
+ r === "lg" && "size-4"
50
+ )
51
+ }
52
+ ),
46
53
  s
47
54
  ]
48
55
  }
49
56
  );
50
57
  }
51
58
  export {
52
- h as ButtonCheckbox
59
+ C as ButtonCheckbox
53
60
  };
@@ -1,11 +1,12 @@
1
1
  import { jsxs as s, jsx as a } from "react/jsx-runtime";
2
2
  import { cva as f } from "class-variance-authority";
3
- import { ArrowLeft as u } from "lucide-react";
3
+ import { faArrowLeft as u } from "@fortawesome/free-solid-svg-icons";
4
+ import { FaIcon as c } from "../../icons/fa-icon.js";
4
5
  import "react";
5
6
  import "@gearbox-protocol/sdk";
6
7
  import { cn as x } from "../../../utils/cn.js";
7
8
  import "sonner";
8
- const c = f("flex items-center transition-colors", {
9
+ const l = f("flex items-center transition-colors", {
9
10
  variants: {
10
11
  variant: {
11
12
  default: "text-muted-foreground hover:text-foreground",
@@ -23,7 +24,7 @@ const c = f("flex items-center transition-colors", {
23
24
  size: "default"
24
25
  }
25
26
  });
26
- function l({
27
+ function p({
27
28
  href: t,
28
29
  className: r,
29
30
  onClick: e,
@@ -31,29 +32,29 @@ function l({
31
32
  }) {
32
33
  return /* @__PURE__ */ a("a", { href: t, className: r, onClick: e, children: o });
33
34
  }
34
- function y({
35
+ function b({
35
36
  href: t,
36
37
  text: r,
37
38
  onClick: e,
38
39
  className: o,
39
40
  variant: i,
40
41
  size: n,
41
- LinkComponent: m = l
42
+ LinkComponent: m = p
42
43
  }) {
43
44
  return /* @__PURE__ */ s(
44
45
  m,
45
46
  {
46
47
  href: t,
47
- className: x(c({ variant: i, size: n, className: o })),
48
+ className: x(l({ variant: i, size: n, className: o })),
48
49
  onClick: e,
49
50
  children: [
50
- /* @__PURE__ */ a(u, { className: "mr-2 h-4 w-4" }),
51
+ /* @__PURE__ */ a(c, { icon: u, className: "mr-2 size-4" }),
51
52
  r || "Back"
52
53
  ]
53
54
  }
54
55
  );
55
56
  }
56
57
  export {
57
- y as BackButton,
58
- c as backButtonVariants
58
+ b as BackButton,
59
+ l as backButtonVariants
59
60
  };
@@ -1,56 +1,64 @@
1
- import { jsxs as y, jsx as e } from "react/jsx-runtime";
2
- import { Check as h, Copy as C } from "lucide-react";
1
+ import { jsxs as y, jsx as t } from "react/jsx-runtime";
2
+ import { IconCopy as h } from "@gearbox-protocol/static";
3
3
  import * as r from "react";
4
- import { Button as x } from "../button/button.js";
4
+ import { Button as C } from "../button/button.js";
5
+ import { faCheck as x } from "@fortawesome/free-solid-svg-icons";
6
+ import { FaIcon as w } from "../../icons/fa-icon.js";
5
7
  import "@gearbox-protocol/sdk";
6
8
  import { cn as a } from "../../../utils/cn.js";
7
9
  import "sonner";
8
- const w = {
10
+ const N = {
9
11
  3: "h-3 w-3",
10
12
  "3.5": "h-3.5 w-3.5",
11
13
  4: "h-4 w-4",
12
14
  5: "h-5 w-5",
13
15
  6: "h-6 w-6"
14
- }, N = r.forwardRef(
15
- ({ text: c, className: n, iconSize: l = "3.5", successDuration: p = 1500, ...m }, u) => {
16
- const [t, s] = r.useState(!1), o = r.useRef(null), f = async () => {
16
+ }, b = {
17
+ 3: 12,
18
+ "3.5": 14,
19
+ 4: 16,
20
+ 5: 20,
21
+ 6: 24
22
+ }, j = r.forwardRef(
23
+ ({ text: n, className: l, iconSize: i = "3.5", successDuration: p = 1500, ...m }, u) => {
24
+ const [e, s] = r.useState(!1), o = r.useRef(null), f = async () => {
17
25
  try {
18
- await navigator.clipboard.writeText(c), o.current && clearTimeout(o.current), s(!0), o.current = setTimeout(() => {
26
+ await navigator.clipboard.writeText(n), o.current && clearTimeout(o.current), s(!0), o.current = setTimeout(() => {
19
27
  s(!1);
20
28
  }, p);
21
29
  } catch (d) {
22
30
  console.error("Failed to copy:", d);
23
31
  }
24
- }, i = w[l];
32
+ }, c = N[i];
25
33
  return /* @__PURE__ */ y(
26
- x,
34
+ C,
27
35
  {
28
36
  ref: u,
29
37
  variant: "text",
30
38
  size: "auto",
31
- className: a("p-1! border-0! relative", n),
39
+ className: a("p-1! border-0! relative", l),
32
40
  onClick: f,
33
- title: t ? "Copied!" : "Copy to clipboard",
41
+ title: e ? "Copied!" : "Copy to clipboard",
34
42
  ...m,
35
43
  children: [
36
- /* @__PURE__ */ e(
44
+ /* @__PURE__ */ t(
37
45
  "span",
38
46
  {
39
47
  className: a(
40
48
  "absolute inset-0 flex items-center justify-center transition-all duration-200",
41
- t ? "opacity-100 scale-100 text-green-500" : "opacity-0 scale-50 text-green-500"
49
+ e ? "opacity-100 scale-100 text-green-500" : "opacity-0 scale-50 text-green-500"
42
50
  ),
43
- children: /* @__PURE__ */ e(h, { className: i })
51
+ children: /* @__PURE__ */ t(w, { icon: x, className: c })
44
52
  }
45
53
  ),
46
- /* @__PURE__ */ e(
54
+ /* @__PURE__ */ t(
47
55
  "span",
48
56
  {
49
57
  className: a(
50
58
  "flex items-center justify-center transition-all duration-200",
51
- t ? "opacity-0 scale-50" : "opacity-100 scale-100"
59
+ e ? "opacity-0 scale-50" : "opacity-100 scale-100"
52
60
  ),
53
- children: /* @__PURE__ */ e(C, { className: i })
61
+ children: /* @__PURE__ */ t(h, { size: b[i], className: c })
54
62
  }
55
63
  )
56
64
  ]
@@ -58,7 +66,7 @@ const w = {
58
66
  );
59
67
  }
60
68
  );
61
- N.displayName = "CopyButton";
69
+ j.displayName = "CopyButton";
62
70
  export {
63
- N as CopyButton
71
+ j as CopyButton
64
72
  };
@@ -1,9 +1,9 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { ExternalLink as m } from "lucide-react";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { IconExternal as m } from "@gearbox-protocol/static";
3
3
  import * as p from "react";
4
4
  import { Button as s } from "../button/button.js";
5
5
  import "@gearbox-protocol/sdk";
6
- import { cn as t } from "../../../utils/cn.js";
6
+ import { cn as r } from "../../../utils/cn.js";
7
7
  import "sonner";
8
8
  const c = {
9
9
  3: "!h-3 !w-3",
@@ -11,21 +11,33 @@ const c = {
11
11
  4: "!h-4 !w-4",
12
12
  5: "!h-5 !w-5",
13
13
  6: "!h-6 !w-6"
14
- }, l = p.forwardRef(
15
- ({ url: r, className: n, iconSize: a = "3.5", ...e }, i) => /* @__PURE__ */ o(
14
+ }, l = {
15
+ 3: 12,
16
+ "3.5": 14,
17
+ 4: 16,
18
+ 5: 20,
19
+ 6: 24
20
+ }, w = p.forwardRef(
21
+ ({ url: n, className: a, iconSize: o = "3.5", ...e }, i) => /* @__PURE__ */ t(
16
22
  s,
17
23
  {
18
24
  ref: i,
19
25
  variant: "text",
20
26
  size: "auto",
21
- className: t("p-1! border-0!", n),
22
- onClick: () => window.open(r, "_blank"),
27
+ className: r("p-1! border-0!", a),
28
+ onClick: () => window.open(n, "_blank"),
23
29
  ...e,
24
- children: /* @__PURE__ */ o(m, { className: t(c[a]) })
30
+ children: /* @__PURE__ */ t(
31
+ m,
32
+ {
33
+ size: l[o],
34
+ className: r(c[o])
35
+ }
36
+ )
25
37
  }
26
38
  )
27
39
  );
28
- l.displayName = "ExternalButton";
40
+ w.displayName = "ExternalButton";
29
41
  export {
30
- l as ExternalButton
42
+ w as ExternalButton
31
43
  };
@@ -1,26 +1,26 @@
1
- import { jsxs as s, jsx as f } from "react/jsx-runtime";
2
- import { Filter as n } from "lucide-react";
3
- import * as u from "react";
4
- import { Button as p } from "../button/button.js";
5
- const c = u.forwardRef(
1
+ import { jsxs as a, jsx as n } from "react/jsx-runtime";
2
+ import { IconSliderSimple as f } from "@gearbox-protocol/static";
3
+ import * as p from "react";
4
+ import { Button as u } from "../button/button.js";
5
+ const c = p.forwardRef(
6
6
  ({
7
7
  className: t,
8
8
  label: r = "Filter",
9
- showIcon: o = !0,
10
- variant: e = "outline",
9
+ showIcon: e = !0,
10
+ variant: o = "outline",
11
11
  size: i = "default",
12
12
  children: m,
13
13
  ...l
14
- }, a) => /* @__PURE__ */ s(
15
- p,
14
+ }, s) => /* @__PURE__ */ a(
15
+ u,
16
16
  {
17
- ref: a,
18
- variant: e,
17
+ ref: s,
18
+ variant: o,
19
19
  size: i,
20
20
  className: t,
21
21
  ...l,
22
22
  children: [
23
- o && /* @__PURE__ */ f(n, { className: "h-4 w-4" }),
23
+ e && /* @__PURE__ */ n(f, { size: 16, className: "size-4" }),
24
24
  m || r
25
25
  ]
26
26
  }
@@ -1,16 +1,17 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
- import { ChevronDown as m } from "lucide-react";
3
- import * as d from "react";
2
+ import * as m from "react";
3
+ import { faCaretDown as d } from "@fortawesome/free-solid-svg-icons";
4
+ import { FaIcon as c } from "../../icons/fa-icon.js";
4
5
  import "@gearbox-protocol/sdk";
5
- import { cn as c } from "../../../utils/cn.js";
6
+ import { cn as p } from "../../../utils/cn.js";
6
7
  import "sonner";
7
- function g({
8
+ function b({
8
9
  header: a,
9
10
  children: s,
10
11
  index: n,
11
12
  isExpandable: t = !0
12
13
  }) {
13
- const [r, i] = d.useState(!1);
14
+ const [r, i] = m.useState(!1);
14
15
  return /* @__PURE__ */ e("div", { className: "rounded bg-gray-900/50", children: [
15
16
  /* @__PURE__ */ e(
16
17
  "div",
@@ -26,10 +27,11 @@ function g({
26
27
  ] }),
27
28
  a,
28
29
  /* @__PURE__ */ o(
29
- m,
30
+ c,
30
31
  {
31
- className: c(
32
- "ml-auto h-4 w-4 text-muted-foreground",
32
+ icon: d,
33
+ className: p(
34
+ "ml-auto size-4 text-muted-foreground",
33
35
  r ? "rotate-180" : "",
34
36
  "transition-transform duration-200 ease-in-out"
35
37
  )
@@ -42,5 +44,5 @@ function g({
42
44
  ] });
43
45
  }
44
46
  export {
45
- g as ExpandablCall
47
+ b as ExpandablCall
46
48
  };