@homecode/ui 4.20.0-beta-7 → 4.20.0-beta-8
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef, useRef, useState, useMemo, useEffect, createElement } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
-
import omit from 'lodash.omit';
|
|
5
4
|
import { Label } from '../Label/Label.js';
|
|
6
5
|
import { RequiredStar } from '../RequiredStar/RequiredStar.js';
|
|
7
6
|
import { AssistiveText } from '../AssistiveText/AssistiveText.js';
|
|
@@ -26,6 +25,7 @@ import '../Paranja/Paranja.styl.js';
|
|
|
26
25
|
import '../Popup/Popup.styl.js';
|
|
27
26
|
import '../Select/Select.styl.js';
|
|
28
27
|
import 'justorm/react';
|
|
28
|
+
import 'lodash.omit';
|
|
29
29
|
import '../Checkbox/Checkbox.styl.js';
|
|
30
30
|
import '../Container/Container.styl.js';
|
|
31
31
|
import '../DatePicker/DatePicker.styl.js';
|
|
@@ -211,23 +211,11 @@ const Input = forwardRef((props, ref) => {
|
|
|
211
211
|
};
|
|
212
212
|
const controlProps = useMemo(() => {
|
|
213
213
|
const controlProps = {
|
|
214
|
-
|
|
215
|
-
'className',
|
|
216
|
-
'clear',
|
|
217
|
-
'onClear',
|
|
218
|
-
'hasClear',
|
|
219
|
-
'placeholder',
|
|
220
|
-
'hideRequiredStar',
|
|
221
|
-
'size',
|
|
222
|
-
'error',
|
|
223
|
-
'checkAutofill',
|
|
224
|
-
'addonLeft',
|
|
225
|
-
'addonRight',
|
|
226
|
-
'forceLabelOnTop',
|
|
227
|
-
'changeOnEnd',
|
|
228
|
-
'scrollProps',
|
|
229
|
-
]),
|
|
214
|
+
type,
|
|
230
215
|
value: inputValue,
|
|
216
|
+
step,
|
|
217
|
+
required,
|
|
218
|
+
disabled,
|
|
231
219
|
...props.controlProps,
|
|
232
220
|
onChange: handleChange,
|
|
233
221
|
onFocus: handleFocus,
|
|
@@ -248,7 +236,27 @@ const Input = forwardRef((props, ref) => {
|
|
|
248
236
|
if (controlProps.value === undefined)
|
|
249
237
|
controlProps.value = ' ';
|
|
250
238
|
return controlProps;
|
|
251
|
-
}, [
|
|
239
|
+
}, [
|
|
240
|
+
type,
|
|
241
|
+
size,
|
|
242
|
+
variant,
|
|
243
|
+
inputValue,
|
|
244
|
+
defaultValue,
|
|
245
|
+
step,
|
|
246
|
+
required,
|
|
247
|
+
disabled,
|
|
248
|
+
props.controlProps,
|
|
249
|
+
handleChange,
|
|
250
|
+
onFocus,
|
|
251
|
+
onBlur,
|
|
252
|
+
isTextArea,
|
|
253
|
+
onTextAreaInput,
|
|
254
|
+
placeholder,
|
|
255
|
+
label,
|
|
256
|
+
isLabelOnTop,
|
|
257
|
+
autoComplete,
|
|
258
|
+
uid,
|
|
259
|
+
]);
|
|
252
260
|
const wrapControl = control => {
|
|
253
261
|
if (isTextArea) {
|
|
254
262
|
const { size } = props;
|