@blofin/blofin-ui 0.7.61 → 0.7.62-beta.2

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 (111) hide show
  1. package/dist/Badge.es.js +3 -3
  2. package/dist/Button.es.js +53 -53
  3. package/dist/Dialog.es.js +4 -4
  4. package/dist/Divider.es.js +3 -3
  5. package/dist/Drawer.es.js +30 -30
  6. package/dist/{ProTable-63e2c020.js → ProTable-d028ad0b.js} +7 -8
  7. package/dist/ProTable.es.js +4 -4
  8. package/dist/Slider.es.js +147 -139
  9. package/dist/Sort.es.js +2 -2
  10. package/dist/blofin.css +1 -1
  11. package/dist/clsx.m-9bb14413.js +34 -0
  12. package/dist/components/DatePickerRange/styles.d.ts +3 -0
  13. package/dist/config/tailwind.js +3 -2
  14. package/dist/{index-27fd2203.js → index-0069c9e3.js} +7 -7
  15. package/dist/{index-200f0cb0.js → index-01026f94.js} +2 -2
  16. package/dist/{index-cdc5581e.js → index-01db97c5.js} +7 -7
  17. package/dist/{index-bcfdca26.js → index-0292b329.js} +7 -7
  18. package/dist/{index-11ed8e1e.js → index-0387520b.js} +7 -7
  19. package/dist/{index-c06461e4.js → index-04a8fcf8.js} +7 -7
  20. package/dist/{index-c5fd9877.js → index-04f1b3af.js} +7 -7
  21. package/dist/{index-bb110e35.js → index-07fd30f0.js} +8 -8
  22. package/dist/{index-06942aa2.js → index-0a76d898.js} +8 -8
  23. package/dist/{index-6f7c6176.js → index-0d344c21.js} +7 -7
  24. package/dist/{index-6c7e84e3.js → index-10311a5d.js} +7 -7
  25. package/dist/{index-2e2af4c2.js → index-149a87aa.js} +1 -1
  26. package/dist/{index-20c30fd3.js → index-14b0ac5d.js} +8 -8
  27. package/dist/{index-78b9c8f9.js → index-17805dcd.js} +7 -7
  28. package/dist/{index-49e62b6e.js → index-1a9a8842.js} +7 -7
  29. package/dist/{index-8a256357.js → index-1c21bf3b.js} +7 -7
  30. package/dist/{index-5b3a8482.js → index-1d9c8cf6.js} +7 -7
  31. package/dist/{index-0c947f08.js → index-20657d3c.js} +7 -7
  32. package/dist/{index-1d30e6a1.js → index-2381ee0a.js} +7 -7
  33. package/dist/{index-99a3bf9b.js → index-296bd519.js} +7 -7
  34. package/dist/{index-6d6d57fd.js → index-2bde0d49.js} +7 -7
  35. package/dist/{index-73b5523a.js → index-2cc44319.js} +7 -7
  36. package/dist/{index-01fa9075.js → index-2fad791a.js} +8 -8
  37. package/dist/{index-26e9b5ae.js → index-2fad7ef3.js} +7 -7
  38. package/dist/{index-168e5f6a.js → index-386aa451.js} +7 -7
  39. package/dist/{index-f40ff393.js → index-42b1d33b.js} +9 -9
  40. package/dist/{index-40459169.js → index-4449d4b9.js} +7 -7
  41. package/dist/{index-712da957.js → index-486710d8.js} +7 -7
  42. package/dist/{index-afe5111a.js → index-48e5197b.js} +7 -7
  43. package/dist/{index-da49a1d5.js → index-49840853.js} +7 -7
  44. package/dist/{index-af160501.js → index-4c1c3b8a.js} +7 -7
  45. package/dist/{index-b14d2f55.js → index-4c7452dd.js} +7 -7
  46. package/dist/{index-40626e62.js → index-50c18668.js} +59 -59
  47. package/dist/{index-313c7581.js → index-5c1f04ee.js} +7 -7
  48. package/dist/{index-fb976a33.js → index-5d917dfd.js} +7 -7
  49. package/dist/{index-05675e79.js → index-5fb8d494.js} +7 -7
  50. package/dist/{index-d94818cf.js → index-6b2d210b.js} +7 -7
  51. package/dist/{index-4486b59f.js → index-6bc1614e.js} +9 -9
  52. package/dist/{index-c624667a.js → index-6d3a04a0.js} +7 -7
  53. package/dist/{index-261244be.js → index-6ed92eb7.js} +7 -7
  54. package/dist/{index-8d59f49c.js → index-703d4773.js} +7 -7
  55. package/dist/{index-b4118dd1.js → index-70e902ef.js} +7 -7
  56. package/dist/{index-7e4350db.js → index-714a3b5e.js} +7 -7
  57. package/dist/{index-8802254a.js → index-74d5cef3.js} +7 -7
  58. package/dist/{index-39afbe30.js → index-74ecd42e.js} +1 -1
  59. package/dist/{index-e696b020.js → index-7dc4a343.js} +8 -8
  60. package/dist/{index-74f0d19e.js → index-7ea43be1.js} +8 -8
  61. package/dist/{index-24571e1a.js → index-7ee9e473.js} +8 -8
  62. package/dist/{index-1e98bfaa.js → index-80f8a806.js} +7 -7
  63. package/dist/{index-38f5f308.js → index-82835acd.js} +7 -7
  64. package/dist/{index-7272669e.js → index-86cecf62.js} +1 -1
  65. package/dist/{index-9d571166.js → index-89585d40.js} +7 -7
  66. package/dist/{index-39c2cf33.js → index-89893a11.js} +7 -7
  67. package/dist/{index-53e23440.js → index-8b6f70b0.js} +7 -7
  68. package/dist/{index-b2b7a241.js → index-8bc263cd.js} +7 -7
  69. package/dist/{index-8e71bc24.js → index-8eeee359.js} +7 -7
  70. package/dist/{index-a03e2363.js → index-973791d7.js} +7 -7
  71. package/dist/{index-ed523ae5.js → index-9a2645a8.js} +8 -8
  72. package/dist/{index-e7a49961.js → index-9cb6c809.js} +7 -7
  73. package/dist/{index-13e3dd69.js → index-9cc481f7.js} +7 -7
  74. package/dist/{index-b2bb21a1.js → index-a59135b8.js} +7 -7
  75. package/dist/{index-4b8f975d.js → index-a5fe21cd.js} +7 -7
  76. package/dist/{index-ec1494d7.js → index-a9625b4e.js} +7 -7
  77. package/dist/{index-74ca867d.js → index-aa262a9d.js} +7 -7
  78. package/dist/{index-dba23822.js → index-ab43a408.js} +8 -8
  79. package/dist/{index-a52ef6bc.js → index-b7444e82.js} +8 -8
  80. package/dist/{index-5f08442c.js → index-b7b46f67.js} +7 -7
  81. package/dist/{index-c4cd7ca7.js → index-b7ea1902.js} +7 -7
  82. package/dist/{index-d61cba2c.js → index-b92ba118.js} +7 -7
  83. package/dist/{index-fb8c76ea.js → index-baf787f7.js} +7 -7
  84. package/dist/{index-02d586cc.js → index-c07b2ad1.js} +7 -7
  85. package/dist/{index-87967611.js → index-c95fd1e6.js} +8 -8
  86. package/dist/{index-652fb2a1.js → index-d0eae08a.js} +8 -8
  87. package/dist/{index-57c290c9.js → index-d1d3db6d.js} +8 -8
  88. package/dist/{index-4e3398b2.js → index-d89aeeb0.js} +7 -7
  89. package/dist/{index-f99d7119.js → index-d9364b1a.js} +7 -7
  90. package/dist/{index-89f7e024.js → index-deeed3e3.js} +7 -7
  91. package/dist/{index-06addca7.js → index-df8fed10.js} +7 -7
  92. package/dist/{index-95c68eda.js → index-ea7f539d.js} +38 -38
  93. package/dist/{index-0ae42181.js → index-ed0cf3f2.js} +7 -7
  94. package/dist/{index-fb380321.js → index-ee7ede1d.js} +7 -7
  95. package/dist/{index-c0289cb3.js → index-eed2695c.js} +7 -7
  96. package/dist/{index-3bcdcfa4.js → index-eef05749.js} +7 -7
  97. package/dist/{index-85f017e3.js → index-f13a6c94.js} +7 -7
  98. package/dist/{index-06600576.js → index-f6a9aa5d.js} +1 -1
  99. package/dist/{index-c287f58d.js → index-f8979b6d.js} +7 -7
  100. package/dist/{index-752cda87.js → index-f8c2f10e.js} +8 -8
  101. package/dist/{index-54346b30.js → index-f9100785.js} +8 -8
  102. package/dist/{index-da92e7f1.js → index-f9d63b9d.js} +7 -7
  103. package/dist/{index-4a2c3474.js → index-fc0a25bf.js} +3197 -3123
  104. package/dist/{index-c7562a9b.js → index-fc2b4220.js} +7 -7
  105. package/dist/index.d.ts +2 -2
  106. package/dist/index.es.js +7 -7
  107. package/dist/provider/ThemeProvider.d.ts +2 -0
  108. package/dist/provider/useTheme.d.ts +1 -0
  109. package/dist/{utils-cacf528c.js → utils-096a71c5.js} +1 -1
  110. package/package.json +3 -1
  111. package/dist/clsx.m-b14a941b.js +0 -32
