@blofin/blofin-ui 0.7.61 → 0.7.62-beta.2
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 +3 -3
- package/dist/Button.es.js +53 -53
- 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-d028ad0b.js} +7 -8
- 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/config/tailwind.js +3 -2
- package/dist/{index-27fd2203.js → index-0069c9e3.js} +7 -7
- package/dist/{index-200f0cb0.js → index-01026f94.js} +2 -2
- package/dist/{index-cdc5581e.js → index-01db97c5.js} +7 -7
- package/dist/{index-bcfdca26.js → index-0292b329.js} +7 -7
- package/dist/{index-11ed8e1e.js → index-0387520b.js} +7 -7
- package/dist/{index-c06461e4.js → index-04a8fcf8.js} +7 -7
- package/dist/{index-c5fd9877.js → index-04f1b3af.js} +7 -7
- package/dist/{index-bb110e35.js → index-07fd30f0.js} +8 -8
- package/dist/{index-06942aa2.js → index-0a76d898.js} +8 -8
- package/dist/{index-6f7c6176.js → index-0d344c21.js} +7 -7
- package/dist/{index-6c7e84e3.js → index-10311a5d.js} +7 -7
- package/dist/{index-2e2af4c2.js → index-149a87aa.js} +1 -1
- package/dist/{index-20c30fd3.js → index-14b0ac5d.js} +8 -8
- package/dist/{index-78b9c8f9.js → index-17805dcd.js} +7 -7
- package/dist/{index-49e62b6e.js → index-1a9a8842.js} +7 -7
- package/dist/{index-8a256357.js → index-1c21bf3b.js} +7 -7
- package/dist/{index-5b3a8482.js → index-1d9c8cf6.js} +7 -7
- package/dist/{index-0c947f08.js → index-20657d3c.js} +7 -7
- package/dist/{index-1d30e6a1.js → index-2381ee0a.js} +7 -7
- package/dist/{index-99a3bf9b.js → index-296bd519.js} +7 -7
- package/dist/{index-6d6d57fd.js → index-2bde0d49.js} +7 -7
- package/dist/{index-73b5523a.js → index-2cc44319.js} +7 -7
- package/dist/{index-01fa9075.js → index-2fad791a.js} +8 -8
- package/dist/{index-26e9b5ae.js → index-2fad7ef3.js} +7 -7
- package/dist/{index-168e5f6a.js → index-386aa451.js} +7 -7
- package/dist/{index-f40ff393.js → index-42b1d33b.js} +9 -9
- package/dist/{index-40459169.js → index-4449d4b9.js} +7 -7
- package/dist/{index-712da957.js → index-486710d8.js} +7 -7
- package/dist/{index-afe5111a.js → index-48e5197b.js} +7 -7
- package/dist/{index-da49a1d5.js → index-49840853.js} +7 -7
- package/dist/{index-af160501.js → index-4c1c3b8a.js} +7 -7
- package/dist/{index-b14d2f55.js → index-4c7452dd.js} +7 -7
- package/dist/{index-40626e62.js → index-50c18668.js} +59 -59
- package/dist/{index-313c7581.js → index-5c1f04ee.js} +7 -7
- package/dist/{index-fb976a33.js → index-5d917dfd.js} +7 -7
- package/dist/{index-05675e79.js → index-5fb8d494.js} +7 -7
- package/dist/{index-d94818cf.js → index-6b2d210b.js} +7 -7
- package/dist/{index-4486b59f.js → index-6bc1614e.js} +9 -9
- package/dist/{index-c624667a.js → index-6d3a04a0.js} +7 -7
- package/dist/{index-261244be.js → index-6ed92eb7.js} +7 -7
- package/dist/{index-8d59f49c.js → index-703d4773.js} +7 -7
- package/dist/{index-b4118dd1.js → index-70e902ef.js} +7 -7
- package/dist/{index-7e4350db.js → index-714a3b5e.js} +7 -7
- package/dist/{index-8802254a.js → index-74d5cef3.js} +7 -7
- package/dist/{index-39afbe30.js → index-74ecd42e.js} +1 -1
- package/dist/{index-e696b020.js → index-7dc4a343.js} +8 -8
- package/dist/{index-74f0d19e.js → index-7ea43be1.js} +8 -8
- package/dist/{index-24571e1a.js → index-7ee9e473.js} +8 -8
- package/dist/{index-1e98bfaa.js → index-80f8a806.js} +7 -7
- package/dist/{index-38f5f308.js → index-82835acd.js} +7 -7
- package/dist/{index-7272669e.js → index-86cecf62.js} +1 -1
- package/dist/{index-9d571166.js → index-89585d40.js} +7 -7
- package/dist/{index-39c2cf33.js → index-89893a11.js} +7 -7
- package/dist/{index-53e23440.js → index-8b6f70b0.js} +7 -7
- package/dist/{index-b2b7a241.js → index-8bc263cd.js} +7 -7
- package/dist/{index-8e71bc24.js → index-8eeee359.js} +7 -7
- package/dist/{index-a03e2363.js → index-973791d7.js} +7 -7
- package/dist/{index-ed523ae5.js → index-9a2645a8.js} +8 -8
- package/dist/{index-e7a49961.js → index-9cb6c809.js} +7 -7
- package/dist/{index-13e3dd69.js → index-9cc481f7.js} +7 -7
- package/dist/{index-b2bb21a1.js → index-a59135b8.js} +7 -7
- package/dist/{index-4b8f975d.js → index-a5fe21cd.js} +7 -7
- package/dist/{index-ec1494d7.js → index-a9625b4e.js} +7 -7
- package/dist/{index-74ca867d.js → index-aa262a9d.js} +7 -7
- package/dist/{index-dba23822.js → index-ab43a408.js} +8 -8
- package/dist/{index-a52ef6bc.js → index-b7444e82.js} +8 -8
- package/dist/{index-5f08442c.js → index-b7b46f67.js} +7 -7
- package/dist/{index-c4cd7ca7.js → index-b7ea1902.js} +7 -7
- package/dist/{index-d61cba2c.js → index-b92ba118.js} +7 -7
- package/dist/{index-fb8c76ea.js → index-baf787f7.js} +7 -7
- package/dist/{index-02d586cc.js → index-c07b2ad1.js} +7 -7
- package/dist/{index-87967611.js → index-c95fd1e6.js} +8 -8
- package/dist/{index-652fb2a1.js → index-d0eae08a.js} +8 -8
- package/dist/{index-57c290c9.js → index-d1d3db6d.js} +8 -8
- package/dist/{index-4e3398b2.js → index-d89aeeb0.js} +7 -7
- package/dist/{index-f99d7119.js → index-d9364b1a.js} +7 -7
- package/dist/{index-89f7e024.js → index-deeed3e3.js} +7 -7
- package/dist/{index-06addca7.js → index-df8fed10.js} +7 -7
- package/dist/{index-95c68eda.js → index-ea7f539d.js} +38 -38
- package/dist/{index-0ae42181.js → index-ed0cf3f2.js} +7 -7
- package/dist/{index-fb380321.js → index-ee7ede1d.js} +7 -7
- package/dist/{index-c0289cb3.js → index-eed2695c.js} +7 -7
- package/dist/{index-3bcdcfa4.js → index-eef05749.js} +7 -7
- package/dist/{index-85f017e3.js → index-f13a6c94.js} +7 -7
- package/dist/{index-06600576.js → index-f6a9aa5d.js} +1 -1
- package/dist/{index-c287f58d.js → index-f8979b6d.js} +7 -7
- package/dist/{index-752cda87.js → index-f8c2f10e.js} +8 -8
- package/dist/{index-54346b30.js → index-f9100785.js} +8 -8
- package/dist/{index-da92e7f1.js → index-f9d63b9d.js} +7 -7
- package/dist/{index-4a2c3474.js → index-fc0a25bf.js} +3197 -3123
- package/dist/{index-c7562a9b.js → index-fc2b4220.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 +3 -1
- package/dist/clsx.m-b14a941b.js +0 -32
|
@@ -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-fc0a25bf.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-d028ad0b.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-fc0a25bf.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-d028ad0b.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,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/blofinex/blofin-ui.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.7.
|
|
7
|
+
"version": "0.7.62-beta.2",
|
|
8
8
|
"module": "./dist/index.es.js",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
"jsdom": "^22.1.0",
|
|
97
97
|
"minimatch": "^10.0.3",
|
|
98
98
|
"postcss": "^8.4.24",
|
|
99
|
+
"postcss-rtl": "^2.0.0",
|
|
99
100
|
"prettier": "^2.8.8",
|
|
100
101
|
"prettier-plugin-tailwindcss": "^0.3.0",
|
|
101
102
|
"react": "^18.2.0",
|
|
@@ -105,6 +106,7 @@
|
|
|
105
106
|
"storybook": "^7.4.0",
|
|
106
107
|
"storybook-dark-mode": "^3.0.1",
|
|
107
108
|
"tailwindcss": "^3.3.2",
|
|
109
|
+
"tailwindcss-rtl": "^0.9.0",
|
|
108
110
|
"typescript": "^5.0.2",
|
|
109
111
|
"vite": "^4.3.9",
|
|
110
112
|
"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
|
-
};
|