assui 2.0.147 → 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 (102) 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/style/index.css +1784 -0
  16. package/es/label-customize-range-picker/style/index.less +1 -1
  17. package/es/label-date-picker/index.js +1 -1
  18. package/es/label-date-picker/style/index.css +1784 -0
  19. package/es/label-date-picker/style/index.less +1 -1
  20. package/es/label-number-input/index.js +1 -1
  21. package/es/label-range-picker/style/index.css +1784 -0
  22. package/es/label-range-picker/style/index.less +1 -1
  23. package/es/label-select/style/index.css +1784 -0
  24. package/es/label-select/style/index.less +1 -1
  25. package/es/label-tree-select/style/index.css +1784 -0
  26. package/es/label-tree-select/style/index.less +1 -1
  27. package/es/number-input/index.js +4 -4
  28. package/es/number-input/utils.js +1 -1
  29. package/es/rich-text-editor/style/index.css +6 -5
  30. package/es/single-img-upload/index.js +1 -1
  31. package/es/single-img-upload/style/index.css +1784 -0
  32. package/es/single-img-upload/style/index.less +1 -1
  33. package/es/step-number-input/index.js +8 -8
  34. package/es/step-number-input/style/index.css +1784 -0
  35. package/es/step-number-input/style/index.less +1 -1
  36. package/es/text-input/index.js +8 -6
  37. package/es/text-input/style/index.css +169 -41
  38. package/lib/beautiful-dnd/index.js +13 -7
  39. package/lib/button-drawer/index.d.ts +1 -1
  40. package/lib/button-drawer/index.js +18 -12
  41. package/lib/button-modal/index.d.ts +1 -1
  42. package/lib/button-modal/index.js +14 -8
  43. package/lib/condition-input/index.js +17 -11
  44. package/lib/condition-input/parse2RegexOption.js +3 -3
  45. package/lib/copy-to-clipboard/index.js +15 -9
  46. package/lib/copy-to-clipboard/style/index.css +58 -43
  47. package/lib/highlight-textarea/HighlighedContents.js +2 -2
  48. package/lib/highlight-textarea/extractSpansOfClasses.js +9 -7
  49. package/lib/highlight-textarea/getRanges.js +10 -8
  50. package/lib/highlight-textarea/index.js +19 -13
  51. package/lib/highlight-textarea/style/index.css +169 -41
  52. package/lib/img-crop/EasyCrop.js +13 -7
  53. package/lib/img-crop/index.js +21 -15
  54. package/lib/img-crop/style/index.css +1784 -0
  55. package/lib/img-crop/style/index.less +1 -1
  56. package/lib/index.js +38 -31
  57. package/lib/keep-tab/index.js +17 -11
  58. package/lib/keep-tab/style/index.css +40 -23
  59. package/lib/label-auto-complete/index.js +5 -5
  60. package/lib/label-auto-complete/style/index.css +1784 -0
  61. package/lib/label-auto-complete/style/index.less +1 -1
  62. package/lib/label-condition-input/index.js +5 -5
  63. package/lib/label-customize-range-picker/defaultRadioList.js +1 -1
  64. package/lib/label-customize-range-picker/index.js +17 -11
  65. package/lib/label-customize-range-picker/style/index.css +1784 -0
  66. package/lib/label-customize-range-picker/style/index.less +1 -1
  67. package/lib/label-date-picker/index.js +5 -5
  68. package/lib/label-date-picker/style/index.css +1784 -0
  69. package/lib/label-date-picker/style/index.less +1 -1
  70. package/lib/label-input/index.js +5 -5
  71. package/lib/label-number-input/index.js +6 -6
  72. package/lib/label-range-picker/index.js +3 -3
  73. package/lib/label-range-picker/style/index.css +1784 -0
  74. package/lib/label-range-picker/style/index.less +1 -1
  75. package/lib/label-select/index.js +5 -5
  76. package/lib/label-select/style/index.css +1784 -0
  77. package/lib/label-select/style/index.less +1 -1
  78. package/lib/label-text-area/index.js +4 -4
  79. package/lib/label-tree-select/index.js +4 -4
  80. package/lib/label-tree-select/style/index.css +1784 -0
  81. package/lib/label-tree-select/style/index.less +1 -1
  82. package/lib/number-input/index.js +21 -15
  83. package/lib/number-input/utils.js +8 -4
  84. package/lib/rc-echart/core.js +21 -15
  85. package/lib/rc-echart/index.js +13 -7
  86. package/lib/rc-qrcode/index.js +14 -8
  87. package/lib/rc-qrcode/useQrcode.js +4 -3
  88. package/lib/rc-transition-group/index.js +13 -7
  89. package/lib/rich-text-editor/index.js +1 -1
  90. package/lib/rich-text-editor/style/index.css +6 -5
  91. package/lib/single-img-upload/index.js +18 -12
  92. package/lib/single-img-upload/style/index.css +1784 -0
  93. package/lib/single-img-upload/style/index.less +1 -1
  94. package/lib/sortable-hoc/index.js +13 -7
  95. package/lib/split-pane/index.js +13 -7
  96. package/lib/step-number-input/index.js +32 -26
  97. package/lib/step-number-input/style/index.css +1784 -0
  98. package/lib/step-number-input/style/index.less +1 -1
  99. package/lib/text-area/index.js +14 -8
  100. package/lib/text-input/index.js +8 -6
  101. package/lib/text-input/style/index.css +169 -41
  102. package/package.json +4 -3
