@kdcloudjs/kdesign 1.6.26 → 1.6.28

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 (76) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/kdesign-complete.less +70 -7
  3. package/dist/kdesign.css +11 -7
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +1701 -187
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +8 -8
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/_utils/numberUtil.js +1 -3
  11. package/es/config-provider/compDefaultProps.d.ts +1 -0
  12. package/es/config-provider/compDefaultProps.js +2 -1
  13. package/es/date-picker/date-panel.js +5 -2
  14. package/es/date-picker/date-picker.js +29 -26
  15. package/es/date-picker/range/input-range.js +2 -4
  16. package/es/date-picker/range-picker.d.ts +1 -0
  17. package/es/date-picker/range-picker.js +2 -0
  18. package/es/date-picker/single/input-date.js +2 -4
  19. package/es/date-picker/style/index.css +4 -3
  20. package/es/date-picker/style/index.less +6 -2
  21. package/es/dropdown/dropdown.js +8 -3
  22. package/es/form/Field.js +21 -25
  23. package/es/image/preview-group.js +6 -4
  24. package/es/image/preview.js +2 -1
  25. package/es/input/ClearableLabeledInput.d.ts +1 -0
  26. package/es/input/ClearableLabeledInput.js +9 -4
  27. package/es/input/TextArea.js +18 -4
  28. package/es/input/input.d.ts +1 -0
  29. package/es/input/input.js +47 -10
  30. package/es/input/style/index.css +3 -0
  31. package/es/input/style/index.less +47 -0
  32. package/es/input-number/inputNumber.d.ts +1 -0
  33. package/es/input-number/inputNumber.js +4 -3
  34. package/es/pagination/pagination.d.ts +10 -0
  35. package/es/pagination/pagination.js +44 -45
  36. package/es/pagination/style/index.css +3 -3
  37. package/es/pagination/style/index.less +17 -5
  38. package/es/radio/index.js +1 -0
  39. package/es/select/interface.d.ts +8 -0
  40. package/es/select/select.js +32 -22
  41. package/es/upload/interface.d.ts +1 -0
  42. package/es/upload/upload.js +11 -6
  43. package/lib/_utils/numberUtil.js +1 -3
  44. package/lib/config-provider/compDefaultProps.d.ts +1 -0
  45. package/lib/config-provider/compDefaultProps.js +2 -1
  46. package/lib/date-picker/date-panel.js +11 -7
  47. package/lib/date-picker/date-picker.js +31 -26
  48. package/lib/date-picker/range/input-range.js +2 -4
  49. package/lib/date-picker/range-picker.d.ts +1 -0
  50. package/lib/date-picker/range-picker.js +2 -0
  51. package/lib/date-picker/single/input-date.js +2 -4
  52. package/lib/date-picker/style/index.css +4 -3
  53. package/lib/date-picker/style/index.less +6 -2
  54. package/lib/dropdown/dropdown.js +8 -3
  55. package/lib/form/Field.js +22 -27
  56. package/lib/image/preview-group.js +6 -4
  57. package/lib/image/preview.js +3 -1
  58. package/lib/input/ClearableLabeledInput.d.ts +1 -0
  59. package/lib/input/ClearableLabeledInput.js +9 -4
  60. package/lib/input/TextArea.js +18 -4
  61. package/lib/input/input.d.ts +1 -0
  62. package/lib/input/input.js +46 -9
  63. package/lib/input/style/index.css +3 -0
  64. package/lib/input/style/index.less +47 -0
  65. package/lib/input-number/inputNumber.d.ts +1 -0
  66. package/lib/input-number/inputNumber.js +4 -3
  67. package/lib/pagination/pagination.d.ts +10 -0
  68. package/lib/pagination/pagination.js +44 -46
  69. package/lib/pagination/style/index.css +3 -3
  70. package/lib/pagination/style/index.less +17 -5
  71. package/lib/radio/index.js +1 -0
  72. package/lib/select/interface.d.ts +8 -0
  73. package/lib/select/select.js +32 -22
  74. package/lib/upload/interface.d.ts +1 -0
  75. package/lib/upload/upload.js +11 -6
  76. package/package.json +1 -1
