assui 2.0.145 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/es/button-drawer/index.d.ts +1 -1
  2. package/es/button-modal/index.d.ts +1 -1
  3. package/es/copy-to-clipboard/style/index.css +58 -43
  4. package/es/highlight-textarea/extractSpansOfClasses.js +9 -7
  5. package/es/highlight-textarea/getRanges.js +9 -7
  6. package/es/highlight-textarea/index.js +3 -3
  7. package/es/highlight-textarea/style/index.css +169 -41
  8. package/es/highlight-textarea/types.js +1 -0
  9. package/es/img-crop/index.js +7 -7
  10. package/es/img-crop/style/index.css +1784 -0
  11. package/es/img-crop/style/index.less +1 -1
  12. package/es/keep-tab/style/index.css +40 -23
  13. package/es/label-auto-complete/style/index.css +1784 -0
  14. package/es/label-auto-complete/style/index.less +1 -1
  15. package/es/label-customize-range-picker/defaultRadioList.d.ts +24 -0
  16. package/es/label-customize-range-picker/defaultRadioList.js +79 -0
  17. package/es/label-customize-range-picker/index.d.ts +6 -7
  18. package/es/label-customize-range-picker/index.js +9 -12
  19. package/es/label-customize-range-picker/style/index.css +1784 -0
  20. package/es/label-customize-range-picker/style/index.less +1 -1
  21. package/es/label-date-picker/index.js +1 -1
  22. package/es/label-date-picker/style/index.css +1784 -0
  23. package/es/label-date-picker/style/index.less +1 -1
  24. package/es/label-number-input/index.js +1 -1
  25. package/es/label-range-picker/style/index.css +1784 -0
  26. package/es/label-range-picker/style/index.less +1 -1
  27. package/es/label-select/style/index.css +1784 -0
  28. package/es/label-select/style/index.less +1 -1
  29. package/es/label-tree-select/style/index.css +1784 -0
  30. package/es/label-tree-select/style/index.less +1 -1
  31. package/es/number-input/index.js +4 -4
  32. package/es/number-input/utils.js +1 -1
  33. package/es/rich-text-editor/style/index.css +6 -5
  34. package/es/single-img-upload/index.js +1 -1
  35. package/es/single-img-upload/style/index.css +1784 -0
  36. package/es/single-img-upload/style/index.less +1 -1
  37. package/es/step-number-input/index.js +8 -8
  38. package/es/step-number-input/style/index.css +1784 -0
  39. package/es/step-number-input/style/index.less +1 -1
  40. package/es/text-input/index.js +8 -6
  41. package/es/text-input/style/index.css +169 -41
  42. package/lib/beautiful-dnd/index.js +13 -7
  43. package/lib/button-drawer/index.d.ts +1 -1
  44. package/lib/button-drawer/index.js +18 -12
  45. package/lib/button-modal/index.d.ts +1 -1
  46. package/lib/button-modal/index.js +14 -8
  47. package/lib/condition-input/index.js +17 -11
  48. package/lib/condition-input/parse2RegexOption.js +3 -3
  49. package/lib/copy-to-clipboard/index.js +15 -9
  50. package/lib/copy-to-clipboard/style/index.css +58 -43
  51. package/lib/highlight-textarea/HighlighedContents.js +2 -2
  52. package/lib/highlight-textarea/extractSpansOfClasses.js +9 -7
  53. package/lib/highlight-textarea/getRanges.js +10 -8
  54. package/lib/highlight-textarea/index.js +19 -13
  55. package/lib/highlight-textarea/style/index.css +169 -41
  56. package/lib/img-crop/EasyCrop.js +13 -7
  57. package/lib/img-crop/index.js +21 -15
  58. package/lib/img-crop/style/index.css +1784 -0
  59. package/lib/img-crop/style/index.less +1 -1
  60. package/lib/index.js +38 -31
  61. package/lib/keep-tab/index.js +17 -11
  62. package/lib/keep-tab/style/index.css +40 -23
  63. package/lib/label-auto-complete/index.js +5 -5
  64. package/lib/label-auto-complete/style/index.css +1784 -0
  65. package/lib/label-auto-complete/style/index.less +1 -1
  66. package/lib/label-condition-input/index.js +5 -5
  67. package/lib/label-customize-range-picker/defaultRadioList.d.ts +24 -0
  68. package/lib/label-customize-range-picker/defaultRadioList.js +93 -0
  69. package/lib/label-customize-range-picker/index.d.ts +6 -7
  70. package/lib/label-customize-range-picker/index.js +26 -24
  71. package/lib/label-customize-range-picker/style/index.css +1784 -0
  72. package/lib/label-customize-range-picker/style/index.less +1 -1
  73. package/lib/label-date-picker/index.js +5 -5
  74. package/lib/label-date-picker/style/index.css +1784 -0
  75. package/lib/label-date-picker/style/index.less +1 -1
  76. package/lib/label-input/index.js +5 -5
  77. package/lib/label-number-input/index.js +6 -6
  78. package/lib/label-range-picker/index.js +3 -3
  79. package/lib/label-range-picker/style/index.css +1784 -0
  80. package/lib/label-range-picker/style/index.less +1 -1
  81. package/lib/label-select/index.js +5 -5
  82. package/lib/label-select/style/index.css +1784 -0
  83. package/lib/label-select/style/index.less +1 -1
  84. package/lib/label-text-area/index.js +4 -4
  85. package/lib/label-tree-select/index.js +4 -4
  86. package/lib/label-tree-select/style/index.css +1784 -0
  87. package/lib/label-tree-select/style/index.less +1 -1
  88. package/lib/number-input/index.js +21 -15
  89. package/lib/number-input/utils.js +8 -4
  90. package/lib/rc-echart/core.js +21 -15
  91. package/lib/rc-echart/index.js +13 -7
  92. package/lib/rc-qrcode/index.js +14 -8
  93. package/lib/rc-qrcode/useQrcode.js +4 -3
  94. package/lib/rc-transition-group/index.js +13 -7
  95. package/lib/rich-text-editor/index.js +1 -1
  96. package/lib/rich-text-editor/style/index.css +6 -5
  97. package/lib/single-img-upload/index.js +18 -12
  98. package/lib/single-img-upload/style/index.css +1784 -0
  99. package/lib/single-img-upload/style/index.less +1 -1
  100. package/lib/sortable-hoc/index.js +13 -7
  101. package/lib/split-pane/index.js +13 -7
  102. package/lib/step-number-input/index.js +32 -26
  103. package/lib/step-number-input/style/index.css +1784 -0
  104. package/lib/step-number-input/style/index.less +1 -1
  105. package/lib/text-area/index.js +14 -8
  106. package/lib/text-input/index.js +8 -6
  107. package/lib/text-input/style/index.css +169 -41
  108. package/package.json +4 -3
  109. package/es/label-customize-range-picker/getDateScope.d.ts +0 -45
  110. package/es/label-customize-range-picker/getDateScope.js +0 -85
  111. package/es/label-customize-range-picker/getRadioList.d.ts +0 -10
  112. package/es/label-customize-range-picker/getRadioList.js +0 -49
  113. package/lib/label-customize-range-picker/getDateScope.d.ts +0 -45
  114. package/lib/label-customize-range-picker/getDateScope.js +0 -99
  115. package/lib/label-customize-range-picker/getRadioList.d.ts +0 -10
  116. package/lib/label-customize-range-picker/getRadioList.js +0 -55
