@momo-kits/foundation 0.81.9 → 0.81.11

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.
@@ -56,7 +56,7 @@ const NavigationContainer: React.FC<NavigationContainerProps> = ({
56
56
  setLanguage(lang);
57
57
  });
58
58
  return () => {
59
- listener?.();
59
+ listener?.remove?.();
60
60
  };
61
61
  }, []);
62
62
 
package/Layout/Card.tsx CHANGED
@@ -41,7 +41,6 @@ const Card: React.FC<CardProps> = ({
41
41
  const gridContext: GridContextProps = {
42
42
  numberOfColumns,
43
43
  gutterSize,
44
- margin,
45
44
  sizePerSpan,
46
45
  getSizeSpan: span => {
47
46
  return span * sizePerSpan + (span - 1) * gutterSize;
@@ -149,7 +148,7 @@ const Card: React.FC<CardProps> = ({
149
148
  styles.card,
150
149
  {
151
150
  width: widthSection,
152
- marginHorizontal: gridContext.margin,
151
+ marginHorizontal: margin,
153
152
  backgroundColor: theme.colors.background.surface,
154
153
  },
155
154
  useShadow && Shadow.Light,
@@ -24,7 +24,6 @@ const GridSystem: React.FC<any> = ({
24
24
  const grid: GridContextProps = {
25
25
  numberOfColumns,
26
26
  gutterSize,
27
- margin,
28
27
  sizePerSpan,
29
28
  getSizeSpan: span => {
30
29
  return span * sizePerSpan + (span - 1) * gutterSize;
@@ -46,7 +45,7 @@ const GridSystem: React.FC<any> = ({
46
45
  screenGrid && insets,
47
46
  {
48
47
  borderColor: theme.colors.error.primary,
49
- marginHorizontal: grid.margin,
48
+ marginHorizontal: margin,
50
49
  top: Spacing.M,
51
50
  bottom: Spacing.M,
52
51
  },
@@ -50,7 +50,6 @@ const Section: React.FC<SectionProps> = ({
50
50
  const gridContext: GridContextProps = {
51
51
  numberOfColumns,
52
52
  gutterSize,
53
- margin,
54
53
  sizePerSpan,
55
54
  getSizeSpan: span => {
56
55
  return span * sizePerSpan + (span - 1) * gutterSize;
@@ -143,7 +142,6 @@ const Section: React.FC<SectionProps> = ({
143
142
  value={{
144
143
  numberOfColumns,
145
144
  gutterSize,
146
- margin,
147
145
  sizePerSpan,
148
146
  getSizeSpan: span => {
149
147
  return span * sizePerSpan + (span - 1) * gutterSize;
@@ -156,7 +154,7 @@ const Section: React.FC<SectionProps> = ({
156
154
  styles.protectedStyle,
157
155
  {
158
156
  width: widthSection,
159
- marginHorizontal: gridContext.margin,
157
+ marginHorizontal: margin,
160
158
  flexDirection: 'row',
161
159
  flexWrap: 'wrap',
162
160
  },
package/Layout/index.ts CHANGED
@@ -11,7 +11,6 @@ import ItemSectionList from './ItemSectionList';
11
11
  const GridContext = createContext<GridContextProps>({
12
12
  numberOfColumns: 12,
13
13
  gutterSize: 12,
14
- margin: 12,
15
14
  sizePerSpan: 0,
16
15
  getSizeSpan: () => 0,
17
16
  });
package/Layout/types.ts CHANGED
@@ -9,11 +9,6 @@ export type GridContextProps = {
9
9
  */
10
10
  gutterSize: number;
11
11
 
12
- /**
13
- * Optional. Represents the margin around the grid.
14
- */
15
- margin?: number;
16
-
17
12
  /**
18
13
  * Represents the size (width or height) per span number.
19
14
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.81.9",
3
+ "version": "0.81.11",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "@gorhom/bottom-sheet": "git+https://gitlab.com/dung.huynh1/bottom-sheet.git#main",
14
14
  "react-native-safe-area-context": "3.1.4",
15
- "react-native-linear-gradient": "2.5.6",
15
+ "react-native-linear-gradient": "2.8.3",
16
16
  "react-native-gesture-handler": "1.10.3",
17
17
  "react-native-fast-image": "8.1.5",
18
18
  "@react-navigation/bottom-tabs": "git+https://gitlab.com/dung.huynh1/react-navigation-bottom-tabs.git#main",