@momo-kits/tab-view 0.77.8-beta.6 → 0.78.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/tab-view",
3
- "version": "0.77.8-beta.06",
3
+ "version": "0.78.1",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "dependencies": {},
@@ -2,7 +2,14 @@ import React, {FC, useContext, useEffect, useRef} from 'react';
2
2
  import {Animated, View} from 'react-native';
3
3
  import {TabBarProps} from '../types';
4
4
  import styles from '../styles';
5
- import {ApplicationContext, Image, Spacing, Text} from '@momo-kits/foundation';
5
+ import {
6
+ ApplicationContext,
7
+ Image,
8
+ Radius,
9
+ Shadow,
10
+ Spacing,
11
+ Text,
12
+ } from '@momo-kits/foundation';
6
13
  import CardTabItem from '../tabItem/CardTabItem';
7
14
  import PathSvg from '../assets/Path';
8
15
 
@@ -35,20 +42,23 @@ const CardTabBar: FC<TabBarProps> = ({
35
42
  <View
36
43
  style={[
37
44
  styles.cardTabOverlay,
45
+ Shadow.Light,
38
46
  {
39
47
  width: containerWidth / tabs.length,
40
48
  left: itemWidth * selectedIndex - backSpace,
41
49
  },
42
50
  ]}>
43
- {!isFirst && <PathSvg style={{transform: [{rotateY: '180deg'}]}} />}
51
+ {!isFirst && (
52
+ <PathSvg style={{transform: [{rotateY: '180deg'}], left: 8}} />
53
+ )}
44
54
  <View
45
55
  style={[
46
56
  styles.overlayTextWrapper,
47
57
  {
48
58
  backgroundColor: theme.colors.background.surface,
49
59
  width: containerWidth / tabs.length,
50
- borderTopRightRadius: isLast ? Spacing.M : 0,
51
- borderTopLeftRadius: isFirst ? Spacing.M : 0,
60
+ borderTopRightRadius: Radius.M,
61
+ borderTopLeftRadius: Radius.M,
52
62
  },
53
63
  ]}>
54
64
  {!!tabs[selectedIndex]?.icon && (
@@ -58,13 +68,14 @@ const CardTabBar: FC<TabBarProps> = ({
58
68
  />
59
69
  )}
60
70
  <Text
71
+ color={theme.colors.primary}
61
72
  numberOfLines={1}
62
73
  style={styles.textCenter}
63
74
  typography={'header_s'}>
64
75
  {tabs[selectedIndex]?.title || ''}
65
76
  </Text>
66
77
  </View>
67
- {!isLast && <PathSvg />}
78
+ {!isLast && <PathSvg style={{right: 8}} />}
68
79
  </View>
69
80
  </View>
70
81
  );