@dgui/react-native-web 1.7.6 → 1.8.0

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.
Files changed (120) hide show
  1. package/dist/cjs/Components/Drawers/Tabs/Context/Scene.js +18 -0
  2. package/dist/cjs/Components/Drawers/Tabs/Context/Scene.js.map +1 -0
  3. package/dist/cjs/Components/Drawers/Tabs/Context/index.js +22 -0
  4. package/dist/cjs/Components/Drawers/Tabs/Context/index.js.map +1 -0
  5. package/dist/cjs/Components/Drawers/Tabs/Scene.js +21 -0
  6. package/dist/cjs/Components/Drawers/Tabs/Scene.js.map +1 -0
  7. package/dist/cjs/Components/Drawers/Tabs/index.js +21 -0
  8. package/dist/cjs/Components/Drawers/Tabs/index.js.map +1 -0
  9. package/dist/cjs/Components/Drawers/index.js +16 -0
  10. package/dist/cjs/Components/Drawers/index.js.map +1 -0
  11. package/dist/cjs/Components/NativeWebAppBar/index.js +9 -0
  12. package/dist/cjs/Components/NativeWebAppBar/index.js.map +1 -0
  13. package/dist/cjs/Components/NativeWebDrawer/index.js +26 -0
  14. package/dist/cjs/Components/NativeWebDrawer/index.js.map +1 -0
  15. package/dist/cjs/Components/NativeWebDrawerBar/index.js +9 -0
  16. package/dist/cjs/Components/NativeWebDrawerBar/index.js.map +1 -0
  17. package/dist/cjs/Components/NativeWebTab/index.js +24 -0
  18. package/dist/cjs/Components/NativeWebTab/index.js.map +1 -0
  19. package/dist/cjs/Components/Tabs/Scene.js +17 -0
  20. package/dist/cjs/Components/Tabs/Scene.js.map +1 -0
  21. package/dist/cjs/Components/Tabs/index.js +21 -0
  22. package/dist/cjs/Components/Tabs/index.js.map +1 -0
  23. package/dist/cjs/Generics/NativeWebGateway/NativeWebGatewayDest.js +18 -0
  24. package/dist/cjs/Generics/NativeWebGateway/NativeWebGatewayDest.js.map +1 -0
  25. package/dist/cjs/Generics/NativeWebGateway/index.js +2 -0
  26. package/dist/cjs/Generics/NativeWebGateway/index.js.map +1 -0
  27. package/dist/cjs/Providers/index.js +9 -0
  28. package/dist/cjs/Providers/index.js.map +1 -0
  29. package/dist/cjs/ReactNativeWebDigest.js +15 -0
  30. package/dist/cjs/ReactNativeWebDigest.js.map +1 -0
  31. package/dist/cjs/Types.js +2 -0
  32. package/dist/cjs/Types.js.map +1 -0
  33. package/dist/cjs/index.js +8 -0
  34. package/dist/cjs/index.js.map +1 -0
  35. package/dist/esm/Components/Drawers/Tabs/Context/Scene.js +18 -0
  36. package/dist/esm/Components/Drawers/Tabs/Context/Scene.js.map +1 -0
  37. package/dist/esm/Components/Drawers/Tabs/Context/index.js +22 -0
  38. package/dist/esm/Components/Drawers/Tabs/Context/index.js.map +1 -0
  39. package/dist/esm/Components/Drawers/Tabs/Scene.js +21 -0
  40. package/dist/esm/Components/Drawers/Tabs/Scene.js.map +1 -0
  41. package/dist/esm/Components/Drawers/Tabs/index.js +21 -0
  42. package/dist/esm/Components/Drawers/Tabs/index.js.map +1 -0
  43. package/dist/esm/Components/Drawers/index.js +16 -0
  44. package/dist/esm/Components/Drawers/index.js.map +1 -0
  45. package/dist/esm/Components/NativeWebAppBar/index.js +9 -0
  46. package/dist/esm/Components/NativeWebAppBar/index.js.map +1 -0
  47. package/dist/esm/Components/NativeWebDrawer/index.js +26 -0
  48. package/dist/esm/Components/NativeWebDrawer/index.js.map +1 -0
  49. package/dist/esm/Components/NativeWebDrawerBar/index.js +9 -0
  50. package/dist/esm/Components/NativeWebDrawerBar/index.js.map +1 -0
  51. package/dist/esm/Components/NativeWebTab/index.js +24 -0
  52. package/dist/esm/Components/NativeWebTab/index.js.map +1 -0
  53. package/dist/esm/Components/Tabs/Scene.js +17 -0
  54. package/dist/esm/Components/Tabs/Scene.js.map +1 -0
  55. package/dist/esm/Components/Tabs/index.js +21 -0
  56. package/dist/esm/Components/Tabs/index.js.map +1 -0
  57. package/dist/esm/Generics/NativeWebGateway/NativeWebGatewayDest.js +18 -0
  58. package/dist/esm/Generics/NativeWebGateway/NativeWebGatewayDest.js.map +1 -0
  59. package/dist/esm/Generics/NativeWebGateway/index.js +2 -0
  60. package/dist/esm/Generics/NativeWebGateway/index.js.map +1 -0
  61. package/dist/esm/Providers/index.js +9 -0
  62. package/dist/esm/Providers/index.js.map +1 -0
  63. package/dist/esm/ReactNativeWebDigest.js +15 -0
  64. package/dist/esm/ReactNativeWebDigest.js.map +1 -0
  65. package/dist/esm/Types.js +2 -0
  66. package/dist/esm/Types.js.map +1 -0
  67. package/dist/esm/index.js +8 -0
  68. package/dist/esm/index.js.map +1 -0
  69. package/package.json +15 -12
  70. package/dist/Components/Drawers/Tabs/Context/Scene.js +0 -20
  71. package/dist/Components/Drawers/Tabs/Context/Scene.js.map +0 -1
  72. package/dist/Components/Drawers/Tabs/Context/index.js +0 -27
  73. package/dist/Components/Drawers/Tabs/Context/index.js.map +0 -1
  74. package/dist/Components/Drawers/Tabs/Scene.js +0 -26
  75. package/dist/Components/Drawers/Tabs/Scene.js.map +0 -1
  76. package/dist/Components/Drawers/Tabs/index.js +0 -26
  77. package/dist/Components/Drawers/Tabs/index.js.map +0 -1
  78. package/dist/Components/Drawers/index.js +0 -21
  79. package/dist/Components/Drawers/index.js.map +0 -1
  80. package/dist/Components/NativeWebAppBar/index.js +0 -11
  81. package/dist/Components/NativeWebAppBar/index.js.map +0 -1
  82. package/dist/Components/NativeWebDrawer/index.js +0 -40
  83. package/dist/Components/NativeWebDrawer/index.js.map +0 -1
  84. package/dist/Components/NativeWebDrawerBar/index.js +0 -11
  85. package/dist/Components/NativeWebDrawerBar/index.js.map +0 -1
  86. package/dist/Components/NativeWebTab/index.js +0 -38
  87. package/dist/Components/NativeWebTab/index.js.map +0 -1
  88. package/dist/Components/Tabs/Scene.js +0 -19
  89. package/dist/Components/Tabs/Scene.js.map +0 -1
  90. package/dist/Components/Tabs/index.js +0 -26
  91. package/dist/Components/Tabs/index.js.map +0 -1
  92. package/dist/Generics/NativeWebGateway/NativeWebGatewayDest.js +0 -20
  93. package/dist/Generics/NativeWebGateway/NativeWebGatewayDest.js.map +0 -1
  94. package/dist/Generics/NativeWebGateway/index.js +0 -9
  95. package/dist/Generics/NativeWebGateway/index.js.map +0 -1
  96. package/dist/Providers/index.js +0 -11
  97. package/dist/Providers/index.js.map +0 -1
  98. package/dist/ReactNativeWebDigest.js +0 -20
  99. package/dist/ReactNativeWebDigest.js.map +0 -1
  100. package/dist/Types.js +0 -3
  101. package/dist/Types.js.map +0 -1
  102. package/dist/index.js +0 -35
  103. package/dist/index.js.map +0 -1
  104. /package/dist/{Components → esm/Components}/Drawers/Tabs/Context/Scene.d.ts +0 -0
  105. /package/dist/{Components → esm/Components}/Drawers/Tabs/Context/index.d.ts +0 -0
  106. /package/dist/{Components → esm/Components}/Drawers/Tabs/Scene.d.ts +0 -0
  107. /package/dist/{Components → esm/Components}/Drawers/Tabs/index.d.ts +0 -0
  108. /package/dist/{Components → esm/Components}/Drawers/index.d.ts +0 -0
  109. /package/dist/{Components → esm/Components}/NativeWebAppBar/index.d.ts +0 -0
  110. /package/dist/{Components → esm/Components}/NativeWebDrawer/index.d.ts +0 -0
  111. /package/dist/{Components → esm/Components}/NativeWebDrawerBar/index.d.ts +0 -0
  112. /package/dist/{Components → esm/Components}/NativeWebTab/index.d.ts +0 -0
  113. /package/dist/{Components → esm/Components}/Tabs/Scene.d.ts +0 -0
  114. /package/dist/{Components → esm/Components}/Tabs/index.d.ts +0 -0
  115. /package/dist/{Generics → esm/Generics}/NativeWebGateway/NativeWebGatewayDest.d.ts +0 -0
  116. /package/dist/{Generics → esm/Generics}/NativeWebGateway/index.d.ts +0 -0
  117. /package/dist/{Providers → esm/Providers}/index.d.ts +0 -0
  118. /package/dist/{ReactNativeWebDigest.d.ts → esm/ReactNativeWebDigest.d.ts} +0 -0
  119. /package/dist/{Types.d.ts → esm/Types.d.ts} +0 -0
  120. /package/dist/{index.d.ts → esm/index.d.ts} +0 -0
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { NativeWebGatewayDest } from '../../../../Generics/NativeWebGateway';
3
+ import { useTabs } from '@dgui/react-shared';
4
+ import { WebBaseHorse } from '@dgui/react-web-shared';
5
+ import { memo, useMemo } from 'react';
6
+ const Scene = ({ drawerId, tabId }) => {
7
+ const tabs = useTabs();
8
+ const { swipe } = tabs[tabId] ?? {};
9
+ const gatewayId = useMemo(() => {
10
+ return `drawer-${drawerId}-${tabId}`;
11
+ }, []);
12
+ return (_jsx(WebBaseHorse, { swipe: swipe, children: _jsx(NativeWebGatewayDest, { gatewayId: gatewayId }) }));
13
+ };
14
+ Scene.displayName = 'NativeWebDrawersTabsSceneContextScene';
15
+ const SceneSwiperSlide = memo(Scene);
16
+ SceneSwiperSlide.displayName = 'SceneSwiperSlide';
17
+ export default SceneSwiperSlide;
18
+ //# sourceMappingURL=Scene.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../../../src/Components/Drawers/Tabs/Context/Scene.tsx"],"names":[],"mappings":";AAMA,OAAO,EACL,oBAAoB,EACrB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,OAAO,EACR,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,IAAI,EACJ,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,KAAK,GAAkC,CAC3C,EACE,QAAQ,EACR,KAAK,EACN,EACD,EAAE;IACF,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,EACJ,KAAK,EACN,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAEtB,MAAM,SAAS,GAAG,OAAO,CACvB,GAAG,EAAE;QACH,OAAO,UAAU,QAAQ,IAAI,KAAK,EAAE,CAAC;IACvC,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,IACX,KAAK,EAAE,KAAK,YAEZ,KAAC,oBAAoB,IACnB,SAAS,EAAE,SAAS,GACpB,GACW,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,uCAAuC,CAAC;AAE5D,MAAM,gBAAgB,GAAG,IAAI,CAC3B,KAAK,CACN,CAAC;AAOF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Scene from './Scene';
3
+ import { useSelectTab, useTabIndex, useTabOrder } from '@dgui/react-shared';
4
+ import { WebBaseCarousel } from '@dgui/react-web-shared';
5
+ import { memo, useMemo } from 'react';
6
+ const Context = ({ drawerId }) => {
7
+ const selectTab = useSelectTab();
8
+ const tabIndex = useTabIndex();
9
+ const tabOrder = useTabOrder();
10
+ const tabs = useMemo(() => {
11
+ return tabOrder.map((tab) => {
12
+ return (_jsx(Scene, { drawerId: drawerId, tabId: tab }, tab));
13
+ });
14
+ }, [
15
+ drawerId,
16
+ tabOrder
17
+ ]);
18
+ return (_jsx(WebBaseCarousel, { onSelectTab: selectTab, swipe: false, tabIndex: tabIndex, children: tabs }));
19
+ };
20
+ Context.displayName = 'NativeWebDrawersTabsSceneContext';
21
+ export default memo(Context);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/Components/Drawers/Tabs/Context/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,WAAW,EACX,WAAW,EACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,IAAI,EACJ,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,OAAO,GAAoC,CAAC,EAChD,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,IAAI,GAAG,OAAO,CAClB,GAAG,EAAE;QACH,OAAO,QAAQ,CAAC,GAAG,CACjB,CAAC,GAAG,EAAE,EAAE;YACN,OAAO,CACL,KAAC,KAAK,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,KAAC,eAAe,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,eAAe,IAAI,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { NativeWebGatewayDest } from '../../../Generics/NativeWebGateway';
3
+ import Context from './Context';
4
+ import { useDrawers } from '@dgui/react-shared';
5
+ import { WebBaseHorse } from '@dgui/react-web-shared';
6
+ import { memo, useMemo } from 'react';
7
+ const Scene = ({ drawerId }) => {
8
+ const drawers = useDrawers();
9
+ const { swipe, tabs } = drawers[drawerId] ?? {};
10
+ const gatewayId = useMemo(() => {
11
+ return `drawer-${drawerId}`;
12
+ }, []);
13
+ return (_jsx(WebBaseHorse, { swipe: swipe, children: tabs ?
14
+ (_jsx(Context, { drawerId: drawerId })) :
15
+ (_jsx(NativeWebGatewayDest, { gatewayId: gatewayId })) }));
16
+ };
17
+ Scene.displayName = 'NativeWebDrawersTabsScene';
18
+ const SceneSwiperSlide = memo(Scene);
19
+ SceneSwiperSlide.displayName = 'SceneSwiperSlide';
20
+ export default SceneSwiperSlide;
21
+ //# sourceMappingURL=Scene.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../../src/Components/Drawers/Tabs/Scene.tsx"],"names":[],"mappings":";AAMA,OAAO,EACL,oBAAoB,EACrB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EACL,UAAU,EACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,IAAI,EACJ,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,KAAK,GAAkC,CAAC,EAC5C,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAE7B,MAAM,EACJ,KAAK,EACL,IAAI,EACL,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAE5B,MAAM,SAAS,GAAG,OAAO,CACvB,GAAG,EAAE;QACH,OAAO,UAAU,QAAQ,EAAE,CAAC;IAC9B,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,IACX,KAAK,EAAE,KAAK,YAGV,IAAI,CAAC,CAAC;YAEJ,CACE,KAAC,OAAO,IACN,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC;YAEH,CACE,KAAC,oBAAoB,IACnB,SAAS,EAAE,SAAS,GACpB,CACH,GAEQ,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,2BAA2B,CAAC;AAEhD,MAAM,gBAAgB,GAAG,IAAI,CAC3B,KAAK,CACN,CAAC;AAMF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Scene from './Scene';
3
+ import { useDrawerIndex, useDrawerOrder, useSelectDrawer } from '@dgui/react-shared';
4
+ import { WebBaseCarousel } from '@dgui/react-web-shared';
5
+ import { memo, useMemo } from 'react';
6
+ const Drawers = () => {
7
+ const drawerOrder = useDrawerOrder();
8
+ const drawerIndex = useDrawerIndex();
9
+ const selectDrawer = useSelectDrawer();
10
+ const drawers = useMemo(() => {
11
+ return drawerOrder.map((drawerId) => {
12
+ return (_jsx(Scene, { drawerId: drawerId }, drawerId));
13
+ });
14
+ }, [
15
+ drawerOrder
16
+ ]);
17
+ return (_jsx(WebBaseCarousel, { onSelectTab: selectDrawer, tabIndex: drawerIndex, children: drawers }));
18
+ };
19
+ Drawers.displayName = 'NativeWebDrawersTabs';
20
+ export default memo(Drawers);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Drawers/Tabs/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,cAAc,EACd,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,IAAI,EACJ,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,OAAO,GAAmC,GAAG,EAAE;IACnD,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,MAAM,OAAO,GAAG,OAAO,CACrB,GAAG,EAAE;QACH,OAAO,WAAW,CAAC,GAAG,CACpB,CAAC,QAAQ,EAAE,EAAE;YACX,OAAO,CACL,KAAC,KAAK,IACJ,QAAQ,EAAE,QAAQ,IACb,QAAQ,CACb,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC,EACD;QACE,WAAW;KACZ,CACF,CAAC;IAEF,OAAO,CACL,KAAC,eAAe,IACd,WAAW,EAAE,YAAY,EACzB,QAAQ,EAAE,WAAW,YAEpB,OAAO,GACQ,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAE7C,eAAe,IAAI,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { NativeWebGatewayDest as GatewayDestination } from '../../Generics/NativeWebGateway';
3
+ import Tabs from './Tabs';
4
+ import { NativeBaseDrawers as SideDrawers } from '@dgui/react-native-shared';
5
+ import { useDrawerOpen } from '@dgui/react-shared';
6
+ import { useMemo } from 'react';
7
+ const Drawers = (props) => {
8
+ const drawerOpen = useDrawerOpen();
9
+ const appBar = useMemo(() => {
10
+ return (_jsxs(_Fragment, { children: [_jsx(GatewayDestination, { gatewayId: 'ReactNativeWebDigestDrawerBar' }), _jsx(Tabs, {})] }));
11
+ }, []);
12
+ return (_jsx(SideDrawers, { drawerContent: appBar, open: drawerOpen, ...props }));
13
+ };
14
+ Drawers.displayName = 'NativeWebDrawers';
15
+ export default Drawers;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/Drawers/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,oBAAoB,IAAI,kBAAkB,EAC3C,MAAM,iCAAiC,CAAC;AAIzC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EACL,iBAAiB,IAAI,WAAW,EACjC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,OAAO,EACR,MAAM,OAAO,CAAC;AAMf,MAAM,OAAO,GAAoC,CAC/C,KAAK,EACL,EAAE;IACF,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IAEnC,MAAM,MAAM,GAAG,OAAO,CACpB,GAAG,EAAE;QACH,OAAO,CACL,8BACE,KAAC,kBAAkB,IACjB,SAAS,EAAC,+BAA+B,GACzC,EACF,KAAC,IAAI,KAAG,IACP,CACJ,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,KAAC,WAAW,IACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU,KACZ,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAEzC,eAAe,OAAO,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { AppBar as SharedAppBar } from '@dgui/react-native-shared';
3
+ import { WebBaseGateway } from '@dgui/react-web-shared';
4
+ const NativeWebAppBar = ({ children }) => {
5
+ return (_jsx(WebBaseGateway, { gatewayId: 'ReactNativeWebDigestAppBar', children: children ?? _jsx(SharedAppBar, {}) }));
6
+ };
7
+ NativeWebAppBar.displayName = 'NativeWebAppBar';
8
+ export default NativeWebAppBar;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebAppBar/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,MAAM,IAAI,YAAY,EACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAKhC,MAAM,eAAe,GAAuD,CAAC,EAC3E,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,cAAc,IACb,SAAS,EAAC,4BAA4B,YAErC,QAAQ,IAAI,KAAC,YAAY,KAAG,GACd,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD,eAAe,eAAe,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useAddDrawer, useRemoveDrawer } from '@dgui/react-shared';
3
+ import { WebBaseGateway } from '@dgui/react-web-shared';
4
+ import { useEffect, useMemo } from 'react';
5
+ const NativeWebDrawer = ({ children, ...props }) => {
6
+ const { drawerId, gatewayId } = useMemo(() => {
7
+ return {
8
+ drawerId: props.drawerId,
9
+ gatewayId: props.tabId ?
10
+ `drawer-${props.drawerId}-${props.tabId}` :
11
+ `drawer-${props.drawerId}`
12
+ };
13
+ }, []);
14
+ const addDrawer = useAddDrawer();
15
+ const removeDrawer = useRemoveDrawer();
16
+ useEffect(() => {
17
+ addDrawer(props);
18
+ return () => {
19
+ removeDrawer(drawerId);
20
+ };
21
+ }, []);
22
+ return (_jsx(WebBaseGateway, { gatewayId: gatewayId, children: children }));
23
+ };
24
+ NativeWebDrawer.displayName = 'NativeWebDrawer';
25
+ export default NativeWebDrawer;
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebDrawer/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,YAAY,EACZ,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,SAAS,EACT,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,eAAe,GAAuD,CAAC,EAC3E,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IAGH,MAAM,EACJ,QAAQ,EACR,SAAS,EACV,GAAG,OAAO,CACT,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,YAAY,EAAE,CAAC;IACjC,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,SAAS,CACP,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,KAAC,cAAc,IACb,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACM,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD,eAAe,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { DrawerBar as SharedDrawerBar } from '@dgui/react-native-shared';
3
+ import { WebBaseGateway } from '@dgui/react-web-shared';
4
+ const NativeWebDrawerBar = ({ children }) => {
5
+ return (_jsx(WebBaseGateway, { gatewayId: 'ReactNativeWebDigestDrawerBar', children: children ?? _jsx(SharedDrawerBar, {}) }));
6
+ };
7
+ NativeWebDrawerBar.displayName = 'NativeWebDrawerBar';
8
+ export default NativeWebDrawerBar;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebDrawerBar/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,SAAS,IAAI,eAAe,EAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAKhC,MAAM,kBAAkB,GAA0D,CAAC,EACjF,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,cAAc,IACb,SAAS,EAAC,+BAA+B,YAExC,QAAQ,IAAI,KAAC,eAAe,KAAG,GACjB,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAC;AAEtD,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useAddTab, useRemoveTab } from '@dgui/react-shared';
3
+ import { WebBaseGateway } from '@dgui/react-web-shared';
4
+ import { useEffect, useMemo } from 'react';
5
+ const NativeWebTab = ({ children, ...props }) => {
6
+ const { gatewayId, tabId } = useMemo(() => {
7
+ return {
8
+ gatewayId: `tab-${props.tabId}`,
9
+ tabId: props.tabId
10
+ };
11
+ }, []);
12
+ const addTab = useAddTab();
13
+ const removeTab = useRemoveTab();
14
+ useEffect(() => {
15
+ addTab(props);
16
+ return () => {
17
+ removeTab(tabId);
18
+ };
19
+ }, []);
20
+ return (_jsx(WebBaseGateway, { gatewayId: gatewayId, children: children }));
21
+ };
22
+ NativeWebTab.displayName = 'NativeWebTab';
23
+ export default NativeWebTab;
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebTab/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,SAAS,EACT,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,YAAY,GAAoD,CAAC,EACrE,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IAGH,MAAM,EACJ,SAAS,EACT,KAAK,EACN,GAAG,OAAO,CACT,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,SAAS,EAAE,CAAC;IAC3B,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,SAAS,CACP,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,KAAC,cAAc,IACb,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACM,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,eAAe,YAAY,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { NativeWebGatewayDest as GatewayDestination } from '../../Generics/NativeWebGateway';
3
+ import { useTabs } from '@dgui/react-shared';
4
+ import { WebBaseHorse } from '@dgui/react-web-shared';
5
+ import { memo, useMemo } from 'react';
6
+ const Scene = ({ tabId }) => {
7
+ const tabs = useTabs();
8
+ const { swipe } = tabs[tabId] ?? {};
9
+ const gatewayId = useMemo(() => {
10
+ return `tab-${tabId}`;
11
+ }, []);
12
+ return (_jsx(WebBaseHorse, { swipe: swipe, children: _jsx(GatewayDestination, { gatewayId: gatewayId }) }));
13
+ };
14
+ const SceneSwiperSlide = memo(Scene);
15
+ SceneSwiperSlide.displayName = 'SceneSwiperSlide';
16
+ export default SceneSwiperSlide;
17
+ //# sourceMappingURL=Scene.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../src/Components/Tabs/Scene.tsx"],"names":[],"mappings":";AAKA,OAAO,EACL,oBAAoB,IAAI,kBAAkB,EAC3C,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,OAAO,EACR,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,IAAI,EACJ,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,KAAK,GAAkC,CAAC,EAC5C,KAAK,EACN,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,EACJ,KAAK,EACN,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAEtB,MAAM,SAAS,GAAG,OAAO,CACvB,GAAG,EAAE;QACH,OAAO,OAAO,KAAK,EAAE,CAAC;IACxB,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,IACX,KAAK,EAAE,KAAK,YAEZ,KAAC,kBAAkB,IACjB,SAAS,EAAE,SAAS,GACpB,GACW,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,IAAI,CAC3B,KAAK,CACN,CAAC;AAMF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Scene from './Scene';
3
+ import { useSelectTab, useTabIndex, useTabOrder } from '@dgui/react-shared';
4
+ import { WebBaseCarousel } from '@dgui/react-web-shared';
5
+ import { memo, useMemo } from 'react';
6
+ const Tabs = ({ swipe }) => {
7
+ const selectTab = useSelectTab();
8
+ const tabIndex = useTabIndex();
9
+ const tabOrder = useTabOrder();
10
+ const tabs = useMemo(() => {
11
+ const orderedTabs = tabOrder.map((tab) => {
12
+ return (_jsx(Scene, { tabId: tab }, tab));
13
+ });
14
+ return orderedTabs;
15
+ }, [
16
+ tabOrder
17
+ ]);
18
+ return (_jsx(WebBaseCarousel, { onSelectTab: selectTab, swipe: swipe, tabIndex: tabIndex, children: tabs }));
19
+ };
20
+ export default memo(Tabs);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/Tabs/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,WAAW,EACX,WAAW,EACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,IAAI,EACJ,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,IAAI,GAAgC,CAAC,EACzC,KAAK,EACN,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,IAAI,GAAG,OAAO,CAClB,GAAG,EAAE;QACH,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAC9B,CAAC,GAAG,EAAE,EAAE;YACN,OAAO,CACL,KAAC,KAAK,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,KAAC,eAAe,IACd,WAAW,EAAE,SAAS,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,YAEjB,IAAI,GACW,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC,IAAI,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { WebBaseGatewayContext } from '@dgui/react-web-shared';
3
+ import { useContext, useEffect, useRef } from 'react';
4
+ import { View } from 'react-native';
5
+ const NativeWebGatewayDest = ({ gatewayId, style }) => {
6
+ const ref = useRef(null);
7
+ const gatewayRegistry = useContext(WebBaseGatewayContext);
8
+ useEffect(() => {
9
+ gatewayRegistry?.addRef(gatewayId, ref);
10
+ return () => {
11
+ gatewayRegistry?.removeRef(gatewayId);
12
+ };
13
+ }, []);
14
+ return (_jsx(View, { ref: ref, style: style }));
15
+ };
16
+ NativeWebGatewayDest.displayName = 'NativeWebGatewayDest';
17
+ export default NativeWebGatewayDest;
18
+ //# sourceMappingURL=NativeWebGatewayDest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeWebGatewayDest.js","sourceRoot":"","sources":["../../../../src/Generics/NativeWebGateway/NativeWebGatewayDest.tsx"],"names":[],"mappings":";AAQA,OAAO,EACL,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,OAAO,CAAC;AACf,OAAO,EACL,IAAI,EAGL,MAAM,cAAc,CAAC;AAEtB,MAAM,oBAAoB,GAAiD,CAAC,EAC1E,SAAS,EACT,KAAK,EACN,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,MAAM,CAAc,IAAI,CAAC,CAAC;IAEtC,MAAM,eAAe,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAE1D,SAAS,CACP,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,KAAC,IAAI,IACH,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAE1D,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as NativeWebGatewayDest } from './NativeWebGatewayDest';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Generics/NativeWebGateway/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,oBAAoB,EAEhC,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Providers as BaseProviders } from '@dgui/react-shared';
3
+ import { WebBaseGatewayProvider } from '@dgui/react-web-shared';
4
+ const Providers = ({ children, drawerIndex, drawerOpen, onDrawerToggle, onSelectDrawer, onSelectTab, tabIndex }) => {
5
+ return (_jsx(BaseProviders, { drawerIndex: drawerIndex, drawerOpen: drawerOpen, onDrawerToggle: onDrawerToggle, onSelectDrawer: onSelectDrawer, onSelectTab: onSelectTab, tabIndex: tabIndex, children: _jsx(WebBaseGatewayProvider, { children: children }) }));
6
+ };
7
+ Providers.displayName = 'NativeWebProviders';
8
+ export default Providers;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Providers/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,IAAI,aAAa,EAE3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,sBAAsB,EACvB,MAAM,wBAAwB,CAAC;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,KAAC,aAAa,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,KAAC,sBAAsB,cACpB,QAAQ,GACc,GACX,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,oBAAoB,CAAC;AAE7C,eAAe,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Drawers from './Components/Drawers';
3
+ import Tabs from './Components/Tabs';
4
+ import { NativeWebGatewayDest as GatewayDestination } from './Generics/NativeWebGateway';
5
+ import Providers from './Providers';
6
+ import { StyleSheet } from 'react-native';
7
+ const styles = StyleSheet.create({
8
+ appbar: {}
9
+ });
10
+ const ReactNativeWebDigest = ({ children, drawerAnimationTime, drawerIndex, drawerOpacity, drawerOpen, drawerPosition, drawerStyle, drawerWidth, onDrawerToggle, onSelectDrawer, onSelectTab, swipe, tabIndex }) => {
11
+ return (_jsxs(Providers, { drawerIndex: drawerIndex, drawerOpen: drawerOpen, onDrawerToggle: onDrawerToggle, onSelectDrawer: onSelectDrawer, onSelectTab: onSelectTab, tabIndex: tabIndex, children: [_jsx(GatewayDestination, { gatewayId: 'ReactNativeWebDigestAppBar', style: styles.appbar }), _jsx(Drawers, { animationTime: drawerAnimationTime, opacity: drawerOpacity, position: drawerPosition, style: drawerStyle, width: drawerWidth, children: _jsx(Tabs, { swipe: swipe }) }), children] }));
12
+ };
13
+ ReactNativeWebDigest.displayName = 'ReactNativeWebDigest';
14
+ export default ReactNativeWebDigest;
15
+ //# sourceMappingURL=ReactNativeWebDigest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactNativeWebDigest.js","sourceRoot":"","sources":["../../src/ReactNativeWebDigest.tsx"],"names":[],"mappings":";AAAA,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,IAAI,MAAM,mBAAmB,CAAC;AACrC,OAAO,EACL,oBAAoB,IAAI,kBAAkB,EAC3C,MAAM,6BAA6B,CAAC;AACrC,OAAO,SAAS,MAAM,aAAa,CAAC;AAOpC,OAAO,EACL,UAAU,EAEX,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,GAAG,UAAU,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,MAAC,SAAS,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,KAAC,kBAAkB,IACjB,SAAS,EAAC,4BAA4B,EACtC,KAAK,EAAE,MAAM,CAAC,MAAM,GACpB,EACF,KAAC,OAAO,IACN,aAAa,EAAE,mBAAmB,EAClC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,WAAwB,EAC/B,KAAK,EAAE,WAAW,YAElB,KAAC,IAAI,IACH,KAAK,EAAE,KAAK,GACZ,GACM,EACT,QAAQ,IACC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAE1D,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Types.js","sourceRoot":"","sources":["../../src/Types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export { default as ReactNativeWebDigestAppBar } from './Components/NativeWebAppBar';
2
+ export { default as ReactNativeWebDigestDrawer } from './Components/NativeWebDrawer';
3
+ export { default as ReactNativeWebDigestDrawerBar } from './Components/NativeWebDrawerBar';
4
+ export { default as ReactNativeWebDigestTab } from './Components/NativeWebTab';
5
+ export { default as ReactNativeWebDigest } from './ReactNativeWebDigest';
6
+ export * from '@dgui/react-shared';
7
+ export { WebBaseCarousel as NativeWebCarousel, WebBaseHorse as NativeWebHorse } from '@dgui/react-web-shared';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,0BAA0B,EACtC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,OAAO,IAAI,0BAA0B,EACtC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,OAAO,IAAI,6BAA6B,EACzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,OAAO,IAAI,uBAAuB,EACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,OAAO,IAAI,oBAAoB,EAChC,MAAM,wBAAwB,CAAC;AAEhC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EACL,eAAe,IAAI,iBAAiB,EAEpC,YAAY,IAAI,cAAc,EAE/B,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { NativeWebGatewayDest } from '../../../../Generics/NativeWebGateway';
3
+ import { useTabs } from '@dgui/react-shared';
4
+ import { WebBaseHorse } from '@dgui/react-web-shared';
5
+ import { memo, useMemo } from 'react';
6
+ const Scene = ({ drawerId, tabId }) => {
7
+ const tabs = useTabs();
8
+ const { swipe } = tabs[tabId] ?? {};
9
+ const gatewayId = useMemo(() => {
10
+ return `drawer-${drawerId}-${tabId}`;
11
+ }, []);
12
+ return (_jsx(WebBaseHorse, { swipe: swipe, children: _jsx(NativeWebGatewayDest, { gatewayId: gatewayId }) }));
13
+ };
14
+ Scene.displayName = 'NativeWebDrawersTabsSceneContextScene';
15
+ const SceneSwiperSlide = memo(Scene);
16
+ SceneSwiperSlide.displayName = 'SceneSwiperSlide';
17
+ export default SceneSwiperSlide;
18
+ //# sourceMappingURL=Scene.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../../../src/Components/Drawers/Tabs/Context/Scene.tsx"],"names":[],"mappings":";AAMA,OAAO,EACL,oBAAoB,EACrB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,OAAO,EACR,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,IAAI,EACJ,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,KAAK,GAAkC,CAC3C,EACE,QAAQ,EACR,KAAK,EACN,EACD,EAAE;IACF,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,EACJ,KAAK,EACN,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAEtB,MAAM,SAAS,GAAG,OAAO,CACvB,GAAG,EAAE;QACH,OAAO,UAAU,QAAQ,IAAI,KAAK,EAAE,CAAC;IACvC,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,IACX,KAAK,EAAE,KAAK,YAEZ,KAAC,oBAAoB,IACnB,SAAS,EAAE,SAAS,GACpB,GACW,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,uCAAuC,CAAC;AAE5D,MAAM,gBAAgB,GAAG,IAAI,CAC3B,KAAK,CACN,CAAC;AAOF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Scene from './Scene';
3
+ import { useSelectTab, useTabIndex, useTabOrder } from '@dgui/react-shared';
4
+ import { WebBaseCarousel } from '@dgui/react-web-shared';
5
+ import { memo, useMemo } from 'react';
6
+ const Context = ({ drawerId }) => {
7
+ const selectTab = useSelectTab();
8
+ const tabIndex = useTabIndex();
9
+ const tabOrder = useTabOrder();
10
+ const tabs = useMemo(() => {
11
+ return tabOrder.map((tab) => {
12
+ return (_jsx(Scene, { drawerId: drawerId, tabId: tab }, tab));
13
+ });
14
+ }, [
15
+ drawerId,
16
+ tabOrder
17
+ ]);
18
+ return (_jsx(WebBaseCarousel, { onSelectTab: selectTab, swipe: false, tabIndex: tabIndex, children: tabs }));
19
+ };
20
+ Context.displayName = 'NativeWebDrawersTabsSceneContext';
21
+ export default memo(Context);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/Components/Drawers/Tabs/Context/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,WAAW,EACX,WAAW,EACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,IAAI,EACJ,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,OAAO,GAAoC,CAAC,EAChD,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,IAAI,GAAG,OAAO,CAClB,GAAG,EAAE;QACH,OAAO,QAAQ,CAAC,GAAG,CACjB,CAAC,GAAG,EAAE,EAAE;YACN,OAAO,CACL,KAAC,KAAK,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,KAAC,eAAe,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,eAAe,IAAI,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { NativeWebGatewayDest } from '../../../Generics/NativeWebGateway';
3
+ import Context from './Context';
4
+ import { useDrawers } from '@dgui/react-shared';
5
+ import { WebBaseHorse } from '@dgui/react-web-shared';
6
+ import { memo, useMemo } from 'react';
7
+ const Scene = ({ drawerId }) => {
8
+ const drawers = useDrawers();
9
+ const { swipe, tabs } = drawers[drawerId] ?? {};
10
+ const gatewayId = useMemo(() => {
11
+ return `drawer-${drawerId}`;
12
+ }, []);
13
+ return (_jsx(WebBaseHorse, { swipe: swipe, children: tabs ?
14
+ (_jsx(Context, { drawerId: drawerId })) :
15
+ (_jsx(NativeWebGatewayDest, { gatewayId: gatewayId })) }));
16
+ };
17
+ Scene.displayName = 'NativeWebDrawersTabsScene';
18
+ const SceneSwiperSlide = memo(Scene);
19
+ SceneSwiperSlide.displayName = 'SceneSwiperSlide';
20
+ export default SceneSwiperSlide;
21
+ //# sourceMappingURL=Scene.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../../src/Components/Drawers/Tabs/Scene.tsx"],"names":[],"mappings":";AAMA,OAAO,EACL,oBAAoB,EACrB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EACL,UAAU,EACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,IAAI,EACJ,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,KAAK,GAAkC,CAAC,EAC5C,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAE7B,MAAM,EACJ,KAAK,EACL,IAAI,EACL,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAE5B,MAAM,SAAS,GAAG,OAAO,CACvB,GAAG,EAAE;QACH,OAAO,UAAU,QAAQ,EAAE,CAAC;IAC9B,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,IACX,KAAK,EAAE,KAAK,YAGV,IAAI,CAAC,CAAC;YAEJ,CACE,KAAC,OAAO,IACN,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC;YAEH,CACE,KAAC,oBAAoB,IACnB,SAAS,EAAE,SAAS,GACpB,CACH,GAEQ,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,2BAA2B,CAAC;AAEhD,MAAM,gBAAgB,GAAG,IAAI,CAC3B,KAAK,CACN,CAAC;AAMF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Scene from './Scene';
3
+ import { useDrawerIndex, useDrawerOrder, useSelectDrawer } from '@dgui/react-shared';
4
+ import { WebBaseCarousel } from '@dgui/react-web-shared';
5
+ import { memo, useMemo } from 'react';
6
+ const Drawers = () => {
7
+ const drawerOrder = useDrawerOrder();
8
+ const drawerIndex = useDrawerIndex();
9
+ const selectDrawer = useSelectDrawer();
10
+ const drawers = useMemo(() => {
11
+ return drawerOrder.map((drawerId) => {
12
+ return (_jsx(Scene, { drawerId: drawerId }, drawerId));
13
+ });
14
+ }, [
15
+ drawerOrder
16
+ ]);
17
+ return (_jsx(WebBaseCarousel, { onSelectTab: selectDrawer, tabIndex: drawerIndex, children: drawers }));
18
+ };
19
+ Drawers.displayName = 'NativeWebDrawersTabs';
20
+ export default memo(Drawers);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Drawers/Tabs/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,cAAc,EACd,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,IAAI,EACJ,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,OAAO,GAAmC,GAAG,EAAE;IACnD,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,MAAM,OAAO,GAAG,OAAO,CACrB,GAAG,EAAE;QACH,OAAO,WAAW,CAAC,GAAG,CACpB,CAAC,QAAQ,EAAE,EAAE;YACX,OAAO,CACL,KAAC,KAAK,IACJ,QAAQ,EAAE,QAAQ,IACb,QAAQ,CACb,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC,EACD;QACE,WAAW;KACZ,CACF,CAAC;IAEF,OAAO,CACL,KAAC,eAAe,IACd,WAAW,EAAE,YAAY,EACzB,QAAQ,EAAE,WAAW,YAEpB,OAAO,GACQ,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAE7C,eAAe,IAAI,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { NativeWebGatewayDest as GatewayDestination } from '../../Generics/NativeWebGateway';
3
+ import Tabs from './Tabs';
4
+ import { NativeBaseDrawers as SideDrawers } from '@dgui/react-native-shared';
5
+ import { useDrawerOpen } from '@dgui/react-shared';
6
+ import { useMemo } from 'react';
7
+ const Drawers = (props) => {
8
+ const drawerOpen = useDrawerOpen();
9
+ const appBar = useMemo(() => {
10
+ return (_jsxs(_Fragment, { children: [_jsx(GatewayDestination, { gatewayId: 'ReactNativeWebDigestDrawerBar' }), _jsx(Tabs, {})] }));
11
+ }, []);
12
+ return (_jsx(SideDrawers, { drawerContent: appBar, open: drawerOpen, ...props }));
13
+ };
14
+ Drawers.displayName = 'NativeWebDrawers';
15
+ export default Drawers;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/Drawers/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,oBAAoB,IAAI,kBAAkB,EAC3C,MAAM,iCAAiC,CAAC;AAIzC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EACL,iBAAiB,IAAI,WAAW,EACjC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,OAAO,EACR,MAAM,OAAO,CAAC;AAMf,MAAM,OAAO,GAAoC,CAC/C,KAAK,EACL,EAAE;IACF,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IAEnC,MAAM,MAAM,GAAG,OAAO,CACpB,GAAG,EAAE;QACH,OAAO,CACL,8BACE,KAAC,kBAAkB,IACjB,SAAS,EAAC,+BAA+B,GACzC,EACF,KAAC,IAAI,KAAG,IACP,CACJ,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,KAAC,WAAW,IACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU,KACZ,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAEzC,eAAe,OAAO,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { AppBar as SharedAppBar } from '@dgui/react-native-shared';
3
+ import { WebBaseGateway } from '@dgui/react-web-shared';
4
+ const NativeWebAppBar = ({ children }) => {
5
+ return (_jsx(WebBaseGateway, { gatewayId: 'ReactNativeWebDigestAppBar', children: children ?? _jsx(SharedAppBar, {}) }));
6
+ };
7
+ NativeWebAppBar.displayName = 'NativeWebAppBar';
8
+ export default NativeWebAppBar;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebAppBar/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,MAAM,IAAI,YAAY,EACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAKhC,MAAM,eAAe,GAAuD,CAAC,EAC3E,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,cAAc,IACb,SAAS,EAAC,4BAA4B,YAErC,QAAQ,IAAI,KAAC,YAAY,KAAG,GACd,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD,eAAe,eAAe,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useAddDrawer, useRemoveDrawer } from '@dgui/react-shared';
3
+ import { WebBaseGateway } from '@dgui/react-web-shared';
4
+ import { useEffect, useMemo } from 'react';
5
+ const NativeWebDrawer = ({ children, ...props }) => {
6
+ const { drawerId, gatewayId } = useMemo(() => {
7
+ return {
8
+ drawerId: props.drawerId,
9
+ gatewayId: props.tabId ?
10
+ `drawer-${props.drawerId}-${props.tabId}` :
11
+ `drawer-${props.drawerId}`
12
+ };
13
+ }, []);
14
+ const addDrawer = useAddDrawer();
15
+ const removeDrawer = useRemoveDrawer();
16
+ useEffect(() => {
17
+ addDrawer(props);
18
+ return () => {
19
+ removeDrawer(drawerId);
20
+ };
21
+ }, []);
22
+ return (_jsx(WebBaseGateway, { gatewayId: gatewayId, children: children }));
23
+ };
24
+ NativeWebDrawer.displayName = 'NativeWebDrawer';
25
+ export default NativeWebDrawer;
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebDrawer/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,YAAY,EACZ,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,SAAS,EACT,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,eAAe,GAAuD,CAAC,EAC3E,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IAGH,MAAM,EACJ,QAAQ,EACR,SAAS,EACV,GAAG,OAAO,CACT,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,YAAY,EAAE,CAAC;IACjC,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,SAAS,CACP,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,KAAC,cAAc,IACb,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACM,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD,eAAe,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { DrawerBar as SharedDrawerBar } from '@dgui/react-native-shared';
3
+ import { WebBaseGateway } from '@dgui/react-web-shared';
4
+ const NativeWebDrawerBar = ({ children }) => {
5
+ return (_jsx(WebBaseGateway, { gatewayId: 'ReactNativeWebDigestDrawerBar', children: children ?? _jsx(SharedDrawerBar, {}) }));
6
+ };
7
+ NativeWebDrawerBar.displayName = 'NativeWebDrawerBar';
8
+ export default NativeWebDrawerBar;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebDrawerBar/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,SAAS,IAAI,eAAe,EAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAKhC,MAAM,kBAAkB,GAA0D,CAAC,EACjF,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,cAAc,IACb,SAAS,EAAC,+BAA+B,YAExC,QAAQ,IAAI,KAAC,eAAe,KAAG,GACjB,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAC;AAEtD,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useAddTab, useRemoveTab } from '@dgui/react-shared';
3
+ import { WebBaseGateway } from '@dgui/react-web-shared';
4
+ import { useEffect, useMemo } from 'react';
5
+ const NativeWebTab = ({ children, ...props }) => {
6
+ const { gatewayId, tabId } = useMemo(() => {
7
+ return {
8
+ gatewayId: `tab-${props.tabId}`,
9
+ tabId: props.tabId
10
+ };
11
+ }, []);
12
+ const addTab = useAddTab();
13
+ const removeTab = useRemoveTab();
14
+ useEffect(() => {
15
+ addTab(props);
16
+ return () => {
17
+ removeTab(tabId);
18
+ };
19
+ }, []);
20
+ return (_jsx(WebBaseGateway, { gatewayId: gatewayId, children: children }));
21
+ };
22
+ NativeWebTab.displayName = 'NativeWebTab';
23
+ export default NativeWebTab;
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/NativeWebTab/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,SAAS,EACT,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,YAAY,GAAoD,CAAC,EACrE,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IAGH,MAAM,EACJ,SAAS,EACT,KAAK,EACN,GAAG,OAAO,CACT,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,SAAS,EAAE,CAAC;IAC3B,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,SAAS,CACP,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,KAAC,cAAc,IACb,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACM,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,eAAe,YAAY,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { NativeWebGatewayDest as GatewayDestination } from '../../Generics/NativeWebGateway';
3
+ import { useTabs } from '@dgui/react-shared';
4
+ import { WebBaseHorse } from '@dgui/react-web-shared';
5
+ import { memo, useMemo } from 'react';
6
+ const Scene = ({ tabId }) => {
7
+ const tabs = useTabs();
8
+ const { swipe } = tabs[tabId] ?? {};
9
+ const gatewayId = useMemo(() => {
10
+ return `tab-${tabId}`;
11
+ }, []);
12
+ return (_jsx(WebBaseHorse, { swipe: swipe, children: _jsx(GatewayDestination, { gatewayId: gatewayId }) }));
13
+ };
14
+ const SceneSwiperSlide = memo(Scene);
15
+ SceneSwiperSlide.displayName = 'SceneSwiperSlide';
16
+ export default SceneSwiperSlide;
17
+ //# sourceMappingURL=Scene.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../src/Components/Tabs/Scene.tsx"],"names":[],"mappings":";AAKA,OAAO,EACL,oBAAoB,IAAI,kBAAkB,EAC3C,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,OAAO,EACR,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,IAAI,EACJ,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,KAAK,GAAkC,CAAC,EAC5C,KAAK,EACN,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,EACJ,KAAK,EACN,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAEtB,MAAM,SAAS,GAAG,OAAO,CACvB,GAAG,EAAE;QACH,OAAO,OAAO,KAAK,EAAE,CAAC;IACxB,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,IACX,KAAK,EAAE,KAAK,YAEZ,KAAC,kBAAkB,IACjB,SAAS,EAAE,SAAS,GACpB,GACW,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,IAAI,CAC3B,KAAK,CACN,CAAC;AAMF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,eAAe,gBAAgB,CAAC"}