@@ -18,12 +18,18 @@ var __assign = this && this.__assign || function () {
18
18
 
19
19
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
20
20
  if (k2 === undefined) k2 = k;
21
- Object.defineProperty(o, k2, {
22
- enumerable: true,
23
- get: function get() {
24
- return m[k];
25
- }
26
- });
21
+ var desc = Object.getOwnPropertyDescriptor(m, k);
22
+
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return m[k];
28
+ }
29
+ };
30
+ }
31
+
32
+ Object.defineProperty(o, k2, desc);
27
33
  } : function (o, m, k, k2) {
28
34
  if (k2 === undefined) k2 = k;
29
35
  o[k2] = m[k];
@@ -42,7 +48,7 @@ var __importStar = this && this.__importStar || function (mod) {
42
48
  if (mod && mod.__esModule) return mod;
43
49
  var result = {};
44
50
  if (mod != null) for (var k in mod) {
45
- if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
51
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
46
52
  }
47
53
 
48
54
  __setModuleDefault(result, mod);
@@ -101,7 +107,7 @@ var CopyToClipboard = function CopyToClipboard(props) {
101
107
  tooltipTitle = props.tooltipTitle,
102
108
  tooltipProps = props.tooltipProps;
103
109
 
104
- var _a = __read(react_1.useState(false), 2),
110
+ var _a = __read((0, react_1.useState)(false), 2),
105
111
  tooltipVisible = _a[0],
106
112
  setTooltipVisible = _a[1];
107
113
 
@@ -114,7 +120,7 @@ var CopyToClipboard = function CopyToClipboard(props) {
114
120
 
115
121
  var onClick = function onClick(event) {
116
122
  var elem = react_1["default"].Children.only(children);
117
- var result = copy_to_clipboard_1["default"](text, options);
123
+ var result = (0, copy_to_clipboard_1["default"])(text, options);
118
124
 
119
125
  if (onCopy) {
120
126
  onCopy(text, result);
@@ -18,6 +18,7 @@
18
18
  width: -webkit-max-content;
19
19
  width: -moz-max-content;
20
20
  width: max-content;
21
+ width: intrinsic;
21
22
  max-width: 250px;
22
23
  visibility: visible;
23
24
  }
@@ -27,22 +28,22 @@
27
28
  .ant-tooltip-placement-top,
28
29
  .ant-tooltip-placement-topLeft,
29
30
  .ant-tooltip-placement-topRight {
30
- padding-bottom: 8px;
31
+ padding-bottom: 14.3137085px;
31
32
  }
32
33
  .ant-tooltip-placement-right,
33
34
  .ant-tooltip-placement-rightTop,
34
35
  .ant-tooltip-placement-rightBottom {
35
- padding-left: 8px;
36
+ padding-left: 14.3137085px;
36
37
  }
37
38
  .ant-tooltip-placement-bottom,
38
39
  .ant-tooltip-placement-bottomLeft,
39
40
  .ant-tooltip-placement-bottomRight {
40
- padding-top: 8px;
41
+ padding-top: 14.3137085px;
41
42
  }
42
43
  .ant-tooltip-placement-left,
43
44
  .ant-tooltip-placement-leftTop,
44
45
  .ant-tooltip-placement-leftBottom {
45
- padding-right: 8px;
46
+ padding-right: 14.3137085px;
46
47
  }
47
48
  .ant-tooltip-inner {
48
49
  min-width: 30px;
@@ -59,36 +60,50 @@
59
60
  .ant-tooltip-arrow {
60
61
  position: absolute;
61
62
  display: block;
62
- width: 13.07106781px;
63
- height: 13.07106781px;
63
+ width: 22px;
64
+ height: 22px;
64
65
  overflow: hidden;
65
66
  background: transparent;
66
67
  pointer-events: none;
67
68
  }
68
69
  .ant-tooltip-arrow-content {
70
+ --antd-arrow-background-color: rgba(0, 0, 0, 0.75);
69
71
  position: absolute;
70
72
  top: 0;
71
73
  right: 0;
72
74
  bottom: 0;
73
75
  left: 0;
74
76
  display: block;
75
- width: 5px;
76
- height: 5px;
77
+ width: 11.3137085px;
78
+ height: 11.3137085px;
77
79
  margin: auto;
78
- background-color: rgba(0, 0, 0, 0.75);
80
+ background-color: transparent;
79
81
  content: '';
80
82
  pointer-events: auto;
83
+ border-radius: 0 0 2px;
84
+ pointer-events: none;
85
+ }
86
+ .ant-tooltip-arrow-content::before {
87
+ position: absolute;
88
+ top: -11.3137085px;
89
+ left: -11.3137085px;
90
+ width: 33.9411255px;
91
+ height: 33.9411255px;
92
+ background: linear-gradient(to left, var(--antd-arrow-background-color) 50%, var(--antd-arrow-background-color) 50%) no-repeat -10px -10px;
93
+ content: '';
94
+ -webkit-clip-path: path('M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 Z');
95
+ clip-path: path('M 9.849242404917499 24.091883092036785 A 5 5 0 0 1 13.384776310850237 22.627416997969522 L 20.627416997969522 22.627416997969522 A 2 2 0 0 0 22.627416997969522 20.627416997969522 L 22.627416997969522 13.384776310850237 A 5 5 0 0 1 24.091883092036785 9.849242404917499 Z');
81
96
  }
82
97
  .ant-tooltip-placement-top .ant-tooltip-arrow,
83
98
  .ant-tooltip-placement-topLeft .ant-tooltip-arrow,
84
99
  .ant-tooltip-placement-topRight .ant-tooltip-arrow {
85
- bottom: -5.07106781px;
100
+ bottom: -7.4462915px;
86
101
  }
87
102
  .ant-tooltip-placement-top .ant-tooltip-arrow-content,
88
103
  .ant-tooltip-placement-topLeft .ant-tooltip-arrow-content,
89
104
  .ant-tooltip-placement-topRight .ant-tooltip-arrow-content {
90
105
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
91
- transform: translateY(-6.53553391px) rotate(45deg);
106
+ transform: translateY(-11px) rotate(45deg);
92
107
  }
93
108
  .ant-tooltip-placement-top .ant-tooltip-arrow {
94
109
  left: 50%;
@@ -103,13 +118,13 @@
103
118
  .ant-tooltip-placement-right .ant-tooltip-arrow,
104
119
  .ant-tooltip-placement-rightTop .ant-tooltip-arrow,
105
120
  .ant-tooltip-placement-rightBottom .ant-tooltip-arrow {
106
- left: -5.07106781px;
121
+ left: -7.5862915px;
107
122
  }
108
123
  .ant-tooltip-placement-right .ant-tooltip-arrow-content,
109
124
  .ant-tooltip-placement-rightTop .ant-tooltip-arrow-content,
110
125
  .ant-tooltip-placement-rightBottom .ant-tooltip-arrow-content {
111
126
  box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);
112
- transform: translateX(6.53553391px) rotate(45deg);
127
+ transform: translateX(11px) rotate(135deg);
113
128
  }
114
129
  .ant-tooltip-placement-right .ant-tooltip-arrow {
115
130
  top: 50%;
@@ -124,13 +139,13 @@
124
139
  .ant-tooltip-placement-left .ant-tooltip-arrow,
125
140
  .ant-tooltip-placement-leftTop .ant-tooltip-arrow,
126
141
  .ant-tooltip-placement-leftBottom .ant-tooltip-arrow {
127
- right: -5.07106781px;
142
+ right: -7.6062915px;
128
143
  }
129
144
  .ant-tooltip-placement-left .ant-tooltip-arrow-content,
130
145
  .ant-tooltip-placement-leftTop .ant-tooltip-arrow-content,
131
146
  .ant-tooltip-placement-leftBottom .ant-tooltip-arrow-content {
132
147
  box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);
133
- transform: translateX(-6.53553391px) rotate(45deg);
148
+ transform: translateX(-11px) rotate(315deg);
134
149
  }
135
150
  .ant-tooltip-placement-left .ant-tooltip-arrow {
136
151
  top: 50%;
@@ -145,13 +160,13 @@
145
160
  .ant-tooltip-placement-bottom .ant-tooltip-arrow,
146
161
  .ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,
147
162
  .ant-tooltip-placement-bottomRight .ant-tooltip-arrow {
148
- top: -5.07106781px;
163
+ top: -7.5862915px;
149
164
  }
150
165
  .ant-tooltip-placement-bottom .ant-tooltip-arrow-content,
151
166
  .ant-tooltip-placement-bottomLeft .ant-tooltip-arrow-content,
152
167
  .ant-tooltip-placement-bottomRight .ant-tooltip-arrow-content {
153
168
  box-shadow: -3px -3px 7px rgba(0, 0, 0, 0.07);
154
- transform: translateY(6.53553391px) rotate(45deg);
169
+ transform: translateY(11px) rotate(225deg);
155
170
  }
156
171
  .ant-tooltip-placement-bottom .ant-tooltip-arrow {
157
172
  left: 50%;
@@ -166,80 +181,80 @@
166
181
  .ant-tooltip-pink .ant-tooltip-inner {
167
182
  background-color: #eb2f96;
168
183
  }
169
- .ant-tooltip-pink .ant-tooltip-arrow-content {
170
- background-color: #eb2f96;
184
+ .ant-tooltip-pink .ant-tooltip-arrow-content::before {
185
+ background: #eb2f96;
171
186
  }
172
187
  .ant-tooltip-magenta .ant-tooltip-inner {
173
188
  background-color: #eb2f96;
174
189
  }
175
- .ant-tooltip-magenta .ant-tooltip-arrow-content {
176
- background-color: #eb2f96;
190
+ .ant-tooltip-magenta .ant-tooltip-arrow-content::before {
191
+ background: #eb2f96;
177
192
  }
178
193
  .ant-tooltip-red .ant-tooltip-inner {
179
194
  background-color: #f5222d;
180
195
  }
181
- .ant-tooltip-red .ant-tooltip-arrow-content {
182
- background-color: #f5222d;
196
+ .ant-tooltip-red .ant-tooltip-arrow-content::before {
197
+ background: #f5222d;
183
198
  }
184
199
  .ant-tooltip-volcano .ant-tooltip-inner {
185
200
  background-color: #fa541c;
186
201
  }
187
- .ant-tooltip-volcano .ant-tooltip-arrow-content {
188
- background-color: #fa541c;
202
+ .ant-tooltip-volcano .ant-tooltip-arrow-content::before {
203
+ background: #fa541c;
189
204
  }
190
205
  .ant-tooltip-orange .ant-tooltip-inner {
191
206
  background-color: #fa8c16;
192
207
  }
193
- .ant-tooltip-orange .ant-tooltip-arrow-content {
194
- background-color: #fa8c16;
208
+ .ant-tooltip-orange .ant-tooltip-arrow-content::before {
209
+ background: #fa8c16;
195
210
  }
196
211
  .ant-tooltip-yellow .ant-tooltip-inner {
197
212
  background-color: #fadb14;
198
213
  }
199
- .ant-tooltip-yellow .ant-tooltip-arrow-content {
200
- background-color: #fadb14;
214
+ .ant-tooltip-yellow .ant-tooltip-arrow-content::before {
215
+ background: #fadb14;
201
216
  }
202
217
  .ant-tooltip-gold .ant-tooltip-inner {
203
218
  background-color: #faad14;
204
219
  }
205
- .ant-tooltip-gold .ant-tooltip-arrow-content {
206
- background-color: #faad14;
220
+ .ant-tooltip-gold .ant-tooltip-arrow-content::before {
221
+ background: #faad14;
207
222
  }
208
223
  .ant-tooltip-cyan .ant-tooltip-inner {
209
224
  background-color: #13c2c2;
210
225
  }
211
- .ant-tooltip-cyan .ant-tooltip-arrow-content {
212
- background-color: #13c2c2;
226
+ .ant-tooltip-cyan .ant-tooltip-arrow-content::before {
227
+ background: #13c2c2;
213
228
  }
214
229
  .ant-tooltip-lime .ant-tooltip-inner {
215
230
  background-color: #a0d911;
216
231
  }
217
- .ant-tooltip-lime .ant-tooltip-arrow-content {
218
- background-color: #a0d911;
232
+ .ant-tooltip-lime .ant-tooltip-arrow-content::before {
233
+ background: #a0d911;
219
234
  }
220
235
  .ant-tooltip-green .ant-tooltip-inner {
221
236
  background-color: #52c41a;
222
237
  }
223
- .ant-tooltip-green .ant-tooltip-arrow-content {
224
- background-color: #52c41a;
238
+ .ant-tooltip-green .ant-tooltip-arrow-content::before {
239
+ background: #52c41a;
225
240
  }
226
241
  .ant-tooltip-blue .ant-tooltip-inner {
227
242
  background-color: #1890ff;
228
243
  }
229
- .ant-tooltip-blue .ant-tooltip-arrow-content {
230
- background-color: #1890ff;
244
+ .ant-tooltip-blue .ant-tooltip-arrow-content::before {
245
+ background: #1890ff;
231
246
  }
232
247
  .ant-tooltip-geekblue .ant-tooltip-inner {
233
248
  background-color: #2f54eb;
234
249
  }
235
- .ant-tooltip-geekblue .ant-tooltip-arrow-content {
236
- background-color: #2f54eb;
250
+ .ant-tooltip-geekblue .ant-tooltip-arrow-content::before {
251
+ background: #2f54eb;
237
252
  }
238
253
  .ant-tooltip-purple .ant-tooltip-inner {
239
254
  background-color: #722ed1;
240
255
  }
241
- .ant-tooltip-purple .ant-tooltip-arrow-content {
242
- background-color: #722ed1;
256
+ .ant-tooltip-purple .ant-tooltip-arrow-content::before {
257
+ background: #722ed1;
243
258
  }
244
259
  .ant-tooltip-rtl {
245
260
  direction: rtl;
@@ -19,8 +19,8 @@ var extractSpansOfClasses_1 = __importDefault(require("./extractSpansOfClasses")
19
19
  var HighlighedContents = function HighlighedContents(_a) {
20
20
  var value = _a.value,
21
21
  highlight = _a.highlight;
22
- var ranges = getRanges_1["default"](value, highlight);
23
- var parts = extractSpansOfClasses_1["default"](value, ranges);
22
+ var ranges = (0, getRanges_1["default"])(value, highlight);
23
+ var parts = (0, extractSpansOfClasses_1["default"])(value, ranges);
24
24
  return react_1["default"].createElement(react_1["default"].Fragment, null, parts.map(function (part) {
25
25
  return part.render();
26
26
  }));
@@ -27,12 +27,14 @@ var __read = this && this.__read || function (o, n) {
27
27
  return ar;
28
28
  };
29
29
 
30
- var __spread = this && this.__spread || function () {
31
- for (var ar = [], i = 0; i < arguments.length; i++) {
32
- ar = ar.concat(__read(arguments[i]));
30
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
31
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
32
+ if (ar || !(i in from)) {
33
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
34
+ ar[i] = from[i];
35
+ }
33
36
  }
34
-
35
- return ar;
37
+ return to.concat(ar || Array.prototype.slice.call(from));
36
38
  };
37
39
 
38
40
  var __importDefault = this && this.__importDefault || function (mod) {
@@ -77,14 +79,14 @@ function () {
77
79
  this.endIndex = beginIndex2;
78
80
  var right = new Span(rightText, beginIndex2);
79
81
  right.isMark = this.isMark;
80
- right.markClasses = new Set(__spread(this.markClasses));
82
+ right.markClasses = new Set(__spreadArray([], __read(this.markClasses), false));
81
83
  return right;
82
84
  };
83
85
 
84
86
  Object.defineProperty(Span.prototype, "className", {
85
87
  get: function get() {
86
88
  if (this.markClasses && this.markClasses.size > 0) {
87
- return __spread(this.markClasses).sort().join(' ');
89
+ return __spreadArray([], __read(this.markClasses), false).sort().join(' ');
88
90
  }
89
91
 
90
92
  return '';
@@ -27,12 +27,14 @@ var __read = this && this.__read || function (o, n) {
27
27
  return ar;
28
28
  };
29
29
 
30
- var __spread = this && this.__spread || function () {
31
- for (var ar = [], i = 0; i < arguments.length; i++) {
32
- ar = ar.concat(__read(arguments[i]));
30
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
31
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
32
+ if (ar || !(i in from)) {
33
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
34
+ ar[i] = from[i];
35
+ }
33
36
  }
34
-
35
- return ar;
37
+ return to.concat(ar || Array.prototype.slice.call(from));
36
38
  };
37
39
 
38
40
  var __importDefault = this && this.__importDefault || function (mod) {
@@ -53,7 +55,7 @@ Object.defineProperty(exports, "__esModule", {
53
55
  var getType_1 = __importDefault(require("./getType"));
54
56
 
55
57
  function getRanges(input, highlight) {
56
- var type = getType_1["default"](highlight);
58
+ var type = (0, getType_1["default"])(highlight);
57
59
 
58
60
  switch (type) {
59
61
  case 'array':
@@ -138,14 +140,14 @@ function getRangeRanges(range) {
138
140
  function getCustomRanges(input, custom) {
139
141
  var ranges = getRanges(input, custom.highlight);
140
142
 
141
- var resultRangesData = __spread(ranges);
143
+ var resultRangesData = __spreadArray([], __read(ranges), false);
142
144
 
143
145
  if (custom.className) {
144
146
  resultRangesData.forEach(function (range) {
145
147
  var rangeOption = range[2] || {};
146
148
 
147
149
  if (rangeOption.className) {
148
- rangeOption.className = custom.className + " " + rangeOption.className;
150
+ rangeOption.className = "".concat(custom.className, " ").concat(rangeOption.className);
149
151
  } else {
150
152
  rangeOption.className = custom.className;
151
153
  }
@@ -18,12 +18,18 @@ var __assign = this && this.__assign || function () {
18
18
 
19
19
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
20
20
  if (k2 === undefined) k2 = k;
21
- Object.defineProperty(o, k2, {
22
- enumerable: true,
23
- get: function get() {
24
- return m[k];
25
- }
26
- });
21
+ var desc = Object.getOwnPropertyDescriptor(m, k);
22
+
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return m[k];
28
+ }
29
+ };
30
+ }
31
+
32
+ Object.defineProperty(o, k2, desc);
27
33
  } : function (o, m, k, k2) {
28
34
  if (k2 === undefined) k2 = k;
29
35
  o[k2] = m[k];
@@ -42,7 +48,7 @@ var __importStar = this && this.__importStar || function (mod) {
42
48
  if (mod && mod.__esModule) return mod;
43
49
  var result = {};
44
50
  if (mod != null) for (var k in mod) {
45
- if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
51
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
46
52
  }
47
53
 
48
54
  __setModuleDefault(result, mod);
@@ -134,17 +140,17 @@ var HighlightWithinTextarea = React.forwardRef(function (props, ref) {
134
140
 
135
141
  if (backdropRef.current && textareaDom) {
136
142
  backdropRef.current.scrollLeft = textareaDom.scrollLeft;
137
- backdropRef.current.style.height = textareaDom.clientHeight + textareaDom.scrollTop + "px";
138
- backdropRef.current.style.top = 0 - textareaDom.scrollTop + "px";
143
+ backdropRef.current.style.height = "".concat(textareaDom.clientHeight + textareaDom.scrollTop, "px");
144
+ backdropRef.current.style.top = "".concat(0 - textareaDom.scrollTop, "px");
139
145
  }
140
146
  };
141
147
 
142
- useMount_1["default"](function () {
148
+ (0, useMount_1["default"])(function () {
143
149
  handleScroll();
144
150
  });
145
151
 
146
152
  var onTextareaChange = function onTextareaChange(e) {
147
- var newValue = trimStart_1["default"](e.target.value);
153
+ var newValue = (0, trimStart_1["default"])(e.target.value);
148
154
 
149
155
  if (onChange) {
150
156
  onChange(newValue, e);
@@ -153,9 +159,9 @@ var HighlightWithinTextarea = React.forwardRef(function (props, ref) {
153
159
  }
154
160
  };
155
161
 
156
- var textareaCls = classnames_1["default"](prefixCls + "-input", 'highlight-textarea-input', 'highlight-content', textAreaClassName);
162
+ var textareaCls = (0, classnames_1["default"])("".concat(prefixCls, "-input"), 'highlight-textarea-input', 'highlight-content', textAreaClassName);
157
163
  return React.createElement("div", {
158
- className: classnames_1["default"]('highlight-textarea', className),
164
+ className: (0, classnames_1["default"])('highlight-textarea', className),
159
165
  ref: function ref(node) {
160
166
  containerRef.current = node;
161
167
  }