@widergy/mobile-ui 1.28.1 → 1.28.3

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,17 @@
1
+ ## [1.28.3](https://github.com/widergy/mobile-ui/compare/v1.28.2...v1.28.3) (2024-10-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * scroll ref workflow ([#373](https://github.com/widergy/mobile-ui/issues/373)) ([276e0c5](https://github.com/widergy/mobile-ui/commit/276e0c507f5af03be8b5c7e26c464b247c7a3ae1))
7
+
8
+ ## [1.28.2](https://github.com/widergy/mobile-ui/compare/v1.28.1...v1.28.2) (2024-10-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * colors in radio button selected and others ([#370](https://github.com/widergy/mobile-ui/issues/370)) ([1cc52c0](https://github.com/widergy/mobile-ui/commit/1cc52c02641cae9c8fb7a04c33072ed0c865c58b))
14
+
1
15
  ## [1.28.1](https://github.com/widergy/mobile-ui/compare/v1.28.0...v1.28.1) (2024-10-15)
2
16
 
3
17
 
@@ -94,7 +94,11 @@ class Loading extends Component {
94
94
  <Animated.View style={getAnimatedContainerStyle(size, fade)}>
95
95
  {layers.map(this.renderLayers)}
96
96
  </Animated.View>
97
- {!!message && <UTLabel style={[getMessageStyle(size), messageStyle]}>{message}</UTLabel>}
97
+ {!!message && (
98
+ <UTLabel variant="small" style={[getMessageStyle(size), messageStyle]}>
99
+ {message}
100
+ </UTLabel>
101
+ )}
98
102
  </View>
99
103
  );
100
104
  }
@@ -56,11 +56,7 @@ class RadioButton extends Component {
56
56
  <View style={styles.labelsContainer}>
57
57
  <View>
58
58
  <View style={[styles.label, labelComponent && styles.labelComponent]}>
59
- <UTLabel
60
- colorTheme={status ? 'accent' : 'dark'}
61
- variant="body"
62
- weight={status ? 'bold' : 'regular'}
63
- >
59
+ <UTLabel variant="xsmall" weight={status ? 'bold' : 'regular'}>
64
60
  {label}
65
61
  </UTLabel>
66
62
  {labelComponent}
@@ -40,7 +40,7 @@ class RadioGroup extends Component {
40
40
  return (
41
41
  <View style={styles.container}>
42
42
  {title && (
43
- <UTLabel variant="body" {...titleProps}>
43
+ <UTLabel variant="medium" {...titleProps}>
44
44
  {title}
45
45
  </UTLabel>
46
46
  )}
@@ -97,7 +97,7 @@ const BaseInput = forwardRef(
97
97
  ]}
98
98
  id={props?.id ? `${props.id}` : undefined}
99
99
  />
100
- {RightIcon && (
100
+ {(RightIcon || hiddenInput) && (
101
101
  <Touchable
102
102
  borderless
103
103
  onPress={hiddenInput ? toggleShowInput : onRightIconPress}
@@ -81,7 +81,7 @@ const OutlinedInput = ({
81
81
  : focused
82
82
  ? 2
83
83
  : disabled
84
- ? themeStyles?.inactive?.disabledBorderWidth ?? 1
84
+ ? (themeStyles?.inactive?.disabledBorderWidth ?? 1)
85
85
  : 1,
86
86
  borderColor: active ? activeColor : inactiveColor
87
87
  },
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
  import { ScrollView, View, KeyboardAvoidingView, Keyboard } from 'react-native';
3
- import { number, func, shape, bool, string, element, oneOfType } from 'prop-types';
3
+ import { number, func, shape, bool, string, element, oneOfType, any } from 'prop-types';
4
4
  import { merge } from 'lodash';
5
5
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
6
6
 
@@ -28,6 +28,7 @@ const UTWorkflowContainer = ({
28
28
  requiredFieldInfo,
29
29
  returnButton,
30
30
  scrollable = true,
31
+ scrollViewRef,
31
32
  stages,
32
33
  stepsCount,
33
34
  style,
@@ -68,6 +69,7 @@ const UTWorkflowContainer = ({
68
69
  contentContainerStyle={themedStyles.content}
69
70
  keyboardShouldPersistTaps="handled"
70
71
  scrollEnabled={scrollable}
72
+ ref={scrollViewRef}
71
73
  >
72
74
  {title && (
73
75
  <UTHeader
@@ -115,6 +117,8 @@ UTWorkflowContainer.propTypes = {
115
117
  requiredFieldInfo: string,
116
118
  returnButton: ActionButtonPropTypes,
117
119
  scrollable: bool,
120
+ // eslint-disable-next-line react/forbid-prop-types
121
+ scrollViewRef: shape({ current: any }),
118
122
  stages: StagesPropTypes,
119
123
  stepsCount: number.isRequired,
120
124
  subtitle: oneOfType([string, element]),
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.28.1",
5
+ "version": "1.28.3",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [