ikualo-ui-kit-mobile 2.1.15 → 2.1.16

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/app.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "ikualo-app-2.0",
4
4
  "slug": "ikualo-app-20",
5
5
  "owner": "ikualo",
6
- "version": "2.1.15",
6
+ "version": "2.1.16",
7
7
  "orientation": "portrait",
8
8
  "icon": "./assets/icon.png",
9
9
  "userInterfaceStyle": "automatic",
@@ -140,6 +140,7 @@ const getStylesBtnLightSmall = (theme: ITheme) =>
140
140
  },
141
141
  'btn-light-small__container-main': { alignItems: 'center', width: 'auto' },
142
142
  'btn-light-small__text': { textAlign: 'center', width: 'auto', marginTop: 5 },
143
+ 'btn-light-small__text--disabled': { opacity: 0.25 },
143
144
  'btn-light-small--transparent': {
144
145
  backgroundColor: theme.colors.transparent,
145
146
  borderColor: theme.colors.icon,
@@ -158,9 +159,9 @@ const getStylesBtnLightSmall = (theme: ITheme) =>
158
159
  fontSize: 24,
159
160
  },
160
161
  'btn-light-small--disabled': {
161
- backgroundColor: theme.colors.background_btn_disabled,
162
- borderColor: theme.colors.icon_disabled,
163
- borderRadius: 8,
162
+ backgroundColor: theme.colors.background_focus,
163
+ borderColor: theme.colors.icon,
164
+ opacity: 0.25,
164
165
  borderWidth: 1,
165
166
  maxWidth: 50,
166
167
  minWidth: 50,
@@ -251,10 +252,10 @@ const getStylesButtonActionCircle = (theme: ITheme) =>
251
252
  });
252
253
 
253
254
  export {
255
+ getStylesBtnLightSmall,
256
+ getStylesButtonActionCircle,
257
+ getStylesButtonCircle,
254
258
  getStylesButtonContained,
255
259
  getStylesButtonOutlined,
256
260
  getStylesButtonText,
257
- getStylesBtnLightSmall,
258
- getStylesButtonCircle,
259
- getStylesButtonActionCircle,
260
261
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikualo-ui-kit-mobile",
3
- "version": "2.1.15",
3
+ "version": "2.1.16",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "start": "expo start",
@@ -1,11 +1,10 @@
1
+ import React, { cloneElement } from 'react';
2
+ import { View } from 'react-native';
1
3
  import { ActivityIndicator, Button } from 'react-native-paper';
4
+ import { Text } from '../../';
2
5
  import { getStylesBtnLightSmall } from '../../../assets/styles/elements/buttons';
3
- import { View } from 'react-native';
4
- import { cloneElement } from 'react';
5
- import useStore from '../../store';
6
6
  import { IBtnLightSmall } from '../../models';
7
- import React from 'react';
8
- import { Text } from '../../';
7
+ import useStore from '../../store';
9
8
 
10
9
  export const BtnLightSmall = (props: IBtnLightSmall) => {
11
10
  const theme = useStore().theme;
@@ -14,8 +13,6 @@ export const BtnLightSmall = (props: IBtnLightSmall) => {
14
13
  const { onPress, icon, disabled = false, active, isLoading, text, transparent, maxWidth, iconSize } = props;
15
14
  const color = active
16
15
  ? stylesBtnLightSmall['btn-light-small--active'].borderColor
17
- : disabled
18
- ? theme.colors.border_disabled
19
16
  : stylesBtnLightSmall['btn-light-small--primary'].borderColor;
20
17
 
21
18
  const colorBtnText = active ? theme.colors.freezed : theme.colors.text_p;
@@ -56,7 +53,11 @@ export const BtnLightSmall = (props: IBtnLightSmall) => {
56
53
  </Button>
57
54
  {text && (
58
55
  <Text
59
- style={[stylesBtnLightSmall['btn-light-small__text'], { maxWidth: maxWidth || 'auto' }]}
56
+ style={[
57
+ stylesBtnLightSmall['btn-light-small__text'],
58
+ { maxWidth: maxWidth || 'auto' },
59
+ disabled && stylesBtnLightSmall['btn-light-small__text--disabled'],
60
+ ]}
60
61
  color={colorBtnText}
61
62
  lineHeight={15}
62
63
  fontWeight="MontserratSemiBold600"