ikualo-ui-kit-mobile 1.3.4 → 1.3.6

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.
@@ -221,10 +221,32 @@ const getStylesButtonCircle = (theme: ITheme) =>
221
221
  },
222
222
  });
223
223
 
224
+ const getStylesButtonActionCircle = (theme: ITheme) =>
225
+ StyleSheet.create({
226
+ 'btn-container-item': {
227
+ display: 'flex',
228
+ width: 48,
229
+ height: 48,
230
+ justifyContent: 'center',
231
+ borderRadius: 50,
232
+ alignItems: 'center',
233
+ backgroundColor: theme?.colors.primary_50,
234
+ },
235
+
236
+ 'btn-text-item': {
237
+ fontFamily: 'MontserratSemiBold',
238
+ fontSize: 10,
239
+ lineHeight: 15,
240
+ color: theme?.colors.text_p,
241
+ textAlign: 'center',
242
+ },
243
+ });
244
+
224
245
  export {
225
246
  getStylesButtonContained,
226
247
  getStylesButtonOutlined,
227
248
  getStylesButtonText,
228
249
  getStylesBtnLightSmall,
229
250
  getStylesButtonCircle,
251
+ getStylesButtonActionCircle,
230
252
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikualo-ui-kit-mobile",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "start": "expo start",
@@ -14,7 +14,7 @@
14
14
  "@react-navigation/bottom-tabs": "^6.5.20",
15
15
  "@react-navigation/native": "^6.1.17",
16
16
  "@react-navigation/stack": "^6.3.29",
17
- "expo": "52.0.24",
17
+ "expo": "~52.0.20",
18
18
  "expo-application": "~6.0.1",
19
19
  "expo-linear-gradient": "~14.0.1",
20
20
  "expo-updates": "~0.26.10",
@@ -25,7 +25,6 @@
25
25
  "react-native-gesture-handler": "~2.20.2",
26
26
  "react-native-paper": "^5.12.3",
27
27
  "react-native-screens": "~4.4.0",
28
- "react-native-svg": "15.8.0",
29
28
  "react-native-web": "~0.19.13",
30
29
  "zustand": "^5.0.2"
31
30
  },
@@ -0,0 +1,21 @@
1
+ import { getStylesBtnLightSmall, getStylesButtonActionCircle } from '../../../assets/styles/elements/buttons';
2
+ import { View } from 'react-native';
3
+ import { Text } from '../..';
4
+ import { IFBtnActionCircleItem } from '../../models';
5
+ import { TouchableWithoutFeedback } from 'react-native-gesture-handler';
6
+ import useStore from '../../store';
7
+
8
+ export const BtnLightSmall = (props: { item: IFBtnActionCircleItem }) => {
9
+ const { item } = props;
10
+ const theme = useStore().theme;
11
+ const stylesCards = getStylesButtonActionCircle(theme);
12
+
13
+ return (
14
+ <TouchableWithoutFeedback onPress={item.action}>
15
+ <View style={{ width: 80, display: 'flex', alignItems: 'center' }}>
16
+ <View style={stylesCards['btn-container-item']}>{item.icon}</View>
17
+ <Text style={stylesCards['btn-text-item']}>{item.nameItem}</Text>
18
+ </View>
19
+ </TouchableWithoutFeedback>
20
+ );
21
+ };
@@ -329,3 +329,9 @@ export interface ICardAds {
329
329
  iconBtn: ReactElement;
330
330
  textBtn: string;
331
331
  }
332
+
333
+ export interface IFBtnActionCircleItem {
334
+ icon: JSX.Element;
335
+ nameItem: string;
336
+ action: () => void;
337
+ }
@@ -1,3 +0,0 @@
1
- {
2
- "devices": []
3
- }