@dgui/react-native-material-bars-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/AppBar.js +4 -2
- package/dist/AppBar.js.map +1 -1
- package/dist/DrawerBar.js +4 -2
- package/dist/DrawerBar.js.map +1 -1
- package/dist/DrawerToggle.js +1 -1
- package/dist/DrawerToggle.js.map +1 -1
- package/package.json +12 -12
package/dist/AppBar.js
CHANGED
|
@@ -19,13 +19,15 @@ const styles = react_native_1.StyleSheet.create({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
const AppBar = () => {
|
|
22
|
-
const
|
|
22
|
+
const selectTab = (0, react_shared_1.useSelectTab)();
|
|
23
|
+
const tabIndex = (0, react_shared_1.useTabIndex)();
|
|
23
24
|
const handleSelectTab = (0, react_1.useCallback)((index) => {
|
|
24
25
|
selectTab(index);
|
|
25
26
|
}, [
|
|
26
27
|
selectTab
|
|
27
28
|
]);
|
|
28
|
-
const
|
|
29
|
+
const tabOrder = (0, react_shared_1.useTabOrder)();
|
|
30
|
+
const tabs = (0, react_shared_1.useTabs)();
|
|
29
31
|
const routes = (0, react_1.useMemo)(() => {
|
|
30
32
|
return tabOrder.map((tabId) => {
|
|
31
33
|
var _a, _b, _c, _d;
|
package/dist/AppBar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppBar.js","sourceRoot":"","sources":["../src/AppBar.tsx"],"names":[],"mappings":";;;;;;AAAA,kEAA0C;AAC1C,kDAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"AppBar.js","sourceRoot":"","sources":["../src/AppBar.tsx"],"names":[],"mappings":";;;;;;AAAA,kEAA0C;AAC1C,kDAA0B;AAC1B,qDAK4B;AAC5B,iCAIe;AACf,+CAIsB;AAEtB,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAChC,MAAM,EAAE;QACP,UAAU,E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ED
|
@@ -17,13 +17,15 @@ const styles = react_native_1.StyleSheet.create({
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
const DrawerBar = () => {
|
|
20
|
-
const
|
|
20
|
+
const drawerIndex = (0, react_shared_1.useDrawerIndex)();
|
|
21
|
+
const selectDrawer = (0, react_shared_1.useSelectDrawer)();
|
|
21
22
|
const handleSelectDrawer = (0, react_1.useCallback)((tabIndex) => {
|
|
22
23
|
selectDrawer(tabIndex);
|
|
23
24
|
}, [
|
|
24
25
|
selectDrawer
|
|
25
26
|
]);
|
|
26
|
-
const
|
|
27
|
+
const drawerOrder = (0, react_shared_1.useDrawerOrder)();
|
|
28
|
+
const drawers = (0, react_shared_1.useDrawers)();
|
|
27
29
|
const routes = (0, react_1.useMemo)(() => {
|
|
28
30
|
return drawerOrder.map((drawerId) => {
|
|
29
31
|
var _a, _b;
|
package/dist/DrawerBar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerBar.js","sourceRoot":"","sources":["../src/DrawerBar.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"DrawerBar.js","sourceRoot":"","sources":["../src/DrawerBar.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,qDAK4B;AAC5B,iCAIe;AACf,+CAIsB;AAEtB,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAChC,MAAM,EAAE;QACP,eAAe,EAAE,MAAM;QAEvB,OAAO,EAAE,MAAM;QACf,SAAS,EAAE,CAAC;QACZ,aAAa,EAAE,KAAK;KACpB;CACD,CAAC,CAAC;AAEH,MAAM,SAAS,GAAsC,GAAG,EAAE;IACzD,MAAM,WAAW,GAAG,IAAA,6BAAc,GAAE,CAAC;IACrC,MAAM,YAAY,GAAG,IAAA,8BAAe,GAAE,CAAC;IAEvC,MAAM,kBAAkB,GAAG,IAAA,mBAAW,EACrC,CACC,QAAgB,EACf,EAAE;QACH,YAAY,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC,EACD;QACC,YAAY;KACZ,CACD,CAAC;IAEF,MAAM,WAAW,GAAG,IAAA,6BAAc,GAAE,CAAC;IACrC,MAAM,OAAO,GAAG,IAAA,yBAAU,GAAE,CAAC;IAE7B,MAAM,MAAM,GAAG,IAAA,eAAO,EACrB,GAAG,EAAE;QACJ,OAAO,WAAW,CAAC,GAAG,CACrB,CACC,QAAQ,EACP,EAAE;;YACH,OAAO,CACN;gBACC,GAAG,EAAE,QAAQ;gBACb,KAAK,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,CAAC,0CAAE,KAAK,mCAAI,QAAQ;aAC3C,CACD,CAAC;QACH,CAAC,CACD,CAAC;IACH,CAAC,EACD;QACC,WAAW;QACX,OAAO;KACP,CACD,CAAC;IAEF,OAAO,CACN,uBAAC,mBAAI,IACJ,KAAK,EAAE,MAAM,CAAC,MAAM,YAEpB,uBAAC,cAAI,IACJ,YAAY,EAAE,WAAW,EACzB,WAAW,EAAE,kBAAkB,EAC/B,MAAM,EAAE,MAAM,GACb,GACI,CACP,CAAC;AACH,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
package/dist/DrawerToggle.js
CHANGED
|
@@ -11,7 +11,7 @@ const styles = react_native_1.StyleSheet.create({
|
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
const DrawerToggle = () => {
|
|
14
|
-
const
|
|
14
|
+
const toggleDrawer = (0, react_shared_1.useDrawerToggle)();
|
|
15
15
|
const handlePress = (0, react_1.useCallback)(() => {
|
|
16
16
|
if (toggleDrawer) {
|
|
17
17
|
toggleDrawer();
|
package/dist/DrawerToggle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerToggle.js","sourceRoot":"","sources":["../src/DrawerToggle.tsx"],"names":[],"mappings":";;;AAAA,qDAE4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"DrawerToggle.js","sourceRoot":"","sources":["../src/DrawerToggle.tsx"],"names":[],"mappings":";;;AAAA,qDAE4B;AAC5B,iCAIe;AACf,+CAGsB;AACtB,2DAE4B;AAE5B,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAChC,UAAU,EAAE;QACX,MAAM,EAAE,CAAC;KACT;CACD,CAAC,CAAC;AAEH,MAAM,YAAY,GAAyC,GAAG,EAAE;IAC/D,MAAM,YAAY,GAAG,IAAA,8BAAe,GAAE,CAAC;IAEvC,MAAM,WAAW,GAAG,IAAA,mBAAW,EAC9B,GAAG,EAAE;QACJ,IAAI,YAAY,EAAE,CAAC;YAClB,YAAY,EAAE,CAAC;QAChB,CAAC;IACF,CAAC,EACD;QACC,YAAY;KACZ,CACD,CAAC;IAEF,OAAO,CACN,uBAAC,+BAAU,IACV,kBAAkB,EAAC,aAAa,EAChC,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,MAAM,CAAC,UAAU,GACvB,CACF,CAAC;AACH,CAAC,CAAC;AAEF,kBAAe,IAAA,YAAI,EAClB,YAAY,CACZ,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@dgui/react-native-material-bars-shared",
|
|
3
3
|
"title": "Digested React GUI Shared Native Material Bars 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": "Shared Native Material Bars (AppBar & DrawerBar) components for @dgui",
|
|
8
8
|
"author": "wallzero @wallzeroblog (http://wallzero.com)",
|
|
@@ -42,15 +42,15 @@
|
|
|
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
|
-
"@types/react": "^18.3.
|
|
53
|
+
"@types/react": "^18.3.3",
|
|
54
54
|
"@types/react-test-renderer": "^18.3.0",
|
|
55
55
|
"cross-env": "^7.0.3",
|
|
56
56
|
"jest-environment-jsdom": "^29.7.0",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"react": "^18.3.1",
|
|
60
60
|
"react-native": "^0.74.1",
|
|
61
61
|
"react-native-paper": "^5.12.3",
|
|
62
|
-
"react-native-safe-area-context": "^4.10.
|
|
62
|
+
"react-native-safe-area-context": "^4.10.3",
|
|
63
63
|
"react-native-vector-icons": "^10.1.0",
|
|
64
64
|
"react-test-renderer": "^18.3.1",
|
|
65
65
|
"rimraf": "^5.0.7"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@dgui/react-shared": "^1.
|
|
68
|
+
"@dgui/react-shared": "^1.4.0-next.1",
|
|
69
69
|
"react-native-tab-view": "^3.5.2"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"material",
|
|
86
86
|
"typescript"
|
|
87
87
|
],
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "ba3621ba0e90f641430e2abbe34893c71ab9726c"
|
|
89
89
|
}
|