@para-ui/core 4.0.84 → 4.0.87
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/Cascader/index.js +6 -7
- package/ComboSelect/index.js +5 -3
- package/CycleSelector/index.js +2 -6
- package/DatePicker/index.js +1 -4
- package/Desktop/index.js +2 -2
- package/DynamicMultiBox/index.js +5 -4
- package/FieldForm/index.js +4 -5
- package/Form/index.js +6 -4
- package/FormItem/index.js +6 -4
- package/Image/index.js +4 -5
- package/Menu/index.js +10 -1
- package/Message/index.js +5 -1
- package/Progress/index.js +41 -40
- package/README.md +12 -0
- package/Switch/index.js +2 -2
- package/Table/index.js +1 -2
- package/Tag/index.js +55 -87
- package/TimePicker/index.js +1 -4
- package/Timeline/index.js +13 -20
- package/ToggleButton/index.js +1 -2
- package/Tree/index.js +7 -4
- package/Upload/index.js +4 -5
- package/_verture/{Portal-502bb85e.js → Portal-274c5bd8.js} +2 -2
- package/_verture/{defineProperty-6f62bb2a.js → defineProperty-f0e15205.js} +10 -2
- package/_verture/{index-78f0f0e7.js → index-99b02582.js} +4 -5
- package/_verture/{index-1856bbeb.js → index-9e4b0e32.js} +1 -1
- package/_verture/{index-1ef401c5.js → index-dfb6ceb9.js} +395 -314
- package/_verture/{isEqual-30b6f859.js → isEqual-38aa74f9.js} +2 -2
- package/_verture/{useState-f2419d68.js → useState-05fc6660.js} +2 -3
- package/index.js +8 -9
- package/package.json +1 -1
- package/umd/Argv.js +1 -1
- package/umd/CycleSelector.js +1 -1
- package/umd/Menu.js +1 -1
- package/umd/Message.js +1 -1
- package/_verture/typeof-adeedc13.js +0 -11
- /package/_verture/{index-d49daa78.js → index-0fafedf4.js} +0 -0
package/Tag/index.js
CHANGED
|
@@ -4,9 +4,6 @@ import { useState, useRef, useEffect } from 'react';
|
|
|
4
4
|
import Close from '@para-ui/icons/Close';
|
|
5
5
|
import EditOutline from '@para-ui/icons/EditOutline';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-599cd94a.js';
|
|
8
|
-
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
9
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-61604a6c.js';
|
|
10
7
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
11
8
|
import AutoTips from '../AutoTips/index.js';
|
|
12
9
|
import { t as tinycolor } from '../_verture/tinycolor-ece3542d.js';
|
|
@@ -25,129 +22,102 @@ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/1/12 上
|
|
|
25
22
|
styleInject(css_248z);
|
|
26
23
|
|
|
27
24
|
//tag group
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
className
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
setInData = _useState2[1]; //数据源
|
|
49
|
-
var _useState3 = useState(defaultInputValue !== null && defaultInputValue !== void 0 ? defaultInputValue : ''),
|
|
50
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
51
|
-
inputValue = _useState4[0],
|
|
52
|
-
setInputValue = _useState4[1]; //input value
|
|
53
|
-
var _useState5 = useState(false),
|
|
54
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
55
|
-
inputVisible = _useState6[0],
|
|
56
|
-
setInputVisible = _useState6[1]; //input visible
|
|
57
|
-
var inputRef = useRef(); //input ref
|
|
58
|
-
var _useState7 = useState(),
|
|
59
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
60
|
-
increasedInputWidth = _useState8[0],
|
|
61
|
-
setIncreasedInputWidth = _useState8[1]; //添加标签的最小宽
|
|
62
|
-
useEffect(function () {
|
|
25
|
+
const TagGroup = props => {
|
|
26
|
+
const {
|
|
27
|
+
className,
|
|
28
|
+
size = 'large',
|
|
29
|
+
style,
|
|
30
|
+
defaultInputValue,
|
|
31
|
+
increased = false,
|
|
32
|
+
increasedTag,
|
|
33
|
+
inputClassName,
|
|
34
|
+
inputWidth,
|
|
35
|
+
marginBottom = '8px',
|
|
36
|
+
marginRight = '8px',
|
|
37
|
+
onChange
|
|
38
|
+
} = useGlobalProps(props, 'TagGroup');
|
|
39
|
+
const [inData, setInData] = useState([]); //数据源
|
|
40
|
+
const [inputValue, setInputValue] = useState(defaultInputValue !== null && defaultInputValue !== void 0 ? defaultInputValue : ''); //input value
|
|
41
|
+
const [inputVisible, setInputVisible] = useState(false); //input visible
|
|
42
|
+
const inputRef = useRef(); //input ref
|
|
43
|
+
const [increasedInputWidth, setIncreasedInputWidth] = useState(); //添加标签的最小宽
|
|
44
|
+
useEffect(() => {
|
|
63
45
|
if (props.data) {
|
|
64
|
-
|
|
46
|
+
let tArr = props.data;
|
|
65
47
|
//Item[]
|
|
66
|
-
|
|
67
|
-
return ['string', 'number'].includes(_typeof(v));
|
|
68
|
-
});
|
|
48
|
+
const unObjType = tArr.some(v => ['string', 'number'].includes(typeof v));
|
|
69
49
|
if (unObjType) {
|
|
70
|
-
tArr = tArr.map(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
};
|
|
75
|
-
});
|
|
50
|
+
tArr = tArr.map(_ => ({
|
|
51
|
+
value: _,
|
|
52
|
+
label: _
|
|
53
|
+
}));
|
|
76
54
|
}
|
|
77
|
-
setInData(
|
|
55
|
+
setInData([...tArr]);
|
|
78
56
|
}
|
|
79
57
|
}, [props.data]);
|
|
80
58
|
//tag value
|
|
81
|
-
|
|
82
|
-
return data.map(
|
|
83
|
-
return _.value;
|
|
84
|
-
});
|
|
59
|
+
const getTagGroupVal = data => {
|
|
60
|
+
return data.map(_ => _.value);
|
|
85
61
|
};
|
|
86
62
|
//show input
|
|
87
|
-
|
|
63
|
+
const showInput = () => {
|
|
88
64
|
setInputVisible(true);
|
|
89
|
-
setTimeout(
|
|
65
|
+
setTimeout(() => {
|
|
90
66
|
var _a;
|
|
91
67
|
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
92
68
|
});
|
|
93
69
|
};
|
|
94
|
-
|
|
70
|
+
const handleTagEdit = (value, idx) => {
|
|
95
71
|
inData[idx].value = value;
|
|
96
|
-
setInData(
|
|
72
|
+
setInData([...inData]);
|
|
97
73
|
onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
|
|
98
74
|
};
|
|
99
75
|
//input change
|
|
100
|
-
|
|
76
|
+
const handleInputChange = e => {
|
|
101
77
|
setInputValue(e.target.value);
|
|
102
78
|
};
|
|
103
79
|
//input confirm
|
|
104
|
-
|
|
105
|
-
|
|
80
|
+
const handleInputConfirm = () => {
|
|
81
|
+
const val = inputValue.trim();
|
|
106
82
|
if (val !== '') {
|
|
107
83
|
inData.push({
|
|
108
84
|
value: val,
|
|
109
85
|
label: val,
|
|
110
86
|
closable: true
|
|
111
87
|
});
|
|
112
|
-
setInData(
|
|
88
|
+
setInData([...inData]);
|
|
113
89
|
onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
|
|
114
90
|
}
|
|
115
91
|
setInputValue(defaultInputValue !== null && defaultInputValue !== void 0 ? defaultInputValue : '');
|
|
116
92
|
setInputVisible(false);
|
|
117
93
|
};
|
|
118
94
|
//input enter
|
|
119
|
-
|
|
95
|
+
const handleInputEnter = e => {
|
|
120
96
|
if (e.keyCode === 13 || e.which === 13) {
|
|
121
97
|
handleInputConfirm();
|
|
122
98
|
}
|
|
123
99
|
};
|
|
124
100
|
//handle close
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
if (item.onClose) item.onClose(e);
|
|
135
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
|
|
136
|
-
};
|
|
101
|
+
const handleClose = item => e => {
|
|
102
|
+
const idx = inData.findIndex(_ => _.value === item.value);
|
|
103
|
+
if (idx > -1) {
|
|
104
|
+
inData.splice(idx, 1);
|
|
105
|
+
setInData([...inData]);
|
|
106
|
+
}
|
|
107
|
+
if (item.onClose) item.onClose(e);
|
|
108
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
|
|
137
109
|
};
|
|
138
110
|
//渲染Tag组
|
|
139
|
-
|
|
111
|
+
const renderTagGroup = () => {
|
|
140
112
|
if (!(inData === null || inData === void 0 ? void 0 : inData.length)) return null;
|
|
141
|
-
return inData.map(
|
|
113
|
+
return inData.map((item, idx) => {
|
|
142
114
|
return jsx(Tag, Object.assign({
|
|
143
115
|
marginBottom: marginBottom,
|
|
144
116
|
marginRight: marginRight
|
|
145
117
|
}, item, {
|
|
146
118
|
size: size,
|
|
147
119
|
visible: true,
|
|
148
|
-
tagChange:
|
|
149
|
-
return handleTagEdit(value, idx);
|
|
150
|
-
},
|
|
120
|
+
tagChange: value => handleTagEdit(value, idx),
|
|
151
121
|
onClose: handleClose(item)
|
|
152
122
|
}, {
|
|
153
123
|
children: item.label
|
|
@@ -155,10 +125,10 @@ var TagGroup = function TagGroup(props) {
|
|
|
155
125
|
});
|
|
156
126
|
};
|
|
157
127
|
//动态增加tag
|
|
158
|
-
|
|
128
|
+
const renderNewInput = () => {
|
|
159
129
|
var _a;
|
|
160
130
|
if (inputVisible) {
|
|
161
|
-
|
|
131
|
+
const inputCls = clsx('tag-group-input', {
|
|
162
132
|
'tag-group-input-large': size === 'large'
|
|
163
133
|
}, inputClassName);
|
|
164
134
|
return jsx("input", {
|
|
@@ -175,19 +145,17 @@ var TagGroup = function TagGroup(props) {
|
|
|
175
145
|
onKeyDown: handleInputEnter
|
|
176
146
|
});
|
|
177
147
|
}
|
|
178
|
-
|
|
179
|
-
|
|
148
|
+
let icon = jsx(Plus, {});
|
|
149
|
+
let text = 'New Tag';
|
|
180
150
|
if (increasedTag) {
|
|
181
151
|
icon = increasedTag.icon || jsx(Plus, {});
|
|
182
152
|
text = (_a = increasedTag.text) !== null && _a !== void 0 ? _a : 'New Tag';
|
|
183
153
|
}
|
|
184
|
-
|
|
154
|
+
const newCls = clsx('tag-group-new', {
|
|
185
155
|
'tag-group-new-icon': !text
|
|
186
156
|
}, 'tag-group-add-btn');
|
|
187
157
|
return jsx(Tag, Object.assign({
|
|
188
|
-
getWidth:
|
|
189
|
-
return setIncreasedInputWidth(width);
|
|
190
|
-
},
|
|
158
|
+
getWidth: width => setIncreasedInputWidth(width),
|
|
191
159
|
className: newCls,
|
|
192
160
|
size: size,
|
|
193
161
|
icon: icon,
|
package/TimePicker/index.js
CHANGED
|
@@ -29,13 +29,10 @@ import '@para-ui/icons/WarningCircleF';
|
|
|
29
29
|
import '../Tag/index.js';
|
|
30
30
|
import '@para-ui/icons/Close';
|
|
31
31
|
import '@para-ui/icons/EditOutline';
|
|
32
|
-
import '../_verture/toConsumableArray-599cd94a.js';
|
|
33
|
-
import '../_verture/slicedToArray-61604a6c.js';
|
|
34
|
-
import '../_verture/typeof-adeedc13.js';
|
|
35
32
|
import '../_verture/tinycolor-ece3542d.js';
|
|
36
33
|
import '../_verture/useGlobalProps-4ae1a007.js';
|
|
37
34
|
import '@para-ui/icons/Plus';
|
|
38
|
-
import '../_verture/defineProperty-
|
|
35
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
39
36
|
import 'rc-picker';
|
|
40
37
|
import '@para-ui/icons/Calendar';
|
|
41
38
|
import '@para-ui/icons/Time';
|
package/Timeline/index.js
CHANGED
|
@@ -2,33 +2,26 @@ import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
+
import { a as _defineProperty } from '../_verture/defineProperty-f0e15205.js';
|
|
5
6
|
import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
6
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
7
8
|
|
|
8
9
|
//TimelineItem
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} = props,
|
|
10
|
+
var TimelineItem = function TimelineItem(props) {
|
|
11
|
+
var className = props.className,
|
|
12
|
+
color = props.color,
|
|
13
|
+
dot = props.dot,
|
|
14
|
+
_props$pending = props.pending,
|
|
15
|
+
pending = _props$pending === void 0 ? false : _props$pending;
|
|
16
|
+
props.position;
|
|
17
|
+
var label = props.label,
|
|
18
|
+
children = props.children,
|
|
19
19
|
restProps = __rest(props, ["className", "color", "dot", "pending", "position", "label", "children"]);
|
|
20
|
-
|
|
20
|
+
var prefixCls = "".concat($rcPrefixCls, "-timeline");
|
|
21
21
|
//item cls
|
|
22
|
-
|
|
23
|
-
["".concat(prefixCls, "-item")]: true,
|
|
24
|
-
["".concat(prefixCls, "-item-pending")]: pending
|
|
25
|
-
}, className);
|
|
22
|
+
var itemClassName = clsx(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-item"), true), "".concat(prefixCls, "-item-pending"), pending), className);
|
|
26
23
|
//dot cls
|
|
27
|
-
|
|
28
|
-
["".concat(prefixCls, "-item-head")]: true,
|
|
29
|
-
["".concat(prefixCls, "-item-head-custom")]: !!dot,
|
|
30
|
-
["".concat(prefixCls, "-item-head-").concat(color)]: color
|
|
31
|
-
});
|
|
24
|
+
var dotClassName = clsx(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-item-head"), true), "".concat(prefixCls, "-item-head-custom"), !!dot), "".concat(prefixCls, "-item-head-").concat(color), color));
|
|
32
25
|
return jsxs("li", Object.assign({}, restProps, {
|
|
33
26
|
className: itemClassName
|
|
34
27
|
}, {
|
package/ToggleButton/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef } from 'react';
|
|
4
4
|
import { B as Button } from '../_verture/index-98ae8a30.js';
|
|
5
|
-
import {
|
|
5
|
+
import { a as _defineProperty } from '../_verture/defineProperty-f0e15205.js';
|
|
6
6
|
import { UUID } from '@paraview/lib';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
@@ -24,7 +24,6 @@ import '@para-ui/icons/CheckCircleF';
|
|
|
24
24
|
import '@para-ui/icons/WarningCircle';
|
|
25
25
|
import '@para-ui/icons/CloseCircleF';
|
|
26
26
|
import '@para-ui/icons/WarningCircleF';
|
|
27
|
-
import '../_verture/typeof-adeedc13.js';
|
|
28
27
|
import '../_verture/useResizeObserver-edda059a.js';
|
|
29
28
|
|
|
30
29
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/23 上午9:50\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio.paraui-v4-toggle-button-selected {\n border-color: rgb(46, 101, 230);\n color: rgb(255, 255, 255);\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio.paraui-v4-toggle-button-selected:hover {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio:hover {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio[disabled] {\n color: rgb(161, 168, 179);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio[disabled]:hover {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio[disabled].paraui-v4-toggle-button-selected {\n color: rgb(92, 101, 115);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check::before {\n content: \" \";\n position: absolute;\n bottom: 0;\n right: 0;\n border: 8px solid rgb(212, 218, 227);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check::after {\n content: \" \";\n width: 8px;\n height: 8px;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAM5JREFUOE/NkQENwjAURFcFIAEHgIM5YCgAHCABFBAUAA5wABI2CTgABeUd+V06BqFkCeEnl6X9d7d/vy7rWK6jPvu9gfe+z9QnsHDOlV9NgHhk4gpxrvjJBogL+DtwATkG12QDxEvIG3AzcRmW/5gAgsaR+1S54peht+c8s7vxc7+OAFHCIVhBWkfLUm6VliazRsUGAzoy6YEz0LaDeItYMVrVWCJ/nVuUmHhArPuX1XoFTI4wJ8au+NYb/ziBCJZdJqoiPFfyBO+I/2twBz0qQBFvrubpAAAAAElFTkSuQmCC\");\n background-size: 8px 8px;\n background-repeat: no-repeat;\n position: absolute;\n bottom: 1px;\n right: 1px;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check:hover {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check:hover::before {\n border-color: rgb(87, 131, 235);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check.paraui-v4-toggle-button-selected {\n border-color: rgb(46, 101, 230);\n color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check.paraui-v4-toggle-button-selected::before {\n border-color: rgb(46, 101, 230);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled] {\n color: rgb(161, 168, 179);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled]::before {\n border-color: rgb(212, 218, 227);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled]:hover {\n color: rgb(161, 168, 179);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled]:hover::before {\n border-color: rgb(212, 218, 227);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled].paraui-v4-toggle-button-selected {\n color: rgb(92, 101, 115);\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-toggle-button.toggle-button-icon.paraui-v4-toggle-button-selected {\n border-color: rgb(46, 101, 230);\n color: rgb(255, 255, 255);\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-icon.paraui-v4-toggle-button-selected:hover {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-icon[disabled].paraui-v4-toggle-button-selected {\n border-color: rgba(255, 255, 255, 0.5);\n}\n.paraui-v4-toggle-button.toggle-button-icon[disabled].paraui-v4-toggle-button-selected::before {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n content: \"\";\n background-color: rgba(255, 255, 255, 0.5);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-button-text {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-button-text:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-button-text:hover[disabled] {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected {\n color: rgb(46, 101, 230);\n border: 0;\n font-weight: 700;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected[disabled] {\n color: rgb(92, 101, 115);\n background-color: transparent;\n border: 0;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected[disabled]:hover {\n background-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected:first-child:before {\n display: none;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected::after {\n display: none;\n}\n.paraui-v4-toggle-button.toggle-button-text[disabled] {\n color: rgb(161, 168, 179);\n background-color: transparent;\n border: 0;\n}\n.paraui-v4-toggle-button.toggle-button-text[disabled]:hover {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-toggle-button-wrap {\n display: inline-block;\n}\n.paraui-v4-toggle-button .toggle-button-text {\n width: 100%;\n}\n.paraui-v4-toggle-button-disabled.paraui-v4-toggle-button {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-toggle-button-disabled.paraui-v4-toggle-button:hover {\n color: rgb(92, 101, 115);\n}\n\n.paraui-v4-togglebutton-group {\n display: flex;\n flex-flow: row wrap;\n}\n.paraui-v4-togglebutton-group .toggle-button-item {\n margin: 0 8px;\n}\n.paraui-v4-togglebutton-group-text .toggle-button-item .paraui-v4-toggle-button {\n margin: 0;\n padding: 0 16px;\n}\n.paraui-v4-togglebutton-group-text .toggle-button-item ~ .toggle-button-item .paraui-v4-toggle-button::before {\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n content: \"\";\n width: 1px;\n height: 14px;\n background-color: rgb(212, 218, 227);\n}";
|
package/Tree/index.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/index-
|
|
2
|
-
export { T as default } from '../_verture/index-
|
|
1
|
+
import { T as Tree } from '../_verture/index-dfb6ceb9.js';
|
|
2
|
+
export { T as default } from '../_verture/index-dfb6ceb9.js';
|
|
3
|
+
import '../_verture/toConsumableArray-599cd94a.js';
|
|
4
|
+
import '../_verture/slicedToArray-61604a6c.js';
|
|
5
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
6
|
+
import '../_verture/index-8ac46bd9.js';
|
|
7
|
+
import '../_verture/typeof-6ec38efd.js';
|
|
3
8
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
4
9
|
import 'react/jsx-runtime';
|
|
5
10
|
import 'react';
|
|
6
11
|
import 'rc-tree';
|
|
7
12
|
import 'clsx';
|
|
8
|
-
import '../_verture/typeof-adeedc13.js';
|
|
9
13
|
import '@para-ui/icons/LoadingF';
|
|
10
14
|
import '@para-ui/icons/Document';
|
|
11
15
|
import '@para-ui/icons/DownTriangleF';
|
|
@@ -19,7 +23,6 @@ import '../_verture/constant-5317fc89.js';
|
|
|
19
23
|
import '@para-ui/icons/Forbid';
|
|
20
24
|
import '../_verture/style-inject.es-300983ab.js';
|
|
21
25
|
import '@para-ui/icons/Help';
|
|
22
|
-
import '../_verture/slicedToArray-61604a6c.js';
|
|
23
26
|
import 'react-dom';
|
|
24
27
|
import '@para-ui/icons/EditFile';
|
|
25
28
|
import '@para-ui/icons/PlusCircle';
|
package/Upload/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import clsx from 'clsx';
|
|
|
6
6
|
import UploadIcon from '@para-ui/icons/UploadFile';
|
|
7
7
|
import Loading from '@para-ui/icons/Loading';
|
|
8
8
|
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-599cd94a.js';
|
|
9
|
-
import { _ as _typeof } from '../_verture/
|
|
9
|
+
import { _ as _typeof } from '../_verture/defineProperty-f0e15205.js';
|
|
10
10
|
import { _ as _slicedToArray } from '../_verture/slicedToArray-61604a6c.js';
|
|
11
11
|
import { r as regenerator } from '../_verture/index-8ac46bd9.js';
|
|
12
12
|
import EditOutline from '@para-ui/icons/EditOutline';
|
|
@@ -37,12 +37,11 @@ import '../_verture/typeof-6ec38efd.js';
|
|
|
37
37
|
import 'rc-tooltip';
|
|
38
38
|
import 'rc-tooltip/lib/placements';
|
|
39
39
|
import '../_verture/useResizeObserver-edda059a.js';
|
|
40
|
-
import '../_verture/index-
|
|
41
|
-
import '../_verture/
|
|
42
|
-
import '../_verture/Portal-502bb85e.js';
|
|
40
|
+
import '../_verture/index-9e4b0e32.js';
|
|
41
|
+
import '../_verture/Portal-274c5bd8.js';
|
|
43
42
|
import 'react-dom';
|
|
44
43
|
import 'rc-dialog';
|
|
45
|
-
import '../_verture/isEqual-
|
|
44
|
+
import '../_verture/isEqual-38aa74f9.js';
|
|
46
45
|
import 'rc-motion';
|
|
47
46
|
import '@para-ui/icons/Sort';
|
|
48
47
|
import '@para-ui/icons/Switch';
|
|
@@ -2,8 +2,8 @@ import { _ as _slicedToArray } from './slicedToArray-61604a6c.js';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { version, isValidElement } from 'react';
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
5
|
-
import { r as reactIs, _ as _objectSpread2, d as warningOnce } from './index-
|
|
6
|
-
import { _ as _typeof } from './
|
|
5
|
+
import { r as reactIs, _ as _objectSpread2, d as warningOnce } from './index-9e4b0e32.js';
|
|
6
|
+
import { _ as _typeof } from './defineProperty-f0e15205.js';
|
|
7
7
|
import { _ as _toConsumableArray } from './toConsumableArray-599cd94a.js';
|
|
8
8
|
|
|
9
9
|
function useEvent(callback) {
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
function _typeof(o) {
|
|
2
|
+
"@babel/helpers - typeof";
|
|
3
|
+
|
|
4
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5
|
+
return typeof o;
|
|
6
|
+
} : function (o) {
|
|
7
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
+
}, _typeof(o);
|
|
9
|
+
}
|
|
2
10
|
|
|
3
11
|
function toPrimitive(t, r) {
|
|
4
12
|
if ("object" != _typeof(t) || !t) return t;
|
|
@@ -31,4 +39,4 @@ function _defineProperty(obj, key, value) {
|
|
|
31
39
|
return obj;
|
|
32
40
|
}
|
|
33
41
|
|
|
34
|
-
export {
|
|
42
|
+
export { _typeof as _, _defineProperty as a, toPropertyKey as t };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { _ as __rest } from './tslib.es6-55ed4bd2.js';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { c as clsx, _ as _objectSpread2, w as warning, a as _extends, b as _objectWithoutProperties, d as warningOnce, n as noteOnce } from './index-
|
|
3
|
+
import { c as clsx, _ as _objectSpread2, w as warning, a as _extends, b as _objectWithoutProperties, d as warningOnce, n as noteOnce } from './index-9e4b0e32.js';
|
|
4
4
|
import { _ as _toConsumableArray } from './toConsumableArray-599cd94a.js';
|
|
5
|
-
import { _ as _defineProperty } from './defineProperty-
|
|
5
|
+
import { _ as _typeof$1, a as _defineProperty } from './defineProperty-f0e15205.js';
|
|
6
6
|
import { _ as _slicedToArray } from './slicedToArray-61604a6c.js';
|
|
7
|
-
import {
|
|
8
|
-
import { s as supportRef, u as useComposeRef, w as wrapperRaf, a as useEvent$2, b as useLayoutEffect$1, c as composeRef, K as KeyCode, f as fillRef, P as Portal, d as useMergedState$2, e as canUseDom, g as useMemo$1 } from './Portal-502bb85e.js';
|
|
7
|
+
import { s as supportRef, u as useComposeRef, w as wrapperRaf, a as useEvent$2, b as useLayoutEffect$1, c as composeRef, K as KeyCode, f as fillRef, P as Portal, d as useMergedState$2, e as canUseDom, g as useMemo$1 } from './Portal-274c5bd8.js';
|
|
9
8
|
import * as React$2 from 'react';
|
|
10
9
|
import React__default, { useState, useMemo, useCallback, useRef, useEffect } from 'react';
|
|
11
|
-
import { _ as _inherits, a as _createSuper, b as _classCallCheck, c as _createClass, t as toArray$2, d as _toArray, s as slicedToArray, r as requireCanUseDom, i as interopRequireDefault, e as interopRequireWildcard, u as useState$1, f as useLayoutEffect$2 } from './useState-
|
|
10
|
+
import { _ as _inherits, a as _createSuper, b as _classCallCheck, c as _createClass, t as toArray$2, d as _toArray, s as slicedToArray, r as requireCanUseDom, i as interopRequireDefault, e as interopRequireWildcard, u as useState$1, f as useLayoutEffect$2 } from './useState-05fc6660.js';
|
|
12
11
|
import ReactDOM, { unstable_batchedUpdates, flushSync } from 'react-dom';
|
|
13
12
|
import CSSMotion from 'rc-motion';
|
|
14
13
|
import clsx$1 from 'clsx';
|