ikualo-ui-kit-mobile 1.3.7 → 1.3.9

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.
@@ -120,7 +120,7 @@ const getStylesBtnLightSmall = (theme: ITheme) =>
120
120
  StyleSheet.create({
121
121
  'btn-light-small': {
122
122
  borderWidth: 1,
123
- borderRadius: 8,
123
+ borderRadius: 36,
124
124
  maxWidth: 48,
125
125
  minWidth: 48,
126
126
  maxHeight: 48,
@@ -178,7 +178,7 @@ const getStylesBtnLightSmall = (theme: ITheme) =>
178
178
  color: theme.colors.icon_disabled,
179
179
  },
180
180
  'btn-light-small-label--active': {
181
- color: theme.colors.freezed,
181
+ color: theme.colors.text_btn,
182
182
  },
183
183
  'btn-light-small-icon': {
184
184
  flexDirection: 'row',
@@ -234,11 +234,12 @@ const getStylesButtonActionCircle = (theme: ITheme) =>
234
234
  },
235
235
 
236
236
  'btn-text-item': {
237
- fontFamily: 'MontserratSemiBold',
237
+ fontFamily: 'MontserratRegular',
238
238
  fontSize: 10,
239
239
  lineHeight: 15,
240
240
  color: theme?.colors.text_p,
241
241
  textAlign: 'center',
242
+ marginTop: 5,
242
243
  },
243
244
  });
244
245
 
@@ -4,21 +4,17 @@ const { height } = Dimensions.get('window');
4
4
  export const getStylesCards = (theme: ITheme) =>
5
5
  StyleSheet.create({
6
6
  card: {
7
- borderRadius: 8,
8
7
  backgroundColor: theme.colors.background_card,
9
8
  padding: 16,
10
- borderWidth: 1,
11
- borderColor: theme.colors.border,
9
+ borderRadius: 18,
10
+ boxShadow: '0px 4px 4px 0px rgba(0, 0, 0, 0.06)',
12
11
  },
13
12
  'card-interactive': {
14
13
  flexDirection: 'row',
15
14
  justifyContent: 'space-between',
16
15
  backgroundColor: theme.colors.background_card,
17
- borderColor: theme.colors.border,
18
- padding: 16,
19
- borderRadius: 4,
20
- borderWidth: 1,
21
- marginVertical: 4,
16
+ paddingTop: 16,
17
+ paddingBottom: 16,
22
18
  },
23
19
  'card-interactive-icon': {
24
20
  marginHorizontal: 16,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikualo-ui-kit-mobile",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "start": "expo start",
@@ -1,4 +1,3 @@
1
-
2
1
  import { ActivityIndicator, Button } from 'react-native-paper';
3
2
  import { getStylesBtnLightSmall } from '../../../assets/styles/elements/buttons';
4
3
  import { View } from 'react-native';
@@ -13,9 +12,13 @@ export const BtnLightSmall = (props: IBtnLightSmall) => {
13
12
  const stylesBtnLightSmall = getStylesBtnLightSmall(theme);
14
13
 
15
14
  const { onPress, icon, disabled = false, active, isLoading, text, transparent } = props;
16
- const color = active ?
17
- stylesBtnLightSmall['btn-light-small--active'].borderColor :
18
- disabled ? theme.colors.border_disabled : stylesBtnLightSmall['btn-light-small--primary'].borderColor
15
+ const color = active
16
+ ? stylesBtnLightSmall['btn-light-small--active'].borderColor
17
+ : disabled
18
+ ? theme.colors.border_disabled
19
+ : stylesBtnLightSmall['btn-light-small--primary'].borderColor;
20
+
21
+ const colorBtnText = active ? theme.colors.text_btn : theme.colors.icon_disabled;
19
22
 
20
23
  return (
21
24
  <View style={{ alignItems: 'center', width: 'auto' }}>
@@ -24,33 +27,42 @@ export const BtnLightSmall = (props: IBtnLightSmall) => {
24
27
  stylesBtnLightSmall['btn-light-small'],
25
28
  active && stylesBtnLightSmall['btn-light-small--active'],
26
29
  disabled && stylesBtnLightSmall['btn-light-small--disabled'],
27
- !active && !disabled && stylesBtnLightSmall[`btn-light-small--${transparent ? 'transparent' : 'primary'}`],
30
+ !active &&
31
+ !disabled &&
32
+ stylesBtnLightSmall[`btn-light-small--${transparent ? 'transparent' : 'primary'}`],
28
33
  ]}
29
34
  contentStyle={stylesBtnLightSmall['btn-light-small-content']}
30
35
  labelStyle={[
31
36
  (stylesBtnLightSmall['btn-light-small-label'],
32
- active && stylesBtnLightSmall['btn-light-small-label--active'],
33
- disabled && stylesBtnLightSmall['btn-light-small-label--disabled']),
37
+ active && stylesBtnLightSmall['btn-light-small-label--active'],
38
+ disabled && stylesBtnLightSmall['btn-light-small-label--disabled']),
34
39
  ]}
35
40
  onPress={onPress}
36
41
  disabled={disabled}
37
42
  >
38
- {!isLoading ?
43
+ {!isLoading ? (
39
44
  <View style={stylesBtnLightSmall['btn-light-small-icon']}>
40
- {cloneElement(icon, { size: 24, color: color, style: stylesBtnLightSmall['btn-light-small-icon--cloned'] })}
41
- </View> :
45
+ {cloneElement(icon, {
46
+ size: 24,
47
+ color: color,
48
+ style: stylesBtnLightSmall['btn-light-small-icon--cloned'],
49
+ })}
50
+ </View>
51
+ ) : (
42
52
  <ActivityIndicator size="small" color={color} />
43
- }
53
+ )}
44
54
  </Button>
45
- {text &&
55
+ {text && (
46
56
  <Text
47
- style={{ textAlign: 'center' }}
48
- color={color}
57
+ style={{ textAlign: 'center', width: 60, marginTop: 5 }}
58
+ color={colorBtnText}
49
59
  lineHeight={15}
50
- fontWeight='MontserratSemiBold600'
51
- fontSize={10}>{text}
52
- </Text>}
60
+ fontWeight="MontserratSemiBold600"
61
+ fontSize={10}
62
+ >
63
+ {text}
64
+ </Text>
65
+ )}
53
66
  </View>
54
-
55
67
  );
56
68
  };