@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.
- package/Application/NavigationContainer.tsx +1 -1
- package/Layout/Card.tsx +1 -2
- package/Layout/GridSystem.tsx +1 -2
- package/Layout/Section.tsx +1 -3
- package/Layout/index.ts +0 -1
- package/Layout/types.ts +0 -5
- package/package.json +2 -2
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:
|
|
151
|
+
marginHorizontal: margin,
|
|
153
152
|
backgroundColor: theme.colors.background.surface,
|
|
154
153
|
},
|
|
155
154
|
useShadow && Shadow.Light,
|
package/Layout/GridSystem.tsx
CHANGED
|
@@ -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:
|
|
48
|
+
marginHorizontal: margin,
|
|
50
49
|
top: Spacing.M,
|
|
51
50
|
bottom: Spacing.M,
|
|
52
51
|
},
|
package/Layout/Section.tsx
CHANGED
|
@@ -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:
|
|
157
|
+
marginHorizontal: margin,
|
|
160
158
|
flexDirection: 'row',
|
|
161
159
|
flexWrap: 'wrap',
|
|
162
160
|
},
|
package/Layout/index.ts
CHANGED
package/Layout/types.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momo-kits/foundation",
|
|
3
|
-
"version": "0.81.
|
|
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.
|
|
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",
|