@blofin/blofin-ui 0.7.44 → 1.0.0-beta.0
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/Badge.es.js +1 -1
- package/dist/Button.es.js +1 -1
- package/dist/Dialog.es.js +2 -2
- package/dist/Divider.es.js +1 -1
- package/dist/Drawer.es.js +24 -24
- package/dist/Form.es.js +329 -329
- package/dist/Slider.es.js +1 -1
- package/dist/blofin.css +1 -1
- package/dist/components/Form/Control.d.ts +1 -1
- package/dist/components/Form/interface.d.ts +1 -1
- package/dist/components/Picker/hooks/usePickerMethod.d.ts +1 -1
- package/dist/components/Sort/SortButton.d.ts +1 -1
- package/dist/components/Sort/SortGroup.d.ts +1 -1
- package/dist/components/Table/hooks/useStickyOffset.d.ts +2 -2
- package/dist/components/Table/interface.d.ts +3 -3
- package/dist/components/TextSelect/TextSelect.d.ts +1 -1
- package/dist/hooks/useLatest.d.ts +1 -1
- package/dist/{index-8cfd5349.js → index-000fcf20.js} +4 -4
- package/dist/{index-6a2fa617.js → index-009921d4.js} +6 -6
- package/dist/{index-15b8ff88.js → index-024c2a00.js} +4 -4
- package/dist/{index-549767fd.js → index-03454842.js} +4 -4
- package/dist/{index-ccb87638.js → index-06ac273d.js} +4 -4
- package/dist/{index-baec6d21.js → index-0964b961.js} +4 -4
- package/dist/{index-cc7864fa.js → index-0ad43e58.js} +4 -4
- package/dist/{index-19f5cd89.js → index-1111f032.js} +4 -4
- package/dist/{index-68988ced.js → index-1fc334bd.js} +2 -2
- package/dist/{index-35397042.js → index-21d1ac1d.js} +6 -6
- package/dist/{index-31545fc5.js → index-23097518.js} +4 -4
- package/dist/{index-62bac0ce.js → index-2953d0b4.js} +4 -4
- package/dist/{index-fd5ca5ee.js → index-29cbb574.js} +5 -5
- package/dist/{index-25b52117.js → index-2a0b8acb.js} +4 -4
- package/dist/{index-afbeeda6.js → index-2ba5ebba.js} +4 -4
- package/dist/{index-715cb7ad.js → index-2e7a8596.js} +4 -4
- package/dist/{index-95c51bf8.js → index-3312fe3a.js} +4 -4
- package/dist/{index-7886ebfb.js → index-340a61bf.js} +5 -5
- package/dist/{index-8a4922ba.js → index-41b4dbe8.js} +4 -4
- package/dist/{index-e70294bb.js → index-41d1e980.js} +4 -4
- package/dist/{index-6dca618b.js → index-4645ef83.js} +4 -4
- package/dist/{index-5f19fc7e.js → index-48b60c58.js} +4 -4
- package/dist/{index-f356c8c2.js → index-4912d07c.js} +4 -4
- package/dist/{index-fe30e47c.js → index-4b28e079.js} +4 -4
- package/dist/{index-e8ba8477.js → index-4c706a22.js} +4 -4
- package/dist/{index-7c9121f4.js → index-50ba0da3.js} +4 -4
- package/dist/{index-70cb92d9.js → index-513d1a1a.js} +5 -5
- package/dist/{index-18887ec8.js → index-5344dae2.js} +1634 -1626
- package/dist/{index-98fb6cf7.js → index-543f73b3.js} +4 -4
- package/dist/{index-a40da3c5.js → index-577a7e2b.js} +4 -4
- package/dist/{index-5f04a191.js → index-5bda94ef.js} +4 -4
- package/dist/{index-e315dbc6.js → index-6090bc96.js} +5 -5
- package/dist/{index-9c72ab91.js → index-62055922.js} +4 -4
- package/dist/{index-b1347119.js → index-704ce6b9.js} +4 -4
- package/dist/{index-e3022c01.js → index-77a130d0.js} +5 -5
- package/dist/{index-867527e1.js → index-79bf8614.js} +4 -4
- package/dist/{index-0f08a86f.js → index-7da21c07.js} +4 -4
- package/dist/{index-1d695435.js → index-7e861ea3.js} +4 -4
- package/dist/index-7effc98a.js +25822 -0
- package/dist/{index-94b3cbd4.js → index-844cef7b.js} +4 -4
- package/dist/{index-7205e4a3.js → index-84b7879a.js} +4 -4
- package/dist/{index-409899ac.js → index-855c2e0b.js} +4 -4
- package/dist/{index-1afadaae.js → index-86da2e87.js} +4 -4
- package/dist/{index-4def41a0.js → index-8be000d1.js} +4 -4
- package/dist/{index-77549ab7.js → index-8d617147.js} +4 -4
- package/dist/{index-dc29d4f3.js → index-8dff1a3d.js} +4 -4
- package/dist/{index-5ba35828.js → index-8e89c4a6.js} +4 -4
- package/dist/{index-199e9dd7.js → index-91765709.js} +4 -4
- package/dist/{index-dcf36bab.js → index-9484faca.js} +5 -5
- package/dist/{index-21d16ec0.js → index-99025656.js} +4 -4
- package/dist/{index-279053a2.js → index-996da9db.js} +4 -4
- package/dist/{index-3639eaba.js → index-9cf40290.js} +4 -4
- package/dist/{index-edbf941c.js → index-9fc987fa.js} +4 -4
- package/dist/{index-7920aca8.js → index-a29954aa.js} +4 -4
- package/dist/{index-af30d74f.js → index-a7e3b055.js} +4 -4
- package/dist/{index-fce4a823.js → index-ab01d747.js} +4 -4
- package/dist/{index-ce83b23d.js → index-b2c01188.js} +4 -4
- package/dist/{index-6797a785.js → index-b44b717c.js} +4 -4
- package/dist/{index-6c19a61f.js → index-b8eeee6a.js} +5 -5
- package/dist/{index-5a3967eb.js → index-ba797318.js} +4 -4
- package/dist/{index-ab4a5fa0.js → index-bbb71e0b.js} +5 -5
- package/dist/{index-d9f4a77f.js → index-bc77dc3b.js} +1 -1
- package/dist/{index-3bbe848e.js → index-bcfc550a.js} +4 -4
- package/dist/{index-98b51eec.js → index-bf496284.js} +4 -4
- package/dist/{index-76076d20.js → index-c21d71b5.js} +4 -4
- package/dist/{index-93e97a32.js → index-c4b3a1d1.js} +4 -4
- package/dist/{index-e8459e06.js → index-c8975781.js} +5 -5
- package/dist/{index-0c07761d.js → index-cfc2d283.js} +4 -4
- package/dist/{index-17830a96.js → index-d179a97d.js} +5 -5
- package/dist/{index-8add2205.js → index-d5981059.js} +4 -4
- package/dist/{index-5aa0628e.js → index-d7222689.js} +4 -4
- package/dist/{index-570df63d.js → index-d788827f.js} +1 -1
- package/dist/{index-7b88e951.js → index-d843e225.js} +4 -4
- package/dist/{index-e5d7e057.js → index-d8c8dfb9.js} +4 -4
- package/dist/{index-9d5867ab.js → index-dea59e13.js} +1 -1
- package/dist/{index-0eed0d28.js → index-df1a33b3.js} +4 -4
- package/dist/{index-b121b4d9.js → index-e0e6b4e2.js} +5 -5
- package/dist/{index-30b36afc.js → index-e1a979e0.js} +4 -4
- package/dist/{index-fbb04487.js → index-e2c23cb1.js} +4 -4
- package/dist/{index-704144c7.js → index-e4fdaaa5.js} +4 -4
- package/dist/{index-68010436.js → index-e60e45d2.js} +4 -4
- package/dist/{index-439b6737.js → index-e8b681f6.js} +4 -4
- package/dist/{index-14965323.js → index-ea57805b.js} +5 -5
- package/dist/{index-90fe8799.js → index-eb4763cf.js} +5 -5
- package/dist/{index-d2e9a9bb.js → index-edbf2c19.js} +4 -4
- package/dist/{index-0cccb64b.js → index-f2cba6a4.js} +4 -4
- package/dist/{index-972db6af.js → index-f92e1f4e.js} +5 -5
- package/dist/{index-8966f588.js → index-fce593e6.js} +5 -5
- package/dist/{index-bbf760ef.js → index-ff2ec037.js} +4 -4
- package/dist/index.es.js +4 -4
- package/dist/isObjectLike-915cfec8.js +41 -0
- package/dist/jsx-runtime-8328c69f.js +289 -0
- package/package.json +20 -19
- package/dist/index-8c18ed9b.js +0 -173
- package/dist/isObjectLike-1b8bbac2.js +0 -44
- package/dist/jsx-runtime-944c88e2.js +0 -631
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/blofinex/blofin-ui.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "1.0.0-beta.0",
|
|
8
8
|
"module": "./dist/index.es.js",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
@@ -57,25 +57,26 @@
|
|
|
57
57
|
"tailwind-merge": "^1.13.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"react": "^
|
|
61
|
-
"react-dom": "^
|
|
60
|
+
"react": "^19.1.1",
|
|
61
|
+
"react-dom": "^19.1.1",
|
|
62
62
|
"react-hook-form": "^7.45.1",
|
|
63
63
|
"zod": "^3.21.4"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@storybook
|
|
67
|
-
"@storybook/addon-
|
|
68
|
-
"@storybook/addon-
|
|
69
|
-
"@storybook/addon-
|
|
66
|
+
"@chromatic-com/storybook": "^3",
|
|
67
|
+
"@storybook/addon-essentials": "8.6.14",
|
|
68
|
+
"@storybook/addon-interactions": "8.6.14",
|
|
69
|
+
"@storybook/addon-links": "8.6.14",
|
|
70
|
+
"@storybook/addon-mdx-gfm": "8.6.14",
|
|
70
71
|
"@storybook/addon-styling": "^1.3.7",
|
|
71
|
-
"@storybook/blocks": "
|
|
72
|
-
"@storybook/react": "
|
|
73
|
-
"@storybook/react-vite": "
|
|
74
|
-
"@storybook/
|
|
75
|
-
"@storybook/
|
|
76
|
-
"@
|
|
77
|
-
"@types/react": "^
|
|
78
|
-
"@types/react-dom": "^
|
|
72
|
+
"@storybook/blocks": "8.6.14",
|
|
73
|
+
"@storybook/react": "8.6.14",
|
|
74
|
+
"@storybook/react-vite": "8.6.14",
|
|
75
|
+
"@storybook/test": "8.6.14",
|
|
76
|
+
"@storybook/theming": "8.6.14",
|
|
77
|
+
"@types/lodash": "^4.17.20",
|
|
78
|
+
"@types/react": "^19.1.1",
|
|
79
|
+
"@types/react-dom": "^19.1.1",
|
|
79
80
|
"@types/react-transition-group": "^4.4.6",
|
|
80
81
|
"@typescript-eslint/eslint-plugin": "^6.2.1",
|
|
81
82
|
"@typescript-eslint/parser": "^6.2.1",
|
|
@@ -91,11 +92,11 @@
|
|
|
91
92
|
"postcss": "^8.4.24",
|
|
92
93
|
"prettier": "^2.8.8",
|
|
93
94
|
"prettier-plugin-tailwindcss": "^0.3.0",
|
|
94
|
-
"react": "^
|
|
95
|
-
"react-dom": "^
|
|
95
|
+
"react": "^19.1.1",
|
|
96
|
+
"react-dom": "^19.1.1",
|
|
96
97
|
"react-hook-form": "^7.45.1",
|
|
97
|
-
"sass": "^1.
|
|
98
|
-
"storybook": "
|
|
98
|
+
"sass": "^1.93.2",
|
|
99
|
+
"storybook": "8.6.14",
|
|
99
100
|
"storybook-dark-mode": "^3.0.1",
|
|
100
101
|
"tailwindcss": "^3.3.2",
|
|
101
102
|
"typescript": "^5.0.2",
|
package/dist/index-8c18ed9b.js
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-944c88e2.js";
|
|
2
|
-
import { useState as P, useEffect as B } from "react";
|
|
3
|
-
import v from "react-dom";
|
|
4
|
-
import { S as F } from "./close-c67ec245.js";
|
|
5
|
-
import { Button as g } from "./Button.es.js";
|
|
6
|
-
import { a as r, u as M } from "./index-96a8d125.js";
|
|
7
|
-
var x, s = v;
|
|
8
|
-
if (process.env.NODE_ENV === "production")
|
|
9
|
-
x = s.createRoot, s.hydrateRoot;
|
|
10
|
-
else {
|
|
11
|
-
var k = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
12
|
-
x = function(t, n) {
|
|
13
|
-
k.usingClientEntryPoint = !0;
|
|
14
|
-
try {
|
|
15
|
-
return s.createRoot(t, n);
|
|
16
|
-
} finally {
|
|
17
|
-
k.usingClientEntryPoint = !1;
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
const U = r(
|
|
22
|
-
"bu-absolute bu-left-[50%] bu-top-[50%] bu-flex bu-translate-x-[-50%] bu-translate-y-[-50%] bu-flex-col bu-justify-between bu-rounded-[10px] bu-pb-[32px] bu-pt-[24px]",
|
|
23
|
-
{
|
|
24
|
-
variants: {
|
|
25
|
-
size: {
|
|
26
|
-
large: "max-[600px]:bu-w-[80%] min-[600px]:bu-min-h-[234px] min-[600px]:bu-w-[800px]",
|
|
27
|
-
medium: "max-[600px]:bu-w-[80%] min-[600px]:bu-min-h-[226px] min-[600px]:bu-w-[600px]",
|
|
28
|
-
small: "max-[600px]:bu-w-[80%] min-[600px]:bu-min-h-[210px] min-[600px]:bu-w-[520px]"
|
|
29
|
-
},
|
|
30
|
-
theme: {
|
|
31
|
-
dark: "bu-bg-dark-hover-fill-primary",
|
|
32
|
-
light: "bu-bg-light-background"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
), V = r("", {
|
|
37
|
-
variants: {
|
|
38
|
-
theme: {
|
|
39
|
-
dark: "bu-text-dark-label",
|
|
40
|
-
light: "bu-text-light-label"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}), A = r(
|
|
44
|
-
"bu-absolute bu-right-[20px] bu-h-[24px] bu-w-[24px] bu-cursor-pointer",
|
|
45
|
-
{
|
|
46
|
-
variants: {
|
|
47
|
-
theme: {
|
|
48
|
-
dark: "bu-text-dark-label",
|
|
49
|
-
light: "bu-text-light-label-40"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
), W = r("bu-flex bu-px-[24px]", {
|
|
54
|
-
variants: {
|
|
55
|
-
footerLayout: {
|
|
56
|
-
right: "bu-justify-end",
|
|
57
|
-
left: "bu-justify-start",
|
|
58
|
-
center: "bu-justify-center"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}), Y = "_mock_13kkq_1", G = "_dialog_13kkq_5", H = "_title_13kkq_9", J = "_content_13kkq_13", i = {
|
|
62
|
-
mock: Y,
|
|
63
|
-
dialog: G,
|
|
64
|
-
title: H,
|
|
65
|
-
content: J
|
|
66
|
-
}, C = (t) => {
|
|
67
|
-
const {
|
|
68
|
-
size: n,
|
|
69
|
-
title: o,
|
|
70
|
-
content: a,
|
|
71
|
-
maskClosable: c = !1,
|
|
72
|
-
cancelText: m = "",
|
|
73
|
-
confirmText: j = "",
|
|
74
|
-
footer: u,
|
|
75
|
-
cancel: f,
|
|
76
|
-
confirm: h,
|
|
77
|
-
theme: p,
|
|
78
|
-
footerLayout: N,
|
|
79
|
-
footerSize: y = "small",
|
|
80
|
-
hideCancel: _ = !1,
|
|
81
|
-
hideConfirm: E = !1,
|
|
82
|
-
hideIcon: w = !1,
|
|
83
|
-
className: R,
|
|
84
|
-
contentClassName: S,
|
|
85
|
-
open: d,
|
|
86
|
-
loading: O = !1,
|
|
87
|
-
containerRef: $,
|
|
88
|
-
modalClassName: T
|
|
89
|
-
} = t, { theme: D } = M(), [z, I] = P(!1), l = () => p || D, b = () => {
|
|
90
|
-
f && f();
|
|
91
|
-
}, L = () => {
|
|
92
|
-
c && b();
|
|
93
|
-
}, q = () => {
|
|
94
|
-
h && h();
|
|
95
|
-
};
|
|
96
|
-
return B(() => (document.body.style.overflow = d ? "hidden" : "", I(d), () => {
|
|
97
|
-
document.body.style.overflow = "";
|
|
98
|
-
}), [d]), z ? v.createPortal(
|
|
99
|
-
/* @__PURE__ */ e.jsx("div", { className: `${i.mock} ${T}`, onClick: L, children: /* @__PURE__ */ e.jsxs(
|
|
100
|
-
"div",
|
|
101
|
-
{
|
|
102
|
-
className: `${i.dialog} ${U({
|
|
103
|
-
size: n,
|
|
104
|
-
theme: l()
|
|
105
|
-
})} ${R}`,
|
|
106
|
-
children: [
|
|
107
|
-
!w && /* @__PURE__ */ e.jsx(
|
|
108
|
-
F,
|
|
109
|
-
{
|
|
110
|
-
className: `${A({
|
|
111
|
-
theme: l()
|
|
112
|
-
})}`,
|
|
113
|
-
onClick: b
|
|
114
|
-
}
|
|
115
|
-
),
|
|
116
|
-
/* @__PURE__ */ e.jsx("div", { className: V({ theme: l() }), children: o !== null && /* @__PURE__ */ e.jsx("div", { className: i.title, children: o }) }),
|
|
117
|
-
/* @__PURE__ */ e.jsx("div", { ref: $, className: `${i.content} ${S}`, children: a }),
|
|
118
|
-
/* @__PURE__ */ e.jsx("div", { className: W({ footerLayout: N }), children: u === null ? null : u || /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
119
|
-
!_ && /* @__PURE__ */ e.jsx(
|
|
120
|
-
g,
|
|
121
|
-
{
|
|
122
|
-
size: y,
|
|
123
|
-
variant: "ghost",
|
|
124
|
-
theme: l(),
|
|
125
|
-
onClick: b,
|
|
126
|
-
children: m
|
|
127
|
-
}
|
|
128
|
-
),
|
|
129
|
-
!E && /* @__PURE__ */ e.jsx(
|
|
130
|
-
g,
|
|
131
|
-
{
|
|
132
|
-
className: _ ? "" : "bu-ml-[16px]",
|
|
133
|
-
size: y,
|
|
134
|
-
variant: "primary",
|
|
135
|
-
loading: O,
|
|
136
|
-
theme: l(),
|
|
137
|
-
onClick: q,
|
|
138
|
-
children: j
|
|
139
|
-
}
|
|
140
|
-
)
|
|
141
|
-
] }) })
|
|
142
|
-
]
|
|
143
|
-
}
|
|
144
|
-
) }),
|
|
145
|
-
document.body
|
|
146
|
-
) : null;
|
|
147
|
-
}, K = (t) => {
|
|
148
|
-
const n = document.createElement("div");
|
|
149
|
-
document.body.appendChild(n);
|
|
150
|
-
const o = x(n), a = () => {
|
|
151
|
-
o.unmount(), document.body.removeChild(n);
|
|
152
|
-
}, c = () => {
|
|
153
|
-
t.cancel && t.cancel(), a();
|
|
154
|
-
}, m = () => {
|
|
155
|
-
t.confirm && t.confirm(), a();
|
|
156
|
-
};
|
|
157
|
-
return o.render(
|
|
158
|
-
/* @__PURE__ */ e.jsx(
|
|
159
|
-
C,
|
|
160
|
-
{
|
|
161
|
-
...t,
|
|
162
|
-
open: !0,
|
|
163
|
-
cancel: c,
|
|
164
|
-
confirm: m
|
|
165
|
-
}
|
|
166
|
-
)
|
|
167
|
-
), a;
|
|
168
|
-
};
|
|
169
|
-
C.show = K;
|
|
170
|
-
export {
|
|
171
|
-
C as D,
|
|
172
|
-
x as c
|
|
173
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function g(t) {
|
|
3
|
-
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
4
|
-
}
|
|
5
|
-
function j(t) {
|
|
6
|
-
var r = typeof t;
|
|
7
|
-
return t != null && (r == "object" || r == "function");
|
|
8
|
-
}
|
|
9
|
-
var d = j;
|
|
10
|
-
const U = /* @__PURE__ */ g(d);
|
|
11
|
-
var u = typeof o == "object" && o && o.Object === Object && o, y = u, p = y, v = typeof self == "object" && self && self.Object === Object && self, T = p || v || Function("return this")(), O = T, S = O, w = S.Symbol, c = w, n = c, b = Object.prototype, _ = b.hasOwnProperty, $ = b.toString, e = n ? n.toStringTag : void 0;
|
|
12
|
-
function m(t) {
|
|
13
|
-
var r = _.call(t, e), f = t[e];
|
|
14
|
-
try {
|
|
15
|
-
t[e] = void 0;
|
|
16
|
-
var l = !0;
|
|
17
|
-
} catch {
|
|
18
|
-
}
|
|
19
|
-
var s = $.call(t);
|
|
20
|
-
return l && (r ? t[e] = f : delete t[e]), s;
|
|
21
|
-
}
|
|
22
|
-
var h = m, G = Object.prototype, P = G.toString;
|
|
23
|
-
function R(t) {
|
|
24
|
-
return P.call(t);
|
|
25
|
-
}
|
|
26
|
-
var k = R, a = c, F = h, L = k, C = "[object Null]", D = "[object Undefined]", i = a ? a.toStringTag : void 0;
|
|
27
|
-
function E(t) {
|
|
28
|
-
return t == null ? t === void 0 ? D : C : i && i in Object(t) ? F(t) : L(t);
|
|
29
|
-
}
|
|
30
|
-
var q = E;
|
|
31
|
-
function M(t) {
|
|
32
|
-
return t != null && typeof t == "object";
|
|
33
|
-
}
|
|
34
|
-
var z = M;
|
|
35
|
-
export {
|
|
36
|
-
q as _,
|
|
37
|
-
O as a,
|
|
38
|
-
z as b,
|
|
39
|
-
y as c,
|
|
40
|
-
c as d,
|
|
41
|
-
U as e,
|
|
42
|
-
g,
|
|
43
|
-
d as i
|
|
44
|
-
};
|