package/dist/Badge.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { j as s } from "./jsx-runtime-82a9ddf6.js";
2
- import { u as i } from "./clsx.m-b14a941b.js";
3
- import { c as d } from "./utils-cacf528c.js";
4
- import { c as u } from "./index-7272669e.js";
2
+ import { u as i } from "./clsx.m-9bb14413.js";
3
+ import { c as d } from "./utils-096a71c5.js";
4
+ import { c as u } from "./index-86cecf62.js";
5
5
  import "react";
6
6
  const c = (e) => {
7
7
  const r = {
package/dist/Button.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { j as t } from "./jsx-runtime-82a9ddf6.js";
2
- import { c as k } from "./utils-cacf528c.js";
3
- import { c as e } from "./index-7272669e.js";
4
- import { u as x, c as g } from "./clsx.m-b14a941b.js";
2
+ import { c as k } from "./utils-096a71c5.js";
3
+ import { c as e } from "./index-86cecf62.js";
4
+ import { u as x, c as g } from "./clsx.m-9bb14413.js";
5
5
  import * as d from "react";
6
6
  const N = e("bu-text-light-second", {
7
7
  variants: {
@@ -305,21 +305,21 @@ const N = e("bu-text-light-second", {
305
305
  //this not have disabled
306
306
  }
307
307
  }, K = (r) => {
308
- const { theme: l, variant: b, disabled: o, shape: i, checked: s } = r, a = o ? "" : f[b].variant({ theme: l, checked: s });
308
+ const { theme: a, variant: b, disabled: o, shape: i, checked: s } = r, l = o ? "" : f[b].variant({ theme: a, checked: s });
309
309
  return e("bu-box-border bu-inline-flex bu-items-center bu-justify-center bu-font-medium", {
310
310
  variants: {
311
311
  variant: {
312
- primary: a,
313
- secondary: a,
314
- tertiary: a,
315
- text: a,
316
- ghost: a,
317
- ghost2: a,
318
- ghost3: a,
319
- info: a,
320
- buy: a,
321
- sell: a,
322
- function: a
312
+ primary: l,
313
+ secondary: l,
314
+ tertiary: l,
315
+ text: l,
316
+ ghost: l,
317
+ ghost2: l,
318
+ ghost3: l,
319
+ info: l,
320
+ buy: l,
321
+ sell: l,
322
+ function: l
323
323
  },
324
324
  size: {
325
325
  small: `${i === "circle" ? "bu-h-[28px] bu-min-w-[30px]" : "bu-h-[28px] bu-min-w-[80px] bu-rounded-[var(--btn-rounded-small)]"} bu-px-[12px] bu-text-[12px] bu-leading-[18px]`,
@@ -333,7 +333,7 @@ const N = e("bu-text-light-second", {
333
333
  circle: "bu-rounded-[50%] bu-px-[0px] bu-py-[0px]"
334
334
  },
335
335
  disabled: {
336
- true: f[b].disabled({ theme: l })
336
+ true: f[b].disabled({ theme: a })
337
337
  }
338
338
  }
339
339
  })(r);
@@ -348,17 +348,17 @@ const N = e("bu-text-light-second", {
348
348
  }
349
349
  }
350
350
  }), u = {
351
- "loader-medium": "_loader-medium_sa6ie_2",
352
- "animloader-medium": "_animloader-medium_sa6ie_1",
353
- "loader-light": "_loader-light_sa6ie_12",
354
- "loader-dark": "_loader-dark_sa6ie_16",
355
- "loader-large": "_loader-large_sa6ie_34",
356
- "animloader-large": "_animloader-large_sa6ie_1",
357
- "loader-small": "_loader-small_sa6ie_58",
358
- "animloader-small": "_animloader-small_sa6ie_1",
359
- "loader-m-small": "_loader-m-small_sa6ie_82",
360
- "animloader-m-small": "_animloader-m-small_sa6ie_1"
361
- }, Q = ({ size: r, theme: l }) => {
351
+ "loader-medium": "_loader-medium_16dgj_2",
352
+ "animloader-medium": "_animloader-medium_16dgj_1",
353
+ "loader-light": "_loader-light_16dgj_12",
354
+ "loader-dark": "_loader-dark_16dgj_16",
355
+ "loader-large": "_loader-large_16dgj_34",
356
+ "animloader-large": "_animloader-large_16dgj_1",
357
+ "loader-small": "_loader-small_16dgj_58",
358
+ "animloader-small": "_animloader-small_16dgj_1",
359
+ "loader-m-small": "_loader-m-small_16dgj_82",
360
+ "animloader-m-small": "_animloader-m-small_16dgj_1"
361
+ }, Q = ({ size: r, theme: a }) => {
362
362
  const b = {
363
363
  small: u["loader-small"],
364
364
  medium: u["loader-medium"],
@@ -369,64 +369,64 @@ const N = e("bu-text-light-second", {
369
369
  light: u["loader-light"],
370
370
  dark: u["loader-dark"]
371
371
  };
372
- return /* @__PURE__ */ t.jsx("span", { className: `${b[r]} ${o[l]}` });
372
+ return /* @__PURE__ */ t.jsx("span", { className: `${b[r]} ${o[a]}` });
373
373
  }, U = (r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ d.createElement("path", { d: "M18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C15.9519 2 19.3684 4.29238 20.9922 7.61993L19.2011 8.51103C17.905 5.84083 15.1675 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z", fill: "#DEDFE0" })), X = (r) => /* @__PURE__ */ d.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ d.createElement("path", { d: "M12 6C12 2.68629 9.31371 0 6 0H0V6C0 9.31371 2.68629 12 6 12H12V6Z", fill: "currentColor" }), /* @__PURE__ */ d.createElement("path", { d: "M5.1663 7.32125L8.99647 3.49109L9.58571 4.08034L5.1663 8.49975L2.51465 5.84812L3.10391 5.25887L5.1663 7.32125Z", fill: "white" })), Y = (r) => /* @__PURE__ */ d.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ d.createElement("path", { d: "M12 6C12 2.68629 9.31371 0 6 0H0V6C0 9.31371 2.68629 12 6 12H12V6Z", fill: "currentColor" }), /* @__PURE__ */ d.createElement("path", { d: "M5.1663 7.32125L8.99647 3.49109L9.58571 4.08034L5.1663 8.49975L2.51465 5.84812L3.10391 5.25887L5.1663 7.32125Z", fill: "black" })), n = ({
374
374
  size: r = "large",
375
- disabled: l = !1,
375
+ disabled: a = !1,
376
376
  variant: b = "primary",
377
377
  children: o,
378
378
  startIcon: i,
379
379
  endIcon: s,
380
- icon: a,
380
+ icon: l,
381
381
  onClick: c,
382
382
  shape: w = "normal",
383
383
  className: _ = "",
384
384
  theme: p,
385
385
  loading: h,
386
- loadingType: S = "default",
387
- checked: C = !0,
388
- ...L
386
+ loadingType: j = "default",
387
+ checked: S = !0,
388
+ ...C
389
389
  }) => {
390
- const j = (E) => {
390
+ const L = (E) => {
391
391
  h || c && c(E);
392
- }, { theme: v } = x(), D = {
392
+ }, { theme: D } = x(), v = {
393
393
  variant: h ? "tertiary" : b,
394
394
  size: r,
395
- theme: p || v,
395
+ theme: p || D,
396
396
  shape: w,
397
- disabled: h ? !0 : l,
398
- checked: C
397
+ disabled: h ? !0 : a,
398
+ checked: S
399
399
  };
400
400
  return /* @__PURE__ */ t.jsx(
401
401
  "button",
402
402
  {
403
403
  type: "button",
404
- onClick: j,
405
- className: `${k(K(D))} ${_}`,
406
- disabled: l,
407
- ...L,
408
- children: h ? S === "refresh" ? /* @__PURE__ */ t.jsx(U, { className: k(O({ size: r })) }) : /* @__PURE__ */ t.jsx(Q, { size: r, theme: v }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
409
- i && /* @__PURE__ */ t.jsx("span", { className: "bu-mr-[9px]", children: i }),
404
+ onClick: L,
405
+ className: `${k(K(v))} ${_}`,
406
+ disabled: a,
407
+ ...C,
408
+ children: h ? j === "refresh" ? /* @__PURE__ */ t.jsx(U, { className: k(O({ size: r })) }) : /* @__PURE__ */ t.jsx(Q, { size: r, theme: v.theme }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
409
+ i && /* @__PURE__ */ t.jsx("span", { className: "ltr:bu-mr-[9px] rtl:bu-ml-[9px]", children: i }),
410
410
  o,
411
- s && /* @__PURE__ */ t.jsx("span", { className: "bu-ml-[9px] bu-flex bu-items-center", children: s }),
412
- a
411
+ s && /* @__PURE__ */ t.jsx("span", { className: "ltr:bu-ml-[9px] rtl:bu-mr-[9px] bu-flex bu-items-center", children: s }),
412
+ l
413
413
  ] })
414
414
  }
415
415
  );
416
416
  }, I = (r) => {
417
- const { theme: l } = x(), { checked: b } = r;
417
+ const { theme: a } = x(), { checked: b } = r;
418
418
  return /* @__PURE__ */ t.jsxs("div", { className: "bu-relative", children: [
419
419
  /* @__PURE__ */ t.jsx(n, { ...r, variant: "ghost3" }),
420
420
  /* @__PURE__ */ t.jsx(
421
421
  "div",
422
422
  {
423
423
  className: g(
424
- "bu-absolute bu-right-0 bu-top-0",
425
- l === "light" ? "bu-text-light-label" : "bu-text-dark-label",
426
- "bu-rounded-bl-[8px] bu-rounded-br-none bu-rounded-tl-none bu-rounded-tr-[8px]",
424
+ "bu-absolute bu-top-0 ltr:bu-right-0 rtl:bu-left-0",
425
+ a === "light" ? "bu-text-light-label" : "bu-text-dark-label",
426
+ "ltr:bu-rounded-tr-[8px] ltr:bu-rounded-bl-[8px] ltr:bu-rounded-tl-none ltr:bu-rounded-br-none rtl:bu-rounded-tl-[8px] rtl:bu-rounded-br-[8px] rtl:bu-rounded-tr-none rtl:bu-rounded-bl-none",
427
427
  "bu-flex bu-items-center bu-justify-center"
428
428
  ),
429
- children: l === "light" ? /* @__PURE__ */ t.jsx(
429
+ children: a === "light" ? /* @__PURE__ */ t.jsx(
430
430
  X,
431
431
  {
432
432
  className: g(b ? "" : "bu-text-light-line-secondary")
@@ -441,13 +441,13 @@ const N = e("bu-text-light-second", {
441
441
  )
442
442
  ] });
443
443
  }, ee = (r) => {
444
- const { theme: l } = x();
444
+ const { theme: a } = x();
445
445
  return /* @__PURE__ */ t.jsx(
446
446
  n,
447
447
  {
448
448
  ...r,
449
449
  variant: "ghost",
450
- className: `bu-border-light-background bu-text-light-background ${l === "light" ? "hover:!bu-text-light-primary" : "hover:!bu-text-dark-primary"} bu-font-medium hover:!bu-bg-light-background`
450
+ className: `bu-border-light-background bu-text-light-background ${a === "light" ? "hover:!bu-text-light-primary" : "hover:!bu-text-dark-primary"} bu-font-medium hover:!bu-bg-light-background`
451
451
  }
452
452
  );
453
453
  };
package/dist/Dialog.es.js CHANGED
@@ -1,12 +1,12 @@
1
- import { D as g } from "./index-40626e62.js";
1
+ import { D as g } from "./index-50c18668.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-cacf528c.js";
8
- import "./clsx.m-b14a941b.js";
9
- import "./index-7272669e.js";
7
+ import "./utils-096a71c5.js";
8
+ import "./clsx.m-9bb14413.js";
9
+ import "./index-86cecf62.js";
10
10
  export {
11
11
  g as Dialog
12
12
  };
@@ -1,7 +1,7 @@
1
1
  import { j as t } from "./jsx-runtime-82a9ddf6.js";
2
- import { u as s } from "./clsx.m-b14a941b.js";
3
- import { c as i } from "./utils-cacf528c.js";
4
- import { c as a } from "./index-7272669e.js";
2
+ import { u as s } from "./clsx.m-9bb14413.js";
3
+ import { c as i } from "./utils-096a71c5.js";
4
+ import { c as a } from "./index-86cecf62.js";
5
5
  import "react";
6
6
  const b = a("", {
7
7
  variants: {
package/dist/Drawer.es.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { j as e } from "./jsx-runtime-82a9ddf6.js";
2
2
  import w from "react-dom";
3
3
  import { S as x } from "./close-c67ec245.js";
4
- import { u as g } from "./clsx.m-b14a941b.js";
5
- import { c as l } from "./index-7272669e.js";
4
+ import { u as g } from "./clsx.m-9bb14413.js";
5
+ import { c as i } from "./index-86cecf62.js";
6
6
  import "react";
7
- 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 = {
7
+ 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", $ = "_mock_1e2c8_47", O = "_content_1e2c8_51", t = {
8
8
  drawerOverlay: k,
9
9
  drawerContent: v,
10
10
  left: y,
@@ -12,9 +12,9 @@ const k = "_drawerOverlay_1e2c8_2", v = "_drawerContent_1e2c8_14", y = "_left_1e
12
12
  drawerHeader: j,
13
13
  "drawer-close-button": "_drawer-close-button_1e2c8_34",
14
14
  title: N,
15
- mock: O,
16
- content: $
17
- }, H = l(
15
+ mock: $,
16
+ content: O
17
+ }, T = i(
18
18
  "bu-absolute bu-flex bu-flex-col bu-pb-[32px] bu-pt-[24px]",
19
19
  {
20
20
  variants: {
@@ -24,7 +24,7 @@ const k = "_drawerOverlay_1e2c8_2", v = "_drawerContent_1e2c8_14", y = "_left_1e
24
24
  }
25
25
  }
26
26
  }
27
- ), S = l(
27
+ ), H = i(
28
28
  "bu-absolute bu-right-[20px] bu-h-[24px] bu-w-[24px] bu-cursor-pointer",
29
29
  {
30
30
  variants: {
@@ -34,26 +34,26 @@ const k = "_drawerOverlay_1e2c8_2", v = "_drawerContent_1e2c8_14", y = "_left_1e
34
34
  }
35
35
  }
36
36
  }
37
- ), I = (i) => {
37
+ ), M = (d) => {
38
38
  const {
39
- title: d,
40
- content: m,
41
- cancel: o,
42
- theme: n,
43
- hideIcon: u = !1,
39
+ title: m,
40
+ content: u,
41
+ cancel: n,
42
+ theme: o,
43
+ hideIcon: h = !1,
44
44
  open: r,
45
- placement: _ = "right",
46
- drawerContentClass: h = "bu-w-[300px]"
47
- } = i, { theme: b } = g(), s = () => n || b;
45
+ placement: s = "right",
46
+ drawerContentClass: _ = "bu-w-[300px]"
47
+ } = d, { theme: b } = g(), c = () => o || b;
48
48
  if (!r)
49
49
  return null;
50
- const c = () => {
51
- o && o();
50
+ const l = () => {
51
+ n && n();
52
52
  }, p = (a) => {
53
- a.target === a.currentTarget && (a.stopPropagation(), c());
53
+ a.target === a.currentTarget && (a.stopPropagation(), l());
54
54
  }, f = {
55
55
  transition: r ? "transform .3s ease-in-out" : "transform .3s ease-in-out, opacity 0.3s ease",
56
- transform: r ? "translateX(0)" : "translateX(100%)",
56
+ transform: r ? "translateX(0)" : `translateX(${s === "left" ? "-100%" : "100%"})`,
57
57
  opacity: r ? 1 : 0
58
58
  };
59
59
  return r ? w.createPortal(
@@ -61,25 +61,25 @@ const k = "_drawerOverlay_1e2c8_2", v = "_drawerContent_1e2c8_14", y = "_left_1e
61
61
  "div",
62
62
  {
63
63
  className: `${t.drawerContent}
64
- ${H({
65
- theme: s()
64
+ ${T({
65
+ theme: c()
66
66
  })}
67
- ${t[_]} ${h}`,
67
+ ${t[s]} ${_}`,
68
68
  style: f,
69
69
  children: [
70
70
  /* @__PURE__ */ e.jsxs("div", { className: t.drawerHeader, children: [
71
- /* @__PURE__ */ e.jsx("div", { className: t.title, children: d }),
72
- !u && /* @__PURE__ */ e.jsx(
71
+ /* @__PURE__ */ e.jsx("div", { className: t.title, children: m }),
72
+ !h && /* @__PURE__ */ e.jsx(
73
73
  x,
74
74
  {
75
- className: `${S({
76
- theme: s()
75
+ className: `${H({
76
+ theme: c()
77
77
  })}`,
78
- onClick: c
78
+ onClick: l
79
79
  }
80
80
  )
81
81
  ] }),
82
- /* @__PURE__ */ e.jsx("div", { className: t.content, children: m })
82
+ /* @__PURE__ */ e.jsx("div", { className: t.content, children: u })
83
83
  ]
84
84
  }
85
85
  ) }),
@@ -87,5 +87,5 @@ const k = "_drawerOverlay_1e2c8_2", v = "_drawerContent_1e2c8_14", y = "_left_1e
87
87
  ) : null;
88
88
  };
89
89
  export {
90
- I as Drawer
90
+ M as Drawer
91
91
  };
@@ -1,8 +1,8 @@
1
1
  import { j as z } from "./jsx-runtime-82a9ddf6.js";
2
2
  import * as Ce from "react";
3
3
  import V, { useLayoutEffect as $n, useEffect as M, useRef as L, useMemo as O, useCallback as K, useState as Q, createContext as Je, memo as Fn, useReducer as Hn, useContext as Ie } from "react";
4
- import { c as W } from "./index-7272669e.js";
5
- import { c as Me, u as Wn } from "./clsx.m-b14a941b.js";
4
+ import { c as W } from "./index-86cecf62.js";
5
+ import { c as Me, u as Wn } from "./clsx.m-9bb14413.js";
6
6
  import { unstable_batchedUpdates as rt, createPortal as Xn } from "react-dom";
7
7
  var ne = /* @__PURE__ */ ((e) => (e.default = "default", e.desc = "desc", e.asc = "asc", e))(ne || {});
8
8
  const Yn = W("bu-w-full bu-rounded-lg", {
@@ -20,7 +20,7 @@ const Yn = W("bu-w-full bu-rounded-lg", {
20
20
  }
21
21
  }
22
22
  }), rn = W(
23
- "bu-relative bu-z-[999] bu-h-[25px] bu-select-none bu-border-b bu-px-[4px] bu-text-left bu-text-[12px] bu-font-medium bu-transition-all bu-duration-300",
23
+ "bu-relative bu-z-[999] bu-h-[25px] bu-select-none bu-border-b bu-px-[4px] bu-text-[12px] bu-font-medium bu-transition-all bu-duration-300",
24
24
  {
25
25
  variants: {
26
26
  theme: {
@@ -71,7 +71,7 @@ const Yn = W("bu-w-full bu-rounded-lg", {
71
71
  dark: "bu-bg-dark-background"
72
72
  }
73
73
  }
74
- }), Gn = W("bu-ml-2 bu-inline-flex bu-flex-col bu-align-middle"), Jn = W(
74
+ }), Gn = W("ltr:bu-ml-2 rtl:bu-mr-2 bu-inline-flex bu-flex-col bu-align-middle"), Jn = W(
75
75
  "bu-h-0 bu-w-0 bu-border-l-4 bu-border-r-4 bu-border-transparent",
76
76
  {
77
77
  variants: {
@@ -3167,12 +3167,11 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3167
3167
  oe.dragHandle({
3168
3168
  theme: l
3169
3169
  }),
3170
- "group-hover:bu-opacity-100"
3170
+ "group-hover:bu-opacity-100 ltr:bu-ml-[4px] rtl:bu-mr-[4px]"
3171
3171
  )} drag-handle-icon`,
3172
3172
  style: {
3173
3173
  display: "flex",
3174
- alignItems: "center",
3175
- marginLeft: "4px"
3174
+ alignItems: "center"
3176
3175
  },
3177
3176
  children: a !== null && (a || /* @__PURE__ */ z.jsx(Xo, {}))
3178
3177
  }
@@ -3204,7 +3203,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3204
3203
  {
3205
3204
  className: Me(
3206
3205
  "bu-inline-flex bu-align-middle bu-transition-opacity bu-duration-200",
3207
- "bu-ml-[4px]"
3206
+ "ltr:bu-ml-[4px] rtl:bu-mr-[4px]"
3208
3207
  ),
3209
3208
  children: /* @__PURE__ */ z.jsxs(
3210
3209
  "svg",
@@ -1,9 +1,9 @@
1
- import { P as r } from "./ProTable-63e2c020.js";
2
- import { S as s } from "./ProTable-63e2c020.js";
1
+ import { P as r } from "./ProTable-d028ad0b.js";
2
+ import { S as s } from "./ProTable-d028ad0b.js";
3
3
  import "./jsx-runtime-82a9ddf6.js";
4
4
  import "react";
5
- import "./index-7272669e.js";
6
- import "./clsx.m-b14a941b.js";
5
+ import "./index-86cecf62.js";
6
+ import "./clsx.m-9bb14413.js";
7
7
  import "react-dom";
8
8
  export {
9
9
  r as ProTable,