@@ -532,3 +532,6 @@ textarea {
532
532
  .kd-input-allowClear-spacing {
533
533
  padding-right: 20px;
534
534
  }
535
+ .kd-input-input-mark-inner {
536
+ color: var(--kd-c-input-placeholder-color-text, var(--kd-g-color-text-placeholder, #ccc));
537
+ }
@@ -15,20 +15,25 @@ textarea {
15
15
  overflow: auto;
16
16
  resize: vertical;
17
17
  }
18
+
18
19
  .@{input-prefix-cls} {
19
20
  .input(@input-prefix-cls);
21
+
20
22
  transition: border-color @transition-duration-inner;
23
+
21
24
  &-countWrapper {
22
25
  position: relative;
23
26
  display: inline-block;
24
27
  width: 100%;
25
28
  }
29
+
26
30
  &-textarea {
27
31
  .input(@input-prefix-cls);
28
32
  transition: border-color @transition-duration-inner;
29
33
  max-width: 100%;
30
34
  height: auto;
31
35
  vertical-align: bottom;
36
+
32
37
  &-mark {
33
38
  position: absolute;
34
39
  right: 0;
@@ -39,48 +44,59 @@ textarea {
39
44
  line-height: 18px;
40
45
  background-color: #fff;
41
46
  }
47
+
42
48
  &-mark-inner {
43
49
  top: auto;
44
50
  bottom: 5px;
45
51
  right: 8px;
46
52
  }
47
53
  }
54
+
48
55
  &-no-resize {
49
56
  resize: none;
50
57
  }
58
+
51
59
  &-borderless {
52
60
  border: 0;
53
61
  padding-left: 0 !important;
62
+
54
63
  &:focus {
55
64
  border: 0;
56
65
  }
57
66
  }
67
+
58
68
  &-underline {
59
69
  border: none;
60
70
  border-bottom: 1px solid @input-color-border;
61
71
  border-radius: 0;
62
72
  padding-left: 0 !important;
63
73
  }
74
+
64
75
  &-disabled {
65
76
  background-color: @input-background-color-disabled-inner;
66
77
  border-color: @input-border-color-disabled-inner;
67
78
  color: @input-affix-color;
68
79
  cursor: not-allowed;
69
80
  }
81
+
70
82
  &-underline&-disabled {
71
83
  color: @input-color-disabled-inner;
72
84
  background-color: @input-background-color-inner;
73
85
  border-color: @input-underline-border-color-disabled-inner;
74
86
  }
87
+
75
88
  &-size-small {
76
89
  .input-size(@input-small-height-inner, @input-small-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
77
90
  }
91
+
78
92
  &-size-middle {
79
93
  .input-size(@input-middle-height-inner, @input-middle-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
80
94
  }
95
+
81
96
  &-size-large {
82
97
  .input-size(@input-large-height-inner, @input-large-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
83
98
  }
99
+
84
100
  &-wrapper {
85
101
  padding-left: @input-wrapper-padding-left !important;
86
102
  .input(@wrapper-prefix-cls);
@@ -90,11 +106,13 @@ textarea {
90
106
  padding-top: 0 !important;
91
107
  padding-bottom: 0 !important;
92
108
  overflow: hidden;
109
+
93
110
  .@{input-prefix-cls} {
94
111
  border: none;
95
112
  padding-left: @input-padding-left;
96
113
  padding-right: 0;
97
114
  height: 100%;
115
+
98
116
  &-suffix,
99
117
  &-prefix {
100
118
  display: flex;
@@ -104,25 +122,32 @@ textarea {
104
122
  word-break: keep-all;
105
123
  color: @input-affix-color;
106
124
  }
125
+
107
126
  &-suffix {
108
127
  margin-left: 4px;
109
128
  }
129
+
110
130
  &-prefix {
111
131
  margin-right: 4px;
112
132
  }
113
133
  }
134
+
114
135
  &-size-small {
115
136
  .input-size(@input-small-height-inner, @input-small-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
116
137
  }
138
+
117
139
  &-size-middle {
118
140
  .input-size(@input-middle-height-inner, @input-middle-font-size-inner, @input-small-padding-vertical-inner, @input-middle-padding-horizontal-inner);
119
141
  }
142
+
120
143
  &-size-large {
121
144
  .input-size(@input-large-height-inner, @input-large-font-size-inner, @input-small-padding-vertical-inner, @input-large-padding-horizontal-inner);
122
145
  }
146
+
123
147
  &-borderless {
124
148
  .border-less;
125
149
  }
150
+
126
151
  &-underline {
127
152
  .underline;
128
153
  }
@@ -142,12 +167,14 @@ textarea {
142
167
  }
143
168
  }
144
169
  }
170
+
145
171
  &-wrapper-textarea {
146
172
  .input(@input-prefix-cls);
147
173
  border: none !important;
148
174
  padding: 0 !important;
149
175
  position: relative;
150
176
  display: inline-block;
177
+
151
178
  .@{input-prefix-cls} {
152
179
  &-textarea-clear-icon {
153
180
  position: absolute;
@@ -157,13 +184,16 @@ textarea {
157
184
  }
158
185
  }
159
186
  }
187
+
160
188
  &-clear-icon,
161
189
  &-textarea-clear-icon {
162
190
  .input-clear-icon;
163
191
  }
192
+
164
193
  &-clear-icon-hidden {
165
194
  visibility: hidden;
166
195
  }
196
+
167
197
  &-clear-icon-rightSpace {
168
198
  margin-right: 4px;
169
199
  }
@@ -173,6 +203,7 @@ textarea {
173
203
  width: 100%;
174
204
  text-align: start;
175
205
  vertical-align: top;
206
+
176
207
  .@{input-prefix-cls} {
177
208
  &-group {
178
209
  box-sizing: border-box;
@@ -189,19 +220,23 @@ textarea {
189
220
  width: 100%;
190
221
  border-collapse: separate;
191
222
  border-spacing: 0;
223
+
192
224
  & > .@{input-prefix-cls}-wrapper {
193
225
  &:not(:first-child):not(:last-child) {
194
226
  border-radius: 0;
195
227
  }
228
+
196
229
  &:first-child:not(:last-child) {
197
230
  border-top-right-radius: 0;
198
231
  border-bottom-right-radius: 0;
199
232
  }
233
+
200
234
  &:not(:first-child):last-child {
201
235
  border-top-left-radius: 0;
202
236
  border-bottom-left-radius: 0;
203
237
  }
204
238
  }
239
+
205
240
  .@{input-prefix-cls}-group-addon {
206
241
  position: relative;
207
242
  color: @input-affix-color;
@@ -216,11 +251,13 @@ textarea {
216
251
  display: flex;
217
252
  align-items: center;
218
253
  height: @input-middle-height-inner;
254
+
219
255
  &:first-child {
220
256
  border-top-right-radius: 0;
221
257
  border-bottom-right-radius: 0;
222
258
  border-right: none;
223
259
  }
260
+
224
261
  &:last-child {
225
262
  border-top-left-radius: 0;
226
263
  border-bottom-left-radius: 0;
@@ -230,9 +267,11 @@ textarea {
230
267
  &-borderless {
231
268
  .border-less;
232
269
  }
270
+
233
271
  &-underline {
234
272
  .underline;
235
273
  }
274
+
236
275
  &-disabled {
237
276
  background-color: @input-background-color-disabled-inner;
238
277
  border-color: @input-border-color-disabled-inner;
@@ -241,16 +280,19 @@ textarea {
241
280
  }
242
281
  }
243
282
  }
283
+
244
284
  &-group-size-small {
245
285
  .@{input-prefix-cls}-group-addon {
246
286
  height: @input-small-height-inner;
247
287
  }
248
288
  }
289
+
249
290
  &-group-middle-small {
250
291
  .@{input-prefix-cls}-group-addon {
251
292
  height: @input-middle-height-inner;
252
293
  }
253
294
  }
295
+
254
296
  &-group-large-small {
255
297
  .@{input-prefix-cls}-group-addon {
256
298
  height: @input-large-height-inner;
@@ -258,7 +300,12 @@ textarea {
258
300
  }
259
301
  }
260
302
  }
303
+
261
304
  &-allowClear-spacing {
262
305
  padding-right: 20px;
263
306
  }
307
+
308
+ &-input-mark-inner {
309
+ color: @input-placeholder-color-inner;
310
+ }
264
311
  }
@@ -22,6 +22,7 @@ export interface InputNumberProps extends InputProps {
22
22
  stepOption?: StepOption;
23
23
  stepperrref?: any;
24
24
  formatter?: (value: string | undefined) => string;
25
+ numberMode?: boolean;
25
26
  }
26
27
  declare const InputNumber: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<unknown>>;
27
28
  export default InputNumber;
@@ -53,15 +53,16 @@ var InternalInputNumber = function InternalInputNumber(props, ref) {
53
53
  minMark = inputNumberProps.minMark,
54
54
  max = inputNumberProps.max,
55
55
  maxMark = inputNumberProps.maxMark,
56
+ numberMode = inputNumberProps.numberMode,
56
57
  prefix = inputNumberProps.prefix,
57
58
  suffix = inputNumberProps.suffix,
58
59
  formatter = inputNumberProps.formatter,
59
60
  className = inputNumberProps.className,
60
- others = __rest(inputNumberProps, ["value", "defaultValue", "mustInScope", "decimalLength", "mustInPrecisionScope", "digitLength", "onChange", "symbol", "zeroShow", "showDecimalTailZero", "code", "roundMethod", "mask", "stepOption", "min", "minMark", "max", "maxMark", "prefix", "suffix", "formatter", "className"]);
61
+ others = __rest(inputNumberProps, ["value", "defaultValue", "mustInScope", "decimalLength", "mustInPrecisionScope", "digitLength", "onChange", "symbol", "zeroShow", "showDecimalTailZero", "code", "roundMethod", "mask", "stepOption", "min", "minMark", "max", "maxMark", "numberMode", "prefix", "suffix", "formatter", "className"]);
61
62
 
62
63
  var initVal = value === undefined ? defaultValue : value;
63
64
 
64
- var _useState = useState(serialization(initVal || '')),
65
+ var _useState = useState(serialization(initVal !== undefined ? initVal + '' : '')),
65
66
  _useState2 = _slicedToArray(_useState, 2),
66
67
  inputValue = _useState2[0],
67
68
  setInputValue = _useState2[1];
@@ -129,7 +130,7 @@ var InternalInputNumber = function InternalInputNumber(props, ref) {
129
130
  }
130
131
 
131
132
  value === undefined && setInputValue(legalNumber);
132
- onChange && onChange(handleEventAttachValue(event, legalNumber));
133
+ onChange && onChange(handleEventAttachValue(event, numberMode ? Number(legalNumber) : legalNumber));
133
134
  };
134
135
 
135
136
  var handleFocus = function handleFocus(event) {
@@ -4,6 +4,15 @@ export declare const PageTypes: ["basic", "bill", "simple", "less", "nicety"];
4
4
  export declare const TotalTypes: ["page", "row", "all"];
5
5
  export declare type pageType = typeof PageTypes[number];
6
6
  export declare type totalType = typeof TotalTypes[number];
7
+ export interface IIcons {
8
+ first: React.ReactElement;
9
+ last: React.ReactElement;
10
+ prev: React.ReactElement;
11
+ next: React.ReactElement;
12
+ down: React.ReactElement;
13
+ jumpPrev: React.ReactElement;
14
+ jumpNext: React.ReactElement;
15
+ }
7
16
  export interface IPaginationProps {
8
17
  total?: number;
9
18
  current?: number;
@@ -27,6 +36,7 @@ export interface IPaginationProps {
27
36
  goButton?: React.ReactNode;
28
37
  };
29
38
  onShowSizeChange?: (current: number, size: number) => void;
39
+ icons?: Partial<IIcons>;
30
40
  }
31
41
  declare const Pagination: React.FC<IPaginationProps>;
32
42
  export default Pagination;
@@ -1,6 +1,6 @@
1
1
  import _toConsumableArray from "@babel/runtime-corejs3/helpers/toConsumableArray";
2
- import _extends from "@babel/runtime-corejs3/helpers/extends";
3
2
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
3
+ import _extends from "@babel/runtime-corejs3/helpers/extends";
4
4
  import _slicedToArray from "@babel/runtime-corejs3/helpers/slicedToArray";
5
5
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
6
6
  import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
@@ -51,6 +51,7 @@ var Pagination = function Pagination(props) {
51
51
  showSizeChanger = _getCompProps.showSizeChanger,
52
52
  onShowSizeChange = _getCompProps.onShowSizeChange,
53
53
  hideOnSinglePage = _getCompProps.hideOnSinglePage,
54
+ icons = _getCompProps.icons,
54
55
  customPrefixcls = _getCompProps.prefixCls;
55
56
 
56
57
  devWarning(PageTypes.indexOf(pageType) === -1, 'Pagination', "cannot found pageType '".concat(pageType, "'")); // className前缀
@@ -92,7 +93,32 @@ var Pagination = function Pagination(props) {
92
93
  var _React$useState7 = React.useState(false),
93
94
  _React$useState8 = _slicedToArray(_React$useState7, 2),
94
95
  isOpen = _React$useState8[0],
95
- setIsOpen = _React$useState8[1]; // 切换pageSize
96
+ setIsOpen = _React$useState8[1]; // icons
97
+
98
+
99
+ var innerIcon = _extends({
100
+ first: /*#__PURE__*/React.createElement(Icon, {
101
+ type: "first"
102
+ }),
103
+ last: /*#__PURE__*/React.createElement(Icon, {
104
+ type: "last"
105
+ }),
106
+ prev: /*#__PURE__*/React.createElement(Icon, {
107
+ type: "arrow-left"
108
+ }),
109
+ next: /*#__PURE__*/React.createElement(Icon, {
110
+ type: "arrow-right"
111
+ }),
112
+ down: /*#__PURE__*/React.createElement(Icon, {
113
+ type: "arrow-down"
114
+ }),
115
+ jumpPrev: /*#__PURE__*/React.createElement(Icon, {
116
+ type: "double-arrow-left"
117
+ }),
118
+ jumpNext: /*#__PURE__*/React.createElement(Icon, {
119
+ type: "double-arrow-right"
120
+ })
121
+ }, icons || {}); // 切换pageSize
96
122
 
97
123
 
98
124
  var handleChangeSize = function handleChangeSize(key) {
@@ -239,24 +265,16 @@ var Pagination = function Pagination(props) {
239
265
  }, /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('action-item', paginationLangMsg.first)), /*#__PURE__*/React.createElement("button", {
240
266
  onClick: handleFirst,
241
267
  disabled: page === 1 || disabled
242
- }, /*#__PURE__*/React.createElement(Icon, {
243
- type: "first"
244
- }))), /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('action-item', paginationLangMsg.prevPage)), /*#__PURE__*/React.createElement("button", {
268
+ }, innerIcon.first)), /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('action-item', paginationLangMsg.prevPage)), /*#__PURE__*/React.createElement("button", {
245
269
  onClick: handlePrev,
246
270
  disabled: page === 1 || disabled
247
- }, /*#__PURE__*/React.createElement(Icon, {
248
- type: "arrow-left"
249
- }))), /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('action-item', paginationLangMsg.nextPage)), /*#__PURE__*/React.createElement("button", {
271
+ }, innerIcon.prev)), /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('action-item', paginationLangMsg.nextPage)), /*#__PURE__*/React.createElement("button", {
250
272
  onClick: handleNext,
251
273
  disabled: page === totalPage || disabled
252
- }, /*#__PURE__*/React.createElement(Icon, {
253
- type: "arrow-right"
254
- }))), /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('action-item', paginationLangMsg.last)), /*#__PURE__*/React.createElement("button", {
274
+ }, innerIcon.next)), /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('action-item', paginationLangMsg.last)), /*#__PURE__*/React.createElement("button", {
255
275
  onClick: handleLast,
256
276
  disabled: page === totalPage || disabled
257
- }, /*#__PURE__*/React.createElement(Icon, {
258
- type: "last"
259
- })))), showSizeSelector && /*#__PURE__*/React.createElement("div", {
277
+ }, innerIcon.last))), showSizeSelector && /*#__PURE__*/React.createElement("div", {
260
278
  className: "".concat(prefixCls, "-selector")
261
279
  }, /*#__PURE__*/React.createElement(Dropdown, _extends({
262
280
  selectable: true,
@@ -276,13 +294,10 @@ var Pagination = function Pagination(props) {
276
294
  }, dropdownProps, {
277
295
  onVisibleChange: dropdownVisibleChange
278
296
  }), /*#__PURE__*/React.createElement("button", {
279
- className: "".concat(prefixCls, "-selector-size")
297
+ className: classNames("".concat(prefixCls, "-selector-size"), "".concat(prefixCls, "-options-dropdown"), _defineProperty({}, "".concat(prefixCls, "-options-dropdown-open"), isOpen))
280
298
  }, /*#__PURE__*/React.createElement("span", null, locale.getLangMsg('Pagination', 'perPage', {
281
299
  size: size
282
- })), /*#__PURE__*/React.createElement(Icon, {
283
- type: "arrow-down",
284
- className: classNames("".concat(prefixCls, "-dropdown-icon"), _defineProperty({}, "".concat(prefixCls, "-dropdown-icon-open"), isOpen))
285
- })))));
300
+ })), innerIcon.down))));
286
301
  var simplePagination = /*#__PURE__*/React.createElement("div", {
287
302
  className: classNames(prefixCls, 'simple', className),
288
303
  style: style
@@ -294,9 +309,7 @@ var Pagination = function Pagination(props) {
294
309
  }, /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('action-item', paginationLangMsg.prevPage)), /*#__PURE__*/React.createElement("button", {
295
310
  onClick: handlePrev,
296
311
  disabled: page === 1 || disabled
297
- }, /*#__PURE__*/React.createElement(Icon, {
298
- type: "arrow-left"
299
- }))), /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('action-item', _concatInstanceProperty(_context4 = "".concat(page, "/")).call(_context4, totalPage))), /*#__PURE__*/React.createElement("span", {
312
+ }, innerIcon.prev)), /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('action-item', _concatInstanceProperty(_context4 = "".concat(page, "/")).call(_context4, totalPage))), /*#__PURE__*/React.createElement("span", {
300
313
  className: "".concat(prefixCls, "-current")
301
314
  }, showJumper ? /*#__PURE__*/React.createElement("input", {
302
315
  type: "text",
@@ -311,9 +324,7 @@ var Pagination = function Pagination(props) {
311
324
  }, totalPage)), /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('action-item', paginationLangMsg.nextPage)), /*#__PURE__*/React.createElement("button", {
312
325
  onClick: handleNext,
313
326
  disabled: page === totalPage || disabled
314
- }, /*#__PURE__*/React.createElement(Icon, {
315
- type: "arrow-right"
316
- })))));
327
+ }, innerIcon.next))));
317
328
  var lessPages = genArray(1, totalPage);
