@widergy/mobile-ui 1.18.1 → 1.18.2
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/CHANGELOG.md +7 -0
- package/lib/components/CheckList/components/CheckBoxRenderer/index.js +8 -10
- package/lib/components/Label/propTypes.js +2 -5
- package/lib/components/UTBadge/index.js +2 -3
- package/lib/components/UTBaseInputField/README.md +31 -22
- package/lib/components/UTBaseInputField/components/ActionAdornment/index.js +6 -3
- package/lib/components/UTBaseInputField/constants.js +3 -1
- package/lib/components/UTBaseInputField/index.js +17 -6
- package/lib/components/UTBaseInputField/proptypes.js +10 -20
- package/lib/components/UTBaseInputField/theme.js +1 -2
- package/lib/components/UTButton/proptypes.js +4 -5
- package/lib/components/UTCBUInput/index.js +11 -12
- package/lib/components/UTCheckBox/README.md +14 -14
- package/lib/components/UTCheckBox/index.js +11 -6
- package/lib/components/UTCheckBox/proptypes.js +3 -4
- package/lib/components/UTCheckBox/theme.js +11 -4
- package/lib/components/UTCheckList/README.MD +22 -32
- package/lib/components/UTCheckList/index.js +6 -7
- package/lib/components/UTCheckList/proptypes.js +12 -24
- package/lib/components/UTFieldLabel/index.js +11 -13
- package/lib/components/UTIcon/index.js +2 -3
- package/lib/components/UTPasswordField/versions/V1/constants.js +4 -0
- package/lib/components/UTPasswordField/versions/V1/index.js +12 -13
- package/lib/components/UTPhoneInput/index.js +26 -27
- package/lib/components/UTProductItem/index.js +3 -3
- package/lib/components/UTSearchField/README.md +14 -13
- package/lib/components/UTSearchField/index.js +6 -4
- package/lib/components/UTSearchField/proptypes.js +5 -9
- package/lib/components/UTSelect/versions/V1/README.md +29 -35
- package/lib/components/UTSelect/versions/V1/index.js +73 -44
- package/lib/components/UTSelect/versions/V1/proptypes.js +17 -16
- package/lib/components/UTSelect/versions/V1/styles.js +3 -0
- package/lib/components/UTSelect/versions/V1/utils.js +21 -0
- package/lib/components/UTSelectableCard/index.js +5 -2
- package/lib/components/UTTextInput/versions/V1/README.md +35 -34
- package/lib/components/UTTextInput/versions/V1/components/TextInputField/index.js +13 -14
- package/lib/components/UTTextInput/versions/V1/index.js +12 -10
- package/lib/components/UTTextInput/versions/V1/proptypes.js +20 -19
- package/lib/components/UTValidation/index.js +2 -2
- package/lib/constants/inputs.js +1 -1
- package/package.json +1 -1
|
@@ -1,41 +1,39 @@
|
|
|
1
|
-
import { bool, elementType, func, instanceOf, number, oneOfType, shape, string } from 'prop-types';
|
|
2
|
-
import { ViewPropTypes } from 'deprecated-react-native-prop-types';
|
|
1
|
+
import { bool, elementType, func, instanceOf, number, object, oneOfType, shape, string } from 'prop-types';
|
|
3
2
|
|
|
4
3
|
import { validationDataProptypes } from '../../../UTValidation/constants';
|
|
5
4
|
|
|
6
5
|
import { SIZES } from './constants';
|
|
7
6
|
|
|
8
7
|
export const defaultProps = {
|
|
9
|
-
input: {
|
|
10
|
-
value: [],
|
|
11
|
-
onChange: () => {}
|
|
12
|
-
},
|
|
13
8
|
inputSize: SIZES.LARGE,
|
|
14
|
-
labelVariant: SIZES.LARGE,
|
|
15
9
|
maxRows: 1,
|
|
16
|
-
|
|
10
|
+
onChange: () => {},
|
|
11
|
+
style: {},
|
|
12
|
+
titleVariant: SIZES.LARGE,
|
|
13
|
+
value: null
|
|
17
14
|
};
|
|
18
15
|
|
|
19
16
|
export const propTypes = {
|
|
20
|
-
action: shape({
|
|
17
|
+
action: shape({
|
|
18
|
+
action: func,
|
|
19
|
+
colorTheme: string,
|
|
20
|
+
icon: elementType,
|
|
21
|
+
text: string
|
|
22
|
+
}),
|
|
21
23
|
alwaysShowPlaceholder: bool,
|
|
22
24
|
blurOnSubmit: bool,
|
|
23
25
|
disabled: bool,
|
|
24
26
|
error: string,
|
|
25
27
|
helpText: string,
|
|
26
28
|
id: oneOfType([number, string]),
|
|
27
|
-
input: shape({
|
|
28
|
-
value: string,
|
|
29
|
-
onChange: func
|
|
30
|
-
}),
|
|
31
29
|
inputRef: oneOfType([func, instanceOf(Object)]),
|
|
32
30
|
inputSize: string,
|
|
33
|
-
|
|
34
|
-
labelVariant: string,
|
|
31
|
+
keyboardType: string,
|
|
35
32
|
LeftIcon: elementType,
|
|
36
33
|
maxLength: number,
|
|
37
34
|
maxRows: number,
|
|
38
35
|
onBlur: func,
|
|
36
|
+
onChange: func,
|
|
39
37
|
onFocus: func,
|
|
40
38
|
onSubmitEditing: func,
|
|
41
39
|
placeholder: string,
|
|
@@ -46,12 +44,15 @@ export const propTypes = {
|
|
|
46
44
|
RightIcon: elementType,
|
|
47
45
|
showCharacterCount: bool,
|
|
48
46
|
style: shape({
|
|
49
|
-
container:
|
|
50
|
-
input:
|
|
51
|
-
root:
|
|
47
|
+
container: object,
|
|
48
|
+
input: object,
|
|
49
|
+
root: object
|
|
52
50
|
}),
|
|
53
51
|
suffix: string,
|
|
52
|
+
title: string,
|
|
53
|
+
titleVariant: string,
|
|
54
54
|
tooltip: string,
|
|
55
55
|
type: string,
|
|
56
|
-
validations: validationDataProptypes
|
|
56
|
+
validations: validationDataProptypes,
|
|
57
|
+
value: string
|
|
57
58
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { isEmpty } from 'lodash';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
|
-
import {
|
|
4
|
+
import { object } from 'prop-types';
|
|
5
5
|
|
|
6
6
|
import { useTheme } from '../../theming';
|
|
7
7
|
import UTIcon from '../UTIcon';
|
|
@@ -66,7 +66,7 @@ const UTValidation = ({ style, validationData }) => {
|
|
|
66
66
|
UTValidation.defaultProps = DEFAULT_PROPS;
|
|
67
67
|
|
|
68
68
|
UTValidation.propTypes = {
|
|
69
|
-
style:
|
|
69
|
+
style: object,
|
|
70
70
|
validationData: validationDataProptypes
|
|
71
71
|
};
|
|
72
72
|
|
package/lib/constants/inputs.js
CHANGED
package/package.json
CHANGED