@bioturing/components 0.17.0 → 0.18.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/components/ColorSelect/component.js +198 -109
- package/dist/components/ColorSelect/component.js.map +1 -1
- package/dist/components/ColorSelect/style.css +1 -1
- package/dist/components/DragDrop/draggable.js +21 -20
- package/dist/components/DragDrop/draggable.js.map +1 -1
- package/dist/components/DragDrop/droppable.js +69 -37
- package/dist/components/DragDrop/droppable.js.map +1 -1
- package/dist/components/DragDrop/hooks.js +61 -55
- package/dist/components/DragDrop/hooks.js.map +1 -1
- package/dist/components/DragDrop/index.js +23 -18
- package/dist/components/DragDrop/index.js.map +1 -1
- package/dist/components/DragDrop/style.css +1 -1
- package/dist/components/DragDrop/value.js +84 -0
- package/dist/components/DragDrop/value.js.map +1 -0
- package/dist/components/IconButton/component.js +22 -21
- package/dist/components/IconButton/component.js.map +1 -1
- package/dist/components/Tag/component.js +55 -47
- package/dist/components/Tag/component.js.map +1 -1
- package/dist/components/Tag/style.css +1 -1
- package/dist/components/utils/selectionRange.js +9 -0
- package/dist/components/utils/selectionRange.js.map +1 -0
- package/dist/components/utils/theme.js +22 -0
- package/dist/components/utils/theme.js.map +1 -0
- package/dist/index.d.ts +38 -7
- package/dist/index.js +142 -138
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { componentMetadata as r, getComponentsByCategory as t } from "./metadata.js";
|
|
2
|
-
import { Affix as p, Alert as m, Anchor as s, App as
|
|
2
|
+
import { Affix as p, Alert as m, Anchor as s, App as f, AutoComplete as l, Avatar as n, BackTop as x, Calendar as i, Card as C, Carousel as c, Cascader as T, Col as u, ColorPicker as d, ConfigProvider as g, DatePicker as S, Descriptions as h, Divider as A, Drawer as E, Dropdown as k, Flex as P, FloatButton as R, Grid as D, InputNumber as b, Layout as y, List as B, Mentions as L, Menu as v, Pagination as I, Popconfirm as M, Progress as F, QRCode as N, Rate as U, Result as w, Row as _, Skeleton as O, Space as W, Statistic as q, Steps as G, Tabs as K, TimePicker as Q, Timeline as V, Transfer as H, TreeSelect as j, Typography as z, Watermark as J, message as X, notification as Y, theme as Z, unstableSetRender as $, version as oo } from "antd";
|
|
3
3
|
import { Select as ro } from "./components/Select/component.js";
|
|
4
4
|
import { Modal as ao } from "./components/Modal/index.js";
|
|
5
5
|
import { IconButton as mo } from "./components/IconButton/component.js";
|
|
6
|
-
import { Switch as
|
|
6
|
+
import { Switch as fo } from "./components/Switch/component.js";
|
|
7
7
|
import { Checkbox as no } from "./components/Checkbox/component.js";
|
|
8
8
|
import { Segmented as io } from "./components/Segmented/component.js";
|
|
9
9
|
import { Table as co } from "./components/Table/component.js";
|
|
@@ -12,210 +12,214 @@ import { ThemeProvider as So } from "./components/ThemeProvider/component.js";
|
|
|
12
12
|
import { Split as Ao, Splitter as Eo } from "./components/Splitter/component.js";
|
|
13
13
|
import { Truncate as Po } from "./components/Truncate/component.js";
|
|
14
14
|
import { DropdownMenu as Do } from "./components/DropdownMenu/component.js";
|
|
15
|
-
import { clsx as
|
|
15
|
+
import { clsx as yo, cn as Bo, cx as Lo } from "./components/utils/cn.js";
|
|
16
16
|
import { reactNodeToString as Io } from "./components/utils/reactToString.js";
|
|
17
17
|
import { isTracebackError as Fo } from "./components/utils/isTracebackError.js";
|
|
18
18
|
import { isValidHexColor as Uo } from "./components/utils/colors.js";
|
|
19
|
-
import { parseAntdPlacement as _o, useAntdCssVarClassname as Oo, useCls as
|
|
19
|
+
import { parseAntdPlacement as _o, useAntdCssVarClassname as Oo, useCls as Wo, useGetPrefixCls as qo } from "./components/utils/antdUtils.js";
|
|
20
20
|
import { WithAntdTokens as Ko } from "./components/utils/WithAntdTokens.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
21
|
+
import { changeThemeWithoutTransition as Vo } from "./components/utils/theme.js";
|
|
22
|
+
import { moveTypingCursorToEnd as jo } from "./components/utils/selectionRange.js";
|
|
23
|
+
import { Transition as Jo } from "./components/Transition/component.js";
|
|
24
|
+
import { DefaultUpload as Yo, Upload as Zo } from "./components/Upload/component.js";
|
|
25
|
+
import { useUploadItemRender as oe } from "./components/Upload/hooks.js";
|
|
26
|
+
import { ScrollArea as re } from "./components/ScrollArea/component.js";
|
|
27
|
+
import { Popover as ae } from "./components/Popover/component.js";
|
|
28
|
+
import { Slider as me } from "./components/Slider/component.js";
|
|
29
|
+
import { Tooltip as fe } from "./components/Tooltip/component.js";
|
|
30
|
+
import { Breadcrumb as ne } from "./components/Breadcrumb/component.js";
|
|
31
|
+
import { useUniqueKeysTree as ie } from "./components/Tree/useUniqueKeysTree.js";
|
|
32
|
+
import { getUniqueKeysFromOriginals as ce, processTreeData as Te } from "./components/Tree/helpers.js";
|
|
33
|
+
import { Tree as de } from "./components/Tree/components.js";
|
|
34
|
+
import { Spin as Se } from "./components/Spin/component.js";
|
|
35
|
+
import { Empty as Ae, EmptyIcon as Ee } from "./components/Empty/component.js";
|
|
36
|
+
import { Form as Pe } from "./components/Form/component.js";
|
|
37
|
+
import { Field as De } from "./components/Field/component.js";
|
|
38
|
+
import { Tour as ye } from "./components/Tour/component.js";
|
|
39
|
+
import { Toast as Le } from "./components/Toast/component.js";
|
|
40
|
+
import { toast as Ie, toastManager as Me } from "./components/Toast/function.js";
|
|
41
|
+
import { VerticalCollapsiblePanel as Ne } from "./components/VerticalCollapsiblePanel/component.js";
|
|
42
|
+
import { PopupPanel as we } from "./components/PopupPanel/component.js";
|
|
43
|
+
import { CodeBlock as Oe } from "./components/CodeBlock/component.js";
|
|
44
|
+
import { StackChild as qe } from "./components/Stack/StackChild.js";
|
|
45
|
+
import { Stack as Ke } from "./components/Stack/index.js";
|
|
46
|
+
import { Collapse as Ve } from "./components/Collapse/component.js";
|
|
47
|
+
import { Input as je } from "./components/Input/component.js";
|
|
48
|
+
import { Badge as Je, InternalBadge as Xe } from "./components/Badge/component.js";
|
|
49
|
+
import { Radio as Ze } from "./components/Radio/component.js";
|
|
50
|
+
import { Button as or } from "./components/Button/component.js";
|
|
51
|
+
import { DSRoot as rr } from "./components/DSRoot/component.js";
|
|
52
|
+
import { DSRootContextProvider as ar, useDS as pr } from "./components/DSRoot/context.js";
|
|
53
|
+
import { DragDrop as sr, DragDropRoot as fr } from "./components/DragDrop/index.js";
|
|
54
|
+
import { ColorSelect as nr } from "./components/ColorSelect/component.js";
|
|
55
|
+
import { Nav as ir } from "./components/Nav/index.js";
|
|
56
|
+
import { useForm as cr, useWatch as Tr } from "antd/es/form/Form";
|
|
57
|
+
import { useBreakpoint as dr, useMessage as gr, useModal as Sr, useToken as hr } from "./components/hooks/antd.js";
|
|
58
|
+
import { default as Er } from "antd/es/app/useApp";
|
|
59
|
+
import { useAnimationsFinished as Pr, useEnhancedEffect as Rr, useEventCallback as Dr, useLatestRef as br } from "./components/hooks/base-ui.js";
|
|
60
|
+
import { useControlledState as Br } from "./components/hooks/useControlledState.js";
|
|
61
|
+
import { useCharts as vr } from "./components/hooks/useCharts.js";
|
|
62
|
+
import { antdColorTokens as Mr, darkTheme as Fr, lightTheme as Nr } from "./tokens/and-theme/tokens.js";
|
|
63
|
+
import { categoricalChartColorKeys as wr, categoricalChartColorTokens as _r, categoricalChartsColors as Or, chartColorTokens as Wr, rawChartColorTokens as qr } from "./tokens/charts/palettes/cloudscape.js";
|
|
64
|
+
import { COLORBREWER as Kr } from "./tokens/charts/palettes/colorbrewer.js";
|
|
65
|
+
import { tab10 as Vr, tab20 as Hr, tab20b as jr, tab20c as zr } from "./tokens/charts/palettes/tableau.js";
|
|
66
|
+
import { CATEGORICAL_PALETTES as Xr, CATEGORICAL_PALETTE_NAMES as Yr, SEQUENTIAL_PALETTES as Zr, SEQUENTIAL_PALETTE_NAMES as $r, getAllCategoricalChartColors as ot, getAllSequentialChartColors as et, getCategoricalChartColors as rt, getSequentialChartColors as tt } from "./tokens/charts/palettes/index.js";
|
|
67
|
+
import { getColorsByTheme as pt, getTokensByTheme as mt, resolveColorTokens as st } from "./tokens/utils.js";
|
|
66
68
|
export {
|
|
67
69
|
p as Affix,
|
|
68
70
|
m as Alert,
|
|
69
71
|
s as Anchor,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
f as App,
|
|
73
|
+
l as AutoComplete,
|
|
72
74
|
n as Avatar,
|
|
73
75
|
x as BackTop,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
Je as Badge,
|
|
77
|
+
ne as Breadcrumb,
|
|
78
|
+
or as Button,
|
|
79
|
+
Xr as CATEGORICAL_PALETTES,
|
|
80
|
+
Yr as CATEGORICAL_PALETTE_NAMES,
|
|
81
|
+
Kr as COLORBREWER,
|
|
80
82
|
i as Calendar,
|
|
81
83
|
C as Card,
|
|
82
84
|
c as Carousel,
|
|
83
85
|
T as Cascader,
|
|
84
86
|
no as Checkbox,
|
|
85
|
-
|
|
87
|
+
Oe as CodeBlock,
|
|
86
88
|
u as Col,
|
|
87
|
-
|
|
89
|
+
Ve as Collapse,
|
|
88
90
|
d as ColorPicker,
|
|
89
|
-
|
|
91
|
+
nr as ColorSelect,
|
|
90
92
|
g as ConfigProvider,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
rr as DSRoot,
|
|
94
|
+
ar as DSRootContextProvider,
|
|
93
95
|
S as DatePicker,
|
|
94
|
-
|
|
96
|
+
Yo as DefaultUpload,
|
|
95
97
|
h as Descriptions,
|
|
96
98
|
A as Divider,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
sr as DragDrop,
|
|
100
|
+
fr as DragDropRoot,
|
|
99
101
|
E as Drawer,
|
|
100
102
|
k as Dropdown,
|
|
101
103
|
Do as DropdownMenu,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
Ae as Empty,
|
|
105
|
+
Ee as EmptyIcon,
|
|
106
|
+
De as Field,
|
|
105
107
|
P as Flex,
|
|
106
108
|
R as FloatButton,
|
|
107
|
-
|
|
109
|
+
Pe as Form,
|
|
108
110
|
D as Grid,
|
|
109
111
|
mo as IconButton,
|
|
110
|
-
|
|
112
|
+
je as Input,
|
|
111
113
|
b as InputNumber,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
Xe as InternalBadge,
|
|
115
|
+
y as Layout,
|
|
116
|
+
B as List,
|
|
115
117
|
L as Mentions,
|
|
116
118
|
v as Menu,
|
|
117
119
|
ao as Modal,
|
|
118
|
-
|
|
120
|
+
ir as Nav,
|
|
119
121
|
I as Pagination,
|
|
120
122
|
M as Popconfirm,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
ae as Popover,
|
|
124
|
+
we as PopupPanel,
|
|
123
125
|
F as Progress,
|
|
124
126
|
N as QRCode,
|
|
125
|
-
|
|
127
|
+
Ze as Radio,
|
|
126
128
|
U as Rate,
|
|
127
129
|
w as Result,
|
|
128
130
|
_ as Row,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
Zr as SEQUENTIAL_PALETTES,
|
|
132
|
+
$r as SEQUENTIAL_PALETTE_NAMES,
|
|
133
|
+
re as ScrollArea,
|
|
132
134
|
io as Segmented,
|
|
133
135
|
ro as Select,
|
|
134
136
|
O as Skeleton,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
me as Slider,
|
|
138
|
+
W as Space,
|
|
139
|
+
Se as Spin,
|
|
138
140
|
Ao as Split,
|
|
139
141
|
Eo as Splitter,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
Ke as Stack,
|
|
143
|
+
qe as StackChild,
|
|
144
|
+
q as Statistic,
|
|
145
|
+
G as Steps,
|
|
146
|
+
fo as Switch,
|
|
145
147
|
co as Table,
|
|
146
148
|
K as Tabs,
|
|
147
149
|
uo as Tag,
|
|
148
150
|
So as ThemeProvider,
|
|
149
151
|
Q as TimePicker,
|
|
150
152
|
V as Timeline,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
153
|
+
Le as Toast,
|
|
154
|
+
fe as Tooltip,
|
|
155
|
+
ye as Tour,
|
|
154
156
|
H as Transfer,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
+
Jo as Transition,
|
|
158
|
+
de as Tree,
|
|
157
159
|
j as TreeSelect,
|
|
158
160
|
Po as Truncate,
|
|
159
161
|
z as Typography,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
+
Zo as Upload,
|
|
163
|
+
Ne as VerticalCollapsiblePanel,
|
|
162
164
|
J as Watermark,
|
|
163
165
|
Ko as WithAntdTokens,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
yo as
|
|
166
|
+
Mr as antdColorTokens,
|
|
167
|
+
wr as categoricalChartColorKeys,
|
|
168
|
+
_r as categoricalChartColorTokens,
|
|
169
|
+
Or as categoricalChartsColors,
|
|
170
|
+
Vo as changeThemeWithoutTransition,
|
|
171
|
+
Wr as chartColorTokens,
|
|
172
|
+
yo as clsx,
|
|
173
|
+
Bo as cn,
|
|
171
174
|
r as componentMetadata,
|
|
172
175
|
Lo as cx,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
Fr as darkTheme,
|
|
177
|
+
ot as getAllCategoricalChartColors,
|
|
178
|
+
et as getAllSequentialChartColors,
|
|
179
|
+
rt as getCategoricalChartColors,
|
|
180
|
+
pt as getColorsByTheme,
|
|
178
181
|
t as getComponentsByCategory,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
tt as getSequentialChartColors,
|
|
183
|
+
mt as getTokensByTheme,
|
|
184
|
+
ce as getUniqueKeysFromOriginals,
|
|
182
185
|
Fo as isTracebackError,
|
|
183
186
|
Uo as isValidHexColor,
|
|
184
|
-
|
|
187
|
+
Nr as lightTheme,
|
|
185
188
|
X as message,
|
|
189
|
+
jo as moveTypingCursorToEnd,
|
|
186
190
|
Y as notification,
|
|
187
191
|
_o as parseAntdPlacement,
|
|
188
|
-
|
|
189
|
-
|
|
192
|
+
Te as processTreeData,
|
|
193
|
+
qr as rawChartColorTokens,
|
|
190
194
|
Io as reactNodeToString,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
195
|
+
st as resolveColorTokens,
|
|
196
|
+
Vr as tab10,
|
|
197
|
+
Hr as tab20,
|
|
198
|
+
jr as tab20b,
|
|
199
|
+
zr as tab20c,
|
|
196
200
|
Z as theme,
|
|
197
|
-
|
|
198
|
-
|
|
201
|
+
Ie as toast,
|
|
202
|
+
Me as toastManager,
|
|
199
203
|
$ as unstableSetRender,
|
|
200
|
-
|
|
204
|
+
Pr as useAnimationsFinished,
|
|
201
205
|
Oo as useAntdCssVarClassname,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
206
|
+
Er as useApp,
|
|
207
|
+
dr as useBreakpoint,
|
|
208
|
+
vr as useCharts,
|
|
209
|
+
Wo as useCls,
|
|
210
|
+
Br as useControlledState,
|
|
211
|
+
pr as useDS,
|
|
212
|
+
Rr as useEnhancedEffect,
|
|
213
|
+
Dr as useEventCallback,
|
|
214
|
+
cr as useForm,
|
|
215
|
+
qo as useGetPrefixCls,
|
|
216
|
+
br as useLatestRef,
|
|
217
|
+
gr as useMessage,
|
|
218
|
+
Sr as useModal,
|
|
219
|
+
hr as useToken,
|
|
220
|
+
ie as useUniqueKeysTree,
|
|
221
|
+
oe as useUploadItemRender,
|
|
222
|
+
Tr as useWatch,
|
|
219
223
|
oo as version
|
|
220
224
|
};
|
|
221
225
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|