318
329
  var lessPagination = /*#__PURE__*/React.createElement("div", {
319
330
  className: classNames(prefixCls, 'less', {
@@ -326,9 +337,7 @@ var Pagination = function Pagination(props) {
326
337
  }, /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('pages-item', paginationLangMsg.prevPage)), /*#__PURE__*/React.createElement("button", {
327
338
  onClick: handlePrev,
328
339
  disabled: page === 1 || disabled
329
- }, /*#__PURE__*/React.createElement(Icon, {
330
- type: "arrow-left"
331
- }))), _mapInstanceProperty(lessPages).call(lessPages, function (item, index) {
340
+ }, innerIcon.prev)), _mapInstanceProperty(lessPages).call(lessPages, function (item, index) {
332
341
  return /*#__PURE__*/React.createElement("li", _extends({
333
342
  key: index
334
343
  }, itemAttr('pages-item', String(item), item === page)), /*#__PURE__*/React.createElement("button", {
@@ -340,9 +349,7 @@ var Pagination = function Pagination(props) {
340
349
  }), /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('pages-item', paginationLangMsg.nextPage)), /*#__PURE__*/React.createElement("button", {
341
350
  onClick: handleNext,
342
351
  disabled: page === totalPage || disabled
343
- }, /*#__PURE__*/React.createElement(Icon, {
344
- type: "arrow-right"
345
- })))));
352
+ }, innerIcon.next))));
346
353
  var nicetyPages = lessPages;
