@widergy/mobile-ui 0.35.4 → 0.35.5

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 (48) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/lib/components/AvatarImage/proptypes.js +1 -1
  3. package/lib/components/Button/propTypes.js +1 -1
  4. package/lib/components/CaptionLabel/propTypes.js +1 -1
  5. package/lib/components/Carousel/components/CarouselItem/index.js +2 -1
  6. package/lib/components/Carousel/propTypes.js +2 -1
  7. package/lib/components/CheckList/components/CheckBoxRenderer/index.js +1 -1
  8. package/lib/components/CheckList/proptypes.js +1 -1
  9. package/lib/components/Checkbox/propTypes.js +1 -1
  10. package/lib/components/Dropdown/propTypes.js +1 -1
  11. package/lib/components/Icon/propTypes.js +1 -1
  12. package/lib/components/IconBadge/propTypes.js +1 -1
  13. package/lib/components/IconButton/propTypes.js +1 -1
  14. package/lib/components/ImageButton/propTypes.js +1 -1
  15. package/lib/components/ImageLabel/propTypes.js +1 -1
  16. package/lib/components/ImageRadio/index.js +2 -1
  17. package/lib/components/Input/propTypes.js +1 -1
  18. package/lib/components/Loading/index.js +2 -1
  19. package/lib/components/Picker/index.js +2 -1
  20. package/lib/components/RadioGroup/components/RadioButton/index.js +2 -1
  21. package/lib/components/RadioGroup/index.js +2 -1
  22. package/lib/components/SeparatorBar/propTypes.js +1 -1
  23. package/lib/components/Snackbar/index.js +2 -1
  24. package/lib/components/Surface/propTypes.js +1 -1
  25. package/lib/components/Touchable/propTypes.js +1 -1
  26. package/lib/components/TransitionText/propTypes.js +1 -1
  27. package/lib/components/UTDetailDrawer/propTypes.js +1 -1
  28. package/lib/components/UTImage/propTypes.js +1 -1
  29. package/lib/components/UTLoading/index.js +1 -1
  30. package/lib/components/UTMenu/components/MenuOption/index.js +2 -1
  31. package/lib/components/UTModal/proptypes.js +1 -1
  32. package/lib/components/UTOnBoarding/components/CardContent/propTypes.js +2 -1
  33. package/lib/components/UTOnBoarding/propTypes.js +1 -1
  34. package/lib/components/UTPasswordField/components/PasswordValidations/index.js +2 -1
  35. package/lib/components/UTPasswordField/proptypes.js +1 -1
  36. package/lib/components/UTProgressBar/index.js +2 -1
  37. package/lib/components/UTRoundView/propTypes.js +1 -1
  38. package/lib/components/UTStepFeedback/components/CircleNumber/index.js +2 -1
  39. package/lib/components/UTSwitch/proptypes.js +1 -1
  40. package/lib/components/UTTextInput/components/BaseInput/index.js +2 -1
  41. package/lib/components/UTWorkflowContainer/components/BottomStepHandler/index.js +2 -1
  42. package/lib/components/UTWorkflowContainer/components/Header/index.js +2 -1
  43. package/lib/components/UTWorkflowContainer/components/StepsHandler/components/ActionButton/types.js +2 -1
  44. package/lib/components/UTWorkflowContainer/components/StepsHandler/index.js +2 -1
  45. package/lib/components/UTWorkflowContainer/index.js +2 -1
  46. package/lib/components/WithLoading/index.js +2 -1
  47. package/lib/theming/DefaultTheme.js +2 -2
  48. package/package.json +2 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.35.5](https://github.com/widergy/mobile-ui/compare/v0.35.4...v0.35.5) (2022-10-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * viewproptypes library import change ([#227](https://github.com/widergy/mobile-ui/issues/227)) ([7976f2a](https://github.com/widergy/mobile-ui/commit/7976f2a1e37cbe75f82b256c4da8fb60d38de548))
7
+
1
8
  ## [0.35.4](https://github.com/widergy/mobile-ui/compare/v0.35.3...v0.35.4) (2022-10-25)
2
9
 
3
10
 
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { number, string } from 'prop-types';
3
3
 
4
4
  import { themeType } from '../../theming';
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { bool, func, number, oneOf, shape, string } from 'prop-types';
3
3
 
4
4
  import iconPropTypes from '../Icon/propTypes';
@@ -1,5 +1,5 @@
1
1
  import { bool, oneOfType, string } from 'prop-types';
2
- import { ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
3
 
4
4
  export default {
5
5
  color: oneOfType([bool, string]),
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { View, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { View } from 'react-native';
3
4
  import { bool } from 'prop-types';
4
5
 
5
6
  import styles, { getCarouselItemForcedStyle } from '../../styles';
@@ -1,4 +1,5 @@
1
- import { ScrollView, ViewPropTypes } from 'react-native';
1
+ import { ScrollView } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
3
  import { arrayOf, bool, func, instanceOf, node, number, oneOfType, string } from 'prop-types';
3
4
 
4
5
  export const carouselForcedProps = {
@@ -1,5 +1,5 @@
1
1
  import React, { memo } from 'react';
2
- import { ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
3
  import { bool, string, func, number, shape, any } from 'prop-types';
4
4
 
5
5
  import Checkbox from '../../../Checkbox/index';
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { bool, number, shape, oneOfType, string, arrayOf, elementType, any } from 'prop-types';
3
3
 
4
4
  export default {
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { bool, func, node, number, oneOfType, string } from 'prop-types';
3
3
 
4
4
  import { themeType } from '../../theming';
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { arrayOf, bool, func, node, number, oneOf, oneOfType, string, shape } from 'prop-types';
3
3
 
4
4
  import labelPropTypes from '../Label/propTypes';
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { number, string } from 'prop-types';
3
3
 
4
4
  export default {
@@ -1,5 +1,5 @@
1
1
  import { bool, element, string } from 'prop-types';
2
- import { ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
3
 
4
4
  import { themeType } from '../../theming';
5
5
 
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { bool, func, number, string } from 'prop-types';
3
3
 
4
4
  export default {
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { bool, func, string } from 'prop-types';
3
3
 
4
4
  import imageIconPropTypes from '../ImageIcon/propTypes';
@@ -1,5 +1,5 @@
1
1
  import { string, func } from 'prop-types';
2
- import { ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
3
 
4
4
  export default {
5
5
  title: string,
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { View, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { View } from 'react-native';
3
4
  import { string, arrayOf, shape, func, number, any } from 'prop-types';
4
5
  import _ from 'lodash';
5
6
 
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { bool, func, instanceOf, number, oneOfType, shape, string } from 'prop-types';
3
3
 
4
4
  import captionPropTypes from '../CaptionLabel/propTypes';
@@ -1,5 +1,6 @@
1
1
  import React, { Component } from 'react';
2
- import { ViewPropTypes, Animated, Easing, View } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { Animated, Easing, View } from 'react-native';
3
4
  import { string, number } from 'prop-types';
4
5
 
5
6
  import Label from '../Label';
@@ -1,5 +1,6 @@
1
1
  import React, { Fragment } from 'react';
2
- import { View, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { View } from 'react-native';
3
4
  import { string, bool, oneOfType, shape, func } from 'prop-types';
4
5
 
5
6
  import Label from '../Label';
@@ -1,5 +1,6 @@
1
1
  import React, { Component, Fragment } from 'react';
2
- import { View, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { View } from 'react-native';
3
4
  import PropTypes from 'prop-types';
4
5
 
5
6
  import SeparatorBar from '../../../SeparatorBar';
@@ -1,5 +1,6 @@
1
1
  import React, { Component } from 'react';
2
- import { View, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { View } from 'react-native';
3
4
  import PropTypes from 'prop-types';
4
5
 
5
6
  import Label from '../Label';
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
 
3
3
  import { themeType } from '../../theming';
4
4
 
@@ -1,5 +1,6 @@
1
1
  import React, { Component } from 'react';
2
- import { SafeAreaView, Animated, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { SafeAreaView, Animated } from 'react-native';
3
4
  import PropTypes from 'prop-types';
4
5
 
5
6
  import { withTheme, themeType } from '../../theming';
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { number } from 'prop-types';
3
3
 
4
4
  export default {
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { bool, node, func, string } from 'prop-types';
3
3
 
4
4
  import { themeType } from '../../theming';
@@ -1,5 +1,5 @@
1
1
  import { bool, func, number, string } from 'prop-types';
2
- import { ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
3
 
4
4
  const propTypes = {
5
5
  delay: number,
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { bool, func, number, any, oneOfType, shape, string } from 'prop-types';
3
3
 
4
4
  export const UTDetailDrawerDefaultProps = {
@@ -1,5 +1,5 @@
1
1
  import { string, func, bool } from 'prop-types';
2
- import { ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
3
 
4
4
  export default {
5
5
  source: string,
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { number, string, bool } from 'prop-types';
3
- import { ViewPropTypes } from 'react-native';
3
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
4
4
 
5
5
  import Loading from '../Loading';
6
6
 
@@ -1,6 +1,7 @@
1
1
  import { any, shape, bool, func, string } from 'prop-types';
2
2
  import React, { memo } from 'react';
3
- import { TouchableOpacity, Text, ViewPropTypes } from 'react-native';
3
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
4
+ import { TouchableOpacity, Text } from 'react-native';
4
5
 
5
6
  import styles from './styles';
6
7
 
@@ -1,5 +1,5 @@
1
1
  import { string, func, shape, number, bool, element } from 'prop-types';
2
- import { ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
3
 
4
4
  import { themeType } from '../../theming';
5
5
  import { IS_ANDROID } from '../../utils/platformUtils/constants';
@@ -1,5 +1,6 @@
1
1
  import { func, shape, string, number, instanceOf, oneOfType } from 'prop-types';
2
- import { Animated, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { Animated } from 'react-native';
3
4
 
4
5
  import buttonPropTypes from '../../../Button/propTypes';
5
6
 
@@ -1,5 +1,5 @@
1
1
  import { func, string, shape, number, arrayOf, bool } from 'prop-types';
2
- import { ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
3
 
4
4
  import cardContentPropTypes, { pagePropTypes } from './components/CardContent/propTypes';
5
5
 
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { arrayOf, shape, string, bool } from 'prop-types';
3
- import { View, ViewPropTypes } from 'react-native';
3
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
4
+ import { View } from 'react-native';
4
5
  import _ from 'lodash';
5
6
 
6
7
  import { useTheme } from '../../../../theming';
@@ -1,5 +1,5 @@
1
1
  import { any, arrayOf, bool, element, func, oneOfType, shape, string } from 'prop-types';
2
- import { ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
3
 
4
4
  export default {
5
5
  passwordValidations: arrayOf(shape({ expression: string, requirement: string, error: string })),
@@ -1,5 +1,6 @@
1
1
  import React, { useRef, useEffect, useCallback } from 'react';
2
- import { View, Animated, Easing, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { View, Animated, Easing } from 'react-native';
3
4
  import { number, shape, bool } from 'prop-types';
4
5
  import _ from 'lodash';
5
6
  // eslint-disable-next-line import/no-unresolved
@@ -1,4 +1,4 @@
1
- import { ViewPropTypes } from 'react-native';
1
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2
2
  import { shape } from 'prop-types';
3
3
 
4
4
  export default {
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { View, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { View } from 'react-native';
3
4
  import { bool, number, shape } from 'prop-types';
4
5
 
5
6
  import Icon from '../../../Icon';
@@ -1,5 +1,5 @@
1
1
  import { string, func, any, shape, number } from 'prop-types';
2
- import { ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
3
 
4
4
  export default {
5
5
  style: ViewPropTypes.style,
@@ -8,7 +8,8 @@ import React, {
8
8
  useEffect,
9
9
  useMemo
10
10
  } from 'react';
11
- import { TextInput, ViewPropTypes } from 'react-native';
11
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
12
+ import { TextInput } from 'react-native';
12
13
  import _ from 'lodash';
13
14
 
14
15
  import { withTheme } from '../../../../theming';
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { View, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { View } from 'react-native';
3
4
  import { number, bool, shape, oneOf, func, string, any } from 'prop-types';
4
5
  import _ from 'lodash';
5
6
 
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { View, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { View } from 'react-native';
3
4
  import { number, bool, shape, oneOf, func, string } from 'prop-types';
4
5
 
5
6
  import UTProgressBar from '../../../UTProgressBar';
@@ -1,5 +1,6 @@
1
1
  import { string, bool, func, number, shape } from 'prop-types';
2
- import { ViewPropTypes, Text } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { Text } from 'react-native';
3
4
 
4
5
  import TouchablePropTypes from '../../../../../Touchable/propTypes';
5
6
  import { themeType } from '../../../../../../theming';
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { View, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { View } from 'react-native';
3
4
  import { number, bool, shape, oneOf, func, string, any, elementType } from 'prop-types';
4
5
  import _ from 'lodash';
5
6
 
@@ -1,5 +1,6 @@
1
1
  import React, { useEffect } from 'react';
2
- import { View, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { View } from 'react-native';
3
4
  import { number, func, shape, bool, string, oneOf } from 'prop-types';
4
5
  import _ from 'lodash';
5
6
 
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { View, ViewPropTypes } from 'react-native';
2
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
3
+ import { View } from 'react-native';
3
4
  import { number, string } from 'prop-types';
4
5
 
5
6
  import Loading from '../Loading';
@@ -158,9 +158,9 @@ export const themeType = shape({
158
158
  accept: string,
159
159
  cancel: string
160
160
  }),
161
- badge: {
161
+ badge: shape({
162
162
  backgroundColor: string
163
- }
163
+ })
164
164
  });
165
165
 
166
166
  export default DefaultTheme;
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": "0.35.4",
5
+ "version": "0.35.5",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [
@@ -33,6 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@widergy/web-utils": "^1.22.0",
36
+ "deprecated-react-native-prop-types": "^2.3.0",
36
37
  "lodash": "^4.17.15",
37
38
  "pdf-lib": "^1.14.1",
38
39
  "react-native-markdown-display": ">=6.1.6",