diginet-core-ui 1.3.43 → 1.3.44

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.
@@ -0,0 +1,12 @@
1
+ <svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M34.66 9.48L25.43 0.34C25.22 0.12 24.92 0 24.62 0H8.46C6.55 0 5 1.54 5 3.43V35.57C5 37.46 6.55 39 8.46 39H10.31H29.68H31.53C33.44 39 34.99 37.46 34.99 35.57V18.04V16.98V11.42V11.31V10.28C35 9.97 34.87 9.68 34.66 9.48ZM25.77 3.9L31.06 9.14H26.92C26.28 9.14 25.77 8.63 25.77 8V3.9ZM32.69 18.13V35.58C32.69 36.21 32.17 36.72 31.54 36.72H26.38H13.62H8.46C7.82 36.72 7.31 36.21 7.31 35.58V3.43C7.31 2.8 7.83 2.29 8.46 2.29H23.46V8C23.46 9.89 25.01 11.43 26.92 11.43H31.04C31.05 11.43 31.06 11.43 31.07 11.43H32.69V16.99V18.13V18.13Z" fill="#2680EB"/>
3
+ <path d="M30.79 28.13C30.79 27.5 30.27 26.99 29.64 26.99H19.23C18.59 26.99 18.08 27.5 18.08 28.13C18.08 28.76 18.6 29.27 19.23 29.27H29.64C30.27 29.27 30.79 28.76 30.79 28.13Z" fill="#FF8C00"/>
4
+ <path d="M29.64 22.41H19.23C18.59 22.41 18.08 22.92 18.08 23.55C18.08 24.18 18.6 24.69 19.23 24.69H29.64C30.28 24.69 30.79 24.18 30.79 23.55C30.79 22.92 30.27 22.41 29.64 22.41Z" fill="#FF8C00"/>
5
+ <path d="M19.23 31.56C18.59 31.56 18.08 32.07 18.08 32.7C18.08 33.33 18.6 33.84 19.23 33.84H25.02C25.66 33.84 26.17 33.33 26.17 32.7C26.17 32.07 25.65 31.56 25.02 31.56H19.23Z" fill="#FF8C00"/>
6
+ <path d="M10.0601 25.8101H11.2001V23.5701H10.2401V22.8501C10.8601 22.7501 11.1701 22.6401 11.5201 22.4301H12.3901V25.8201H13.3301V26.7601H10.0601V25.8101Z" fill="#FF8C00"/>
7
+ <path d="M14.8801 25.9401C14.8801 25.4501 15.2401 25.0501 15.7801 25.0501C16.3201 25.0501 16.6801 25.4501 16.6801 25.9401C16.6801 26.4301 16.3201 26.8301 15.7801 26.8301C15.2401 26.8301 14.8801 26.4301 14.8801 25.9401Z" fill="#FF8C00"/>
8
+ <path d="M9.91999 33.17C11.09 32.23 11.94 31.5 11.94 30.91C11.94 30.52 11.69 30.34 11.3 30.34C10.98 30.34 10.72 30.55 10.49 30.75L9.85999 30.12C10.34 29.64 10.78 29.42 11.47 29.42C12.41 29.42 13.06 29.98 13.06 30.84C13.06 31.54 12.33 32.3 11.61 32.9C11.85 32.87 12.18 32.85 12.4 32.85H13.28V33.83H9.91999V33.17Z" fill="#FF8C00"/>
9
+ <path d="M14.88 33.03C14.88 32.54 15.24 32.14 15.78 32.14C16.32 32.14 16.68 32.54 16.68 33.03C16.68 33.52 16.32 33.92 15.78 33.92C15.24 33.92 14.88 33.53 14.88 33.03Z" fill="#FF8C00"/>
10
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M21.83 6.84C21.71 6.72 21.55 6.65 21.38 6.65H18.64C18.72 6.49 18.76 6.31 18.76 6.13C18.76 5.51 18.26 5 17.65 5H17.64C17.15 5.03 16.68 5.22 16.3 5.54C15.95 5.81 15.63 6.1 15.33 6.41C15.02 6.1 14.7 5.81 14.35 5.54C13.97 5.22 13.5 5.03 13.01 5C12.39 5 11.89 5.5 11.89 6.13C11.89 6.31 11.93 6.49 12.01 6.65H9.27001C8.92001 6.65 8.64001 6.94 8.64001 7.29V8.54C8.64001 8.89 8.92001 9.18 9.27001 9.18H21.38C21.73 9.18 22.01 8.89 22.01 8.54V7.29C22.01 7.12 21.94 6.96 21.83 6.84ZM12.88 6.65C12.86 6.63 12.84 6.61 12.81 6.59C12.72 6.54 12.64 6.47 12.58 6.39C12.54 6.31 12.51 6.22 12.52 6.13C12.52 6 12.57 5.88 12.66 5.78C12.75 5.69 12.88 5.64 13 5.64C13.36 5.67 13.7 5.82 13.98 6.05C14.17 6.2 14.36 6.36 14.53 6.53C14.57 6.56 14.62 6.61 14.66 6.65H12.88ZM18.07 6.39C18.01 6.47 17.93 6.54 17.84 6.59C17.81 6.61 17.79 6.63 17.77 6.65H15.99L16.11 6.53C16.29 6.36 16.47 6.2 16.67 6.06C16.95 5.82 17.29 5.68 17.64 5.64C17.77 5.64 17.9 5.69 17.99 5.79C18.08 5.88 18.13 6 18.13 6.14C18.13 6.22 18.11 6.31 18.07 6.39Z" fill="#FFAA00"/>
11
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M9.82001 9.74V15.98C9.83001 16.54 10.27 17 10.82 17H19.83C20.09 17 20.35 16.89 20.53 16.7C20.72 16.51 20.83 16.25 20.83 15.98V9.74H9.82001ZM15.57 15.23V15.71C15.57 15.79 15.51 15.85 15.44 15.85H15.12C15.05 15.85 14.99 15.79 14.99 15.71V15.28C14.71 15.26 14.44 15.21 14.18 15.11C14.06 15.07 14 14.94 14.03 14.81L14.08 14.61C14.1 14.54 14.15 14.48 14.21 14.44C14.28 14.41 14.35 14.41 14.42 14.43C14.65 14.53 14.9 14.57 15.14 14.58C15.48 14.58 15.72 14.44 15.72 14.2C15.72 13.97 15.52 13.82 15.09 13.67C14.45 13.45 14.01 13.15 14.01 12.57C14.03 12 14.46 11.54 15.01 11.49V11.05C15.01 10.97 15.08 10.91 15.15 10.9H15.47C15.54 10.91 15.6 10.97 15.6 11.05V11.45C15.82 11.45 16.03 11.49 16.24 11.56C16.37 11.6 16.44 11.73 16.41 11.86L16.36 12.04C16.35 12.11 16.3 12.17 16.24 12.21C16.18 12.24 16.11 12.25 16.04 12.22C15.85 12.16 15.64 12.12 15.44 12.12C15.05 12.12 14.93 12.29 14.93 12.46C14.93 12.66 15.14 12.79 15.64 12.98C16.35 13.23 16.64 13.57 16.63 14.12C16.61 14.71 16.16 15.19 15.57 15.23Z" fill="#FFAA00"/>
12
+ </svg>
@@ -31,7 +31,6 @@ const {
31
31
  disabled: fillDisabled
32
32
  }
33
33
  } = colors;
34
- const colorMap = new Map([['primary', active], ['success', success], ['warning', warning], ['danger', danger], ['info', info]]);
35
34
  const sizeMap = new Map([['tiny', {
36
35
  buttonSize: '24px',
37
36
  iconSize: '16px'
@@ -61,8 +60,17 @@ const alphaLoading = 0.2; // customIconSize calculated based on design size
61
60
 
62
61
  const customIconSize = width => width <= 24 ? width - 8 : width <= 32 ? width - 12 : width - 16;
63
62
 
63
+ const renderIconLoading = iconSize => {
64
+ return jsx(CircularProgress, {
65
+ size: 'extraSmall',
66
+ background: 'transparent',
67
+ color: 'currentColor',
68
+ strokeWidth: 3,
69
+ width: parseInt(iconSize)
70
+ });
71
+ };
72
+
64
73
  const ButtonIcon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
65
- type,
66
74
  viewType,
67
75
  color,
68
76
  size,
@@ -75,12 +83,10 @@ const ButtonIcon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
75
83
  disabled,
76
84
  style,
77
85
  onClick,
78
- icon,
79
86
  children,
80
- refs,
81
87
  loading,
82
88
  colorHover,
83
- ...props
89
+ id
84
90
  }, reference) => {
85
91
  var _sizeMap$get, _sizeMap$get2;
86
92
 
@@ -93,194 +99,11 @@ const ButtonIcon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
93
99
 
94
100
  const _height = isNaN(height) ? height : height + 'px';
95
101
 
96
- colorHover = colorMap.get(colorHover) || colorHover;
97
- const ButtonRoot = css`
98
- ${inlineFlex}
99
- ${positionRelative}
100
- ${justifyCenter}
101
- ${alignCenter}
102
- ${outlineNone}
103
- ${borderBox}
104
- ${cursorPointer}
105
- ${userSelectNone}
106
- padding: 0;
107
- border-radius: ${circular ? '50%' : '4px'};
108
- transition: background-color 0.5s, filter 0.5s;
109
- .DGN-UI-ButtonIcon-Icon {
110
- ${flexRow}
111
- ${positionRelative}
112
- ${borderBox}
113
- ${justifyCenter}
114
- ${alignCenter}
115
- }
116
- &.button-icon--disabled {
117
- cursor: not-allowed !important;
118
- color: ${systemDisabled} !important;
119
- &.outlined {
120
- border-color: ${systemDisabled} !important;
121
- background-color: transparent !important;
122
- }
123
- &.filled {
124
- background-color: ${fillDisabled} !important;
125
- filter: brightness(1) !important;
126
- }
127
- &.text {
128
- background-color: transparent !important;
129
- }
130
- }
131
- &.button-icon--loading {
132
- ${pointerEventsNone}
133
- }
134
- &.${size} {
135
- width: ${width ? _width : buttonSize};
136
- min-width: ${width ? _width : buttonSize};
137
- height: ${height ? _height : buttonSize};
138
- min-height: ${height ? _height : buttonSize};
139
- .DGN-UI-ButtonIcon-Icon {
140
- height: ${iconSize};
141
- min-height: ${iconSize};
142
- width: ${iconSize};
143
- min-width: ${iconSize};
144
- }
145
- }
146
- &.outlined {
147
- ${backgroundTransparent}
148
- &.default {
149
- ${border(1, rest)}
150
- color: ${rest};
151
- &.button-icon--loading,
152
- &:hover,
153
- &:focus,
154
- &:active {
155
- color: ${colorHover};
156
- border-color: ${colorHover};
157
- }
158
- &.button-icon--loading {
159
- background-color: ${hexToRGBA(colorHover, alphaLoading)};
160
- }
161
- ${Object.keys(alphaArr).map(key => `&:${key} {
162
- background-color: ${hexToRGBA(colorHover, alphaArr[key])};
163
- }`)}// &:hover | &:focus | &:active
164
- }
165
- &.${color} {
166
- ${color !== 'default' && border(1, colorMap.get(color))}
167
- color: ${colorMap.get(color)};
168
- &.button-icon--loading {
169
- background-color: ${hexToRGBA(colorMap.get(color), alphaLoading)};
170
- }
171
- ${Object.keys(alphaArr).map(key => `&:${key} {
172
- background-color: ${hexToRGBA(colorMap.get(color), alphaArr[key])};
173
- }`)}
174
- }
175
- &.custom-color {
176
- ${border(1, color)}
177
- color: ${color};
178
- &.button-icon--loading {
179
- background-color: ${hexToRGBA(color, alphaLoading)};
180
- }
181
- ${Object.keys(alphaArr).map(key => `&:${key} {
182
- background-color: ${hexToRGBA(color, alphaArr[key])};
183
- }`)}
184
- }
185
- }
186
- &.filled {
187
- ${borderNone}
188
- color: ${white};
189
- font-weight: bold;
190
- &.button-icon--loading,
191
- &:hover,
192
- &:focus {
193
- filter: brightness(0.85);
194
- }
195
- &:active {
196
- filter: brightness(0.7);
197
- }
198
- &.default {
199
- background-color: ${rest};
200
- &.button-icon--loading,
201
- &:hover,
202
- &:focus,
203
- &:active {
204
- background-color: ${colorHover};
205
- }
206
- }
207
- &.${color} {
208
- background-color: ${colorMap.get(color)};
209
- }
210
- &.custom-color {
211
- background-color: ${color};
212
- }
213
- }
214
- &.text {
215
- ${noBorder}
216
- ${backgroundTransparent}
217
- &.default {
218
- color: ${rest};
219
- &:hover,
220
- &:focus,
221
- &:active {
222
- color: ${colorHover};
223
- }
224
- &.button-icon--loading {
225
- color: ${active};
226
- background-color: ${hexToRGBA(colorHover, alphaLoading)};
227
- }
228
- ${Object.keys(alphaArr).map(key => `&:${key} {
229
- background-color: ${hexToRGBA(colorHover, alphaArr[key])};
230
- }`)}
231
- }
232
- &.${color} {
233
- color: ${colorMap.get(color)};
234
- &.button-icon--loading {
235
- background-color: ${hexToRGBA(colorMap.get(color), alphaLoading)};
236
- }
237
- ${Object.keys(alphaArr).map(key => `&:${key} {
238
- background-color: ${hexToRGBA(colorMap.get(color), alphaArr[key])};
239
- }`)}
240
- }
241
- &.custom-color {
242
- color: ${color};
243
- &.button-icon--loading {
244
- background-color: ${hexToRGBA(color, alphaLoading)};
245
- }
246
- ${Object.keys(alphaArr).map(key => `&:${key} {
247
- background-color: ${hexToRGBA(color, alphaArr[key])};
248
- }`)}
249
- }
250
- }
251
- &.ghost {
252
- ${backgroundTransparent}
253
- ${noBorder}
254
- color: ${rest};
255
- &.${size} {
256
- height: ${height ? _height : iconSize};
257
- min-height: ${height ? _height : iconSize};
258
- width: ${width ? _width : iconSize};
259
- min-width: ${width ? _width : iconSize};
260
- }
261
- &.loading,
262
- &:hover,
263
- &:focus {
264
- filter: brightness(0.85);
265
- }
266
- &:active {
267
- filter: brightness(0.7);
268
- }
269
- &.default {
270
- &:hover,
271
- &:focus,
272
- &:active {
273
- color: ${iconColorMap.get(capitalize(name)) || colorHover};
274
- }
275
- }
276
- &.${color} {
277
- color: ${colorMap.get(color)};
278
- }
279
- &.custom-color {
280
- color: ${color};
281
- }
282
- }
283
- `;
102
+ const _color = colors[color];
103
+ colorHover = colors[colorHover] || colorHover;
104
+
105
+ const _ButtonRootCSS = ButtonRootCSS(circular, size, width, _width, height, _height, buttonSize, iconSize, colorHover, color, _color, name);
106
+
284
107
  useImperativeHandle(reference, () => {
285
108
  const currentRef = ref.current || {};
286
109
  const _instance = {}; // methods
@@ -291,16 +114,6 @@ const ButtonIcon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
291
114
  return currentRef;
292
115
  });
293
116
 
294
- const iconLoading = () => {
295
- return jsx(CircularProgress, {
296
- size: 'extraSmall',
297
- background: 'transparent',
298
- color: 'currentColor',
299
- strokeWidth: 3,
300
- width: parseInt(iconSize)
301
- });
302
- };
303
-
304
117
  const _onClick = event => {
305
118
  onClick && event.stopPropagation();
306
119
  if (disabled || loading) return;
@@ -320,22 +133,210 @@ const ButtonIcon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
320
133
  });
321
134
  }
322
135
 
323
- return jsx("button", {
324
- css: ButtonRoot,
136
+ return jsx("div", {
137
+ css: _ButtonRootCSS,
325
138
  style: style,
326
139
  ref: ref,
327
- type: type,
328
140
  onClick: _onClick,
329
141
  className: ['DGN-UI-ButtonIcon', viewType, getClassNameFromColor(color), size, loading && 'button-icon--loading', disabled && 'button-icon--disabled', className].join(' ').trim().replace(/\s+/g, ' '),
330
- ...props
331
- }, loading && iconLoading(), !loading && jsx("span", {
142
+ id: id
143
+ }, loading && renderIconLoading(iconSize), !loading && jsx("span", {
332
144
  className: 'DGN-UI-ButtonIcon-Icon'
333
145
  }, " ", node, " "), !disabled && !loading && viewType !== 'ghost' && jsx(Ripple, {
334
146
  color: getRippleColor(color, viewType, allColors),
335
- circular: true
147
+ circular: circular
336
148
  }));
337
- }, [size, viewType, color, colorHover, disabled, name, children, onClick, loading, circular, viewBox, width, height]);
149
+ }, [style, className, size, viewType, color, colorHover, disabled, name, children, onClick, loading, circular, viewBox, width, height]);
338
150
  }));
