@widergy/mobile-ui 0.35.3 → 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.
- package/CHANGELOG.md +14 -0
- package/lib/components/AvatarImage/proptypes.js +1 -1
- package/lib/components/Button/propTypes.js +1 -1
- package/lib/components/CaptionLabel/propTypes.js +1 -1
- package/lib/components/Carousel/components/CarouselItem/index.js +2 -1
- package/lib/components/Carousel/propTypes.js +2 -1
- package/lib/components/CheckList/components/CheckBoxRenderer/index.js +1 -1
- package/lib/components/CheckList/proptypes.js +1 -1
- package/lib/components/Checkbox/propTypes.js +1 -1
- package/lib/components/Dropdown/propTypes.js +1 -1
- package/lib/components/Icon/propTypes.js +1 -1
- package/lib/components/IconBadge/propTypes.js +1 -1
- package/lib/components/IconButton/propTypes.js +1 -1
- package/lib/components/ImageButton/propTypes.js +1 -1
- package/lib/components/ImageLabel/propTypes.js +1 -1
- package/lib/components/ImageRadio/index.js +2 -1
- package/lib/components/Input/propTypes.js +1 -1
- package/lib/components/Loading/index.js +2 -1
- package/lib/components/Picker/index.js +2 -1
- package/lib/components/RadioGroup/components/RadioButton/index.js +2 -1
- package/lib/components/RadioGroup/index.js +2 -1
- package/lib/components/SeparatorBar/propTypes.js +1 -1
- package/lib/components/Snackbar/index.js +2 -1
- package/lib/components/Surface/propTypes.js +1 -1
- package/lib/components/Touchable/propTypes.js +1 -1
- package/lib/components/TransitionText/propTypes.js +1 -1
- package/lib/components/UTDetailDrawer/propTypes.js +1 -1
- package/lib/components/UTImage/propTypes.js +1 -1
- package/lib/components/UTLoading/index.js +1 -1
- package/lib/components/UTMenu/components/MenuOption/index.js +2 -1
- package/lib/components/UTModal/proptypes.js +1 -1
- package/lib/components/UTOnBoarding/components/CardContent/propTypes.js +2 -1
- package/lib/components/UTOnBoarding/propTypes.js +1 -1
- package/lib/components/UTPasswordField/components/PasswordValidations/index.js +2 -1
- package/lib/components/UTPasswordField/proptypes.js +1 -1
- package/lib/components/UTProgressBar/index.js +2 -1
- package/lib/components/UTRoundView/propTypes.js +1 -1
- package/lib/components/UTStepFeedback/components/CircleNumber/index.js +2 -1
- package/lib/components/UTSwitch/proptypes.js +1 -1
- package/lib/components/UTTextInput/components/BaseInput/index.js +2 -1
- package/lib/components/UTTextInput/flavors/OutlinedInput/index.js +9 -2
- package/lib/components/UTTooltip/styles.js +9 -2
- package/lib/components/UTWorkflowContainer/components/BottomStepHandler/index.js +2 -1
- package/lib/components/UTWorkflowContainer/components/Header/index.js +2 -1
- package/lib/components/UTWorkflowContainer/components/StepsHandler/components/ActionButton/types.js +2 -1
- package/lib/components/UTWorkflowContainer/components/StepsHandler/index.js +2 -1
- package/lib/components/UTWorkflowContainer/index.js +2 -1
- package/lib/components/WithLoading/index.js +2 -1
- package/lib/theming/DefaultTheme.js +2 -2
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [0.35.4](https://github.com/widergy/mobile-ui/compare/v0.35.3...v0.35.4) (2022-10-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* added label to tooltip content ([#228](https://github.com/widergy/mobile-ui/issues/228)) ([dee88d6](https://github.com/widergy/mobile-ui/commit/dee88d6e9cc0e306d0efabae284b29dcb2869b9f))
|
|
14
|
+
|
|
1
15
|
## [0.35.3](https://github.com/widergy/mobile-ui/compare/v0.35.2...v0.35.3) (2022-08-29)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
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
|
|
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,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
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,5 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import { ViewPropTypes
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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,5 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import {
|
|
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,6 +1,7 @@
|
|
|
1
1
|
import { any, shape, bool, func, string } from 'prop-types';
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
|
-
import {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
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';
|
|
@@ -8,7 +8,8 @@ import React, {
|
|
|
8
8
|
useEffect,
|
|
9
9
|
useMemo
|
|
10
10
|
} from 'react';
|
|
11
|
-
import {
|
|
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';
|
|
@@ -8,6 +8,7 @@ import InputLabel from '../../components/InputLabel';
|
|
|
8
8
|
import InputTypes from '../../proptypes';
|
|
9
9
|
import Icon from '../../../Icon';
|
|
10
10
|
import UTTooltip from '../../../UTTooltip';
|
|
11
|
+
import Label from '../../../Label';
|
|
11
12
|
|
|
12
13
|
import ownStyles, { CONTAINER_PADDINGS } from './styles';
|
|
13
14
|
|
|
@@ -69,7 +70,13 @@ const OutlinedInput = ({
|
|
|
69
70
|
disabled && themeStyles?.containerDisabled,
|
|
70
71
|
// eslint-disable-next-line react-native/no-inline-styles
|
|
71
72
|
{
|
|
72
|
-
borderWidth: borderless
|
|
73
|
+
borderWidth: borderless
|
|
74
|
+
? 0
|
|
75
|
+
: focused
|
|
76
|
+
? 2
|
|
77
|
+
: disabled
|
|
78
|
+
? themeStyles?.inactive?.disabledBorderWidth ?? 1
|
|
79
|
+
: 1,
|
|
73
80
|
borderColor: active ? activeColor : inactiveColor
|
|
74
81
|
},
|
|
75
82
|
styles?.inputContainer
|
|
@@ -129,7 +136,7 @@ const OutlinedInput = ({
|
|
|
129
136
|
</View>
|
|
130
137
|
{!!tooltip && (
|
|
131
138
|
<View style={[ownStyles.tooltipContainer, multiline && { height: initialHeight }]}>
|
|
132
|
-
<UTTooltip content={tooltip} position="left" {...tooltipProps}>
|
|
139
|
+
<UTTooltip content={<Label>tooltip</Label>} position="left" {...tooltipProps}>
|
|
133
140
|
<Icon
|
|
134
141
|
name="questioncircleo"
|
|
135
142
|
type="antdesign"
|
|
@@ -9,7 +9,14 @@ export default StyleSheet.create({
|
|
|
9
9
|
zIndex: 0,
|
|
10
10
|
backgroundColor: 'white',
|
|
11
11
|
borderRadius: 8,
|
|
12
|
-
|
|
12
|
+
shadowColor: '#000',
|
|
13
|
+
shadowOffset: {
|
|
14
|
+
width: 0,
|
|
15
|
+
height: 2
|
|
16
|
+
},
|
|
17
|
+
shadowOpacity: 0.23,
|
|
18
|
+
shadowRadius: 2.62,
|
|
19
|
+
elevation: 4,
|
|
13
20
|
paddingVertical: 4,
|
|
14
21
|
padding: 10,
|
|
15
22
|
maxWidth: 250
|
|
@@ -82,5 +89,5 @@ export default StyleSheet.create({
|
|
|
82
89
|
bottomArrowRotation: {
|
|
83
90
|
transform: [{ rotate: '0deg' }]
|
|
84
91
|
},
|
|
85
|
-
arrowContainer: { position: 'absolute'
|
|
92
|
+
arrowContainer: { position: 'absolute' }
|
|
86
93
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
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 {
|
|
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';
|
package/lib/components/UTWorkflowContainer/components/StepsHandler/components/ActionButton/types.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { string, bool, func, number, shape } from 'prop-types';
|
|
2
|
-
import { ViewPropTypes
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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';
|
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.
|
|
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",
|