@blofin/blofin-ui 0.7.38-beta.2 → 0.7.39
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 +11 -11
- package/package.json +1 -1
package/dist/Button.es.js
CHANGED
|
@@ -255,8 +255,8 @@ const D = e("bu-text-light-second", {
|
|
|
255
255
|
//this not have disabled
|
|
256
256
|
}
|
|
257
257
|
}, G = (t) => {
|
|
258
|
-
const { theme: a, variant: d, disabled:
|
|
259
|
-
return e("bu-box-border bu-inline-flex bu-items-center bu-justify-center", {
|
|
258
|
+
const { theme: a, variant: d, disabled: u, shape: b } = t, r = u ? "" : v[d].variant({ theme: a });
|
|
259
|
+
return e("bu-box-border bu-inline-flex bu-items-center bu-justify-center bu-font-medium", {
|
|
260
260
|
variants: {
|
|
261
261
|
variant: {
|
|
262
262
|
primary: r,
|
|
@@ -314,16 +314,16 @@ const D = e("bu-text-light-second", {
|
|
|
314
314
|
large: i["loader-large"],
|
|
315
315
|
max: i["loader-large"],
|
|
316
316
|
"m-small": i["loader-m-small"]
|
|
317
|
-
},
|
|
317
|
+
}, u = {
|
|
318
318
|
light: i["loader-light"],
|
|
319
319
|
dark: i["loader-dark"]
|
|
320
320
|
};
|
|
321
|
-
return /* @__PURE__ */ l.jsx("span", { className: `${d[t]} ${
|
|
321
|
+
return /* @__PURE__ */ l.jsx("span", { className: `${d[t]} ${u[a]}` });
|
|
322
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 = ({
|
|
323
323
|
size: t = "large",
|
|
324
324
|
disabled: a = !1,
|
|
325
325
|
variant: d = "primary",
|
|
326
|
-
children:
|
|
326
|
+
children: u,
|
|
327
327
|
startIcon: b,
|
|
328
328
|
endIcon: r,
|
|
329
329
|
icon: k,
|
|
@@ -331,18 +331,18 @@ const D = e("bu-text-light-second", {
|
|
|
331
331
|
shape: f = "normal",
|
|
332
332
|
className: _ = "",
|
|
333
333
|
theme: h,
|
|
334
|
-
loading:
|
|
334
|
+
loading: o,
|
|
335
335
|
loadingType: w = "default",
|
|
336
336
|
...S
|
|
337
337
|
}) => {
|
|
338
338
|
const j = (C) => {
|
|
339
|
-
|
|
339
|
+
o || s && s(C);
|
|
340
340
|
}, { theme: n } = c(), $ = {
|
|
341
|
-
variant:
|
|
341
|
+
variant: o ? "tertiary" : d,
|
|
342
342
|
size: t,
|
|
343
343
|
theme: h || n,
|
|
344
344
|
shape: f,
|
|
345
|
-
disabled:
|
|
345
|
+
disabled: o ? !0 : a
|
|
346
346
|
};
|
|
347
347
|
return /* @__PURE__ */ l.jsx(
|
|
348
348
|
"button",
|
|
@@ -352,9 +352,9 @@ const D = e("bu-text-light-second", {
|
|
|
352
352
|
className: `${m(G($))} ${_}`,
|
|
353
353
|
disabled: a,
|
|
354
354
|
...S,
|
|
355
|
-
children:
|
|
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
356
|
b && /* @__PURE__ */ l.jsx("span", { className: "bu-mr-[9px]", children: b }),
|
|
357
|
-
|
|
357
|
+
u,
|
|
358
358
|
r && /* @__PURE__ */ l.jsx("span", { className: "bu-ml-[9px] bu-flex bu-items-center", children: r }),
|
|
359
359
|
k
|
|
360
360
|
] })
|