@blofin/blofin-ui 0.7.62 → 0.7.64
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/README.md +41 -24
- package/dist/Badge.es.js +3 -3
- package/dist/Button.es.js +32 -32
- package/dist/Dialog.es.js +4 -4
- package/dist/Divider.es.js +3 -3
- package/dist/Drawer.es.js +30 -30
- package/dist/{ProTable-63e2c020.js → ProTable-087213e3.js} +731 -732
- package/dist/ProTable.es.js +4 -4
- package/dist/Slider.es.js +147 -139
- package/dist/Sort.es.js +2 -2
- package/dist/blofin.css +1 -1
- package/dist/clsx.m-9bb14413.js +34 -0
- package/dist/components/DatePickerRange/styles.d.ts +3 -0
- package/dist/components/Table/css.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts +2 -0
- package/dist/config/tailwind.js +3 -2
- package/dist/{index-bb110e35.js → index-0185476e.js} +8 -8
- package/dist/{index-652fb2a1.js → index-04dd998a.js} +8 -8
- package/dist/{index-85f017e3.js → index-05a511e6.js} +7 -7
- package/dist/{index-0c947f08.js → index-076a2bd0.js} +7 -7
- package/dist/{index-78b9c8f9.js → index-11780b34.js} +7 -7
- package/dist/{index-fb976a33.js → index-15d5944d.js} +7 -7
- package/dist/{index-3bcdcfa4.js → index-1b421bc7.js} +7 -7
- package/dist/{index-e7a49961.js → index-1dae4674.js} +7 -7
- package/dist/{index-c0289cb3.js → index-1e6117eb.js} +7 -7
- package/dist/{index-d94818cf.js → index-1f844b36.js} +7 -7
- package/dist/{index-c624667a.js → index-24b3d1e8.js} +7 -7
- package/dist/{index-c4cd7ca7.js → index-27d3d2f9.js} +7 -7
- package/dist/{index-27fd2203.js → index-281bb155.js} +7 -7
- package/dist/{index-c287f58d.js → index-28f6dead.js} +7 -7
- package/dist/{index-26e9b5ae.js → index-2d075993.js} +7 -7
- package/dist/{index-f40ff393.js → index-2d620e59.js} +9 -9
- package/dist/{index-752cda87.js → index-31f01665.js} +8 -8
- package/dist/{index-53e23440.js → index-32ad256e.js} +7 -7
- package/dist/{index-49e62b6e.js → index-33c04f82.js} +7 -7
- package/dist/{index-1e98bfaa.js → index-346f1a04.js} +7 -7
- package/dist/{index-57c290c9.js → index-386564a7.js} +8 -8
- package/dist/{index-8e71bc24.js → index-3b683486.js} +7 -7
- package/dist/{index-06600576.js → index-3ff6fd12.js} +1 -1
- package/dist/{index-f99d7119.js → index-48b17908.js} +7 -7
- package/dist/{index-5b3a8482.js → index-4b8d7817.js} +7 -7
- package/dist/{index-40626e62.js → index-50c18668.js} +59 -59
- package/dist/{index-5f08442c.js → index-51d7c74e.js} +7 -7
- package/dist/{index-6c7e84e3.js → index-52df1b5b.js} +7 -7
- package/dist/{index-b2bb21a1.js → index-56045a70.js} +7 -7
- package/dist/{index-54346b30.js → index-5914c1e4.js} +8 -8
- package/dist/{index-c7562a9b.js → index-5dedd2a8.js} +7 -7
- package/dist/{index-200f0cb0.js → index-5f2a1df5.js} +2 -2
- package/dist/{index-4a2c3474.js → index-67a37bd4.js} +3204 -3119
- package/dist/{index-da92e7f1.js → index-69f2e24f.js} +7 -7
- package/dist/{index-261244be.js → index-6b6afdd5.js} +7 -7
- package/dist/{index-01fa9075.js → index-73eb9fc2.js} +8 -8
- package/dist/{index-c06461e4.js → index-751626f1.js} +7 -7
- package/dist/{index-05675e79.js → index-7936042b.js} +7 -7
- package/dist/{index-313c7581.js → index-796f5ebe.js} +7 -7
- package/dist/{index-a03e2363.js → index-7ab9a888.js} +7 -7
- package/dist/{index-4486b59f.js → index-7beb8652.js} +9 -9
- package/dist/{index-06addca7.js → index-805e10ed.js} +7 -7
- package/dist/{index-6d6d57fd.js → index-811e143f.js} +7 -7
- package/dist/{index-20c30fd3.js → index-845cd4cd.js} +8 -8
- package/dist/{index-39afbe30.js → index-867edc6c.js} +1 -1
- package/dist/{index-7272669e.js → index-86cecf62.js} +1 -1
- package/dist/{index-afe5111a.js → index-898df220.js} +7 -7
- package/dist/{index-0ae42181.js → index-8cec9230.js} +7 -7
- package/dist/{index-87967611.js → index-8d1bc638.js} +8 -8
- package/dist/{index-da49a1d5.js → index-8d5ebb2d.js} +7 -7
- package/dist/{index-4b8f975d.js → index-8d78263b.js} +7 -7
- package/dist/{index-b14d2f55.js → index-8e6b848e.js} +7 -7
- package/dist/{index-712da957.js → index-8f823ab0.js} +7 -7
- package/dist/{index-2e2af4c2.js → index-90c408a3.js} +1 -1
- package/dist/{index-24571e1a.js → index-99b5de99.js} +8 -8
- package/dist/{index-89f7e024.js → index-9b957a6a.js} +7 -7
- package/dist/{index-1d30e6a1.js → index-a010d612.js} +7 -7
- package/dist/{index-74ca867d.js → index-a1b5cb20.js} +7 -7
- package/dist/{index-74f0d19e.js → index-a6e908eb.js} +8 -8
- package/dist/{index-8a256357.js → index-aa2d43f5.js} +7 -7
- package/dist/{index-168e5f6a.js → index-ae89c19a.js} +7 -7
- package/dist/{index-38f5f308.js → index-b4fbdb55.js} +7 -7
- package/dist/{index-b2b7a241.js → index-b5753746.js} +7 -7
- package/dist/{index-6f7c6176.js → index-c0889722.js} +7 -7
- package/dist/{index-9d571166.js → index-c1e2f830.js} +7 -7
- package/dist/{index-cdc5581e.js → index-c3939d53.js} +7 -7
- package/dist/{index-39c2cf33.js → index-c3f79b2d.js} +7 -7
- package/dist/{index-d61cba2c.js → index-c79abc89.js} +7 -7
- package/dist/{index-af160501.js → index-c882ff9c.js} +7 -7
- package/dist/{index-bcfdca26.js → index-c8ad25f5.js} +7 -7
- package/dist/{index-b4118dd1.js → index-cb451c77.js} +7 -7
- package/dist/{index-11ed8e1e.js → index-ce7277e3.js} +7 -7
- package/dist/{index-8802254a.js → index-d0e9c6bf.js} +7 -7
- package/dist/{index-fb380321.js → index-d987eec6.js} +7 -7
- package/dist/{index-7e4350db.js → index-dab2f593.js} +7 -7
- package/dist/{index-8d59f49c.js → index-db0b0fbe.js} +7 -7
- package/dist/{index-a52ef6bc.js → index-dbbaf433.js} +8 -8
- package/dist/{index-ed523ae5.js → index-dc984ba2.js} +8 -8
- package/dist/{index-99a3bf9b.js → index-de712b0a.js} +7 -7
- package/dist/{index-e696b020.js → index-dfcb2e30.js} +8 -8
- package/dist/{index-40459169.js → index-e194c32d.js} +7 -7
- package/dist/{index-fb8c76ea.js → index-e2f3d006.js} +7 -7
- package/dist/{index-13e3dd69.js → index-e411bb62.js} +7 -7
- package/dist/{index-06942aa2.js → index-e5674351.js} +8 -8
- package/dist/{index-95c68eda.js → index-ea7f539d.js} +38 -38
- package/dist/{index-73b5523a.js → index-eb599cd7.js} +7 -7
- package/dist/{index-4e3398b2.js → index-eb5d51f9.js} +7 -7
- package/dist/{index-dba23822.js → index-f5cf1c31.js} +8 -8
- package/dist/{index-ec1494d7.js → index-f707afcc.js} +7 -7
- package/dist/{index-c5fd9877.js → index-fb57fd8c.js} +7 -7
- package/dist/{index-02d586cc.js → index-fb591428.js} +7 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +7 -7
- package/dist/provider/ThemeProvider.d.ts +2 -0
- package/dist/provider/useTheme.d.ts +1 -0
- package/dist/{utils-cacf528c.js → utils-096a71c5.js} +1 -1
- package/package.json +7 -1
- package/dist/clsx.m-b14a941b.js +0 -32
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { a as u, b as o, c as l, d as s } from "./index-
|
|
2
|
-
import { i as c } from "./index-
|
|
1
|
+
import { a as u, b as o, c as l, d as s } from "./index-67a37bd4.js";
|
|
2
|
+
import { i as c } from "./index-867edc6c.js";
|
|
3
3
|
import "./Badge.es.js";
|
|
4
4
|
import "./jsx-runtime-82a9ddf6.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import "./clsx.m-
|
|
7
|
-
import "./utils-
|
|
8
|
-
import "./index-
|
|
6
|
+
import "./clsx.m-9bb14413.js";
|
|
7
|
+
import "./utils-096a71c5.js";
|
|
8
|
+
import "./index-86cecf62.js";
|
|
9
9
|
import "./Button.es.js";
|
|
10
10
|
import "./isObjectLike-1b8bbac2.js";
|
|
11
|
-
import "./index-
|
|
11
|
+
import "./index-50c18668.js";
|
|
12
12
|
import "react-dom";
|
|
13
13
|
import "./close-c67ec245.js";
|
|
14
14
|
import "./Drawer.es.js";
|
|
15
15
|
import "./Slider.es.js";
|
|
16
|
-
import "./index-
|
|
17
|
-
import "./ProTable-
|
|
16
|
+
import "./index-ea7f539d.js";
|
|
17
|
+
import "./ProTable-087213e3.js";
|
|
18
18
|
import "./Divider.es.js";
|
|
19
19
|
var h = {
|
|
20
20
|
lessThanXSeconds: {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { a as d, b as i, c as u, d as n } from "./index-
|
|
1
|
+
import { a as d, b as i, c as u, d as n } from "./index-67a37bd4.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./clsx.m-
|
|
6
|
-
import "./utils-
|
|
7
|
-
import "./index-
|
|
5
|
+
import "./clsx.m-9bb14413.js";
|
|
6
|
+
import "./utils-096a71c5.js";
|
|
7
|
+
import "./index-86cecf62.js";
|
|
8
8
|
import "./Button.es.js";
|
|
9
9
|
import "./isObjectLike-1b8bbac2.js";
|
|
10
|
-
import "./index-
|
|
10
|
+
import "./index-50c18668.js";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "./close-c67ec245.js";
|
|
13
13
|
import "./Drawer.es.js";
|
|
14
14
|
import "./Slider.es.js";
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./ProTable-
|
|
15
|
+
import "./index-ea7f539d.js";
|
|
16
|
+
import "./ProTable-087213e3.js";
|
|
17
17
|
import "./Divider.es.js";
|
|
18
18
|
var m = {
|
|
19
19
|
lessThanXSeconds: {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { a as u, b as i, c as d, d as n } from "./index-
|
|
1
|
+
import { a as u, b as i, c as d, d as n } from "./index-67a37bd4.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./clsx.m-
|
|
6
|
-
import "./utils-
|
|
7
|
-
import "./index-
|
|
5
|
+
import "./clsx.m-9bb14413.js";
|
|
6
|
+
import "./utils-096a71c5.js";
|
|
7
|
+
import "./index-86cecf62.js";
|
|
8
8
|
import "./Button.es.js";
|
|
9
9
|
import "./isObjectLike-1b8bbac2.js";
|
|
10
|
-
import "./index-
|
|
10
|
+
import "./index-50c18668.js";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "./close-c67ec245.js";
|
|
13
13
|
import "./Drawer.es.js";
|
|
14
14
|
import "./Slider.es.js";
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./ProTable-
|
|
15
|
+
import "./index-ea7f539d.js";
|
|
16
|
+
import "./ProTable-087213e3.js";
|
|
17
17
|
import "./Divider.es.js";
|
|
18
18
|
var s = {
|
|
19
19
|
lessThanXSeconds: {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { a as m, b as i, c as s, d as n } from "./index-
|
|
1
|
+
import { a as m, b as i, c as s, d as n } from "./index-67a37bd4.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./clsx.m-
|
|
6
|
-
import "./utils-
|
|
7
|
-
import "./index-
|
|
5
|
+
import "./clsx.m-9bb14413.js";
|
|
6
|
+
import "./utils-096a71c5.js";
|
|
7
|
+
import "./index-86cecf62.js";
|
|
8
8
|
import "./Button.es.js";
|
|
9
9
|
import "./isObjectLike-1b8bbac2.js";
|
|
10
|
-
import "./index-
|
|
10
|
+
import "./index-50c18668.js";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "./close-c67ec245.js";
|
|
13
13
|
import "./Drawer.es.js";
|
|
14
14
|
import "./Slider.es.js";
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./ProTable-
|
|
15
|
+
import "./index-ea7f539d.js";
|
|
16
|
+
import "./ProTable-087213e3.js";
|
|
17
17
|
import "./Divider.es.js";
|
|
18
18
|
var u = {
|
|
19
19
|
lessThanXSeconds: {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { f as i, a as o, b as m, m as g } from "./index-
|
|
2
|
-
import { b as a } from "./index-
|
|
1
|
+
import { f as i, a as o, b as m, m as g } from "./index-90c408a3.js";
|
|
2
|
+
import { b as a } from "./index-67a37bd4.js";
|
|
3
3
|
import "./Badge.es.js";
|
|
4
4
|
import "./jsx-runtime-82a9ddf6.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import "./clsx.m-
|
|
7
|
-
import "./utils-
|
|
8
|
-
import "./index-
|
|
6
|
+
import "./clsx.m-9bb14413.js";
|
|
7
|
+
import "./utils-096a71c5.js";
|
|
8
|
+
import "./index-86cecf62.js";
|
|
9
9
|
import "./Button.es.js";
|
|
10
10
|
import "./isObjectLike-1b8bbac2.js";
|
|
11
|
-
import "./index-
|
|
11
|
+
import "./index-50c18668.js";
|
|
12
12
|
import "react-dom";
|
|
13
13
|
import "./close-c67ec245.js";
|
|
14
14
|
import "./Drawer.es.js";
|
|
15
15
|
import "./Slider.es.js";
|
|
16
|
-
import "./index-
|
|
17
|
-
import "./ProTable-
|
|
16
|
+
import "./index-ea7f539d.js";
|
|
17
|
+
import "./ProTable-087213e3.js";
|
|
18
18
|
import "./Divider.es.js";
|
|
19
19
|
var d = {
|
|
20
20
|
narrow: ["v.Chr.", "n.Chr."],
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { j as p } from "./jsx-runtime-82a9ddf6.js";
|
|
2
|
-
import * as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { u as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { createContext as L, useContext as R, useMemo as _, forwardRef as V, useReducer as E, useImperativeHandle as H } from "react";
|
|
4
|
+
import { u as M, c as N } from "./clsx.m-9bb14413.js";
|
|
5
|
+
const O = (s) => /* @__PURE__ */ i.createElement("svg", { width: 11, height: 6, viewBox: "0 0 11 6", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...s }, /* @__PURE__ */ i.createElement("path", { d: "M9.5 1.80005V0.200048H1.5V1.80005L5.5 5.80005L9.5 1.80005Z", fill: "currentColor", fillOpacity: 1 }));
|
|
6
|
+
function Z(s, e) {
|
|
7
7
|
return s.reduce((r, t) => (r[t[e]] = t, r), {});
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const A = (s) => /* @__PURE__ */ i.createElement("svg", { width: 11, height: 6, viewBox: "0 0 11 6", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...s }, /* @__PURE__ */ i.createElement("path", { d: "M9.5 4.19995V5.79995H1.5V4.19995L5.5 0.199951L9.5 4.19995Z", fill: "currentColor", fillOpacity: 1 }));
|
|
10
10
|
var o = /* @__PURE__ */ ((s) => (s.default = "default", s.desc = "desc", s.asc = "asc", s))(o || {});
|
|
11
|
-
const
|
|
11
|
+
const j = {
|
|
12
12
|
type: "single",
|
|
13
13
|
sorts: []
|
|
14
|
-
},
|
|
15
|
-
state:
|
|
14
|
+
}, C = L({
|
|
15
|
+
state: j,
|
|
16
16
|
dispatch: () => {
|
|
17
17
|
}
|
|
18
|
-
}),
|
|
18
|
+
}), D = (s, e) => {
|
|
19
19
|
switch (e.type) {
|
|
20
20
|
case "changeSort":
|
|
21
21
|
if (s.sorts.findIndex((t) => t.sort === e.payload.sort) === -1) {
|
|
@@ -42,24 +42,24 @@ const k = {
|
|
|
42
42
|
default:
|
|
43
43
|
return s;
|
|
44
44
|
}
|
|
45
|
-
},
|
|
46
|
-
"sort-wrap": "_sort-
|
|
47
|
-
icon:
|
|
48
|
-
"sort-wrap-light": "_sort-wrap-
|
|
49
|
-
"sort-active": "_sort-
|
|
50
|
-
"sort-wrap-dark": "_sort-wrap-
|
|
51
|
-
},
|
|
45
|
+
}, G = "_icon_yudfw_8", n = {
|
|
46
|
+
"sort-wrap": "_sort-wrap_yudfw_1",
|
|
47
|
+
icon: G,
|
|
48
|
+
"sort-wrap-light": "_sort-wrap-light_yudfw_15",
|
|
49
|
+
"sort-active": "_sort-active_yudfw_18",
|
|
50
|
+
"sort-wrap-dark": "_sort-wrap-dark_yudfw_21"
|
|
51
|
+
}, q = ({
|
|
52
52
|
children: s,
|
|
53
53
|
onSortChange: e,
|
|
54
54
|
sortKey: r,
|
|
55
55
|
hideSort: t = !1,
|
|
56
56
|
textAlign: c = "center",
|
|
57
57
|
width: f = "100%",
|
|
58
|
-
iconStyle:
|
|
59
|
-
theme:
|
|
58
|
+
iconStyle: y,
|
|
59
|
+
theme: k
|
|
60
60
|
}) => {
|
|
61
61
|
var m, g;
|
|
62
|
-
const { theme:
|
|
62
|
+
const { theme: B } = M(), S = k || B, { state: $, dispatch: h } = R(C), { sorts: u, type: v } = $, x = _(() => u.length > 0 ? u.map((d) => d.sort) : [], [u]), w = _(() => Z(u, "sort"), [u]), I = () => {
|
|
63
63
|
if (t)
|
|
64
64
|
return;
|
|
65
65
|
const d = w[r];
|
|
@@ -96,7 +96,7 @@ const k = {
|
|
|
96
96
|
return /* @__PURE__ */ p.jsx("div", { style: { justifyContent: c, width: f }, children: /* @__PURE__ */ p.jsxs(
|
|
97
97
|
"div",
|
|
98
98
|
{
|
|
99
|
-
onClick:
|
|
99
|
+
onClick: I,
|
|
100
100
|
style: {
|
|
101
101
|
cursor: t ? "default" : "pointer",
|
|
102
102
|
display: "flex",
|
|
@@ -105,18 +105,18 @@ const k = {
|
|
|
105
105
|
},
|
|
106
106
|
children: [
|
|
107
107
|
s,
|
|
108
|
-
!t && /* @__PURE__ */ p.jsxs("div", { className:
|
|
108
|
+
!t && /* @__PURE__ */ p.jsxs("div", { className: N(n["sort-wrap"], n[`sort-wrap-${S}`]), children: [
|
|
109
109
|
/* @__PURE__ */ p.jsx(
|
|
110
|
-
|
|
110
|
+
A,
|
|
111
111
|
{
|
|
112
|
-
style:
|
|
112
|
+
style: y,
|
|
113
113
|
className: `${n.icon} ${((m = w[r]) == null ? void 0 : m.sortType) === o.asc && x.includes(r) && n["sort-active"]}`
|
|
114
114
|
}
|
|
115
115
|
),
|
|
116
116
|
/* @__PURE__ */ p.jsx(
|
|
117
|
-
|
|
117
|
+
O,
|
|
118
118
|
{
|
|
119
|
-
style:
|
|
119
|
+
style: y,
|
|
120
120
|
className: `${n.icon} ${((g = w[r]) == null ? void 0 : g.sortType) === o.desc && x.includes(r) && n["sort-active"]}`
|
|
121
121
|
}
|
|
122
122
|
)
|
|
@@ -124,29 +124,29 @@ const k = {
|
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
) });
|
|
127
|
-
},
|
|
127
|
+
}, z = V(
|
|
128
128
|
({ children: s, type: e = "single" }, r) => {
|
|
129
|
-
const [t, c] =
|
|
129
|
+
const [t, c] = E(D, { ...j, type: e }), f = (y) => {
|
|
130
130
|
c({
|
|
131
131
|
type: "restSort",
|
|
132
132
|
payload: { sort: "", sortType: o.default },
|
|
133
133
|
reset: () => {
|
|
134
|
-
|
|
134
|
+
y();
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
};
|
|
138
|
-
return
|
|
138
|
+
return H(r, () => ({
|
|
139
139
|
restSort: f
|
|
140
|
-
})), /* @__PURE__ */ p.jsx(
|
|
140
|
+
})), /* @__PURE__ */ p.jsx(C.Provider, { value: { state: t, dispatch: c }, children: s });
|
|
141
141
|
}
|
|
142
142
|
);
|
|
143
143
|
export {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
b,
|
|
148
|
-
|
|
144
|
+
C,
|
|
145
|
+
O as S,
|
|
146
|
+
z as a,
|
|
147
|
+
q as b,
|
|
148
|
+
j as c,
|
|
149
149
|
o as d,
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
Z as k,
|
|
151
|
+
D as r
|
|
152
152
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { a as m, b as i, c as u, d as o } from "./index-
|
|
1
|
+
import { a as m, b as i, c as u, d as o } from "./index-67a37bd4.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./clsx.m-
|
|
6
|
-
import "./utils-
|
|
7
|
-
import "./index-
|
|
5
|
+
import "./clsx.m-9bb14413.js";
|
|
6
|
+
import "./utils-096a71c5.js";
|
|
7
|
+
import "./index-86cecf62.js";
|
|
8
8
|
import "./Button.es.js";
|
|
9
9
|
import "./isObjectLike-1b8bbac2.js";
|
|
10
|
-
import "./index-
|
|
10
|
+
import "./index-50c18668.js";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "./close-c67ec245.js";
|
|
13
13
|
import "./Drawer.es.js";
|
|
14
14
|
import "./Slider.es.js";
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./ProTable-
|
|
15
|
+
import "./index-ea7f539d.js";
|
|
16
|
+
import "./ProTable-087213e3.js";
|
|
17
17
|
import "./Divider.es.js";
|
|
18
18
|
var s = {
|
|
19
19
|
lessThanXSeconds: {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { a as u, b as r, c as d, d as s } from "./index-
|
|
1
|
+
import { a as u, b as r, c as d, d as s } from "./index-67a37bd4.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./clsx.m-
|
|
6
|
-
import "./utils-
|
|
7
|
-
import "./index-
|
|
5
|
+
import "./clsx.m-9bb14413.js";
|
|
6
|
+
import "./utils-096a71c5.js";
|
|
7
|
+
import "./index-86cecf62.js";
|
|
8
8
|
import "./Button.es.js";
|
|
9
9
|
import "./isObjectLike-1b8bbac2.js";
|
|
10
|
-
import "./index-
|
|
10
|
+
import "./index-50c18668.js";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "./close-c67ec245.js";
|
|
13
13
|
import "./Drawer.es.js";
|
|
14
14
|
import "./Slider.es.js";
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./ProTable-
|
|
15
|
+
import "./index-ea7f539d.js";
|
|
16
|
+
import "./ProTable-087213e3.js";
|
|
17
17
|
import "./Divider.es.js";
|
|
18
18
|
var l = {
|
|
19
19
|
lessThanXSeconds: {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { a as d, t as c, b as s, c as h, d as u } from "./index-
|
|
2
|
-
import { i as l } from "./index-
|
|
1
|
+
import { a as d, t as c, b as s, c as h, d as u } from "./index-67a37bd4.js";
|
|
2
|
+
import { i as l } from "./index-867edc6c.js";
|
|
3
3
|
import "./Badge.es.js";
|
|
4
4
|
import "./jsx-runtime-82a9ddf6.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import "./clsx.m-
|
|
7
|
-
import "./utils-
|
|
8
|
-
import "./index-
|
|
6
|
+
import "./clsx.m-9bb14413.js";
|
|
7
|
+
import "./utils-096a71c5.js";
|
|
8
|
+
import "./index-86cecf62.js";
|
|
9
9
|
import "./Button.es.js";
|
|
10
10
|
import "./isObjectLike-1b8bbac2.js";
|
|
11
|
-
import "./index-
|
|
11
|
+
import "./index-50c18668.js";
|
|
12
12
|
import "react-dom";
|
|
13
13
|
import "./close-c67ec245.js";
|
|
14
14
|
import "./Drawer.es.js";
|
|
15
15
|
import "./Slider.es.js";
|
|
16
|
-
import "./index-
|
|
17
|
-
import "./ProTable-
|
|
16
|
+
import "./index-ea7f539d.js";
|
|
17
|
+
import "./ProTable-087213e3.js";
|
|
18
18
|
import "./Divider.es.js";
|
|
19
19
|
var v = {
|
|
20
20
|
lessThanXSeconds: {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { a as m, b as i, c as s, d as n } from "./index-
|
|
1
|
+
import { a as m, b as i, c as s, d as n } from "./index-67a37bd4.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./clsx.m-
|
|
6
|
-
import "./utils-
|
|
7
|
-
import "./index-
|
|
5
|
+
import "./clsx.m-9bb14413.js";
|
|
6
|
+
import "./utils-096a71c5.js";
|
|
7
|
+
import "./index-86cecf62.js";
|
|
8
8
|
import "./Button.es.js";
|
|
9
9
|
import "./isObjectLike-1b8bbac2.js";
|
|
10
|
-
import "./index-
|
|
10
|
+
import "./index-50c18668.js";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "./close-c67ec245.js";
|
|
13
13
|
import "./Drawer.es.js";
|
|
14
14
|
import "./Slider.es.js";
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./ProTable-
|
|
15
|
+
import "./index-ea7f539d.js";
|
|
16
|
+
import "./ProTable-087213e3.js";
|
|
17
17
|
import "./Divider.es.js";
|
|
18
18
|
var u = {
|
|
19
19
|
lessThanXSeconds: {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { a as m, b as n, c as s, d as i } from "./index-
|
|
1
|
+
import { a as m, b as n, c as s, d as i } from "./index-67a37bd4.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./clsx.m-
|
|
6
|
-
import "./utils-
|
|
7
|
-
import "./index-
|
|
5
|
+
import "./clsx.m-9bb14413.js";
|
|
6
|
+
import "./utils-096a71c5.js";
|
|
7
|
+
import "./index-86cecf62.js";
|
|
8
8
|
import "./Button.es.js";
|
|
9
9
|
import "./isObjectLike-1b8bbac2.js";
|
|
10
|
-
import "./index-
|
|
10
|
+
import "./index-50c18668.js";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "./close-c67ec245.js";
|
|
13
13
|
import "./Drawer.es.js";
|
|
14
14
|
import "./Slider.es.js";
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./ProTable-
|
|
15
|
+
import "./index-ea7f539d.js";
|
|
16
|
+
import "./ProTable-087213e3.js";
|
|
17
17
|
import "./Divider.es.js";
|
|
18
18
|
var l = {
|
|
19
19
|
lessThanXSeconds: {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { a as d, b as o, c as s, d as m } from "./index-
|
|
1
|
+
import { a as d, b as o, c as s, d as m } from "./index-67a37bd4.js";
|
|
2
2
|
import "./Badge.es.js";
|
|
3
3
|
import "./jsx-runtime-82a9ddf6.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./clsx.m-
|
|
6
|
-
import "./utils-
|
|
7
|
-
import "./index-
|
|
5
|
+
import "./clsx.m-9bb14413.js";
|
|
6
|
+
import "./utils-096a71c5.js";
|
|
7
|
+
import "./index-86cecf62.js";
|
|
8
8
|
import "./Button.es.js";
|
|
9
9
|
import "./isObjectLike-1b8bbac2.js";
|
|
10
|
-
import "./index-
|
|
10
|
+
import "./index-50c18668.js";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "./close-c67ec245.js";
|
|
13
13
|
import "./Drawer.es.js";
|
|
14
14
|
import "./Slider.es.js";
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./ProTable-
|
|
15
|
+
import "./index-ea7f539d.js";
|
|
16
|
+
import "./ProTable-087213e3.js";
|
|
17
17
|
import "./Divider.es.js";
|
|
18
18
|
var u = {
|
|
19
19
|
lessThanXSeconds: {
|
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ import Sortable from "./components/Sortable";
|
|
|
32
32
|
import SortItem from "./components/Sortable/SortItem";
|
|
33
33
|
import Popup, { PopupRef } from "./components/Popup";
|
|
34
34
|
import { NoticeProvider } from "./provider/NoticeProvider";
|
|
35
|
-
import { ThemeProvider } from "./provider/ThemeProvider";
|
|
35
|
+
import { ThemeProvider, Direction } from "./provider/ThemeProvider";
|
|
36
36
|
import useTheme from "./provider/useTheme";
|
|
37
37
|
import { BUIComponentColor, BUIComponentSize, BUITheme } from "./types/component";
|
|
38
38
|
import { Placement } from "@popperjs/core";
|
|
@@ -43,7 +43,7 @@ import ProTable from "./components/ProTable/ProTable";
|
|
|
43
43
|
import type { ProTableProps, ProTableColumnProps, SortProps, SortType, SortState } from "./components/ProTable/types";
|
|
44
44
|
import { SortEnum } from "./components/ProTable/types";
|
|
45
45
|
export { Badge, Button, Checkbox, CssDropdown, DatePickerRange, DateTimePicker, Dialog, Divider, Drawer, Dropdown, LabelTextField, Pagination, Popover, RadioButton, Select, Slider, SortButton, SortGroup, Switch, Tab, Table, TextArea, TextField, TextSelect, Tooltip, Typography, Sortable, SortItem, Popup, Alert, Toast, MultiSelect, ProTable, SortContext };
|
|
46
|
-
export type { ButtonProps, TypographyProps, InputBaseProps, BUIComponentColor, BUIComponentSize, BUITheme, DatePickerRangeProps, DateTimePickerProps, DialogProps, TableColumnProps, TextSelectRefProps, TextAlign, PopupRef, TabRef, SortsData, Placement, PopoverRefProps, TextSelectProps, ProTableProps, ProTableColumnProps, SortProps, SortType, SortState };
|
|
46
|
+
export type { ButtonProps, TypographyProps, InputBaseProps, BUIComponentColor, BUIComponentSize, BUITheme, DatePickerRangeProps, DateTimePickerProps, DialogProps, TableColumnProps, TextSelectRefProps, TextAlign, PopupRef, TabRef, SortsData, Placement, PopoverRefProps, TextSelectProps, ProTableProps, ProTableColumnProps, SortProps, SortType, SortState, Direction };
|
|
47
47
|
export { NoticeProvider, ThemeProvider };
|
|
48
48
|
export { useNotification, useTheme, useToast };
|
|
49
49
|
export { SortEnum };
|
package/dist/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Badge as x } from "./Badge.es.js";
|
|
2
2
|
import { Button as l } from "./Button.es.js";
|
|
3
|
-
import { A as f, C as n, e as u, D as d, f as P, g as c, L as D, M as b, N as g, P as h, h as v, u as w, R as C, S as k, q as B, p as A, i as N, T as R, j as y, k as F, l as L, m as M, v as j, n as q, o as E, w as G, x as I } from "./index-
|
|
4
|
-
import { D as H } from "./index-
|
|
3
|
+
import { A as f, C as n, e as u, D as d, f as P, g as c, L as D, M as b, N as g, P as h, h as v, u as w, R as C, S as k, q as B, p as A, i as N, T as R, j as y, k as F, l as L, m as M, v as j, n as q, o as E, w as G, x as I } from "./index-67a37bd4.js";
|
|
4
|
+
import { D as H } from "./index-50c18668.js";
|
|
5
5
|
import { Divider as K } from "./Divider.es.js";
|
|
6
6
|
import { Drawer as Q } from "./Drawer.es.js";
|
|
7
7
|
import { Slider as V } from "./Slider.es.js";
|
|
8
|
-
import { b as X, C as Y, a as Z } from "./index-
|
|
9
|
-
import { T as $, u as oo } from "./clsx.m-
|
|
10
|
-
import { P as eo, S as ro } from "./ProTable-
|
|
8
|
+
import { b as X, C as Y, a as Z } from "./index-ea7f539d.js";
|
|
9
|
+
import { T as $, u as oo } from "./clsx.m-9bb14413.js";
|
|
10
|
+
import { P as eo, S as ro } from "./ProTable-087213e3.js";
|
|
11
11
|
import "./jsx-runtime-82a9ddf6.js";
|
|
12
12
|
import "react";
|
|
13
|
-
import "./utils-
|
|
14
|
-
import "./index-
|
|
13
|
+
import "./utils-096a71c5.js";
|
|
14
|
+
import "./index-86cecf62.js";
|
|
15
15
|
import "./isObjectLike-1b8bbac2.js";
|
|
16
16
|
import "react-dom";
|
|
17
17
|
import "./close-c67ec245.js";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BUITheme } from "..";
|
|
3
|
+
export type Direction = "ltr" | "rtl";
|
|
3
4
|
interface ThemeContextProps {
|
|
4
5
|
theme: BUITheme;
|
|
6
|
+
direction?: Direction;
|
|
5
7
|
}
|
|
6
8
|
declare const ThemeContext: import("react").Context<ThemeContextProps>;
|
|
7
9
|
declare const ThemeProvider: import("react").Provider<ThemeContextProps>;
|
package/package.json
CHANGED
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/blofinex/blofin-ui.git"
|
|
6
6
|
},
|
|
7
|
-
"
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/",
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"version": "0.7.64",
|
|
8
12
|
"module": "./dist/index.es.js",
|
|
9
13
|
"type": "module",
|
|
10
14
|
"types": "./dist/index.d.ts",
|
|
@@ -96,6 +100,7 @@
|
|
|
96
100
|
"jsdom": "^22.1.0",
|
|
97
101
|
"minimatch": "^10.0.3",
|
|
98
102
|
"postcss": "^8.4.24",
|
|
103
|
+
"postcss-rtl": "^2.0.0",
|
|
99
104
|
"prettier": "^2.8.8",
|
|
100
105
|
"prettier-plugin-tailwindcss": "^0.3.0",
|
|
101
106
|
"react": "^18.2.0",
|
|
@@ -105,6 +110,7 @@
|
|
|
105
110
|
"storybook": "^7.4.0",
|
|
106
111
|
"storybook-dark-mode": "^3.0.1",
|
|
107
112
|
"tailwindcss": "^3.3.2",
|
|
113
|
+
"tailwindcss-rtl": "^0.9.0",
|
|
108
114
|
"typescript": "^5.0.2",
|
|
109
115
|
"vite": "^4.3.9",
|
|
110
116
|
"vite-plugin-dts": "^2.3.0",
|
package/dist/clsx.m-b14a941b.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createContext as f, useContext as i } from "react";
|
|
2
|
-
const n = f({
|
|
3
|
-
theme: "light"
|
|
4
|
-
}), a = n.Provider, c = () => {
|
|
5
|
-
const { theme: t } = i(n);
|
|
6
|
-
return {
|
|
7
|
-
theme: t
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
function s(t) {
|
|
11
|
-
var e, o, r = "";
|
|
12
|
-
if (typeof t == "string" || typeof t == "number")
|
|
13
|
-
r += t;
|
|
14
|
-
else if (typeof t == "object")
|
|
15
|
-
if (Array.isArray(t))
|
|
16
|
-
for (e = 0; e < t.length; e++)
|
|
17
|
-
t[e] && (o = s(t[e])) && (r && (r += " "), r += o);
|
|
18
|
-
else
|
|
19
|
-
for (e in t)
|
|
20
|
-
t[e] && (r && (r += " "), r += e);
|
|
21
|
-
return r;
|
|
22
|
-
}
|
|
23
|
-
function m() {
|
|
24
|
-
for (var t, e, o = 0, r = ""; o < arguments.length; )
|
|
25
|
-
(t = arguments[o++]) && (e = s(t)) && (r && (r += " "), r += e);
|
|
26
|
-
return r;
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
a as T,
|
|
30
|
-
m as c,
|
|
31
|
-
c as u
|
|
32
|
-
};
|