ikualo-ui-kit-mobile 2.1.8 → 2.1.10

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.8",
6
+ "version": "2.1.10",
7
7
  "orientation": "portrait",
8
8
  "icon": "./assets/icon.png",
9
9
  "userInterfaceStyle": "automatic",
@@ -1,56 +1,52 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
  import { ITheme } from '../../../src/models';
3
- export const getStylePages = (theme: ITheme) => StyleSheet.create({
4
- 'page-basic': {
5
- flex: 1,
6
- backgroundColor: theme.colors.background_app
7
- },
8
- 'page-basic-view': {
9
- flex: 1,
10
- paddingBottom: 16,
11
- paddingHorizontal: 16,
12
- zIndex: 3
13
-
14
- },
15
- 'page-image-hug': {
16
- position: 'absolute',
17
- zIndex: -99999,
18
- bottom: -12
19
- },
20
- 'page-touchable': {
21
- flex: 1,
22
- paddingHorizontal: 16,
23
- paddingBottom: 16,
24
- backgroundColor: theme.colors.background_app,
25
- zIndex:3
26
- }
27
- });
28
- export const getStyleNavbar = (theme: ITheme) => StyleSheet.create({
29
- 'navbar': {
30
- flexDirection: 'row',
31
- justifyContent: 'space-between',
32
- paddingHorizontal: 16,
33
- alignItems: 'flex-start',
34
- borderTopWidth: 1,
35
- width: '100%',
36
- borderColor: theme.colors.border,
37
- backgroundColor: theme.colors.background_card,
38
- },
39
- 'navbar-item': {
40
- width: 50,
41
- alignSelf: 'center',
42
- alignItems: 'center',
43
- marginTop: 10
44
- },
45
- 'navbar-bar': {
46
- width: 50,
47
- height: 4,
48
- borderRadius: 25,
49
- backgroundColor: theme.colors.icon,
50
- position: 'absolute'
51
- }
52
- })
53
-
54
-
55
-
56
-
3
+ export const getStylePages = (theme: ITheme) =>
4
+ StyleSheet.create({
5
+ 'page-basic': {
6
+ flex: 1,
7
+ backgroundColor: theme.colors.background_app,
8
+ },
9
+ 'page-basic-view': {
10
+ flex: 1,
11
+ paddingHorizontal: 16,
12
+ zIndex: 3,
13
+ },
14
+ 'page-image-hug': {
15
+ position: 'absolute',
16
+ zIndex: -99999,
17
+ bottom: -12,
18
+ },
19
+ 'page-touchable': {
20
+ flex: 1,
21
+ paddingHorizontal: 16,
22
+ paddingBottom: 16,
23
+ backgroundColor: theme.colors.background_app,
24
+ zIndex: 3,
25
+ },
26
+ });
27
+ export const getStyleNavbar = (theme: ITheme) =>
28
+ StyleSheet.create({
29
+ navbar: {
30
+ flexDirection: 'row',
31
+ justifyContent: 'space-between',
32
+ paddingHorizontal: 16,
33
+ alignItems: 'flex-start',
34
+ borderTopWidth: 1,
35
+ width: '100%',
36
+ borderColor: theme.colors.border,
37
+ backgroundColor: theme.colors.background_card,
38
+ },
39
+ 'navbar-item': {
40
+ width: 50,
41
+ alignSelf: 'center',
42
+ alignItems: 'center',
43
+ marginTop: 10,
44
+ },
45
+ 'navbar-bar': {
46
+ width: 50,
47
+ height: 4,
48
+ borderRadius: 25,
49
+ backgroundColor: theme.colors.icon,
50
+ position: 'absolute',
51
+ },
52
+ });
@@ -5,8 +5,9 @@ export const getStyleTabs = (theme: ITheme) =>
5
5
  'tab-container': {
6
6
  flexDirection: 'row',
7
7
  alignItems: 'center',
8
- justifyContent: 'space-between',
8
+ justifyContent: 'flex-start',
9
9
  padding: 4,
10
+ gap: 4,
10
11
  borderRadius: 40,
11
12
  backgroundColor: theme.colors.background_tab,
12
13
  },
@@ -14,6 +15,9 @@ export const getStyleTabs = (theme: ITheme) =>
14
15
  borderRadius: 40,
15
16
  borderColor: theme.colors.transparent,
16
17
  paddingVertical: 0,
18
+ paddingHorizontal: 8,
19
+ justifyContent: 'center',
20
+ alignItems: 'center',
17
21
  },
18
22
  'tab--active': {
19
23
  borderRadius: 40,
@@ -24,11 +28,13 @@ export const getStyleTabs = (theme: ITheme) =>
24
28
  fontSize: 14,
25
29
  lineHeight: 16,
26
30
  color: theme.colors.text_btn_disabled,
31
+ textAlign: 'center',
27
32
  },
28
33
  'tab-txt--active': {
29
34
  fontFamily: 'MontserratBold',
30
35
  fontSize: 14,
31
36
  lineHeight: 16,
32
37
  color: theme.colors.icon,
38
+ textAlign: 'center',
33
39
  },
34
40
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikualo-ui-kit-mobile",
3
- "version": "2.1.8",
3
+ "version": "2.1.10",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "start": "expo start",
@@ -1,4 +1,4 @@
1
- import { View } from 'react-native';
1
+ import { ScrollView } from 'react-native';
2
2
  import { getStyleTabs } from '../../../assets/styles/elements/tab';
3
3
  import useStore from '../../store';
4
4
  import { IfExploreTab } from '../../models';
@@ -8,21 +8,21 @@ export const Tab = (props: IfExploreTab) => {
8
8
  const { children, buttons, onValueChange, selectedTab } = props;
9
9
  const styleTabs = getStyleTabs(useStore().theme);
10
10
  return (
11
- <View style={styleTabs['tab-container']}>
11
+ <ScrollView
12
+ horizontal
13
+ showsHorizontalScrollIndicator={false}
14
+ contentContainerStyle={styleTabs['tab-container']}
15
+ >
12
16
  {buttons.map((button) => (
13
17
  <BtnText
14
18
  labelStyle={[styleTabs['tab-txt'], selectedTab === button.value && styleTabs['tab-txt--active']]}
15
19
  onPress={() => onValueChange(button.value)}
16
20
  key={button.value}
17
21
  text={button.label}
18
- style={[
19
- styleTabs['tab'],
20
- selectedTab === button.value && styleTabs['tab--active'],
21
- { width: `${100 / buttons.length}%` },
22
- ]}
22
+ style={[styleTabs['tab'], selectedTab === button.value && styleTabs['tab--active']]}
23
23
  />
24
24
  ))}
25
25
  {children}
26
- </View>
26
+ </ScrollView>
27
27
  );
28
28
  };