gasp-components 1.0.9 → 1.0.11

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 (86) hide show
  1. package/dist/UploadOutlined-9WKjHsqa.js +878 -0
  2. package/dist/components/ag-grid-table/index.js +57877 -38314
  3. package/dist/components/button/index.js +18 -18
  4. package/dist/components/checklist/checklist-item.js +3 -3
  5. package/dist/components/checklist/index.js +5 -5
  6. package/dist/components/date-picker/index.js +9 -5022
  7. package/dist/components/dragger/index.js +28 -28
  8. package/dist/components/dropdown/index.js +10 -11
  9. package/dist/components/form/index.js +8 -9
  10. package/dist/components/form-item/index.js +10 -10
  11. package/dist/components/input/index.js +8 -8
  12. package/dist/components/modal/index.js +18 -20
  13. package/dist/components/password-input/index.js +2 -2
  14. package/dist/components/progress/index.js +16 -18
  15. package/dist/components/progress-circle/index.js +3 -3
  16. package/dist/components/radio-button/index.js +8 -8
  17. package/dist/components/result-popup/index.js +13 -14
  18. package/dist/components/select/index.js +1 -1
  19. package/dist/components/side-menu/index.js +2 -2
  20. package/dist/components/side-menu/menu-item.js +4 -6
  21. package/dist/components/steps/index.js +9 -9
  22. package/dist/components/table/index.js +16 -9298
  23. package/dist/components/tabs/index.js +10 -10
  24. package/dist/components/tabs/tab.js +7 -8
  25. package/dist/components/tag/index.js +9 -258
  26. package/dist/components/timeline-horizontal/index.js +7 -7
  27. package/dist/components/upload/index.js +62 -77
  28. package/dist/index-WlPrqxgY.js +87 -0
  29. package/dist/main.js +69 -457
  30. package/package.json +4 -3
  31. package/dist/CheckCircleFilled-xt-0R96Z.js +0 -16
  32. package/dist/CheckOutlined-EgxCAgj_.js +0 -16
  33. package/dist/CloseCircleFilled-bIgIULWb.js +0 -16
  34. package/dist/CloseOutlined-Q3kC3EZS.js +0 -16
  35. package/dist/Compact-fdEKV_mF.js +0 -180
  36. package/dist/ExclamationCircleFilled-XzDBEGmA.js +0 -16
  37. package/dist/KeyCode-qFRXB1-n.js +0 -517
  38. package/dist/LoadingOutlined-6Ipqn0og.js +0 -16
  39. package/dist/Overflow-JFdXKgCr.js +0 -231
  40. package/dist/PurePanel-hLGnXbul.js +0 -60
  41. package/dist/SearchOutlined-rJTFGXUi.js +0 -16
  42. package/dist/TextArea-n3dknzTq.js +0 -716
  43. package/dist/UploadOutlined-D8jfLEgv.js +0 -27
  44. package/dist/asyncToGenerator-t4sKr8R4.js +0 -340
  45. package/dist/button-LN5ZDad8.js +0 -819
  46. package/dist/collapse-ilv4Tji1.js +0 -20
  47. package/dist/colors-opGg9oSz.js +0 -25
  48. package/dist/compact-item-jjuVmDBH.js +0 -61
  49. package/dist/context-h3WSVDPz.js +0 -2087
  50. package/dist/createFormattedComponent-FcpICAm8.js +0 -3260
  51. package/dist/index--6VfGMUo.js +0 -402
  52. package/dist/index-0mpuHoS5.js +0 -996
  53. package/dist/index-1KQbTQJ2.js +0 -4405
  54. package/dist/index-5Uo03BMk.js +0 -681
  55. package/dist/index-BFgxz47K.js +0 -89
  56. package/dist/index-D3LMPWyJ.js +0 -1437
  57. package/dist/index-DVS_nWxv.js +0 -3026
  58. package/dist/index-ELHBhuK9.js +0 -100
  59. package/dist/index-Fn8q8B3V.js +0 -107
  60. package/dist/index-GgkQrebz.js +0 -950
  61. package/dist/index-L-MzVDcK.js +0 -616
  62. package/dist/index-M3WnMjiA.js +0 -230
  63. package/dist/index-NQd_zMf0.js +0 -69
  64. package/dist/index-ZT64Ec6u.js +0 -267
  65. package/dist/index-aawDqn9q.js +0 -3337
  66. package/dist/index-k04G4nlS.js +0 -1416
  67. package/dist/index-s3u4YBl4.js +0 -8
  68. package/dist/index-vtDVJV8q.js +0 -19571
  69. package/dist/isVisible-Qi9l15Ty.js +0 -232
  70. package/dist/motion-0ToOu81j.js +0 -226
  71. package/dist/motion-NQme0FJ_.js +0 -32
  72. package/dist/omit-ylWA0ZLZ.js +0 -10
  73. package/dist/pickAttrs-zaQzRTqh.js +0 -42
  74. package/dist/progress-a1_pwKVT.js +0 -722
  75. package/dist/reactNode-R20zZQk1.js +0 -18
  76. package/dist/responsiveObserver-V1_1G14X.js +0 -71
  77. package/dist/roundedArrow-p1Pmd9av.js +0 -64
  78. package/dist/row-sPFiFm0C.js +0 -230
  79. package/dist/slide-mFXPRHku.js +0 -265
  80. package/dist/styleChecker-pZ3k2IiY.js +0 -37
  81. package/dist/useCSSVarCls-GwZT_WiF.js +0 -9
  82. package/dist/useClosable-4G12n4Bp.js +0 -15
  83. package/dist/useLocale-eThlLZJw.js +0 -16
  84. package/dist/useMergedState-qUafLuUa.js +0 -23
  85. package/dist/useVariants-s0IcneBD.js +0 -25
  86. package/dist/zoom-Ps8y0jNW.js +0 -174
