@para-ui/core 4.0.41 → 4.0.43

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.
Files changed (58) hide show
  1. package/Cascader/index.js +4 -5
  2. package/ComboSelect/index.js +5 -6
  3. package/CycleSelector/index.js +3 -6
  4. package/DatePicker/index.js +1 -4
  5. package/DragVerify/index.js +2 -2
  6. package/DynamicMultiBox/index.js +2 -3
  7. package/Form/index.js +3 -4
  8. package/FormItem/index.js +3 -4
  9. package/FunctionModal/index.js +2 -2
  10. package/Image/index.js +2 -3
  11. package/Message/index.js +2 -2
  12. package/Modal/index.js +3 -3
  13. package/Notification/index.js +3 -3
  14. package/Pagination/index.d.ts +4 -0
  15. package/Pagination/index.js +3 -2
  16. package/Progress/index.js +2 -2
  17. package/Prompt/index.js +2 -2
  18. package/README.md +10 -1
  19. package/Result/index.d.ts +25 -0
  20. package/Result/index.js +94 -0
  21. package/Select/index.js +5 -5
  22. package/Selector/index.js +3 -3
  23. package/SelectorPicker/index.js +3 -3
  24. package/Stepper/index.js +3 -3
  25. package/Table/index.js +43 -6
  26. package/Table/lang/en_US.d.ts +2 -0
  27. package/Table/lang/index.d.ts +4 -0
  28. package/Table/lang/zh_CN.d.ts +2 -0
  29. package/Tabs/index.js +4 -4
  30. package/Tag/index.js +55 -84
  31. package/TextEditor/index.js +3 -3
  32. package/TimePicker/index.js +1 -4
  33. package/Timeline/index.js +13 -20
  34. package/ToggleButton/index.js +1 -2
  35. package/Tree/index.js +3 -4
  36. package/Upload/index.js +4 -5
  37. package/_verture/{Portal-f9bedb3a.js → Portal-42560ff0.js} +1 -2
  38. package/_verture/{defineProperty-6f62bb2a.js → defineProperty-f0e15205.js} +10 -2
  39. package/_verture/{index-6016a7ed.js → index-3fcb421f.js} +2 -3
  40. package/_verture/{index-5b4ff3b2.js → index-5f0bfdcf.js} +1 -2
  41. package/index.d.ts +2 -0
  42. package/index.js +8 -8
  43. package/locale/en-US.d.ts +2 -0
  44. package/locale/index.d.ts +4 -0
  45. package/locale/index.js +6 -2
  46. package/locale/zh-CN.d.ts +2 -0
  47. package/package.json +1 -1
  48. package/umd/ComboSelect.js +1 -1
  49. package/umd/DynamicMultiBox.js +1 -1
  50. package/umd/Form.js +1 -1
  51. package/umd/FormItem.js +1 -1
  52. package/umd/Pagination.js +1 -1
  53. package/umd/Result.js +43 -0
  54. package/umd/Table.js +2 -2
  55. package/umd/locale.js +1 -1
  56. package/_verture/typeof-adeedc13.js +0 -11
  57. /package/_verture/{index-8a431cd6.js → index-4b1025fa.js} +0 -0
  58. /package/_verture/{modalContext-efa83b5c.js → modalContext-369509dd.js} +0 -0
@@ -9,7 +9,7 @@ import AutoTips from '../AutoTips/index.js';
9
9
  import { Popover } from '../Popover/index.js';
10
10
  import CloseCircleF from '@para-ui/icons/CloseCircleF';
11
11
  import Down from '@para-ui/icons/Down';
12
- import CloseIcon from '@para-ui/icons/Close';
12
+ import Close from '@para-ui/icons/Close';
13
13
  import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
14
14
  import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
15
15
  import { Tooltip } from '../Tooltip/index.js';
@@ -265,7 +265,7 @@ const SelectorPicker = props => {
265
265
  }, {
266
266
  children: renderVal || val
267
267
  }))
268
- }), isClose && jsx(CloseIcon, {
268
+ }), isClose && jsx(Close, {
269
269
  onClick: e => handleTagRemove === null || handleTagRemove === void 0 ? void 0 : handleTagRemove(item, index, e)
270
270
  })]
271
271
  }), index);
@@ -364,7 +364,7 @@ const SelectorPicker = props => {
364
364
  }, {
365
365
  children: renderVal || val
366
366
  }))
