@dgui/react-native-shared 1.3.0-beta.1 → 1.4.0-next.1
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/dist/Components/AppBar/DrawerToggle/index.js +3 -3
- package/dist/Components/AppBar/DrawerToggle/index.js.map +1 -1
- package/dist/Components/AppBar/index.js +2 -2
- package/dist/Components/AppBar/index.js.map +1 -1
- package/dist/Components/Drawers/DrawerBar/index.js +2 -2
- package/dist/Components/Drawers/DrawerBar/index.js.map +1 -1
- package/package.json +11 -11
|
@@ -8,11 +8,11 @@ const NativeBaseButton_1 = __importDefault(require("../../../Generics/NativeBase
|
|
|
8
8
|
const react_shared_1 = require("@dgui/react-shared");
|
|
9
9
|
const react_1 = require("react");
|
|
10
10
|
const DrawerToggle = () => {
|
|
11
|
-
const
|
|
11
|
+
const drawerToggle = (0, react_shared_1.useDrawerToggle)();
|
|
12
12
|
const handlePress = (0, react_1.useCallback)(() => {
|
|
13
|
-
|
|
13
|
+
drawerToggle();
|
|
14
14
|
}, [
|
|
15
|
-
|
|
15
|
+
drawerToggle
|
|
16
16
|
]);
|
|
17
17
|
return ((0, jsx_runtime_1.jsx)(NativeBaseButton_1.default, { onPress: handlePress, title: 'Drawer Toggle' }));
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/AppBar/DrawerToggle/index.tsx"],"names":[],"mappings":";;;;;;AAAA,0FAAkE;AAClE,qDAE4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/AppBar/DrawerToggle/index.tsx"],"names":[],"mappings":";;;;;;AAAA,0FAAkE;AAClE,qDAE4B;AAC5B,iCAIe;AAEf,MAAM,YAAY,GAAyC,GAAG,EAAE;IAC/D,MAAM,YAAY,GAAG,IAAA,8BAAe,GAAE,CAAC;IAEvC,MAAM,WAAW,GAAG,IAAA,mBAAW,EAC9B,GAAG,EAAE;QACJ,YAAY,EAAE,CAAC;IAChB,CAAC,EACD;QACC,YAAY;KACZ,CACD,CAAC;IAEF,OAAO,CACN,uBAAC,0BAAgB,IAChB,OAAO,EAAE,WAAW,EACpB,KAAK,EAAC,eAAe,GACpB,CACF,CAAC;AACH,CAAC,CAAC;AAEF,kBAAe,IAAA,YAAI,EAClB,YAAY,CACZ,CAAC"}
|
|
@@ -16,13 +16,13 @@ const styles = {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
const AppBar = () => {
|
|
19
|
-
const
|
|
19
|
+
const selectTab = (0, react_shared_1.useSelectTab)();
|
|
20
20
|
const handleSelectTab = (0, react_1.useCallback)((tabIndex) => {
|
|
21
21
|
selectTab(tabIndex);
|
|
22
22
|
}, [
|
|
23
23
|
selectTab
|
|
24
24
|
]);
|
|
25
|
-
const
|
|
25
|
+
const tabOrder = (0, react_shared_1.useTabOrder)();
|
|
26
26
|
const tabs = (0, react_1.useMemo)(() => {
|
|
27
27
|
return tabOrder.map((tabId, index) => {
|
|
28
28
|
return ((0, jsx_runtime_1.jsx)(NativeBaseTabBar_1.NativeBaseTabBarTab, { onSelectTab: handleSelectTab, tabId: tabId, tabIndex: index }, tabId));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Components/AppBar/index.tsx"],"names":[],"mappings":";;;;;;AAAA,6FAAqE;AACrE,sEAGyC;AACzC,kEAA0C;AAC1C,qDAG4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Components/AppBar/index.tsx"],"names":[],"mappings":";;;;;;AAAA,6FAAqE;AACrE,sEAGyC;AACzC,kEAA0C;AAC1C,qDAG4B;AAC5B,iCAIe;AAMf,MAAM,MAAM,GAER;IACH,MAAM,EAAE;QACP,eAAe,EAAE,MAAM;QACvB,aAAa,EAAE,KAAK;KACpB;CACD,CAAC;AAEF,MAAM,MAAM,GAAmC,GAAG,EAAE;IACnD,MAAM,SAAS,GAAG,IAAA,2BAAY,GAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,IAAA,mBAAW,EAClC,CACC,QAAgB,EACf,EAAE;QACH,SAAS,CAAC,QAAQ,CAAC,CAAC;IACrB,CAAC,EACD;QACC,SAAS;KACT,CACD,CAAC;IAEF,MAAM,QAAQ,GAAG,IAAA,0BAAW,GAAE,CAAC;IAE/B,MAAM,IAAI,GAAG,IAAA,eAAO,EACnB,GAAG,EAAE;QACJ,OAAO,QAAQ,CAAC,GAAG,CAClB,CACC,KAAK,EACL,KAAK,EACJ,EAAE;YACH,OAAO,CACN,uBAAC,sCAAmB,IAEnB,WAAW,EAAE,eAAe,EAC5B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,KAAK,IAHV,KAAK,CAIT,CACF,CAAC;QACH,CAAC,CACD,CAAC;IACH,CAAC,EACD;QACC,eAAe;QACf,QAAQ;KACR,CACD,CAAC;IAEF,OAAO,CACN,wBAAC,6BAAmB,IACnB,KAAK,EAAE,MAAM,CAAC,MAAM,aAEpB,uBAAC,sBAAY,KAAG,EAChB,uBAAC,mCAAgB,cACf,IAAI,GACa,IACE,CACtB,CAAC;AACH,CAAC,CAAC;AAEF,kBAAe,MAAM,CAAC"}
|
|
@@ -12,13 +12,13 @@ const styles = react_native_1.StyleSheet.create({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
const DrawerBar = () => {
|
|
15
|
-
const
|
|
15
|
+
const selectDrawer = (0, react_shared_1.useSelectDrawer)();
|
|
16
16
|
const handleSelectDrawer = (0, react_1.useCallback)((drawerIndex) => {
|
|
17
17
|
selectDrawer(drawerIndex);
|
|
18
18
|
}, [
|
|
19
19
|
selectDrawer
|
|
20
20
|
]);
|
|
21
|
-
const
|
|
21
|
+
const drawerOrder = (0, react_shared_1.useDrawerOrder)();
|
|
22
22
|
const tabs = (0, react_1.useMemo)(() => {
|
|
23
23
|
return drawerOrder.map((tabId, index) => {
|
|
24
24
|
return ((0, jsx_runtime_1.jsx)(NativeBaseTabBar_1.NativeBaseTabBarTab, { onSelectTab: handleSelectDrawer, tabId: tabId, tabIndex: index }, tabId));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/Drawers/DrawerBar/index.tsx"],"names":[],"mappings":";;;AAAA,yEAG4C;AAC5C,qDAG4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/Drawers/DrawerBar/index.tsx"],"names":[],"mappings":";;;AAAA,yEAG4C;AAC5C,qDAG4B;AAC5B,iCAIe;AACf,+CAIsB;AAEtB,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAChC,SAAS,EAAE;QACV,eAAe,EAAE,MAAM;QACvB,aAAa,EAAE,KAAK;KACpB;CACD,CAAC,CAAC;AAEH,MAAM,SAAS,GAAsC,GAAG,EAAE;IACzD,MAAM,YAAY,GAAG,IAAA,8BAAe,GAAE,CAAC;IAEvC,MAAM,kBAAkB,GAAG,IAAA,mBAAW,EACrC,CACC,WAAmB,EAClB,EAAE;QACH,YAAY,CAAC,WAAW,CAAC,CAAC;IAC3B,CAAC,EACD;QACC,YAAY;KACZ,CACD,CAAC;IAEF,MAAM,WAAW,GAAG,IAAA,6BAAc,GAAE,CAAC;IAErC,MAAM,IAAI,GAAG,IAAA,eAAO,EACnB,GAAG,EAAE;QACJ,OAAO,WAAW,CAAC,GAAG,CACrB,CACC,KAAK,EACL,KAAK,EACJ,EAAE;YACH,OAAO,CACN,uBAAC,sCAAS,IAET,WAAW,EAAE,kBAAkB,EAC/B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,KAAK,IAHV,KAAK,CAIT,CACF,CAAC;QACH,CAAC,CACD,CAAC;IACH,CAAC,EACD;QACC,WAAW;QACX,kBAAkB;KAClB,CACD,CAAC;IAEF,OAAO,CACN,uBAAC,mBAAI,IACJ,KAAK,EAAE,MAAM,CAAC,SAAS,YAEvB,uBAAC,mCAAM,cACL,IAAI,GACG,GACH,CACP,CAAC;AACH,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,oBAAoB,CAAC;AAE7C,kBAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@dgui/react-native-shared",
|
|
3
3
|
"title": "Digested React GUI Native Shared Components",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.4.0-next.1",
|
|
6
6
|
"private": false,
|
|
7
7
|
"description": "Native Shared Components for a boilerplate React GUI",
|
|
8
8
|
"author": "wallzero @wallzeroblog (http://wallzero.com)",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"clean:dist": "rimraf dist"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@digest/eslint-config-jest": "^4.
|
|
46
|
-
"@digest/eslint-config-react": "^4.
|
|
47
|
-
"@digest/eslint-config-typescript": "^4.
|
|
48
|
-
"@digest/jest-junit": "^4.
|
|
49
|
-
"@digest/jest-react": "^4.
|
|
50
|
-
"@digest/jest-typescript": "^4.
|
|
51
|
-
"@digest/typescript": "^4.
|
|
45
|
+
"@digest/eslint-config-jest": "^4.4.2",
|
|
46
|
+
"@digest/eslint-config-react": "^4.4.2",
|
|
47
|
+
"@digest/eslint-config-typescript": "^4.4.2",
|
|
48
|
+
"@digest/jest-junit": "^4.4.2",
|
|
49
|
+
"@digest/jest-react": "^4.4.2",
|
|
50
|
+
"@digest/jest-typescript": "^4.4.2",
|
|
51
|
+
"@digest/typescript": "^4.4.2",
|
|
52
52
|
"@types/jest": "^29.5.12",
|
|
53
53
|
"@types/lodash.debounce": "^4.0.9",
|
|
54
|
-
"@types/react": "^18.3.
|
|
54
|
+
"@types/react": "^18.3.3",
|
|
55
55
|
"@types/react-native": "^0.73.0",
|
|
56
56
|
"@types/react-test-renderer": "^18.3.0",
|
|
57
57
|
"cross-env": "^7.0.3",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"rimraf": "^5.0.7"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@dgui/react-shared": "^1.
|
|
67
|
+
"@dgui/react-shared": "^1.4.0-next.1",
|
|
68
68
|
"lodash.debounce": "^4.0.8"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"react-native",
|
|
80
80
|
"typescript"
|
|
81
81
|
],
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "ba3621ba0e90f641430e2abbe34893c71ab9726c"
|
|
83
83
|
}
|