347
354
 
348
355
  if (totalPage >= 8) {
@@ -371,31 +378,26 @@ var Pagination = function Pagination(props) {
371
378
  }, /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('pages-item', paginationLangMsg.prevPage)), /*#__PURE__*/React.createElement("button", {
372
379
  onClick: handlePrev,
373
380
  disabled: page === 1 || disabled
374
- }, /*#__PURE__*/React.createElement(Icon, {
375
- type: "arrow-left"
376
- }))), _mapInstanceProperty(nicetyPages).call(nicetyPages, function (item, index) {
381
+ }, innerIcon.prev)), _mapInstanceProperty(nicetyPages).call(nicetyPages, function (item, index) {
377
382
  var handleChangePage = function handleChangePage() {
378
383
  return typeof item === 'string' ? item === '<<' ? jumpPrev() : jumpNext() : changePage(item);
379
384
  };
380
385
 
381
386
  var pageText = typeof item === 'string' ? '...' : item;
382
- var jumperIconType = item === '<<' ? 'double-arrow-left' : 'double-arrow-right';
387
+ var jumperIconType = item === '<<' ? innerIcon.jumpPrev : innerIcon.jumpNext;
383
388
  var title = typeof item === 'string' ? paginationLangMsg[item === '<<' ? 'forward' : 'backward'] : String(item);
384
389
  return /*#__PURE__*/React.createElement("li", _extends({
385
390
  key: index
386
391
  }, itemAttr('pages-item', title, item === page)), /*#__PURE__*/React.createElement("button", {
387
392
  onClick: handleChangePage,
388
393
  disabled: disabled
389
- }, pageText, typeof item === 'string' && /*#__PURE__*/React.createElement(Icon, {
390
- type: jumperIconType,
394
+ }, pageText, typeof item === 'string' && /*#__PURE__*/React.cloneElement(jumperIconType, {
391
395
  className: "".concat(prefixCls, "-pages-jumper-icon")
392
396
  })));
393
397
  }), /*#__PURE__*/React.createElement("li", _extends({}, itemAttr('pages-item', paginationLangMsg.nextPage)), /*#__PURE__*/React.createElement("button", {
394
398
  onClick: handleNext,
395
399
  disabled: page === totalPage || disabled
396
- }, /*#__PURE__*/React.createElement(Icon, {
397
- type: "arrow-right"
398
- })))), showJumper && /*#__PURE__*/React.createElement("div", {
400
+ }, innerIcon.next))), showJumper && /*#__PURE__*/React.createElement("div", {
399
401
  className: "".concat(prefixCls, "-jumper")
400
402
  }, /*#__PURE__*/React.createElement("input", {
401
403
  type: "text",
@@ -428,11 +430,8 @@ var Pagination = function Pagination(props) {
428
430
  }, dropdownProps, {
429
431
  onVisibleChange: dropdownVisibleChange
430
432
  }), /*#__PURE__*/React.createElement("button", {
431
- className: "".concat(prefixCls, "-options-size")
432
- }, size, /*#__PURE__*/React.createElement(Icon, {
433
- type: "arrow-down",
434
- className: classNames("".concat(prefixCls, "-dropdown-icon"), _defineProperty({}, "".concat(prefixCls, "-dropdown-icon-open"), isOpen))
435
- })))
433
+ className: classNames("".concat(prefixCls, "-options-size"), "".concat(prefixCls, "-options-dropdown"), _defineProperty({}, "".concat(prefixCls, "-options-dropdown-open"), isOpen))
434
+ }, size, innerIcon.down))
436
435
  })));
