@blofin/blofin-ui 0.7.40 → 0.7.42

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 (94) hide show
  1. package/dist/Button.es.js +134 -90
  2. package/dist/blofin.css +1 -1
  3. package/dist/components/Button/Button.d.ts +3 -0
  4. package/dist/components/Button/types.d.ts +1 -1
  5. package/dist/{index-9477b2cb.js → index-00560307.js} +2 -2
  6. package/dist/{index-7f01d8dd.js → index-02870068.js} +1 -1
  7. package/dist/{index-95b6f0bc.js → index-0856c013.js} +1 -1
  8. package/dist/{index-b8965c2b.js → index-094bcf08.js} +1 -1
  9. package/dist/{index-34889907.js → index-0986c2b0.js} +1 -1
  10. package/dist/{index-b66d9ee5.js → index-0aba3856.js} +1 -1
  11. package/dist/{index-f1baf440.js → index-10c81e54.js} +1 -1
  12. package/dist/{index-d61fc5e7.js → index-121a4fde.js} +2 -2
  13. package/dist/{index-6bf1e5b1.js → index-12672ea8.js} +1 -1
  14. package/dist/{index-74875522.js → index-13784a31.js} +2 -2
  15. package/dist/{index-1636826a.js → index-14b1b312.js} +1 -1
  16. package/dist/{index-250a9328.js → index-159b4ecd.js} +1 -1
  17. package/dist/{index-8c7d9df8.js → index-2315df64.js} +1 -1
  18. package/dist/{index-b0d0cad0.js → index-238458b4.js} +2 -2
  19. package/dist/{index-274f6048.js → index-27f10cf8.js} +1 -1
  20. package/dist/{index-992b2a7a.js → index-2b9fb78b.js} +1 -1
  21. package/dist/{index-d1ce1a79.js → index-2c82c248.js} +1 -1
  22. package/dist/{index-09577d23.js → index-34945a2a.js} +1 -1
  23. package/dist/{index-93d4f886.js → index-378ae10a.js} +1 -1
  24. package/dist/{index-570fd8ad.js → index-387f96aa.js} +1 -1
  25. package/dist/{index-a7c2f5ad.js → index-38b48528.js} +2 -2
  26. package/dist/{index-dd6d99fa.js → index-3d94657c.js} +2 -2
  27. package/dist/{index-361bd36d.js → index-3fb87b73.js} +1 -1
  28. package/dist/{index-1df423dd.js → index-4151d7f5.js} +1 -1
  29. package/dist/{index-148b8f22.js → index-41f7df25.js} +1 -1
  30. package/dist/{index-b576f70d.js → index-44ebf09f.js} +1 -1
  31. package/dist/{index-8771b527.js → index-4cc7c324.js} +1 -1
  32. package/dist/{index-45a7f103.js → index-510d9b04.js} +1 -1
  33. package/dist/{index-33b762d3.js → index-5170f138.js} +1 -1
  34. package/dist/{index-64e30dda.js → index-54a2f0a6.js} +2 -2
  35. package/dist/{index-d980cd3e.js → index-55f9fa00.js} +1 -1
  36. package/dist/{index-653e5c46.js → index-61c2d581.js} +1 -1
  37. package/dist/{index-f6ceb8dc.js → index-6374da23.js} +1 -1
  38. package/dist/{index-58391dbe.js → index-67e5a3e1.js} +1 -1
  39. package/dist/{index-794420a0.js → index-68342408.js} +1 -1
  40. package/dist/{index-d191677a.js → index-6cea4284.js} +2 -2
  41. package/dist/{index-81e683b2.js → index-6f42870c.js} +1 -1
  42. package/dist/{index-2317774b.js → index-732322ae.js} +1 -1
  43. package/dist/{index-e40b3d11.js → index-754413fc.js} +2 -2
  44. package/dist/{index-cb3e57d8.js → index-78345655.js} +2 -2
  45. package/dist/{index-1e12376c.js → index-7c55b000.js} +2 -2
  46. package/dist/{index-af09ee93.js → index-7ca02ec0.js} +1 -1
  47. package/dist/{index-b60304e7.js → index-7d31245a.js} +1 -1
  48. package/dist/{index-2394ba79.js → index-7d646751.js} +1 -1
  49. package/dist/{index-febc52e7.js → index-822af086.js} +1 -1
  50. package/dist/{index-1bf4df4d.js → index-85699750.js} +1 -1
  51. package/dist/{index-f5292ed9.js → index-87500c10.js} +1 -1
  52. package/dist/{index-41adaced.js → index-897866a7.js} +1 -1
  53. package/dist/{index-665b367d.js → index-8999f690.js} +1 -1
  54. package/dist/{index-728becb9.js → index-8bc5995b.js} +1 -1
  55. package/dist/{index-d9ba7b30.js → index-95632a09.js} +1 -1
  56. package/dist/{index-d3facad5.js → index-9b6cc2b1.js} +1 -1
  57. package/dist/{index-d30b0a9d.js → index-9eb58ef8.js} +3 -3
  58. package/dist/{index-a1eee727.js → index-9eed865e.js} +1 -1
  59. package/dist/{index-a93a4702.js → index-a69679f3.js} +1 -1
  60. package/dist/{index-6b11bb9c.js → index-a6d385f1.js} +2 -2
  61. package/dist/{index-c34e076b.js → index-a72c684c.js} +1 -1
  62. package/dist/{index-a4c7c50e.js → index-ac5f7507.js} +1 -1
  63. package/dist/{index-acd83d6b.js → index-ad10e4ca.js} +1 -1
  64. package/dist/{index-f3f30d79.js → index-ad3ebb3b.js} +1 -1
  65. package/dist/{index-8b3f0072.js → index-af6dafda.js} +1 -1
  66. package/dist/{index-5c451d4f.js → index-afa200bc.js} +1 -1
  67. package/dist/{index-96349006.js → index-b0aec542.js} +1 -1
  68. package/dist/{index-7bffeb5d.js → index-b3d00db2.js} +1 -1
  69. package/dist/{index-01ca37c1.js → index-b7551c97.js} +1 -1
  70. package/dist/{index-d2a8576d.js → index-bbad6241.js} +1 -1
  71. package/dist/{index-d01aaa34.js → index-bbdfde99.js} +1 -1
  72. package/dist/{index-4169f8ea.js → index-bc221de3.js} +1 -1
  73. package/dist/{index-523c6862.js → index-c1f87a62.js} +1 -1
  74. package/dist/{index-3facda55.js → index-c843ba96.js} +1 -1
  75. package/dist/{index-a31932fc.js → index-c93a2cdb.js} +2 -2
  76. package/dist/{index-a9bcc9c5.js → index-cab8e206.js} +1 -1
  77. package/dist/{index-3e3428af.js → index-cacbc07e.js} +1 -1
  78. package/dist/{index-669cf5cb.js → index-cd5f812e.js} +1 -1
  79. package/dist/{index-347d9a70.js → index-ce178925.js} +1 -1
  80. package/dist/{index-710aa853.js → index-ce514430.js} +2 -2
  81. package/dist/{index-20703a74.js → index-d3469783.js} +1 -1
  82. package/dist/{index-ecfd07ee.js → index-d5369658.js} +3 -3
  83. package/dist/{index-cd6f877c.js → index-de069768.js} +1 -1
  84. package/dist/{index-069bd2e5.js → index-e062e35b.js} +2 -2
  85. package/dist/{index-9392256b.js → index-e1fe8884.js} +1 -1
  86. package/dist/{index-e0fe32de.js → index-e8be371b.js} +1 -1
  87. package/dist/{index-1c943835.js → index-ef272730.js} +85 -85
  88. package/dist/{index-8602072b.js → index-efa02318.js} +1 -1
  89. package/dist/{index-dab1fe83.js → index-f45679dc.js} +1 -1
  90. package/dist/{index-1f8ab9b7.js → index-f73e6060.js} +1 -1
  91. package/dist/{index-bbbac46e.js → index-f885a223.js} +1 -1
  92. package/dist/{index-b70b58c7.js → index-faab19d5.js} +2 -2
  93. package/dist/index.es.js +1 -1
  94. package/package.json +1 -1
