@blofin/blofin-ui 0.7.46-beta.0 → 0.7.46-beta.10

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 (108) hide show
  1. package/dist/Badge.es.js +18 -19
  2. package/dist/Button.es.js +2 -3
  3. package/dist/Dialog.es.js +4 -5
  4. package/dist/Divider.es.js +7 -8
  5. package/dist/Drawer.es.js +13 -14
  6. package/dist/{ProTable-beea76d7.js → ProTable-a018c4f3.js} +1306 -1254
  7. package/dist/ProTable.es.js +3 -3
  8. package/dist/Slider.es.js +4 -5
  9. package/dist/blofin.css +1 -1
  10. package/dist/components/ProTable/types/index.d.ts +4 -0
  11. package/dist/components/Select/Select.d.ts +3 -0
  12. package/dist/components/Textarea/index.d.ts +1 -1
  13. package/dist/{index-8df2437b.js → index-01bcd525.js} +7 -8
  14. package/dist/{index-9c54f8de.js → index-04d96746.js} +7 -8
  15. package/dist/{index-f1136c74.js → index-05a39648.js} +7 -8
  16. package/dist/{index-89313166.js → index-0789da8f.js} +7 -8
  17. package/dist/{index-c865f42b.js → index-0b47cbae.js} +10 -11
  18. package/dist/{index-0f2dfe12.js → index-13dd92d2.js} +7 -8
  19. package/dist/{index-e9aa390e.js → index-198ff1ed.js} +7 -8
  20. package/dist/{index-a70358b1.js → index-1a643b89.js} +7 -8
  21. package/dist/{index-7c6d8809.js → index-1c4022e0.js} +7 -8
  22. package/dist/{index-f3a1d353.js → index-1e9ae8be.js} +12 -13
  23. package/dist/{index-30acc1b8.js → index-1f7ce739.js} +7 -8
  24. package/dist/{index-e649e115.js → index-229d1eba.js} +7 -8
  25. package/dist/{index-c020b742.js → index-2734849b.js} +1 -1
  26. package/dist/{index-4b7f38b4.js → index-284d3a0b.js} +7 -8
  27. package/dist/{index-af24af5b.js → index-2c7fb184.js} +7 -8
  28. package/dist/{index-56f23ee5.js → index-2d35bf3b.js} +7 -8
  29. package/dist/{index-a80a9a86.js → index-307c207d.js} +8 -9
  30. package/dist/{index-feca7a53.js → index-30e84067.js} +8 -9
  31. package/dist/{index-c4fc9b6a.js → index-31c7c322.js} +11 -12
  32. package/dist/{index-e0890ee4.js → index-31f880a4.js} +7 -8
  33. package/dist/{index-12a36c78.js → index-32acbd81.js} +7 -8
  34. package/dist/{index-124ace7c.js → index-342d1802.js} +7 -8
  35. package/dist/{index-79039934.js → index-39c6de05.js} +8 -9
  36. package/dist/{index-6e7c45e0.js → index-3b3080fd.js} +7 -8
  37. package/dist/{index-78f9d3f7.js → index-42a66939.js} +7 -8
  38. package/dist/{index-928f98bc.js → index-43b08d56.js} +7 -8
  39. package/dist/{index-7a169814.js → index-4538df53.js} +7 -8
  40. package/dist/{index-98eb7a26.js → index-45bb4ed7.js} +14 -15
  41. package/dist/{index-ca7b3d13.js → index-45f05f0e.js} +1 -1
  42. package/dist/{index-662eb2e7.js → index-4791c48f.js} +7 -8
  43. package/dist/{index-ad3d8543.js → index-4b72c93c.js} +7 -8
  44. package/dist/{index-82c48bc4.js → index-4b911c6e.js} +7 -8
  45. package/dist/{index-d50b48c8.js → index-57247252.js} +7 -8
  46. package/dist/{index-0f27efe0.js → index-5aea07c2.js} +8 -9
  47. package/dist/{index-c9b46f71.js → index-5b5af887.js} +7 -8
  48. package/dist/{index-4f5f7586.js → index-5d090023.js} +7 -8
  49. package/dist/{index-ea74d4fd.js → index-5e1d327b.js} +14 -15
  50. package/dist/{index-32e6fe89.js → index-5ed66bee.js} +7 -8
  51. package/dist/{index-c1764594.js → index-66cdb868.js} +11 -12
  52. package/dist/{index-1a6af0e0.js → index-6b37c670.js} +7 -8
  53. package/dist/{index-2fdc92eb.js → index-6c8cf83d.js} +7 -8
  54. package/dist/{index-812f3ba9.js → index-6f0ddbd0.js} +7 -8
  55. package/dist/index-6ffbeca8.js +65 -0
  56. package/dist/{index-bfdc0764.js → index-7540e09c.js} +8 -9
  57. package/dist/{index-ecfc8944.js → index-7ad32786.js} +7 -8
  58. package/dist/{index-9d2d738a.js → index-805c09f6.js} +1049 -1046
  59. package/dist/{index-a3756de7.js → index-80a816cd.js} +8 -9
  60. package/dist/{index-1c669345.js → index-80bbc984.js} +8 -9
  61. package/dist/{index-65b695f1.js → index-81c7bc47.js} +7 -8
  62. package/dist/{index-864dca69.js → index-850436bd.js} +7 -8
  63. package/dist/{index-402ff709.js → index-858a8ffe.js} +7 -8
  64. package/dist/{index-796a516b.js → index-88c2d612.js} +8 -9
  65. package/dist/{index-14781061.js → index-8d5906d1.js} +7 -8
  66. package/dist/{index-3aac5b40.js → index-8f4dd7e8.js} +7 -8
  67. package/dist/{index-ca617def.js → index-8fb21b4c.js} +7 -8
  68. package/dist/{index-7f7d7ab9.js → index-98e07789.js} +10 -11
  69. package/dist/{index-78ac5ae1.js → index-9a99f999.js} +8 -9
  70. package/dist/{index-1db04d4e.js → index-9c039997.js} +7 -8
  71. package/dist/{index-38c4c7df.js → index-a2ccffa7.js} +9 -10
  72. package/dist/{index-c06b86ef.js → index-a5ec6b6b.js} +8 -9
  73. package/dist/{index-908af05e.js → index-a8db0cfd.js} +7 -8
  74. package/dist/{index-11d5402e.js → index-af196788.js} +7 -8
  75. package/dist/{index-ee73d023.js → index-b881ea04.js} +8 -9
  76. package/dist/{index-9c967ccd.js → index-bab534cd.js} +7 -8
  77. package/dist/{index-dd052137.js → index-bd7a0e32.js} +2 -2
  78. package/dist/{index-ae76bd0d.js → index-c158677d.js} +7 -8
  79. package/dist/{index-d64dc517.js → index-c1bccaf4.js} +7 -8
  80. package/dist/{index-718b52f5.js → index-c2073b90.js} +30 -31
  81. package/dist/{index-25e5897c.js → index-c4ae1aab.js} +7 -8
  82. package/dist/{index-eabd2e5c.js → index-cd77755c.js} +9 -10
  83. package/dist/{index-551aec9b.js → index-ce06faef.js} +7 -8
  84. package/dist/{index-ae4c153a.js → index-ceaebbe7.js} +8 -9
  85. package/dist/{index-eca78761.js → index-cfd2e3f9.js} +11 -12
  86. package/dist/{index-ecf051c9.js → index-d0a75781.js} +7 -8
  87. package/dist/{index-4df3af69.js → index-d6bcc388.js} +8 -9
  88. package/dist/{index-a488b6cf.js → index-d6dbb71c.js} +10 -11
  89. package/dist/{index-fb4e438f.js → index-d965c515.js} +7 -8
  90. package/dist/{index-b96e593f.js → index-d976435a.js} +7 -8
  91. package/dist/{index-1e6c1425.js → index-e5400bfb.js} +7 -8
  92. package/dist/{index-17e60295.js → index-ea293b70.js} +11 -12
  93. package/dist/{index-a2cde0dd.js → index-ed5b4205.js} +11 -12
  94. package/dist/{index-ef107e72.js → index-ef8bfaaf.js} +7 -8
  95. package/dist/{index-53d2003f.js → index-f37db876.js} +7 -8
  96. package/dist/{index-d3e2bc2b.js → index-f3be2e4a.js} +12 -13
  97. package/dist/{index-34b726b2.js → index-f3cad480.js} +8 -9
  98. package/dist/{index-c9313b9a.js → index-f531cc96.js} +7 -8
  99. package/dist/{index-2d1a1c88.js → index-f653391d.js} +7 -8
  100. package/dist/{index-be9d8a65.js → index-f671b6f0.js} +1 -1
  101. package/dist/{index-5931dc98.js → index-f6815ad6.js} +10 -11
  102. package/dist/{index-da397821.js → index-fb20421f.js} +7 -8
  103. package/dist/index.es.js +49 -50
  104. package/dist/utils/helper.d.ts +1 -1
  105. package/dist/{utils-0558c9ca.js → utils-19b44377.js} +1 -1
  106. package/package.json +1 -1
  107. package/dist/index-f20f14ba.js +0 -54
  108. package/dist/useTheme-5c764556.js +0 -13
