@blofin/blofin-ui 0.7.42 → 0.7.44-beta.3
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.
- package/dist/Button.es.js +149 -113
- package/dist/blofin.css +1 -1
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Button/styles.d.ts +1 -0
- package/dist/components/TextSelect/TextSelect.d.ts +1 -0
- package/dist/{index-2315df64.js → index-025252f5.js} +1 -1
- package/dist/{index-44ebf09f.js → index-087235c5.js} +1 -1
- package/dist/{index-9b6cc2b1.js → index-0b6f8d3e.js} +1 -1
- package/dist/{index-a72c684c.js → index-14665dd6.js} +1 -1
- package/dist/{index-3fb87b73.js → index-14e296a2.js} +1 -1
- package/dist/{index-6374da23.js → index-16b5f8ed.js} +1 -1
- package/dist/{index-754413fc.js → index-16eac128.js} +2 -2
- package/dist/{index-510d9b04.js → index-226aab08.js} +1 -1
- package/dist/{index-bc221de3.js → index-239df95d.js} +1 -1
- package/dist/{index-7d31245a.js → index-28016c3a.js} +1 -1
- package/dist/{index-cacbc07e.js → index-2e5e4196.js} +1 -1
- package/dist/{index-0aba3856.js → index-2fc72fcf.js} +1 -1
- package/dist/{index-b0aec542.js → index-31d8b370.js} +1 -1
- package/dist/{index-14b1b312.js → index-32198b38.js} +1 -1
- package/dist/{index-f73e6060.js → index-330991e1.js} +1 -1
- package/dist/{index-6f42870c.js → index-33cdd565.js} +1 -1
- package/dist/{index-ce514430.js → index-3470a864.js} +2 -2
- package/dist/{index-bbad6241.js → index-35dac333.js} +1 -1
- package/dist/{index-0986c2b0.js → index-3f71fdc5.js} +1 -1
- package/dist/{index-78345655.js → index-4071c335.js} +2 -2
- package/dist/{index-7ca02ec0.js → index-4363b2da.js} +1 -1
- package/dist/{index-9eb58ef8.js → index-439ddcf8.js} +3 -3
- package/dist/{index-cd5f812e.js → index-473e7fee.js} +1 -1
- package/dist/{index-e062e35b.js → index-4c1969f9.js} +2 -2
- package/dist/{index-b7551c97.js → index-4e23ba06.js} +1 -1
- package/dist/{index-ac5f7507.js → index-4edef8d6.js} +1 -1
- package/dist/{index-afa200bc.js → index-50ab80fa.js} +1 -1
- package/dist/{index-12672ea8.js → index-53d1cf08.js} +1 -1
- package/dist/{index-897866a7.js → index-58aa51b0.js} +1 -1
- package/dist/{index-378ae10a.js → index-5935bb80.js} +1 -1
- package/dist/{index-c843ba96.js → index-5d4517c6.js} +1 -1
- package/dist/{index-55f9fa00.js → index-5d785550.js} +1 -1
- package/dist/{index-d3469783.js → index-5ec54e23.js} +1 -1
- package/dist/{index-2c82c248.js → index-6004f67b.js} +1 -1
- package/dist/{index-e1fe8884.js → index-6553d008.js} +1 -1
- package/dist/{index-61c2d581.js → index-66feb849.js} +1 -1
- package/dist/{index-af6dafda.js → index-68c42ca6.js} +1 -1
- package/dist/{index-4151d7f5.js → index-6903ee24.js} +1 -1
- package/dist/{index-5170f138.js → index-6c515bff.js} +1 -1
- package/dist/{index-02870068.js → index-6ecae99b.js} +1 -1
- package/dist/{index-2b9fb78b.js → index-6ed6b711.js} +1 -1
- package/dist/{index-ef272730.js → index-7a715ebe.js} +2174 -2171
- package/dist/{index-3d94657c.js → index-7ed1a02b.js} +2 -2
- package/dist/{index-efa02318.js → index-7f4092fe.js} +1 -1
- package/dist/{index-ad3ebb3b.js → index-8018186e.js} +1 -1
- package/dist/{index-95632a09.js → index-802bde04.js} +1 -1
- package/dist/{index-87500c10.js → index-815e012c.js} +1 -1
- package/dist/{index-c93a2cdb.js → index-8727c086.js} +2 -2
- package/dist/{index-094bcf08.js → index-8d142982.js} +1 -1
- package/dist/{index-6cea4284.js → index-8d7e3494.js} +2 -2
- package/dist/{index-9eed865e.js → index-8e95c7b0.js} +1 -1
- package/dist/{index-68342408.js → index-90a28792.js} +1 -1
- package/dist/{index-a69679f3.js → index-90ed8dd2.js} +1 -1
- package/dist/{index-f45679dc.js → index-95ae256f.js} +1 -1
- package/dist/{index-4cc7c324.js → index-99df8849.js} +1 -1
- package/dist/{index-732322ae.js → index-9dc15446.js} +1 -1
- package/dist/{index-85699750.js → index-9f07c42e.js} +1 -1
- package/dist/{index-13784a31.js → index-a2e53155.js} +2 -2
- package/dist/{index-e8be371b.js → index-a2ffd1b3.js} +1 -1
- package/dist/{index-faab19d5.js → index-a9bffed9.js} +2 -2
- package/dist/{index-41f7df25.js → index-acef8e3f.js} +1 -1
- package/dist/{index-ce178925.js → index-ae4564a1.js} +1 -1
- package/dist/{index-67e5a3e1.js → index-b066c7e0.js} +1 -1
- package/dist/{index-0856c013.js → index-b0a7b5ad.js} +1 -1
- package/dist/{index-387f96aa.js → index-b26611e9.js} +1 -1
- package/dist/{index-238458b4.js → index-b34ad934.js} +2 -2
- package/dist/{index-38b48528.js → index-b44a791b.js} +2 -2
- package/dist/{index-d5369658.js → index-bcc45546.js} +3 -3
- package/dist/{index-10c81e54.js → index-bf762ce5.js} +1 -1
- package/dist/{index-bbdfde99.js → index-c89d5f51.js} +1 -1
- package/dist/{index-ad10e4ca.js → index-ca9e6cfa.js} +1 -1
- package/dist/{index-de069768.js → index-cab013ba.js} +1 -1
- package/dist/{index-cab8e206.js → index-cbc00dbf.js} +1 -1
- package/dist/{index-7c55b000.js → index-d3045046.js} +2 -2
- package/dist/{index-a6d385f1.js → index-d3509244.js} +2 -2
- package/dist/{index-121a4fde.js → index-d58aa892.js} +2 -2
- package/dist/{index-159b4ecd.js → index-dab00167.js} +1 -1
- package/dist/{index-822af086.js → index-dadc9432.js} +1 -1
- package/dist/{index-c1f87a62.js → index-e037a57c.js} +1 -1
- package/dist/{index-8999f690.js → index-e3f71f0d.js} +1 -1
- package/dist/{index-b3d00db2.js → index-e5812d29.js} +1 -1
- package/dist/{index-f885a223.js → index-e5c402b2.js} +1 -1
- package/dist/{index-7d646751.js → index-e6d23180.js} +1 -1
- package/dist/{index-00560307.js → index-e6e6c79b.js} +2 -2
- package/dist/{index-34945a2a.js → index-e8ac99ae.js} +1 -1
- package/dist/{index-27f10cf8.js → index-eda1bf1c.js} +1 -1
- package/dist/{index-54a2f0a6.js → index-eedd6869.js} +2 -2
- package/dist/{index-8bc5995b.js → index-ff5c324f.js} +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +1 -1
package/dist/Button.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { c as
|
|
3
|
-
import { a as e, u as
|
|
4
|
-
import * as
|
|
5
|
-
const
|
|
1
|
+
import { j as r } from "./jsx-runtime-944c88e2.js";
|
|
2
|
+
import { c as k } from "./utils-7e50508b.js";
|
|
3
|
+
import { a as e, u as x, c as g } from "./index-96a8d125.js";
|
|
4
|
+
import * as d from "react";
|
|
5
|
+
const N = e("bu-text-light-second", {
|
|
6
6
|
variants: {
|
|
7
7
|
theme: {
|
|
8
8
|
light: ["bu-bg-light-primary", "hover:bu-bg-light-hover-primary"],
|
|
@@ -24,7 +24,7 @@ const E = e("bu-text-light-second", {
|
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
27
|
+
}), B = e("", {
|
|
28
28
|
variants: {
|
|
29
29
|
theme: {
|
|
30
30
|
light: [
|
|
@@ -35,7 +35,7 @@ const E = e("bu-text-light-second", {
|
|
|
35
35
|
dark: ["bu-bg-dark-primary-14", "hover:bu-bg-dark-hover-primary-10", "bu-text-dark-primary"]
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
}),
|
|
38
|
+
}), V = e("", {
|
|
39
39
|
variants: {
|
|
40
40
|
theme: {
|
|
41
41
|
light: [
|
|
@@ -65,7 +65,7 @@ const E = e("bu-text-light-second", {
|
|
|
65
65
|
]
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
}),
|
|
68
|
+
}), Z = e("", {
|
|
69
69
|
variants: {
|
|
70
70
|
theme: {
|
|
71
71
|
light: [
|
|
@@ -80,35 +80,35 @@ const E = e("bu-text-light-second", {
|
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
}),
|
|
83
|
+
}), H = 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
|
-
}),
|
|
90
|
+
}), R = 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
|
-
}),
|
|
97
|
+
}), F = 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
|
-
}),
|
|
104
|
+
}), W = 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
|
-
}),
|
|
111
|
+
}), P = e("", {
|
|
112
112
|
variants: {
|
|
113
113
|
theme: {
|
|
114
114
|
light: [
|
|
@@ -129,7 +129,7 @@ const E = e("bu-text-light-second", {
|
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
}),
|
|
132
|
+
}), T = e("", {
|
|
133
133
|
variants: {
|
|
134
134
|
theme: {
|
|
135
135
|
light: [
|
|
@@ -150,7 +150,7 @@ const E = e("bu-text-light-second", {
|
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
}),
|
|
153
|
+
}), q = e("", {
|
|
154
154
|
variants: {
|
|
155
155
|
theme: {
|
|
156
156
|
light: [
|
|
@@ -158,7 +158,6 @@ const E = e("bu-text-light-second", {
|
|
|
158
158
|
"hover:bu-text-light-label",
|
|
159
159
|
"bu-border",
|
|
160
160
|
"bu-border-solid",
|
|
161
|
-
"bu-border-light-label",
|
|
162
161
|
"hover:bu-bg-light-fill-secondary"
|
|
163
162
|
],
|
|
164
163
|
dark: [
|
|
@@ -166,12 +165,37 @@ const E = e("bu-text-light-second", {
|
|
|
166
165
|
"hover:bu-text-dark-label",
|
|
167
166
|
"bu-border",
|
|
168
167
|
"bu-border-solid",
|
|
169
|
-
"bu-border-dark-label",
|
|
170
168
|
"hover:bu-bg-dark-fill-secondary"
|
|
171
169
|
]
|
|
170
|
+
},
|
|
171
|
+
checked: {
|
|
172
|
+
true: "",
|
|
173
|
+
false: ""
|
|
172
174
|
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
+
},
|
|
176
|
+
compoundVariants: [
|
|
177
|
+
{
|
|
178
|
+
theme: "light",
|
|
179
|
+
checked: !0,
|
|
180
|
+
class: ["bu-border-light-label"]
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
theme: "light",
|
|
184
|
+
checked: !1,
|
|
185
|
+
class: ["bu-border-light-line-secondary"]
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
theme: "dark",
|
|
189
|
+
checked: !0,
|
|
190
|
+
class: ["bu-border-dark-label"]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
theme: "dark",
|
|
194
|
+
checked: !1,
|
|
195
|
+
class: ["bu-border-dark-line-secondary"]
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}), m = e("", {
|
|
175
199
|
variants: {
|
|
176
200
|
theme: {
|
|
177
201
|
light: [
|
|
@@ -187,40 +211,40 @@ const E = e("bu-text-light-second", {
|
|
|
187
211
|
"hover:bu-text-dark-label-40",
|
|
188
212
|
"bu-border",
|
|
189
213
|
"bu-border-solid",
|
|
190
|
-
"bu-border-dark-
|
|
214
|
+
"bu-border-dark-line-secondary",
|
|
191
215
|
"hover:bu-bg-transparent"
|
|
192
216
|
]
|
|
193
217
|
}
|
|
194
218
|
}
|
|
195
|
-
}),
|
|
219
|
+
}), z = e("bu-text-white", {
|
|
196
220
|
variants: {
|
|
197
221
|
theme: {
|
|
198
222
|
light: ["bu-bg-light-green", "hover:bu-bg-light-hover-green"],
|
|
199
223
|
dark: ["bu-bg-dark-green", "hover:bu-bg-dark-hover-green"]
|
|
200
224
|
}
|
|
201
225
|
}
|
|
202
|
-
}),
|
|
226
|
+
}), A = e("bu-text-white", {
|
|
203
227
|
variants: {
|
|
204
228
|
theme: {
|
|
205
229
|
light: ["bu-bg-light-label-20", "hover:bu-bg-light-label-20"],
|
|
206
230
|
dark: ["bu-bg-dark-label-20", "hover:bu-bg-dark-label-20"]
|
|
207
231
|
}
|
|
208
232
|
}
|
|
209
|
-
}),
|
|
233
|
+
}), G = e("bu-text-white", {
|
|
210
234
|
variants: {
|
|
211
235
|
theme: {
|
|
212
236
|
light: ["bu-bg-light-red", "hover:bu-bg-light-hover-red"],
|
|
213
237
|
dark: ["bu-bg-dark-red", "hover:bu-bg-dark-hover-red"]
|
|
214
238
|
}
|
|
215
239
|
}
|
|
216
|
-
}),
|
|
240
|
+
}), J = e("bu-text-white", {
|
|
217
241
|
variants: {
|
|
218
242
|
theme: {
|
|
219
243
|
light: ["bu-bg-light-label-20", "hover:bu-bg-light-label-20"],
|
|
220
244
|
dark: ["bu-bg-dark-label-20", "hover:bu-bg-dark-label-20"]
|
|
221
245
|
}
|
|
222
246
|
}
|
|
223
|
-
}),
|
|
247
|
+
}), y = e("bu-border bu-border-solid bu-font-medium", {
|
|
224
248
|
variants: {
|
|
225
249
|
theme: {
|
|
226
250
|
light: [
|
|
@@ -233,68 +257,68 @@ const E = e("bu-text-light-second", {
|
|
|
233
257
|
]
|
|
234
258
|
}
|
|
235
259
|
}
|
|
236
|
-
}),
|
|
260
|
+
}), f = {
|
|
237
261
|
primary: {
|
|
238
|
-
variant:
|
|
262
|
+
variant: N,
|
|
239
263
|
disabled: $
|
|
240
264
|
},
|
|
241
265
|
secondary: {
|
|
242
|
-
variant:
|
|
243
|
-
disabled:
|
|
266
|
+
variant: B,
|
|
267
|
+
disabled: V
|
|
244
268
|
},
|
|
245
269
|
tertiary: {
|
|
246
270
|
variant: M,
|
|
247
|
-
disabled:
|
|
271
|
+
disabled: Z
|
|
248
272
|
},
|
|
249
273
|
text: {
|
|
250
|
-
variant:
|
|
251
|
-
disabled:
|
|
274
|
+
variant: H,
|
|
275
|
+
disabled: R
|
|
252
276
|
},
|
|
253
277
|
ghost: {
|
|
254
|
-
variant:
|
|
255
|
-
disabled:
|
|
278
|
+
variant: P,
|
|
279
|
+
disabled: m
|
|
256
280
|
},
|
|
257
281
|
ghost2: {
|
|
258
|
-
variant:
|
|
259
|
-
disabled:
|
|
282
|
+
variant: T,
|
|
283
|
+
disabled: m
|
|
260
284
|
},
|
|
261
285
|
ghost3: {
|
|
262
|
-
variant:
|
|
263
|
-
disabled:
|
|
286
|
+
variant: q,
|
|
287
|
+
disabled: m
|
|
264
288
|
},
|
|
265
289
|
info: {
|
|
266
|
-
variant:
|
|
267
|
-
disabled:
|
|
290
|
+
variant: F,
|
|
291
|
+
disabled: W
|
|
268
292
|
},
|
|
269
293
|
buy: {
|
|
270
|
-
variant:
|
|
271
|
-
disabled:
|
|
294
|
+
variant: z,
|
|
295
|
+
disabled: A
|
|
272
296
|
},
|
|
273
297
|
sell: {
|
|
274
|
-
variant:
|
|
275
|
-
disabled:
|
|
298
|
+
variant: G,
|
|
299
|
+
disabled: J
|
|
276
300
|
},
|
|
277
301
|
function: {
|
|
278
|
-
variant:
|
|
279
|
-
disabled:
|
|
302
|
+
variant: y,
|
|
303
|
+
disabled: y
|
|
280
304
|
//this not have disabled
|
|
281
305
|
}
|
|
282
|
-
},
|
|
283
|
-
const { theme: l, variant: b, disabled:
|
|
306
|
+
}, K = (t) => {
|
|
307
|
+
const { theme: l, variant: b, disabled: u, shape: i, checked: s } = t, a = u ? "" : f[b].variant({ theme: l, checked: s });
|
|
284
308
|
return e("bu-box-border bu-inline-flex bu-items-center bu-justify-center bu-font-medium", {
|
|
285
309
|
variants: {
|
|
286
310
|
variant: {
|
|
287
|
-
primary:
|
|
288
|
-
secondary:
|
|
289
|
-
tertiary:
|
|
290
|
-
text:
|
|
291
|
-
ghost:
|
|
292
|
-
ghost2:
|
|
293
|
-
ghost3:
|
|
294
|
-
info:
|
|
295
|
-
buy:
|
|
296
|
-
sell:
|
|
297
|
-
function:
|
|
311
|
+
primary: a,
|
|
312
|
+
secondary: a,
|
|
313
|
+
tertiary: a,
|
|
314
|
+
text: a,
|
|
315
|
+
ghost: a,
|
|
316
|
+
ghost2: a,
|
|
317
|
+
ghost3: a,
|
|
318
|
+
info: a,
|
|
319
|
+
buy: a,
|
|
320
|
+
sell: a,
|
|
321
|
+
function: a
|
|
298
322
|
},
|
|
299
323
|
size: {
|
|
300
324
|
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]`,
|
|
@@ -308,11 +332,11 @@ const E = e("bu-text-light-second", {
|
|
|
308
332
|
circle: "bu-rounded-[50%] bu-px-[0px] bu-py-[0px]"
|
|
309
333
|
},
|
|
310
334
|
disabled: {
|
|
311
|
-
true:
|
|
335
|
+
true: f[b].disabled({ theme: l })
|
|
312
336
|
}
|
|
313
337
|
}
|
|
314
338
|
})(t);
|
|
315
|
-
},
|
|
339
|
+
}, O = e("bu-animate-spin", {
|
|
316
340
|
variants: {
|
|
317
341
|
size: {
|
|
318
342
|
small: "bu-h-[14px] bu-w-[14px]",
|
|
@@ -322,7 +346,7 @@ const E = e("bu-text-light-second", {
|
|
|
322
346
|
max: "bu-h-[28px] bu-w-[28px]"
|
|
323
347
|
}
|
|
324
348
|
}
|
|
325
|
-
}),
|
|
349
|
+
}), o = {
|
|
326
350
|
"loader-medium": "_loader-medium_amaox_2",
|
|
327
351
|
"animloader-medium": "_animloader-medium_amaox_1",
|
|
328
352
|
"loader-light": "_loader-light_amaox_12",
|
|
@@ -333,80 +357,92 @@ const E = e("bu-text-light-second", {
|
|
|
333
357
|
"animloader-small": "_animloader-small_amaox_1",
|
|
334
358
|
"loader-m-small": "_loader-m-small_amaox_82",
|
|
335
359
|
"animloader-m-small": "_animloader-m-small_amaox_1"
|
|
336
|
-
},
|
|
360
|
+
}, Q = ({ size: t, theme: l }) => {
|
|
337
361
|
const b = {
|
|
338
|
-
small:
|
|
339
|
-
medium:
|
|
340
|
-
large:
|
|
341
|
-
max:
|
|
342
|
-
"m-small":
|
|
343
|
-
},
|
|
344
|
-
light:
|
|
345
|
-
dark:
|
|
362
|
+
small: o["loader-small"],
|
|
363
|
+
medium: o["loader-medium"],
|
|
364
|
+
large: o["loader-large"],
|
|
365
|
+
max: o["loader-large"],
|
|
366
|
+
"m-small": o["loader-m-small"]
|
|
367
|
+
}, u = {
|
|
368
|
+
light: o["loader-light"],
|
|
369
|
+
dark: o["loader-dark"]
|
|
346
370
|
};
|
|
347
|
-
return /* @__PURE__ */
|
|
348
|
-
},
|
|
371
|
+
return /* @__PURE__ */ r.jsx("span", { className: `${b[t]} ${u[l]}` });
|
|
372
|
+
}, U = (t) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__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 = (t) => /* @__PURE__ */ d.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__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 = (t) => /* @__PURE__ */ d.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__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 = ({
|
|
349
373
|
size: t = "large",
|
|
350
374
|
disabled: l = !1,
|
|
351
375
|
variant: b = "primary",
|
|
352
|
-
children:
|
|
376
|
+
children: u,
|
|
353
377
|
startIcon: i,
|
|
354
|
-
endIcon:
|
|
355
|
-
icon:
|
|
356
|
-
onClick:
|
|
357
|
-
shape:
|
|
358
|
-
className:
|
|
359
|
-
theme:
|
|
360
|
-
loading:
|
|
361
|
-
loadingType:
|
|
362
|
-
|
|
378
|
+
endIcon: s,
|
|
379
|
+
icon: a,
|
|
380
|
+
onClick: c,
|
|
381
|
+
shape: w = "normal",
|
|
382
|
+
className: _ = "",
|
|
383
|
+
theme: v,
|
|
384
|
+
loading: h,
|
|
385
|
+
loadingType: S = "default",
|
|
386
|
+
checked: C = !0,
|
|
387
|
+
...L
|
|
363
388
|
}) => {
|
|
364
|
-
const
|
|
365
|
-
|
|
366
|
-
}, { theme:
|
|
367
|
-
variant:
|
|
389
|
+
const j = (E) => {
|
|
390
|
+
h || c && c(E);
|
|
391
|
+
}, { theme: p } = x(), D = {
|
|
392
|
+
variant: h ? "tertiary" : b,
|
|
368
393
|
size: t,
|
|
369
|
-
theme:
|
|
370
|
-
shape:
|
|
371
|
-
disabled:
|
|
394
|
+
theme: v || p,
|
|
395
|
+
shape: w,
|
|
396
|
+
disabled: h ? !0 : l,
|
|
397
|
+
checked: C
|
|
372
398
|
};
|
|
373
|
-
return /* @__PURE__ */
|
|
399
|
+
return /* @__PURE__ */ r.jsx(
|
|
374
400
|
"button",
|
|
375
401
|
{
|
|
376
402
|
type: "button",
|
|
377
|
-
onClick:
|
|
378
|
-
className: `${
|
|
403
|
+
onClick: j,
|
|
404
|
+
className: `${k(K(D))} ${_}`,
|
|
379
405
|
disabled: l,
|
|
380
|
-
...
|
|
381
|
-
children:
|
|
382
|
-
i && /* @__PURE__ */
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
406
|
+
...L,
|
|
407
|
+
children: h ? S === "refresh" ? /* @__PURE__ */ r.jsx(U, { className: k(O({ size: t })) }) : /* @__PURE__ */ r.jsx(Q, { size: t, theme: p }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
408
|
+
i && /* @__PURE__ */ r.jsx("span", { className: "bu-mr-[9px]", children: i }),
|
|
409
|
+
u,
|
|
410
|
+
s && /* @__PURE__ */ r.jsx("span", { className: "bu-ml-[9px] bu-flex bu-items-center", children: s }),
|
|
411
|
+
a
|
|
386
412
|
] })
|
|
387
413
|
}
|
|
388
414
|
);
|
|
389
|
-
},
|
|
390
|
-
const { theme: l } =
|
|
391
|
-
return /* @__PURE__ */
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
/* @__PURE__ */
|
|
415
|
+
}, I = (t) => {
|
|
416
|
+
const { theme: l } = x(), { checked: b } = t;
|
|
417
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "bu-relative", children: [
|
|
418
|
+
/* @__PURE__ */ r.jsx(n, { ...t, variant: "ghost3" }),
|
|
419
|
+
/* @__PURE__ */ r.jsx(
|
|
394
420
|
"div",
|
|
395
421
|
{
|
|
396
|
-
className:
|
|
422
|
+
className: g(
|
|
397
423
|
"bu-absolute bu-right-0 bu-top-0",
|
|
398
424
|
l === "light" ? "bu-text-light-label" : "bu-text-dark-label",
|
|
399
425
|
"bu-rounded-bl-[8px] bu-rounded-br-none bu-rounded-tl-none bu-rounded-tr-[8px]",
|
|
400
426
|
"bu-flex bu-items-center bu-justify-center"
|
|
401
427
|
),
|
|
402
|
-
children:
|
|
428
|
+
children: l === "light" ? /* @__PURE__ */ r.jsx(
|
|
429
|
+
X,
|
|
430
|
+
{
|
|
431
|
+
className: g(b ? "" : "bu-text-light-line-secondary")
|
|
432
|
+
}
|
|
433
|
+
) : /* @__PURE__ */ r.jsx(
|
|
434
|
+
Y,
|
|
435
|
+
{
|
|
436
|
+
className: g(b ? "" : "bu-text-dark-line-secondary")
|
|
437
|
+
}
|
|
438
|
+
)
|
|
403
439
|
}
|
|
404
440
|
)
|
|
405
441
|
] });
|
|
406
|
-
},
|
|
407
|
-
const { theme: l } =
|
|
408
|
-
return /* @__PURE__ */
|
|
409
|
-
|
|
442
|
+
}, ee = (t) => {
|
|
443
|
+
const { theme: l } = x();
|
|
444
|
+
return /* @__PURE__ */ r.jsx(
|
|
445
|
+
n,
|
|
410
446
|
{
|
|
411
447
|
...t,
|
|
412
448
|
variant: "ghost",
|
|
@@ -414,8 +450,8 @@ const E = e("bu-text-light-second", {
|
|
|
414
450
|
}
|
|
415
451
|
);
|
|
416
452
|
};
|
|
417
|
-
|
|
418
|
-
|
|
453
|
+
n.WhiteButton = ee;
|
|
454
|
+
n.CheckButton = I;
|
|
419
455
|
export {
|
|
420
|
-
|
|
456
|
+
n as Button
|
|
421
457
|
};
|