@dgui/react-web 1.7.6 → 1.8.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) 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/Tabs/Scene.js +17 -0
  12. package/dist/cjs/Components/Tabs/Scene.js.map +1 -0
  13. package/dist/cjs/Components/Tabs/index.js +21 -0
  14. package/dist/cjs/Components/Tabs/index.js.map +1 -0
  15. package/dist/cjs/Components/WebAppBar/AppBar/DrawerToggle/index.js +15 -0
  16. package/dist/cjs/Components/WebAppBar/AppBar/DrawerToggle/index.js.map +1 -0
  17. package/dist/cjs/Components/WebAppBar/AppBar/index.js +33 -0
  18. package/dist/cjs/Components/WebAppBar/AppBar/index.js.map +1 -0
  19. package/dist/cjs/Components/WebAppBar/index.js +9 -0
  20. package/dist/cjs/Components/WebAppBar/index.js.map +1 -0
  21. package/dist/cjs/Components/WebDrawer/index.js +26 -0
  22. package/dist/cjs/Components/WebDrawer/index.js.map +1 -0
  23. package/dist/cjs/Components/WebDrawerBar/DrawerBar/index.js +31 -0
  24. package/dist/cjs/Components/WebDrawerBar/DrawerBar/index.js.map +1 -0
  25. package/dist/cjs/Components/WebDrawerBar/index.js +9 -0
  26. package/dist/cjs/Components/WebDrawerBar/index.js.map +1 -0
  27. package/dist/cjs/Components/WebTab/index.js +24 -0
  28. package/dist/cjs/Components/WebTab/index.js.map +1 -0
  29. package/dist/cjs/Generics/WebButton/index.js +7 -0
  30. package/dist/cjs/Generics/WebButton/index.js.map +1 -0
  31. package/dist/cjs/Generics/WebContainer/index.js +7 -0
  32. package/dist/cjs/Generics/WebContainer/index.js.map +1 -0
  33. package/dist/cjs/Generics/WebDrawers/index.js +30 -0
  34. package/dist/cjs/Generics/WebDrawers/index.js.map +1 -0
  35. package/dist/cjs/Generics/WebGateway/WebGatewayDest.js +17 -0
  36. package/dist/cjs/Generics/WebGateway/WebGatewayDest.js.map +1 -0
  37. package/dist/cjs/Generics/WebGateway/index.js +2 -0
  38. package/dist/cjs/Generics/WebGateway/index.js.map +1 -0
  39. package/dist/cjs/Generics/WebTabBar/WebTabBar.js +13 -0
  40. package/dist/cjs/Generics/WebTabBar/WebTabBar.js.map +1 -0
  41. package/dist/cjs/Generics/WebTabBar/WebTabBarTab.js +15 -0
  42. package/dist/cjs/Generics/WebTabBar/WebTabBarTab.js.map +1 -0
  43. package/dist/cjs/Generics/WebTabBar/index.js +3 -0
  44. package/dist/cjs/Generics/WebTabBar/index.js.map +1 -0
  45. package/dist/cjs/Providers/index.js +9 -0
  46. package/dist/cjs/Providers/index.js.map +1 -0
  47. package/dist/cjs/ReactWebDigest.js +11 -0
  48. package/dist/cjs/ReactWebDigest.js.map +1 -0
  49. package/dist/cjs/Types.js +2 -0
  50. package/dist/cjs/Types.js.map +1 -0
  51. package/dist/cjs/index.js +8 -0
  52. package/dist/cjs/index.js.map +1 -0
  53. package/dist/esm/Components/Drawers/Tabs/Context/Scene.js +18 -0
  54. package/dist/esm/Components/Drawers/Tabs/Context/Scene.js.map +1 -0
  55. package/dist/esm/Components/Drawers/Tabs/Context/index.js +22 -0
  56. package/dist/esm/Components/Drawers/Tabs/Context/index.js.map +1 -0
  57. package/dist/esm/Components/Drawers/Tabs/Scene.js +21 -0
  58. package/dist/esm/Components/Drawers/Tabs/Scene.js.map +1 -0
  59. package/dist/esm/Components/Drawers/Tabs/index.js +21 -0
  60. package/dist/esm/Components/Drawers/Tabs/index.js.map +1 -0
  61. package/dist/esm/Components/Drawers/index.js +16 -0
  62. package/dist/esm/Components/Drawers/index.js.map +1 -0
  63. package/dist/esm/Components/Tabs/Scene.js +17 -0
  64. package/dist/esm/Components/Tabs/Scene.js.map +1 -0
  65. package/dist/esm/Components/Tabs/index.js +21 -0
  66. package/dist/esm/Components/Tabs/index.js.map +1 -0
  67. package/dist/esm/Components/WebAppBar/AppBar/DrawerToggle/index.js +15 -0
  68. package/dist/esm/Components/WebAppBar/AppBar/DrawerToggle/index.js.map +1 -0
  69. package/dist/esm/Components/WebAppBar/AppBar/index.js +33 -0
  70. package/dist/esm/Components/WebAppBar/AppBar/index.js.map +1 -0
  71. package/dist/esm/Components/WebAppBar/index.js +9 -0
  72. package/dist/esm/Components/WebAppBar/index.js.map +1 -0
  73. package/dist/esm/Components/WebDrawer/index.js +26 -0
  74. package/dist/esm/Components/WebDrawer/index.js.map +1 -0
  75. package/dist/esm/Components/WebDrawerBar/DrawerBar/index.js +31 -0
  76. package/dist/esm/Components/WebDrawerBar/DrawerBar/index.js.map +1 -0
  77. package/dist/esm/Components/WebDrawerBar/index.js +9 -0
  78. package/dist/esm/Components/WebDrawerBar/index.js.map +1 -0
  79. package/dist/esm/Components/WebTab/index.js +24 -0
  80. package/dist/esm/Components/WebTab/index.js.map +1 -0
  81. package/dist/esm/Generics/WebButton/index.js +7 -0
  82. package/dist/esm/Generics/WebButton/index.js.map +1 -0
  83. package/dist/esm/Generics/WebContainer/index.js +7 -0
  84. package/dist/esm/Generics/WebContainer/index.js.map +1 -0
  85. package/dist/esm/Generics/WebDrawers/index.js +30 -0
  86. package/dist/esm/Generics/WebDrawers/index.js.map +1 -0
  87. package/dist/esm/Generics/WebGateway/WebGatewayDest.js +17 -0
  88. package/dist/esm/Generics/WebGateway/WebGatewayDest.js.map +1 -0
  89. package/dist/esm/Generics/WebGateway/index.js +2 -0
  90. package/dist/esm/Generics/WebGateway/index.js.map +1 -0
  91. package/dist/esm/Generics/WebTabBar/WebTabBar.js +13 -0
  92. package/dist/esm/Generics/WebTabBar/WebTabBar.js.map +1 -0
  93. package/dist/esm/Generics/WebTabBar/WebTabBarTab.js +15 -0
  94. package/dist/esm/Generics/WebTabBar/WebTabBarTab.js.map +1 -0
  95. package/dist/esm/Generics/WebTabBar/index.js +3 -0
  96. package/dist/esm/Generics/WebTabBar/index.js.map +1 -0
  97. package/dist/esm/Providers/index.js +9 -0
  98. package/dist/esm/Providers/index.js.map +1 -0
  99. package/dist/esm/ReactWebDigest.js +11 -0
  100. package/dist/esm/ReactWebDigest.js.map +1 -0
  101. package/dist/esm/Types.js +2 -0
  102. package/dist/esm/Types.js.map +1 -0
  103. package/dist/esm/index.js +8 -0
  104. package/dist/esm/index.js.map +1 -0
  105. package/package.json +14 -11
  106. package/dist/Components/Drawers/Tabs/Context/Scene.js +0 -20
  107. package/dist/Components/Drawers/Tabs/Context/Scene.js.map +0 -1
  108. package/dist/Components/Drawers/Tabs/Context/index.js +0 -27
  109. package/dist/Components/Drawers/Tabs/Context/index.js.map +0 -1
  110. package/dist/Components/Drawers/Tabs/Scene.js +0 -26
  111. package/dist/Components/Drawers/Tabs/Scene.js.map +0 -1
  112. package/dist/Components/Drawers/Tabs/index.js +0 -26
  113. package/dist/Components/Drawers/Tabs/index.js.map +0 -1
  114. package/dist/Components/Drawers/index.js +0 -21
  115. package/dist/Components/Drawers/index.js.map +0 -1
  116. package/dist/Components/Tabs/Scene.js +0 -19
  117. package/dist/Components/Tabs/Scene.js.map +0 -1
  118. package/dist/Components/Tabs/index.js +0 -26
  119. package/dist/Components/Tabs/index.js.map +0 -1
  120. package/dist/Components/WebAppBar/AppBar/DrawerToggle/index.js +0 -20
  121. package/dist/Components/WebAppBar/AppBar/DrawerToggle/index.js.map +0 -1
  122. package/dist/Components/WebAppBar/AppBar/index.js +0 -38
  123. package/dist/Components/WebAppBar/AppBar/index.js.map +0 -1
  124. package/dist/Components/WebAppBar/index.js +0 -14
  125. package/dist/Components/WebAppBar/index.js.map +0 -1
  126. package/dist/Components/WebDrawer/index.js +0 -40
  127. package/dist/Components/WebDrawer/index.js.map +0 -1
  128. package/dist/Components/WebDrawerBar/DrawerBar/index.js +0 -33
  129. package/dist/Components/WebDrawerBar/DrawerBar/index.js.map +0 -1
  130. package/dist/Components/WebDrawerBar/index.js +0 -14
  131. package/dist/Components/WebDrawerBar/index.js.map +0 -1
  132. package/dist/Components/WebTab/index.js +0 -38
  133. package/dist/Components/WebTab/index.js.map +0 -1
  134. package/dist/Generics/WebButton/index.js +0 -9
  135. package/dist/Generics/WebButton/index.js.map +0 -1
  136. package/dist/Generics/WebContainer/index.js +0 -21
  137. package/dist/Generics/WebContainer/index.js.map +0 -1
  138. package/dist/Generics/WebDrawers/index.js +0 -32
  139. package/dist/Generics/WebDrawers/index.js.map +0 -1
  140. package/dist/Generics/WebGateway/WebGatewayDest.js +0 -19
  141. package/dist/Generics/WebGateway/WebGatewayDest.js.map +0 -1
  142. package/dist/Generics/WebGateway/index.js +0 -9
  143. package/dist/Generics/WebGateway/index.js.map +0 -1
  144. package/dist/Generics/WebTabBar/WebTabBar.js +0 -18
  145. package/dist/Generics/WebTabBar/WebTabBar.js.map +0 -1
  146. package/dist/Generics/WebTabBar/WebTabBarTab.js +0 -20
  147. package/dist/Generics/WebTabBar/WebTabBarTab.js.map +0 -1
  148. package/dist/Generics/WebTabBar/index.js +0 -11
  149. package/dist/Generics/WebTabBar/index.js.map +0 -1
  150. package/dist/Providers/index.js +0 -11
  151. package/dist/Providers/index.js.map +0 -1
  152. package/dist/ReactWebDigest.js +0 -16
  153. package/dist/ReactWebDigest.js.map +0 -1
  154. package/dist/Types.js +0 -3
  155. package/dist/Types.js.map +0 -1
  156. package/dist/index.js +0 -35
  157. package/dist/index.js.map +0 -1
  158. /package/dist/{Components → esm/Components}/Drawers/Tabs/Context/Scene.d.ts +0 -0
  159. /package/dist/{Components → esm/Components}/Drawers/Tabs/Context/index.d.ts +0 -0
  160. /package/dist/{Components → esm/Components}/Drawers/Tabs/Scene.d.ts +0 -0
  161. /package/dist/{Components → esm/Components}/Drawers/Tabs/index.d.ts +0 -0
  162. /package/dist/{Components → esm/Components}/Drawers/index.d.ts +0 -0
  163. /package/dist/{Components → esm/Components}/Tabs/Scene.d.ts +0 -0
  164. /package/dist/{Components → esm/Components}/Tabs/index.d.ts +0 -0
  165. /package/dist/{Components → esm/Components}/WebAppBar/AppBar/DrawerToggle/index.d.ts +0 -0
  166. /package/dist/{Components → esm/Components}/WebAppBar/AppBar/index.d.ts +0 -0
  167. /package/dist/{Components → esm/Components}/WebAppBar/index.d.ts +0 -0
  168. /package/dist/{Components → esm/Components}/WebDrawer/index.d.ts +0 -0
  169. /package/dist/{Components → esm/Components}/WebDrawerBar/DrawerBar/index.d.ts +0 -0
  170. /package/dist/{Components → esm/Components}/WebDrawerBar/index.d.ts +0 -0
  171. /package/dist/{Components → esm/Components}/WebTab/index.d.ts +0 -0
  172. /package/dist/{Generics → esm/Generics}/WebButton/index.d.ts +0 -0
  173. /package/dist/{Generics → esm/Generics}/WebContainer/index.d.ts +0 -0
  174. /package/dist/{Generics → esm/Generics}/WebDrawers/index.d.ts +0 -0
  175. /package/dist/{Generics → esm/Generics}/WebGateway/WebGatewayDest.d.ts +0 -0
  176. /package/dist/{Generics → esm/Generics}/WebGateway/index.d.ts +0 -0
  177. /package/dist/{Generics → esm/Generics}/WebTabBar/WebTabBar.d.ts +0 -0
  178. /package/dist/{Generics → esm/Generics}/WebTabBar/WebTabBarTab.d.ts +0 -0
  179. /package/dist/{Generics → esm/Generics}/WebTabBar/index.d.ts +0 -0
  180. /package/dist/{Providers → esm/Providers}/index.d.ts +0 -0
  181. /package/dist/{ReactWebDigest.d.ts → esm/ReactWebDigest.d.ts} +0 -0
  182. /package/dist/{Types.d.ts → esm/Types.d.ts} +0 -0
  183. /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 { WebGatewayDest } from '../../../../Generics/WebGateway';
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(WebGatewayDest, { gatewayId: gatewayId }) }));
13
+ };
14
+ Scene.displayName = 'WebDrawersTabsSceneContextScene';
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,cAAc,EACf,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,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,cAAc,IACb,SAAS,EAAE,SAAS,GACpB,GACW,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,iCAAiC,CAAC;AAEtD,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 = 'WebDrawersTabsSceneContext';
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,4BAA4B,CAAC;AAEnD,eAAe,IAAI,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { WebGatewayDest } from '../../../Generics/WebGateway';
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(WebGatewayDest, { gatewayId: gatewayId })) }));
16
+ };
17
+ Scene.displayName = 'WebDrawersTabsScene';
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,cAAc,EACf,MAAM,8BAA8B,CAAC;AACtC,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,cAAc,IACb,SAAS,EAAE,SAAS,GACpB,CACH,GAEQ,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAE1C,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 drawerIndex = useDrawerIndex();
8
+ const selectDrawer = useSelectDrawer();
9
+ const drawerOrder = useDrawerOrder();
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 = 'WebDrawersTabs';
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,YAAY,GAAG,eAAe,EAAE,CAAC;IACvC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,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,gBAAgB,CAAC;AAEvC,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 SideDrawers from '../../Generics/WebDrawers';
3
+ import { WebGatewayDest as GatewayDestination } from '../../Generics/WebGateway';
4
+ import Tabs from './Tabs';
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: 'ReactWebDigestDrawerBar' }), _jsx(Tabs, {})] }));
11
+ }, []);
12
+ return (_jsx(SideDrawers, { drawerContent: appBar, open: drawerOpen, ...props }));
13
+ };
14
+ Drawers.displayName = 'WebDrawers';
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,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,EACL,cAAc,IAAI,kBAAkB,EACrC,MAAM,2BAA2B,CAAC;AAInC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EACL,aAAa,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAIL,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,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,yBAAyB,GACnC,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,YAAY,CAAC;AAEnC,eAAe,OAAO,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { WebGatewayDest as GatewayDestination } from '../../Generics/WebGateway';
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,cAAc,IAAI,kBAAkB,EACrC,MAAM,2BAA2B,CAAC;AACnC,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,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import WebBaseButton from '../../../../Generics/WebButton';
3
+ import { useDrawerToggle } from '@dgui/react-shared';
4
+ import { memo, useCallback } from 'react';
5
+ const DrawerToggle = () => {
6
+ const toggleDrawer = useDrawerToggle();
7
+ const handlePress = useCallback(() => {
8
+ toggleDrawer();
9
+ }, [
10
+ toggleDrawer
11
+ ]);
12
+ return (_jsx(WebBaseButton, { onClick: handlePress, title: 'Drawer Toggle' }));
13
+ };
14
+ export default memo(DrawerToggle);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/Components/WebAppBar/AppBar/DrawerToggle/index.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EACL,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,IAAI,EACJ,WAAW,EACZ,MAAM,OAAO,CAAC;AAEf,MAAM,YAAY,GAAyC,GAAG,EAAE;IAC9D,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,MAAM,WAAW,GAAG,WAAW,CAC7B,GAAG,EAAE;QACH,YAAY,EAAE,CAAC;IACjB,CAAC,EACD;QACE,YAAY;KACb,CACF,CAAC;IAEF,OAAO,CACL,KAAC,aAAa,IACZ,OAAO,EAAE,WAAW,EACpB,KAAK,EAAC,eAAe,GACrB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CACjB,YAAY,CACb,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import WebBaseContainer from '../../../Generics/WebContainer';
3
+ import { WebTabBar, WebTabBarTab } from '../../../Generics/WebTabBar';
4
+ import DrawerToggle from './DrawerToggle';
5
+ import { useSelectTab, useTabOrder } from '@dgui/react-shared';
6
+ import { useCallback, useMemo } from 'react';
7
+ const styles = {
8
+ tabBar: {
9
+ backgroundColor: '#CCC',
10
+ display: 'flex',
11
+ flexDirection: 'row'
12
+ }
13
+ };
14
+ const AppBar = () => {
15
+ const selectTab = useSelectTab();
16
+ const handleSelectTab = useCallback((tabIndex) => {
17
+ selectTab(tabIndex);
18
+ }, [
19
+ selectTab
20
+ ]);
21
+ const tabOrder = useTabOrder();
22
+ const tabs = useMemo(() => {
23
+ return tabOrder.map((tabId, index) => {
24
+ return (_jsx(WebTabBarTab, { onSelectTab: handleSelectTab, tabId: tabId, tabIndex: index }, tabId));
25
+ });
26
+ }, [
27
+ handleSelectTab,
28
+ tabOrder
29
+ ]);
30
+ return (_jsxs(WebBaseContainer, { style: styles['tabBar'], children: [_jsx(DrawerToggle, {}), _jsx(WebTabBar, { children: tabs })] }));
31
+ };
32
+ export default AppBar;
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/WebAppBar/AppBar/index.tsx"],"names":[],"mappings":";AAAA,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,6BAA6B,CAAC;AACrC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EACL,YAAY,EACZ,WAAW,EACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,WAAW,EACX,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,GAER;IACF,MAAM,EAAE;QACN,eAAe,EAAE,MAAM;QACvB,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,KAAK;KACrB;CACF,CAAC;AAEF,MAAM,MAAM,GAAmC,GAAG,EAAE;IAClD,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,WAAW,CACjC,CACE,QAAgB,EAChB,EAAE;QACF,SAAS,CAAC,QAAQ,CAAC,CAAC;IACtB,CAAC,EACD;QACE,SAAS;KACV,CACF,CAAC;IAEF,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,IAAI,GAAG,OAAO,CAClB,GAAG,EAAE;QACH,OAAO,QAAQ,CAAC,GAAG,CACjB,CACE,KAAK,EACL,KAAK,EACL,EAAE;YACF,OAAO,CACL,KAAC,YAAY,IAEX,WAAW,EAAE,eAAe,EAC5B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,KAAK,IAHV,KAAK,CAIV,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC,EACD;QACE,eAAe;QACf,QAAQ;KACT,CACF,CAAC;IAEF,OAAO,CACL,MAAC,gBAAgB,IACf,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,aAEvB,KAAC,YAAY,KAAG,EAChB,KAAC,SAAS,cACP,IAAI,GACK,IACK,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import AppBar from './AppBar';
3
+ import { WebBaseGateway } from '@dgui/react-web-shared';
4
+ const WebAppBar = ({ children }) => {
5
+ return (_jsx(WebBaseGateway, { gatewayId: 'ReactWebDigestAppBar', children: children ?? _jsx(AppBar, {}) }));
6
+ };
7
+ WebAppBar.displayName = 'WebAppBar';
8
+ export default WebAppBar;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/WebAppBar/index.tsx"],"names":[],"mappings":";AAGA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EACL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAKhC,MAAM,SAAS,GAAiD,CAAC,EAC/D,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,cAAc,IACb,SAAS,EAAC,sBAAsB,YAE/B,QAAQ,IAAI,KAAC,MAAM,KAAG,GACR,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,eAAe,SAAS,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 WebDrawer = ({ 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
+ WebDrawer.displayName = 'WebDrawer';
25
+ export default WebDrawer;
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/WebDrawer/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,SAAS,GAAiD,CAAC,EAC/D,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,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,eAAe,SAAS,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { WebTabBar as TabBar, WebTabBarTab as TabBarTab } from '../../../Generics/WebTabBar';
3
+ import { useDrawerOrder, useSelectDrawer } from '@dgui/react-shared';
4
+ import { useCallback, useMemo } from 'react';
5
+ const styles = {
6
+ drawerBar: {
7
+ backgroundColor: '#CCC',
8
+ flexDirection: 'row'
9
+ }
10
+ };
11
+ const DrawerBar = () => {
12
+ const selectDrawer = useSelectDrawer();
13
+ const handleSelectDrawer = useCallback((drawerIndex) => {
14
+ selectDrawer(drawerIndex);
15
+ }, [
16
+ selectDrawer
17
+ ]);
18
+ const drawerOrder = useDrawerOrder();
19
+ const tabs = useMemo(() => {
20
+ return drawerOrder.map((tabId, index) => {
21
+ return (_jsx(TabBarTab, { onSelectTab: handleSelectDrawer, tabId: tabId, tabIndex: index }, tabId));
22
+ });
23
+ }, [
24
+ drawerOrder,
25
+ handleSelectDrawer
26
+ ]);
27
+ return (_jsx("div", { style: styles['drawerBar'], children: _jsx(TabBar, { children: tabs }) }));
28
+ };
29
+ DrawerBar.displayName = 'WebDrawerBar';
30
+ export default DrawerBar;
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/WebDrawerBar/DrawerBar/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,IAAI,MAAM,EACnB,YAAY,IAAI,SAAS,EAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,cAAc,EACd,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,WAAW,EACX,OAAO,EACR,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,GAER;IACF,SAAS,EAAE;QACT,eAAe,EAAE,MAAM;QACvB,aAAa,EAAE,KAAK;KACrB;CACF,CAAC;AAEF,MAAM,SAAS,GAAsC,GAAG,EAAE;IACxD,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,MAAM,kBAAkB,GAAG,WAAW,CACpC,CACE,WAAmB,EACnB,EAAE;QACF,YAAY,CAAC,WAAW,CAAC,CAAC;IAC5B,CAAC,EACD;QACE,YAAY;KACb,CACF,CAAC;IAEF,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,MAAM,IAAI,GAAG,OAAO,CAClB,GAAG,EAAE;QACH,OAAO,WAAW,CAAC,GAAG,CACpB,CACE,KAAK,EACL,KAAK,EACL,EAAE;YACF,OAAO,CACL,KAAC,SAAS,IAER,WAAW,EAAE,kBAAkB,EAC/B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,KAAK,IAHV,KAAK,CAIV,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC,EACD;QACE,WAAW;QACX,kBAAkB;KACnB,CACF,CAAC;IAEF,OAAO,CACL,cACE,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,YAE1B,KAAC,MAAM,cACJ,IAAI,GACE,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,cAAc,CAAC;AAEvC,eAAe,SAAS,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import DrawerBar from './DrawerBar';
3
+ import { WebBaseGateway } from '@dgui/react-web-shared';
4
+ const WebDrawerBar = ({ children }) => {
5
+ return (_jsx(WebBaseGateway, { gatewayId: 'ReactWebDigestDrawerBar', children: children ?? _jsx(DrawerBar, {}) }));
6
+ };
7
+ WebDrawerBar.displayName = 'WebDrawerBar';
8
+ export default WebDrawerBar;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/WebDrawerBar/index.tsx"],"names":[],"mappings":";AAGA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EACL,cAAc,EACf,MAAM,wBAAwB,CAAC;AAKhC,MAAM,YAAY,GAAoD,CAAC,EACrE,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,cAAc,IACb,SAAS,EAAC,yBAAyB,YAElC,QAAQ,IAAI,KAAC,SAAS,KAAG,GACX,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,eAAe,YAAY,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 WebTab = ({ 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
+ WebTab.displayName = 'WebTab';
23
+ export default WebTab;
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/WebTab/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,MAAM,GAA8C,CAAC,EACzD,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,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE9B,eAAe,MAAM,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ const WebButton = (props) => {
3
+ return (_jsx("button", { type: 'button', ...props, children: props.title }));
4
+ };
5
+ WebButton.displayName = 'WebButton';
6
+ export default WebButton;
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Generics/WebButton/index.tsx"],"names":[],"mappings":";AAKA,MAAM,SAAS,GAAsC,CACnD,KAAK,EACL,EAAE;IACF,OAAO,CACL,iBACE,IAAI,EAAC,QAAQ,KACT,KAAK,YAER,KAAK,CAAC,KAAK,GACL,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,eAAe,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ const WebContainer = ({ children, style, ...props }) => {
3
+ return (_jsx("div", { ...props, style: style, children: children }));
4
+ };
5
+ WebContainer.displayName = 'WebContainer';
6
+ export default WebContainer;
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Generics/WebContainer/index.tsx"],"names":[],"mappings":";AAKA,MAAM,YAAY,GAAyC,CAAC,EAC1D,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,iBACM,KAAK,EACT,KAAK,EAAE,KAAK,YAEX,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,eAAe,YAAY,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useMemo } from 'react';
3
+ import Drawer from 'react-modern-drawer';
4
+ const styles = {
5
+ drawer: {
6
+ display: 'flex',
7
+ flexDirection: 'column',
8
+ position: 'absolute'
9
+ },
10
+ drawerWrap: {
11
+ display: 'flex',
12
+ height: '100%',
13
+ overflow: 'hidden',
14
+ position: 'relative'
15
+ }
16
+ };
17
+ const WebDrawers = ({ animationTime = 150, children, drawerContent, drawerWidth = 400, opacity = 0.6, open = true, position = 'left', style: givenDrawerStyle }) => {
18
+ const style = useMemo(() => {
19
+ return {
20
+ ...styles['drawer'],
21
+ ...givenDrawerStyle
22
+ };
23
+ }, [
24
+ givenDrawerStyle
25
+ ]);
26
+ return (_jsxs("div", { style: styles['drawerWrap'], children: [children, _jsx(Drawer, { direction: position, duration: animationTime, enableOverlay: false, open: open, overlayOpacity: opacity, size: drawerWidth, style: style, children: drawerContent })] }));
27
+ };
28
+ WebDrawers.displayName = 'WebDrawers';
29
+ export default WebDrawers;
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Generics/WebDrawers/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAKL,OAAO,EACR,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,MAAM,GAER;IACF,MAAM,EAAE;QACN,OAAO,EAAE,MAAM;QACf,aAAa,EAAE,QAAQ;QACvB,QAAQ,EAAE,UAAU;KACrB;IACD,UAAU,EAAE;QACV,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,UAAU;KACrB;CACF,CAAC;AAEF,MAAM,UAAU,GAAuC,CAAC,EACtD,aAAa,GAAG,GAAG,EACnB,QAAQ,EACR,aAAa,EACb,WAAW,GAAG,GAAG,EACjB,OAAO,GAAG,GAAG,EACb,IAAI,GAAG,IAAI,EACX,QAAQ,GAAG,MAAM,EACjB,KAAK,EAAE,gBAAgB,EACxB,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE;QACH,OAAO;YACL,GAAG,MAAM,CAAC,QAAQ,CAAC;YACnB,GAAG,gBAAgB;SACpB,CAAC;IACJ,CAAC,EACD;QACE,gBAAgB;KACjB,CACF,CAAC;IAEF,OAAO,CACL,eACE,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,aAE1B,QAAQ,EACT,KAAC,MAAM,IACL,SAAS,EAAE,QAAQ,EACnB,QAAQ,EAAE,aAAa,EACvB,aAAa,EAAE,KAAK,EACpB,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,OAAO,EACvB,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,KAAK,YAEX,aAAa,GACP,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AAEtC,eAAe,UAAU,CAAC"}
@@ -0,0 +1,17 @@
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
+ const WebGatewayDest = ({ gatewayId }) => {
5
+ const ref = useRef(null);
6
+ const gatewayRegistry = useContext(WebBaseGatewayContext);
7
+ useEffect(() => {
8
+ gatewayRegistry?.addRef(gatewayId, ref);
9
+ return () => {
10
+ gatewayRegistry?.removeRef(gatewayId);
11
+ };
12
+ }, []);
13
+ return (_jsx("div", { ref: ref }));
14
+ };
15
+ WebGatewayDest.displayName = 'WebGatewayDest';
16
+ export default WebGatewayDest;
17
+ //# sourceMappingURL=WebGatewayDest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebGatewayDest.js","sourceRoot":"","sources":["../../../../src/Generics/WebGateway/WebGatewayDest.tsx"],"names":[],"mappings":";AAQA,OAAO,EACL,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,OAAO,CAAC;AAEf,MAAM,cAAc,GAA2C,CAAC,EAC9D,SAAS,EACV,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;IAEhD,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,cACE,GAAG,EAAE,GAAG,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAE9C,eAAe,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as WebGatewayDest } from './WebGatewayDest';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Generics/WebGateway/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,cAAc,EAE1B,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import WebContainer from '../WebContainer';
3
+ const styles = {
4
+ tabBar: {
5
+ flex: 1,
6
+ flexDirection: 'row'
7
+ }
8
+ };
9
+ const WebTabBar = ({ children }) => {
10
+ return (_jsx(WebContainer, { style: styles['tabBar'], children: children }));
11
+ };
12
+ export default WebTabBar;
13
+ //# sourceMappingURL=WebTabBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebTabBar.js","sourceRoot":"","sources":["../../../../src/Generics/WebTabBar/WebTabBar.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAO3C,MAAM,MAAM,GAER;IACF,MAAM,EAAE;QACN,IAAI,EAAE,CAAC;QACP,aAAa,EAAE,KAAK;KACrB;CACF,CAAC;AAEF,MAAM,SAAS,GAAsC,CAAC,EACpD,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,YAAY,IACX,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,YAEtB,QAAQ,GACI,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import WebButton from '../WebButton';
3
+ import { memo, useCallback } from 'react';
4
+ const WebTabBarTab = ({ onSelectTab, tabId, tabIndex, tabTitle }) => {
5
+ const handlePress = useCallback(() => {
6
+ onSelectTab(tabIndex, tabId);
7
+ }, [
8
+ onSelectTab,
9
+ tabId,
10
+ tabIndex
11
+ ]);
12
+ return (_jsx(WebButton, { onClick: handlePress, title: tabTitle ?? tabId }));
13
+ };
14
+ export default memo(WebTabBarTab);
15
+ //# sourceMappingURL=WebTabBarTab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebTabBarTab.js","sourceRoot":"","sources":["../../../../src/Generics/WebTabBar/WebTabBarTab.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAEL,IAAI,EACJ,WAAW,EACZ,MAAM,OAAO,CAAC;AAEf,MAAM,YAAY,GAAyC,CAAC,EAC1D,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,WAAW,CAC7B,GAAG,EAAE;QACH,WAAW,CACT,QAAQ,EACR,KAAK,CACN,CAAC;IACJ,CAAC,EACD;QACE,WAAW;QACX,KAAK;QACL,QAAQ;KACT,CACF,CAAC;IAEF,OAAO,CACL,KAAC,SAAS,IACR,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,QAAQ,IAAI,KAAK,GACxB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CACjB,YAAY,CACb,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as WebTabBar } from './WebTabBar';
2
+ export { default as WebTabBarTab } from './WebTabBarTab';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Generics/WebTabBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,SAAS,EAErB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,OAAO,IAAI,YAAY,EAExB,MAAM,gBAAgB,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 = 'WebProviders';
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,cAAc,CAAC;AAEvC,eAAe,SAAS,CAAC"}
@@ -0,0 +1,11 @@
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 { WebGatewayDest as GatewayDestination } from './Generics/WebGateway';
5
+ import Providers from './Providers';
6
+ const ReactWebDigest = ({ children, drawerAnimationTime, drawerIndex, drawerOpacity, drawerOpen, drawerPosition, drawerStyle, drawerWidth, onDrawerToggle, onSelectDrawer, onSelectTab, swipe, tabIndex }) => {
7
+ return (_jsxs(Providers, { drawerIndex: drawerIndex, drawerOpen: drawerOpen, onDrawerToggle: onDrawerToggle, onSelectDrawer: onSelectDrawer, onSelectTab: onSelectTab, tabIndex: tabIndex, children: [_jsx(GatewayDestination, { gatewayId: 'ReactWebDigestAppBar' }), _jsx(Drawers, { animationTime: drawerAnimationTime, opacity: drawerOpacity, position: drawerPosition, style: drawerStyle, width: drawerWidth, children: _jsx(Tabs, { swipe: swipe }) }), children] }));
8
+ };
9
+ ReactWebDigest.displayName = 'ReactWebDigest';
10
+ export default ReactWebDigest;
11
+ //# sourceMappingURL=ReactWebDigest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactWebDigest.js","sourceRoot":"","sources":["../../src/ReactWebDigest.tsx"],"names":[],"mappings":";AAAA,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,IAAI,MAAM,mBAAmB,CAAC;AACrC,OAAO,EACL,cAAc,IAAI,kBAAkB,EACrC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,SAAS,MAAM,aAAa,CAAC;AASpC,MAAM,cAAc,GAA2C,CAAC,EAC9D,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,sBAAsB,GAChC,EACF,KAAC,OAAO,IACN,aAAa,EAAE,mBAAmB,EAClC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,cAAc,EACxB,KAAK,EAAE,WAA4B,EACnC,KAAK,EAAE,WAAW,YAElB,KAAC,IAAI,IACH,KAAK,EAAE,KAAK,GACZ,GACM,EACT,QAAQ,IACC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAE9C,eAAe,cAAc,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 ReactWebDigestAppBar } from './Components/WebAppBar';
2
+ export { default as ReactWebDigestDrawer } from './Components/WebDrawer';
3
+ export { default as ReactWebDigestDrawerBar } from './Components/WebDrawerBar';
4
+ export { default as ReactWebDigestTab } from './Components/WebTab';
5
+ export { default as ReactWebDigest } from './ReactWebDigest';
6
+ export * from '@dgui/react-shared';
7
+ export { WebBaseCarousel as WebCarousel, WebBaseHorse as WebHorse } 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,oBAAoB,EAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,OAAO,IAAI,oBAAoB,EAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,OAAO,IAAI,uBAAuB,EACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,OAAO,IAAI,iBAAiB,EAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,OAAO,IAAI,cAAc,EAC1B,MAAM,kBAAkB,CAAC;AAE1B,cAAc,oBAAoB,CAAC;AACnC,OAAO,EACL,eAAe,IAAI,WAAW,EAE9B,YAAY,IAAI,QAAQ,EAEzB,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { WebGatewayDest } from '../../../../Generics/WebGateway';
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(WebGatewayDest, { gatewayId: gatewayId }) }));
13
+ };
14
+ Scene.displayName = 'WebDrawersTabsSceneContextScene';
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,cAAc,EACf,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,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,cAAc,IACb,SAAS,EAAE,SAAS,GACpB,GACW,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,iCAAiC,CAAC;AAEtD,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 = 'WebDrawersTabsSceneContext';
21
+ export default memo(Context);
22
+ //# sourceMappingURL=index.js.map