@@ -1,4 +1,4 @@
1
- @import '~antd/lib/style/themes/index';
1
+ @import '~antd/lib/style/index.less';
2
2
 
3
3
  @progress-prefix-cls: ~'@{ant-prefix}';
4
4
 
@@ -54,12 +54,14 @@ var __read = this && this.__read || function (o, n) {
54
54
  return ar;
55
55
  };
56
56
 
57
- var __spread = this && this.__spread || function () {
58
- for (var ar = [], i = 0; i < arguments.length; i++) {
59
- ar = ar.concat(__read(arguments[i]));
57
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
58
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
59
+ if (ar || !(i in from)) {
60
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
61
+ ar[i] = from[i];
62
+ }
60
63
  }
61
-
62
- return ar;
64
+ return to.concat(ar || Array.prototype.slice.call(from));
63
65
  };
64
66
 
65
67
  import React from 'react';
@@ -74,7 +76,7 @@ var TextInput = function TextInput(props) {
74
76
  var resultRegexp = trimStartReg;
75
77
 
76
78
  if (regexp) {
77
- resultRegexp = isArray(regexp) ? __spread([trimStartReg], regexp) : [trimStartReg, regexp];
79
+ resultRegexp = isArray(regexp) ? __spreadArray([trimStartReg], __read(regexp), false) : [trimStartReg, regexp];
78
80
  }
79
81
 
80
82
  return /*#__PURE__*/React.createElement(ConditionInput, __assign({}, restProps, {
@@ -16,6 +16,7 @@
16
16
  border: 1px solid #d9d9d9;
17
17
  border-radius: 2px;
18
18
  transition: all 0.3s;
19
+ /* stylelint-disable-next-line selector-no-vendor-prefix */
19
20
  display: inline-flex;
20
21
  }
21
22
  .ant-input-affix-wrapper::-moz-placeholder {
@@ -23,9 +24,15 @@
23
24
  }
24
25
  .ant-input-affix-wrapper:-ms-input-placeholder {
25
26
  color: #bfbfbf;
27
+ -ms-user-select: none;
28
+ user-select: none;
26
29
  }
27
30
  .ant-input-affix-wrapper::placeholder {
28
31
  color: #bfbfbf;
32
+ -webkit-user-select: none;
33
+ -moz-user-select: none;
34
+ -ms-user-select: none;
35
+ user-select: none;
29
36
  }
30
37
  .ant-input-affix-wrapper:-moz-placeholder-shown {
31
38
  text-overflow: ellipsis;
@@ -38,7 +45,7 @@
38
45
  }
39
46
  .ant-input-affix-wrapper:hover {
40
47
  border-color: #40a9ff;
41
- border-right-width: 1px !important;
48
+ border-right-width: 1px;
42
49
  }
43
50
  .ant-input-rtl .ant-input-affix-wrapper:hover {
44
51
  border-right-width: 0;
@@ -47,9 +54,9 @@
47
54
  .ant-input-affix-wrapper:focus,
48
55
  .ant-input-affix-wrapper-focused {
49
56
  border-color: #40a9ff;
50
- border-right-width: 1px !important;
51
- outline: 0;
52
57
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
58
+ border-right-width: 1px;
59
+ outline: 0;
53
60
  }
54
61
  .ant-input-rtl .ant-input-affix-wrapper:focus,
55
62
  .ant-input-rtl .ant-input-affix-wrapper-focused {
@@ -59,29 +66,33 @@
59
66
  .ant-input-affix-wrapper-disabled {
60
67
  color: rgba(0, 0, 0, 0.25);
61
68
  background-color: #f5f5f5;
69
+ border-color: #d9d9d9;
70
+ box-shadow: none;
62
71
  cursor: not-allowed;
63
72
  opacity: 1;
64
73
  }
65
74
  .ant-input-affix-wrapper-disabled:hover {
66
75
  border-color: #d9d9d9;
67
- border-right-width: 1px !important;
76
+ border-right-width: 1px;
68
77
  }
69
78
  .ant-input-affix-wrapper[disabled] {
70
79
  color: rgba(0, 0, 0, 0.25);
71
80
  background-color: #f5f5f5;
81
+ border-color: #d9d9d9;
82
+ box-shadow: none;
72
83
  cursor: not-allowed;
73
84
  opacity: 1;
74
85
  }
75
86
  .ant-input-affix-wrapper[disabled]:hover {
76
87
  border-color: #d9d9d9;
77
- border-right-width: 1px !important;
78
- }
79
- .ant-input-affix-wrapper.ant-input-affix-wrapper-borderless,
80
- .ant-input-affix-wrapper.ant-input-affix-wrapper-borderless:hover,
81
- .ant-input-affix-wrapper.ant-input-affix-wrapper-borderless:focus,
82
- .ant-input-affix-wrapper.ant-input-affix-wrapper-borderless-focused,
83
- .ant-input-affix-wrapper.ant-input-affix-wrapper-borderless-disabled,
84
- .ant-input-affix-wrapper.ant-input-affix-wrapper-borderless[disabled] {
88
+ border-right-width: 1px;
89
+ }
90
+ .ant-input-affix-wrapper-borderless,
91
+ .ant-input-affix-wrapper-borderless:hover,
92
+ .ant-input-affix-wrapper-borderless:focus,
93
+ .ant-input-affix-wrapper-borderless-focused,
94
+ .ant-input-affix-wrapper-borderless-disabled,
95
+ .ant-input-affix-wrapper-borderless[disabled] {
85
96
  background-color: transparent;
86
97
  border: none;
87
98
  box-shadow: none;
@@ -106,7 +117,7 @@ textarea.ant-input-affix-wrapper {
106
117
  }
107
118
  .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
108
119
  border-color: #40a9ff;
109
- border-right-width: 1px !important;
120
+ border-right-width: 1px;
110
121
  z-index: 1;
111
122
  }
112
123
  .ant-input-rtl .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
@@ -142,31 +153,46 @@ textarea.ant-input-affix-wrapper {
142
153
  flex: none;
143
154
  align-items: center;
144
155
  }
156
+ .ant-input-prefix > *:not(:last-child),
157
+ .ant-input-suffix > *:not(:last-child) {
158
+ margin-right: 8px;
159
+ }
160
+ .ant-input-show-count-suffix {
161
+ color: rgba(0, 0, 0, 0.45);
162
+ }
163
+ .ant-input-show-count-has-suffix {
164
+ margin-right: 2px;
165
+ }
145
166
  .ant-input-prefix {
146
167
  margin-right: 4px;
147
168
  }
148
169
  .ant-input-suffix {
149
170
  margin-left: 4px;
150
171
  }
151
- .anticon.ant-input-clear-icon {
152
- margin: 0 4px;
172
+ .anticon.ant-input-clear-icon,
173
+ .ant-input-clear-icon {
174
+ margin: 0;
153
175
  color: rgba(0, 0, 0, 0.25);
154
176
  font-size: 12px;
155
177
  vertical-align: -1px;
156
178
  cursor: pointer;
157
179
  transition: color 0.3s;
158
180
  }
159
- .anticon.ant-input-clear-icon:hover {
181
+ .anticon.ant-input-clear-icon:hover,
182
+ .ant-input-clear-icon:hover {
160
183
  color: rgba(0, 0, 0, 0.45);
161
184
  }
162
- .anticon.ant-input-clear-icon:active {
185
+ .anticon.ant-input-clear-icon:active,
186
+ .ant-input-clear-icon:active {
163
187
  color: rgba(0, 0, 0, 0.85);
164
188
  }
165
- .anticon.ant-input-clear-icon-hidden {
189
+ .anticon.ant-input-clear-icon-hidden,
190
+ .ant-input-clear-icon-hidden {
166
191
  visibility: hidden;
167
192
  }
168
- .anticon.ant-input-clear-icon:last-child {
169
- margin-right: 0;
193
+ .anticon.ant-input-clear-icon-has-suffix,
194
+ .ant-input-clear-icon-has-suffix {
195
+ margin: 0 4px;
170
196
  }
171
197
  .ant-input-affix-wrapper-textarea-with-clear-btn {
172
198
  padding: 0 !important;
@@ -178,6 +204,80 @@ textarea.ant-input-affix-wrapper {
178
204
  right: 8px;
179
205
  z-index: 1;
180
206
  }
207
+ .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,
208
+ .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {
209
+ background: #fff;
210
+ border-color: #ff4d4f;
211
+ }
212
+ .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus,
213
+ .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {
214
+ border-color: #ff7875;
215
+ box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
216
+ border-right-width: 1px;
217
+ outline: 0;
218
+ }
219
+ .ant-input-status-error .ant-input-prefix {
220
+ color: #ff4d4f;
221
+ }
222
+ .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,
223
+ .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {
224
+ background: #fff;
225
+ border-color: #faad14;
226
+ }
227
+ .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus,
228
+ .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {
229
+ border-color: #ffc53d;
230
+ box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
231
+ border-right-width: 1px;
232
+ outline: 0;
233
+ }
234
+ .ant-input-status-warning .ant-input-prefix {
235
+ color: #faad14;
236
+ }
237
+ .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,
238
+ .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {
239
+ background: #fff;
240
+ border-color: #ff4d4f;
241
+ }
242
+ .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus,
243
+ .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {
244
+ border-color: #ff7875;
245
+ box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
246
+ border-right-width: 1px;
247
+ outline: 0;
248
+ }
249
+ .ant-input-affix-wrapper-status-error .ant-input-prefix {
250
+ color: #ff4d4f;
251
+ }
252
+ .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,
253
+ .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {
254
+ background: #fff;
255
+ border-color: #faad14;
256
+ }
257
+ .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus,
258
+ .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {
259
+ border-color: #ffc53d;
260
+ box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
261
+ border-right-width: 1px;
262
+ outline: 0;
263
+ }
264
+ .ant-input-affix-wrapper-status-warning .ant-input-prefix {
265
+ color: #faad14;
266
+ }
267
+ .ant-input-textarea-status-error.ant-input-textarea-has-feedback .ant-input,
268
+ .ant-input-textarea-status-warning.ant-input-textarea-has-feedback .ant-input,
269
+ .ant-input-textarea-status-success.ant-input-textarea-has-feedback .ant-input,
270
+ .ant-input-textarea-status-validating.ant-input-textarea-has-feedback .ant-input {
271
+ padding-right: 24px;
272
+ }
273
+ .ant-input-group-wrapper-status-error .ant-input-group-addon {
274
+ color: #ff4d4f;
275
+ border-color: #ff4d4f;
276
+ }
277
+ .ant-input-group-wrapper-status-warning .ant-input-group-addon {
278
+ color: #faad14;
279
+ border-color: #faad14;
280
+ }
181
281
  .ant-input {
182
282
  box-sizing: border-box;
183
283
  margin: 0;
@@ -198,15 +298,22 @@ textarea.ant-input-affix-wrapper {
198
298
  border: 1px solid #d9d9d9;
199
299
  border-radius: 2px;
200
300
  transition: all 0.3s;
301
+ /* stylelint-disable-next-line selector-no-vendor-prefix */
201
302
  }
202
303
  .ant-input::-moz-placeholder {
203
304
  opacity: 1;
204
305
  }
205
306
  .ant-input:-ms-input-placeholder {
206
307
  color: #bfbfbf;
308
+ -ms-user-select: none;
309
+ user-select: none;
207
310
  }
208
311
  .ant-input::placeholder {
209
312
  color: #bfbfbf;
313
+ -webkit-user-select: none;
314
+ -moz-user-select: none;
315
+ -ms-user-select: none;
316
+ user-select: none;
210
317
  }
211
318
  .ant-input:-moz-placeholder-shown {
212
319
  text-overflow: ellipsis;
@@ -219,7 +326,7 @@ textarea.ant-input-affix-wrapper {
219
326
  }
220
327
  .ant-input:hover {
221
328
  border-color: #40a9ff;
222
- border-right-width: 1px !important;
329
+ border-right-width: 1px;
223
330
  }
224
331
  .ant-input-rtl .ant-input:hover {
225
332
  border-right-width: 0;
@@ -228,9 +335,9 @@ textarea.ant-input-affix-wrapper {
228
335
  .ant-input:focus,
229
336
  .ant-input-focused {
230
337
  border-color: #40a9ff;
231
- border-right-width: 1px !important;
232
- outline: 0;
233
338
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
339
+ border-right-width: 1px;
340
+ outline: 0;
234
341
  }
235
342
  .ant-input-rtl .ant-input:focus,
236
343
  .ant-input-rtl .ant-input-focused {
@@ -240,29 +347,33 @@ textarea.ant-input-affix-wrapper {
240
347
  .ant-input-disabled {
241
348
  color: rgba(0, 0, 0, 0.25);
242
349
  background-color: #f5f5f5;
350
+ border-color: #d9d9d9;
351
+ box-shadow: none;
243
352
  cursor: not-allowed;
244
353
  opacity: 1;
245
354
  }
246
355
  .ant-input-disabled:hover {
247
356
  border-color: #d9d9d9;
248
- border-right-width: 1px !important;
357
+ border-right-width: 1px;
249
358
  }
250
359
  .ant-input[disabled] {
251
360
  color: rgba(0, 0, 0, 0.25);
252
361
  background-color: #f5f5f5;
362
+ border-color: #d9d9d9;
363
+ box-shadow: none;
253
364
  cursor: not-allowed;
254
365
  opacity: 1;
255
366
  }
256
367
  .ant-input[disabled]:hover {
257
368
  border-color: #d9d9d9;
258
- border-right-width: 1px !important;
259
- }
260
- .ant-input.ant-input-borderless,
261
- .ant-input.ant-input-borderless:hover,
262
- .ant-input.ant-input-borderless:focus,
263
- .ant-input.ant-input-borderless-focused,
264
- .ant-input.ant-input-borderless-disabled,
265
- .ant-input.ant-input-borderless[disabled] {
369
+ border-right-width: 1px;
370
+ }
371
+ .ant-input-borderless,
372
+ .ant-input-borderless:hover,
373
+ .ant-input-borderless:focus,
374
+ .ant-input-borderless-focused,
375
+ .ant-input-borderless-disabled,
376
+ .ant-input-borderless[disabled] {
266
377
  background-color: transparent;
267
378
  border: none;
268
379
  box-shadow: none;
@@ -430,10 +541,6 @@ textarea.ant-input {
430
541
  .ant-input-group-sm .ant-select-single .ant-select-selector {
431
542
  height: 24px;
432
543
  }
433
- .ant-input-group .ant-input-affix-wrapper:not(:first-child) {
434
- border-top-left-radius: 0;
435
- border-bottom-left-radius: 0;
436
- }
437
544
  .ant-input-group .ant-input-affix-wrapper:not(:last-child) {
438
545
  border-top-right-radius: 0;
439
546
  border-bottom-right-radius: 0;
@@ -442,6 +549,11 @@ textarea.ant-input {
442
549
  border-top-left-radius: 2px;
443
550
  border-bottom-left-radius: 2px;
444
551
  }
552
+ .ant-input-group .ant-input-affix-wrapper:not(:first-child),
553
+ .ant-input-search .ant-input-group .ant-input-affix-wrapper:not(:first-child) {
554
+ border-top-left-radius: 0;
555
+ border-bottom-left-radius: 0;
556
+ }
445
557
  .ant-input-group.ant-input-group-compact {
446
558
  display: block;
447
559
  }
@@ -597,12 +709,12 @@ textarea.ant-input {
597
709
  text-align: start;
598
710
  vertical-align: top;
599
711
  }
600
- .ant-input-password-icon {
712
+ .ant-input-password-icon.anticon {
601
713
  color: rgba(0, 0, 0, 0.45);
602
714
  cursor: pointer;
603
715
  transition: all 0.3s;
604
716
  }
605
- .ant-input-password-icon:hover {
717
+ .ant-input-password-icon.anticon:hover {
606
718
  color: rgba(0, 0, 0, 0.85);
607
719
  }
608
720
  .ant-input[type='color'] {
@@ -616,6 +728,9 @@ textarea.ant-input {
616
728
  padding-top: 3px;
617
729
  padding-bottom: 3px;
618
730
  }
731
+ .ant-input-textarea-show-count > .ant-input {
732
+ height: 100%;
733
+ }
619
734
  .ant-input-textarea-show-count::after {
620
735
  float: right;
621
736
  color: rgba(0, 0, 0, 0.45);
@@ -623,6 +738,19 @@ textarea.ant-input {
623
738
  content: attr(data-count);
624
739
  pointer-events: none;
625
740
  }
741
+ .ant-input-textarea-show-count.ant-input-textarea-in-form-item::after {
742
+ margin-bottom: -22px;
743
+ }
744
+ .ant-input-textarea-suffix {
745
+ position: absolute;
746
+ top: 0;
747
+ right: 11px;
748
+ bottom: 0;
749
+ z-index: 1;
750
+ display: inline-flex;
751
+ align-items: center;
752
+ margin: auto;
753
+ }
626
754
  .ant-input-search .ant-input:hover,
627
755
  .ant-input-search .ant-input:focus {
628
756
  border-color: #40a9ff;
@@ -691,9 +819,9 @@ textarea.ant-input {
691
819
  .ant-input-textarea-rtl.ant-input-textarea-show-count::after {
692
820
  text-align: left;
693
821
  }
694
- .ant-input-affix-wrapper-rtl .ant-input-clear-icon:last-child {
695
- margin-right: 4px;
696
- margin-left: 0;
822
+ .ant-input-affix-wrapper-rtl .ant-input-clear-icon-has-suffix {
823
+ margin-right: 0;
824
+ margin-left: 4px;
697
825
  }
698
826
  .ant-input-affix-wrapper-rtl .ant-input-clear-icon {
699
827
  right: auto;
@@ -2,12 +2,18 @@
2
2
 
3
3
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
4
4
  if (k2 === undefined) k2 = k;
5
- Object.defineProperty(o, k2, {
6
- enumerable: true,
7
- get: function get() {
8
- return m[k];
9
- }
10
- });
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return m[k];
12
+ }
13
+ };
14
+ }
15
+
16
+ Object.defineProperty(o, k2, desc);
11
17
  } : function (o, m, k, k2) {
12
18
  if (k2 === undefined) k2 = k;
13
19
  o[k2] = m[k];
@@ -26,7 +32,7 @@ var __importStar = this && this.__importStar || function (mod) {
26
32
  if (mod && mod.__esModule) return mod;
27
33
  var result = {};
28
34
  if (mod != null) for (var k in mod) {
29
- if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
35
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
36
  }
31
37
 
32
38
  __setModuleDefault(result, mod);
@@ -4,7 +4,7 @@ export declare type DrawerAction = {
4
4
  close: () => void;
5
5
  open: () => void;
6
6
  };
7
- export interface ButtonDrawerProps extends DrawerProps {
7
+ export interface ButtonDrawerProps extends Omit<DrawerProps, 'children'> {
8
8
  onClose?: () => void;
9
9
  onOpen?: () => void;
10
10
  trigger: React.ReactElement;
@@ -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);
@@ -109,7 +115,7 @@ var isFunction_1 = __importDefault(require("lodash/isFunction"));
109
115
  var classnames_1 = __importDefault(require("classnames"));
110
116
 
111
117
  var ButtonDrawer = function ButtonDrawer(props, ref) {
112
- var _a = __read(react_1.useState(false), 2),
118
+ var _a = __read((0, react_1.useState)(false), 2),
113
119
  drawerVisible = _a[0],
114
120
  setDrawerVisible = _a[1];
115
121
 
@@ -137,7 +143,7 @@ var ButtonDrawer = function ButtonDrawer(props, ref) {
137
143
  setDrawerVisible(true);
138
144
  };
139
145
 
140
- var actionRef = react_1.useRef({
146
+ var actionRef = (0, react_1.useRef)({
141
147
  close: function close() {
142
148
  closeDrawer();
143
149
  },
@@ -145,7 +151,7 @@ var ButtonDrawer = function ButtonDrawer(props, ref) {
145
151
  openDrawer();
146
152
  }
147
153
  });
148
- react_1.useImperativeHandle(ref, function () {
154
+ (0, react_1.useImperativeHandle)(ref, function () {
149
155
  return actionRef.current;
150
156
  });
151
157
  var buttonNode = trigger && react_1["default"].cloneElement(trigger, {
@@ -153,11 +159,11 @@ var ButtonDrawer = function ButtonDrawer(props, ref) {
153
159
  });
154
160
  return react_1["default"].createElement(react_1["default"].Fragment, null, buttonNode, react_1["default"].createElement(drawer_1["default"], __assign({
155
161
  maskClosable: false,
156
- className: classnames_1["default"]('button-drawer', className),
162
+ className: (0, classnames_1["default"])('button-drawer', className),
157
163
  title: title,
158
164
  onClose: closeDrawer,
159
165
  visible: drawerVisible
160
- }, restProps), isFunction_1["default"](children) ? children(actionRef.current) : react_1["default"].cloneElement(children, {
166
+ }, restProps), (0, isFunction_1["default"])(children) ? children(actionRef.current) : react_1["default"].cloneElement(children, {
161
167
  drawerAction: actionRef.current
162
168
  })));
163
169
  };
@@ -4,7 +4,7 @@ export interface ModalAction {
4
4
  open: () => void;
5
5
  close: () => void;
6
6
  }
7
- export interface ButtonModalProps extends ModalProps {
7
+ export interface ButtonModalProps extends Omit<ModalProps, 'children'> {
8
8
  onClose?: () => void;
9
9
  onOpen?: () => void;
10
10
  trigger?: React.ReactElement;
@@ -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);
@@ -169,7 +175,7 @@ var ButtonModal = function ButtonModal(props, ref) {
169
175
  onCancel: handleModalCancel,
170
176
  centered: true,
171
177
  maskClosable: false
172
- }, restModalProps), isFunction_1["default"](children) ? children(modalActionRef.current) : React.cloneElement(children, {
178
+ }, restModalProps), (0, isFunction_1["default"])(children) ? children(modalActionRef.current) : React.cloneElement(children, {
173
179
  modalAction: modalActionRef.current
174
180
  })));
175
181
  };
@@ -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);
@@ -113,7 +119,7 @@ var useControllableValue_1 = __importDefault(require("ahooks/lib/useControllable
113
119
  var parse2RegexOption_1 = __importDefault(require("./parse2RegexOption"));
114
120
 
115
121
  var ConditionInput = React.forwardRef(function (props, ref) {
116
- var _a = __read(useControllableValue_1["default"](props), 2),
122
+ var _a = __read((0, useControllableValue_1["default"])(props), 2),
117
123
  value = _a[0],
118
124
  setValue = _a[1];
119
125
 
@@ -127,9 +133,9 @@ var ConditionInput = React.forwardRef(function (props, ref) {
127
133
  var nextValue = originalValue;
128
134
 
129
135
  if (regexp) {
130
- var resultRegexp = isArray_1["default"](regexp) ? regexp : [regexp];
136
+ var resultRegexp = (0, isArray_1["default"])(regexp) ? regexp : [regexp];
131
137
  nextValue = resultRegexp.reduce(function (cur, acc) {
132
- var regexOption = parse2RegexOption_1["default"](acc);
138
+ var regexOption = (0, parse2RegexOption_1["default"])(acc);
133
139
 
134
140
  if (regexOption.isValid) {
135
141
  return cur.replace(regexOption.pattern, regexOption.replacement);
@@ -139,7 +145,7 @@ var ConditionInput = React.forwardRef(function (props, ref) {
139
145
  }, originalValue);
140
146
  }
141
147
 
142
- if (isFunction_1["default"](formatter)) {
148
+ if ((0, isFunction_1["default"])(formatter)) {
143
149
  nextValue = formatter(nextValue);
144
150
  }
145
151
 
@@ -48,15 +48,15 @@ var parseString2RegexOption = function parseString2RegexOption(regexString, opti
48
48
  };
49
49
 
50
50
  var parse2RegexOption = function parse2RegexOption(regex) {
51
- if (isRegExp_1["default"](regex)) {
51
+ if ((0, isRegExp_1["default"])(regex)) {
52
52
  return parseRegex2RegexOption(regex);
53
53
  }
54
54
 
55
- if (isString_1["default"](regex)) {
55
+ if ((0, isString_1["default"])(regex)) {
56
56
  return parseString2RegexOption(regex);
57
57
  }
58
58
 
59
- if (isObject_1["default"](regex)) {
59
+ if ((0, isObject_1["default"])(regex)) {
60
60
  return __assign(__assign(__assign({}, defaultOptionValues), {
61
61
  isValid: !!regex.pattern
62
62
  }), regex);