@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.
Files changed (50) hide show
  1. package/Application/BottomSheet.tsx +32 -1
  2. package/Application/ModalScreen.tsx +28 -23
  3. package/Application/types.ts +30 -2
  4. package/Badge/Badge.tsx +0 -2
  5. package/Badge/BadgeDot.tsx +0 -2
  6. package/Badge/BadgeDotAnimation.tsx +0 -2
  7. package/Badge/BadgeRibbon.tsx +0 -2
  8. package/Button/index.tsx +0 -2
  9. package/CheckBox/index.tsx +0 -2
  10. package/Context/index.ts +0 -10
  11. package/Divider/DashDivider.tsx +0 -2
  12. package/Divider/index.tsx +1 -3
  13. package/Icon/index.tsx +0 -2
  14. package/IconButton/index.tsx +0 -1
  15. package/Image/index.tsx +0 -2
  16. package/Input/Input.tsx +0 -2
  17. package/Input/InputDropDown.tsx +0 -2
  18. package/Input/InputMoney.tsx +0 -2
  19. package/Input/InputOTP.tsx +0 -2
  20. package/Input/InputPhoneNumber.tsx +0 -2
  21. package/Input/InputSearch.tsx +1 -5
  22. package/Input/InputTextArea.tsx +0 -2
  23. package/Layout/Card.tsx +1 -2
  24. package/Layout/FloatingButton.tsx +0 -2
  25. package/Layout/Item.tsx +0 -2
  26. package/Layout/ItemList.tsx +0 -2
  27. package/Layout/ItemSectionList.tsx +0 -2
  28. package/Layout/Screen.tsx +70 -268
  29. package/Layout/Section.tsx +3 -3
  30. package/Layout/TrackingScope.tsx +0 -2
  31. package/Layout/index.ts +1 -2
  32. package/Layout/utils.ts +2 -15
  33. package/Loader/DotLoader.tsx +0 -2
  34. package/Loader/Loader.tsx +1 -3
  35. package/Loader/ProgressBar.tsx +0 -2
  36. package/Loader/Spinner.tsx +0 -2
  37. package/Pagination/Dot.tsx +0 -2
  38. package/Pagination/PaginationDot.tsx +0 -2
  39. package/Pagination/PaginationNumber.tsx +0 -2
  40. package/Pagination/PaginationScroll.tsx +0 -2
  41. package/Pagination/PaginationWhiteDot.tsx +0 -2
  42. package/Popup/PopupNotify.tsx +0 -2
  43. package/Popup/PopupPromotion.tsx +0 -2
  44. package/Radio/index.tsx +1 -2
  45. package/Skeleton/index.tsx +0 -2
  46. package/Switch/index.tsx +0 -2
  47. package/Tag/index.tsx +0 -2
  48. package/Text/index.tsx +0 -2
  49. package/package.json +34 -34
  50. 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
- "name": "@momo-kits/foundation",
3
- "version": "0.157.2-test.1",
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
- }
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
@@ -1,2 +0,0 @@
1
- export * from './Context/ScreenRegistryContext';
2
- export { useScreenRegistry } from './Layout/utils';