afrikit-mobile 1.0.30 → 1.0.32
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalWrapper.d.ts","sourceRoot":"","sources":["../../../molecules/GlobalWrapper/GlobalWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"GlobalWrapper.d.ts","sourceRoot":"","sources":["../../../molecules/GlobalWrapper/GlobalWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAWlD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;IAClC,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoCtD,CAAA"}
|
|
@@ -7,7 +7,6 @@ exports.GlobalWrapper = void 0;
|
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = require("react");
|
|
9
9
|
const react_native_1 = require("react-native");
|
|
10
|
-
const react_native_safe_area_context_1 = require("react-native-safe-area-context");
|
|
11
10
|
const FloatingButton_1 = __importDefault(require("../../components/molecules/FloatingButton"));
|
|
12
11
|
const GlobalWrapper = ({ children, showFloatingButton = true, onFloatingButtonPress, floatingButtonColor = 'black', }) => {
|
|
13
12
|
const [keyboardVisible, setKeyboardVisible] = (0, react_1.useState)(false);
|
|
@@ -19,7 +18,7 @@ const GlobalWrapper = ({ children, showFloatingButton = true, onFloatingButtonPr
|
|
|
19
18
|
hideListener.remove();
|
|
20
19
|
};
|
|
21
20
|
}, []);
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.SafeAreaView, { className: "flex-1 bg-light-optiblue4 dark:bg-dark-optiblue4", children: (0, jsx_runtime_1.jsx)(react_native_1.ScrollView, { contentContainerStyle: { padding: 16, flexGrow: 1 }, keyboardShouldPersistTaps: "handled", children: (0, jsx_runtime_1.jsxs)(react_native_1.KeyboardAvoidingView, { behavior: react_native_1.Platform.OS === 'ios' ? 'padding' : 'height', className: "flex-1 h-screen", children: [(0, jsx_runtime_1.jsx)(react_native_1.View, { className: "flex-1 p-4", children: children }), (showFloatingButton || keyboardVisible) && ((0, jsx_runtime_1.jsx)(FloatingButton_1.default, { onPress: onFloatingButtonPress, backgroundColor: floatingButtonColor }))] }) }) }));
|
|
23
22
|
};
|
|
24
23
|
exports.GlobalWrapper = GlobalWrapper;
|
|
25
24
|
//# sourceMappingURL=GlobalWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalWrapper.js","sourceRoot":"","sources":["../../../molecules/GlobalWrapper/GlobalWrapper.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAkD;AAClD,+
|
|
1
|
+
{"version":3,"file":"GlobalWrapper.js","sourceRoot":"","sources":["../../../molecules/GlobalWrapper/GlobalWrapper.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAkD;AAClD,+CAOqB;AACrB,+FAAsE;AAS/D,MAAM,aAAa,GAAiC,CAAC,EAC1D,QAAQ,EACR,kBAAkB,GAAG,IAAI,EACzB,qBAAqB,EACrB,mBAAmB,GAAG,OAAO,GAC9B,EAAE,EAAE;IACH,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAE7D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,YAAY,GAAG,uBAAQ,CAAC,WAAW,CAAC,iBAAiB,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAA;QAC5F,MAAM,YAAY,GAAG,uBAAQ,CAAC,WAAW,CAAC,iBAAiB,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAA;QAC7F,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,MAAM,EAAE,CAAA;YACrB,YAAY,CAAC,MAAM,EAAE,CAAA;QACvB,CAAC,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CACL,uBAAC,2BAAY,IAAC,SAAS,EAAC,kDAAkD,YACxE,uBAAC,yBAAU,IACT,qBAAqB,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,EACnD,yBAAyB,EAAC,SAAS,YACnC,wBAAC,mCAAoB,IACnB,QAAQ,EAAE,uBAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EACtD,SAAS,EAAC,iBAAiB,aAC3B,uBAAC,mBAAI,IAAC,SAAS,EAAC,YAAY,YAAE,QAAQ,GAAQ,EAC7C,CAAC,kBAAkB,IAAI,eAAe,CAAC,IAAI,CAC1C,uBAAC,wBAAc,IACb,OAAO,EAAE,qBAAsB,EAC/B,eAAe,EAAE,mBAAmB,GACpC,CACH,IACoB,GACZ,GACA,CAChB,CAAA;AACH,CAAC,CAAA;AApCY,QAAA,aAAa,iBAoCzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "afrikit-mobile",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
4
4
|
"main": "entrance.ts",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -23,9 +23,7 @@
|
|
|
23
23
|
"expo-status-bar": "~1.12.1",
|
|
24
24
|
"expo-updates": "~0.25.24",
|
|
25
25
|
"nativewind": "^4.0.1",
|
|
26
|
-
"react": "18.2.0",
|
|
27
26
|
"react-hook-form": "^7.53.0",
|
|
28
|
-
"react-native": "0.74.5",
|
|
29
27
|
"react-native-date-picker": "^5.0.7",
|
|
30
28
|
"react-native-flash-message": "^0.4.2",
|
|
31
29
|
"react-native-gesture-handler": "~2.16.1",
|
|
@@ -50,8 +48,12 @@
|
|
|
50
48
|
"react-native-safe-area-context": "4.10.5",
|
|
51
49
|
"typescript": "~5.3.3"
|
|
52
50
|
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"react": "18.2.0",
|
|
53
|
+
"react-native": ">=0.68.0"
|
|
54
|
+
},
|
|
53
55
|
"publishConfig": {
|
|
54
56
|
"access": "public"
|
|
55
57
|
},
|
|
56
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "a8bf38b43677559002e8cd8943a1339210d1e2fb"
|
|
57
59
|
}
|