@para-ui/core 4.0.26 → 4.0.28
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 +4 -5
- package/ComboSelect/index.js +19 -7
- package/ComboSelect/interface.d.ts +4 -0
- package/CycleSelector/index.js +1 -2
- package/DatePicker/index.js +1 -2
- package/DynamicMultiBox/index.js +7 -5
- package/Form/index.js +6 -3
- package/FormItem/index.js +6 -3
- package/Image/index.js +2 -3
- package/README.md +6 -0
- package/Selector/index.js +2 -325
- package/SelectorPicker/index.js +1 -0
- package/Switch/index.js +2 -2
- package/TimePicker/index.js +1 -2
- package/Title/index.d.ts +2 -0
- package/Title/index.js +19 -10
- package/Tree/index.js +8 -5
- package/Upload/index.js +2 -3
- package/_verture/{Portal-5bd49559.js → Portal-5bf66fed.js} +1 -2
- package/_verture/{defineProperty-6f62bb2a.js → defineProperty-f0e15205.js} +10 -2
- package/_verture/{index-93662604.js → index-28edf318.js} +395 -314
- package/_verture/index-8ac46bd9.js +327 -0
- package/_verture/{index-5f205d87.js → index-8ec857b4.js} +2 -3
- package/index.js +6 -6
- package/package.json +1 -1
- package/umd/ComboSelect.js +1 -1
- package/umd/Descriptions.js +2 -2
- package/umd/DynamicMultiBox.js +1 -1
- package/umd/Form.js +1 -1
- package/umd/FormItem.js +1 -1
- package/umd/Title.js +6 -6
- package/_verture/typeof-adeedc13.js +0 -11
- /package/_verture/{index-3d0397db.js → index-33866394.js} +0 -0
package/Title/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import '@para-ui/icons/Help';
|
|
|
16
16
|
import 'rc-collapse';
|
|
17
17
|
import '@para-ui/icons/Right';
|
|
18
18
|
|
|
19
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/8/11 2:55 PM\n* @description 标题\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-title-collapse {\n border-bottom: none;\n}\n.paraui-v4-title-collapse > .component-collapse-item {\n border-top: none;\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header {\n flex-direction: row-reverse;\n justify-content: space-between;\n padding: 0;\n padding-right: 16px;\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header .paraui-v4-title-content {\n max-width: calc(100% - 32px);\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header .collapse-svg-box {\n color: rgb(92, 101, 115);\n margin-right: 0;\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header:hover {\n position: relative;\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header:hover > div {\n z-index: 1;\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header:hover > .collapse-svg-box:hover svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header:hover .title-link:hover {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header:hover::after {\n position: absolute;\n background-color: rgb(247, 248, 250);\n content: \"\";\n width: 100%;\n height: calc(100% + 4px);\n left: -10px;\n border-radius: 4px;\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-content > .component-collapse-content-box {\n padding-left: 0px;\n padding-right: 0px;\n padding-bottom: 0;\n}\n\n.paraui-v4-title .paraui-v4-title-content {\n display: flex;\n align-items: center;\n line-height: 20px;\n}\n.paraui-v4-title .paraui-v4-title-content .title-ink {\n width: 4px;\n height: 14px;\n background-color: rgb(46, 101, 230);\n border-radius: 2px;\n}\n.paraui-v4-title .paraui-v4-title-content .title-icon {\n display: inline-flex;\n}\n.paraui-v4-title .paraui-v4-title-content .title-text {\n margin-left: 8px;\n font-size: 14px;\n font-weight: 700;\n color: rgb(29, 33, 38);\n display: flex;\n align-items: center;\n white-space: nowrap;\n}\n.paraui-v4-title .paraui-v4-title-content .title-text .paraui-v4-help {\n line-height: 11px;\n font-size: 14px;\n margin-left: 4px;\n}\n.paraui-v4-title .paraui-v4-title-content .title-subtext {\n margin-left: 10px;\n font-size: 14px;\n font-weight: 400;\n color: rgb(161, 168, 179);\n}\n.paraui-v4-title .paraui-v4-title-content .title-link {\n margin-left: 10px;\n text-decoration: none;\n outline: none;\n font-size: 14px;\n font-weight: 400;\n white-space: nowrap;\n color: rgb(46, 101, 230);\n}\n.paraui-v4-title .paraui-v4-title-content .title-link:hover {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-title .paraui-v4-title-content.paraui-v4-title-content-large .title-icon svg {\n font-size: 30px;\n}\n.paraui-v4-title .paraui-v4-title-content.paraui-v4-title-content-large .title-text {\n font-size: 18px;\n}\n.paraui-v4-title .paraui-v4-title-content.paraui-v4-title-content-medium .title-icon svg {\n font-size: 24px;\n}\n.paraui-v4-title .paraui-v4-title-content.paraui-v4-title-content-medium .title-text {\n font-size: 16px;\n}\n.paraui-v4-title .paraui-v4-title-content.paraui-v4-title-content-small .title-icon svg {\n font-size: 20px;\n}\n.paraui-v4-title .paraui-v4-title-content.paraui-v4-title-content-small .title-text {\n margin-left: 4px;\n}";
|
|
19
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/8/11 2:55 PM\n* @description 标题\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-title-collapse {\n border-bottom: none;\n}\n.paraui-v4-title-collapse > .component-collapse-item {\n border-top: none;\n}\n.paraui-v4-title-collapse > .component-collapse-item .paraui-v4-title-collapse-content {\n padding-top: 20px;\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header {\n flex-direction: row-reverse;\n justify-content: space-between;\n padding: 0;\n padding-right: 16px;\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header .paraui-v4-title-content {\n max-width: calc(100% - 32px);\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header .collapse-svg-box {\n color: rgb(92, 101, 115);\n margin-right: 0;\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header:hover {\n position: relative;\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header:hover > div {\n z-index: 1;\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header:hover > .collapse-svg-box:hover svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header:hover .title-link:hover {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-header:hover::after {\n position: absolute;\n background-color: rgb(247, 248, 250);\n content: \"\";\n width: 100%;\n height: calc(100% + 4px);\n left: -10px;\n border-radius: 4px;\n}\n.paraui-v4-title-collapse > .component-collapse-item > .component-collapse-content > .component-collapse-content-box {\n padding-left: 0px;\n padding-right: 0px;\n padding-bottom: 0;\n}\n\n.paraui-v4-title .paraui-v4-title-content {\n display: flex;\n align-items: center;\n line-height: 20px;\n}\n.paraui-v4-title .paraui-v4-title-content .title-ink {\n width: 4px;\n height: 14px;\n background-color: rgb(46, 101, 230);\n border-radius: 2px;\n}\n.paraui-v4-title .paraui-v4-title-content .title-icon {\n display: inline-flex;\n}\n.paraui-v4-title .paraui-v4-title-content .title-text {\n margin-left: 8px;\n font-size: 14px;\n font-weight: 700;\n color: rgb(29, 33, 38);\n display: flex;\n align-items: center;\n white-space: nowrap;\n}\n.paraui-v4-title .paraui-v4-title-content .title-text .paraui-v4-help {\n line-height: 11px;\n font-size: 14px;\n margin-left: 4px;\n}\n.paraui-v4-title .paraui-v4-title-content .title-subtext {\n margin-left: 10px;\n font-size: 14px;\n font-weight: 400;\n color: rgb(161, 168, 179);\n}\n.paraui-v4-title .paraui-v4-title-content .title-link {\n margin-left: 10px;\n text-decoration: none;\n outline: none;\n font-size: 14px;\n font-weight: 400;\n white-space: nowrap;\n color: rgb(46, 101, 230);\n}\n.paraui-v4-title .paraui-v4-title-content .title-link:hover {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-title .paraui-v4-title-content.paraui-v4-title-content-large .title-icon svg {\n font-size: 30px;\n}\n.paraui-v4-title .paraui-v4-title-content.paraui-v4-title-content-large .title-text {\n font-size: 18px;\n}\n.paraui-v4-title .paraui-v4-title-content.paraui-v4-title-content-medium .title-icon svg {\n font-size: 24px;\n}\n.paraui-v4-title .paraui-v4-title-content.paraui-v4-title-content-medium .title-text {\n font-size: 16px;\n}\n.paraui-v4-title .paraui-v4-title-content.paraui-v4-title-content-small .title-icon svg {\n font-size: 20px;\n}\n.paraui-v4-title .paraui-v4-title-content.paraui-v4-title-content-small .title-text {\n margin-left: 4px;\n}";
|
|
20
20
|
styleInject(css_248z);
|
|
21
21
|
|
|
22
22
|
const {
|
|
@@ -38,7 +38,9 @@ const Title = props => {
|
|
|
38
38
|
titoleTooltipIcon,
|
|
39
39
|
placement,
|
|
40
40
|
arrow,
|
|
41
|
-
style
|
|
41
|
+
style,
|
|
42
|
+
children,
|
|
43
|
+
defaultCollapse
|
|
42
44
|
} = props;
|
|
43
45
|
const titleTextRef = useRef(null);
|
|
44
46
|
const linkTextRef = useRef(null);
|
|
@@ -103,15 +105,22 @@ const Title = props => {
|
|
|
103
105
|
return jsx("div", Object.assign({
|
|
104
106
|
className: "".concat($prefixCls, "-title")
|
|
105
107
|
}, {
|
|
106
|
-
children: collapseContent ? jsx(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
header: titleContent()
|
|
108
|
+
children: collapseContent || children ? jsx("div", {
|
|
109
|
+
children: jsx(Collapse, Object.assign({
|
|
110
|
+
className: cloCls(),
|
|
111
|
+
defaultActiveKey: defaultCollapse ? '1' : undefined
|
|
111
112
|
}, {
|
|
112
|
-
children:
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
children: jsx(Panel, Object.assign({
|
|
114
|
+
header: titleContent()
|
|
115
|
+
}, {
|
|
116
|
+
children: jsx("div", Object.assign({
|
|
117
|
+
className: "".concat($prefixCls, "-title-collapse-content")
|
|
118
|
+
}, {
|
|
119
|
+
children: children || collapseContent
|
|
120
|
+
}))
|
|
121
|
+
}), "1")
|
|
122
|
+
}))
|
|
123
|
+
}) : titleContent()
|
|
115
124
|
}));
|
|
116
125
|
};
|
|
117
126
|
|
package/Tree/index.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/index-
|
|
2
|
-
export { T as default } from '../_verture/index-
|
|
1
|
+
import { T as Tree } from '../_verture/index-28edf318.js';
|
|
2
|
+
export { T as default } from '../_verture/index-28edf318.js';
|
|
3
|
+
import '../_verture/toConsumableArray-8f4c9589.js';
|
|
4
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
5
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
6
|
+
import '../_verture/slicedToArray-a8206399.js';
|
|
7
|
+
import '../_verture/index-8ac46bd9.js';
|
|
8
|
+
import '../_verture/typeof-6ec38efd.js';
|
|
3
9
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
4
10
|
import 'react/jsx-runtime';
|
|
5
11
|
import 'react';
|
|
6
12
|
import 'rc-tree';
|
|
7
13
|
import 'clsx';
|
|
8
|
-
import '../_verture/typeof-adeedc13.js';
|
|
9
14
|
import '@para-ui/icons/LoadingF';
|
|
10
15
|
import '@para-ui/icons/Document';
|
|
11
16
|
import '@para-ui/icons/DownTriangleF';
|
|
@@ -19,8 +24,6 @@ import '../_verture/constant-5317fc89.js';
|
|
|
19
24
|
import '@para-ui/icons/Forbid';
|
|
20
25
|
import '../_verture/style-inject.es-300983ab.js';
|
|
21
26
|
import '@para-ui/icons/Help';
|
|
22
|
-
import '../_verture/slicedToArray-a8206399.js';
|
|
23
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
24
27
|
import 'react-dom';
|
|
25
28
|
import '@para-ui/icons/EditFile';
|
|
26
29
|
import '@para-ui/icons/PlusCircle';
|
package/Upload/index.js
CHANGED
|
@@ -31,12 +31,11 @@ import { Modal } from '../Modal/index.js';
|
|
|
31
31
|
import 'rc-tooltip';
|
|
32
32
|
import 'rc-tooltip/lib/placements';
|
|
33
33
|
import '@paraview/lib';
|
|
34
|
-
import '../_verture/Portal-
|
|
34
|
+
import '../_verture/Portal-5bf66fed.js';
|
|
35
35
|
import 'react-dom';
|
|
36
|
-
import '../_verture/
|
|
36
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
37
37
|
import '../_verture/toConsumableArray-8f4c9589.js';
|
|
38
38
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
39
|
-
import '../_verture/defineProperty-6f62bb2a.js';
|
|
40
39
|
import 'rc-dialog';
|
|
41
40
|
import 'rc-motion';
|
|
42
41
|
import '@para-ui/icons/Sort';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { _ as _slicedToArray } from './slicedToArray-a8206399.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
|
-
import { _ as _typeof } from './
|
|
4
|
+
import { a as _defineProperty, _ as _typeof } from './defineProperty-f0e15205.js';
|
|
5
5
|
import { _ as _toConsumableArray } from './toConsumableArray-8f4c9589.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
|
-
|
|
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 };
|