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
@@ -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
 
@@ -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);
@@ -120,7 +126,7 @@ var TextArea = function TextArea(_a) {
120
126
  var resultValue = isControl ? value : textValue;
121
127
 
122
128
  var handleChange = function handleChange(e) {
123
- var finallyValue = trimStart_1["default"](e.target.value);
129
+ var finallyValue = (0, trimStart_1["default"])(e.target.value);
124
130
 
125
131
  if (formatter) {
126
132
  finallyValue = formatter(finallyValue);
@@ -56,12 +56,14 @@ var __read = this && this.__read || function (o, n) {
56
56
  return ar;
57
57
  };
58
58
 
59
- var __spread = this && this.__spread || function () {
60
- for (var ar = [], i = 0; i < arguments.length; i++) {
61
- ar = ar.concat(__read(arguments[i]));
59
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
60
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
61
+ if (ar || !(i in from)) {
62
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
63
+ ar[i] = from[i];
64
+ }
62
65
  }
63
-
64
- return ar;
66
+ return to.concat(ar || Array.prototype.slice.call(from));
65
67
  };
66
68
 
67
69
  var __importDefault = this && this.__importDefault || function (mod) {
@@ -88,7 +90,7 @@ var TextInput = function TextInput(props) {
88
90
  var resultRegexp = trimStartReg;
89
91
 
90
92
  if (regexp) {
91
- resultRegexp = isArray_1["default"](regexp) ? __spread([trimStartReg], regexp) : [trimStartReg, regexp];
93
+ resultRegexp = (0, isArray_1["default"])(regexp) ? __spreadArray([trimStartReg], __read(regexp), false) : [trimStartReg, regexp];
92
94
  }
93
95
 
94
96
  return react_1["default"].createElement(condition_input_1["default"], __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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "2.0.145",
3
+ "version": "2.1.0",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -34,6 +34,7 @@
34
34
  "@tinymce/tinymce-react": "^3.13.0",
35
35
  "@types/react-beautiful-dnd": "^13.1.2",
36
36
  "a-icons": "^1.0.66",
37
+ "aa-utils": "^2.0.22",
37
38
  "ahooks": "^3.0.8",
38
39
  "bignumber.js": "^9.0.1",
39
40
  "copy-to-clipboard": "^3.3.1",
@@ -52,7 +53,7 @@
52
53
  },
53
54
  "peerDependencies": {
54
55
  "antd": "^4.16.11",
55
- "react": "^16.8.6 || ^17.0"
56
+ "react": "^16.8.6 || ^17.0 || ^18.0"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@types/enzyme": "^3.10.5",
@@ -69,5 +70,5 @@
69
70
  "node": ">=10.0.0"
70
71
  },
71
72
  "license": "MIT",
72
- "gitHead": "650d26e8bd8467abe88cc0a6b5cab915fa9cec17"
73
+ "gitHead": "76aa2a6fdc362545773656d731ba927cb2981609"
73
74
  }
@@ -1,45 +0,0 @@
1
- import moment from 'moment';
2
- export declare enum dateTypeEnum {
3
- TODAY = 1,
4
- YESTERDAY = 2,
5
- WEEK = 3,
6
- LAST_WEEK = 4,
7
- MONTH = 5,
8
- LAST_MONTH = 6,
9
- QUARTER = 7,
10
- LAST_QUARTER = 8,
11
- BEFORE_7_DAY = 9,
12
- BEFORE_14_DAY = 10,
13
- BEFORE_30_DAY = 11,
14
- BEFORE_90_DAY = 12,
15
- BEFORE_180_DAY = 13,
16
- BEFORE_365_DAY = 14,
17
- PAST_7_DAY = 15,
18
- FUTURE_7_DAY = 16,
19
- TOMORROW = 17
20
- }
21
- export declare const useDateScope: () => {
22
- dateScopeList: {
23
- key: dateTypeEnum;
24
- value: moment.Moment[];
25
- }[];
26
- dateScopeMap: {
27
- 1: moment.Moment[];
28
- 2: moment.Moment[];
29
- 3: moment.Moment[];
30
- 4: moment.Moment[];
31
- 5: moment.Moment[];
32
- 6: moment.Moment[];
33
- 7: moment.Moment[];
34
- 8: moment.Moment[];
35
- 9: moment.Moment[];
36
- 10: moment.Moment[];
37
- 11: moment.Moment[];
38
- 12: moment.Moment[];
39
- 13: moment.Moment[];
40
- 14: moment.Moment[];
41
- 15: moment.Moment[];
42
- 17: moment.Moment[];
43
- 16: moment.Moment[];
44
- };
45
- };
@@ -1,85 +0,0 @@
1
- import moment from 'moment';
2
- var now = moment();
3
- export var dateTypeEnum;
4
-
5
- (function (dateTypeEnum) {
6
- dateTypeEnum[dateTypeEnum["TODAY"] = 1] = "TODAY";
7
- dateTypeEnum[dateTypeEnum["YESTERDAY"] = 2] = "YESTERDAY";
8
- dateTypeEnum[dateTypeEnum["WEEK"] = 3] = "WEEK";
9
- dateTypeEnum[dateTypeEnum["LAST_WEEK"] = 4] = "LAST_WEEK";
10
- dateTypeEnum[dateTypeEnum["MONTH"] = 5] = "MONTH";
11
- dateTypeEnum[dateTypeEnum["LAST_MONTH"] = 6] = "LAST_MONTH";
12
- dateTypeEnum[dateTypeEnum["QUARTER"] = 7] = "QUARTER";
13
- dateTypeEnum[dateTypeEnum["LAST_QUARTER"] = 8] = "LAST_QUARTER";
14
- dateTypeEnum[dateTypeEnum["BEFORE_7_DAY"] = 9] = "BEFORE_7_DAY";
15
- dateTypeEnum[dateTypeEnum["BEFORE_14_DAY"] = 10] = "BEFORE_14_DAY";
16
- dateTypeEnum[dateTypeEnum["BEFORE_30_DAY"] = 11] = "BEFORE_30_DAY";
17
- dateTypeEnum[dateTypeEnum["BEFORE_90_DAY"] = 12] = "BEFORE_90_DAY";
18
- dateTypeEnum[dateTypeEnum["BEFORE_180_DAY"] = 13] = "BEFORE_180_DAY";
19
- dateTypeEnum[dateTypeEnum["BEFORE_365_DAY"] = 14] = "BEFORE_365_DAY";
20
- dateTypeEnum[dateTypeEnum["PAST_7_DAY"] = 15] = "PAST_7_DAY";
21
- dateTypeEnum[dateTypeEnum["FUTURE_7_DAY"] = 16] = "FUTURE_7_DAY";
22
- dateTypeEnum[dateTypeEnum["TOMORROW"] = 17] = "TOMORROW";
23
- })(dateTypeEnum || (dateTypeEnum = {}));
24
-
25
- export var useDateScope = function useDateScope() {
26
- var _a;
27
-
28
- var dateScopeList = [{
29
- key: dateTypeEnum.TODAY,
30
- value: [now, now]
31
- }, {
32
- key: dateTypeEnum.YESTERDAY,
33
- value: [now.clone().subtract(1, 'day'), now.clone().subtract(1, 'day').endOf('day')]
34
- }, {
35
- key: dateTypeEnum.WEEK,
36
- value: [now.clone().startOf('week'), now.clone().endOf('week')]
37
- }, {
38
- key: dateTypeEnum.LAST_WEEK,
39
- value: [now.clone().subtract(1, 'week').startOf('week'), now.clone().subtract(1, 'week').endOf('week')]
40
- }, {
41
- key: dateTypeEnum.MONTH,
42
- value: [now.clone().startOf('month'), now.clone().endOf('month')]
43
- }, {
44
- key: dateTypeEnum.LAST_MONTH,
45
- value: [now.clone().subtract(1, 'month').startOf('month'), now.clone().subtract(1, 'month').endOf('month')]
46
- }, {
47
- key: dateTypeEnum.QUARTER,
48
- value: [now.clone().startOf('quarter'), now.clone().endOf('quarter')]
49
- }, {
50
- key: dateTypeEnum.LAST_QUARTER,
51
- value: [now.clone().subtract(1, 'quarter').startOf('quarter'), now.clone().subtract(1, 'quarter').endOf('quarter')]
52
- }, {
53
- key: dateTypeEnum.BEFORE_7_DAY,
54
- value: [now.clone().subtract(6, 'day').startOf('day'), now.endOf('day')]
55
- }, {
56
- key: dateTypeEnum.BEFORE_14_DAY,
57
- value: [now.clone().subtract(13, 'day').startOf('day'), now.endOf('day')]
58
- }, {
59
- key: dateTypeEnum.BEFORE_30_DAY,
60
- value: [now.clone().subtract(29, 'day').startOf('day'), now.endOf('day')]
61
- }, {
62
- key: dateTypeEnum.BEFORE_90_DAY,
63
- value: [now.clone().subtract(89, 'day').startOf('day'), now.endOf('day')]
64
- }, {
65
- key: dateTypeEnum.BEFORE_180_DAY,
66
- value: [now.clone().subtract(179, 'day').startOf('day'), now.endOf('day')]
67
- }, {
68
- key: dateTypeEnum.BEFORE_365_DAY,
69
- value: [now.clone().subtract(364, 'day').startOf('day'), now.endOf('day')]
70
- }, {
71
- key: dateTypeEnum.PAST_7_DAY,
72
- value: [now.clone().subtract(7, 'day').startOf('day'), now.clone().subtract(1, 'day').endOf('day')]
73
- }, {
74
- key: dateTypeEnum.TOMORROW,
75
- value: [now.clone().add(1, 'day').startOf('day'), now.clone().add(1, 'day').endOf('day')]
76
- }, {
77
- key: dateTypeEnum.FUTURE_7_DAY,
78
- value: [now.clone().add(1, 'day').startOf('day'), now.clone().add(7, 'day').endOf('day')]
79
- }];
80
- var dateScopeMap = (_a = {}, _a[dateTypeEnum.TODAY] = [now.clone().startOf('day'), now.clone().endOf('day')], _a[dateTypeEnum.YESTERDAY] = [now.clone().subtract(1, 'day').startOf('day'), now.clone().subtract(1, 'day').endOf('day')], _a[dateTypeEnum.WEEK] = [now.clone().startOf('week'), now.clone().endOf('week')], _a[dateTypeEnum.LAST_WEEK] = [now.clone().subtract(1, 'week').startOf('week'), now.clone().subtract(1, 'week').endOf('week')], _a[dateTypeEnum.MONTH] = [now.clone().startOf('month'), now.clone().endOf('month')], _a[dateTypeEnum.LAST_MONTH] = [now.clone().subtract(1, 'month').startOf('month'), now.clone().subtract(1, 'month').endOf('month')], _a[dateTypeEnum.QUARTER] = [now.clone().startOf('quarter'), now.clone().endOf('quarter')], _a[dateTypeEnum.LAST_QUARTER] = [now.clone().subtract(1, 'quarter').startOf('quarter'), now.clone().subtract(1, 'quarter').endOf('quarter')], _a[dateTypeEnum.BEFORE_7_DAY] = [now.clone().subtract(6, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_14_DAY] = [now.clone().subtract(13, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_30_DAY] = [now.clone().subtract(29, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_90_DAY] = [now.clone().subtract(89, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_180_DAY] = [now.clone().subtract(179, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_365_DAY] = [now.clone().subtract(364, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.PAST_7_DAY] = [now.clone().subtract(7, 'day').startOf('day'), now.clone().subtract(1, 'day').endOf('day')], _a[dateTypeEnum.TOMORROW] = [now.clone().add(1, 'day').startOf('day'), now.clone().add(1, 'day').endOf('day')], _a[dateTypeEnum.FUTURE_7_DAY] = [now.clone().add(1, 'day').startOf('day'), now.clone().add(7, 'day').endOf('day')], _a);
81
- return {
82
- dateScopeList: dateScopeList,
83
- dateScopeMap: dateScopeMap
84
- };
85
- };
@@ -1,10 +0,0 @@
1
- import { dateTypeEnum } from './getDateScope';
2
- export declare type RadioListType = {
3
- key: dateTypeEnum;
4
- text: string;
5
- };
6
- declare const getRadioList: () => {
7
- key: dateTypeEnum;
8
- text: string;
9
- }[];
10
- export default getRadioList;