@dgui/react-native-web 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/NativeWebAppBar/index.js +7 -5
- package/dist/cjs/Components/NativeWebAppBar/index.js.map +1 -1
- package/dist/cjs/Components/NativeWebDrawer/index.js +12 -10
- package/dist/cjs/Components/NativeWebDrawer/index.js.map +1 -1
- package/dist/cjs/Components/NativeWebDrawerBar/index.js +7 -5
- package/dist/cjs/Components/NativeWebDrawerBar/index.js.map +1 -1
- package/dist/cjs/Components/NativeWebTab/index.js +12 -10
- package/dist/cjs/Components/NativeWebTab/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/NativeWebGateway/NativeWebGatewayDest.js +11 -9
- package/dist/cjs/Generics/NativeWebGateway/NativeWebGatewayDest.js.map +1 -1
- package/dist/cjs/Generics/NativeWebGateway/index.js +8 -1
- package/dist/cjs/Generics/NativeWebGateway/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/ReactNativeWebDigest.js +14 -9
- package/dist/cjs/ReactNativeWebDigest.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 +16 -16
|
@@ -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 NativeWebGateway_1 = require("../../../../Generics/NativeWebGateway");
|
|
5
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
6
|
+
const react_web_shared_1 = require("@dgui/react-web-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)(react_web_shared_1.WebBaseHorse, { swipe: swipe, children: (0, jsx_runtime_1.jsx)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: gatewayId }) }));
|
|
13
15
|
};
|
|
14
16
|
Scene.displayName = 'NativeWebDrawersTabsSceneContextScene';
|
|
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,4EAE+C;AAC/C,qDAE4B;AAC5B,6DAEgC;AAChC,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,+BAAY,IACX,KAAK,EAAE,KAAK,YAEZ,uBAAC,uCAAoB,IACnB,SAAS,EAAE,SAAS,GACpB,GACW,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,uCAAuC,CAAC;AAE5D,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 Scene_1 = __importDefault(require("./Scene"));
|
|
8
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
9
|
+
const react_web_shared_1 = require("@dgui/react-web-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)(react_web_shared_1.WebBaseCarousel, { onSelectTab: selectTab, swipe: false, tabIndex: tabIndex, children: tabs }));
|
|
19
24
|
};
|
|
20
25
|
Context.displayName = 'NativeWebDrawersTabsSceneContext';
|
|
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,oDAA4B;AAC5B,qDAI4B;AAC5B,6DAEgC;AAChC,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,kCAAe,IACd,WAAW,EAAE,SAAS,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,YAEjB,IAAI,GACW,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,kCAAkC,CAAC;AAEzD,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 NativeWebGateway_1 = require("../../../Generics/NativeWebGateway");
|
|
8
|
+
const Context_1 = __importDefault(require("./Context"));
|
|
9
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
10
|
+
const react_web_shared_1 = require("@dgui/react-web-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)(react_web_shared_1.WebBaseHorse, { swipe: swipe, children: tabs ?
|
|
19
|
+
((0, jsx_runtime_1.jsx)(Context_1.default, { drawerId: drawerId })) :
|
|
20
|
+
((0, jsx_runtime_1.jsx)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: gatewayId })) }));
|
|
16
21
|
};
|
|
17
22
|
Scene.displayName = 'NativeWebDrawersTabsScene';
|
|
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,yEAE4C;AAC5C,wDAAgC;AAChC,qDAE4B;AAC5B,6DAEgC;AAChC,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,+BAAY,IACX,KAAK,EAAE,KAAK,YAGV,IAAI,CAAC,CAAC;YAEJ,CACE,uBAAC,iBAAO,IACN,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC;YAEH,CACE,uBAAC,uCAAoB,IACnB,SAAS,EAAE,SAAS,GACpB,CACH,GAEQ,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,2BAA2B,CAAC;AAEhD,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 Scene_1 = __importDefault(require("./Scene"));
|
|
8
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
9
|
+
const react_web_shared_1 = require("@dgui/react-web-shared");
|
|
10
|
+
const react_1 = require("react");
|
|
6
11
|
const Drawers = () => {
|
|
7
|
-
const drawerOrder = useDrawerOrder();
|
|
8
|
-
const drawerIndex = useDrawerIndex();
|
|
9
|
-
const selectDrawer = useSelectDrawer();
|
|
10
|
-
const drawers = useMemo(() => {
|
|
12
|
+
const drawerOrder = (0, react_shared_1.useDrawerOrder)();
|
|
13
|
+
const drawerIndex = (0, react_shared_1.useDrawerIndex)();
|
|
14
|
+
const selectDrawer = (0, react_shared_1.useSelectDrawer)();
|
|
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)(react_web_shared_1.WebBaseCarousel, { onSelectTab: selectDrawer, tabIndex: drawerIndex, children: drawers }));
|
|
18
23
|
};
|
|
19
24
|
Drawers.displayName = 'NativeWebDrawersTabs';
|
|
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,oDAA4B;AAC5B,qDAI4B;AAC5B,6DAEgC;AAChC,iCAIe;AAEf,MAAM,OAAO,GAAmC,GAAG,EAAE;IACnD,MAAM,WAAW,GAAG,IAAA,6BAAc,GAAE,CAAC;IACrC,MAAM,WAAW,GAAG,IAAA,6BAAc,GAAE,CAAC;IACrC,MAAM,YAAY,GAAG,IAAA,8BAAe,GAAE,CAAC;IAEvC,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,kCAAe,IACd,WAAW,EAAE,YAAY,EACzB,QAAQ,EAAE,WAAW,YAEpB,OAAO,GACQ,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAE7C,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 NativeWebGateway_1 = require("../../Generics/NativeWebGateway");
|
|
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)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: 'ReactNativeWebDigestDrawerBar' }), (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 = 'NativeWebDrawers';
|
|
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,sEAEyC;AAIzC,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,uCAAkB,IACjB,SAAS,EAAC,+BAA+B,GACzC,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,kBAAkB,CAAC;AAEzC,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 react_native_shared_1 = require("@dgui/react-native-shared");
|
|
5
|
+
const react_web_shared_1 = require("@dgui/react-web-shared");
|
|
4
6
|
const NativeWebAppBar = ({ children }) => {
|
|
5
|
-
return (
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, { gatewayId: 'ReactNativeWebDigestAppBar', children: children ?? (0, jsx_runtime_1.jsx)(react_native_shared_1.AppBar, {}) }));
|
|
6
8
|
};
|
|
7
9
|
NativeWebAppBar.displayName = 'NativeWebAppBar';
|
|
8
|
-
|
|
10
|
+
exports.default = NativeWebAppBar;
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebAppBar/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebAppBar/index.tsx"],"names":[],"mappings":";;;AAGA,mEAEmC;AACnC,6DAEgC;AAKhC,MAAM,eAAe,GAAuD,CAAC,EAC3E,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,iCAAc,IACb,SAAS,EAAC,4BAA4B,YAErC,QAAQ,IAAI,uBAAC,4BAAY,KAAG,GACd,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD,kBAAe,eAAe,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 react_shared_1 = require("@dgui/react-shared");
|
|
5
|
+
const react_web_shared_1 = require("@dgui/react-web-shared");
|
|
6
|
+
const react_1 = require("react");
|
|
5
7
|
const NativeWebDrawer = ({ 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 NativeWebDrawer = ({ 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)(react_web_shared_1.WebBaseGateway, { gatewayId: gatewayId, children: children }));
|
|
23
25
|
};
|
|
24
26
|
NativeWebDrawer.displayName = 'NativeWebDrawer';
|
|
25
|
-
|
|
27
|
+
exports.default = NativeWebDrawer;
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebDrawer/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebDrawer/index.tsx"],"names":[],"mappings":";;;AAGA,qDAG4B;AAC5B,6DAEgC;AAChC,iCAIe;AAEf,MAAM,eAAe,GAAuD,CAAC,EAC3E,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,iCAAc,IACb,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACM,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD,kBAAe,eAAe,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 react_native_shared_1 = require("@dgui/react-native-shared");
|
|
5
|
+
const react_web_shared_1 = require("@dgui/react-web-shared");
|
|
4
6
|
const NativeWebDrawerBar = ({ children }) => {
|
|
5
|
-
return (
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, { gatewayId: 'ReactNativeWebDigestDrawerBar', children: children ?? (0, jsx_runtime_1.jsx)(react_native_shared_1.DrawerBar, {}) }));
|
|
6
8
|
};
|
|
7
9
|
NativeWebDrawerBar.displayName = 'NativeWebDrawerBar';
|
|
8
|
-
|
|
10
|
+
exports.default = NativeWebDrawerBar;
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebDrawerBar/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebDrawerBar/index.tsx"],"names":[],"mappings":";;;AAGA,mEAEmC;AACnC,6DAEgC;AAKhC,MAAM,kBAAkB,GAA0D,CAAC,EACjF,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,iCAAc,IACb,SAAS,EAAC,+BAA+B,YAExC,QAAQ,IAAI,uBAAC,+BAAe,KAAG,GACjB,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAC;AAEtD,kBAAe,kBAAkB,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 react_shared_1 = require("@dgui/react-shared");
|
|
5
|
+
const react_web_shared_1 = require("@dgui/react-web-shared");
|
|
6
|
+
const react_1 = require("react");
|
|
5
7
|
const NativeWebTab = ({ 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)(react_web_shared_1.WebBaseGateway, { gatewayId: gatewayId, children: children }));
|
|
21
23
|
};
|
|
22
24
|
NativeWebTab.displayName = 'NativeWebTab';
|
|
23
|
-
|
|
25
|
+
exports.default = NativeWebTab;
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebTab/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebTab/index.tsx"],"names":[],"mappings":";;;AAGA,qDAG4B;AAC5B,6DAEgC;AAChC,iCAIe;AAEf,MAAM,YAAY,GAAoD,CAAC,EACrE,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,iCAAc,IACb,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACM,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,kBAAe,YAAY,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 NativeWebGateway_1 = require("../../Generics/NativeWebGateway");
|
|
5
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
6
|
+
const react_web_shared_1 = require("@dgui/react-web-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)(react_web_shared_1.WebBaseHorse, { swipe: swipe, children: (0, jsx_runtime_1.jsx)(NativeWebGateway_1.NativeWebGatewayDest, { 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,sEAEyC;AACzC,qDAE4B;AAC5B,6DAEgC;AAChC,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,+BAAY,IACX,KAAK,EAAE,KAAK,YAEZ,uBAAC,uCAAkB,IACjB,SAAS,EAAE,SAAS,GACpB,GACW,CAChB,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 Scene_1 = __importDefault(require("./Scene"));
|
|
8
|
+
const react_shared_1 = require("@dgui/react-shared");
|
|
9
|
+
const react_web_shared_1 = require("@dgui/react-web-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)(react_web_shared_1.WebBaseCarousel, { 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,oDAA4B;AAC5B,qDAI4B;AAC5B,6DAEgC;AAChC,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,kCAAe,IACd,WAAW,EAAE,SAAS,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,YAEjB,IAAI,GACW,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,IAAA,YAAI,EAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
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 react_web_shared_1 = require("@dgui/react-web-shared");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const react_native_1 = require("react-native");
|
|
5
7
|
const NativeWebGatewayDest = ({ gatewayId, style }) => {
|
|
6
|
-
const ref = useRef(null);
|
|
7
|
-
const gatewayRegistry = useContext(WebBaseGatewayContext);
|
|
8
|
-
useEffect(() => {
|
|
8
|
+
const ref = (0, react_1.useRef)(null);
|
|
9
|
+
const gatewayRegistry = (0, react_1.useContext)(react_web_shared_1.WebBaseGatewayContext);
|
|
10
|
+
(0, react_1.useEffect)(() => {
|
|
9
11
|
gatewayRegistry?.addRef(gatewayId, ref);
|
|
10
12
|
return () => {
|
|
11
13
|
gatewayRegistry?.removeRef(gatewayId);
|
|
12
14
|
};
|
|
13
15
|
}, []);
|
|
14
|
-
return (
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.View, { ref: ref, style: style }));
|
|
15
17
|
};
|
|
16
18
|
NativeWebGatewayDest.displayName = 'NativeWebGatewayDest';
|
|
17
|
-
|
|
19
|
+
exports.default = NativeWebGatewayDest;
|
|
18
20
|
//# sourceMappingURL=NativeWebGatewayDest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeWebGatewayDest.js","sourceRoot":"","sources":["../../../../src/Generics/NativeWebGateway/NativeWebGatewayDest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NativeWebGatewayDest.js","sourceRoot":"","sources":["../../../../src/Generics/NativeWebGateway/NativeWebGatewayDest.tsx"],"names":[],"mappings":";;;AAQA,6DAEgC;AAChC,iCAKe;AACf,+CAIsB;AAEtB,MAAM,oBAAoB,GAAiD,CAAC,EAC1E,SAAS,EACT,KAAK,EACN,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,IAAA,cAAM,EAAc,IAAI,CAAC,CAAC;IAEtC,MAAM,eAAe,GAAG,IAAA,kBAAU,EAAC,wCAAqB,CAAC,CAAC;IAE1D,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,eAAe,EAAE,MAAM,CACrB,SAAS,EACT,GAAG,CACJ,CAAC;QAEF,OAAO,GAAG,EAAE;YACV,eAAe,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACxC,CAAC,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uBAAC,mBAAI,IACH,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAE1D,kBAAe,oBAAoB,CAAC"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
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.NativeWebGatewayDest = void 0;
|
|
7
|
+
var NativeWebGatewayDest_1 = require("./NativeWebGatewayDest");
|
|
8
|
+
Object.defineProperty(exports, "NativeWebGatewayDest", { enumerable: true, get: function () { return __importDefault(NativeWebGatewayDest_1).default; } });
|
|
2
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Generics/NativeWebGateway/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Generics/NativeWebGateway/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAGgC;AAF9B,6IAAA,OAAO,OAAwB"}
|
|
@@ -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 react_shared_1 = require("@dgui/react-shared");
|
|
5
|
+
const react_web_shared_1 = require("@dgui/react-web-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)(react_web_shared_1.WebBaseGatewayProvider, { children: children }) }));
|
|
6
8
|
};
|
|
7
9
|
Providers.displayName = 'NativeWebProviders';
|
|
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,qDAG4B;AAC5B,6DAEgC;AAMhC,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,yCAAsB,cACpB,QAAQ,GACc,GACX,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,oBAAoB,CAAC;AAE7C,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 NativeWebGateway_1 = require("./Generics/NativeWebGateway");
|
|
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 ReactNativeWebDigest = ({ 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)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: 'ReactNativeWebDigestAppBar', 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
|
ReactNativeWebDigest.displayName = 'ReactNativeWebDigest';
|
|
14
|
-
|
|
19
|
+
exports.default = ReactNativeWebDigest;
|
|
15
20
|
//# sourceMappingURL=ReactNativeWebDigest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactNativeWebDigest.js","sourceRoot":"","sources":["../../src/ReactNativeWebDigest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReactNativeWebDigest.js","sourceRoot":"","sources":["../../src/ReactNativeWebDigest.tsx"],"names":[],"mappings":";;;;;;AAAA,mEAA2C;AAC3C,6DAAqC;AACrC,kEAEqC;AACrC,4DAAoC;AAOpC,+CAGsB;AAEtB,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAE/B,MAAM,EAAE,EAAE;CACX,CAAC,CAAC;AAEH,MAAM,oBAAoB,GAAiD,CAAC,EAC1E,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,uCAAkB,IACjB,SAAS,EAAC,4BAA4B,EACtC,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,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAE1D,kBAAe,oBAAoB,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.NativeWebHorse = exports.NativeWebCarousel = exports.ReactNativeWebDigest = exports.ReactNativeWebDigestTab = exports.ReactNativeWebDigestDrawerBar = exports.ReactNativeWebDigestDrawer = exports.ReactNativeWebDigestAppBar = void 0;
|
|
21
|
+
var NativeWebAppBar_1 = require("./Components/NativeWebAppBar");
|
|
22
|
+
Object.defineProperty(exports, "ReactNativeWebDigestAppBar", { enumerable: true, get: function () { return __importDefault(NativeWebAppBar_1).default; } });
|
|
23
|
+
var NativeWebDrawer_1 = require("./Components/NativeWebDrawer");
|
|
24
|
+
Object.defineProperty(exports, "ReactNativeWebDigestDrawer", { enumerable: true, get: function () { return __importDefault(NativeWebDrawer_1).default; } });
|
|
25
|
+
var NativeWebDrawerBar_1 = require("./Components/NativeWebDrawerBar");
|
|
26
|
+
Object.defineProperty(exports, "ReactNativeWebDigestDrawerBar", { enumerable: true, get: function () { return __importDefault(NativeWebDrawerBar_1).default; } });
|
|
27
|
+
var NativeWebTab_1 = require("./Components/NativeWebTab");
|
|
28
|
+
Object.defineProperty(exports, "ReactNativeWebDigestTab", { enumerable: true, get: function () { return __importDefault(NativeWebTab_1).default; } });
|
|
29
|
+
var ReactNativeWebDigest_1 = require("./ReactNativeWebDigest");
|
|
30
|
+
Object.defineProperty(exports, "ReactNativeWebDigest", { enumerable: true, get: function () { return __importDefault(ReactNativeWebDigest_1).default; } });
|
|
31
|
+
__exportStar(require("@dgui/react-shared"), exports);
|
|
32
|
+
var react_web_shared_1 = require("@dgui/react-web-shared");
|
|
33
|
+
Object.defineProperty(exports, "NativeWebCarousel", { enumerable: true, get: function () { return react_web_shared_1.WebBaseCarousel; } });
|
|
34
|
+
Object.defineProperty(exports, "NativeWebHorse", { enumerable: true, get: function () { return react_web_shared_1.WebBaseHorse; } });
|
|
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,gEAEsC;AADpC,8IAAA,OAAO,OAA8B;AAEvC,gEAEsC;AADpC,8IAAA,OAAO,OAA8B;AAEvC,sEAEyC;AADvC,oJAAA,OAAO,OAAiC;AAE1C,0DAEmC;AADjC,wIAAA,OAAO,OAA2B;AAEpC,+DAEgC;AAD9B,6IAAA,OAAO,OAAwB;AAGjC,qDAAmC;AACnC,2DAKgC;AAJ9B,qHAAA,eAAe,OAAqB;AAEpC,kHAAA,YAAY,OAAkB"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@dgui/react-native-web",
|
|
3
3
|
"title": "Digested React GUI Native Web 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 Web Components for a boilerplate React GUI",
|
|
8
8
|
"author": "wallzero @wallzeroblog (http://wallzero.com)",
|
|
@@ -45,39 +45,39 @@
|
|
|
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
64
|
"react-dom": "^19.2.4",
|
|
65
|
-
"react-native": "^0.84.
|
|
65
|
+
"react-native": "^0.84.1",
|
|
66
66
|
"react-native-web": "^0.21.2",
|
|
67
67
|
"react-test-renderer": "^19.2.4",
|
|
68
68
|
"rimraf": "^6.1.3"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@dgui/react-native-shared": "^1.8.
|
|
72
|
-
"@dgui/react-shared": "^1.8.
|
|
73
|
-
"@dgui/react-web-shared": "^1.8.
|
|
71
|
+
"@dgui/react-native-shared": "^1.8.5",
|
|
72
|
+
"@dgui/react-shared": "^1.8.5",
|
|
73
|
+
"@dgui/react-web-shared": "^1.8.5"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"react": "^18.0.0 || ^19.0.0",
|
|
77
77
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
78
|
-
"react-native": "^0.
|
|
78
|
+
"react-native": "^0.84.0",
|
|
79
79
|
"react-native-web": "^0.21.0",
|
|
80
|
-
"swiper": "^12.
|
|
80
|
+
"swiper": "^12.1.2"
|
|
81
81
|
},
|
|
82
82
|
"keywords": [
|
|
83
83
|
"digest",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"react-native-web",
|
|
90
90
|
"typescript"
|
|
91
91
|
],
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "cbce957f6788a84d0b93534464b0c03d07ef5a86"
|
|
93
93
|
}
|