@gearbox-protocol/ui-kit 4.0.0-next.29 → 4.0.0-next.30

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.
@@ -1,4 +1,4 @@
1
- import { jsx as t, jsxs as m } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
2
  import { useState as I } from "react";
3
3
  import { Stack as x } from "../stack/stack.js";
4
4
  import { useTitleText as y } from "../text/use-title-text.js";
@@ -17,20 +17,18 @@ function ee({
17
17
  value: n,
18
18
  onChange: s,
19
19
  max: r,
20
- min: l = 1,
20
+ min: m = 1,
21
21
  title: c,
22
22
  hint: d,
23
23
  reset: a,
24
24
  colorIntervals: w,
25
25
  colorIntervalLabel: N,
26
- size: S = "sm"
26
+ size: E = "sm"
27
27
  }) {
28
- const E = B(), C = y(), p = w ?? [
29
- { start: l, end: r, color: "additionalSuccess" }
30
- ], L = N ?? (p.length > 0 ? E.formatMessage({
28
+ const S = B(), C = y(), p = w ?? [], L = N ?? (p.length > 0 ? S.formatMessage({
31
29
  messageId: "components.leverageInput.available"
32
30
  }) : void 0), [M, u] = I(void 0), [f, g] = I(""), h = M ?? n, v = (e) => {
33
- s(_(e, l, r)), u(void 0);
31
+ s(_(e, m, r)), u(void 0);
34
32
  }, k = () => {
35
33
  const e = Number.parseFloat(f.replace(",", "."));
36
34
  Number.isFinite(e) && v(e);
@@ -42,13 +40,13 @@ function ee({
42
40
  return /* @__PURE__ */ t("div", { "data-testid": i.root, children: /* @__PURE__ */ t(
43
41
  D,
44
42
  {
45
- size: S,
46
- title: /* @__PURE__ */ m(x, { direction: "row", align: "center", justify: "between", gap: "sm", children: [
47
- /* @__PURE__ */ m("span", { className: "font-normal", children: [
43
+ size: E,
44
+ title: /* @__PURE__ */ l(x, { direction: "row", align: "center", justify: "between", gap: "sm", children: [
45
+ /* @__PURE__ */ l("span", { className: "font-normal", children: [
48
46
  c !== void 0 ? C(c) : /* @__PURE__ */ t(T, { messageId: "components.leverageInput.label" }),
49
47
  d ? /* @__PURE__ */ t("span", { className: "text-muted-foreground ml-1", children: d }) : null
50
48
  ] }),
51
- /* @__PURE__ */ m(x, { direction: "row", align: "center", gap: "sm", children: [
49
+ /* @__PURE__ */ l(x, { direction: "row", align: "center", gap: "sm", children: [
52
50
  /* @__PURE__ */ t("div", { className: "flex w-[90px] flex-row flex-nowrap items-center", children: /* @__PURE__ */ t(
53
51
  j,
54
52
  {
@@ -91,7 +89,7 @@ function ee({
91
89
  children: /* @__PURE__ */ t(
92
90
  F,
93
91
  {
94
- from: l * o,
92
+ from: m * o,
95
93
  to: r * o,
96
94
  precision: o,
97
95
  value: h * o,