367
- }), isClose && jsx(CloseIcon, {
367
+ }), isClose && jsx(Close, {
368
368
  onClick: e => handleTagRemove === null || handleTagRemove === void 0 ? void 0 : handleTagRemove(item, index, e)
369
369
  })]
370
370
  }), index);
package/Stepper/index.js CHANGED
@@ -15,7 +15,7 @@ import Check from '@para-ui/icons/Check';
15
15
  import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-5317fc89.js';
16
16
  import clsx from 'clsx';
17
17
  import AutoTips from '../AutoTips/index.js';
18
- import CloseIcon from '@para-ui/icons/Close';
18
+ import Close from '@para-ui/icons/Close';
19
19
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
20
20
  import '../Tooltip/index.js';
21
21
  import 'rc-tooltip';
@@ -98,13 +98,13 @@ const Stepper = props => {
98
98
  const isErr = index === errorStep;
99
99
  if (typeof item === 'string') {
100
100
  label = item;
101
- icon = isErr ? jsx(CloseIcon, {
101
+ icon = isErr ? jsx(Close, {
102
102
  size: "medium"
103
103
  }) : Icons[index + 1];
104
104
  } else if (typeof item === 'object') {
105
105
  label = item.label;
106
106
  description = item.description;
107
- icon = isErr ? jsx(CloseIcon, {
107
+ icon = isErr ? jsx(Close, {
108
108
  size: "medium"
109
109
  }) : item.icon || Icons[index + 1];
110
110
  }
package/Table/index.js CHANGED
@@ -343,7 +343,9 @@ var en = {
343
343
  refresh: 'Refresh',
344
344
  selectNum: 'Selected {num} items',
345
345
  selectAll: 'Select All',
346
- dragSort: 'Drag Sort'
346
+ dragSort: 'Drag Sort',
347
+ noHomePageEmpty: 'There is no data on this page',
348
+ returnPrevPage: 'Return to previous page'
347
349
  };
348
350
 
349
351
  var zh = {
@@ -355,7 +357,9 @@ var zh = {
355
357
  refresh: '刷新',
356
358
  selectNum: '已选{num}项',
357
359
  selectAll: '全选',
358
- dragSort: '拖动排序'
360
+ dragSort: '拖动排序',
361
+ noHomePageEmpty: '当前页面无数据',
362
+ returnPrevPage: '返回上一页'
359
363
  };
360
364
 
361
365
  var localeJson = {
@@ -1248,11 +1252,42 @@ const TableBody = props => {
1248
1252
  if ((emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.showRefresh) !== undefined) {
1249
1253
  return emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.showRefresh;
1250
1254
  }
1251
- if (url) {
1255
+ if (url && Number(page) <= 1) {
1252
1256
  return true;
1253
1257
  }
1254
1258
  return false;
1255
1259
  };
1260
+ // 处理非首页非空状态
1261
+ const handleDescription = () => {
1262
+ if (emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.description) return emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.description;
1263
+ if (Number(page) > 1) {
1264
+ return jsxs("div", Object.assign({
1265
+ className: 'no-home-page-empty'
1266
+ }, {
1267
+ children: [jsx("div", Object.assign({
1268
+ className: 'empty-desc'
1269
+ }, {
1270
+ children: intl({
1271
+ id: 'noHomePageEmpty'
1272
+ })
1273
+ })), jsx("div", Object.assign({
1274
+ className: 'return-prev-page'
1275
+ }, {
1276
+ children: jsx(Button, Object.assign({
1277
+ variant: "text",
1278
+ size: "small",
1279
+ onClick: () => {
1280
+ changePage && changePage(Number(page) - 1);
1281
+ }
1282
+ }, {
1283
+ children: intl({
1284
+ id: 'returnPrevPage'
1285
+ })
1286
+ }))
1287
+ }))]
1288
+ }));
1289
+ }
1290
+ };
1256
1291
  // 处理className
1257
1292
  const handClassNoData = () => {
1258
1293
  let str = 'table-no-data';
@@ -1267,6 +1302,7 @@ const TableBody = props => {
1267
1302
  colSpan: expandableColSpan
1268
1303
  }, {
1269
1304
  children: jsx(Empty, Object.assign({}, emptyProps, {
1305
+ description: handleDescription(),
1270
1306
  showRefresh: handRefreshBtn(),
1271
1307
  onRefresh: event => {
1272
1308
  if (emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.onRefresh) {
@@ -1278,7 +1314,7 @@ const TableBody = props => {
1278
1314
  }))
1279
1315
  }))
1280
1316
  }));
1281
- }, [expandableColSpan, emptyProps, url, onRefresh]);
1317
+ }, [expandableColSpan, emptyProps, url, onRefresh, page, changePage]);
1282
1318
  // 复选框useCallback
1283
1319
  const TableCheckCallback = useCallback(row => {
1284
1320
  if (check) {
@@ -1735,6 +1771,7 @@ const TableHead = props => {
1735
1771
  }, {
1736
1772
  children: [handlePaginationRight(), jsx(Pagination, {
1737
1773
  className: 'table-pagination-com',
1774
+ pageMaxLimit: false,
1738
1775
  type: paginationType,
1739
1776
  autoType: autoPagination,
1740
1777
  flippingArrow: flippingArrow,
@@ -2673,8 +2710,8 @@ const Table = propsInit => {
2673
2710
  /**
2674
2711
  * 加载更多,点击改变分页
2675
2712
  */
2676
- const changePageMore = () => {
2677
- const pageHnad = Number(pageCom) + 1;
2713
+ const changePageMore = num => {
2714
+ const pageHnad = num ? num : Number(pageCom) + 1;
2678
2715
  handPage(pageHnad);
2679
2716
  };
2680
2717
  /**
@@ -8,5 +8,7 @@ declare const _default: {
8
8
  selectNum: string;
9
9
  selectAll: string;
10
10
  dragSort: string;
11
+ noHomePageEmpty: string;
12
+ returnPrevPage: string;
11
13
  };
12
14
  export default _default;
@@ -9,6 +9,8 @@ declare const _default: {
9
9
  selectNum: string;
10
10
  selectAll: string;
11
11
  dragSort: string;
12
+ noHomePageEmpty: string;
13
+ returnPrevPage: string;
12
14
  };
13
15
  en: {
14
16
  empty: string;
@@ -20,6 +22,8 @@ declare const _default: {
20
22
  selectNum: string;
21
23
  selectAll: string;
22
24
  dragSort: string;
25
+ noHomePageEmpty: string;
26
+ returnPrevPage: string;
23
27
  };
24
28
  };
25
29
  export default _default;
@@ -8,5 +8,7 @@ declare const _default: {
8
8
  selectNum: string;
9
9
  selectAll: string;
10
10
  dragSort: string;
11
+ noHomePageEmpty: string;
12
+ returnPrevPage: string;
11
13
  };
12
14
  export default _default;
package/Tabs/index.js CHANGED
@@ -4,7 +4,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
4
4
  import RcTabs, { TabPane } from 'rc-tabs';
5
5
  import More from '@para-ui/icons/More';
6
6
  import Plus from '@para-ui/icons/Plus';
7
- import CloseIcon from '@para-ui/icons/Close';
7
+ import Close from '@para-ui/icons/Close';
8
8
  import { PopConfirm } from '../PopConfirm/index.js';
9
9
  import { Radio } from '../Radio/index.js';
10
10
  import Help from '../Help/index.js';
@@ -122,7 +122,7 @@ const Tabs = props => {
122
122
  onEdit === null || onEdit === void 0 ? void 0 : onEdit(currItem, tKey, editType);
123
123
  }
124
124
  },
125
- removeIcon: jsx(CloseIcon, {}),
125
+ removeIcon: jsx(Close, {}),
126
126
  addIcon: addIcon || jsx(Plus, {}),
127
127
  showAdd: hideAdd !== true && showAdd !== false
128
128
  };
@@ -143,7 +143,7 @@ const Tabs = props => {
143
143
  } = item;
144
144
  if (closable === false) return null;
145
145
  if (!showPopConfirm) {
146
- return closeIcon || jsx(CloseIcon, {});
146
+ return closeIcon || jsx(Close, {});
147
147
  }
148
148
  return jsx("span", Object.assign({
149
149
  onClick: ev => ev.stopPropagation()
@@ -156,7 +156,7 @@ const Tabs = props => {
156
156
  }, popConfirmProps, {
157
157
  onOk: () => onEdit === null || onEdit === void 0 ? void 0 : onEdit(item, item.value, 'remove')
158
158
  }, {
159
- children: closeIcon || jsx(CloseIcon, {})
159
+ children: closeIcon || jsx(Close, {})
160
160
  }))
161
161
  }));
162
162
  };
package/Tag/index.js CHANGED
@@ -1,12 +1,9 @@
1
1
  import { a as __rest } from '../_verture/tslib.es6-f43aa41d.js';
2
2
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
3
  import { useState, useRef, useEffect } from 'react';
4
- import CloseIcon from '@para-ui/icons/Close';
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-c7a8028f.js';
8
- import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
9
- import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.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';
@@ -22,121 +19,97 @@ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/1/12 上
22
19
  styleInject(css_248z);
23
20
 
24
21
  //tag group
25
- var TagGroup = function TagGroup(props) {
26
- var className = props.className,
27
- _props$size = props.size,
28
- size = _props$size === void 0 ? 'large' : _props$size,
29
- style = props.style,
30
- defaultInputValue = props.defaultInputValue,
31
- _props$increased = props.increased,
32
- increased = _props$increased === void 0 ? false : _props$increased,
33
- increasedTag = props.increasedTag,
34
- inputClassName = props.inputClassName,
35
- inputWidth = props.inputWidth,
36
- onChange = props.onChange;
37
- var _useState = useState([]),
38
- _useState2 = _slicedToArray(_useState, 2),
39
- inData = _useState2[0],
40
- setInData = _useState2[1]; //数据源
41
- var _useState3 = useState(defaultInputValue !== null && defaultInputValue !== void 0 ? defaultInputValue : ''),
42
- _useState4 = _slicedToArray(_useState3, 2),
43
- inputValue = _useState4[0],
44
- setInputValue = _useState4[1]; //input value
45
- var _useState5 = useState(false),
46
- _useState6 = _slicedToArray(_useState5, 2),
47
- inputVisible = _useState6[0],
48
- setInputVisible = _useState6[1]; //input visible
49
- var inputRef = useRef(); //input ref
50
- var _useState7 = useState(),
51
- _useState8 = _slicedToArray(_useState7, 2),
52
- increasedInputWidth = _useState8[0],
53
- setIncreasedInputWidth = _useState8[1]; //添加标签的最小宽
54
- useEffect(function () {
22
+ const TagGroup = props => {
23
+ const {
24
+ className,
25
+ size = 'large',
26
+ style,
27
+ defaultInputValue,
28
+ increased = false,
29
+ increasedTag,
30
+ inputClassName,
31
+ inputWidth,
32
+ onChange
33
+ } = props;
34
+ const [inData, setInData] = useState([]); //数据源
35
+ const [inputValue, setInputValue] = useState(defaultInputValue !== null && defaultInputValue !== void 0 ? defaultInputValue : ''); //input value
36
+ const [inputVisible, setInputVisible] = useState(false); //input visible
37
+ const inputRef = useRef(); //input ref
38
+ const [increasedInputWidth, setIncreasedInputWidth] = useState(); //添加标签的最小宽
39
+ useEffect(() => {
55
40
  if (props.data) {
56
- var tArr = props.data;
41
+ let tArr = props.data;
57
42
  //Item[]
58
- var unObjType = tArr.some(function (v) {
59
- return ['string', 'number'].includes(_typeof(v));
60
- });
43
+ const unObjType = tArr.some(v => ['string', 'number'].includes(typeof v));
61
44
  if (unObjType) {
62
- tArr = tArr.map(function (_) {
63
- return {
64
- value: _,
65
- label: _
66
- };
67
- });
45
+ tArr = tArr.map(_ => ({
46
+ value: _,
47
+ label: _
48
+ }));
68
49
  }
69
- setInData(_toConsumableArray(tArr));
50
+ setInData([...tArr]);
70
51
  }
71
52
  }, [props.data]);
72
53
  //tag value
73
- var getTagGroupVal = function getTagGroupVal(data) {
74
- return data.map(function (_) {
75
- return _.value;
76
- });
54
+ const getTagGroupVal = data => {
55
+ return data.map(_ => _.value);
77
56
  };
78
57
  //show input
79
- var showInput = function showInput() {
58
+ const showInput = () => {
80
59
  setInputVisible(true);
81
- setTimeout(function () {
60
+ setTimeout(() => {
82
61
  var _a;
83
62
  (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
84
63
  });
85
64
  };
86
- var handleTagEdit = function handleTagEdit(value, idx) {
65
+ const handleTagEdit = (value, idx) => {
87
66
  inData[idx].value = value;
88
- setInData(_toConsumableArray(inData));
67
+ setInData([...inData]);
89
68
  onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
90
69
  };
91
70
  //input change
92
- var handleInputChange = function handleInputChange(e) {
71
+ const handleInputChange = e => {
93
72
  setInputValue(e.target.value);
94
73
  };
95
74
  //input confirm
96
- var handleInputConfirm = function handleInputConfirm() {
97
- var val = inputValue.trim();
75
+ const handleInputConfirm = () => {
76
+ const val = inputValue.trim();
98
77
  if (val !== '') {
99
78
  inData.push({
100
79
  value: val,
101
80
  label: val,
102
81
  closable: true
103
82
  });
104
- setInData(_toConsumableArray(inData));
83
+ setInData([...inData]);
105
84
  onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
106
85
  }
107
86
  setInputValue(defaultInputValue !== null && defaultInputValue !== void 0 ? defaultInputValue : '');
108
87
  setInputVisible(false);
109
88
  };
110
89
  //input enter
111
- var handleInputEnter = function handleInputEnter(e) {
90
+ const handleInputEnter = e => {
112
91
  if (e.keyCode === 13 || e.which === 13) {
113
92
  handleInputConfirm();
114
93
  }
115
94
  };
116
95
  //handle close
117
- var handleClose = function handleClose(item) {
118
- return function (e) {
119
- var idx = inData.findIndex(function (_) {
120
- return _.value === item.value;
121
- });
122
- if (idx > -1) {
123
- inData.splice(idx, 1);
124
- setInData(_toConsumableArray(inData));
125
- }
126
- if (item.onClose) item.onClose(e);
127
- onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
128
- };
96
+ const handleClose = item => e => {
97
+ const idx = inData.findIndex(_ => _.value === item.value);
98
+ if (idx > -1) {
99
+ inData.splice(idx, 1);
100
+ setInData([...inData]);
101
+ }
102
+ if (item.onClose) item.onClose(e);
103
+ onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
129
104
  };
130
105
  //渲染Tag组
131
- var renderTagGroup = function renderTagGroup() {
106
+ const renderTagGroup = () => {
132
107
  if (!(inData === null || inData === void 0 ? void 0 : inData.length)) return null;
133
- return inData.map(function (item, idx) {
108
+ return inData.map((item, idx) => {
134
109
  return jsx(Tag, Object.assign({}, item, {
135
110
  size: size,
136
111
  visible: true,
137
- tagChange: function tagChange(value) {
138
- return handleTagEdit(value, idx);
139
- },
112
+ tagChange: value => handleTagEdit(value, idx),
140
113
  onClose: handleClose(item)
141
114
  }, {
142
115
  children: item.label
@@ -144,10 +117,10 @@ var TagGroup = function TagGroup(props) {
144
117
  });
145
118
  };
146
119
  //动态增加tag
147
- var renderNewInput = function renderNewInput() {
120
+ const renderNewInput = () => {
148
121
  var _a;
149
122
  if (inputVisible) {
150
- var inputCls = clsx('tag-group-input', {
123
+ const inputCls = clsx('tag-group-input', {
151
124
  'tag-group-input-large': size === 'large'
152
125
  }, inputClassName);
153
126
  return jsx("input", {
@@ -164,19 +137,17 @@ var TagGroup = function TagGroup(props) {
164
137
  onKeyDown: handleInputEnter
165
138
  });
166
139
  }
167
- var icon = jsx(Plus, {});
168
- var text = 'New Tag';
140
+ let icon = jsx(Plus, {});
141
+ let text = 'New Tag';
169
142
  if (increasedTag) {
170
143
  icon = increasedTag.icon || jsx(Plus, {});
171
144
  text = (_a = increasedTag.text) !== null && _a !== void 0 ? _a : 'New Tag';
172
145
  }
173
- var newCls = clsx('tag-group-new', {
146
+ const newCls = clsx('tag-group-new', {
174
147
  'tag-group-new-icon': !text
175
148
  }, 'tag-group-add-btn');
176
149
  return jsx(Tag, Object.assign({
177
- getWidth: function getWidth(width) {
178
- return setIncreasedInputWidth(width);
179
- },
150
+ getWidth: width => setIncreasedInputWidth(width),
180
151
  className: newCls,
181
152
  size: size,
182
153
  icon: icon,
@@ -319,7 +290,7 @@ const InternalTag = props => {
319
290
  onMouseLeave: handleCloseLeave
320
291
  }, {
321
292
  children: closeIcon
322
- })) : jsx(CloseIcon, {
293
+ })) : jsx(Close, {
323
294
  className: 'tag-close-icon',
324
295
  style: closeIconStyle,
325
296
  onClick: handleCloseClick,
@@ -23,7 +23,7 @@ import '../_verture/index-ca413216.js';
23
23
  * @date 2022/09/06 18:00
24
24
  * @description 存放富文本编辑器的一些默认配置
25
25
  */
26
- const TOOL_BAR_CONFIG = ['headerSelect', 'blockquote', '|', 'bold', 'underline', 'italic', {
26
+ var TOOL_BAR_CONFIG = ['headerSelect', 'blockquote', '|', 'bold', 'underline', 'italic', {
27
27
  key: 'group-more-style',
28
28
  title: '更多',
29
29
  iconSvg: '<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',
@@ -59,8 +59,8 @@ var zh = {
59
59
  };
60
60
 
61
61
  var localeJson = {
62
- zh,
63
- en
62
+ zh: zh,
63
+ en: en
64
64
  };
65
65
 
66
66
  var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-text-editor .w-e-max-length-info {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-text-editor .w-e-bar-item > button:hover {\n background: rgb(247, 248, 250);\n border-radius: 2px;\n}\n.paraui-v4-text-editor .w-e-bar-item-menus-container .w-e-bar-item {\n padding-left: 0;\n padding-right: 0;\n display: flex;\n}\n.paraui-v4-text-editor .w-e-bar-item-menus-container .w-e-bar-item > button {\n flex: 1;\n display: flex;\n justify-content: flex-start;\n}\n.paraui-v4-text-editor .w-e-bar-item-menus-container .w-e-bar-item > button:hover {\n background: rgb(247, 248, 250);\n border-radius: 2px;\n}\n.paraui-v4-text-editor .w-e-full-screen-container {\n z-index: 1000;\n}\n.paraui-v4-text-editor .text-editor-content {\n border: 1px solid rgb(212, 218, 227);\n border-radius: 4px;\n padding: 1px 0;\n background-color: #fff;\n}\n.paraui-v4-text-editor .text-editor-content > div:nth-child(1) {\n border-bottom: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-text-editor .text-editor-content div[contenteditable=false] {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-text-editor .text-editor-content div[contenteditable=false]:hover {\n border-color: rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-text-editor .preview-mode > div:nth-child(1) {\n border-bottom: none;\n}";
@@ -24,12 +24,9 @@ import '@para-ui/icons/Forbid';
24
24
  import '../Tag/index.js';
25
25
  import '@para-ui/icons/Close';
26
26
  import '@para-ui/icons/EditOutline';
27
- import '../_verture/toConsumableArray-c7a8028f.js';
28
- import '../_verture/slicedToArray-75fa4188.js';
29
- import '../_verture/typeof-adeedc13.js';
30
27
  import '../_verture/tinycolor-ece3542d.js';
31
28
  import '@para-ui/icons/Plus';
32
- import '../_verture/defineProperty-6f62bb2a.js';
29
+ import '../_verture/defineProperty-f0e15205.js';
33
30
  import 'rc-picker';
34
31
  import '@para-ui/icons/CloseCircleF';
35
32
  import '@para-ui/icons/Calendar';
package/Timeline/index.js CHANGED
@@ -2,33 +2,26 @@ import { a as __rest } from '../_verture/tslib.es6-f43aa41d.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
- const TimelineItem = props => {
10
- const {
11
- className,
12
- color,
13
- dot,
14
- pending = false,
15
- position,
16
- label,
17
- children
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
- const prefixCls = "".concat($rcPrefixCls, "-timeline");
20
+ var prefixCls = "".concat($rcPrefixCls, "-timeline");
21
21
  //item cls
22
- const itemClassName = clsx({
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
- const dotClassName = clsx({
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
  }, {
@@ -2,7 +2,7 @@ import { a as __rest } from '../_verture/tslib.es6-f43aa41d.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { useRef } from 'react';
4
4
  import { Button } from '../Button/index.js';
5
- import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
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';
@@ -20,7 +20,6 @@ import '../_verture/usePopupContainer-635f66f4.js';
20
20
  import 'dayjs';
21
21
  import '../_verture/useFormatMessage-1fc7c957.js';
22
22
  import '../_verture/index-ca413216.js';
23
- import '../_verture/typeof-adeedc13.js';
24
23
 
25
24
  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}";
26
25
  styleInject(css_248z);
package/Tree/index.js CHANGED
@@ -1,9 +1,8 @@
1
- import { T as Tree } from '../_verture/index-5b4ff3b2.js';
2
- export { T as default } from '../_verture/index-5b4ff3b2.js';
1
+ import { T as Tree } from '../_verture/index-5f0bfdcf.js';
2
+ export { T as default } from '../_verture/index-5f0bfdcf.js';
3
3
  import '../_verture/toConsumableArray-c7a8028f.js';
4
4
  import '../_verture/slicedToArray-75fa4188.js';
5
- import '../_verture/defineProperty-6f62bb2a.js';
6
- import '../_verture/typeof-adeedc13.js';
5
+ import '../_verture/defineProperty-f0e15205.js';
7
6
  import '../_verture/index-8ac46bd9.js';
8
7
  import '../_verture/typeof-6ec38efd.js';
9
8
  import '../_verture/tslib.es6-f43aa41d.js';
package/Upload/index.js CHANGED
@@ -6,11 +6,11 @@ import clsx from 'clsx';
6
6
  import UploadIcon from '@para-ui/icons/UploadFile';
7
7
  import LoadingIcon from '@para-ui/icons/Loading';
8
8
  import { _ as _toConsumableArray } from '../_verture/toConsumableArray-c7a8028f.js';
9
- import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
9
+ import { _ as _typeof } from '../_verture/defineProperty-f0e15205.js';
10
10
  import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
11
11
  import { r as regenerator } from '../_verture/index-8ac46bd9.js';
12
12
  import EditOutline from '@para-ui/icons/EditOutline';
13
- import CloseIcon from '@para-ui/icons/Close';
13
+ import Close from '@para-ui/icons/Close';
14
14
  import Delete from '@para-ui/icons/Delete';
15
15
  import FileOutlined from '@para-ui/icons/Document';
16
16
  import PhotoIcon from '@para-ui/icons/Photo';
@@ -36,9 +36,8 @@ import { Modal } from '../Modal/index.js';
36
36
  import '../_verture/typeof-6ec38efd.js';
37
37
  import 'rc-tooltip';
38
38
  import 'rc-tooltip/lib/placements';
39
- import '../_verture/Portal-f9bedb3a.js';
39
+ import '../_verture/Portal-42560ff0.js';
40
40
  import 'react-dom';
41
- import '../_verture/defineProperty-6f62bb2a.js';
42
41
  import 'rc-dialog';
43
42
  import 'rc-motion';
44
43
  import '@para-ui/icons/Sort';
@@ -1107,7 +1106,7 @@ var ImageUpload = function ImageUpload(props) {
1107
1106
  size: "small",
1108
1107
  onClick: handleReset
1109
1108
  }, {
1110
- children: jsx(CloseIcon, {})
1109
+ children: jsx(Close, {})
1111
1110
  })), renderUploadSelector()]
1112
1111
  })) : renderUploadSelector() : jsx(Fragment, {})]
1113
1112
  }));
@@ -1,9 +1,8 @@
1
1
  import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
2
2
  import * as React from 'react';
3
3
  import { createPortal } from 'react-dom';
4
- import { _ as _typeof } from './typeof-adeedc13.js';
4
+ import { a as _defineProperty, _ as _typeof } from './defineProperty-f0e15205.js';
5
5
  import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
6
- import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
7
6
 
8
7
  function _extends() {
9
8
  _extends = Object.assign ? Object.assign.bind() : function (target) {
@@ -1,4 +1,12 @@
1
- import { _ as _typeof } from './typeof-adeedc13.js';
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 { _defineProperty as _, toPropertyKey as t };
42
+ export { _typeof as _, _defineProperty as a, toPropertyKey as t };