437
436
  var mapPagination = {
438
437
  basic: normalPagination,
@@ -707,17 +707,17 @@
707
707
  -webkit-transform: translateY(-50%);
708
708
  transform: translateY(-50%);
709
709
  }
710
- .kd-pagination.nicety .kd-pagination-options .kd-pagination-options-size .kd-pagination-dropdown-icon-open {
710
+ .kd-pagination.nicety .kd-pagination-options .kd-pagination-options-size.kd-pagination-options-dropdown-open i {
711
711
  -webkit-transform: rotate(180deg) translateY(50%);
712
712
  transform: rotate(180deg) translateY(50%);
713
713
  }
714
- .kd-pagination-dropdown-icon {
714
+ .kd-pagination-options-dropdown i {
715
715
  -webkit-transition: -webkit-transform var(--kd-g-duration, 0.3s);
716
716
  transition: -webkit-transform var(--kd-g-duration, 0.3s);
717
717
  transition: transform var(--kd-g-duration, 0.3s);
718
718
  transition: transform var(--kd-g-duration, 0.3s), -webkit-transform var(--kd-g-duration, 0.3s);
719
719
  }
720
- .kd-pagination-dropdown-icon-open {
720
+ .kd-pagination-options-dropdown-open i {
721
721
  -webkit-transform: rotate(180deg);
722
722
  transform: rotate(180deg);
723
723
  }
@@ -25,6 +25,7 @@
25
25
  display: inline-block;
26
26
  margin-right: 12px;
27
27
  vertical-align: middle;
28
+
28
29
  .@{pagination-prefix-cls}-current-input {
29
30
  box-sizing: border-box;
30
31
  width: 44px;
@@ -303,6 +304,7 @@
303
304
  .@{pagination-pages-prefix-cls} {
304
305
  .reset-component;
305
306
  display: inline-block;
307
+
306
308
  &-item {
307
309
  .reset-component;
308
310
  position: relative;
@@ -372,6 +374,7 @@
372
374
  .@{pagination-pages-prefix-cls} {
373
375
  .reset-component;
374
376
  display: inline-block;
377
+
375
378
  &-item {
376
379
  .reset-component;
377
380
  position: relative;
@@ -388,6 +391,7 @@
388
391
  &.active {
389
392
  button {
390
393
  border-color: @pagination-border-hover-color;
394
+
391
395
  &:disabled {
392
396
  border-color: @pagination-border-disabled-color;
393
397
  }
@@ -577,16 +581,24 @@
577
581
  transform: translateY(-50%);
578
582
  }
579
583
 
580
- .@{pagination-prefix-cls}-dropdown-icon-open {
581
- transform: rotate(180deg) translateY(50%);
584
+ &.@{pagination-prefix-cls}-options-dropdown-open {
585
+ i {
586
+ transform: rotate(180deg) translateY(50%);
587
+ }
582
588
  }
583
589
  }
584
590
  }
585
591
  }
586
- &-dropdown-icon {
587
- transition: transform @duration-promptly;
592
+
593
+ &-options-dropdown {
594
+ i {
595
+ transition: transform @duration-promptly;
596
+ }
597
+
588
598
  &-open {
589
- transform: rotate(180deg);
599
+ i {
600
+ transform: rotate(180deg);
601
+ }
590
602
  }
591
603
  }
592
604
  }
package/es/radio/index.js CHANGED
@@ -3,6 +3,7 @@ import Group from './group';
3
3
  import Button from './radio-button';
4
4
  var Radio = InternalRadio;
5
5
  Radio.Group = Group;
6
+ Radio.Group.displayName = 'RadioGroup';
6
7
  Radio.Button = Button;
7
8
  export { Group, Button };
8
9
  export default Radio;
@@ -59,4 +59,12 @@ export interface ISelectProps<T extends SelectValue> extends AbstractSelectProps
59
59
  onSearch?: (value?: string) => void;
60
60
  onClear?: () => void;
61
61
  onDropdownVisibleChange?: (value?: T) => void;
62
+ tagRender?: (props: TagProps) => void;
63
+ }
64
+ export interface TagProps {
65
+ value?: string;
66
+ label?: React.ReactNode;
67
+ disabled: boolean;
68
+ size: SelectSize;
69
+ onClose: () => void;
62
70
  }