@@ -1,950 +0,0 @@
1
- import { m as c, d as a, h as T, r as S, j as z } from "./index-1KQbTQJ2.js";
2
- import "react";
3
- import { g as G } from "./compact-item-jjuVmDBH.js";
4
- function A(r) {
5
- return c(r, {
6
- inputAffixPadding: r.paddingXXS
7
- });
8
- }
9
- const M = (r) => {
10
- const {
11
- controlHeight: o,
12
- fontSize: i,
13
- lineHeight: e,
14
- lineWidth: n,
15
- controlHeightSM: d,
16
- controlHeightLG: l,
17
- fontSizeLG: t,
18
- lineHeightLG: u,
19
- paddingSM: y,
20
- controlPaddingHorizontalSM: E,
21
- controlPaddingHorizontal: B,
22
- colorFillAlter: I,
23
- colorPrimaryHover: R,
24
- colorPrimary: O,
25
- controlOutlineWidth: s,
26
- controlOutline: j,
27
- colorErrorOutline: W,
28
- colorWarningOutline: H,
29
- colorBgContainer: p
30
- } = r;
31
- return {
32
- paddingBlock: Math.max(Math.round((o - i * e) / 2 * 10) / 10 - n, 0),
33
- paddingBlockSM: Math.max(Math.round((d - i * e) / 2 * 10) / 10 - n, 0),
34
- paddingBlockLG: Math.ceil((l - t * u) / 2 * 10) / 10 - n,
35
- paddingInline: y - n,
36
- paddingInlineSM: E - n,
37
- paddingInlineLG: B - n,
38
- addonBg: I,
39
- activeBorderColor: O,
40
- hoverBorderColor: R,
41
- activeShadow: `0 0 0 ${s}px ${j}`,
42
- errorActiveShadow: `0 0 0 ${s}px ${W}`,
43
- warningActiveShadow: `0 0 0 ${s}px ${H}`,
44
- hoverBg: p,
45
- activeBg: p,
46
- inputFontSize: i,
47
- inputFontSizeLG: t,
48
- inputFontSizeSM: i
49
- };
50
- }, F = (r) => ({
51
- borderColor: r.hoverBorderColor,
52
- backgroundColor: r.hoverBg
53
- }), g = (r) => ({
54
- color: r.colorTextDisabled,
55
- backgroundColor: r.colorBgContainerDisabled,
56
- borderColor: r.colorBorder,
57
- boxShadow: "none",
58
- cursor: "not-allowed",
59
- opacity: 1,
60
- "&:hover:not([disabled])": Object.assign({}, F(c(r, {
61
- hoverBorderColor: r.colorBorder,
62
- hoverBg: r.colorBgContainerDisabled
63
- })))
64
- }), m = (r, o) => ({
65
- background: r.colorBgContainer,
66
- borderWidth: r.lineWidth,
67
- borderStyle: r.lineType,
68
- borderColor: o.borderColor,
69
- "&:hover": {
70
- borderColor: o.hoverBorderColor,
71
- backgroundColor: r.hoverBg
72
- },
73
- "&:focus, &:focus-within": {
74
- borderColor: o.activeBorderColor,
75
- boxShadow: o.activeShadow,
76
- outline: 0,
77
- backgroundColor: r.activeBg
78
- }
79
- }), b = (r, o) => ({
80
- [`&${r.componentCls}-status-${o.status}:not(${r.componentCls}-disabled)`]: Object.assign(Object.assign({}, m(r, o)), {
81
- [`${r.componentCls}-prefix, ${r.componentCls}-suffix`]: {
82
- color: o.affixColor
83
- }
84
- })
85
- }), L = (r, o) => ({
86
- "&-outlined": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, m(r, {
87
- borderColor: r.colorBorder,
88
- hoverBorderColor: r.colorPrimaryHover,
89
- activeBorderColor: r.colorPrimary,
90
- activeShadow: r.activeShadow
91
- })), {
92
- [`&${r.componentCls}-disabled, &[disabled]`]: Object.assign({}, g(r))
93
- }), b(r, {
94
- status: "error",
95
- borderColor: r.colorError,
96
- hoverBorderColor: r.colorErrorBorderHover,
97
- activeBorderColor: r.colorError,
98
- activeShadow: r.errorActiveShadow,
99
- affixColor: r.colorError
100
- })), b(r, {
101
- status: "warning",
102
- borderColor: r.colorWarning,
103
- hoverBorderColor: r.colorWarningBorderHover,
104
- activeBorderColor: r.colorWarning,
105
- activeShadow: r.warningActiveShadow,
106
- affixColor: r.colorWarning
107
- })), o)
108
- }), $ = (r, o) => ({
109
- [`&${r.componentCls}-group-wrapper-status-${o.status}`]: {
110
- [`${r.componentCls}-group-addon`]: {
111
- borderColor: o.addonBorderColor,
112
- color: o.addonColor
113
- }
114
- }
115
- }), P = (r) => ({
116
- "&-outlined": Object.assign(Object.assign(Object.assign({
117
- [`${r.componentCls}-group`]: {
118
- "&-addon": {
119
- background: r.addonBg,
120
- border: `${a(r.lineWidth)} ${r.lineType} ${r.colorBorder}`
121
- },
122
- "&-addon:first-child": {
123
- borderInlineEnd: 0
124
- },
125
- "&-addon:last-child": {
126
- borderInlineStart: 0
127
- }
128
- }
129
- }, $(r, {
130
- status: "error",
131
- addonBorderColor: r.colorError,
132
- addonColor: r.colorErrorText
133
- })), $(r, {
134
- status: "warning",
135
- addonBorderColor: r.colorWarning,
136
- addonColor: r.colorWarningText
137
- })), {
138
- [`&${r.componentCls}-group-wrapper-disabled`]: {
139
- [`${r.componentCls}-group-addon`]: Object.assign({}, g(r))
140
- }
141
- })
142
- }), D = (r, o) => ({
143
- "&-borderless": Object.assign({
144
- background: "transparent",
145
- border: "none",
146
- "&:focus, &:focus-within": {
147
- outline: "none"
148
- },
149
- [`&${r.componentCls}-disabled, &[disabled]`]: {
150
- color: r.colorTextDisabled
151
- }
152
- }, o)
153
- }), x = (r, o) => ({
154
- background: o.bg,
155
- borderWidth: r.lineWidth,
156
- borderStyle: r.lineType,
157
- borderColor: "transparent",
158
- "input&, & input, textarea&, & textarea": {
159
- color: o == null ? void 0 : o.inputColor
160
- },
161
- "&:hover": {
162
- background: o.hoverBg
163
- },
164
- "&:focus, &:focus-within": {
165
- outline: 0,
166
- borderColor: o.activeBorderColor,
167
- backgroundColor: r.activeBg
168
- }
169
- }), h = (r, o) => ({
170
- [`&${r.componentCls}-status-${o.status}:not(${r.componentCls}-disabled)`]: Object.assign(Object.assign({}, x(r, o)), {
171
- [`${r.componentCls}-prefix, ${r.componentCls}-suffix`]: {
172
- color: o.affixColor
173
- }
174
- })
175
- }), X = (r, o) => ({
176
- "&-filled": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, x(r, {
177
- bg: r.colorFillTertiary,
178
- hoverBg: r.colorFillSecondary,
179
- activeBorderColor: r.colorPrimary
180
- })), {
181
- [`&${r.componentCls}-disabled, &[disabled]`]: Object.assign({}, g(r))
182
- }), h(r, {
183
- status: "error",
184
- bg: r.colorErrorBg,
185
- hoverBg: r.colorErrorBgHover,
186
- activeBorderColor: r.colorError,
187
- inputColor: r.colorErrorText,
188
- affixColor: r.colorError
189
- })), h(r, {
190
- status: "warning",
191
- bg: r.colorWarningBg,
192
- hoverBg: r.colorWarningBgHover,
193
- activeBorderColor: r.colorWarning,
194
- inputColor: r.colorWarningText,
195
- affixColor: r.colorWarning
196
- })), o)
197
- }), f = (r, o) => ({
198
- [`&${r.componentCls}-group-wrapper-status-${o.status}`]: {
199
- [`${r.componentCls}-group-addon`]: {
200
- background: o.addonBg,
201
- color: o.addonColor
202
- }
203
- }
204
- }), q = (r) => ({
205
- "&-filled": Object.assign(Object.assign(Object.assign({
206
- [`${r.componentCls}-group`]: {
207
- "&-addon": {
208
- background: r.colorFillTertiary
209
- },
210
- [`${r.componentCls}-filled:not(:focus):not(:focus-within)`]: {
211
- "&:not(:first-child)": {
212
- borderInlineStart: `${a(r.lineWidth)} ${r.lineType} ${r.colorSplit}`
213
- },
214
- "&:not(:last-child)": {
215
- borderInlineEnd: `${a(r.lineWidth)} ${r.lineType} ${r.colorSplit}`
216
- }
217
- }
218
- }
219
- }, f(r, {
220
- status: "error",
221
- addonBg: r.colorErrorBg,
222
- addonColor: r.colorErrorText
223
- })), f(r, {
224
- status: "warning",
225
- addonBg: r.colorWarningBg,
226
- addonColor: r.colorWarningText
227
- })), {
228
- [`&${r.componentCls}-group-wrapper-disabled`]: {
229
- [`${r.componentCls}-group`]: {
230
- "&-addon": {
231
- background: r.colorFillTertiary,
232
- color: r.colorTextDisabled
233
- },
234
- "&-addon:first-child": {
235
- borderInlineStart: `${a(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
236
- borderTop: `${a(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
237
- borderBottom: `${a(r.lineWidth)} ${r.lineType} ${r.colorBorder}`
238
- },
239
- "&-addon:last-child": {
240
- borderInlineEnd: `${a(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
241
- borderTop: `${a(r.lineWidth)} ${r.lineType} ${r.colorBorder}`,
242
- borderBottom: `${a(r.lineWidth)} ${r.lineType} ${r.colorBorder}`
243
- }
244
- }
245
- }
246
- })
247
- }), _ = (r) => ({
248
- // Firefox
249
- "&::-moz-placeholder": {
250
- opacity: 1
251
- },
252
- "&::placeholder": {
253
- color: r,
254
- userSelect: "none"
255
- // https://github.com/ant-design/ant-design/pull/32639
256
- },
257
- "&:placeholder-shown": {
258
- textOverflow: "ellipsis"
259
- }
260
- }), C = (r) => {
261
- const {
262
- paddingBlockLG: o,
263
- lineHeightLG: i,
264
- borderRadiusLG: e,
265
- paddingInlineLG: n
266
- } = r;
267
- return {
268
- padding: `${a(o)} ${a(n)}`,
269
- fontSize: r.inputFontSizeLG,
270
- lineHeight: i,
271
- borderRadius: e
272
- };
273
- }, v = (r) => ({
274
- padding: `${a(r.paddingBlockSM)} ${a(r.paddingInlineSM)}`,
275
- fontSize: r.inputFontSizeSM,
276
- borderRadius: r.borderRadiusSM
277
- }), w = (r) => Object.assign(Object.assign({
278
- position: "relative",
279
- display: "inline-block",
280
- width: "100%",
281
- minWidth: 0,
282
- padding: `${a(r.paddingBlock)} ${a(r.paddingInline)}`,
283
- color: r.colorText,
284
- fontSize: r.inputFontSize,
285
- lineHeight: r.lineHeight,
286
- borderRadius: r.borderRadius,
287
- transition: `all ${r.motionDurationMid}`
288
- }, _(r.colorTextPlaceholder)), {
289
- // Reset height for `textarea`s
290
- "textarea&": {
291
- maxWidth: "100%",
292
- // prevent textarea resize from coming out of its container
293
- height: "auto",
294
- minHeight: r.controlHeight,
295
- lineHeight: r.lineHeight,
296
- verticalAlign: "bottom",
297
- transition: `all ${r.motionDurationSlow}, height 0s`,
298
- resize: "vertical"
299
- },
300
- // Size
301
- "&-lg": Object.assign({}, C(r)),
302
- "&-sm": Object.assign({}, v(r)),
303
- // RTL
304
- "&-rtl": {
305
- direction: "rtl"
306
- },
307
- "&-textarea-rtl": {
308
- direction: "rtl"
309
- }
310
- }), Q = (r) => {
311
- const {
312
- componentCls: o,
313
- antCls: i
314
- } = r;
315
- return {
316
- position: "relative",
317
- display: "table",
318
- width: "100%",
319
- borderCollapse: "separate",
320
- borderSpacing: 0,
321
- // Undo padding and float of grid classes
322
- "&[class*='col-']": {
323
- paddingInlineEnd: r.paddingXS,
324
- "&:last-child": {
325
- paddingInlineEnd: 0
326
- }
327
- },
328
- // Sizing options
329
- [`&-lg ${o}, &-lg > ${o}-group-addon`]: Object.assign({}, C(r)),
330
- [`&-sm ${o}, &-sm > ${o}-group-addon`]: Object.assign({}, v(r)),
331
- // Fix https://github.com/ant-design/ant-design/issues/5754
332
- [`&-lg ${i}-select-single ${i}-select-selector`]: {
333
- height: r.controlHeightLG
334
- },
335
- [`&-sm ${i}-select-single ${i}-select-selector`]: {
336
- height: r.controlHeightSM
337
- },
338
- [`> ${o}`]: {
339
- display: "table-cell",
340
- "&:not(:first-child):not(:last-child)": {
341
- borderRadius: 0
342
- }
343
- },
344
- [`${o}-group`]: {
345
- "&-addon, &-wrap": {
346
- display: "table-cell",
347
- width: 1,
348
- whiteSpace: "nowrap",
349
- verticalAlign: "middle",
350
- "&:not(:first-child):not(:last-child)": {
351
- borderRadius: 0
352
- }
353
- },
354
- "&-wrap > *": {
355
- display: "block !important"
356
- },
357
- "&-addon": {
358
- position: "relative",
359
- padding: `0 ${a(r.paddingInline)}`,
360
- color: r.colorText,
361
- fontWeight: "normal",
362
- fontSize: r.inputFontSize,
363
- textAlign: "center",
364
- borderRadius: r.borderRadius,
365
- transition: `all ${r.motionDurationSlow}`,
366
- lineHeight: 1,
367
- // Reset Select's style in addon
368
- [`${i}-select`]: {
369
- margin: `${a(r.calc(r.paddingBlock).add(1).mul(-1).equal())} ${a(r.calc(r.paddingInline).mul(-1).equal())}`,
370
- [`&${i}-select-single:not(${i}-select-customize-input):not(${i}-pagination-size-changer)`]: {
371
- [`${i}-select-selector`]: {
372
- backgroundColor: "inherit",
373
- border: `${a(r.lineWidth)} ${r.lineType} transparent`,
374
- boxShadow: "none"
375
- }
376
- },
377
- "&-open, &-focused": {
378
- [`${i}-select-selector`]: {
379
- color: r.colorPrimary
380
- }
381
- }
382
- },
383
- // https://github.com/ant-design/ant-design/issues/31333
384
- [`${i}-cascader-picker`]: {
385
- margin: `-9px ${a(r.calc(r.paddingInline).mul(-1).equal())}`,
386
- backgroundColor: "transparent",
387
- [`${i}-cascader-input`]: {
388
- textAlign: "start",
389
- border: 0,
390
- boxShadow: "none"
391
- }
392
- }
393
- }
394
- },
395
- [`${o}`]: {
396
- width: "100%",
397
- marginBottom: 0,
398
- textAlign: "inherit",
399
- "&:focus": {
400
- zIndex: 1,
401
- // Fix https://gw.alipayobjects.com/zos/rmsportal/DHNpoqfMXSfrSnlZvhsJ.png
402
- borderInlineEndWidth: 1
403
- },
404
- "&:hover": {
405
- zIndex: 1,
406
- borderInlineEndWidth: 1,
407
- [`${o}-search-with-button &`]: {
408
- zIndex: 0
409
- }
410
- }
411
- },
412
- // Reset rounded corners
413
- [`> ${o}:first-child, ${o}-group-addon:first-child`]: {
414
- borderStartEndRadius: 0,
415
- borderEndEndRadius: 0,
416
- // Reset Select's style in addon
417
- [`${i}-select ${i}-select-selector`]: {
418
- borderStartEndRadius: 0,
419
- borderEndEndRadius: 0
420
- }
421
- },
422
- [`> ${o}-affix-wrapper`]: {
423
- [`&:not(:first-child) ${o}`]: {
424
- borderStartStartRadius: 0,
425
- borderEndStartRadius: 0
426
- },
427
- [`&:not(:last-child) ${o}`]: {
428
- borderStartEndRadius: 0,
429
- borderEndEndRadius: 0
430
- }
431
- },
432
- [`> ${o}:last-child, ${o}-group-addon:last-child`]: {
433
- borderStartStartRadius: 0,
434
- borderEndStartRadius: 0,
435
- // Reset Select's style in addon
436
- [`${i}-select ${i}-select-selector`]: {
437
- borderStartStartRadius: 0,
438
- borderEndStartRadius: 0
439
- }
440
- },
441
- [`${o}-affix-wrapper`]: {
442
- "&:not(:last-child)": {
443
- borderStartEndRadius: 0,
444
- borderEndEndRadius: 0,
445
- [`${o}-search &`]: {
446
- borderStartStartRadius: r.borderRadius,
447
- borderEndStartRadius: r.borderRadius
448
- }
449
- },
450
- [`&:not(:first-child), ${o}-search &:not(:first-child)`]: {
451
- borderStartStartRadius: 0,
452
- borderEndStartRadius: 0
453
- }
454
- },
455
- [`&${o}-group-compact`]: Object.assign(Object.assign({
456
- display: "block"
457
- }, z()), {
458
- [`${o}-group-addon, ${o}-group-wrap, > ${o}`]: {
459
- "&:not(:first-child):not(:last-child)": {
460
- borderInlineEndWidth: r.lineWidth,
461
- "&:hover": {
462
- zIndex: 1
463
- },
464
- "&:focus": {
465
- zIndex: 1
466
- }
467
- }
468
- },
469
- "& > *": {
470
- display: "inline-block",
471
- float: "none",
472
- verticalAlign: "top",
473
- // https://github.com/ant-design/ant-design-pro/issues/139
474
- borderRadius: 0
475
- },
476
- [`
477
- & > ${o}-affix-wrapper,
478
- & > ${o}-number-affix-wrapper,
479
- & > ${i}-picker-range
480
- `]: {
481
- display: "inline-flex"
482
- },
483
- "& > *:not(:last-child)": {
484
- marginInlineEnd: r.calc(r.lineWidth).mul(-1).equal(),
485
- borderInlineEndWidth: r.lineWidth
486
- },
487
- // Undo float for .ant-input-group .ant-input
488
- [`${o}`]: {
489
- float: "none"
490
- },
491
- // reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
492
- [`& > ${i}-select > ${i}-select-selector,
493
- & > ${i}-select-auto-complete ${o},
494
- & > ${i}-cascader-picker ${o},
495
- & > ${o}-group-wrapper ${o}`]: {
496
- borderInlineEndWidth: r.lineWidth,
497
- borderRadius: 0,
498
- "&:hover": {
499
- zIndex: 1
500
- },
501
- "&:focus": {
502
- zIndex: 1
503
- }
504
- },
505
- [`& > ${i}-select-focused`]: {
506
- zIndex: 1
507
- },
508
- // update z-index for arrow icon
509
- [`& > ${i}-select > ${i}-select-arrow`]: {
510
- zIndex: 1
511
- // https://github.com/ant-design/ant-design/issues/20371
512
- },
513
- [`& > *:first-child,
514
- & > ${i}-select:first-child > ${i}-select-selector,
515
- & > ${i}-select-auto-complete:first-child ${o},
516
- & > ${i}-cascader-picker:first-child ${o}`]: {
517
- borderStartStartRadius: r.borderRadius,
518
- borderEndStartRadius: r.borderRadius
519
- },
520
- [`& > *:last-child,
521
- & > ${i}-select:last-child > ${i}-select-selector,
522
- & > ${i}-cascader-picker:last-child ${o},
523
- & > ${i}-cascader-picker-focused:last-child ${o}`]: {
524
- borderInlineEndWidth: r.lineWidth,
525
- borderStartEndRadius: r.borderRadius,
526
- borderEndEndRadius: r.borderRadius
527
- },
528
- // https://github.com/ant-design/ant-design/issues/12493
529
- [`& > ${i}-select-auto-complete ${o}`]: {
530
- verticalAlign: "top"
531
- },
532
- [`${o}-group-wrapper + ${o}-group-wrapper`]: {
533
- marginInlineStart: r.calc(r.lineWidth).mul(-1).equal(),
534
- [`${o}-affix-wrapper`]: {
535
- borderRadius: 0
536
- }
537
- },
538
- [`${o}-group-wrapper:not(:last-child)`]: {
539
- [`&${o}-search > ${o}-group`]: {
540
- [`& > ${o}-group-addon > ${o}-search-button`]: {
541
- borderRadius: 0
542
- },
543
- [`& > ${o}`]: {
544
- borderStartStartRadius: r.borderRadius,
545
- borderStartEndRadius: 0,
546
- borderEndEndRadius: 0,
547
- borderEndStartRadius: r.borderRadius
548
- }
549
- }
550
- }
551
- })
552
- };
553
- }, J = (r) => {
554
- const {
555
- componentCls: o,
556
- controlHeightSM: i,
557
- lineWidth: e,
558
- calc: n
559
- } = r, l = n(i).sub(n(e).mul(2)).sub(16).div(2).equal();
560
- return {
561
- [o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, S(r)), w(r)), L(r)), X(r)), D(r)), {
562
- '&[type="color"]': {
563
- height: r.controlHeight,
564
- [`&${o}-lg`]: {
565
- height: r.controlHeightLG
566
- },
567
- [`&${o}-sm`]: {
568
- height: i,
569
- paddingTop: l,
570
- paddingBottom: l
571
- }
572
- },
573
- '&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration': {
574
- "-webkit-appearance": "none"
575
- }
576
- })
577
- };
578
- }, K = (r) => {
579
- const {
580
- componentCls: o
581
- } = r;
582
- return {
583
- // ========================= Input =========================
584
- [`${o}-clear-icon`]: {
585
- margin: 0,
586
- color: r.colorTextQuaternary,
587
- fontSize: r.fontSizeIcon,
588
- verticalAlign: -1,
589
- // https://github.com/ant-design/ant-design/pull/18151
590
- // https://codesandbox.io/s/wizardly-sun-u10br
591
- cursor: "pointer",
592
- transition: `color ${r.motionDurationSlow}`,
593
- "&:hover": {
594
- color: r.colorTextTertiary
595
- },
596
- "&:active": {
597
- color: r.colorText
598
- },
599
- "&-hidden": {
600
- visibility: "hidden"
601
- },
602
- "&-has-suffix": {
603
- margin: `0 ${a(r.inputAffixPadding)}`
604
- }
605
- }
606
- };
607
- }, N = (r) => {
608
- const {
609
- componentCls: o,
610
- inputAffixPadding: i,
611
- colorTextDescription: e,
612
- motionDurationSlow: n,
613
- colorIcon: d,
614
- colorIconHover: l,
615
- iconCls: t
616
- } = r;
617
- return {
618
- [`${o}-affix-wrapper`]: Object.assign(Object.assign(Object.assign(Object.assign({}, w(r)), {
619
- display: "inline-flex",
620
- [`&:not(${o}-disabled):hover`]: {
621
- zIndex: 1,
622
- [`${o}-search-with-button &`]: {
623
- zIndex: 0
624
- }
625
- },
626
- "&-focused, &:focus": {
627
- zIndex: 1
628
- },
629
- [`> input${o}`]: {
630
- padding: 0,
631
- fontSize: "inherit",
632
- border: "none",
633
- borderRadius: 0,
634
- outline: "none",
635
- background: "transparent",
636
- color: "inherit",
637
- "&::-ms-reveal": {
638
- display: "none"
639
- },
640
- "&:focus": {
641
- boxShadow: "none !important"
642
- }
643
- },
644
- "&::before": {
645
- display: "inline-block",
646
- width: 0,
647
- visibility: "hidden",
648
- content: '"\\a0"'
649
- },
650
- [`${o}`]: {
651
- "&-prefix, &-suffix": {
652
- display: "flex",
653
- flex: "none",
654
- alignItems: "center",
655
- "> *:not(:last-child)": {
656
- marginInlineEnd: r.paddingXS
657
- }
658
- },
659
- "&-show-count-suffix": {
660
- color: e
661
- },
662
- "&-show-count-has-suffix": {
663
- marginInlineEnd: r.paddingXXS
664
- },
665
- "&-prefix": {
666
- marginInlineEnd: i
667
- },
668
- "&-suffix": {
669
- marginInlineStart: i
670
- }
671
- }
672
- }), K(r)), {
673
- // password
674
- [`${t}${o}-password-icon`]: {
675
- color: d,
676
- cursor: "pointer",
677
- transition: `all ${n}`,
678
- "&:hover": {
679
- color: l
680
- }
681
- }
682
- })
683
- };
684
- }, U = (r) => {
685
- const {
686
- componentCls: o,
687
- borderRadiusLG: i,
688
- borderRadiusSM: e
689
- } = r;
690
- return {
691
- [`${o}-group`]: Object.assign(Object.assign(Object.assign({}, S(r)), Q(r)), {
692
- "&-rtl": {
693
- direction: "rtl"
694
- },
695
- "&-wrapper": Object.assign(Object.assign(Object.assign({
696
- display: "inline-block",
697
- width: "100%",
698
- textAlign: "start",
699
- verticalAlign: "top",
700
- "&-rtl": {
701
- direction: "rtl"
702
- },
703
- // Size
704
- "&-lg": {
705
- [`${o}-group-addon`]: {
706
- borderRadius: i,
707
- fontSize: r.inputFontSizeLG
708
- }
709
- },
710
- "&-sm": {
711
- [`${o}-group-addon`]: {
712
- borderRadius: e
713
- }
714
- }
715
- }, P(r)), q(r)), {
716
- // '&-disabled': {
717
- // [`${componentCls}-group-addon`]: {
718
- // ...genDisabledStyle(token),
719
- // },
720
- // },
721
- // Fix the issue of using icons in Space Compact mode
722
- // https://github.com/ant-design/ant-design/issues/42122
723
- [`&:not(${o}-compact-first-item):not(${o}-compact-last-item)${o}-compact-item`]: {
724
- [`${o}, ${o}-group-addon`]: {
725
- borderRadius: 0
726
- }
727
- },
728
- [`&:not(${o}-compact-last-item)${o}-compact-first-item`]: {
729
- [`${o}, ${o}-group-addon`]: {
730
- borderStartEndRadius: 0,
731
- borderEndEndRadius: 0
732
- }
733
- },
734
- [`&:not(${o}-compact-first-item)${o}-compact-last-item`]: {
735
- [`${o}, ${o}-group-addon`]: {
736
- borderStartStartRadius: 0,
737
- borderEndStartRadius: 0
738
- }
739
- }
740
- })
741
- })
742
- };
743
- }, V = (r) => {
744
- const {
745
- componentCls: o,
746
- antCls: i
747
- } = r, e = `${o}-search`;
748
- return {
749
- [e]: {
750
- [`${o}`]: {
751
- "&:hover, &:focus": {
752
- borderColor: r.colorPrimaryHover,
753
- [`+ ${o}-group-addon ${e}-button:not(${i}-btn-primary)`]: {
754
- borderInlineStartColor: r.colorPrimaryHover
755
- }
756
- }
757
- },
758
- [`${o}-affix-wrapper`]: {
759
- borderRadius: 0
760
- },
761
- // fix slight height diff in Firefox:
762
- // https://ant.design/components/auto-complete-cn/#components-auto-complete-demo-certain-category
763
- [`${o}-lg`]: {
764
- lineHeight: r.calc(r.lineHeightLG).sub(2e-4).equal({
765
- unit: !1
766
- })
767
- },
768
- [`> ${o}-group`]: {
769
- [`> ${o}-group-addon:last-child`]: {
770
- insetInlineStart: -1,
771
- padding: 0,
772
- border: 0,
773
- [`${e}-button`]: {
774
- paddingTop: 0,
775
- paddingBottom: 0,
776
- borderStartStartRadius: 0,
777
- borderStartEndRadius: r.borderRadius,
778
- borderEndEndRadius: r.borderRadius,
779
- borderEndStartRadius: 0,
780
- boxShadow: "none"
781
- },
782
- [`${e}-button:not(${i}-btn-primary)`]: {
783
- color: r.colorTextDescription,
784
- "&:hover": {
785
- color: r.colorPrimaryHover
786
- },
787
- "&:active": {
788
- color: r.colorPrimaryActive
789
- },
790
- [`&${i}-btn-loading::before`]: {
791
- insetInlineStart: 0,
792
- insetInlineEnd: 0,
793
- insetBlockStart: 0,
794
- insetBlockEnd: 0
795
- }
796
- }
797
- }
798
- },
799
- [`${e}-button`]: {
800
- height: r.controlHeight,
801
- "&:hover, &:focus": {
802
- zIndex: 1
803
- }
804
- },
805
- [`&-large ${e}-button`]: {
806
- height: r.controlHeightLG
807
- },
808
- [`&-small ${e}-button`]: {
809
- height: r.controlHeightSM
810
- },
811
- "&-rtl": {
812
- direction: "rtl"
813
- },
814
- // ===================== Compact Item Customized Styles =====================
815
- [`&${o}-compact-item`]: {
816
- [`&:not(${o}-compact-last-item)`]: {
817
- [`${o}-group-addon`]: {
818
- [`${o}-search-button`]: {
819
- marginInlineEnd: r.calc(r.lineWidth).mul(-1).equal(),
820
- borderRadius: 0
821
- }
822
- }
823
- },
824
- [`&:not(${o}-compact-first-item)`]: {
825
- [`${o},${o}-affix-wrapper`]: {
826
- borderRadius: 0
827
- }
828
- },
829
- [`> ${o}-group-addon ${o}-search-button,
830
- > ${o},
831
- ${o}-affix-wrapper`]: {
832
- "&:hover,&:focus,&:active": {
833
- zIndex: 2
834
- }
835
- },
836
- [`> ${o}-affix-wrapper-focused`]: {
837
- zIndex: 2
838
- }
839
- }
840
- }
841
- };
842
- }, Y = (r) => {
843
- const {
844
- componentCls: o,
845
- paddingLG: i
846
- } = r, e = `${o}-textarea`;
847
- return {
848
- [e]: {
849
- position: "relative",
850
- "&-show-count": {
851
- // https://github.com/ant-design/ant-design/issues/33049
852
- [`> ${o}`]: {
853
- height: "100%"
854
- },
855
- [`${o}-data-count`]: {
856
- position: "absolute",
857
- bottom: r.calc(r.fontSize).mul(r.lineHeight).mul(-1).equal(),
858
- insetInlineEnd: 0,
859
- color: r.colorTextDescription,
860
- whiteSpace: "nowrap",
861
- pointerEvents: "none"
862
- }
863
- },
864
- "&-allow-clear": {
865
- [`> ${o}`]: {
866
- paddingInlineEnd: i
867
- }
868
- },
869
- [`&-affix-wrapper${e}-has-feedback`]: {
870
- [`${o}`]: {
871
- paddingInlineEnd: i
872
- }
873
- },
874
- [`&-affix-wrapper${o}-affix-wrapper`]: {
875
- padding: 0,
876
- [`> textarea${o}`]: {
877
- fontSize: "inherit",
878
- border: "none",
879
- outline: "none",
880
- background: "transparent",
881
- "&:focus": {
882
- boxShadow: "none !important"
883
- }
884
- },
885
- [`${o}-suffix`]: {
886
- margin: 0,
887
- "> *:not(:last-child)": {
888
- marginInline: 0
889
- },
890
- // Clear Icon
891
- [`${o}-clear-icon`]: {
892
- position: "absolute",
893
- insetInlineEnd: r.paddingXS,
894
- insetBlockStart: r.paddingXS
895
- },
896
- // Feedback Icon
897
- [`${e}-suffix`]: {
898
- position: "absolute",
899
- top: 0,
900
- insetInlineEnd: r.paddingInline,
901
- bottom: 0,
902
- zIndex: 1,
903
- display: "inline-flex",
904
- alignItems: "center",
905
- margin: "auto",
906
- pointerEvents: "none"
907
- }
908
- }
909
- }
910
- }
911
- };
912
- }, Z = (r) => {
913
- const {
914
- componentCls: o
915
- } = r;
916
- return {
917
- [`${o}-out-of-range`]: {
918
- [`&, & input, & textarea, ${o}-show-count-suffix, ${o}-data-count`]: {
919
- color: r.colorError
920
- }
921
- }
922
- };
923
- }, ir = T("Input", (r) => {
924
- const o = c(r, A(r));
925
- return [
926
- J(o),
927
- Y(o),
928
- N(o),
929
- U(o),
930
- V(o),
931
- Z(o),
932
- // =====================================================
933
- // == Space Compact ==
934
- // =====================================================
935
- G(o)
936
- ];
937
- }, M);
938
- export {
939
- X as a,
940
- D as b,
941
- A as c,
942
- _ as d,
943
- v as e,
944
- w as f,
945
- L as g,
946
- m as h,
947
- M as i,
948
- g as j,
949
- ir as u
950
- };