package/dist/Button.es.js CHANGED
@@ -1,15 +1,15 @@
1
- import { j as l } from "./jsx-runtime-944c88e2.js";
2
- import { c as m } from "./utils-7e50508b.js";
3
- import { a as e, u as c } from "./index-96a8d125.js";
4
- import * as g from "react";
5
- const D = e("bu-text-light-second", {
1
+ import { j as a } from "./jsx-runtime-944c88e2.js";
2
+ import { c as v } from "./utils-7e50508b.js";
3
+ import { a as e, u as g, c as D } from "./index-96a8d125.js";
4
+ import * as o from "react";
5
+ const E = e("bu-text-light-second", {
6
6
  variants: {
7
7
  theme: {
8
8
  light: ["bu-bg-light-primary", "hover:bu-bg-light-hover-primary"],
9
9
  dark: ["bu-bg-dark-primary", "hover:bu-bg-dark-hover-primary"]
10
10
  }
11
11
  }
12
- }), N = e("", {
12
+ }), $ = e("", {
13
13
  variants: {
14
14
  theme: {
15
15
  light: [
@@ -24,7 +24,7 @@ const D = e("bu-text-light-second", {
24
24
  ]
25
25
  }
26
26
  }
27
- }), E = e("", {
27
+ }), N = e("", {
28
28
  variants: {
29
29
  theme: {
30
30
  light: [
@@ -50,7 +50,7 @@ const D = e("bu-text-light-second", {
50
50
  ]
51
51
  }
52
52
  }
53
- }), L = e("", {
53
+ }), M = e("", {
54
54
  variants: {
55
55
  theme: {
56
56
  light: [
@@ -65,7 +65,7 @@ const D = e("bu-text-light-second", {
65
65
  ]
66
66
  }
67
67
  }
68
- }), R = e("", {
68
+ }), V = e("", {
69
69
  variants: {
70
70
  theme: {
71
71
  light: [
@@ -80,35 +80,35 @@ const D = e("bu-text-light-second", {
80
80
  ]
81
81
  }
82
82
  }
83
- }), F = e("", {
83
+ }), Z = e("", {
84
84
  variants: {
85
85
  theme: {
86
86
  light: ["bu-text-light-label", "hover:bu-text-light-primary"],
87
87
  dark: ["bu-text-dark-label", "hover:bu-text-dark-primary"]
88
88
  }
89
89
  }
90
- }), W = e("", {
90
+ }), H = e("", {
91
91
  variants: {
92
92
  theme: {
93
93
  light: ["bu-text-light-label-40", "hover:bu-text-light-label-40"],
94
94
  dark: ["bu-text-dark-label-40", "hover:bu-text-dark-label-40"]
95
95
  }
96
96
  }
97
- }), M = e("", {
97
+ }), R = e("", {
98
98
  variants: {
99
99
  theme: {
100
100
  light: ["bu-text-light-label-40", "hover:bu-text-light-primary"],
101
101
  dark: ["bu-text-dark-label-40", "hover:bu-text-dark-primary"]
102
102
  }
103
103
  }
104
- }), P = e("", {
104
+ }), F = e("", {
105
105
  variants: {
106
106
  theme: {
107
107
  light: ["bu-text-light-label-40", "hover:bu-text-light-label-40"],
108
108
  dark: ["bu-text-dark-label-40", "hover:bu-text-dark-label-40"]
109
109
  }
110
110
  }
111
- }), T = e("", {
111
+ }), W = e("", {
112
112
  variants: {
113
113
  theme: {
114
114
  light: [
@@ -129,7 +129,7 @@ const D = e("bu-text-light-second", {
129
129
  ]
130
130
  }
131
131
  }
132
- }), V = e("", {
132
+ }), P = e("", {
133
133
  variants: {
134
134
  theme: {
135
135
  light: [
@@ -150,7 +150,28 @@ const D = e("bu-text-light-second", {
150
150
  ]
151
151
  }
152
152
  }
153
- }), x = e("", {
153
+ }), T = e("", {
154
+ variants: {
155
+ theme: {
156
+ light: [
157
+ "bu-text-light-label",
158
+ "hover:bu-text-light-label",
159
+ "bu-border",
160
+ "bu-border-solid",
161
+ "bu-border-light-label",
162
+ "hover:bu-bg-light-fill-secondary"
163
+ ],
164
+ dark: [
165
+ "bu-text-dark-label",
166
+ "hover:bu-text-dark-label",
167
+ "bu-border",
168
+ "bu-border-solid",
169
+ "bu-border-dark-label",
170
+ "hover:bu-bg-dark-fill-secondary"
171
+ ]
172
+ }
173
+ }
174
+ }), n = e("", {
154
175
  variants: {
155
176
  theme: {
156
177
  light: [
@@ -171,28 +192,28 @@ const D = e("bu-text-light-second", {
171
192
  ]
172
193
  }
173
194
  }
174
- }), Z = e("bu-text-white", {
195
+ }), q = e("bu-text-white", {
175
196
  variants: {
176
197
  theme: {
177
198
  light: ["bu-bg-light-green", "hover:bu-bg-light-hover-green"],
178
199
  dark: ["bu-bg-dark-green", "hover:bu-bg-dark-hover-green"]
179
200
  }
180
201
  }
181
- }), q = e("bu-text-white", {
202
+ }), z = e("bu-text-white", {
182
203
  variants: {
183
204
  theme: {
184
205
  light: ["bu-bg-light-label-20", "hover:bu-bg-light-label-20"],
185
206
  dark: ["bu-bg-dark-label-20", "hover:bu-bg-dark-label-20"]
186
207
  }
187
208
  }
188
- }), z = e("bu-text-white", {
209
+ }), A = e("bu-text-white", {
189
210
  variants: {
190
211
  theme: {
191
212
  light: ["bu-bg-light-red", "hover:bu-bg-light-hover-red"],
192
213
  dark: ["bu-bg-dark-red", "hover:bu-bg-dark-hover-red"]
193
214
  }
194
215
  }
195
- }), A = e("bu-text-white", {
216
+ }), G = e("bu-text-white", {
196
217
  variants: {
197
218
  theme: {
198
219
  light: ["bu-bg-light-label-20", "hover:bu-bg-light-label-20"],
@@ -212,50 +233,54 @@ const D = e("bu-text-light-second", {
212
233
  ]
213
234
  }
214
235
  }
215
- }), v = {
236
+ }), y = {
216
237
  primary: {
217
- variant: D,
218
- disabled: N
238
+ variant: E,
239
+ disabled: $
219
240
  },
220
241
  secondary: {
221
- variant: E,
242
+ variant: N,
222
243
  disabled: B
223
244
  },
224
245
  tertiary: {
225
- variant: L,
226
- disabled: R
246
+ variant: M,
247
+ disabled: V
227
248
  },
228
249
  text: {
229
- variant: F,
230
- disabled: W
250
+ variant: Z,
251
+ disabled: H
231
252
  },
232
253
  ghost: {
233
- variant: T,
234
- disabled: x
254
+ variant: W,
255
+ disabled: n
235
256
  },
236
257
  ghost2: {
237
- variant: V,
238
- disabled: x
258
+ variant: P,
259
+ disabled: n
260
+ },
261
+ ghost3: {
262
+ variant: T,
263
+ disabled: n
239
264
  },
240
265
  info: {
241
- variant: M,
242
- disabled: P
266
+ variant: R,
267
+ disabled: F
243
268
  },
244
269
  buy: {
245
- variant: Z,
246
- disabled: q
270
+ variant: q,
271
+ disabled: z
247
272
  },
248
273
  sell: {
249
- variant: z,
250
- disabled: A
274
+ variant: A,
275
+ disabled: G
251
276
  },
252
277
  function: {
253
278
  variant: p,
254
279
  disabled: p
255
280
  //this not have disabled
256
281
  }
257
- }, G = (t) => {
258
- const { theme: a, variant: d, disabled: u, shape: b } = t, r = u ? "" : v[d].variant({ theme: a });
282
+ }, J = (t) => {
283
+ const { theme: l, variant: b, disabled: d, shape: i } = t, r = d ? "" : y[b].variant({ theme: l });
259
284
  return e("bu-box-border bu-inline-flex bu-items-center bu-justify-center bu-font-medium", {
260
285
  variants: {
261
286
  variant: {
@@ -265,28 +290,29 @@ const D = e("bu-text-light-second", {
265
290
  text: r,
266
291
  ghost: r,
267
292
  ghost2: r,
293
+ ghost3: r,
268
294
  info: r,
269
295
  buy: r,
270
296
  sell: r,
271
297
  function: r
272
298
  },
273
299
  size: {
274
- small: `${b === "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]`,
275
- "m-small": `${b === "circle" ? "bu-h-[32px] bu-min-w-[30px]" : "bu-h-[32px] bu-min-w-[80px] bu-rounded-[var(--btn-rounded-small)]"} bu-px-[12px] bu-text-[12px] bu-leading-[18px]`,
276
- medium: `${b === "circle" ? "bu-h-[40px] bu-min-w-[40px]" : "bu-h-[40px] bu-min-w-[100px] bu-rounded-[var(--btn-rounded-medium)]"} bu-px-[16px] bu-text-[14px] bu-leading-[20px]`,
277
- large: `${b === "circle" ? "bu-h-[48px] bu-min-w-[48px]" : "bu-h-[48px] bu-min-w-[140px] bu-rounded-[var(--btn-rounded-medium)]"} bu-px-[24px] bu-text-[16px] bu-leading-[24px]`,
278
- max: `${b === "circle" ? "bu-h-[56px] bu-min-w-[56px]" : "bu-h-[56px] bu-min-w-[180px] bu-rounded-[var(--btn-rounded-medium)]"} bu-px-[24px] bu-text-[18px] bu-leading-[26px]`
300
+ 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]`,
301
+ "m-small": `${i === "circle" ? "bu-h-[32px] bu-min-w-[30px]" : "bu-h-[32px] bu-min-w-[80px] bu-rounded-[var(--btn-rounded-small)]"} bu-px-[12px] bu-text-[12px] bu-leading-[18px]`,
302
+ medium: `${i === "circle" ? "bu-h-[40px] bu-min-w-[40px]" : "bu-h-[40px] bu-min-w-[100px] bu-rounded-[var(--btn-rounded-medium)]"} bu-px-[16px] bu-text-[14px] bu-leading-[20px]`,
303
+ large: `${i === "circle" ? "bu-h-[48px] bu-min-w-[48px]" : "bu-h-[48px] bu-min-w-[140px] bu-rounded-[var(--btn-rounded-medium)]"} bu-px-[24px] bu-text-[16px] bu-leading-[24px]`,
304
+ max: `${i === "circle" ? "bu-h-[56px] bu-min-w-[56px]" : "bu-h-[56px] bu-min-w-[180px] bu-rounded-[var(--btn-rounded-medium)]"} bu-px-[24px] bu-text-[18px] bu-leading-[26px]`
279
305
  },
280
306
  shape: {
281
307
  normal: "",
282
308
  circle: "bu-rounded-[50%] bu-px-[0px] bu-py-[0px]"
283
309
  },
284
310
  disabled: {
285
- true: v[d].disabled({ theme: a })
311
+ true: y[b].disabled({ theme: l })
286
312
  }
287
313
  }
288
314
  })(t);
289
- }, H = e("bu-animate-spin", {
315
+ }, K = e("bu-animate-spin", {
290
316
  variants: {
291
317
  size: {
292
318
  small: "bu-h-[14px] bu-w-[14px]",
@@ -296,7 +322,7 @@ const D = e("bu-text-light-second", {
296
322
  max: "bu-h-[28px] bu-w-[28px]"
297
323
  }
298
324
  }
299
- }), i = {
325
+ }), u = {
300
326
  "loader-medium": "_loader-medium_amaox_2",
301
327
  "animloader-medium": "_animloader-medium_amaox_1",
302
328
  "loader-light": "_loader-light_amaox_12",
@@ -307,71 +333,89 @@ const D = e("bu-text-light-second", {
307
333
  "animloader-small": "_animloader-small_amaox_1",
308
334
  "loader-m-small": "_loader-m-small_amaox_82",
309
335
  "animloader-m-small": "_animloader-m-small_amaox_1"
310
- }, J = ({ size: t, theme: a }) => {
311
- const d = {
312
- small: i["loader-small"],
313
- medium: i["loader-medium"],
314
- large: i["loader-large"],
315
- max: i["loader-large"],
316
- "m-small": i["loader-m-small"]
317
- }, u = {
318
- light: i["loader-light"],
319
- dark: i["loader-dark"]
336
+ }, O = ({ size: t, theme: l }) => {
337
+ const b = {
338
+ small: u["loader-small"],
339
+ medium: u["loader-medium"],
340
+ large: u["loader-large"],
341
+ max: u["loader-large"],
342
+ "m-small": u["loader-m-small"]
343
+ }, d = {
344
+ light: u["loader-light"],
345
+ dark: u["loader-dark"]
320
346
  };
321
- return /* @__PURE__ */ l.jsx("span", { className: `${d[t]} ${u[a]}` });
322
- }, K = (t) => /* @__PURE__ */ g.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ g.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" })), y = ({
347
+ return /* @__PURE__ */ a.jsx("span", { className: `${b[t]} ${d[l]}` });
348
+ }, Q = (t) => /* @__PURE__ */ o.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.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" })), U = (t) => /* @__PURE__ */ o.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M12 6C12 2.68629 9.31371 0 6 0H0V6C0 9.31371 2.68629 12 6 12H12V6Z", fill: "currentColor" }), /* @__PURE__ */ o.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" })), X = (t) => /* @__PURE__ */ o.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M12 6C12 2.68629 9.31371 0 6 0H0V6C0 9.31371 2.68629 12 6 12H12V6Z", fill: "currentColor" }), /* @__PURE__ */ o.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" })), h = ({
323
349
  size: t = "large",
324
- disabled: a = !1,
325
- variant: d = "primary",
326
- children: u,
327
- startIcon: b,
350
+ disabled: l = !1,
351
+ variant: b = "primary",
352
+ children: d,
353
+ startIcon: i,
328
354
  endIcon: r,
329
355
  icon: k,
330
- onClick: s,
356
+ onClick: m,
331
357
  shape: f = "normal",
332
- className: _ = "",
333
- theme: h,
334
- loading: o,
335
- loadingType: w = "default",
358
+ className: w = "",
359
+ theme: x,
360
+ loading: s,
361
+ loadingType: _ = "default",
336
362
  ...S
337
363
  }) => {
338
- const j = (C) => {
339
- o || s && s(C);
340
- }, { theme: n } = c(), $ = {
341
- variant: o ? "tertiary" : d,
364
+ const C = (j) => {
365
+ s || m && m(j);
366
+ }, { theme: c } = g(), L = {
367
+ variant: s ? "tertiary" : b,
342
368
  size: t,
343
- theme: h || n,
369
+ theme: x || c,
344
370
  shape: f,
345
- disabled: o ? !0 : a
371
+ disabled: s ? !0 : l
346
372
  };
347
- return /* @__PURE__ */ l.jsx(
373
+ return /* @__PURE__ */ a.jsx(
348
374
  "button",
349
375
  {
350
376
  type: "button",
351
- onClick: j,
352
- className: `${m(G($))} ${_}`,
353
- disabled: a,
377
+ onClick: C,
378
+ className: `${v(J(L))} ${w}`,
379
+ disabled: l,
354
380
  ...S,
355
- children: o ? w === "refresh" ? /* @__PURE__ */ l.jsx(K, { className: m(H({ size: t })) }) : /* @__PURE__ */ l.jsx(J, { size: t, theme: n }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
356
- b && /* @__PURE__ */ l.jsx("span", { className: "bu-mr-[9px]", children: b }),
357
- u,
358
- r && /* @__PURE__ */ l.jsx("span", { className: "bu-ml-[9px] bu-flex bu-items-center", children: r }),
381
+ children: s ? _ === "refresh" ? /* @__PURE__ */ a.jsx(Q, { className: v(K({ size: t })) }) : /* @__PURE__ */ a.jsx(O, { size: t, theme: c }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
382
+ i && /* @__PURE__ */ a.jsx("span", { className: "bu-mr-[9px]", children: i }),
383
+ d,
384
+ r && /* @__PURE__ */ a.jsx("span", { className: "bu-ml-[9px] bu-flex bu-items-center", children: r }),
359
385
  k
360
386
  ] })
361
387
  }
362
388
  );
363
- }, O = (t) => {
364
- const { theme: a } = c();
365
- return /* @__PURE__ */ l.jsx(
366
- y,
389
+ }, Y = (t) => {
390
+ const { theme: l } = g(), { checked: b } = t;
391
+ return /* @__PURE__ */ a.jsxs("div", { className: "bu-relative", children: [
392
+ /* @__PURE__ */ a.jsx(h, { ...t, variant: "ghost3" }),
393
+ /* @__PURE__ */ a.jsx(
394
+ "div",
395
+ {
396
+ className: D(
397
+ "bu-absolute bu-right-0 bu-top-0",
398
+ l === "light" ? "bu-text-light-label" : "bu-text-dark-label",
399
+ "bu-rounded-bl-[8px] bu-rounded-br-none bu-rounded-tl-none bu-rounded-tr-[8px]",
400
+ "bu-flex bu-items-center bu-justify-center"
401
+ ),
402
+ children: b ? l === "light" ? /* @__PURE__ */ a.jsx(U, {}) : /* @__PURE__ */ a.jsx(X, {}) : null
403
+ }
404
+ )
405
+ ] });
406
+ }, I = (t) => {
407
+ const { theme: l } = g();
408
+ return /* @__PURE__ */ a.jsx(
409
+ h,
367
410
  {
368
411
  ...t,
369
412
  variant: "ghost",
370
- 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`
413
+ 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`
371
414
  }
372
415
  );
373
416
  };
374
- y.WhiteButton = O;
417
+ h.WhiteButton = I;
418
+ h.CheckButton = Y;
375
419
  export {
376
- y as Button
420
+ h as Button
377
421
  };