@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.
- package/dist/Button.es.js +134 -90
- package/dist/blofin.css +1 -1
- package/dist/components/Button/Button.d.ts +3 -0
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/{index-9477b2cb.js → index-00560307.js} +2 -2
- package/dist/{index-7f01d8dd.js → index-02870068.js} +1 -1
- package/dist/{index-95b6f0bc.js → index-0856c013.js} +1 -1
- package/dist/{index-b8965c2b.js → index-094bcf08.js} +1 -1
- package/dist/{index-34889907.js → index-0986c2b0.js} +1 -1
- package/dist/{index-b66d9ee5.js → index-0aba3856.js} +1 -1
- package/dist/{index-f1baf440.js → index-10c81e54.js} +1 -1
- package/dist/{index-d61fc5e7.js → index-121a4fde.js} +2 -2
- package/dist/{index-6bf1e5b1.js → index-12672ea8.js} +1 -1
- package/dist/{index-74875522.js → index-13784a31.js} +2 -2
- package/dist/{index-1636826a.js → index-14b1b312.js} +1 -1
- package/dist/{index-250a9328.js → index-159b4ecd.js} +1 -1
- package/dist/{index-8c7d9df8.js → index-2315df64.js} +1 -1
- package/dist/{index-b0d0cad0.js → index-238458b4.js} +2 -2
- package/dist/{index-274f6048.js → index-27f10cf8.js} +1 -1
- package/dist/{index-992b2a7a.js → index-2b9fb78b.js} +1 -1
- package/dist/{index-d1ce1a79.js → index-2c82c248.js} +1 -1
- package/dist/{index-09577d23.js → index-34945a2a.js} +1 -1
- package/dist/{index-93d4f886.js → index-378ae10a.js} +1 -1
- package/dist/{index-570fd8ad.js → index-387f96aa.js} +1 -1
- package/dist/{index-a7c2f5ad.js → index-38b48528.js} +2 -2
- package/dist/{index-dd6d99fa.js → index-3d94657c.js} +2 -2
- package/dist/{index-361bd36d.js → index-3fb87b73.js} +1 -1
- package/dist/{index-1df423dd.js → index-4151d7f5.js} +1 -1
- package/dist/{index-148b8f22.js → index-41f7df25.js} +1 -1
- package/dist/{index-b576f70d.js → index-44ebf09f.js} +1 -1
- package/dist/{index-8771b527.js → index-4cc7c324.js} +1 -1
- package/dist/{index-45a7f103.js → index-510d9b04.js} +1 -1
- package/dist/{index-33b762d3.js → index-5170f138.js} +1 -1
- package/dist/{index-64e30dda.js → index-54a2f0a6.js} +2 -2
- package/dist/{index-d980cd3e.js → index-55f9fa00.js} +1 -1
- package/dist/{index-653e5c46.js → index-61c2d581.js} +1 -1
- package/dist/{index-f6ceb8dc.js → index-6374da23.js} +1 -1
- package/dist/{index-58391dbe.js → index-67e5a3e1.js} +1 -1
- package/dist/{index-794420a0.js → index-68342408.js} +1 -1
- package/dist/{index-d191677a.js → index-6cea4284.js} +2 -2
- package/dist/{index-81e683b2.js → index-6f42870c.js} +1 -1
- package/dist/{index-2317774b.js → index-732322ae.js} +1 -1
- package/dist/{index-e40b3d11.js → index-754413fc.js} +2 -2
- package/dist/{index-cb3e57d8.js → index-78345655.js} +2 -2
- package/dist/{index-1e12376c.js → index-7c55b000.js} +2 -2
- package/dist/{index-af09ee93.js → index-7ca02ec0.js} +1 -1
- package/dist/{index-b60304e7.js → index-7d31245a.js} +1 -1
- package/dist/{index-2394ba79.js → index-7d646751.js} +1 -1
- package/dist/{index-febc52e7.js → index-822af086.js} +1 -1
- package/dist/{index-1bf4df4d.js → index-85699750.js} +1 -1
- package/dist/{index-f5292ed9.js → index-87500c10.js} +1 -1
- package/dist/{index-41adaced.js → index-897866a7.js} +1 -1
- package/dist/{index-665b367d.js → index-8999f690.js} +1 -1
- package/dist/{index-728becb9.js → index-8bc5995b.js} +1 -1
- package/dist/{index-d9ba7b30.js → index-95632a09.js} +1 -1
- package/dist/{index-d3facad5.js → index-9b6cc2b1.js} +1 -1
- package/dist/{index-d30b0a9d.js → index-9eb58ef8.js} +3 -3
- package/dist/{index-a1eee727.js → index-9eed865e.js} +1 -1
- package/dist/{index-a93a4702.js → index-a69679f3.js} +1 -1
- package/dist/{index-6b11bb9c.js → index-a6d385f1.js} +2 -2
- package/dist/{index-c34e076b.js → index-a72c684c.js} +1 -1
- package/dist/{index-a4c7c50e.js → index-ac5f7507.js} +1 -1
- package/dist/{index-acd83d6b.js → index-ad10e4ca.js} +1 -1
- package/dist/{index-f3f30d79.js → index-ad3ebb3b.js} +1 -1
- package/dist/{index-8b3f0072.js → index-af6dafda.js} +1 -1
- package/dist/{index-5c451d4f.js → index-afa200bc.js} +1 -1
- package/dist/{index-96349006.js → index-b0aec542.js} +1 -1
- package/dist/{index-7bffeb5d.js → index-b3d00db2.js} +1 -1
- package/dist/{index-01ca37c1.js → index-b7551c97.js} +1 -1
- package/dist/{index-d2a8576d.js → index-bbad6241.js} +1 -1
- package/dist/{index-d01aaa34.js → index-bbdfde99.js} +1 -1
- package/dist/{index-4169f8ea.js → index-bc221de3.js} +1 -1
- package/dist/{index-523c6862.js → index-c1f87a62.js} +1 -1
- package/dist/{index-3facda55.js → index-c843ba96.js} +1 -1
- package/dist/{index-a31932fc.js → index-c93a2cdb.js} +2 -2
- package/dist/{index-a9bcc9c5.js → index-cab8e206.js} +1 -1
- package/dist/{index-3e3428af.js → index-cacbc07e.js} +1 -1
- package/dist/{index-669cf5cb.js → index-cd5f812e.js} +1 -1
- package/dist/{index-347d9a70.js → index-ce178925.js} +1 -1
- package/dist/{index-710aa853.js → index-ce514430.js} +2 -2
- package/dist/{index-20703a74.js → index-d3469783.js} +1 -1
- package/dist/{index-ecfd07ee.js → index-d5369658.js} +3 -3
- package/dist/{index-cd6f877c.js → index-de069768.js} +1 -1
- package/dist/{index-069bd2e5.js → index-e062e35b.js} +2 -2
- package/dist/{index-9392256b.js → index-e1fe8884.js} +1 -1
- package/dist/{index-e0fe32de.js → index-e8be371b.js} +1 -1
- package/dist/{index-1c943835.js → index-ef272730.js} +85 -85
- package/dist/{index-8602072b.js → index-efa02318.js} +1 -1
- package/dist/{index-dab1fe83.js → index-f45679dc.js} +1 -1
- package/dist/{index-1f8ab9b7.js → index-f73e6060.js} +1 -1
- package/dist/{index-bbbac46e.js → index-f885a223.js} +1 -1
- package/dist/{index-b70b58c7.js → index-faab19d5.js} +2 -2
- package/dist/index.es.js +1 -1
- package/package.json +1 -1
package/dist/Button.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { c as
|
|
3
|
-
import { a as e, u as c } from "./index-96a8d125.js";
|
|
4
|
-
import * as
|
|
5
|
-
const
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
236
|
+
}), y = {
|
|
216
237
|
primary: {
|
|
217
|
-
variant:
|
|
218
|
-
disabled:
|
|
238
|
+
variant: E,
|
|
239
|
+
disabled: $
|
|
219
240
|
},
|
|
220
241
|
secondary: {
|
|
221
|
-
variant:
|
|
242
|
+
variant: N,
|
|
222
243
|
disabled: B
|
|
223
244
|
},
|
|
224
245
|
tertiary: {
|
|
225
|
-
variant:
|
|
226
|
-
disabled:
|
|
246
|
+
variant: M,
|
|
247
|
+
disabled: V
|
|
227
248
|
},
|
|
228
249
|
text: {
|
|
229
|
-
variant:
|
|
230
|
-
disabled:
|
|
250
|
+
variant: Z,
|
|
251
|
+
disabled: H
|
|
231
252
|
},
|
|
232
253
|
ghost: {
|
|
233
|
-
variant:
|
|
234
|
-
disabled:
|
|
254
|
+
variant: W,
|
|
255
|
+
disabled: n
|
|
235
256
|
},
|
|
236
257
|
ghost2: {
|
|
237
|
-
variant:
|
|
238
|
-
disabled:
|
|
258
|
+
variant: P,
|
|
259
|
+
disabled: n
|
|
260
|
+
},
|
|
261
|
+
ghost3: {
|
|
262
|
+
variant: T,
|
|
263
|
+
disabled: n
|
|
239
264
|
},
|
|
240
265
|
info: {
|
|
241
|
-
variant:
|
|
242
|
-
disabled:
|
|
266
|
+
variant: R,
|
|
267
|
+
disabled: F
|
|
243
268
|
},
|
|
244
269
|
buy: {
|
|
245
|
-
variant:
|
|
246
|
-
disabled:
|
|
270
|
+
variant: q,
|
|
271
|
+
disabled: z
|
|
247
272
|
},
|
|
248
273
|
sell: {
|
|
249
|
-
variant:
|
|
250
|
-
disabled:
|
|
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
|
-
},
|
|
258
|
-
const { theme:
|
|
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: `${
|
|
275
|
-
"m-small": `${
|
|
276
|
-
medium: `${
|
|
277
|
-
large: `${
|
|
278
|
-
max: `${
|
|
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:
|
|
311
|
+
true: y[b].disabled({ theme: l })
|
|
286
312
|
}
|
|
287
313
|
}
|
|
288
314
|
})(t);
|
|
289
|
-
},
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
311
|
-
const
|
|
312
|
-
small:
|
|
313
|
-
medium:
|
|
314
|
-
large:
|
|
315
|
-
max:
|
|
316
|
-
"m-small":
|
|
317
|
-
},
|
|
318
|
-
light:
|
|
319
|
-
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__ */
|
|
322
|
-
},
|
|
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:
|
|
325
|
-
variant:
|
|
326
|
-
children:
|
|
327
|
-
startIcon:
|
|
350
|
+
disabled: l = !1,
|
|
351
|
+
variant: b = "primary",
|
|
352
|
+
children: d,
|
|
353
|
+
startIcon: i,
|
|
328
354
|
endIcon: r,
|
|
329
355
|
icon: k,
|
|
330
|
-
onClick:
|
|
356
|
+
onClick: m,
|
|
331
357
|
shape: f = "normal",
|
|
332
|
-
className:
|
|
333
|
-
theme:
|
|
334
|
-
loading:
|
|
335
|
-
loadingType:
|
|
358
|
+
className: w = "",
|
|
359
|
+
theme: x,
|
|
360
|
+
loading: s,
|
|
361
|
+
loadingType: _ = "default",
|
|
336
362
|
...S
|
|
337
363
|
}) => {
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
}, { theme:
|
|
341
|
-
variant:
|
|
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:
|
|
369
|
+
theme: x || c,
|
|
344
370
|
shape: f,
|
|
345
|
-
disabled:
|
|
371
|
+
disabled: s ? !0 : l
|
|
346
372
|
};
|
|
347
|
-
return /* @__PURE__ */
|
|
373
|
+
return /* @__PURE__ */ a.jsx(
|
|
348
374
|
"button",
|
|
349
375
|
{
|
|
350
376
|
type: "button",
|
|
351
|
-
onClick:
|
|
352
|
-
className: `${
|
|
353
|
-
disabled:
|
|
377
|
+
onClick: C,
|
|
378
|
+
className: `${v(J(L))} ${w}`,
|
|
379
|
+
disabled: l,
|
|
354
380
|
...S,
|
|
355
|
-
children:
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
r && /* @__PURE__ */
|
|
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
|
-
},
|
|
364
|
-
const { theme:
|
|
365
|
-
return /* @__PURE__ */
|
|
366
|
-
|
|
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 ${
|
|
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
|
-
|
|
417
|
+
h.WhiteButton = I;
|
|
418
|
+
h.CheckButton = Y;
|
|
375
419
|
export {
|
|
376
|
-
|
|
420
|
+
h as Button
|
|
377
421
|
};
|