@dgui/react-native 1.8.4 → 1.8.5
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/cjs/Components/Drawers/Tabs/Context/Scene.js +12 -10
- package/dist/cjs/Components/Drawers/Tabs/Context/Scene.js.map +1 -1
- package/dist/cjs/Components/Drawers/Tabs/Context/index.js +17 -12
- package/dist/cjs/Components/Drawers/Tabs/Context/index.js.map +1 -1
- package/dist/cjs/Components/Drawers/Tabs/Scene.js +18 -13
- package/dist/cjs/Components/Drawers/Tabs/Scene.js.map +1 -1
- package/dist/cjs/Components/Drawers/Tabs/index.js +17 -12
- package/dist/cjs/Components/Drawers/Tabs/index.js.map +1 -1
- package/dist/cjs/Components/Drawers/index.js +16 -11
- package/dist/cjs/Components/Drawers/index.js.map +1 -1
- package/dist/cjs/Components/NativeAppBar/index.js +7 -5
- package/dist/cjs/Components/NativeAppBar/index.js.map +1 -1
- package/dist/cjs/Components/NativeDrawer/index.js +12 -10
- package/dist/cjs/Components/NativeDrawer/index.js.map +1 -1
- package/dist/cjs/Components/NativeDrawerBar/index.js +7 -5
- package/dist/cjs/Components/NativeDrawerBar/index.js.map +1 -1
- package/dist/cjs/Components/NativeTab/index.js +12 -10
- package/dist/cjs/Components/NativeTab/index.js.map +1 -1
- package/dist/cjs/Components/Tabs/Scene.js +12 -10
- package/dist/cjs/Components/Tabs/Scene.js.map +1 -1
- package/dist/cjs/Components/Tabs/index.js +17 -12
- package/dist/cjs/Components/Tabs/index.js.map +1 -1
- package/dist/cjs/Generics/NativeCarousel/NativeCarousel.js +21 -16
- package/dist/cjs/Generics/NativeCarousel/NativeCarousel.js.map +1 -1
- package/dist/cjs/Generics/NativeCarousel/NativeHorse.js +5 -3
- package/dist/cjs/Generics/NativeCarousel/NativeHorse.js.map +1 -1
- package/dist/cjs/Generics/NativeCarousel/index.js +10 -2
- package/dist/cjs/Generics/NativeCarousel/index.js.map +1 -1
- package/dist/cjs/Generics/NativeGateway/NativeGateway.js +14 -9
- package/dist/cjs/Generics/NativeGateway/NativeGateway.js.map +1 -1
- package/dist/cjs/Generics/NativeGateway/NativeGatewayContext.js +5 -3
- package/dist/cjs/Generics/NativeGateway/NativeGatewayContext.js.map +1 -1
- package/dist/cjs/Generics/NativeGateway/NativeGatewayDest.js +14 -9
- package/dist/cjs/Generics/NativeGateway/NativeGatewayDest.js.map +1 -1
- package/dist/cjs/Generics/NativeGateway/NativeGatewayProvider.js +21 -16
- package/dist/cjs/Generics/NativeGateway/NativeGatewayProvider.js.map +1 -1
- package/dist/cjs/Generics/NativeGateway/index.js +14 -4
- package/dist/cjs/Generics/NativeGateway/index.js.map +1 -1
- package/dist/cjs/Providers/index.js +7 -5
- package/dist/cjs/Providers/index.js.map +1 -1
- package/dist/cjs/ReactNativeDigest.js +14 -9
- package/dist/cjs/ReactNativeDigest.js.map +1 -1
- package/dist/cjs/Types.js +2 -1
- package/dist/cjs/index.js +34 -7
- package/dist/cjs/index.js.map +1 -1
- package/package.json +21 -21
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const NativeCarousel_1 = require("../../../../Generics/NativeCarousel");
|
|
5
|
+
const NativeGateway_1 = require("../../../../Generics/NativeGateway");
|
|
6
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
7
|
+
const react_1 = require("react");
|
|
6
8
|
const Scene = ({ drawerId, tabId }) => {
|
|
7
|
-
const tabs = useTabs();
|
|
9
|
+
const tabs = (0, react_shared_1.useTabs)();
|
|
8
10
|
const { swipe } = tabs[tabId] ?? {};
|
|
9
|
-
const gatewayId = useMemo(() => {
|
|
11
|
+
const gatewayId = (0, react_1.useMemo)(() => {
|
|
10
12
|
return `drawer-${drawerId}-${tabId}`;
|
|
11
13
|
}, []);
|
|
12
|
-
return (
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(NativeCarousel_1.NativeHorse, { swipe: swipe, children: (0, jsx_runtime_1.jsx)(NativeGateway_1.NativeGatewayDest, { gatewayId: gatewayId }) }));
|
|
13
15
|
};
|
|
14
16
|
Scene.displayName = 'NativeDrawerTabsSceneContextScene';
|
|
15
|
-
const SceneSwiperSlide = memo(Scene);
|
|
17
|
+
const SceneSwiperSlide = (0, react_1.memo)(Scene);
|
|
16
18
|
SceneSwiperSlide.displayName = 'SceneSwiperSlide';
|
|
17
|
-
|
|
19
|
+
exports.default = SceneSwiperSlide;
|
|
18
20
|
//# sourceMappingURL=Scene.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../../../src/Components/Drawers/Tabs/Context/Scene.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../../../src/Components/Drawers/Tabs/Context/Scene.tsx"],"names":[],"mappings":";;;AAMA,wEAE6C;AAC7C,sEAE4C;AAC5C,qDAE4B;AAC5B,iCAIe;AAEf,MAAM,KAAK,GAAkC,CAC3C,EACE,QAAQ,EACR,KAAK,EACN,EACD,EAAE;IACF,MAAM,IAAI,GAAG,IAAA,sBAAO,GAAE,CAAC;IAEvB,MAAM,EACJ,KAAK,EACN,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAEtB,MAAM,SAAS,GAAG,IAAA,eAAO,EACvB,GAAG,EAAE;QACH,OAAO,UAAU,QAAQ,IAAI,KAAK,EAAE,CAAC;IACvC,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uBAAC,4BAAW,IACV,KAAK,EAAE,KAAK,YAEZ,uBAAC,iCAAiB,IAChB,SAAS,EAAE,SAAS,GACpB,GACU,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,mCAAmC,CAAC;AAExD,MAAM,gBAAgB,GAAG,IAAA,YAAI,EAC3B,KAAK,CACN,CAAC;AAOF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,kBAAe,gBAAgB,CAAC"}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const NativeCarousel_1 = require("../../../../Generics/NativeCarousel");
|
|
8
|
+
const Scene_1 = __importDefault(require("./Scene"));
|
|
9
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
10
|
+
const react_1 = require("react");
|
|
6
11
|
const Context = ({ drawerId }) => {
|
|
7
|
-
const selectTab = useSelectTab();
|
|
8
|
-
const tabIndex = useTabIndex();
|
|
9
|
-
const tabOrder = useTabOrder();
|
|
10
|
-
const tabs = useMemo(() => {
|
|
12
|
+
const selectTab = (0, react_shared_1.useSelectTab)();
|
|
13
|
+
const tabIndex = (0, react_shared_1.useTabIndex)();
|
|
14
|
+
const tabOrder = (0, react_shared_1.useTabOrder)();
|
|
15
|
+
const tabs = (0, react_1.useMemo)(() => {
|
|
11
16
|
return tabOrder.map((tab) => {
|
|
12
|
-
return (
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(Scene_1.default, { drawerId: drawerId, tabId: tab }, tab));
|
|
13
18
|
});
|
|
14
19
|
}, [
|
|
15
20
|
drawerId,
|
|
16
21
|
tabOrder
|
|
17
22
|
]);
|
|
18
|
-
return (
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(NativeCarousel_1.NativeCarousel, { onSelectTab: selectTab, swipe: false, tabIndex: tabIndex, children: tabs }));
|
|
19
24
|
};
|
|
20
25
|
Context.displayName = 'NativeDrawerTabsSceneContext';
|
|
21
|
-
|
|
26
|
+
exports.default = (0, react_1.memo)(Context);
|
|
22
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/Components/Drawers/Tabs/Context/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/Components/Drawers/Tabs/Context/index.tsx"],"names":[],"mappings":";;;;;;AAAA,wEAE6C;AAC7C,oDAA4B;AAC5B,qDAI4B;AAC5B,iCAIe;AAEf,MAAM,OAAO,GAAoC,CAAC,EAChD,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,IAAA,2BAAY,GAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,IAAA,0BAAW,GAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,0BAAW,GAAE,CAAC;IAE/B,MAAM,IAAI,GAAG,IAAA,eAAO,EAClB,GAAG,EAAE;QACH,OAAO,QAAQ,CAAC,GAAG,CACjB,CAAC,GAAG,EAAE,EAAE;YACN,OAAO,CACL,uBAAC,eAAK,IACJ,QAAQ,EAAE,QAAQ,EAElB,KAAK,EAAE,GAAG,IADL,GAAG,CAER,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC,EACD;QACE,QAAQ;QACR,QAAQ;KACT,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,+BAAc,IACb,WAAW,EAAE,SAAS,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,YAEjB,IAAI,GACU,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,8BAA8B,CAAC;AAErD,kBAAe,IAAA,YAAI,EAAC,OAAO,CAAC,CAAC"}
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const NativeCarousel_1 = require("../../../Generics/NativeCarousel");
|
|
8
|
+
const NativeGateway_1 = require("../../../Generics/NativeGateway");
|
|
9
|
+
const Context_1 = __importDefault(require("./Context"));
|
|
10
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
11
|
+
const react_1 = require("react");
|
|
7
12
|
const Scene = ({ drawerId }) => {
|
|
8
|
-
const drawers = useDrawers();
|
|
13
|
+
const drawers = (0, react_shared_1.useDrawers)();
|
|
9
14
|
const { swipe, tabs } = drawers[drawerId] ?? {};
|
|
10
|
-
const gatewayId = useMemo(() => {
|
|
15
|
+
const gatewayId = (0, react_1.useMemo)(() => {
|
|
11
16
|
return `drawer-${drawerId}`;
|
|
12
17
|
}, []);
|
|
13
|
-
return (
|
|
14
|
-
(
|
|
15
|
-
(
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(NativeCarousel_1.NativeHorse, { swipe: swipe, children: tabs ?
|
|
19
|
+
((0, jsx_runtime_1.jsx)(Context_1.default, { drawerId: drawerId })) :
|
|
20
|
+
((0, jsx_runtime_1.jsx)(NativeGateway_1.NativeGatewayDest, { gatewayId: gatewayId })) }));
|
|
16
21
|
};
|
|
17
22
|
Scene.displayName = 'NativeDrawerTabsScene';
|
|
18
|
-
const SceneSwiperSlide = memo(Scene);
|
|
23
|
+
const SceneSwiperSlide = (0, react_1.memo)(Scene);
|
|
19
24
|
SceneSwiperSlide.displayName = 'SceneSwiperSlide';
|
|
20
|
-
|
|
25
|
+
exports.default = SceneSwiperSlide;
|
|
21
26
|
//# sourceMappingURL=Scene.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../../src/Components/Drawers/Tabs/Scene.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../../src/Components/Drawers/Tabs/Scene.tsx"],"names":[],"mappings":";;;;;;AAMA,qEAE0C;AAC1C,mEAEyC;AACzC,wDAAgC;AAChC,qDAE4B;AAC5B,iCAIe;AAEf,MAAM,KAAK,GAAkC,CAAC,EAC5C,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,IAAA,yBAAU,GAAE,CAAC;IAE7B,MAAM,EACJ,KAAK,EACL,IAAI,EACL,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAE5B,MAAM,SAAS,GAAG,IAAA,eAAO,EACvB,GAAG,EAAE;QACH,OAAO,UAAU,QAAQ,EAAE,CAAC;IAC9B,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uBAAC,4BAAW,IACV,KAAK,EAAE,KAAK,YAGV,IAAI,CAAC,CAAC;YAEJ,CACE,uBAAC,iBAAO,IACN,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC;YAEH,CACE,uBAAC,iCAAiB,IAChB,SAAS,EAAE,SAAS,GACpB,CACH,GAGO,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,uBAAuB,CAAC;AAE5C,MAAM,gBAAgB,GAAG,IAAA,YAAI,EAC3B,KAAK,CACN,CAAC;AAMF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,kBAAe,gBAAgB,CAAC"}
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const NativeCarousel_1 = require("../../../Generics/NativeCarousel");
|
|
8
|
+
const Scene_1 = __importDefault(require("./Scene"));
|
|
9
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
10
|
+
const react_1 = require("react");
|
|
6
11
|
const Drawers = () => {
|
|
7
|
-
const drawerIndex = useDrawerIndex();
|
|
8
|
-
const selectDrawer = useSelectDrawer();
|
|
9
|
-
const drawerOrder = useDrawerOrder();
|
|
10
|
-
const drawers = useMemo(() => {
|
|
12
|
+
const drawerIndex = (0, react_shared_1.useDrawerIndex)();
|
|
13
|
+
const selectDrawer = (0, react_shared_1.useSelectDrawer)();
|
|
14
|
+
const drawerOrder = (0, react_shared_1.useDrawerOrder)();
|
|
15
|
+
const drawers = (0, react_1.useMemo)(() => {
|
|
11
16
|
return drawerOrder.map((drawerId) => {
|
|
12
|
-
return (
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(Scene_1.default, { drawerId: drawerId }, drawerId));
|
|
13
18
|
});
|
|
14
19
|
}, [
|
|
15
20
|
drawerOrder
|
|
16
21
|
]);
|
|
17
|
-
return (
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(NativeCarousel_1.NativeCarousel, { onSelectTab: selectDrawer, tabIndex: drawerIndex, children: drawers }));
|
|
18
23
|
};
|
|
19
24
|
Drawers.displayName = 'NativeDrawerTabs';
|
|
20
|
-
|
|
25
|
+
exports.default = (0, react_1.memo)(Drawers);
|
|
21
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Drawers/Tabs/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Drawers/Tabs/index.tsx"],"names":[],"mappings":";;;;;;AAAA,qEAE0C;AAC1C,oDAA4B;AAC5B,qDAI4B;AAC5B,iCAIe;AAEf,MAAM,OAAO,GAAmC,GAAG,EAAE;IACnD,MAAM,WAAW,GAAG,IAAA,6BAAc,GAAE,CAAC;IACrC,MAAM,YAAY,GAAG,IAAA,8BAAe,GAAE,CAAC;IACvC,MAAM,WAAW,GAAG,IAAA,6BAAc,GAAE,CAAC;IAErC,MAAM,OAAO,GAAG,IAAA,eAAO,EACrB,GAAG,EAAE;QACH,OAAO,WAAW,CAAC,GAAG,CACpB,CAAC,QAAQ,EAAE,EAAE;YACX,OAAO,CACL,uBAAC,eAAK,IACJ,QAAQ,EAAE,QAAQ,IACb,QAAQ,CACb,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC,EACD;QACE,WAAW;KACZ,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,+BAAc,IACb,WAAW,EAAE,YAAY,EACzB,QAAQ,EAAE,WAAW,YAEpB,OAAO,GACO,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAEzC,kBAAe,IAAA,YAAI,EAAC,OAAO,CAAC,CAAC"}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const NativeGateway_1 = require("../../Generics/NativeGateway");
|
|
8
|
+
const Tabs_1 = __importDefault(require("./Tabs"));
|
|
9
|
+
const react_native_shared_1 = require("@dgui/react-native-shared");
|
|
10
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
11
|
+
const react_1 = require("react");
|
|
7
12
|
const Drawers = (props) => {
|
|
8
|
-
const drawerOpen = useDrawerOpen();
|
|
9
|
-
const appBar = useMemo(() => {
|
|
10
|
-
return (
|
|
13
|
+
const drawerOpen = (0, react_shared_1.useDrawerOpen)();
|
|
14
|
+
const appBar = (0, react_1.useMemo)(() => {
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(NativeGateway_1.NativeGatewayDest, { gatewayId: 'ReactNativeDigestDrawerBar' }), (0, jsx_runtime_1.jsx)(Tabs_1.default, {})] }));
|
|
11
16
|
}, []);
|
|
12
|
-
return (
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(react_native_shared_1.NativeBaseDrawers, { drawerContent: appBar, open: drawerOpen, ...props }));
|
|
13
18
|
};
|
|
14
19
|
Drawers.displayName = 'NativeDrawers';
|
|
15
|
-
|
|
20
|
+
exports.default = Drawers;
|
|
16
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/Drawers/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/Drawers/index.tsx"],"names":[],"mappings":";;;;;;AAAA,gEAEsC;AAItC,kDAA0B;AAC1B,mEAEmC;AACnC,qDAE4B;AAC5B,iCAIe;AAMf,MAAM,OAAO,GAAoC,CAC/C,KAAK,EACL,EAAE;IACF,MAAM,UAAU,GAAG,IAAA,4BAAa,GAAE,CAAC;IAEnC,MAAM,MAAM,GAAG,IAAA,eAAO,EACpB,GAAG,EAAE;QACH,OAAO,CACL,6DACE,uBAAC,iCAAkB,IACjB,SAAS,EAAC,4BAA4B,GACtC,EACF,uBAAC,cAAI,KAAG,IACP,CACJ,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uBAAC,uCAAW,IACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU,KACZ,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,eAAe,CAAC;AAEtC,kBAAe,OAAO,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const NativeGateway_1 = require("../../Generics/NativeGateway");
|
|
5
|
+
const react_native_shared_1 = require("@dgui/react-native-shared");
|
|
4
6
|
const NativeAppBar = ({ children }) => {
|
|
5
|
-
return (
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(NativeGateway_1.NativeGateway, { gatewayId: 'ReactNativeDigestAppBar', children: children ?? (0, jsx_runtime_1.jsx)(react_native_shared_1.AppBar, {}) }));
|
|
6
8
|
};
|
|
7
9
|
NativeAppBar.displayName = 'NativeAppBar';
|
|
8
|
-
|
|
10
|
+
exports.default = NativeAppBar;
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeAppBar/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeAppBar/index.tsx"],"names":[],"mappings":";;;AAAA,gEAEsC;AAItC,mEAEmC;AAKnC,MAAM,YAAY,GAAoD,CAAC,EACrE,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,6BAAa,IACZ,SAAS,EAAC,yBAAyB,YAElC,QAAQ,IAAI,uBAAC,4BAAY,KAAG,GACf,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,kBAAe,YAAY,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const NativeGateway_1 = require("../../Generics/NativeGateway");
|
|
5
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
6
|
+
const react_1 = require("react");
|
|
5
7
|
const NativeDrawer = ({ children, ...props }) => {
|
|
6
|
-
const { drawerId, gatewayId } = useMemo(() => {
|
|
8
|
+
const { drawerId, gatewayId } = (0, react_1.useMemo)(() => {
|
|
7
9
|
return {
|
|
8
10
|
drawerId: props.drawerId,
|
|
9
11
|
gatewayId: props.tabId ?
|
|
@@ -11,16 +13,16 @@ const NativeDrawer = ({ children, ...props }) => {
|
|
|
11
13
|
`drawer-${props.drawerId}`
|
|
12
14
|
};
|
|
13
15
|
}, []);
|
|
14
|
-
const addDrawer = useAddDrawer();
|
|
15
|
-
const removeDrawer = useRemoveDrawer();
|
|
16
|
-
useEffect(() => {
|
|
16
|
+
const addDrawer = (0, react_shared_1.useAddDrawer)();
|
|
17
|
+
const removeDrawer = (0, react_shared_1.useRemoveDrawer)();
|
|
18
|
+
(0, react_1.useEffect)(() => {
|
|
17
19
|
addDrawer(props);
|
|
18
20
|
return () => {
|
|
19
21
|
removeDrawer(drawerId);
|
|
20
22
|
};
|
|
21
23
|
}, []);
|
|
22
|
-
return (
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(NativeGateway_1.NativeGateway, { gatewayId: gatewayId, children: children }));
|
|
23
25
|
};
|
|
24
26
|
NativeDrawer.displayName = 'NativeDrawer';
|
|
25
|
-
|
|
27
|
+
exports.default = NativeDrawer;
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeDrawer/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeDrawer/index.tsx"],"names":[],"mappings":";;;AAAA,gEAEsC;AAItC,qDAG4B;AAC5B,iCAIe;AAEf,MAAM,YAAY,GAAoD,CAAC,EACrE,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IAGH,MAAM,EACJ,QAAQ,EACR,SAAS,EACV,GAAG,IAAA,eAAO,EACT,GAAG,EAAE;QACH,OAAO;YACL,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBACtB,UAAU,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;gBAC3C,UAAU,KAAK,CAAC,QAAQ,EAAE;SAC7B,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,MAAM,SAAS,GAAG,IAAA,2BAAY,GAAE,CAAC;IACjC,MAAM,YAAY,GAAG,IAAA,8BAAe,GAAE,CAAC;IAEvC,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,SAAS,CAAC,KAAK,CAAC,CAAC;QAEjB,OAAO,GAAG,EAAE;YACV,YAAY,CACV,QAAQ,CACT,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uBAAC,6BAAa,IACZ,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACK,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,kBAAe,YAAY,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const NativeGateway_1 = require("../../Generics/NativeGateway");
|
|
5
|
+
const react_native_shared_1 = require("@dgui/react-native-shared");
|
|
4
6
|
const NativeDrawerBar = ({ children }) => {
|
|
5
|
-
return (
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(NativeGateway_1.NativeGateway, { gatewayId: 'ReactNativeDigestDrawerBar', children: children ?? (0, jsx_runtime_1.jsx)(react_native_shared_1.DrawerBar, {}) }));
|
|
6
8
|
};
|
|
7
9
|
NativeDrawerBar.displayName = 'NativeDrawerBar';
|
|
8
|
-
|
|
10
|
+
exports.default = NativeDrawerBar;
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeDrawerBar/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeDrawerBar/index.tsx"],"names":[],"mappings":";;;AAAA,gEAEsC;AAItC,mEAEmC;AAKnC,MAAM,eAAe,GAAuD,CAAC,EAC3E,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,6BAAa,IACZ,SAAS,EAAC,4BAA4B,YAErC,QAAQ,IAAI,uBAAC,+BAAe,KAAG,GAClB,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD,kBAAe,eAAe,CAAC"}
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const NativeGateway_1 = require("../../Generics/NativeGateway");
|
|
5
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
6
|
+
const react_1 = require("react");
|
|
5
7
|
const NativeTab = ({ children, ...props }) => {
|
|
6
|
-
const { gatewayId, tabId } = useMemo(() => {
|
|
8
|
+
const { gatewayId, tabId } = (0, react_1.useMemo)(() => {
|
|
7
9
|
return {
|
|
8
10
|
gatewayId: `tab-${props.tabId}`,
|
|
9
11
|
tabId: props.tabId
|
|
10
12
|
};
|
|
11
13
|
}, []);
|
|
12
|
-
const addTab = useAddTab();
|
|
13
|
-
const removeTab = useRemoveTab();
|
|
14
|
-
useEffect(() => {
|
|
14
|
+
const addTab = (0, react_shared_1.useAddTab)();
|
|
15
|
+
const removeTab = (0, react_shared_1.useRemoveTab)();
|
|
16
|
+
(0, react_1.useEffect)(() => {
|
|
15
17
|
addTab(props);
|
|
16
18
|
return () => {
|
|
17
19
|
removeTab(tabId);
|
|
18
20
|
};
|
|
19
21
|
}, []);
|
|
20
|
-
return (
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(NativeGateway_1.NativeGateway, { gatewayId: gatewayId, children: children }));
|
|
21
23
|
};
|
|
22
24
|
NativeTab.displayName = 'NativeTab';
|
|
23
|
-
|
|
25
|
+
exports.default = NativeTab;
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeTab/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeTab/index.tsx"],"names":[],"mappings":";;;AAAA,gEAEsC;AAItC,qDAG4B;AAC5B,iCAIe;AAEf,MAAM,SAAS,GAAiD,CAAC,EAC/D,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IAGH,MAAM,EACJ,SAAS,EACT,KAAK,EACN,GAAG,IAAA,eAAO,EACT,GAAG,EAAE;QACH,OAAO;YACL,SAAS,EAAE,OAAO,KAAK,CAAC,KAAK,EAAE;YAC/B,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,wBAAS,GAAE,CAAC;IAC3B,MAAM,SAAS,GAAG,IAAA,2BAAY,GAAE,CAAC;IAEjC,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,MAAM,CAAC,KAAK,CAAC,CAAC;QAEd,OAAO,GAAG,EAAE;YACV,SAAS,CACP,KAAK,CACN,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uBAAC,6BAAa,IACZ,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACK,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,kBAAe,SAAS,CAAC"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const NativeCarousel_1 = require("../../Generics/NativeCarousel");
|
|
5
|
+
const NativeGateway_1 = require("../../Generics/NativeGateway");
|
|
6
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
7
|
+
const react_1 = require("react");
|
|
6
8
|
const Scene = ({ tabId }) => {
|
|
7
|
-
const tabs = useTabs();
|
|
9
|
+
const tabs = (0, react_shared_1.useTabs)();
|
|
8
10
|
const { swipe } = tabs[tabId] ?? {};
|
|
9
|
-
const gatewayId = useMemo(() => {
|
|
11
|
+
const gatewayId = (0, react_1.useMemo)(() => {
|
|
10
12
|
return `tab-${tabId}`;
|
|
11
13
|
}, []);
|
|
12
|
-
return (
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(NativeCarousel_1.NativeHorse, { swipe: swipe, children: (0, jsx_runtime_1.jsx)(NativeGateway_1.NativeGatewayDest, { gatewayId: gatewayId }) }));
|
|
13
15
|
};
|
|
14
|
-
const SceneSwiperSlide = memo(Scene);
|
|
16
|
+
const SceneSwiperSlide = (0, react_1.memo)(Scene);
|
|
15
17
|
SceneSwiperSlide.displayName = 'SceneSwiperSlide';
|
|
16
|
-
|
|
18
|
+
exports.default = SceneSwiperSlide;
|
|
17
19
|
//# sourceMappingURL=Scene.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../src/Components/Tabs/Scene.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../src/Components/Tabs/Scene.tsx"],"names":[],"mappings":";;;AAKA,kEAEuC;AACvC,gEAEsC;AACtC,qDAE4B;AAC5B,iCAIe;AAEf,MAAM,KAAK,GAAkC,CAAC,EAC5C,KAAK,EACN,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,IAAA,sBAAO,GAAE,CAAC;IAEvB,MAAM,EACJ,KAAK,EACN,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAEtB,MAAM,SAAS,GAAG,IAAA,eAAO,EACvB,GAAG,EAAE;QACH,OAAO,OAAO,KAAK,EAAE,CAAC;IACxB,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uBAAC,4BAAW,IACV,KAAK,EAAE,KAAK,YAEZ,uBAAC,iCAAkB,IACjB,SAAS,EAAE,SAAS,GACpB,GACU,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,IAAA,YAAI,EAC3B,KAAK,CACN,CAAC;AAMF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,kBAAe,gBAAgB,CAAC"}
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const NativeCarousel_1 = require("../../Generics/NativeCarousel");
|
|
8
|
+
const Scene_1 = __importDefault(require("./Scene"));
|
|
9
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
10
|
+
const react_1 = require("react");
|
|
6
11
|
const Tabs = ({ swipe }) => {
|
|
7
|
-
const selectTab = useSelectTab();
|
|
8
|
-
const tabIndex = useTabIndex();
|
|
9
|
-
const tabOrder = useTabOrder();
|
|
10
|
-
const tabs = useMemo(() => {
|
|
12
|
+
const selectTab = (0, react_shared_1.useSelectTab)();
|
|
13
|
+
const tabIndex = (0, react_shared_1.useTabIndex)();
|
|
14
|
+
const tabOrder = (0, react_shared_1.useTabOrder)();
|
|
15
|
+
const tabs = (0, react_1.useMemo)(() => {
|
|
11
16
|
const orderedTabs = tabOrder.map((tab) => {
|
|
12
|
-
return (
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(Scene_1.default, { tabId: tab }, tab));
|
|
13
18
|
});
|
|
14
19
|
return orderedTabs;
|
|
15
20
|
}, [
|
|
16
21
|
tabOrder
|
|
17
22
|
]);
|
|
18
|
-
return (
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(NativeCarousel_1.NativeCarousel, { onSelectTab: selectTab, swipe: swipe, tabIndex: tabIndex, children: tabs }));
|
|
19
24
|
};
|
|
20
|
-
|
|
25
|
+
exports.default = (0, react_1.memo)(Tabs);
|
|
21
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/Tabs/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/Tabs/index.tsx"],"names":[],"mappings":";;;;;;AAAA,kEAEuC;AACvC,oDAA4B;AAC5B,qDAI4B;AAC5B,iCAIe;AAEf,MAAM,IAAI,GAAgC,CAAC,EACzC,KAAK,EACN,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,IAAA,2BAAY,GAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,IAAA,0BAAW,GAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,0BAAW,GAAE,CAAC;IAE/B,MAAM,IAAI,GAAG,IAAA,eAAO,EAClB,GAAG,EAAE;QACH,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAC9B,CAAC,GAAG,EAAE,EAAE;YACN,OAAO,CACL,uBAAC,eAAK,IAEJ,KAAK,EAAE,GAAG,IADL,GAAG,CAER,CACH,CAAC;QACJ,CAAC,CACF,CAAC;QAEF,OAAO,WAAW,CAAC;IACrB,CAAC,EACD;QACE,QAAQ;KACT,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,+BAAc,IACb,WAAW,EAAE,SAAS,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,YAEjB,IAAI,GACU,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,IAAA,YAAI,EAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const react_native_1 = require("react-native");
|
|
10
|
+
const react_native_pager_view_1 = __importDefault(require("react-native-pager-view"));
|
|
6
11
|
const PAGE_MARGIN = 0;
|
|
7
12
|
const OFFSCREEN_LIMIT = 99;
|
|
8
13
|
const OVERSCROLL_MODE = 'always';
|
|
9
14
|
const OVERDRAG = true;
|
|
10
|
-
const styles = StyleSheet.create({
|
|
15
|
+
const styles = react_native_1.StyleSheet.create({
|
|
11
16
|
pagerView: {
|
|
12
17
|
flex: 1
|
|
13
18
|
}
|
|
14
19
|
});
|
|
15
20
|
const NativeCarousel = ({ children, onSelectTab, style: givenStyle, swipe: givenSwipe = true, tabIndex = 0 }) => {
|
|
16
|
-
const pager = useRef(null);
|
|
17
|
-
const pagePosition = useRef(tabIndex);
|
|
18
|
-
const tabs = useTabs();
|
|
19
|
-
const tabOrder = useTabOrder();
|
|
20
|
-
const handlePageScroll = useCallback((event) => {
|
|
21
|
+
const pager = (0, react_1.useRef)(null);
|
|
22
|
+
const pagePosition = (0, react_1.useRef)(tabIndex);
|
|
23
|
+
const tabs = (0, react_shared_1.useTabs)();
|
|
24
|
+
const tabOrder = (0, react_shared_1.useTabOrder)();
|
|
25
|
+
const handlePageScroll = (0, react_1.useCallback)((event) => {
|
|
21
26
|
pagePosition.current = event.nativeEvent.position;
|
|
22
27
|
const swipe = tabs[tabOrder[pagePosition.current] ?? '']?.swipe ?? givenSwipe;
|
|
23
28
|
pager.current?.setScrollEnabled(swipe);
|
|
@@ -25,7 +30,7 @@ const NativeCarousel = ({ children, onSelectTab, style: givenStyle, swipe: given
|
|
|
25
30
|
tabOrder,
|
|
26
31
|
tabs
|
|
27
32
|
]);
|
|
28
|
-
const style = useMemo(() => {
|
|
33
|
+
const style = (0, react_1.useMemo)(() => {
|
|
29
34
|
return {
|
|
30
35
|
...styles.pagerView,
|
|
31
36
|
...givenStyle
|
|
@@ -33,7 +38,7 @@ const NativeCarousel = ({ children, onSelectTab, style: givenStyle, swipe: given
|
|
|
33
38
|
}, [
|
|
34
39
|
givenStyle
|
|
35
40
|
]);
|
|
36
|
-
const handlePageScrollStateChanged = useCallback((event) => {
|
|
41
|
+
const handlePageScrollStateChanged = (0, react_1.useCallback)((event) => {
|
|
37
42
|
const { pageScrollState } = event.nativeEvent;
|
|
38
43
|
onSelectTab((currentTabIndex) => {
|
|
39
44
|
if (pagePosition.current !== currentTabIndex &&
|
|
@@ -47,15 +52,15 @@ const NativeCarousel = ({ children, onSelectTab, style: givenStyle, swipe: given
|
|
|
47
52
|
}, [
|
|
48
53
|
onSelectTab
|
|
49
54
|
]);
|
|
50
|
-
useEffect(() => {
|
|
55
|
+
(0, react_1.useEffect)(() => {
|
|
51
56
|
if (pager.current) {
|
|
52
57
|
pager.current.setPage(tabIndex);
|
|
53
58
|
}
|
|
54
59
|
}, [
|
|
55
60
|
tabIndex
|
|
56
61
|
]);
|
|
57
|
-
return (
|
|
62
|
+
return ((0, jsx_runtime_1.jsx)(react_native_pager_view_1.default, { initialPage: tabIndex, offscreenPageLimit: OFFSCREEN_LIMIT, onPageScroll: handlePageScroll, onPageScrollStateChanged: handlePageScrollStateChanged, overdrag: OVERDRAG, overScrollMode: OVERSCROLL_MODE, pageMargin: PAGE_MARGIN, ref: pager, scrollEnabled: givenSwipe, style: style, children: children }));
|
|
58
63
|
};
|
|
59
64
|
NativeCarousel.displayName = 'NativeCarousel';
|
|
60
|
-
|
|
65
|
+
exports.default = NativeCarousel;
|
|
61
66
|
//# sourceMappingURL=NativeCarousel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeCarousel.js","sourceRoot":"","sources":["../../../../src/Generics/NativeCarousel/NativeCarousel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NativeCarousel.js","sourceRoot":"","sources":["../../../../src/Generics/NativeCarousel/NativeCarousel.tsx"],"names":[],"mappings":";;;;;;AAAA,qDAI4B;AAC5B,iCAMe;AACf,+CAKsB;AACtB,sFAEiC;AAEjC,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,eAAe,GAAG,EAAE,CAAC;AAC3B,MAAM,eAAe,GAAG,QAAQ,CAAC;AACjC,MAAM,QAAQ,GAAG,IAAI,CAAC;AAEtB,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAIH,MAAM,cAAc,GAAqC,CAAC,EACxD,QAAQ,EACR,WAAW,EACX,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,UAAU,GAAG,IAAI,EACxB,QAAQ,GAAG,CAAC,EACb,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,IAAA,cAAM,EAAmB,IAAI,CAAC,CAAC;IAC7C,MAAM,YAAY,GAAG,IAAA,cAAM,EAAS,QAAQ,CAAC,CAAC;IAE9C,MAAM,IAAI,GAAG,IAAA,sBAAO,GAAE,CAAC;IACvB,MAAM,QAAQ,GAAG,IAAA,0BAAW,GAAE,CAAC;IAE/B,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAClC,CACE,KAAiC,EACjC,EAAE;QACF,YAAY,CAAC,OAAO,GAAG,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;QAElD,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,IAAI,UAAU,CAAC;QAE9E,KAAK,CAAC,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC,EACD;QACE,QAAQ;QACR,IAAI;KACL,CACF,CAAC;IAEF,MAAM,KAAK,GAAG,IAAA,eAAO,EACnB,GAAG,EAAE;QACH,OAAO;YACL,GAAG,MAAM,CAAC,SAAS;YACnB,GAAG,UAAU;SACd,CAAC;IACJ,CAAC,EACD;QACE,UAAU;KACX,CACF,CAAC;IAEF,MAAM,4BAA4B,GAAG,IAAA,mBAAW,EAC9C,CACE,KAA4E,EAC5E,EAAE;QACF,MAAM,EACJ,eAAe,EAChB,GAAG,KAAK,CAAC,WAAW,CAAC;QAEtB,WAAW,CACT,CACE,eAAe,EACf,EAAE;YACF,IACE,YAAY,CAAC,OAAO,KAAK,eAAe;gBACxC,eAAe,KAAK,MAAM,EAC1B,CAAC;gBACD,OAAO,YAAY,CAAC,OAAO,CAAC;YAC9B,CAAC;iBAAM,CAAC;gBACN,OAAO,eAAe,CAAC;YACzB,CAAC;QACH,CAAC,CACF,CAAC;IACJ,CAAC,EACD;QACE,WAAW;KACZ,CACF,CAAC;IAEF,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,IACE,KAAK,CAAC,OAAO,EACb,CAAC;YACD,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC;IACH,CAAC,EACD;QACE,QAAQ;KACT,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,iCAAS,IACR,WAAW,EAAE,QAAQ,EACrB,kBAAkB,EAAE,eAAe,EACnC,YAAY,EAAE,gBAAgB,EAC9B,wBAAwB,EAAE,4BAA4B,EACtD,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,eAAe,EAC/B,UAAU,EAAE,WAAW,EACvB,GAAG,EAAE,KAAK,EACV,aAAa,EAAE,UAAU,EACzB,KAAK,EAAE,KAA6B,YAEnC,QAAQ,GACC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAE9C,kBAAe,cAAc,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
4
|
const NativeHorse = ({ children }) => {
|
|
3
|
-
return (
|
|
5
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children }));
|
|
4
6
|
};
|
|
5
7
|
NativeHorse.displayName = 'NativeHorse';
|
|
6
|
-
|
|
8
|
+
exports.default = NativeHorse;
|
|
7
9
|
//# sourceMappingURL=NativeHorse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeHorse.js","sourceRoot":"","sources":["../../../../src/Generics/NativeCarousel/NativeHorse.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NativeHorse.js","sourceRoot":"","sources":["../../../../src/Generics/NativeCarousel/NativeHorse.tsx"],"names":[],"mappings":";;;AAOA,MAAM,WAAW,GAAwC,CAAC,EACxD,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,2DACG,QAAQ,GACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAExC,kBAAe,WAAW,CAAC"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NativeHorse = exports.NativeCarousel = void 0;
|
|
7
|
+
var NativeCarousel_1 = require("./NativeCarousel");
|
|
8
|
+
Object.defineProperty(exports, "NativeCarousel", { enumerable: true, get: function () { return __importDefault(NativeCarousel_1).default; } });
|
|
9
|
+
var NativeHorse_1 = require("./NativeHorse");
|
|
10
|
+
Object.defineProperty(exports, "NativeHorse", { enumerable: true, get: function () { return __importDefault(NativeHorse_1).default; } });
|
|
3
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Generics/NativeCarousel/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Generics/NativeCarousel/index.ts"],"names":[],"mappings":";;;;;;AAAA,mDAG0B;AAFxB,iIAAA,OAAO,OAAkB;AAG3B,6CAGuB;AAFrB,2HAAA,OAAO,OAAe"}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const NativeGatewayContext_1 = __importDefault(require("./NativeGatewayContext"));
|
|
7
|
+
const react_1 = require("react");
|
|
3
8
|
const NativeGateway = ({ children, gatewayId: givenGatewayId }) => {
|
|
4
|
-
const gatewayId = useMemo(() => {
|
|
9
|
+
const gatewayId = (0, react_1.useMemo)(() => {
|
|
5
10
|
return givenGatewayId;
|
|
6
11
|
}, []);
|
|
7
|
-
const id = useRef('');
|
|
8
|
-
const gatewayRegistry = useContext(
|
|
9
|
-
const renderIntoGatewayNode = useCallback((in2, gwId, child) => {
|
|
12
|
+
const id = (0, react_1.useRef)('');
|
|
13
|
+
const gatewayRegistry = (0, react_1.useContext)(NativeGatewayContext_1.default);
|
|
14
|
+
const renderIntoGatewayNode = (0, react_1.useCallback)((in2, gwId, child) => {
|
|
10
15
|
if (gatewayRegistry) {
|
|
11
16
|
gatewayRegistry.addChild(in2, gwId, child);
|
|
12
17
|
}
|
|
13
18
|
}, []);
|
|
14
|
-
useEffect(() => {
|
|
19
|
+
(0, react_1.useEffect)(() => {
|
|
15
20
|
if (gatewayRegistry) {
|
|
16
21
|
id.current = gatewayRegistry.register(gatewayId, children);
|
|
17
22
|
}
|
|
@@ -22,7 +27,7 @@ const NativeGateway = ({ children, gatewayId: givenGatewayId }) => {
|
|
|
22
27
|
}
|
|
23
28
|
};
|
|
24
29
|
}, []);
|
|
25
|
-
useEffect(() => {
|
|
30
|
+
(0, react_1.useEffect)(() => {
|
|
26
31
|
if (gatewayRegistry) {
|
|
27
32
|
gatewayRegistry.clearChild(gatewayId, id.current);
|
|
28
33
|
}
|
|
@@ -34,5 +39,5 @@ const NativeGateway = ({ children, gatewayId: givenGatewayId }) => {
|
|
|
34
39
|
return null;
|
|
35
40
|
};
|
|
36
41
|
NativeGateway.displayName = 'NativeGateway';
|
|
37
|
-
|
|
42
|
+
exports.default = NativeGateway;
|
|
38
43
|
//# sourceMappingURL=NativeGateway.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeGateway.js","sourceRoot":"","sources":["../../../../src/Generics/NativeGateway/NativeGateway.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"NativeGateway.js","sourceRoot":"","sources":["../../../../src/Generics/NativeGateway/NativeGateway.tsx"],"names":[],"mappings":";;;;;AAAA,kFAA0D;AAI1D,iCAQe;AAEf,MAAM,aAAa,GAA0C,CAAC,EAC5D,QAAQ,EACR,SAAS,EAAE,cAAc,EAC1B,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,IAAA,eAAO,EACvB,GAAG,EAAE;QACH,OAAO,cAAc,CAAC;IACxB,CAAC,EACD,EAAE,CACH,CAAC;IAEF,MAAM,EAAE,GAAG,IAAA,cAAM,EAAS,EAAE,CAAC,CAAC;IAE9B,MAAM,eAAe,GAAG,IAAA,kBAAU,EAAC,8BAAoB,CAAC,CAAC;IAEzD,MAAM,qBAAqB,GAAG,IAAA,mBAAW,EACvC,CACE,GAAW,EACX,IAAY,EACZ,KAAgB,EAChB,EAAE;QACF,IAAI,eAAe,EAAE,CAAC;YACpB,eAAe,CAAC,QAAQ,CACtB,GAAG,EACH,IAAI,EACJ,KAAK,CACN,CAAC;QACJ,CAAC;IACH,CAAC,EACD,EAAE,CACH,CAAC;IAEF,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,IAAI,eAAe,EAAE,CAAC;YACpB,EAAE,CAAC,OAAO,GAAG,eAAe,CAAC,QAAQ,CACnC,SAAS,EACT,QAAQ,CACT,CAAC;QACJ,CAAC;QAED,qBAAqB,CACnB,SAAS,EACT,EAAE,CAAC,OAAO,EACV,QAAQ,CACT,CAAC;QAEF,OAAO,GAAG,EAAE;YACV,IAAI,eAAe,EAAE,CAAC;gBACpB,eAAe,CAAC,UAAU,CACxB,SAAS,EACT,EAAE,CAAC,OAAO,CACX,CAAC;YACJ,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,IAAI,eAAe,EAAE,CAAC;YACpB,eAAe,CAAC,UAAU,CACxB,SAAS,EACT,EAAE,CAAC,OAAO,CACX,CAAC;QACJ,CAAC;QAED,qBAAqB,CACnB,SAAS,EACT,EAAE,CAAC,OAAO,EACV,QAAQ,CACT,CAAC;IACJ,CAAC,EACD;QACE,QAAQ;QACR,SAAS;KACV,CACF,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC;AAE5C,kBAAe,aAAa,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const NativeGatewayContext = (0, react_1.createContext)(null);
|
|
3
5
|
NativeGatewayContext.displayName = 'NativeGatewayContext';
|
|
4
|
-
|
|
6
|
+
exports.default = NativeGatewayContext;
|
|
5
7
|
//# sourceMappingURL=NativeGatewayContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeGatewayContext.js","sourceRoot":"","sources":["../../../../src/Generics/NativeGateway/NativeGatewayContext.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"NativeGatewayContext.js","sourceRoot":"","sources":["../../../../src/Generics/NativeGateway/NativeGatewayContext.ts"],"names":[],"mappings":";;AAAA,iCAKe;AAEf,MAAM,oBAAoB,GAAG,IAAA,qBAAa,EAAmC,IAAI,CAAC,CAAC;AAEnF,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAE1D,kBAAe,oBAAoB,CAAC"}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const NativeGatewayContext_1 = __importDefault(require("./NativeGatewayContext"));
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const react_native_1 = require("react-native");
|
|
4
9
|
const NativeGatewayDest = ({ gatewayId, ...attrs }) => {
|
|
5
|
-
const [children, setChildren] = useState(null);
|
|
6
|
-
const gatewayRegistry = useContext(
|
|
7
|
-
useEffect(() => {
|
|
10
|
+
const [children, setChildren] = (0, react_1.useState)(null);
|
|
11
|
+
const gatewayRegistry = (0, react_1.useContext)(NativeGatewayContext_1.default);
|
|
12
|
+
(0, react_1.useEffect)(() => {
|
|
8
13
|
setChildren((currentChildren) => {
|
|
9
14
|
return currentChildren;
|
|
10
15
|
});
|
|
11
16
|
}, [
|
|
12
17
|
children
|
|
13
18
|
]);
|
|
14
|
-
useEffect(() => {
|
|
19
|
+
(0, react_1.useEffect)(() => {
|
|
15
20
|
if (gatewayRegistry) {
|
|
16
21
|
gatewayRegistry.addContainer(gatewayId, setChildren);
|
|
17
22
|
}
|
|
@@ -21,8 +26,8 @@ const NativeGatewayDest = ({ gatewayId, ...attrs }) => {
|
|
|
21
26
|
}
|
|
22
27
|
};
|
|
23
28
|
}, []);
|
|
24
|
-
return createElement(View, attrs, children);
|
|
29
|
+
return (0, react_1.createElement)(react_native_1.View, attrs, children);
|
|
25
30
|
};
|
|
26
31
|
NativeGatewayDest.displayName = 'NativeGatewayDest';
|
|
27
|
-
|
|
32
|
+
exports.default = NativeGatewayDest;
|
|
28
33
|
//# sourceMappingURL=NativeGatewayDest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeGatewayDest.js","sourceRoot":"","sources":["../../../../src/Generics/NativeGateway/NativeGatewayDest.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"NativeGatewayDest.js","sourceRoot":"","sources":["../../../../src/Generics/NativeGateway/NativeGatewayDest.tsx"],"names":[],"mappings":";;;;;AAKA,kFAA0D;AAI1D,iCAOe;AACf,+CAIsB;AAEtB,MAAM,iBAAiB,GAA8C,CAAC,EACpE,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,CACJ,QAAQ,EACR,WAAW,CACZ,GAAG,IAAA,gBAAQ,EAAY,IAAI,CAAC,CAAC;IAE9B,MAAM,eAAe,GAAG,IAAA,kBAAU,EAAC,8BAAoB,CAAC,CAAC;IAEzD,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,WAAW,CAET,CAAC,eAAe,EAAE,EAAE;YAClB,OAAO,eAAe,CAAC;QACzB,CAAC,CACF,CAAC;IACJ,CAAC,EACD;QACE,QAAQ;KACT,CACF,CAAC;IAEF,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,IAAI,eAAe,EAAE,CAAC;YACpB,eAAe,CAAC,YAAY,CAC1B,SAAS,EACT,WAAW,CACZ,CAAC;QACJ,CAAC;QAED,OAAO,GAAG,EAAE;YACV,IAAI,eAAe,EAAE,CAAC;gBACpB,eAAe,CAAC,eAAe,CAC7B,SAAS,CACV,CAAC;YACJ,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,IAAA,qBAAa,EAClB,mBAAI,EACJ,KAAK,EACL,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC;AAEpD,kBAAe,iBAAiB,CAAC"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const NativeGatewayContext_1 = __importDefault(require("./NativeGatewayContext"));
|
|
8
|
+
const react_1 = require("react");
|
|
4
9
|
const NativeGatewayProvider = ({ children: providerChildren }) => {
|
|
5
|
-
const currentId = useRef(0);
|
|
6
|
-
const containers = useRef({});
|
|
7
|
-
const children = useRef({});
|
|
8
|
-
const renderContainer = useCallback((name) => {
|
|
10
|
+
const currentId = (0, react_1.useRef)(0);
|
|
11
|
+
const containers = (0, react_1.useRef)({});
|
|
12
|
+
const children = (0, react_1.useRef)({});
|
|
13
|
+
const renderContainer = (0, react_1.useCallback)((name) => {
|
|
9
14
|
if (!containers.current[name] || !children.current[name]) {
|
|
10
15
|
return;
|
|
11
16
|
}
|
|
@@ -25,7 +30,7 @@ const NativeGatewayProvider = ({ children: providerChildren }) => {
|
|
|
25
30
|
}
|
|
26
31
|
});
|
|
27
32
|
}, []);
|
|
28
|
-
const addChild = useCallback((name, gatewayId, child) => {
|
|
33
|
+
const addChild = (0, react_1.useCallback)((name, gatewayId, child) => {
|
|
29
34
|
const newChildren = {
|
|
30
35
|
...children.current,
|
|
31
36
|
[name]: {
|
|
@@ -36,7 +41,7 @@ const NativeGatewayProvider = ({ children: providerChildren }) => {
|
|
|
36
41
|
children.current = newChildren;
|
|
37
42
|
renderContainer(name);
|
|
38
43
|
}, []);
|
|
39
|
-
const addContainer = useCallback((name, child) => {
|
|
44
|
+
const addContainer = (0, react_1.useCallback)((name, child) => {
|
|
40
45
|
const newContainers = {
|
|
41
46
|
...containers.current,
|
|
42
47
|
[name]: child
|
|
@@ -44,7 +49,7 @@ const NativeGatewayProvider = ({ children: providerChildren }) => {
|
|
|
44
49
|
containers.current = newContainers;
|
|
45
50
|
renderContainer(name);
|
|
46
51
|
}, []);
|
|
47
|
-
const clearChild = useCallback((name, gatewayId) => {
|
|
52
|
+
const clearChild = (0, react_1.useCallback)((name, gatewayId) => {
|
|
48
53
|
const { [gatewayId]: omit, ...gateways } = children.current[name];
|
|
49
54
|
const clearedChildren = {
|
|
50
55
|
...children.current,
|
|
@@ -52,7 +57,7 @@ const NativeGatewayProvider = ({ children: providerChildren }) => {
|
|
|
52
57
|
};
|
|
53
58
|
children.current = clearedChildren;
|
|
54
59
|
}, []);
|
|
55
|
-
const register = useCallback((name, child) => {
|
|
60
|
+
const register = (0, react_1.useCallback)((name, child) => {
|
|
56
61
|
const gatewayId = `${name}_${currentId.current}`;
|
|
57
62
|
const registeredChildren = {
|
|
58
63
|
...children.current,
|
|
@@ -65,15 +70,15 @@ const NativeGatewayProvider = ({ children: providerChildren }) => {
|
|
|
65
70
|
currentId.current += 1;
|
|
66
71
|
return gatewayId;
|
|
67
72
|
}, []);
|
|
68
|
-
const removeContainer = useCallback((name) => {
|
|
73
|
+
const removeContainer = (0, react_1.useCallback)((name) => {
|
|
69
74
|
const { [name]: omit, ...reducedContainers } = containers.current;
|
|
70
75
|
containers.current = reducedContainers;
|
|
71
76
|
}, []);
|
|
72
|
-
const unregister = useCallback((name, gatewayId) => {
|
|
77
|
+
const unregister = (0, react_1.useCallback)((name, gatewayId) => {
|
|
73
78
|
clearChild(name, gatewayId);
|
|
74
79
|
renderContainer(name);
|
|
75
80
|
}, []);
|
|
76
|
-
const value = useMemo(() => {
|
|
81
|
+
const value = (0, react_1.useMemo)(() => {
|
|
77
82
|
return {
|
|
78
83
|
addChild,
|
|
79
84
|
addContainer,
|
|
@@ -90,8 +95,8 @@ const NativeGatewayProvider = ({ children: providerChildren }) => {
|
|
|
90
95
|
removeContainer,
|
|
91
96
|
unregister
|
|
92
97
|
]);
|
|
93
|
-
return (
|
|
98
|
+
return ((0, jsx_runtime_1.jsx)(NativeGatewayContext_1.default.Provider, { value: value, children: providerChildren }));
|
|
94
99
|
};
|
|
95
100
|
NativeGatewayProvider.displayName = 'NativeGatewayProvider';
|
|
96
|
-
|
|
101
|
+
exports.default = NativeGatewayProvider;
|
|
97
102
|
//# sourceMappingURL=NativeGatewayProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeGatewayProvider.js","sourceRoot":"","sources":["../../../../src/Generics/NativeGateway/NativeGatewayProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NativeGatewayProvider.js","sourceRoot":"","sources":["../../../../src/Generics/NativeGateway/NativeGatewayProvider.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NativeGatewayProvider = exports.NativeGatewayDest = exports.NativeGatewayContext = exports.NativeGateway = void 0;
|
|
7
|
+
var NativeGateway_1 = require("./NativeGateway");
|
|
8
|
+
Object.defineProperty(exports, "NativeGateway", { enumerable: true, get: function () { return __importDefault(NativeGateway_1).default; } });
|
|
9
|
+
var NativeGatewayContext_1 = require("./NativeGatewayContext");
|
|
10
|
+
Object.defineProperty(exports, "NativeGatewayContext", { enumerable: true, get: function () { return __importDefault(NativeGatewayContext_1).default; } });
|
|
11
|
+
var NativeGatewayDest_1 = require("./NativeGatewayDest");
|
|
12
|
+
Object.defineProperty(exports, "NativeGatewayDest", { enumerable: true, get: function () { return __importDefault(NativeGatewayDest_1).default; } });
|
|
13
|
+
var NativeGatewayProvider_1 = require("./NativeGatewayProvider");
|
|
14
|
+
Object.defineProperty(exports, "NativeGatewayProvider", { enumerable: true, get: function () { return __importDefault(NativeGatewayProvider_1).default; } });
|
|
5
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Generics/NativeGateway/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Generics/NativeGateway/index.ts"],"names":[],"mappings":";;;;;;AAAA,iDAGyB;AAFvB,+HAAA,OAAO,OAAiB;AAG1B,+DAGgC;AAF9B,6IAAA,OAAO,OAAwB;AAGjC,yDAG6B;AAF3B,uIAAA,OAAO,OAAqB;AAG9B,iEAGiC;AAF/B,+IAAA,OAAO,OAAyB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const NativeGateway_1 = require("../Generics/NativeGateway");
|
|
5
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
4
6
|
const Providers = ({ children, drawerIndex, drawerOpen, onDrawerToggle, onSelectDrawer, onSelectTab, tabIndex }) => {
|
|
5
|
-
return (
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(react_shared_1.Providers, { drawerIndex: drawerIndex, drawerOpen: drawerOpen, onDrawerToggle: onDrawerToggle, onSelectDrawer: onSelectDrawer, onSelectTab: onSelectTab, tabIndex: tabIndex, children: (0, jsx_runtime_1.jsx)(NativeGateway_1.NativeGatewayProvider, { children: children }) }));
|
|
6
8
|
};
|
|
7
9
|
Providers.displayName = 'NativeProviders';
|
|
8
|
-
|
|
10
|
+
exports.default = Providers;
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Providers/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Providers/index.tsx"],"names":[],"mappings":";;;AAAA,6DAEmC;AACnC,qDAG4B;AAM5B,MAAM,SAAS,GAAsC,CAAC,EACpD,QAAQ,EACR,WAAW,EACX,UAAU,EACV,cAAc,EACd,cAAc,EACd,WAAW,EACX,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,wBAAa,IACZ,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,YAElB,uBAAC,qCAAqB,cACnB,QAAQ,GACa,GACV,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAE1C,kBAAe,SAAS,CAAC"}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const Drawers_1 = __importDefault(require("./Components/Drawers"));
|
|
8
|
+
const Tabs_1 = __importDefault(require("./Components/Tabs"));
|
|
9
|
+
const NativeGateway_1 = require("./Generics/NativeGateway");
|
|
10
|
+
const Providers_1 = __importDefault(require("./Providers"));
|
|
11
|
+
const react_native_1 = require("react-native");
|
|
12
|
+
const styles = react_native_1.StyleSheet.create({
|
|
8
13
|
appbar: {}
|
|
9
14
|
});
|
|
10
15
|
const ReactNativeDigest = ({ children, drawerAnimationTime, drawerIndex, drawerOpacity, drawerOpen, drawerPosition, drawerStyle, drawerWidth, onDrawerToggle, onSelectDrawer, onSelectTab, swipe, tabIndex }) => {
|
|
11
|
-
return (
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)(Providers_1.default, { drawerIndex: drawerIndex, drawerOpen: drawerOpen, onDrawerToggle: onDrawerToggle, onSelectDrawer: onSelectDrawer, onSelectTab: onSelectTab, tabIndex: tabIndex, children: [(0, jsx_runtime_1.jsx)(NativeGateway_1.NativeGatewayDest, { gatewayId: 'ReactNativeDigestAppBar', style: styles.appbar }), (0, jsx_runtime_1.jsx)(Drawers_1.default, { animationTime: drawerAnimationTime, opacity: drawerOpacity, position: drawerPosition, style: drawerStyle, width: drawerWidth, children: (0, jsx_runtime_1.jsx)(Tabs_1.default, { swipe: swipe }) }), children] }));
|
|
12
17
|
};
|
|
13
18
|
ReactNativeDigest.displayName = 'ReactNativeDigest';
|
|
14
|
-
|
|
19
|
+
exports.default = ReactNativeDigest;
|
|
15
20
|
//# sourceMappingURL=ReactNativeDigest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactNativeDigest.js","sourceRoot":"","sources":["../../src/ReactNativeDigest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReactNativeDigest.js","sourceRoot":"","sources":["../../src/ReactNativeDigest.tsx"],"names":[],"mappings":";;;;;;AAAA,mEAA2C;AAC3C,6DAAqC;AACrC,4DAEkC;AAClC,4DAAoC;AAOpC,+CAIsB;AAEtB,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAE/B,MAAM,EAAE,EAAE;CACX,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAA8C,CAAC,EACpE,QAAQ,EACR,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,UAAU,EACV,cAAc,EACd,WAAW,EACX,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EACX,KAAK,EACL,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,wBAAC,mBAAS,IACR,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,aAElB,uBAAC,iCAAkB,IACjB,SAAS,EAAC,yBAAyB,EACnC,KAAK,EAAE,MAAM,CAAC,MAAM,GACpB,EACF,uBAAC,iBAAO,IACN,aAAa,EAAE,mBAAmB,EAClC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,WAAwB,EAC/B,KAAK,EAAE,WAAW,YAElB,uBAAC,cAAI,IACH,KAAK,EAAE,KAAK,GACZ,GACM,EACT,QAAQ,IACC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC;AAEpD,kBAAe,iBAAiB,CAAC"}
|
package/dist/cjs/Types.js
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -1,8 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.ReactNativeDigest = exports.NativeHorse = exports.NativeCarousel = exports.ReactNativeDigestTab = exports.ReactNativeDigestDrawerBar = exports.ReactNativeDigestDrawer = exports.ReactNativeDigestAppBar = void 0;
|
|
21
|
+
var NativeAppBar_1 = require("./Components/NativeAppBar");
|
|
22
|
+
Object.defineProperty(exports, "ReactNativeDigestAppBar", { enumerable: true, get: function () { return __importDefault(NativeAppBar_1).default; } });
|
|
23
|
+
var NativeDrawer_1 = require("./Components/NativeDrawer");
|
|
24
|
+
Object.defineProperty(exports, "ReactNativeDigestDrawer", { enumerable: true, get: function () { return __importDefault(NativeDrawer_1).default; } });
|
|
25
|
+
var NativeDrawerBar_1 = require("./Components/NativeDrawerBar");
|
|
26
|
+
Object.defineProperty(exports, "ReactNativeDigestDrawerBar", { enumerable: true, get: function () { return __importDefault(NativeDrawerBar_1).default; } });
|
|
27
|
+
var NativeTab_1 = require("./Components/NativeTab");
|
|
28
|
+
Object.defineProperty(exports, "ReactNativeDigestTab", { enumerable: true, get: function () { return __importDefault(NativeTab_1).default; } });
|
|
29
|
+
var NativeCarousel_1 = require("./Generics/NativeCarousel");
|
|
30
|
+
Object.defineProperty(exports, "NativeCarousel", { enumerable: true, get: function () { return NativeCarousel_1.NativeCarousel; } });
|
|
31
|
+
Object.defineProperty(exports, "NativeHorse", { enumerable: true, get: function () { return NativeCarousel_1.NativeHorse; } });
|
|
32
|
+
var ReactNativeDigest_1 = require("./ReactNativeDigest");
|
|
33
|
+
Object.defineProperty(exports, "ReactNativeDigest", { enumerable: true, get: function () { return __importDefault(ReactNativeDigest_1).default; } });
|
|
34
|
+
__exportStar(require("@dgui/react-shared"), exports);
|
|
8
35
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,0DAEmC;AADjC,wIAAA,OAAO,OAA2B;AAEpC,0DAEmC;AADjC,wIAAA,OAAO,OAA2B;AAEpC,gEAEsC;AADpC,8IAAA,OAAO,OAA8B;AAEvC,oDAEgC;AAD9B,kIAAA,OAAO,OAAwB;AAEjC,4DAKmC;AAJjC,gHAAA,cAAc,OAAA;AAEd,6GAAA,WAAW,OAAA;AAGb,yDAE6B;AAD3B,uIAAA,OAAO,OAAqB;AAG9B,qDAAmC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@dgui/react-native",
|
|
3
3
|
"title": "Digested React GUI Native Components",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
|
-
"version": "1.8.
|
|
5
|
+
"version": "1.8.5",
|
|
6
6
|
"private": false,
|
|
7
7
|
"description": "Native Components for a boilerplate React GUI",
|
|
8
8
|
"author": "wallzero @wallzeroblog (http://wallzero.com)",
|
|
@@ -45,41 +45,41 @@
|
|
|
45
45
|
"clean:dist": "rimraf dist"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@digest/eslint-config-jest": "^4.14.
|
|
49
|
-
"@digest/eslint-config-react": "^4.14.
|
|
50
|
-
"@digest/eslint-config-typescript": "^4.14.
|
|
51
|
-
"@digest/jest-junit": "^4.14.
|
|
52
|
-
"@digest/jest-react": "^4.14.
|
|
53
|
-
"@digest/jest-typescript": "^4.14.
|
|
54
|
-
"@digest/typescript": "^4.14.
|
|
48
|
+
"@digest/eslint-config-jest": "^4.14.16",
|
|
49
|
+
"@digest/eslint-config-react": "^4.14.16",
|
|
50
|
+
"@digest/eslint-config-typescript": "^4.14.16",
|
|
51
|
+
"@digest/jest-junit": "^4.14.16",
|
|
52
|
+
"@digest/jest-react": "^4.14.16",
|
|
53
|
+
"@digest/jest-typescript": "^4.14.16",
|
|
54
|
+
"@digest/typescript": "^4.14.16",
|
|
55
55
|
"@types/jest": "^30.0.0",
|
|
56
56
|
"@types/react": "^19.2.14",
|
|
57
57
|
"@types/react-native": "^0.73.0",
|
|
58
58
|
"@types/react-test-renderer": "^19.1.0",
|
|
59
59
|
"cross-env": "^10.1.0",
|
|
60
|
-
"jest-environment-jsdom": "^30.
|
|
60
|
+
"jest-environment-jsdom": "^30.3.0",
|
|
61
61
|
"jest-environment-jsdom-global": "^4.0.0",
|
|
62
62
|
"npm-run-all": "^4.1.5",
|
|
63
63
|
"react": "^19.2.4",
|
|
64
|
-
"react-native": "^0.84.
|
|
65
|
-
"react-native-pager-view": "^
|
|
66
|
-
"react-native-reanimated": "^4.
|
|
67
|
-
"react-native-tab-view": "^4.
|
|
68
|
-
"react-native-worklets": "^0.
|
|
64
|
+
"react-native": "^0.84.1",
|
|
65
|
+
"react-native-pager-view": "^8.0.0",
|
|
66
|
+
"react-native-reanimated": "^4.3.0",
|
|
67
|
+
"react-native-tab-view": "^4.3.0",
|
|
68
|
+
"react-native-worklets": "^0.8.1",
|
|
69
69
|
"react-test-renderer": "^19.2.4",
|
|
70
70
|
"rimraf": "^6.1.3"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@dgui/react-native-shared": "^1.8.
|
|
74
|
-
"@dgui/react-shared": "^1.8.
|
|
73
|
+
"@dgui/react-native-shared": "^1.8.5",
|
|
74
|
+
"@dgui/react-shared": "^1.8.5"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"react": "^18.0.0 || ^19.0.0",
|
|
78
|
-
"react-native": "^0.
|
|
79
|
-
"react-native-pager-view": "^
|
|
78
|
+
"react-native": "^0.84.0",
|
|
79
|
+
"react-native-pager-view": "^8.0.0",
|
|
80
80
|
"react-native-reanimated": "^4.0.0",
|
|
81
|
-
"react-native-tab-view": "^4.
|
|
82
|
-
"react-native-worklets": "^0.
|
|
81
|
+
"react-native-tab-view": "^4.0.0",
|
|
82
|
+
"react-native-worklets": "^0.8.0"
|
|
83
83
|
},
|
|
84
84
|
"keywords": [
|
|
85
85
|
"digest",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"react-native",
|
|
90
90
|
"typescript"
|
|
91
91
|
],
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "cbce957f6788a84d0b93534464b0c03d07ef5a86"
|
|
93
93
|
}
|