@widergy/mobile-ui 0.31.5 → 0.32.0
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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [0.32.0](https://github.com/widergy/mobile-ui/compare/v0.31.5...v0.32.0) (2021-12-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* new borderless prop for borderless searchbar ([#209](https://github.com/widergy/mobile-ui/issues/209)) ([8d5f9ae](https://github.com/widergy/mobile-ui/commit/8d5f9ae55d7e8ed6dea53d3d9e16b0a9dfcdf7b3))
|
|
7
|
+
|
|
1
8
|
## [0.31.5](https://github.com/widergy/mobile-ui/compare/v0.31.4...v0.31.5) (2021-11-16)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -37,6 +37,7 @@ const FilledInput = ({
|
|
|
37
37
|
tooltipProps,
|
|
38
38
|
multiline,
|
|
39
39
|
captionLabel,
|
|
40
|
+
borderless,
|
|
40
41
|
...props
|
|
41
42
|
}) => {
|
|
42
43
|
const [initialHeight, setInitialHeight] = useState(inputHeight);
|
|
@@ -104,7 +105,7 @@ const FilledInput = ({
|
|
|
104
105
|
</InputLabel>
|
|
105
106
|
)}
|
|
106
107
|
</View>
|
|
107
|
-
<InputAnimatedBorder variant="filled" focused={focused} error={error} value={value} />
|
|
108
|
+
{!borderless && (<InputAnimatedBorder variant="filled" focused={focused} error={error} value={value} />)}
|
|
108
109
|
</View>
|
|
109
110
|
{!!tooltip && (
|
|
110
111
|
<View style={[ownStyles.tooltipContainer, multiline && { height: initialHeight }]}>
|
|
@@ -38,6 +38,7 @@ const OutlinedInput = ({
|
|
|
38
38
|
tooltipProps,
|
|
39
39
|
multiline,
|
|
40
40
|
captionLabel,
|
|
41
|
+
borderless,
|
|
41
42
|
...props
|
|
42
43
|
}) => {
|
|
43
44
|
const focusedColor = themeStyles?.focused?.color || theme.colors.primary;
|
|
@@ -68,7 +69,7 @@ const OutlinedInput = ({
|
|
|
68
69
|
disabled && themeStyles?.containerDisabled,
|
|
69
70
|
// eslint-disable-next-line react-native/no-inline-styles
|
|
70
71
|
{
|
|
71
|
-
borderWidth: focused ? 2 : disabled ? themeStyles?.inactive?.disabledBorderWidth ?? 1 : 1,
|
|
72
|
+
borderWidth: borderless ? 0 : focused ? 2 : disabled ? themeStyles?.inactive?.disabledBorderWidth ?? 1 : 1,
|
|
72
73
|
borderColor: active ? activeColor : inactiveColor
|
|
73
74
|
},
|
|
74
75
|
styles?.inputContainer
|
|
@@ -36,6 +36,7 @@ const StandardInput = ({
|
|
|
36
36
|
tooltipIconProps,
|
|
37
37
|
tooltipProps,
|
|
38
38
|
captionLabel,
|
|
39
|
+
borderless,
|
|
39
40
|
...props
|
|
40
41
|
}) => (
|
|
41
42
|
<View style={[ownStyles.container, themeStyles?.root, styles?.container]}>
|
|
@@ -92,7 +93,7 @@ const StandardInput = ({
|
|
|
92
93
|
</InputLabel>
|
|
93
94
|
)}
|
|
94
95
|
</View>
|
|
95
|
-
<InputAnimatedBorder variant="standard" focused={focused} error={error} value={value} />
|
|
96
|
+
{!borderless && (<InputAnimatedBorder variant="standard" focused={focused} error={error} value={value} />)}
|
|
96
97
|
</View>
|
|
97
98
|
{!!tooltip && (
|
|
98
99
|
<View style={ownStyles.tooltipContainer}>
|
package/package.json
CHANGED