package/dist/Badge.es.js CHANGED
@@ -1,10 +1,9 @@
1
1
  import { j as s } from "./jsx-runtime-82a9ddf6.js";
2
- import { u as i } from "./useTheme-5c764556.js";
3
- import { c as d } from "./utils-0558c9ca.js";
4
- import { c as u } from "./index-f20f14ba.js";
2
+ import { c as d, u as i } from "./index-6ffbeca8.js";
3
+ import { c as u } from "./utils-19b44377.js";
5
4
  import "react";
6
5
  const c = (e) => {
7
- const r = {
6
+ const a = {
8
7
  dark: {
9
8
  primary: "bu-bg-dark-badge-primary-bg bu-text-dark-primary",
10
9
  secondary: "bu-bg-dark-badge-secondary-bg bu-text-dark-secondary",
@@ -21,37 +20,37 @@ const c = (e) => {
21
20
  warning: "bu-bg-light-badge-warning-bg bu-text-light-warning",
22
21
  info: "bu-bg-light-badge-info-bg bu-text-light-label-60"
23
22
  }
24
- }, { theme: a } = e;
25
- return u("bu-rounded bu-px-[8px] bu-py-[2px] bu-text-[12px]", {
23
+ }, { theme: r } = e;
24
+ return d("bu-rounded bu-px-[8px] bu-py-[2px] bu-text-[12px]", {
26
25
  variants: {
27
26
  color: {
28
- primary: r[a].primary,
29
- secondary: r[a].secondary,
30
- danger: r[a].danger,
31
- success: r[a].success,
32
- warning: r[a].warning,
33
- info: r[a].info
27
+ primary: a[r].primary,
28
+ secondary: a[r].secondary,
29
+ danger: a[r].danger,
30
+ success: a[r].success,
31
+ warning: a[r].warning,
32
+ info: a[r].info
34
33
  }
35
34
  },
36
35
  defaultVariants: {
37
36
  color: "primary"
38
37
  }
39
38
  })(e);
40
- }, h = ({
39
+ }, p = ({
41
40
  color: e = "primary",
42
- decoration: r = !0,
43
- label: a,
41
+ decoration: a = !0,
42
+ label: r,
44
43
  theme: g,
45
44
  startIcon: b,
46
45
  endIcon: t
47
46
  }) => {
48
47
  const { theme: n } = i();
49
- return /* @__PURE__ */ s.jsxs("span", { className: `${d(c({ theme: g || n, color: e }))}`, children: [
50
- b || (r ? "• " : null),
51
- a,
48
+ return /* @__PURE__ */ s.jsxs("span", { className: `${u(c({ theme: g || n, color: e }))}`, children: [
49
+ b || (a ? "• " : null),
50
+ r,
52
51
  t
53
52
  ] });
54
53
  };
55
54
  export {
56
- h as Badge
55
+ p as Badge
57
56
  };
package/dist/Button.es.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { j as r } from "./jsx-runtime-82a9ddf6.js";
2
- import { c as k } from "./utils-0558c9ca.js";
3
- import { c as e, a as g } from "./index-f20f14ba.js";
4
- import { u as x } from "./useTheme-5c764556.js";
2
+ import { c as k } from "./utils-19b44377.js";
3
+ import { c as e, u as x, a as g } from "./index-6ffbeca8.js";
5
4
  import * as d from "react";
6
5
  const N = e("bu-text-light-second", {
7
6
  variants: {
package/dist/Dialog.es.js CHANGED
@@ -1,12 +1,11 @@
1
- import { D as g } from "./index-c865f42b.js";
1
+ import { D as f } from "./index-0b47cbae.js";
2
2
  import "./jsx-runtime-82a9ddf6.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  import "./close-c67ec245.js";
6
6
  import "./Button.es.js";
7
- import "./utils-0558c9ca.js";
8
- import "./index-f20f14ba.js";
9
- import "./useTheme-5c764556.js";
7
+ import "./utils-19b44377.js";
8
+ import "./index-6ffbeca8.js";
10
9
  export {
11
- g as Dialog
10
+ f as Dialog
12
11
  };
@@ -1,25 +1,24 @@
1
1
  import { j as t } from "./jsx-runtime-82a9ddf6.js";
2
- import { u as s } from "./useTheme-5c764556.js";
3
- import { c as i } from "./utils-0558c9ca.js";
4
- import { c as a } from "./index-f20f14ba.js";
2
+ import { c as i, u as b } from "./index-6ffbeca8.js";
3
+ import { c as a } from "./utils-19b44377.js";
5
4
  import "react";
6
- const b = a("", {
5
+ const m = i("", {
7
6
  variants: {
8
7
  theme: {
9
8
  light: "bu-my-1 bu-h-px bu-border-0 bu-bg-light-line-primary",
10
9
  dark: "bu-my-1 bu-h-px bu-border-0 bu-bg-dark-line-primary"
11
10
  }
12
11
  }
13
- }), o = a("bu-h-full bu-w-px", {
12
+ }), l = i("bu-h-full bu-w-px", {
14
13
  variants: {
15
14
  theme: {
16
15
  light: "bu-bg-light-label-20",
17
16
  dark: "bu-bg-dark-label-20"
18
17
  }
19
18
  }
20
- }), c = ({ direction: m = "horizontal", theme: e }) => {
21
- const { theme: r } = s();
22
- return m === "horizontal" ? /* @__PURE__ */ t.jsx("hr", { className: `${i(b({ theme: r || e }))}` }) : /* @__PURE__ */ t.jsx("div", { className: `${i(o({ theme: r || e }))}` });
19
+ }), c = ({ direction: s = "horizontal", theme: e }) => {
20
+ const { theme: r } = b();
21
+ return s === "horizontal" ? /* @__PURE__ */ t.jsx("hr", { className: `${a(m({ theme: r || e }))}` }) : /* @__PURE__ */ t.jsx("div", { className: `${a(l({ theme: r || e }))}` });
23
22
  };
24
23
  export {
25
24
  c as Divider
package/dist/Drawer.es.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import { j as e } from "./jsx-runtime-82a9ddf6.js";
2
- import w from "react-dom";
3
- import { S as x } from "./close-c67ec245.js";
4
- import { u as g } from "./useTheme-5c764556.js";
5
- import { c as l } from "./index-f20f14ba.js";
2
+ import x from "react-dom";
3
+ import { S as f } from "./close-c67ec245.js";
4
+ import { c as l, u as g } from "./index-6ffbeca8.js";
6
5
  import "react";
7
6
  const k = "_drawerOverlay_1e2c8_2", v = "_drawerContent_1e2c8_14", y = "_left_1e2c8_19", C = "_right_1e2c8_23", j = "_drawerHeader_1e2c8_27", N = "_title_1e2c8_42", O = "_mock_1e2c8_47", $ = "_content_1e2c8_51", t = {
8
7
  drawerOverlay: k,
@@ -34,29 +33,29 @@ const k = "_drawerOverlay_1e2c8_2", v = "_drawerContent_1e2c8_14", y = "_left_1e
34
33
  }
35
34
  }
36
35
  }
37
- ), I = (i) => {
36
+ ), E = (i) => {
38
37
  const {
39
38
  title: d,
40
39
  content: m,
41
- cancel: o,
42
- theme: n,
40
+ cancel: n,
41
+ theme: o,
43
42
  hideIcon: u = !1,
44
43
  open: r,
45
44
  placement: _ = "right",
46
45
  drawerContentClass: h = "bu-w-[300px]"
47
- } = i, { theme: b } = g(), s = () => n || b;
46
+ } = i, { theme: b } = g(), s = () => o || b;
48
47
  if (!r)
49
48
  return null;
50
49
  const c = () => {
51
- o && o();
50
+ n && n();
52
51
  }, p = (a) => {
53
52
  a.target === a.currentTarget && (a.stopPropagation(), c());
54
- }, f = {
53
+ }, w = {
55
54
  transition: r ? "transform .3s ease-in-out" : "transform .3s ease-in-out, opacity 0.3s ease",
56
55
  transform: r ? "translateX(0)" : "translateX(100%)",
57
56
  opacity: r ? 1 : 0
58
57
  };
59
- return r ? w.createPortal(
58
+ return r ? x.createPortal(
60
59
  /* @__PURE__ */ e.jsx("div", { className: t.mock, onClick: p, children: /* @__PURE__ */ e.jsxs(
61
60
  "div",
62
61
  {
@@ -65,12 +64,12 @@ const k = "_drawerOverlay_1e2c8_2", v = "_drawerContent_1e2c8_14", y = "_left_1e
65
64
  theme: s()
66
65
  })}
67
66
  ${t[_]} ${h}`,
68
- style: f,
67
+ style: w,
69
68
  children: [
70
69
  /* @__PURE__ */ e.jsxs("div", { className: t.drawerHeader, children: [
71
70
  /* @__PURE__ */ e.jsx("div", { className: t.title, children: d }),
72
71
  !u && /* @__PURE__ */ e.jsx(
73
- x,
72
+ f,
74
73
  {
75
74
  className: `${S({
76
75
  theme: s()
@@ -87,5 +86,5 @@ const k = "_drawerOverlay_1e2c8_2", v = "_drawerContent_1e2c8_14", y = "_left_1e
87
86
  ) : null;
88
87
  };
89
88
  export {
90
- I as Drawer
89
+ E as Drawer
91
90
  };