@widergy/mobile-ui 1.18.0 → 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.
Files changed (43) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/components/CheckList/components/CheckBoxRenderer/index.js +8 -10
  3. package/lib/components/Label/propTypes.js +2 -5
  4. package/lib/components/UTBadge/index.js +2 -3
  5. package/lib/components/UTBaseInputField/README.md +31 -22
  6. package/lib/components/UTBaseInputField/components/ActionAdornment/index.js +6 -3
  7. package/lib/components/UTBaseInputField/constants.js +3 -1
  8. package/lib/components/UTBaseInputField/index.js +17 -6
  9. package/lib/components/UTBaseInputField/proptypes.js +10 -20
  10. package/lib/components/UTBaseInputField/theme.js +1 -2
  11. package/lib/components/UTButton/proptypes.js +4 -5
  12. package/lib/components/UTCBUInput/index.js +11 -12
  13. package/lib/components/UTCheckBox/README.md +14 -14
  14. package/lib/components/UTCheckBox/index.js +11 -6
  15. package/lib/components/UTCheckBox/proptypes.js +3 -4
  16. package/lib/components/UTCheckBox/theme.js +11 -4
  17. package/lib/components/UTCheckList/README.MD +22 -32
  18. package/lib/components/UTCheckList/index.js +6 -7
  19. package/lib/components/UTCheckList/proptypes.js +12 -24
  20. package/lib/components/UTFieldLabel/index.js +11 -13
  21. package/lib/components/UTIcon/index.js +2 -3
  22. package/lib/components/UTLabel/constants.js +7 -1
  23. package/lib/components/UTLabel/theme.js +3 -2
  24. package/lib/components/UTPasswordField/versions/V1/constants.js +4 -0
  25. package/lib/components/UTPasswordField/versions/V1/index.js +12 -13
  26. package/lib/components/UTPhoneInput/index.js +26 -27
  27. package/lib/components/UTProductItem/index.js +3 -3
  28. package/lib/components/UTSearchField/README.md +14 -13
  29. package/lib/components/UTSearchField/index.js +6 -4
  30. package/lib/components/UTSearchField/proptypes.js +5 -9
  31. package/lib/components/UTSelect/versions/V1/README.md +29 -35
  32. package/lib/components/UTSelect/versions/V1/index.js +73 -44
  33. package/lib/components/UTSelect/versions/V1/proptypes.js +17 -16
  34. package/lib/components/UTSelect/versions/V1/styles.js +3 -0
  35. package/lib/components/UTSelect/versions/V1/utils.js +21 -0
  36. package/lib/components/UTSelectableCard/index.js +5 -2
  37. package/lib/components/UTTextInput/versions/V1/README.md +35 -34
  38. package/lib/components/UTTextInput/versions/V1/components/TextInputField/index.js +13 -14
  39. package/lib/components/UTTextInput/versions/V1/index.js +12 -10
  40. package/lib/components/UTTextInput/versions/V1/proptypes.js +20 -19
  41. package/lib/components/UTValidation/index.js +2 -2
  42. package/lib/constants/inputs.js +1 -1
  43. 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
- style: {}
10
+ onChange: () => {},
11
+ style: {},
12
+ titleVariant: SIZES.LARGE,
13
+ value: null
17
14
  };
18
15
 
19
16
  export const propTypes = {
20
- action: shape({ icon: elementType, action: func, colorTheme: string, text: string }),
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
- label: string,
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: ViewPropTypes.style,
50
- input: ViewPropTypes.style,
51
- root: ViewPropTypes.style
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 { ViewPropTypes } from 'deprecated-react-native-prop-types';
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: ViewPropTypes.style,
69
+ style: object,
70
70
  validationData: validationDataProptypes
71
71
  };
72
72
 
@@ -1,4 +1,4 @@
1
- export const LABEL_VARIANTS = {
1
+ export const TITLE_VARIANTS = {
2
2
  large: 'body',
3
3
  small: 'small'
4
4
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "1.18.0",
5
+ "version": "1.18.2",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [