@blofin/blofin-ui 0.7.60 → 0.7.62-beta.1

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 (113) 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 +45 -40
  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/components/Dialog/styles.d.ts +1 -0
  14. package/dist/components/Drawer/styles.d.ts +1 -0
  15. package/dist/config/tailwind.js +3 -2
  16. package/dist/{index-3f79b35f.js → index-00cb38b4.js} +8 -8
  17. package/dist/{index-e989a33d.js → index-02b7d062.js} +7 -7
  18. package/dist/{index-38570835.js → index-05fb2934.js} +8 -8
  19. package/dist/{index-ecb26def.js → index-07a3605a.js} +7 -7
  20. package/dist/{index-00de98c8.js → index-0831b02d.js} +7 -7
  21. package/dist/{index-014f0ec1.js → index-08bda1df.js} +8 -8
  22. package/dist/{index-a1f0ee32.js → index-0b9a08c4.js} +7 -7
  23. package/dist/{index-fbcaec88.js → index-0cc8bf8c.js} +8 -8
  24. package/dist/{index-ba723d9d.js → index-0cfae1f0.js} +7 -7
  25. package/dist/{index-c0101070.js → index-0de6cbc7.js} +7 -7
  26. package/dist/{index-f5f7af48.js → index-0ef18599.js} +7 -7
  27. package/dist/{index-1fed0e48.js → index-1007b2e1.js} +7 -7
  28. package/dist/{index-775d9482.js → index-19e61d30.js} +7 -7
  29. package/dist/{index-bc16213b.js → index-1d96b972.js} +7 -7
  30. package/dist/{index-0a6abd3c.js → index-1eab0827.js} +8 -8
  31. package/dist/{index-d72523e5.js → index-2754ff47.js} +8 -8
  32. package/dist/{index-e9fc837c.js → index-34997f60.js} +1 -1
  33. package/dist/{index-5f5a69d3.js → index-3630c279.js} +7 -7
  34. package/dist/{index-8476d3e0.js → index-369d85e3.js} +7 -7
  35. package/dist/{index-000dc001.js → index-369dbba7.js} +7 -7
  36. package/dist/{index-a885ed63.js → index-369fea90.js} +7 -7
  37. package/dist/{index-8a13a50e.js → index-375b23ef.js} +7 -7
  38. package/dist/{index-b5c8f9ce.js → index-3ad6d437.js} +7 -7
  39. package/dist/{index-9d4af95d.js → index-3c122ba7.js} +7 -7
  40. package/dist/{index-21539182.js → index-3d216746.js} +8 -8
  41. package/dist/{index-61af02ba.js → index-3f1c19ab.js} +7 -7
  42. package/dist/{index-a5be4aaa.js → index-3f2b768e.js} +7 -7
  43. package/dist/{index-4bea9ceb.js → index-40ebe5bb.js} +7 -7
  44. package/dist/{index-d2079dd6.js → index-40fbbfe5.js} +7 -7
  45. package/dist/{index-6c40ce21.js → index-428229f2.js} +7 -7
  46. package/dist/{index-dda1a5c0.js → index-437b00d9.js} +7 -7
  47. package/dist/{index-b7ec6041.js → index-486d5b22.js} +7 -7
  48. package/dist/{index-40626e62.js → index-4c13b930.js} +44 -39
  49. package/dist/{index-479a3d12.js → index-54eb0a36.js} +7 -7
  50. package/dist/{index-368582b8.js → index-5dfbdb6b.js} +8 -8
  51. package/dist/{index-a8995b25.js → index-5e685f07.js} +7 -7
  52. package/dist/{index-b13a89bd.js → index-61047453.js} +7 -7
  53. package/dist/{index-a4a83087.js → index-665bd8cb.js} +7 -7
  54. package/dist/{index-fc234f8b.js → index-6a6250e4.js} +7 -7
  55. package/dist/{index-edc31623.js → index-6c341bb7.js} +7 -7
  56. package/dist/{index-d4eda35e.js → index-6e6cbe04.js} +7 -7
  57. package/dist/{index-6b45d241.js → index-75b208e7.js} +7 -7
  58. package/dist/{index-bfdde380.js → index-77c3e449.js} +7 -7
  59. package/dist/{index-1b19695e.js → index-7fff060d.js} +8 -8
  60. package/dist/{index-97ea2514.js → index-80503229.js} +7 -7
  61. package/dist/{index-3a133920.js → index-82281434.js} +9 -9
  62. package/dist/{index-7272669e.js → index-86cecf62.js} +1 -1
  63. package/dist/{index-66d800fe.js → index-886ef945.js} +1 -1
  64. package/dist/{index-9aec70e5.js → index-893bc0d9.js} +7 -7
  65. package/dist/{index-cb0f058d.js → index-912b8d4b.js} +3196 -3122
  66. package/dist/{index-345260fc.js → index-931ff20d.js} +7 -7
  67. package/dist/{index-6b5e8efd.js → index-9a38de2e.js} +7 -7
  68. package/dist/{index-250d3f95.js → index-a5454f86.js} +7 -7
  69. package/dist/{index-378b35b1.js → index-a5c99151.js} +7 -7
  70. package/dist/{index-b7272ef5.js → index-b3d15e11.js} +7 -7
  71. package/dist/{index-b77bf47e.js → index-baa2617b.js} +7 -7
  72. package/dist/{index-ff40f7fc.js → index-bcb5cd54.js} +7 -7
  73. package/dist/{index-4aa73537.js → index-c236eb5d.js} +7 -7
  74. package/dist/{index-722dea32.js → index-c4500817.js} +7 -7
  75. package/dist/{index-752470b7.js → index-c87ba64b.js} +7 -7
  76. package/dist/{index-4e2b888a.js → index-cf949a18.js} +8 -8
  77. package/dist/{index-6ad4db73.js → index-d8792469.js} +7 -7
  78. package/dist/{index-2a446b59.js → index-d978fe94.js} +7 -7
  79. package/dist/{index-d7e1c70a.js → index-d9e030b5.js} +7 -7
  80. package/dist/{index-49465137.js → index-dd119734.js} +7 -7
  81. package/dist/{index-337b1e0b.js → index-dd2eb1fe.js} +7 -7
  82. package/dist/{index-48c1dad4.js → index-ddbcedf3.js} +7 -7
  83. package/dist/{index-c34b059e.js → index-de7d5135.js} +1 -1
  84. package/dist/{index-c5e273c8.js → index-e0b19a5b.js} +7 -7
  85. package/dist/{index-a58b15ca.js → index-e252cc65.js} +8 -8
  86. package/dist/{index-4e021bb2.js → index-e25c7691.js} +8 -8
  87. package/dist/{index-f485bd51.js → index-e64ce729.js} +7 -7
  88. package/dist/{index-faedf548.js → index-e6c16b89.js} +7 -7
  89. package/dist/{index-b6ac5cff.js → index-e6e72ff5.js} +7 -7
  90. package/dist/{index-cd3a96b7.js → index-e919651f.js} +7 -7
  91. package/dist/{index-5eaf9fd0.js → index-e9cdb3cd.js} +8 -8
  92. package/dist/{index-95c68eda.js → index-ea7f539d.js} +38 -38
  93. package/dist/{index-0f613d53.js → index-efca74bb.js} +7 -7
  94. package/dist/{index-156b7cd4.js → index-f1269461.js} +7 -7
  95. package/dist/{index-6f2e444c.js → index-f1324d26.js} +7 -7
  96. package/dist/{index-3c8644eb.js → index-f235bea0.js} +7 -7
  97. package/dist/{index-c7476f69.js → index-f422b77c.js} +7 -7
  98. package/dist/{index-d1ed98b2.js → index-f47e194e.js} +2 -2
  99. package/dist/{index-c90d76b1.js → index-f67e405c.js} +8 -8
  100. package/dist/{index-4a29ef31.js → index-f75adad6.js} +7 -7
  101. package/dist/{index-e318ba1a.js → index-f83b5547.js} +9 -9
  102. package/dist/{index-b53a2c97.js → index-f9a6e4a8.js} +7 -7
  103. package/dist/{index-340ee150.js → index-fa4f645d.js} +8 -8
  104. package/dist/{index-4d663847.js → index-fc2eef66.js} +7 -7
  105. package/dist/{index-841c19af.js → index-fcd63919.js} +7 -7
  106. package/dist/{index-55bacefc.js → index-fe713d15.js} +7 -7
  107. package/dist/index.d.ts +2 -2
  108. package/dist/index.es.js +7 -7
  109. package/dist/provider/ThemeProvider.d.ts +2 -0
  110. package/dist/provider/useTheme.d.ts +1 -0
  111. package/dist/{utils-cacf528c.js → utils-096a71c5.js} +1 -1
  112. package/package.json +3 -1
  113. 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-4c13b930.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,20 +1,20 @@
