@momo-kits/foundation 0.157.2-test.1 → 0.157.3-beta.21
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/Application/BottomSheet.tsx +32 -1
- package/Application/ModalScreen.tsx +28 -23
- package/Application/types.ts +30 -2
- package/Badge/Badge.tsx +0 -2
- package/Badge/BadgeDot.tsx +0 -2
- package/Badge/BadgeDotAnimation.tsx +0 -2
- package/Badge/BadgeRibbon.tsx +0 -2
- package/Button/index.tsx +0 -2
- package/CheckBox/index.tsx +0 -2
- package/Context/index.ts +0 -10
- package/Divider/DashDivider.tsx +0 -2
- package/Divider/index.tsx +1 -3
- package/Icon/index.tsx +0 -2
- package/IconButton/index.tsx +0 -1
- package/Image/index.tsx +0 -2
- package/Input/Input.tsx +0 -2
- package/Input/InputDropDown.tsx +0 -2
- package/Input/InputMoney.tsx +0 -2
- package/Input/InputOTP.tsx +0 -2
- package/Input/InputPhoneNumber.tsx +0 -2
- package/Input/InputSearch.tsx +1 -5
- package/Input/InputTextArea.tsx +0 -2
- package/Layout/Card.tsx +1 -2
- package/Layout/FloatingButton.tsx +0 -2
- package/Layout/Item.tsx +0 -2
- package/Layout/ItemList.tsx +0 -2
- package/Layout/ItemSectionList.tsx +0 -2
- package/Layout/Screen.tsx +70 -268
- package/Layout/Section.tsx +3 -3
- package/Layout/TrackingScope.tsx +0 -2
- package/Layout/index.ts +1 -2
- package/Layout/utils.ts +2 -15
- package/Loader/DotLoader.tsx +0 -2
- package/Loader/Loader.tsx +1 -3
- package/Loader/ProgressBar.tsx +0 -2
- package/Loader/Spinner.tsx +0 -2
- package/Pagination/Dot.tsx +0 -2
- package/Pagination/PaginationDot.tsx +0 -2
- package/Pagination/PaginationNumber.tsx +0 -2
- package/Pagination/PaginationScroll.tsx +0 -2
- package/Pagination/PaginationWhiteDot.tsx +0 -2
- package/Popup/PopupNotify.tsx +0 -2
- package/Popup/PopupPromotion.tsx +0 -2
- package/Radio/index.tsx +1 -2
- package/Skeleton/index.tsx +0 -2
- package/Switch/index.tsx +0 -2
- package/Tag/index.tsx +0 -2
- package/Text/index.tsx +0 -2
- package/package.json +34 -34
- package/internal.ts +0 -2
package/Tag/index.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { FC, useContext } from 'react';
|
|
2
2
|
import { View, StyleSheet } from 'react-native';
|
|
3
3
|
import { TagProps } from './types';
|
|
4
|
-
import { useScreenRegistry } from '../Layout/utils';
|
|
5
4
|
import { Colors, Radius, Spacing } from '../Consts';
|
|
6
5
|
import { Icon } from '../Icon';
|
|
7
6
|
import { Text, useScaleSize } from '../Text';
|
|
@@ -35,7 +34,6 @@ const Tag: FC<TagProps> = ({
|
|
|
35
34
|
customColor,
|
|
36
35
|
accessibilityLabel,
|
|
37
36
|
}) => {
|
|
38
|
-
useScreenRegistry('Tag');
|
|
39
37
|
const context = useContext<any>(MiniAppContext);
|
|
40
38
|
const scaledHeight24 = useScaleSize(24);
|
|
41
39
|
const scaledHeight18 = useScaleSize(18);
|
package/Text/index.tsx
CHANGED
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
} from '../Context';
|
|
10
10
|
import { scaleSize, useScaleSize } from './utils';
|
|
11
11
|
import { Skeleton } from '../Skeleton';
|
|
12
|
-
import { useScreenRegistry } from '@momo-kits/foundation';
|
|
13
12
|
|
|
14
13
|
const SFProText: TypographyWeight = {
|
|
15
14
|
100: 'Thin',
|
|
@@ -159,7 +158,6 @@ const Text: React.FC<TextProps> = ({
|
|
|
159
158
|
maxScaleRate,
|
|
160
159
|
...rest
|
|
161
160
|
}) => {
|
|
162
|
-
useScreenRegistry('Text');
|
|
163
161
|
const { theme } = useContext(ApplicationContext);
|
|
164
162
|
const context = useContext<any>(MiniAppContext);
|
|
165
163
|
const skeleton = useContext(SkeletonContext);
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
2
|
+
"name": "@momo-kits/foundation",
|
|
3
|
+
"version": "0.157.3-beta.21",
|
|
4
|
+
"description": "React Native Component Kits",
|
|
5
|
+
"main": "index.ts",
|
|
6
|
+
"scripts": {},
|
|
7
|
+
"keywords": [
|
|
8
|
+
"@momo-kits/foundation"
|
|
9
|
+
],
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"react-native-fast-image": "git+https://oauth2:TGi6oBj-LdzsKpLXQSoH@gitlab.mservice.com.vn/momo-platform/public/react-native-fast-image.git#v8.11.0",
|
|
12
|
+
"@react-navigation/bottom-tabs": "7.4.2",
|
|
13
|
+
"@react-navigation/core": "7.12.1",
|
|
14
|
+
"@react-navigation/elements": "2.5.2",
|
|
15
|
+
"@react-navigation/native": "7.1.14",
|
|
16
|
+
"@react-navigation/routers": "7.4.1",
|
|
17
|
+
"@react-navigation/stack": "7.4.2",
|
|
18
|
+
"react-native-gesture-handler": "2.27.1",
|
|
19
|
+
"react-native-linear-gradient": "git+https://oauth2:TGi6oBj-LdzsKpLXQSoH@gitlab.mservice.com.vn/momo-platform/public/react-native-linear-gradient#v3.0.0",
|
|
20
|
+
"react-native-reanimated": "4.1.0",
|
|
21
|
+
"react-native-safe-area-context": "5.5.2",
|
|
22
|
+
"@shopify/flash-list": "2.1.0",
|
|
23
|
+
"lottie-react-native": "7.2.4"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react-native": "*"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/color": "3.0.6"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
|
+
},
|
|
34
|
+
"license": "MoMo"
|
|
35
|
+
}
|
package/internal.ts
DELETED