assui 2.3.9 → 3.0.1
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/es/a-select/index.js +7 -22
- package/es/a-select/style/index.css +195 -743
- package/es/area-text/index.js +1 -3
- package/es/button-drawer/index.js +12 -30
- package/es/button-modal/index.js +12 -33
- package/es/color-select/index.js +10 -23
- package/es/color-select/style/index.css +195 -743
- package/es/condition-input/index.js +8 -26
- package/es/condition-input/parse2RegexOption.js +0 -11
- package/es/config-provider/index.js +1 -3
- package/es/copy-to-clipboard/index.js +11 -27
- package/es/copy-to-clipboard/style/index.css +0 -1
- package/es/highlight-textarea/HighlighedContents.js +1 -3
- package/es/highlight-textarea/extractSpansOfClasses.d.ts +1 -0
- package/es/highlight-textarea/extractSpansOfClasses.js +7 -29
- package/es/highlight-textarea/getRanges.js +3 -35
- package/es/highlight-textarea/getType.js +0 -6
- package/es/highlight-textarea/index.js +11 -30
- package/es/highlight-textarea/style/index.css +7 -21
- package/es/img-crop/EasyCrop.js +18 -34
- package/es/img-crop/getCroppedImg.js +15 -50
- package/es/img-crop/index.js +56 -145
- package/es/img-crop/style/index.css +195 -743
- package/es/json-editor/index.js +6 -20
- package/es/keep-tab/index.d.ts +7 -4
- package/es/keep-tab/index.js +34 -59
- package/es/keep-tab/style/index.css +39 -99
- package/es/label-auto-complete/index.js +14 -32
- package/es/label-auto-complete/style/index.css +195 -743
- package/es/label-condition-input/index.js +13 -29
- package/es/label-customize-range-picker/defaultRadioList.js +0 -3
- package/es/label-customize-range-picker/index.js +36 -78
- package/es/label-customize-range-picker/style/index.css +195 -743
- package/es/label-customize-range-picker/utils/index.js +5 -14
- package/es/label-date-picker/index.js +11 -28
- package/es/label-date-picker/style/index.css +195 -743
- package/es/label-input/index.js +23 -37
- package/es/label-number-input/index.js +13 -28
- package/es/label-range-picker/index.js +11 -28
- package/es/label-range-picker/style/index.css +195 -743
- package/es/label-select/index.js +11 -27
- package/es/label-select/style/index.css +195 -743
- package/es/label-text-area/index.js +13 -35
- package/es/label-tree-select/index.js +15 -32
- package/es/label-tree-select/style/index.css +195 -743
- package/es/number-format-input/index.js +1 -11
- package/es/number-input/index.js +18 -37
- package/es/number-input/utils.js +7 -15
- package/es/rc-echart/core.js +15 -27
- package/es/rc-echart/index.js +0 -6
- package/es/rc-qrcode/index.js +2 -12
- package/es/rc-qrcode/useQrcode.js +5 -12
- package/es/rich-text-editor/index.js +5 -16
- package/es/rich-text-editor/plugins/code/index.js +0 -8
- package/es/rich-text-editor/style/index.css +195 -743
- package/es/single-img-upload/index.js +36 -110
- package/es/single-img-upload/style/index.css +195 -743
- package/es/split-pane/index.js +0 -4
- package/es/step-number-input/index.js +14 -39
- package/es/step-number-input/style/index.css +195 -743
- package/es/table-col/index.js +2 -4
- package/es/text-area/index.js +8 -27
- package/es/text-input/index.js +4 -18
- package/es/text-input/style/index.css +7 -21
- package/lib/a-select/index.js +7 -27
- package/lib/a-select/style/index.css +195 -743
- package/lib/a-select/style/index.js +0 -2
- package/lib/area-text/index.js +1 -6
- package/lib/area-text/style/index.js +0 -1
- package/lib/beautiful-dnd/index.js +0 -9
- package/lib/button-drawer/index.js +12 -42
- package/lib/button-drawer/style/index.js +0 -1
- package/lib/button-modal/index.js +12 -44
- package/lib/button-modal/style/index.js +0 -1
- package/lib/color-select/index.js +10 -39
- package/lib/color-select/style/index.css +195 -743
- package/lib/color-select/style/index.js +0 -2
- package/lib/condition-input/index.js +8 -41
- package/lib/condition-input/parse2RegexOption.js +0 -16
- package/lib/condition-input/style/index.js +0 -1
- package/lib/config-provider/context.js +0 -4
- package/lib/config-provider/index.js +1 -28
- package/lib/copy-to-clipboard/index.js +11 -38
- package/lib/copy-to-clipboard/style/index.css +0 -1
- package/lib/copy-to-clipboard/style/index.js +0 -1
- package/lib/highlight-textarea/HighlighedContents.js +1 -7
- package/lib/highlight-textarea/extractSpansOfClasses.d.ts +1 -0
- package/lib/highlight-textarea/extractSpansOfClasses.js +7 -31
- package/lib/highlight-textarea/getRanges.js +3 -38
- package/lib/highlight-textarea/getType.js +0 -8
- package/lib/highlight-textarea/index.js +11 -44
- package/lib/highlight-textarea/style/index.css +7 -21
- package/lib/highlight-textarea/style/index.js +0 -1
- package/lib/highlight-words/index.js +0 -3
- package/lib/img-crop/EasyCrop.js +18 -44
- package/lib/img-crop/getCroppedImg.js +15 -51
- package/lib/img-crop/index.js +56 -159
- package/lib/img-crop/style/index.css +195 -743
- package/lib/img-crop/style/index.js +0 -3
- package/lib/index.js +0 -77
- package/lib/json-editor/index.js +6 -35
- package/lib/json-editor/style/index.js +0 -2
- package/lib/keep-tab/index.d.ts +7 -4
- package/lib/keep-tab/index.js +34 -76
- package/lib/keep-tab/style/index.css +39 -99
- package/lib/keep-tab/style/index.js +0 -2
- package/lib/label-auto-complete/index.js +14 -39
- package/lib/label-auto-complete/style/index.css +195 -743
- package/lib/label-auto-complete/style/index.js +0 -2
- package/lib/label-condition-input/index.js +13 -36
- package/lib/label-condition-input/style/index.js +0 -1
- package/lib/label-customize-range-picker/defaultRadioList.js +0 -7
- package/lib/label-customize-range-picker/index.js +36 -99
- package/lib/label-customize-range-picker/style/index.css +195 -743
- package/lib/label-customize-range-picker/style/index.js +0 -5
- package/lib/label-customize-range-picker/utils/index.js +5 -19
- package/lib/label-date-picker/index.js +11 -34
- package/lib/label-date-picker/style/index.css +195 -743
- package/lib/label-date-picker/style/index.js +0 -2
- package/lib/label-input/index.js +23 -46
- package/lib/label-input/style/index.js +0 -1
- package/lib/label-number-input/index.js +13 -36
- package/lib/label-number-input/style/index.js +0 -1
- package/lib/label-range-picker/index.js +11 -36
- package/lib/label-range-picker/style/index.css +195 -743
- package/lib/label-range-picker/style/index.js +0 -2
- package/lib/label-select/index.js +11 -36
- package/lib/label-select/style/index.css +195 -743
- package/lib/label-select/style/index.js +0 -2
- package/lib/label-text-area/index.js +13 -40
- package/lib/label-text-area/style/index.js +0 -1
- package/lib/label-tree-select/index.js +15 -38
- package/lib/label-tree-select/style/index.css +195 -743
- package/lib/label-tree-select/style/index.js +0 -2
- package/lib/messages/index.js +0 -2
- package/lib/number-format-input/index.js +1 -15
- package/lib/number-format-input/style/index.js +0 -1
- package/lib/number-input/index.js +18 -55
- package/lib/number-input/style/index.js +0 -1
- package/lib/number-input/utils.js +8 -20
- package/lib/rc-echart/core.js +15 -40
- package/lib/rc-echart/index.js +0 -17
- package/lib/rc-motion/index.js +0 -3
- package/lib/rc-qrcode/index.js +2 -25
- package/lib/rc-qrcode/useQrcode.js +5 -17
- package/lib/rc-transition-group/index.js +0 -9
- package/lib/resizable/index.js +0 -2
- package/lib/resizable/style/index.js +0 -1
- package/lib/rich-text-editor/index.js +5 -53
- package/lib/rich-text-editor/plugins/code/index.js +2 -12
- package/lib/rich-text-editor/style/index.css +195 -743
- package/lib/rich-text-editor/style/index.js +0 -1
- package/lib/single-img-upload/index.js +36 -125
- package/lib/single-img-upload/style/index.css +195 -743
- package/lib/single-img-upload/style/index.js +0 -3
- package/lib/sortable-hoc/index.js +0 -9
- package/lib/split-pane/index.js +0 -15
- package/lib/split-pane/style/index.js +0 -1
- package/lib/step-number-input/index.js +14 -55
- package/lib/step-number-input/style/index.css +195 -743
- package/lib/step-number-input/style/index.js +0 -2
- package/lib/table-col/index.js +2 -6
- package/lib/text-area/index.js +8 -38
- package/lib/text-area/style/index.js +0 -1
- package/lib/text-input/index.js +4 -23
- package/lib/text-input/style/index.css +7 -21
- package/lib/text-input/style/index.js +0 -1
- package/package.json +6 -6
package/es/area-text/index.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
|
|
4
3
|
var AreaText = function AreaText(_a) {
|
|
5
4
|
var value = _a.value,
|
|
6
|
-
|
|
5
|
+
className = _a.className;
|
|
7
6
|
return /*#__PURE__*/React.createElement("div", {
|
|
8
7
|
className: classNames('area-text', className)
|
|
9
8
|
}, value);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
export default AreaText;
|
|
@@ -2,39 +2,31 @@ var __assign = this && this.__assign || function () {
|
|
|
2
2
|
__assign = Object.assign || function (t) {
|
|
3
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
4
|
s = arguments[i];
|
|
5
|
-
|
|
6
5
|
for (var p in s) {
|
|
7
6
|
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
return t;
|
|
12
10
|
};
|
|
13
|
-
|
|
14
11
|
return __assign.apply(this, arguments);
|
|
15
12
|
};
|
|
16
|
-
|
|
17
13
|
var __rest = this && this.__rest || function (s, e) {
|
|
18
14
|
var t = {};
|
|
19
|
-
|
|
20
15
|
for (var p in s) {
|
|
21
16
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
22
17
|
}
|
|
23
|
-
|
|
24
18
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
25
19
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
26
20
|
}
|
|
27
21
|
return t;
|
|
28
22
|
};
|
|
29
|
-
|
|
30
23
|
var __read = this && this.__read || function (o, n) {
|
|
31
24
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
32
25
|
if (!m) return o;
|
|
33
26
|
var i = m.call(o),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
r,
|
|
28
|
+
ar = [],
|
|
29
|
+
e;
|
|
38
30
|
try {
|
|
39
31
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
40
32
|
ar.push(r.value);
|
|
@@ -50,44 +42,35 @@ var __read = this && this.__read || function (o, n) {
|
|
|
50
42
|
if (e) throw e.error;
|
|
51
43
|
}
|
|
52
44
|
}
|
|
53
|
-
|
|
54
45
|
return ar;
|
|
55
46
|
};
|
|
56
|
-
|
|
57
47
|
import React, { useState, useRef, useImperativeHandle } from 'react';
|
|
58
48
|
import Drawer from "antd/es/drawer";
|
|
59
49
|
import isFunction from 'lodash/isFunction';
|
|
60
50
|
import classNames from 'classnames';
|
|
61
|
-
|
|
62
51
|
var ButtonDrawer = function ButtonDrawer(props, ref) {
|
|
63
52
|
var _a = __read(useState(false), 2),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
53
|
+
drawerVisible = _a[0],
|
|
54
|
+
setDrawerVisible = _a[1];
|
|
67
55
|
var children = props.children,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
56
|
+
onOpen = props.onOpen,
|
|
57
|
+
onClose = props.onClose,
|
|
58
|
+
trigger = props.trigger,
|
|
59
|
+
title = props.title,
|
|
60
|
+
className = props.className,
|
|
61
|
+
restProps = __rest(props, ["children", "onOpen", "onClose", "trigger", "title", "className"]);
|
|
75
62
|
var closeDrawer = function closeDrawer() {
|
|
76
63
|
if (onClose) {
|
|
77
64
|
onClose();
|
|
78
65
|
}
|
|
79
|
-
|
|
80
66
|
setDrawerVisible(false);
|
|
81
67
|
};
|
|
82
|
-
|
|
83
68
|
var openDrawer = function openDrawer() {
|
|
84
69
|
if (onOpen) {
|
|
85
70
|
onOpen();
|
|
86
71
|
}
|
|
87
|
-
|
|
88
72
|
setDrawerVisible(true);
|
|
89
73
|
};
|
|
90
|
-
|
|
91
74
|
var actionRef = useRef({
|
|
92
75
|
close: function close() {
|
|
93
76
|
closeDrawer();
|
|
@@ -107,11 +90,10 @@ var ButtonDrawer = function ButtonDrawer(props, ref) {
|
|
|
107
90
|
className: classNames('button-drawer', className),
|
|
108
91
|
title: title,
|
|
109
92
|
onClose: closeDrawer,
|
|
110
|
-
|
|
93
|
+
open: drawerVisible
|
|
111
94
|
}, restProps), isFunction(children) ? children(actionRef.current) : /*#__PURE__*/React.cloneElement(children, {
|
|
112
95
|
drawerAction: actionRef.current
|
|
113
96
|
})));
|
|
114
97
|
};
|
|
115
|
-
|
|
116
98
|
var ForwardRefButtonDrawer = /*#__PURE__*/React.forwardRef(ButtonDrawer);
|
|
117
99
|
export default ForwardRefButtonDrawer;
|
package/es/button-modal/index.js
CHANGED
|
@@ -2,39 +2,31 @@ var __assign = this && this.__assign || function () {
|
|
|
2
2
|
__assign = Object.assign || function (t) {
|
|
3
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
4
|
s = arguments[i];
|
|
5
|
-
|
|
6
5
|
for (var p in s) {
|
|
7
6
|
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
return t;
|
|
12
10
|
};
|
|
13
|
-
|
|
14
11
|
return __assign.apply(this, arguments);
|
|
15
12
|
};
|
|
16
|
-
|
|
17
13
|
var __rest = this && this.__rest || function (s, e) {
|
|
18
14
|
var t = {};
|
|
19
|
-
|
|
20
15
|
for (var p in s) {
|
|
21
16
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
22
17
|
}
|
|
23
|
-
|
|
24
18
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
25
19
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
26
20
|
}
|
|
27
21
|
return t;
|
|
28
22
|
};
|
|
29
|
-
|
|
30
23
|
var __read = this && this.__read || function (o, n) {
|
|
31
24
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
32
25
|
if (!m) return o;
|
|
33
26
|
var i = m.call(o),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
r,
|
|
28
|
+
ar = [],
|
|
29
|
+
e;
|
|
38
30
|
try {
|
|
39
31
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
40
32
|
ar.push(r.value);
|
|
@@ -50,37 +42,30 @@ var __read = this && this.__read || function (o, n) {
|
|
|
50
42
|
if (e) throw e.error;
|
|
51
43
|
}
|
|
52
44
|
}
|
|
53
|
-
|
|
54
45
|
return ar;
|
|
55
46
|
};
|
|
56
|
-
|
|
57
47
|
import * as React from 'react';
|
|
58
48
|
import isFunction from 'lodash/isFunction';
|
|
59
49
|
import Modal from "antd/es/modal";
|
|
60
|
-
|
|
61
50
|
var ButtonModal = function ButtonModal(props, ref) {
|
|
62
51
|
var _a = __read(React.useState(false), 2),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
52
|
+
visible = _a[0],
|
|
53
|
+
setModalVisible = _a[1];
|
|
66
54
|
var children = props.children,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
55
|
+
trigger = props.trigger,
|
|
56
|
+
onOpen = props.onOpen,
|
|
57
|
+
onClose = props.onClose,
|
|
58
|
+
onOk = props.onOk,
|
|
59
|
+
onCancel = props.onCancel,
|
|
60
|
+
restModalProps = __rest(props, ["children", "trigger", "onOpen", "onClose", "onOk", "onCancel"]);
|
|
74
61
|
var openModal = function openModal() {
|
|
75
62
|
setModalVisible(true);
|
|
76
63
|
onOpen === null || onOpen === void 0 ? void 0 : onOpen();
|
|
77
64
|
};
|
|
78
|
-
|
|
79
65
|
var closeModal = function closeModal() {
|
|
80
66
|
setModalVisible(false);
|
|
81
67
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
82
68
|
};
|
|
83
|
-
|
|
84
69
|
var modalActionRef = React.useRef({
|
|
85
70
|
open: openModal,
|
|
86
71
|
close: closeModal
|
|
@@ -88,29 +73,24 @@ var ButtonModal = function ButtonModal(props, ref) {
|
|
|
88
73
|
React.useImperativeHandle(ref, function () {
|
|
89
74
|
return modalActionRef.current;
|
|
90
75
|
});
|
|
91
|
-
|
|
92
76
|
var handleModalOk = function handleModalOk(e) {
|
|
93
77
|
if (onOk) {
|
|
94
78
|
return onOk(e);
|
|
95
79
|
}
|
|
96
|
-
|
|
97
80
|
closeModal();
|
|
98
81
|
return null;
|
|
99
82
|
};
|
|
100
|
-
|
|
101
83
|
var handleModalCancel = function handleModalCancel(e) {
|
|
102
84
|
if (onCancel) {
|
|
103
85
|
onCancel(e);
|
|
104
86
|
}
|
|
105
|
-
|
|
106
87
|
closeModal();
|
|
107
88
|
};
|
|
108
|
-
|
|
109
89
|
var buttonNode = trigger && /*#__PURE__*/React.cloneElement(trigger, {
|
|
110
90
|
onClick: openModal
|
|
111
91
|
});
|
|
112
92
|
return /*#__PURE__*/React.createElement(React.Fragment, null, buttonNode, /*#__PURE__*/React.createElement(Modal, __assign({
|
|
113
|
-
|
|
93
|
+
open: visible,
|
|
114
94
|
onOk: handleModalOk,
|
|
115
95
|
onCancel: handleModalCancel,
|
|
116
96
|
centered: true,
|
|
@@ -119,6 +99,5 @@ var ButtonModal = function ButtonModal(props, ref) {
|
|
|
119
99
|
modalAction: modalActionRef.current
|
|
120
100
|
})));
|
|
121
101
|
};
|
|
122
|
-
|
|
123
102
|
var ForwardRefButtonModal = /*#__PURE__*/React.forwardRef(ButtonModal);
|
|
124
103
|
export default ForwardRefButtonModal;
|
package/es/color-select/index.js
CHANGED
|
@@ -2,26 +2,21 @@ var __assign = this && this.__assign || function () {
|
|
|
2
2
|
__assign = Object.assign || function (t) {
|
|
3
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
4
|
s = arguments[i];
|
|
5
|
-
|
|
6
5
|
for (var p in s) {
|
|
7
6
|
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
return t;
|
|
12
10
|
};
|
|
13
|
-
|
|
14
11
|
return __assign.apply(this, arguments);
|
|
15
12
|
};
|
|
16
|
-
|
|
17
13
|
var __read = this && this.__read || function (o, n) {
|
|
18
14
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
19
15
|
if (!m) return o;
|
|
20
16
|
var i = m.call(o),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
r,
|
|
18
|
+
ar = [],
|
|
19
|
+
e;
|
|
25
20
|
try {
|
|
26
21
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
27
22
|
ar.push(r.value);
|
|
@@ -37,10 +32,8 @@ var __read = this && this.__read || function (o, n) {
|
|
|
37
32
|
if (e) throw e.error;
|
|
38
33
|
}
|
|
39
34
|
}
|
|
40
|
-
|
|
41
35
|
return ar;
|
|
42
36
|
};
|
|
43
|
-
|
|
44
37
|
import { SketchPicker } from 'react-color';
|
|
45
38
|
import React, { useContext } from 'react';
|
|
46
39
|
import RcTrigger from 'rc-trigger';
|
|
@@ -49,28 +42,23 @@ import useControllableValue from "ahooks/es/useControllableValue";
|
|
|
49
42
|
import ChevronRightOutlined from "a-icons/es/ChevronRightOutlined";
|
|
50
43
|
import LocaleContext from '../config-provider/context';
|
|
51
44
|
import formatMessage from '../messages';
|
|
52
|
-
|
|
53
45
|
var ColorSelect = function ColorSelect(props) {
|
|
54
46
|
var className = props.className,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
47
|
+
classNameWrap = props.classNameWrap,
|
|
48
|
+
reactColorProps = props.reactColorProps,
|
|
49
|
+
RcTriggerProps = props.RcTriggerProps,
|
|
50
|
+
renderValueNode = props.renderValueNode,
|
|
51
|
+
renderExtra = props.renderExtra;
|
|
61
52
|
var _a = __read(useControllableValue(props), 2),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
53
|
+
value = _a[0],
|
|
54
|
+
onChangeValue = _a[1];
|
|
65
55
|
var messages = useContext(LocaleContext);
|
|
66
|
-
|
|
67
56
|
var onChange = function onChange(nextValue) {
|
|
68
57
|
onChangeValue({
|
|
69
58
|
hex: nextValue.hex,
|
|
70
59
|
rgb: "".concat(nextValue.rgb.r, ",").concat(nextValue.rgb.g, ",").concat(nextValue.rgb.b)
|
|
71
60
|
});
|
|
72
61
|
};
|
|
73
|
-
|
|
74
62
|
var defaultValueNode = /*#__PURE__*/React.createElement("div", {
|
|
75
63
|
className: classNames('color-select', className),
|
|
76
64
|
tabIndex: 0
|
|
@@ -102,5 +90,4 @@ var ColorSelect = function ColorSelect(props) {
|
|
|
102
90
|
}, reactColorProps))
|
|
103
91
|
}), renderValueNode ? renderValueNode(value) : defaultValueNode), renderExtra && renderExtra(value));
|
|
104
92
|
};
|
|
105
|
-
|
|
106
93
|
export default ColorSelect;
|