1
1
  import { j as e } from "./jsx-runtime-82a9ddf6.js";
2
2
  import w from "react-dom";
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";
3
+ import { S as g } from "./close-c67ec245.js";
4
+ import { u as k } 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 = {
8
- drawerOverlay: k,
9
- drawerContent: v,
10
- left: y,
11
- right: C,
12
- drawerHeader: j,
7
+ const v = "_drawerOverlay_1e2c8_2", y = "_drawerContent_1e2c8_14", C = "_left_1e2c8_19", j = "_right_1e2c8_23", N = "_drawerHeader_1e2c8_27", $ = "_title_1e2c8_42", O = "_mock_1e2c8_47", T = "_content_1e2c8_51", t = {
8
+ drawerOverlay: v,
9
+ drawerContent: y,
10
+ left: C,
11
+ right: j,
12
+ drawerHeader: N,
13
13
  "drawer-close-button": "_drawer-close-button_1e2c8_34",
14
- title: N,
14
+ title: $,
15
15
  mock: O,
16
- content: $
17
- }, H = l(
16
+ content: T
17
+ }, H = i(
18
18
  "bu-absolute bu-flex bu-flex-col bu-pb-[32px] bu-pt-[24px]",
19
19
  {
20
20
  variants: {
@@ -24,62 +24,67 @@ const k = "_drawerOverlay_1e2c8_2", v = "_drawerContent_1e2c8_14", y = "_left_1e
24
24
  }
25
25
  }
26
26
  }
27
- ), S = l(
28
- "bu-absolute bu-right-[20px] bu-h-[24px] bu-w-[24px] bu-cursor-pointer",
27
+ ), S = i(
28
+ "bu-absolute bu-h-[24px] bu-w-[24px] bu-cursor-pointer",
29
29
  {
30
30
  variants: {
31
+ direction: {
32
+ ltr: "bu-right-[20px]",
33
+ rtl: "bu-left-[20px]"
34
+ },
31
35
  theme: {
32
36
  dark: "bu-text-dark-label",
33
37
  light: "bu-text-light-label-40"
34
38
  }
35
39
  }
36
40
  }
37
- ), I = (i) => {
41
+ ), V = (d) => {
38
42
  const {
39
- title: d,
40
- content: m,
41
- cancel: o,
42
- theme: n,
43
- hideIcon: u = !1,
43
+ title: m,
44
+ content: u,
45
+ cancel: n,
46
+ theme: o,
47
+ hideIcon: h = !1,
44
48
  open: r,
45
- placement: _ = "right",
46
- drawerContentClass: h = "bu-w-[300px]"
47
- } = i, { theme: b } = g(), s = () => n || b;
49
+ placement: s = "right",
50
+ drawerContentClass: _ = "bu-w-[300px]"
51
+ } = d, { theme: b, direction: p } = k(), c = () => o || b;
48
52
  if (!r)
