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.
- package/es/button-drawer/index.d.ts +1 -1
- package/es/button-modal/index.d.ts +1 -1
- package/es/copy-to-clipboard/style/index.css +58 -43
- package/es/highlight-textarea/extractSpansOfClasses.js +9 -7
- package/es/highlight-textarea/getRanges.js +9 -7
- package/es/highlight-textarea/index.js +3 -3
- package/es/highlight-textarea/style/index.css +169 -41
- package/es/highlight-textarea/types.js +1 -0
- package/es/img-crop/index.js +7 -7
- package/es/img-crop/style/index.css +1784 -0
- package/es/img-crop/style/index.less +1 -1
- package/es/keep-tab/style/index.css +40 -23
- package/es/label-auto-complete/style/index.css +1784 -0
- package/es/label-auto-complete/style/index.less +1 -1
- package/es/label-customize-range-picker/style/index.css +1784 -0
- package/es/label-customize-range-picker/style/index.less +1 -1
- package/es/label-date-picker/index.js +1 -1
- package/es/label-date-picker/style/index.css +1784 -0
- package/es/label-date-picker/style/index.less +1 -1
- package/es/label-number-input/index.js +1 -1
- package/es/label-range-picker/style/index.css +1784 -0
- package/es/label-range-picker/style/index.less +1 -1
- package/es/label-select/style/index.css +1784 -0
- package/es/label-select/style/index.less +1 -1
- package/es/label-tree-select/style/index.css +1784 -0
- package/es/label-tree-select/style/index.less +1 -1
- package/es/number-input/index.js +4 -4
- package/es/number-input/utils.js +1 -1
- package/es/rich-text-editor/style/index.css +6 -5
- package/es/single-img-upload/index.js +1 -1
- package/es/single-img-upload/style/index.css +1784 -0
- package/es/single-img-upload/style/index.less +1 -1
- package/es/step-number-input/index.js +8 -8
- package/es/step-number-input/style/index.css +1784 -0
- package/es/step-number-input/style/index.less +1 -1
- package/es/text-input/index.js +8 -6
- package/es/text-input/style/index.css +169 -41
- package/lib/beautiful-dnd/index.js +13 -7
- package/lib/button-drawer/index.d.ts +1 -1
- package/lib/button-drawer/index.js +18 -12
- package/lib/button-modal/index.d.ts +1 -1
- package/lib/button-modal/index.js +14 -8
- package/lib/condition-input/index.js +17 -11
- package/lib/condition-input/parse2RegexOption.js +3 -3
- package/lib/copy-to-clipboard/index.js +15 -9
- package/lib/copy-to-clipboard/style/index.css +58 -43
- package/lib/highlight-textarea/HighlighedContents.js +2 -2
- package/lib/highlight-textarea/extractSpansOfClasses.js +9 -7
- package/lib/highlight-textarea/getRanges.js +10 -8
- package/lib/highlight-textarea/index.js +19 -13
- package/lib/highlight-textarea/style/index.css +169 -41
- package/lib/img-crop/EasyCrop.js +13 -7
- package/lib/img-crop/index.js +21 -15
- package/lib/img-crop/style/index.css +1784 -0
- package/lib/img-crop/style/index.less +1 -1
- package/lib/index.js +38 -31
- package/lib/keep-tab/index.js +17 -11
- package/lib/keep-tab/style/index.css +40 -23
- package/lib/label-auto-complete/index.js +5 -5
- package/lib/label-auto-complete/style/index.css +1784 -0
- package/lib/label-auto-complete/style/index.less +1 -1
- package/lib/label-condition-input/index.js +5 -5
- package/lib/label-customize-range-picker/defaultRadioList.js +1 -1
- package/lib/label-customize-range-picker/index.js +17 -11
- package/lib/label-customize-range-picker/style/index.css +1784 -0
- package/lib/label-customize-range-picker/style/index.less +1 -1
- package/lib/label-date-picker/index.js +5 -5
- package/lib/label-date-picker/style/index.css +1784 -0
- package/lib/label-date-picker/style/index.less +1 -1
- package/lib/label-input/index.js +5 -5
- package/lib/label-number-input/index.js +6 -6
- package/lib/label-range-picker/index.js +3 -3
- package/lib/label-range-picker/style/index.css +1784 -0
- package/lib/label-range-picker/style/index.less +1 -1
- package/lib/label-select/index.js +5 -5
- package/lib/label-select/style/index.css +1784 -0
- package/lib/label-select/style/index.less +1 -1
- package/lib/label-text-area/index.js +4 -4
- package/lib/label-tree-select/index.js +4 -4
- package/lib/label-tree-select/style/index.css +1784 -0
- package/lib/label-tree-select/style/index.less +1 -1
- package/lib/number-input/index.js +21 -15
- package/lib/number-input/utils.js +8 -4
- package/lib/rc-echart/core.js +21 -15
- package/lib/rc-echart/index.js +13 -7
- package/lib/rc-qrcode/index.js +14 -8
- package/lib/rc-qrcode/useQrcode.js +4 -3
- package/lib/rc-transition-group/index.js +13 -7
- package/lib/rich-text-editor/index.js +1 -1
- package/lib/rich-text-editor/style/index.css +6 -5
- package/lib/single-img-upload/index.js +18 -12
- package/lib/single-img-upload/style/index.css +1784 -0
- package/lib/single-img-upload/style/index.less +1 -1
- package/lib/sortable-hoc/index.js +13 -7
- package/lib/split-pane/index.js +13 -7
- package/lib/step-number-input/index.js +32 -26
- package/lib/step-number-input/style/index.css +1784 -0
- package/lib/step-number-input/style/index.less +1 -1
- package/lib/text-area/index.js +14 -8
- package/lib/text-input/index.js +8 -6
- package/lib/text-input/style/index.css +169 -41
- package/package.json +4 -3
|
@@ -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
|
|
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
|
|
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
|
|
78
|
-
}
|
|
79
|
-
.ant-input-affix-wrapper
|
|
80
|
-
.ant-input-affix-wrapper
|
|
81
|
-
.ant-input-affix-wrapper
|
|
82
|
-
.ant-input-affix-wrapper
|
|
83
|
-
.ant-input-affix-wrapper
|
|
84
|
-
.ant-input-affix-wrapper
|
|
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
|
|
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
|
-
|
|
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
|
|
169
|
-
|
|
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
|
|
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
|
|
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
|
|
259
|
-
}
|
|
260
|
-
.ant-input
|
|
261
|
-
.ant-input
|
|
262
|
-
.ant-input
|
|
263
|
-
.ant-input
|
|
264
|
-
.ant-input
|
|
265
|
-
.ant-input
|
|
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
|
|
695
|
-
margin-right:
|
|
696
|
-
margin-left:
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/img-crop/index.js
CHANGED
|
@@ -230,8 +230,8 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
230
230
|
zipImg = props.zipImg,
|
|
231
231
|
children = props.children,
|
|
232
232
|
cropperProps = props.cropperProps;
|
|
233
|
-
var pkg = prefix
|
|
234
|
-
var MEDIA_CLASS = pkg
|
|
233
|
+
var pkg = "".concat(prefix, "-img-crop");
|
|
234
|
+
var MEDIA_CLASS = "".concat(pkg, "-media");
|
|
235
235
|
var hasZoom = zoom === true;
|
|
236
236
|
var hasRotate = rotate === true;
|
|
237
237
|
|
|
@@ -338,7 +338,7 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
338
338
|
|
|
339
339
|
return __generator(this, function (_c) {
|
|
340
340
|
onClose();
|
|
341
|
-
naturalImg = document.querySelector("."
|
|
341
|
+
naturalImg = document.querySelector(".".concat(MEDIA_CLASS));
|
|
342
342
|
naturalWidth = naturalImg.naturalWidth, naturalHeight = naturalImg.naturalHeight;
|
|
343
343
|
canvas = document.createElement('canvas');
|
|
344
344
|
ctx = canvas.getContext('2d');
|
|
@@ -454,7 +454,7 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
454
454
|
var renderComponent = function renderComponent(titleOfModal) {
|
|
455
455
|
return /*#__PURE__*/React.createElement(React.Fragment, null, renderUpload(), src && /*#__PURE__*/React.createElement(Modal, __assign({
|
|
456
456
|
visible: true,
|
|
457
|
-
wrapClassName: pkg
|
|
457
|
+
wrapClassName: "".concat(pkg, "-modal"),
|
|
458
458
|
title: titleOfModal,
|
|
459
459
|
onOk: onOk,
|
|
460
460
|
onCancel: onClose,
|
|
@@ -474,11 +474,11 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
474
474
|
maxZoom: maxZoom,
|
|
475
475
|
onComplete: onComplete,
|
|
476
476
|
classes: {
|
|
477
|
-
containerClassName: pkg
|
|
477
|
+
containerClassName: "".concat(pkg, "-container"),
|
|
478
478
|
mediaClassName: MEDIA_CLASS
|
|
479
479
|
}
|
|
480
480
|
}, cropperProps)), hasZoom && /*#__PURE__*/React.createElement("div", {
|
|
481
|
-
className: pkg
|
|
481
|
+
className: "".concat(pkg, "-control zoom")
|
|
482
482
|
}, /*#__PURE__*/React.createElement("button", {
|
|
483
483
|
type: "button",
|
|
484
484
|
onClick: subZoomVal,
|
|
@@ -494,7 +494,7 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
494
494
|
onClick: addZoomVal,
|
|
495
495
|
disabled: isMaxZoom
|
|
496
496
|
}, "\uFF0B")), hasRotate && /*#__PURE__*/React.createElement("div", {
|
|
497
|
-
className: pkg
|
|
497
|
+
className: "".concat(pkg, "-control rotate")
|
|
498
498
|
}, /*#__PURE__*/React.createElement("button", {
|
|
499
499
|
type: "button",
|
|
500
500
|
onClick: subRotateVal,
|