151
+
152
+ const ButtonRootCSS = (circular, size, width, _width, height, _height, buttonSize, iconSize, colorHover, color, _color, name) => css`
153
+ ${inlineFlex};
154
+ ${positionRelative};
155
+ ${justifyCenter};
156
+ ${alignCenter};
157
+ ${outlineNone};
158
+ ${borderBox};
159
+ ${cursorPointer};
160
+ ${userSelectNone};
161
+ padding: 0;
162
+ border-radius: ${circular ? '50%' : '4px'};
163
+ transition: background-color 0.5s, filter 0.5s;
164
+ .DGN-UI-ButtonIcon-Icon {
165
+ ${flexRow};
166
+ ${positionRelative};
167
+ ${borderBox};
168
+ ${justifyCenter};
169
+ ${alignCenter};
170
+ }
171
+ &.button-icon--disabled {
172
+ cursor: not-allowed !important;
173
+ color: ${systemDisabled} !important;
174
+ &.outlined {
175
+ border-color: ${systemDisabled} !important;
176
+ background-color: transparent !important;
177
+ }
178
+ &.filled {
179
+ background-color: ${fillDisabled} !important;
180
+ filter: brightness(1) !important;
181
+ }
182
+ &.text {
183
+ background-color: transparent !important;
184
+ }
185
+ }
186
+ &.button-icon--loading {
187
+ ${pointerEventsNone};
188
+ }
189
+ &.${size} {
190
+ width: ${width ? _width : buttonSize};
191
+ min-width: ${width ? _width : buttonSize};
192
+ height: ${height ? _height : buttonSize};
193
+ min-height: ${height ? _height : buttonSize};
194
+ .DGN-UI-ButtonIcon-Icon {
195
+ height: ${iconSize};
196
+ min-height: ${iconSize};
197
+ width: ${iconSize};
198
+ min-width: ${iconSize};
199
+ }
200
+ }
201
+ &.outlined {
202
+ ${backgroundTransparent};
203
+ &.default {
204
+ ${border(1, rest)}
205
+ color: ${rest};
206
+ &.button-icon--loading,
207
+ &:hover,
208
+ &:focus,
209
+ &:active {
210
+ color: ${colorHover};
211
+ border-color: ${colorHover};
212
+ }
213
+ &.button-icon--loading {
214
+ background-color: ${hexToRGBA(colorHover, alphaLoading)};
215
+ }
216
+ ${Object.keys(alphaArr).map(key => `&:${key} {
217
+ background-color: ${hexToRGBA(colorHover, alphaArr[key])};
218
+ }`)}// &:hover | &:focus | &:active
219
+ }
220
+ &.${color} {
221
+ ${color !== 'default' && border(1, _color)}
222
+ color: ${_color};
223
+ &.button-icon--loading {
224
+ background-color: ${hexToRGBA(_color, alphaLoading)};
225
+ }
226
+ ${Object.keys(alphaArr).map(key => `&:${key} {
227
+ background-color: ${hexToRGBA(_color, alphaArr[key])};
228
+ }`)}
229
+ }
230
+ &.custom-color {
231
+ ${border(1, color)}
232
+ color: ${color};
233
+ &.button-icon--loading {
234
+ background-color: ${hexToRGBA(color, alphaLoading)};
235
+ }
236
+ ${Object.keys(alphaArr).map(key => `&:${key} {
237
+ background-color: ${hexToRGBA(color, alphaArr[key])};
238
+ }`)}
239
+ }
240
+ }
241
+ &.filled {
242
+ ${borderNone};
243
+ color: ${color === white ? rest : white};
244
+ font-weight: bold;
245
+ &.button-icon--loading,
246
+ &:hover,
247
+ &:focus {
248
+ filter: brightness(0.85);
249
+ }
250
+ &:active {
251
+ filter: brightness(0.7);
252
+ }
253
+ &.default {
254
+ background-color: ${rest};
255
+ &.button-icon--loading,
256
+ &:hover,
257
+ &:focus,
258
+ &:active {
259
+ background-color: ${colorHover};
260
+ }
261
+ }
262
+ &.${color} {
263
+ background-color: ${_color};
264
+ }
265
+ &.custom-color {
266
+ background-color: ${color};
267
+ }
268
+ }
269
+ &.text {
270
+ ${noBorder};
271
+ ${backgroundTransparent};
272
+ &.default {
273
+ color: ${rest};
274
+ &:hover,
275
+ &:focus,
276
+ &:active {
277
+ color: ${colorHover};
278
+ }
279
+ &.button-icon--loading {
280
+ color: ${active};
281
+ background-color: ${hexToRGBA(colorHover, alphaLoading)};
282
+ }
283
+ ${Object.keys(alphaArr).map(key => `&:${key} {
284
+ background-color: ${hexToRGBA(colorHover, alphaArr[key])};
285
+ }`)}
286
+ }
287
+ &.${color} {
288
+ color: ${_color};
289
+ &.button-icon--loading {
290
+ background-color: ${hexToRGBA(_color, alphaLoading)};
291
+ }
292
+ ${Object.keys(alphaArr).map(key => `&:${key} {
293
+ background-color: ${hexToRGBA(_color, alphaArr[key])};
294
+ }`)}
295
+ }
296
+ &.custom-color {
297
+ color: ${color};
298
+ &.button-icon--loading {
299
+ background-color: ${hexToRGBA(color, alphaLoading)};
300
+ }
301
+ ${Object.keys(alphaArr).map(key => `&:${key} {
302
+ background-color: ${hexToRGBA(color, alphaArr[key])};
303
+ }`)}
304
+ }
305
+ }
306
+ &.ghost {
307
+ ${backgroundTransparent};
308
+ ${noBorder};
309
+ color: ${rest};
310
+ &.${size} {
311
+ height: ${height ? _height : iconSize};
312
+ min-height: ${height ? _height : iconSize};
313
+ width: ${width ? _width : iconSize};
314
+ min-width: ${width ? _width : iconSize};
315
+ }
316
+ &.loading,
317
+ &:hover,
318
+ &:focus {
319
+ filter: brightness(0.85);
320
+ }
321
+ &:active {
322
+ filter: brightness(0.7);
323
+ }
324
+ &.default {
325
+ &:hover,
326
+ &:focus,
327
+ &:active {
328
+ color: ${iconColorMap.get(capitalize(name)) || colorHover};
329
+ }
330
+ }
331
+ &.${color} {
332
+ color: ${_color};
333
+ }
334
+ &.custom-color {
335
+ color: ${color};
336
+ }
337
+ }
338
+ `;
339
+
339
340
  ButtonIcon.defaultProps = {
340
341
  viewType: 'outlined',
341
342
  color: 'default',
@@ -347,9 +348,6 @@ ButtonIcon.defaultProps = {
347
348
  viewBox: true
348
349
  };
349
350
  ButtonIcon.propTypes = {
350
- /** The type attribute specifies the type of tag button */
351
- type: PropTypes.oneOf(['button', 'submit', 'reset']),
352
-
353
351
  /** used to fill background for button */
354
352
  viewType: PropTypes.oneOf(['text', 'outlined', 'filled', 'ghost']),
355
353
 
@@ -397,9 +395,6 @@ ButtonIcon.propTypes = {
397
395
  /** element to display in button */
398
396
  children: PropTypes.node,
399
397
 
400
- /** any props else */
401
- props: PropTypes.any,
402
-
403
398
  /** status loading of button */
404
399
  loading: PropTypes.bool,
405
400
 
@@ -316,11 +316,11 @@ Checkbox.propTypes = {
316
316
  /** The function will run to return a true or false value of Radio Component */
317
317
  onChange: PropTypes.func,
318
318
 
319
- /**
320
- * ref methods
321
- *
322
- * * setChecked: Set check for input
323
- * * getChecked: Get check of input
319
+ /**
320
+ * ref methods
321
+ *
322
+ * * setChecked: Set check for input
323
+ * * getChecked: Get check of input
324
324
  */
325
325
  ref: PropTypes.any
326
326
  };