@momo-kits/foundation 1.0.17 → 1.0.19
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.
|
@@ -4,6 +4,7 @@ import {ChildPaginationProps} from './types';
|
|
|
4
4
|
import styles from './styles';
|
|
5
5
|
import {Text} from '../Text';
|
|
6
6
|
import {ApplicationContext} from '../Navigation';
|
|
7
|
+
import {Colors} from '../Consts';
|
|
7
8
|
|
|
8
9
|
const PaginationNumber: FC<ChildPaginationProps> = ({
|
|
9
10
|
activeIndex = 0,
|
|
@@ -12,9 +13,9 @@ const PaginationNumber: FC<ChildPaginationProps> = ({
|
|
|
12
13
|
const {theme} = useContext(ApplicationContext);
|
|
13
14
|
return (
|
|
14
15
|
<View style={[styles.paginationNumberContainer]}>
|
|
15
|
-
<Text
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
<Text color={Colors.black_01} typography={'label_default'}>{`${
|
|
17
|
+
activeIndex + 1
|
|
18
|
+
}/${dataLength}`}</Text>
|
|
18
19
|
</View>
|
|
19
20
|
);
|
|
20
21
|
};
|
|
@@ -3,7 +3,7 @@ import {View} from 'react-native';
|
|
|
3
3
|
import {ChildPaginationProps} from './types';
|
|
4
4
|
import styles from './styles';
|
|
5
5
|
import Dot from './Dot';
|
|
6
|
-
import {Spacing} from '../Consts';
|
|
6
|
+
import {Colors, Spacing} from '../Consts';
|
|
7
7
|
import {ApplicationContext} from '../Navigation';
|
|
8
8
|
|
|
9
9
|
const PaginationWhiteDot: FC<ChildPaginationProps> = ({
|
|
@@ -18,7 +18,7 @@ const PaginationWhiteDot: FC<ChildPaginationProps> = ({
|
|
|
18
18
|
<Dot
|
|
19
19
|
style={[
|
|
20
20
|
i !== dataLength - 1 ? {marginRight: Spacing.XS} : {},
|
|
21
|
-
{backgroundColor:
|
|
21
|
+
{backgroundColor: Colors.black_01},
|
|
22
22
|
]}
|
|
23
23
|
active={activeIndex === i}
|
|
24
24
|
/>,
|
package/Pagination/styles.ts
CHANGED
|
@@ -23,8 +23,8 @@ export default StyleSheet.create({
|
|
|
23
23
|
},
|
|
24
24
|
paginationNumberContainer: {
|
|
25
25
|
paddingHorizontal: Spacing.S,
|
|
26
|
-
backgroundColor: Colors.black_20 + '33',
|
|
27
26
|
borderRadius: Radius.L,
|
|
27
|
+
backgroundColor: Colors.black_20 + '33',
|
|
28
28
|
},
|
|
29
29
|
scrollContainer: {
|
|
30
30
|
alignItems: 'center',
|
package/index.ts
CHANGED