49
53
  return null;
50
- const c = () => {
51
- o && o();
52
- }, p = (a) => {
53
- a.target === a.currentTarget && (a.stopPropagation(), c());
54
- }, f = {
54
+ const l = () => {
55
+ n && n();
56
+ }, f = (a) => {
57
+ a.target === a.currentTarget && (a.stopPropagation(), l());
58
+ }, x = {
55
59
  transition: r ? "transform .3s ease-in-out" : "transform .3s ease-in-out, opacity 0.3s ease",
56
- transform: r ? "translateX(0)" : "translateX(100%)",
60
+ transform: r ? "translateX(0)" : `translateX(${s === "left" ? "-100%" : "100%"})`,
57
61
  opacity: r ? 1 : 0
58
62
  };
59
63
  return r ? w.createPortal(
60
- /* @__PURE__ */ e.jsx("div", { className: t.mock, onClick: p, children: /* @__PURE__ */ e.jsxs(
64
+ /* @__PURE__ */ e.jsx("div", { className: t.mock, onClick: f, children: /* @__PURE__ */ e.jsxs(
61
65
  "div",
62
66
  {
63
67
  className: `${t.drawerContent}
64
68
  ${H({
65
- theme: s()
69
+ theme: c()
66
70
  })}
67
- ${t[_]} ${h}`,
68
- style: f,
71
+ ${t[s]} ${_}`,
72
+ style: x,
69
73
  children: [
70
74
  /* @__PURE__ */ e.jsxs("div", { className: t.drawerHeader, children: [
71
- /* @__PURE__ */ e.jsx("div", { className: t.title, children: d }),
72
- !u && /* @__PURE__ */ e.jsx(
73
- x,
75
+ /* @__PURE__ */ e.jsx("div", { className: t.title, children: m }),
76
+ !h && /* @__PURE__ */ e.jsx(
77
+ g,
74
78
  {
75
79
  className: `${S({
76
- theme: s()
80
+ theme: c(),
81
+ direction: p
77
82
  })}`,
78
- onClick: c
83
+ onClick: l
79
84
  }
80
85
  )
81
86
  ] }),
82
- /* @__PURE__ */ e.jsx("div", { className: t.content, children: m })
87
+ /* @__PURE__ */ e.jsx("div", { className: t.content, children: u })
83
88
  ]
84
89
  }
85
90
  ) }),
@@ -87,5 +92,5 @@ const k = "_drawerOverlay_1e2c8_2", v = "_drawerContent_1e2c8_14", y = "_left_1e
87
92
  ) : null;
88
93
  };
89
94
  export {
90
- I as Drawer
95
+ V as Drawer
91
96
  };
@@ -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,