z-vue-design 0.0.33 → 0.0.34
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/dist/styles/z-vue-design.css +1 -1
- package/dist/z-vue-design.es.js +53164 -5
- package/dist/z-vue-design.umd.js +125 -188
- package/package.json +1 -1
- package/dist/KeyCode-BQ8PiGWB.mjs +0 -151
- package/dist/SearchOutlined-C8PgMkgm.mjs +0 -339
- package/dist/UtilsEmpty-BzsM7Cba.mjs +0 -10
- package/dist/ZDatePicker-wFB8-HrO.mjs +0 -36
- package/dist/ZInput-7W7W0XFO.mjs +0 -2498
- package/dist/ZRangePicker-DHcuHk1d.mjs +0 -36
- package/dist/ZSelect-Dv55rL9P.mjs +0 -4370
- package/dist/ZSwitch-CaOLFlcD.mjs +0 -423
- package/dist/ZTimePicker-Bvv31dHj.mjs +0 -35
- package/dist/ZTimeRangePicker-NPKMnAat.mjs +0 -36
- package/dist/dayjs-Bt0Scx6s.mjs +0 -166
- package/dist/dayjs-DEHSsOBE.mjs +0 -23
- package/dist/index-BNanAhZ5.mjs +0 -775
- package/dist/index-CwR0eJ0A.mjs +0 -12848
- package/dist/slide-DaUC7i86.mjs +0 -313
- package/dist/statusUtils-D245_o98.mjs +0 -15
- package/dist/zh_CN-DrK7CiiO.mjs +0 -8151
package/dist/index-BNanAhZ5.mjs
DELETED
|
@@ -1,775 +0,0 @@
|
|
|
1
|
-
import { r as S, v as x, A as l, _ as e, x as u, aB as m } from "./index-CwR0eJ0A.mjs";
|
|
2
|
-
const H = (r) => ({
|
|
3
|
-
// Firefox
|
|
4
|
-
"&::-moz-placeholder": {
|
|
5
|
-
opacity: 1
|
|
6
|
-
},
|
|
7
|
-
"&::placeholder": {
|
|
8
|
-
color: r,
|
|
9
|
-
userSelect: "none"
|
|
10
|
-
// https://github.com/ant-design/ant-design/pull/32639
|
|
11
|
-
},
|
|
12
|
-
"&:placeholder-shown": {
|
|
13
|
-
textOverflow: "ellipsis"
|
|
14
|
-
}
|
|
15
|
-
}), p = (r) => ({
|
|
16
|
-
borderColor: r.inputBorderHoverColor,
|
|
17
|
-
borderInlineEndWidth: r.lineWidth
|
|
18
|
-
}), c = (r) => ({
|
|
19
|
-
borderColor: r.inputBorderHoverColor,
|
|
20
|
-
boxShadow: `0 0 0 ${r.controlOutlineWidth}px ${r.controlOutline}`,
|
|
21
|
-
borderInlineEndWidth: r.lineWidth,
|
|
22
|
-
outline: 0
|
|
23
|
-
}), R = (r) => ({
|
|
24
|
-
color: r.colorTextDisabled,
|
|
25
|
-
backgroundColor: r.colorBgContainerDisabled,
|
|
26
|
-
borderColor: r.colorBorder,
|
|
27
|
-
boxShadow: "none",
|
|
28
|
-
cursor: "not-allowed",
|
|
29
|
-
opacity: 1,
|
|
30
|
-
"&:hover": e({}, p(l(r, {
|
|
31
|
-
inputBorderHoverColor: r.colorBorder
|
|
32
|
-
})))
|
|
33
|
-
}), g = (r) => {
|
|
34
|
-
const {
|
|
35
|
-
inputPaddingVerticalLG: i,
|
|
36
|
-
fontSizeLG: o,
|
|
37
|
-
lineHeightLG: t,
|
|
38
|
-
borderRadiusLG: d,
|
|
39
|
-
inputPaddingHorizontalLG: n
|
|
40
|
-
} = r;
|
|
41
|
-
return {
|
|
42
|
-
padding: `${i}px ${n}px`,
|
|
43
|
-
fontSize: o,
|
|
44
|
-
lineHeight: t,
|
|
45
|
-
borderRadius: d
|
|
46
|
-
};
|
|
47
|
-
}, h = (r) => ({
|
|
48
|
-
padding: `${r.inputPaddingVerticalSM}px ${r.controlPaddingHorizontalSM - 1}px`,
|
|
49
|
-
borderRadius: r.borderRadiusSM
|
|
50
|
-
}), $ = (r, i) => {
|
|
51
|
-
const {
|
|
52
|
-
componentCls: o,
|
|
53
|
-
colorError: t,
|
|
54
|
-
colorWarning: d,
|
|
55
|
-
colorErrorOutline: n,
|
|
56
|
-
colorWarningOutline: a,
|
|
57
|
-
colorErrorBorderHover: s,
|
|
58
|
-
colorWarningBorderHover: f
|
|
59
|
-
} = r;
|
|
60
|
-
return {
|
|
61
|
-
[`&-status-error:not(${i}-disabled):not(${i}-borderless)${i}`]: {
|
|
62
|
-
borderColor: t,
|
|
63
|
-
"&:hover": {
|
|
64
|
-
borderColor: s
|
|
65
|
-
},
|
|
66
|
-
"&:focus, &-focused": e({}, c(l(r, {
|
|
67
|
-
inputBorderActiveColor: t,
|
|
68
|
-
inputBorderHoverColor: t,
|
|
69
|
-
controlOutline: n
|
|
70
|
-
}))),
|
|
71
|
-
[`${o}-prefix`]: {
|
|
72
|
-
color: t
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
[`&-status-warning:not(${i}-disabled):not(${i}-borderless)${i}`]: {
|
|
76
|
-
borderColor: d,
|
|
77
|
-
"&:hover": {
|
|
78
|
-
borderColor: f
|
|
79
|
-
},
|
|
80
|
-
"&:focus, &-focused": e({}, c(l(r, {
|
|
81
|
-
inputBorderActiveColor: d,
|
|
82
|
-
inputBorderHoverColor: d,
|
|
83
|
-
controlOutline: a
|
|
84
|
-
}))),
|
|
85
|
-
[`${o}-prefix`]: {
|
|
86
|
-
color: d
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
}, b = (r) => e(e({
|
|
91
|
-
position: "relative",
|
|
92
|
-
display: "inline-block",
|
|
93
|
-
width: "100%",
|
|
94
|
-
minWidth: 0,
|
|
95
|
-
padding: `${r.inputPaddingVertical}px ${r.inputPaddingHorizontal}px`,
|
|
96
|
-
color: r.colorText,
|
|
97
|
-
fontSize: r.fontSize,
|
|
98
|
-
lineHeight: r.lineHeight,
|
|
99
|
-
backgroundColor: r.colorBgContainer,
|
|
100
|
-
backgroundImage: "none",
|
|
101
|
-
borderWidth: r.lineWidth,
|
|
102
|
-
borderStyle: r.lineType,
|
|
103
|
-
borderColor: r.colorBorder,
|
|
104
|
-
borderRadius: r.borderRadius,
|
|
105
|
-
transition: `all ${r.motionDurationMid}`
|
|
106
|
-
}, H(r.colorTextPlaceholder)), {
|
|
107
|
-
"&:hover": e({}, p(r)),
|
|
108
|
-
"&:focus, &-focused": e({}, c(r)),
|
|
109
|
-
"&-disabled, &[disabled]": e({}, R(r)),
|
|
110
|
-
"&-borderless": {
|
|
111
|
-
"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]": {
|
|
112
|
-
backgroundColor: "transparent",
|
|
113
|
-
border: "none",
|
|
114
|
-
boxShadow: "none"
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
// Reset height for `textarea`s
|
|
118
|
-
"textarea&": {
|
|
119
|
-
maxWidth: "100%",
|
|
120
|
-
height: "auto",
|
|
121
|
-
minHeight: r.controlHeight,
|
|
122
|
-
lineHeight: r.lineHeight,
|
|
123
|
-
verticalAlign: "bottom",
|
|
124
|
-
transition: `all ${r.motionDurationSlow}, height 0s`,
|
|
125
|
-
resize: "vertical"
|
|
126
|
-
},
|
|
127
|
-
// Size
|
|
128
|
-
"&-lg": e({}, g(r)),
|
|
129
|
-
"&-sm": e({}, h(r)),
|
|
130
|
-
// RTL
|
|
131
|
-
"&-rtl": {
|
|
132
|
-
direction: "rtl"
|
|
133
|
-
},
|
|
134
|
-
"&-textarea-rtl": {
|
|
135
|
-
direction: "rtl"
|
|
136
|
-
}
|
|
137
|
-
}), I = (r) => {
|
|
138
|
-
const {
|
|
139
|
-
componentCls: i,
|
|
140
|
-
antCls: o
|
|
141
|
-
} = r;
|
|
142
|
-
return {
|
|
143
|
-
position: "relative",
|
|
144
|
-
display: "table",
|
|
145
|
-
width: "100%",
|
|
146
|
-
borderCollapse: "separate",
|
|
147
|
-
borderSpacing: 0,
|
|
148
|
-
// Undo padding and float of grid classes
|
|
149
|
-
"&[class*='col-']": {
|
|
150
|
-
paddingInlineEnd: r.paddingXS,
|
|
151
|
-
"&:last-child": {
|
|
152
|
-
paddingInlineEnd: 0
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
// Sizing options
|
|
156
|
-
[`&-lg ${i}, &-lg > ${i}-group-addon`]: e({}, g(r)),
|
|
157
|
-
[`&-sm ${i}, &-sm > ${i}-group-addon`]: e({}, h(r)),
|
|
158
|
-
[`> ${i}`]: {
|
|
159
|
-
display: "table-cell",
|
|
160
|
-
"&:not(:first-child):not(:last-child)": {
|
|
161
|
-
borderRadius: 0
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
[`${i}-group`]: {
|
|
165
|
-
"&-addon, &-wrap": {
|
|
166
|
-
display: "table-cell",
|
|
167
|
-
width: 1,
|
|
168
|
-
whiteSpace: "nowrap",
|
|
169
|
-
verticalAlign: "middle",
|
|
170
|
-
"&:not(:first-child):not(:last-child)": {
|
|
171
|
-
borderRadius: 0
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
"&-wrap > *": {
|
|
175
|
-
display: "block !important"
|
|
176
|
-
},
|
|
177
|
-
"&-addon": {
|
|
178
|
-
position: "relative",
|
|
179
|
-
padding: `0 ${r.inputPaddingHorizontal}px`,
|
|
180
|
-
color: r.colorText,
|
|
181
|
-
fontWeight: "normal",
|
|
182
|
-
fontSize: r.fontSize,
|
|
183
|
-
textAlign: "center",
|
|
184
|
-
backgroundColor: r.colorFillAlter,
|
|
185
|
-
border: `${r.lineWidth}px ${r.lineType} ${r.colorBorder}`,
|
|
186
|
-
borderRadius: r.borderRadius,
|
|
187
|
-
transition: `all ${r.motionDurationSlow}`,
|
|
188
|
-
lineHeight: 1,
|
|
189
|
-
// Reset Select's style in addon
|
|
190
|
-
[`${o}-select`]: {
|
|
191
|
-
margin: `-${r.inputPaddingVertical + 1}px -${r.inputPaddingHorizontal}px`,
|
|
192
|
-
[`&${o}-select-single:not(${o}-select-customize-input)`]: {
|
|
193
|
-
[`${o}-select-selector`]: {
|
|
194
|
-
backgroundColor: "inherit",
|
|
195
|
-
border: `${r.lineWidth}px ${r.lineType} transparent`,
|
|
196
|
-
boxShadow: "none"
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
"&-open, &-focused": {
|
|
200
|
-
[`${o}-select-selector`]: {
|
|
201
|
-
color: r.colorPrimary
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
// https://github.com/ant-design/ant-design/issues/31333
|
|
206
|
-
[`${o}-cascader-picker`]: {
|
|
207
|
-
margin: `-9px -${r.inputPaddingHorizontal}px`,
|
|
208
|
-
backgroundColor: "transparent",
|
|
209
|
-
[`${o}-cascader-input`]: {
|
|
210
|
-
textAlign: "start",
|
|
211
|
-
border: 0,
|
|
212
|
-
boxShadow: "none"
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
"&-addon:first-child": {
|
|
217
|
-
borderInlineEnd: 0
|
|
218
|
-
},
|
|
219
|
-
"&-addon:last-child": {
|
|
220
|
-
borderInlineStart: 0
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
[`${i}`]: {
|
|
224
|
-
float: "inline-start",
|
|
225
|
-
width: "100%",
|
|
226
|
-
marginBottom: 0,
|
|
227
|
-
textAlign: "inherit",
|
|
228
|
-
"&:focus": {
|
|
229
|
-
zIndex: 1,
|
|
230
|
-
borderInlineEndWidth: 1
|
|
231
|
-
},
|
|
232
|
-
"&:hover": {
|
|
233
|
-
zIndex: 1,
|
|
234
|
-
borderInlineEndWidth: 1,
|
|
235
|
-
[`${i}-search-with-button &`]: {
|
|
236
|
-
zIndex: 0
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
// Reset rounded corners
|
|
241
|
-
[`> ${i}:first-child, ${i}-group-addon:first-child`]: {
|
|
242
|
-
borderStartEndRadius: 0,
|
|
243
|
-
borderEndEndRadius: 0,
|
|
244
|
-
// Reset Select's style in addon
|
|
245
|
-
[`${o}-select ${o}-select-selector`]: {
|
|
246
|
-
borderStartEndRadius: 0,
|
|
247
|
-
borderEndEndRadius: 0
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
[`> ${i}-affix-wrapper`]: {
|
|
251
|
-
[`&:not(:first-child) ${i}`]: {
|
|
252
|
-
borderStartStartRadius: 0,
|
|
253
|
-
borderEndStartRadius: 0
|
|
254
|
-
},
|
|
255
|
-
[`&:not(:last-child) ${i}`]: {
|
|
256
|
-
borderStartEndRadius: 0,
|
|
257
|
-
borderEndEndRadius: 0
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
[`> ${i}:last-child, ${i}-group-addon:last-child`]: {
|
|
261
|
-
borderStartStartRadius: 0,
|
|
262
|
-
borderEndStartRadius: 0,
|
|
263
|
-
// Reset Select's style in addon
|
|
264
|
-
[`${o}-select ${o}-select-selector`]: {
|
|
265
|
-
borderStartStartRadius: 0,
|
|
266
|
-
borderEndStartRadius: 0
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
[`${i}-affix-wrapper`]: {
|
|
270
|
-
"&:not(:last-child)": {
|
|
271
|
-
borderStartEndRadius: 0,
|
|
272
|
-
borderEndEndRadius: 0,
|
|
273
|
-
[`${i}-search &`]: {
|
|
274
|
-
borderStartStartRadius: r.borderRadius,
|
|
275
|
-
borderEndStartRadius: r.borderRadius
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
[`&:not(:first-child), ${i}-search &:not(:first-child)`]: {
|
|
279
|
-
borderStartStartRadius: 0,
|
|
280
|
-
borderEndStartRadius: 0
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
[`&${i}-group-compact`]: e(e({
|
|
284
|
-
display: "block"
|
|
285
|
-
}, m()), {
|
|
286
|
-
[`${i}-group-addon, ${i}-group-wrap, > ${i}`]: {
|
|
287
|
-
"&:not(:first-child):not(:last-child)": {
|
|
288
|
-
borderInlineEndWidth: r.lineWidth,
|
|
289
|
-
"&:hover": {
|
|
290
|
-
zIndex: 1
|
|
291
|
-
},
|
|
292
|
-
"&:focus": {
|
|
293
|
-
zIndex: 1
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
"& > *": {
|
|
298
|
-
display: "inline-block",
|
|
299
|
-
float: "none",
|
|
300
|
-
verticalAlign: "top",
|
|
301
|
-
borderRadius: 0
|
|
302
|
-
},
|
|
303
|
-
[`& > ${i}-affix-wrapper`]: {
|
|
304
|
-
display: "inline-flex"
|
|
305
|
-
},
|
|
306
|
-
[`& > ${o}-picker-range`]: {
|
|
307
|
-
display: "inline-flex"
|
|
308
|
-
},
|
|
309
|
-
"& > *:not(:last-child)": {
|
|
310
|
-
marginInlineEnd: -r.lineWidth,
|
|
311
|
-
borderInlineEndWidth: r.lineWidth
|
|
312
|
-
},
|
|
313
|
-
// Undo float for .ant-input-group .ant-input
|
|
314
|
-
[`${i}`]: {
|
|
315
|
-
float: "none"
|
|
316
|
-
},
|
|
317
|
-
// reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
|
|
318
|
-
[`& > ${o}-select > ${o}-select-selector,
|
|
319
|
-
& > ${o}-select-auto-complete ${i},
|
|
320
|
-
& > ${o}-cascader-picker ${i},
|
|
321
|
-
& > ${i}-group-wrapper ${i}`]: {
|
|
322
|
-
borderInlineEndWidth: r.lineWidth,
|
|
323
|
-
borderRadius: 0,
|
|
324
|
-
"&:hover": {
|
|
325
|
-
zIndex: 1
|
|
326
|
-
},
|
|
327
|
-
"&:focus": {
|
|
328
|
-
zIndex: 1
|
|
329
|
-
}
|
|
330
|
-
},
|
|
331
|
-
[`& > ${o}-select-focused`]: {
|
|
332
|
-
zIndex: 1
|
|
333
|
-
},
|
|
334
|
-
// update z-index for arrow icon
|
|
335
|
-
[`& > ${o}-select > ${o}-select-arrow`]: {
|
|
336
|
-
zIndex: 1
|
|
337
|
-
// https://github.com/ant-design/ant-design/issues/20371
|
|
338
|
-
},
|
|
339
|
-
[`& > *:first-child,
|
|
340
|
-
& > ${o}-select:first-child > ${o}-select-selector,
|
|
341
|
-
& > ${o}-select-auto-complete:first-child ${i},
|
|
342
|
-
& > ${o}-cascader-picker:first-child ${i}`]: {
|
|
343
|
-
borderStartStartRadius: r.borderRadius,
|
|
344
|
-
borderEndStartRadius: r.borderRadius
|
|
345
|
-
},
|
|
346
|
-
[`& > *:last-child,
|
|
347
|
-
& > ${o}-select:last-child > ${o}-select-selector,
|
|
348
|
-
& > ${o}-cascader-picker:last-child ${i},
|
|
349
|
-
& > ${o}-cascader-picker-focused:last-child ${i}`]: {
|
|
350
|
-
borderInlineEndWidth: r.lineWidth,
|
|
351
|
-
borderStartEndRadius: r.borderRadius,
|
|
352
|
-
borderEndEndRadius: r.borderRadius
|
|
353
|
-
},
|
|
354
|
-
// https://github.com/ant-design/ant-design/issues/12493
|
|
355
|
-
[`& > ${o}-select-auto-complete ${i}`]: {
|
|
356
|
-
verticalAlign: "top"
|
|
357
|
-
},
|
|
358
|
-
[`${i}-group-wrapper + ${i}-group-wrapper`]: {
|
|
359
|
-
marginInlineStart: -r.lineWidth,
|
|
360
|
-
[`${i}-affix-wrapper`]: {
|
|
361
|
-
borderRadius: 0
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
[`${i}-group-wrapper:not(:last-child)`]: {
|
|
365
|
-
[`&${i}-search > ${i}-group`]: {
|
|
366
|
-
[`& > ${i}-group-addon > ${i}-search-button`]: {
|
|
367
|
-
borderRadius: 0
|
|
368
|
-
},
|
|
369
|
-
[`& > ${i}`]: {
|
|
370
|
-
borderStartStartRadius: r.borderRadius,
|
|
371
|
-
borderStartEndRadius: 0,
|
|
372
|
-
borderEndEndRadius: 0,
|
|
373
|
-
borderEndStartRadius: r.borderRadius
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}),
|
|
378
|
-
[`&&-sm ${o}-btn`]: {
|
|
379
|
-
fontSize: r.fontSizeSM,
|
|
380
|
-
height: r.controlHeightSM,
|
|
381
|
-
lineHeight: "normal"
|
|
382
|
-
},
|
|
383
|
-
[`&&-lg ${o}-btn`]: {
|
|
384
|
-
fontSize: r.fontSizeLG,
|
|
385
|
-
height: r.controlHeightLG,
|
|
386
|
-
lineHeight: "normal"
|
|
387
|
-
},
|
|
388
|
-
// Fix https://github.com/ant-design/ant-design/issues/5754
|
|
389
|
-
[`&&-lg ${o}-select-single ${o}-select-selector`]: {
|
|
390
|
-
height: `${r.controlHeightLG}px`,
|
|
391
|
-
[`${o}-select-selection-item, ${o}-select-selection-placeholder`]: {
|
|
392
|
-
// -2 is for the border size & override default
|
|
393
|
-
lineHeight: `${r.controlHeightLG - 2}px`
|
|
394
|
-
},
|
|
395
|
-
[`${o}-select-selection-search-input`]: {
|
|
396
|
-
height: `${r.controlHeightLG}px`
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
[`&&-sm ${o}-select-single ${o}-select-selector`]: {
|
|
400
|
-
height: `${r.controlHeightSM}px`,
|
|
401
|
-
[`${o}-select-selection-item, ${o}-select-selection-placeholder`]: {
|
|
402
|
-
// -2 is for the border size & override default
|
|
403
|
-
lineHeight: `${r.controlHeightSM - 2}px`
|
|
404
|
-
},
|
|
405
|
-
[`${o}-select-selection-search-input`]: {
|
|
406
|
-
height: `${r.controlHeightSM}px`
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
|
-
}, E = (r) => {
|
|
411
|
-
const {
|
|
412
|
-
componentCls: i,
|
|
413
|
-
controlHeightSM: o,
|
|
414
|
-
lineWidth: t
|
|
415
|
-
} = r, n = (o - t * 2 - 16) / 2;
|
|
416
|
-
return {
|
|
417
|
-
[i]: e(e(e(e({}, u(r)), b(r)), $(r, i)), {
|
|
418
|
-
'&[type="color"]': {
|
|
419
|
-
height: r.controlHeight,
|
|
420
|
-
[`&${i}-lg`]: {
|
|
421
|
-
height: r.controlHeightLG
|
|
422
|
-
},
|
|
423
|
-
[`&${i}-sm`]: {
|
|
424
|
-
height: o,
|
|
425
|
-
paddingTop: n,
|
|
426
|
-
paddingBottom: n
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
})
|
|
430
|
-
};
|
|
431
|
-
}, v = (r) => {
|
|
432
|
-
const {
|
|
433
|
-
componentCls: i
|
|
434
|
-
} = r;
|
|
435
|
-
return {
|
|
436
|
-
// ========================= Input =========================
|
|
437
|
-
[`${i}-clear-icon`]: {
|
|
438
|
-
margin: 0,
|
|
439
|
-
color: r.colorTextQuaternary,
|
|
440
|
-
fontSize: r.fontSizeIcon,
|
|
441
|
-
verticalAlign: -1,
|
|
442
|
-
// https://github.com/ant-design/ant-design/pull/18151
|
|
443
|
-
// https://codesandbox.io/s/wizardly-sun-u10br
|
|
444
|
-
cursor: "pointer",
|
|
445
|
-
transition: `color ${r.motionDurationSlow}`,
|
|
446
|
-
"&:hover": {
|
|
447
|
-
color: r.colorTextTertiary
|
|
448
|
-
},
|
|
449
|
-
"&:active": {
|
|
450
|
-
color: r.colorText
|
|
451
|
-
},
|
|
452
|
-
"&-hidden": {
|
|
453
|
-
visibility: "hidden"
|
|
454
|
-
},
|
|
455
|
-
"&-has-suffix": {
|
|
456
|
-
margin: `0 ${r.inputAffixPadding}px`
|
|
457
|
-
}
|
|
458
|
-
},
|
|
459
|
-
// ======================= TextArea ========================
|
|
460
|
-
"&-textarea-with-clear-btn": {
|
|
461
|
-
padding: "0 !important",
|
|
462
|
-
border: "0 !important",
|
|
463
|
-
[`${i}-clear-icon`]: {
|
|
464
|
-
position: "absolute",
|
|
465
|
-
insetBlockStart: r.paddingXS,
|
|
466
|
-
insetInlineEnd: r.paddingXS,
|
|
467
|
-
zIndex: 1
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
};
|
|
471
|
-
}, w = (r) => {
|
|
472
|
-
const {
|
|
473
|
-
componentCls: i,
|
|
474
|
-
inputAffixPadding: o,
|
|
475
|
-
colorTextDescription: t,
|
|
476
|
-
motionDurationSlow: d,
|
|
477
|
-
colorIcon: n,
|
|
478
|
-
colorIconHover: a,
|
|
479
|
-
iconCls: s
|
|
480
|
-
} = r;
|
|
481
|
-
return {
|
|
482
|
-
[`${i}-affix-wrapper`]: e(e(e(e(e({}, b(r)), {
|
|
483
|
-
display: "inline-flex",
|
|
484
|
-
[`&:not(${i}-affix-wrapper-disabled):hover`]: e(e({}, p(r)), {
|
|
485
|
-
zIndex: 1,
|
|
486
|
-
[`${i}-search-with-button &`]: {
|
|
487
|
-
zIndex: 0
|
|
488
|
-
}
|
|
489
|
-
}),
|
|
490
|
-
"&-focused, &:focus": {
|
|
491
|
-
zIndex: 1
|
|
492
|
-
},
|
|
493
|
-
"&-disabled": {
|
|
494
|
-
[`${i}[disabled]`]: {
|
|
495
|
-
background: "transparent"
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
[`> input${i}`]: {
|
|
499
|
-
padding: 0,
|
|
500
|
-
fontSize: "inherit",
|
|
501
|
-
border: "none",
|
|
502
|
-
borderRadius: 0,
|
|
503
|
-
outline: "none",
|
|
504
|
-
"&:focus": {
|
|
505
|
-
boxShadow: "none !important"
|
|
506
|
-
}
|
|
507
|
-
},
|
|
508
|
-
"&::before": {
|
|
509
|
-
width: 0,
|
|
510
|
-
visibility: "hidden",
|
|
511
|
-
content: '"\\a0"'
|
|
512
|
-
},
|
|
513
|
-
[`${i}`]: {
|
|
514
|
-
"&-prefix, &-suffix": {
|
|
515
|
-
display: "flex",
|
|
516
|
-
flex: "none",
|
|
517
|
-
alignItems: "center",
|
|
518
|
-
"> *:not(:last-child)": {
|
|
519
|
-
marginInlineEnd: r.paddingXS
|
|
520
|
-
}
|
|
521
|
-
},
|
|
522
|
-
"&-show-count-suffix": {
|
|
523
|
-
color: t
|
|
524
|
-
},
|
|
525
|
-
"&-show-count-has-suffix": {
|
|
526
|
-
marginInlineEnd: r.paddingXXS
|
|
527
|
-
},
|
|
528
|
-
"&-prefix": {
|
|
529
|
-
marginInlineEnd: o
|
|
530
|
-
},
|
|
531
|
-
"&-suffix": {
|
|
532
|
-
marginInlineStart: o
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
}), v(r)), {
|
|
536
|
-
// password
|
|
537
|
-
[`${s}${i}-password-icon`]: {
|
|
538
|
-
color: n,
|
|
539
|
-
cursor: "pointer",
|
|
540
|
-
transition: `all ${d}`,
|
|
541
|
-
"&:hover": {
|
|
542
|
-
color: a
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
}), $(r, `${i}-affix-wrapper`))
|
|
546
|
-
};
|
|
547
|
-
}, y = (r) => {
|
|
548
|
-
const {
|
|
549
|
-
componentCls: i,
|
|
550
|
-
colorError: o,
|
|
551
|
-
colorSuccess: t,
|
|
552
|
-
borderRadiusLG: d,
|
|
553
|
-
borderRadiusSM: n
|
|
554
|
-
} = r;
|
|
555
|
-
return {
|
|
556
|
-
[`${i}-group`]: e(e(e({}, u(r)), I(r)), {
|
|
557
|
-
"&-rtl": {
|
|
558
|
-
direction: "rtl"
|
|
559
|
-
},
|
|
560
|
-
"&-wrapper": {
|
|
561
|
-
display: "inline-block",
|
|
562
|
-
width: "100%",
|
|
563
|
-
textAlign: "start",
|
|
564
|
-
verticalAlign: "top",
|
|
565
|
-
"&-rtl": {
|
|
566
|
-
direction: "rtl"
|
|
567
|
-
},
|
|
568
|
-
// Size
|
|
569
|
-
"&-lg": {
|
|
570
|
-
[`${i}-group-addon`]: {
|
|
571
|
-
borderRadius: d
|
|
572
|
-
}
|
|
573
|
-
},
|
|
574
|
-
"&-sm": {
|
|
575
|
-
[`${i}-group-addon`]: {
|
|
576
|
-
borderRadius: n
|
|
577
|
-
}
|
|
578
|
-
},
|
|
579
|
-
// Status
|
|
580
|
-
"&-status-error": {
|
|
581
|
-
[`${i}-group-addon`]: {
|
|
582
|
-
color: o,
|
|
583
|
-
borderColor: o
|
|
584
|
-
}
|
|
585
|
-
},
|
|
586
|
-
"&-status-warning": {
|
|
587
|
-
[`${i}-group-addon:last-child`]: {
|
|
588
|
-
color: t,
|
|
589
|
-
borderColor: t
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
})
|
|
594
|
-
};
|
|
595
|
-
}, z = (r) => {
|
|
596
|
-
const {
|
|
597
|
-
componentCls: i,
|
|
598
|
-
antCls: o
|
|
599
|
-
} = r, t = `${i}-search`;
|
|
600
|
-
return {
|
|
601
|
-
[t]: {
|
|
602
|
-
[`${i}`]: {
|
|
603
|
-
"&:hover, &:focus": {
|
|
604
|
-
borderColor: r.colorPrimaryHover,
|
|
605
|
-
[`+ ${i}-group-addon ${t}-button:not(${o}-btn-primary)`]: {
|
|
606
|
-
borderInlineStartColor: r.colorPrimaryHover
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
[`${i}-affix-wrapper`]: {
|
|
611
|
-
borderRadius: 0
|
|
612
|
-
},
|
|
613
|
-
// fix slight height diff in Firefox:
|
|
614
|
-
// https://ant.design/components/auto-complete-cn/#components-auto-complete-demo-certain-category
|
|
615
|
-
[`${i}-lg`]: {
|
|
616
|
-
lineHeight: r.lineHeightLG - 2e-4
|
|
617
|
-
},
|
|
618
|
-
[`> ${i}-group`]: {
|
|
619
|
-
[`> ${i}-group-addon:last-child`]: {
|
|
620
|
-
insetInlineStart: -1,
|
|
621
|
-
padding: 0,
|
|
622
|
-
border: 0,
|
|
623
|
-
[`${t}-button`]: {
|
|
624
|
-
paddingTop: 0,
|
|
625
|
-
paddingBottom: 0,
|
|
626
|
-
borderStartStartRadius: 0,
|
|
627
|
-
borderStartEndRadius: r.borderRadius,
|
|
628
|
-
borderEndEndRadius: r.borderRadius,
|
|
629
|
-
borderEndStartRadius: 0
|
|
630
|
-
},
|
|
631
|
-
[`${t}-button:not(${o}-btn-primary)`]: {
|
|
632
|
-
color: r.colorTextDescription,
|
|
633
|
-
"&:hover": {
|
|
634
|
-
color: r.colorPrimaryHover
|
|
635
|
-
},
|
|
636
|
-
"&:active": {
|
|
637
|
-
color: r.colorPrimaryActive
|
|
638
|
-
},
|
|
639
|
-
[`&${o}-btn-loading::before`]: {
|
|
640
|
-
insetInlineStart: 0,
|
|
641
|
-
insetInlineEnd: 0,
|
|
642
|
-
insetBlockStart: 0,
|
|
643
|
-
insetBlockEnd: 0
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
[`${t}-button`]: {
|
|
649
|
-
height: r.controlHeight,
|
|
650
|
-
"&:hover, &:focus": {
|
|
651
|
-
zIndex: 1
|
|
652
|
-
}
|
|
653
|
-
},
|
|
654
|
-
[`&-large ${t}-button`]: {
|
|
655
|
-
height: r.controlHeightLG
|
|
656
|
-
},
|
|
657
|
-
[`&-small ${t}-button`]: {
|
|
658
|
-
height: r.controlHeightSM
|
|
659
|
-
},
|
|
660
|
-
"&-rtl": {
|
|
661
|
-
direction: "rtl"
|
|
662
|
-
},
|
|
663
|
-
// ===================== Compact Item Customized Styles =====================
|
|
664
|
-
[`&${i}-compact-item`]: {
|
|
665
|
-
[`&:not(${i}-compact-last-item)`]: {
|
|
666
|
-
[`${i}-group-addon`]: {
|
|
667
|
-
[`${i}-search-button`]: {
|
|
668
|
-
marginInlineEnd: -r.lineWidth,
|
|
669
|
-
borderRadius: 0
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
},
|
|
673
|
-
[`&:not(${i}-compact-first-item)`]: {
|
|
674
|
-
[`${i},${i}-affix-wrapper`]: {
|
|
675
|
-
borderRadius: 0
|
|
676
|
-
}
|
|
677
|
-
},
|
|
678
|
-
[`> ${i}-group-addon ${i}-search-button,
|
|
679
|
-
> ${i},
|
|
680
|
-
${i}-affix-wrapper`]: {
|
|
681
|
-
"&:hover,&:focus,&:active": {
|
|
682
|
-
zIndex: 2
|
|
683
|
-
}
|
|
684
|
-
},
|
|
685
|
-
[`> ${i}-affix-wrapper-focused`]: {
|
|
686
|
-
zIndex: 2
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
};
|
|
691
|
-
};
|
|
692
|
-
function C(r) {
|
|
693
|
-
return l(r, {
|
|
694
|
-
inputAffixPadding: r.paddingXXS,
|
|
695
|
-
inputPaddingVertical: Math.max(Math.round((r.controlHeight - r.fontSize * r.lineHeight) / 2 * 10) / 10 - r.lineWidth, 3),
|
|
696
|
-
inputPaddingVerticalLG: Math.ceil((r.controlHeightLG - r.fontSizeLG * r.lineHeightLG) / 2 * 10) / 10 - r.lineWidth,
|
|
697
|
-
inputPaddingVerticalSM: Math.max(Math.round((r.controlHeightSM - r.fontSize * r.lineHeight) / 2 * 10) / 10 - r.lineWidth, 0),
|
|
698
|
-
inputPaddingHorizontal: r.paddingSM - r.lineWidth,
|
|
699
|
-
inputPaddingHorizontalSM: r.paddingXS - r.lineWidth,
|
|
700
|
-
inputPaddingHorizontalLG: r.controlPaddingHorizontal - r.lineWidth,
|
|
701
|
-
inputBorderHoverColor: r.colorPrimaryHover,
|
|
702
|
-
inputBorderActiveColor: r.colorPrimaryHover
|
|
703
|
-
});
|
|
704
|
-
}
|
|
705
|
-
const W = (r) => {
|
|
706
|
-
const {
|
|
707
|
-
componentCls: i,
|
|
708
|
-
inputPaddingHorizontal: o,
|
|
709
|
-
paddingLG: t
|
|
710
|
-
} = r, d = `${i}-textarea`;
|
|
711
|
-
return {
|
|
712
|
-
[d]: {
|
|
713
|
-
position: "relative",
|
|
714
|
-
[`${d}-suffix`]: {
|
|
715
|
-
position: "absolute",
|
|
716
|
-
top: 0,
|
|
717
|
-
insetInlineEnd: o,
|
|
718
|
-
bottom: 0,
|
|
719
|
-
zIndex: 1,
|
|
720
|
-
display: "inline-flex",
|
|
721
|
-
alignItems: "center",
|
|
722
|
-
margin: "auto"
|
|
723
|
-
},
|
|
724
|
-
"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating": {
|
|
725
|
-
[`&${d}-has-feedback`]: {
|
|
726
|
-
[`${i}`]: {
|
|
727
|
-
paddingInlineEnd: t
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
},
|
|
731
|
-
"&-show-count": {
|
|
732
|
-
// https://github.com/ant-design/ant-design/issues/33049
|
|
733
|
-
[`> ${i}`]: {
|
|
734
|
-
height: "100%"
|
|
735
|
-
},
|
|
736
|
-
"&::after": {
|
|
737
|
-
color: r.colorTextDescription,
|
|
738
|
-
whiteSpace: "nowrap",
|
|
739
|
-
content: "attr(data-count)",
|
|
740
|
-
pointerEvents: "none",
|
|
741
|
-
float: "right"
|
|
742
|
-
}
|
|
743
|
-
},
|
|
744
|
-
"&-rtl": {
|
|
745
|
-
"&::after": {
|
|
746
|
-
float: "left"
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
};
|
|
751
|
-
}, B = S("Input", (r) => {
|
|
752
|
-
const i = C(r);
|
|
753
|
-
return [
|
|
754
|
-
E(i),
|
|
755
|
-
W(i),
|
|
756
|
-
w(i),
|
|
757
|
-
y(i),
|
|
758
|
-
z(i),
|
|
759
|
-
// =====================================================
|
|
760
|
-
// == Space Compact ==
|
|
761
|
-
// =====================================================
|
|
762
|
-
x(i)
|
|
763
|
-
];
|
|
764
|
-
});
|
|
765
|
-
export {
|
|
766
|
-
$ as a,
|
|
767
|
-
H as b,
|
|
768
|
-
I as c,
|
|
769
|
-
R as d,
|
|
770
|
-
c as e,
|
|
771
|
-
p as f,
|
|
772
|
-
b as g,
|
|
773
|
-
C as i,
|
|
774
|
-
B as u
|
|
775
|
-
};
|