@dgui/react-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 (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
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const Scene_1 = __importDefault(require("./Scene"));
8
- const react_shared_1 = require("@dgui/react-shared");
9
- const react_web_shared_1 = require("@dgui/react-web-shared");
10
- const react_1 = require("react");
11
- const Context = ({ drawerId }) => {
12
- const selectTab = (0, react_shared_1.useSelectTab)();
13
- const tabIndex = (0, react_shared_1.useTabIndex)();
14
- const tabOrder = (0, react_shared_1.useTabOrder)();
15
- const tabs = (0, react_1.useMemo)(() => {
16
- return tabOrder.map((tab) => {
17
- return ((0, jsx_runtime_1.jsx)(Scene_1.default, { drawerId: drawerId, tabId: tab }, tab));
18
- });
19
- }, [
20
- drawerId,
21
- tabOrder
22
- ]);
23
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseCarousel, { onSelectTab: selectTab, swipe: false, tabIndex: tabIndex, children: tabs }));
24
- };
25
- Context.displayName = 'WebDrawersTabsSceneContext';
26
- exports.default = (0, react_1.memo)(Context);
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Drawers/Tabs/Context/index.tsx"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,qDAI4B;AAC5B,6DAEgC;AAChC,iCAIe;AAEf,MAAM,OAAO,GAAoC,CAAC,EAChD,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,IAAA,2BAAY,GAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,IAAA,0BAAW,GAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,0BAAW,GAAE,CAAC;IAE/B,MAAM,IAAI,GAAG,IAAA,eAAO,EAClB,GAAG,EAAE;QACH,OAAO,QAAQ,CAAC,GAAG,CACjB,CAAC,GAAG,EAAE,EAAE;YACN,OAAO,CACL,uBAAC,eAAK,IACJ,QAAQ,EAAE,QAAQ,EAElB,KAAK,EAAE,GAAG,IADL,GAAG,CAER,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC,EACD;QACE,QAAQ;QACR,QAAQ;KACT,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,kCAAe,IACd,WAAW,EAAE,SAAS,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,YAEjB,IAAI,GACW,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,4BAA4B,CAAC;AAEnD,kBAAe,IAAA,YAAI,EAAC,OAAO,CAAC,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const WebGateway_1 = require("../../../Generics/WebGateway");
8
- const Context_1 = __importDefault(require("./Context"));
9
- const react_shared_1 = require("@dgui/react-shared");
10
- const react_web_shared_1 = require("@dgui/react-web-shared");
11
- const react_1 = require("react");
12
- const Scene = ({ drawerId }) => {
13
- const drawers = (0, react_shared_1.useDrawers)();
14
- const { swipe, tabs } = drawers[drawerId];
15
- const gatewayId = (0, react_1.useMemo)(() => {
16
- return `drawer-${drawerId}`;
17
- }, []);
18
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseHorse, { swipe: swipe, children: tabs ?
19
- ((0, jsx_runtime_1.jsx)(Context_1.default, { drawerId: drawerId })) :
20
- ((0, jsx_runtime_1.jsx)(WebGateway_1.WebGatewayDest, { gatewayId: gatewayId })) }));
21
- };
22
- Scene.displayName = 'WebDrawersTabsScene';
23
- const SceneSwiperSlide = (0, react_1.memo)(Scene);
24
- SceneSwiperSlide.displayName = 'SceneSwiperSlide';
25
- exports.default = SceneSwiperSlide;
26
- //# sourceMappingURL=Scene.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../src/Components/Drawers/Tabs/Scene.tsx"],"names":[],"mappings":";;;;;;AAMA,6DAEsC;AACtC,wDAAgC;AAChC,qDAE4B;AAC5B,6DAEgC;AAChC,iCAIe;AAEf,MAAM,KAAK,GAAkC,CAAC,EAC5C,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,IAAA,yBAAU,GAAE,CAAC;IAE7B,MAAM,EACJ,KAAK,EACL,IAAI,EACL,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEtB,MAAM,SAAS,GAAG,IAAA,eAAO,EACvB,GAAG,EAAE;QACH,OAAO,UAAU,QAAQ,EAAE,CAAC;IAC9B,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uBAAC,+BAAY,IACX,KAAK,EAAE,KAAK,YAGV,IAAI,CAAC,CAAC;YAEJ,CACE,uBAAC,iBAAO,IACN,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC;YAEH,CACE,uBAAC,2BAAc,IACb,SAAS,EAAE,SAAS,GACpB,CACH,GAEQ,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,KAAK,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAE1C,MAAM,gBAAgB,GAAG,IAAA,YAAI,EAC3B,KAAK,CACN,CAAC;AAMF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,kBAAe,gBAAgB,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const Scene_1 = __importDefault(require("./Scene"));
8
- const react_shared_1 = require("@dgui/react-shared");
9
- const react_web_shared_1 = require("@dgui/react-web-shared");
10
- const react_1 = require("react");
11
- const Drawers = () => {
12
- const drawerIndex = (0, react_shared_1.useDrawerIndex)();
13
- const selectDrawer = (0, react_shared_1.useSelectDrawer)();
14
- const drawerOrder = (0, react_shared_1.useDrawerOrder)();
15
- const drawers = (0, react_1.useMemo)(() => {
16
- return drawerOrder.map((drawerId) => {
17
- return ((0, jsx_runtime_1.jsx)(Scene_1.default, { drawerId: drawerId }, drawerId));
18
- });
19
- }, [
20
- drawerOrder
21
- ]);
22
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseCarousel, { onSelectTab: selectDrawer, tabIndex: drawerIndex, children: drawers }));
23
- };
24
- Drawers.displayName = 'WebDrawersTabs';
25
- exports.default = (0, react_1.memo)(Drawers);
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/Drawers/Tabs/index.tsx"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,qDAI4B;AAC5B,6DAEgC;AAChC,iCAIe;AAEf,MAAM,OAAO,GAAmC,GAAG,EAAE;IACnD,MAAM,WAAW,GAAG,IAAA,6BAAc,GAAE,CAAC;IACrC,MAAM,YAAY,GAAG,IAAA,8BAAe,GAAE,CAAC;IACvC,MAAM,WAAW,GAAG,IAAA,6BAAc,GAAE,CAAC;IAErC,MAAM,OAAO,GAAG,IAAA,eAAO,EACrB,GAAG,EAAE;QACH,OAAO,WAAW,CAAC,GAAG,CACpB,CAAC,QAAQ,EAAE,EAAE;YACX,OAAO,CACL,uBAAC,eAAK,IACJ,QAAQ,EAAE,QAAQ,IACb,QAAQ,CACb,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC,EACD;QACE,WAAW;KACZ,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,kCAAe,IACd,WAAW,EAAE,YAAY,EACzB,QAAQ,EAAE,WAAW,YAEpB,OAAO,GACQ,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAEvC,kBAAe,IAAA,YAAI,EAAC,OAAO,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const WebDrawers_1 = __importDefault(require("../../Generics/WebDrawers"));
8
- const WebGateway_1 = require("../../Generics/WebGateway");
9
- const Tabs_1 = __importDefault(require("./Tabs"));
10
- const react_shared_1 = require("@dgui/react-shared");
11
- const react_1 = require("react");
12
- const Drawers = (props) => {
13
- const drawerOpen = (0, react_shared_1.useDrawerOpen)();
14
- const appBar = (0, react_1.useMemo)(() => {
15
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(WebGateway_1.WebGatewayDest, { gatewayId: 'ReactWebDigestDrawerBar' }), (0, jsx_runtime_1.jsx)(Tabs_1.default, {})] }));
16
- }, []);
17
- return ((0, jsx_runtime_1.jsx)(WebDrawers_1.default, Object.assign({ drawerContent: appBar, open: drawerOpen }, props)));
18
- };
19
- Drawers.displayName = 'WebDrawers';
20
- exports.default = Drawers;
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Components/Drawers/index.tsx"],"names":[],"mappings":";;;;;;AAAA,2EAAoD;AACpD,0DAEmC;AAInC,kDAA0B;AAC1B,qDAE4B;AAC5B,iCAKe;AAEf,MAAM,OAAO,GAAoC,CAC/C,KAAK,EACL,EAAE;IACF,MAAM,UAAU,GAAG,IAAA,4BAAa,GAAE,CAAC;IAEnC,MAAM,MAAM,GAAG,IAAA,eAAO,EACpB,GAAG,EAAE;QACH,OAAO,CACL,6DACE,uBAAC,2BAAkB,IACjB,SAAS,EAAC,yBAAyB,GACnC,EACF,uBAAC,cAAI,KAAG,IACP,CACJ,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uBAAC,oBAAW,kBACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU,IACZ,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,YAAY,CAAC;AAEnC,kBAAe,OAAO,CAAC"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const WebGateway_1 = require("../../Generics/WebGateway");
5
- const react_shared_1 = require("@dgui/react-shared");
6
- const react_web_shared_1 = require("@dgui/react-web-shared");
7
- const react_1 = require("react");
8
- const Scene = ({ tabId }) => {
9
- const tabs = (0, react_shared_1.useTabs)();
10
- const { swipe } = tabs[tabId];
11
- const gatewayId = (0, react_1.useMemo)(() => {
12
- return `tab-${tabId}`;
13
- }, []);
14
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseHorse, { swipe: swipe, children: (0, jsx_runtime_1.jsx)(WebGateway_1.WebGatewayDest, { gatewayId: gatewayId }) }));
15
- };
16
- const SceneSwiperSlide = (0, react_1.memo)(Scene);
17
- SceneSwiperSlide.displayName = 'SceneSwiperSlide';
18
- exports.default = SceneSwiperSlide;
19
- //# sourceMappingURL=Scene.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../src/Components/Tabs/Scene.tsx"],"names":[],"mappings":";;;AAKA,0DAEmC;AACnC,qDAE4B;AAC5B,6DAEgC;AAChC,iCAIe;AAEf,MAAM,KAAK,GAAkC,CAAC,EAC5C,KAAK,EACN,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,IAAA,sBAAO,GAAE,CAAC;IAEvB,MAAM,EACJ,KAAK,EACN,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAEhB,MAAM,SAAS,GAAG,IAAA,eAAO,EACvB,GAAG,EAAE;QACH,OAAO,OAAO,KAAK,EAAE,CAAC;IACxB,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uBAAC,+BAAY,IACX,KAAK,EAAE,KAAK,YAEZ,uBAAC,2BAAkB,IACjB,SAAS,EAAE,SAAS,GACpB,GACW,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,IAAA,YAAI,EAC3B,KAAK,CACN,CAAC;AAMF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,kBAAe,gBAAgB,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const Scene_1 = __importDefault(require("./Scene"));
8
- const react_shared_1 = require("@dgui/react-shared");
9
- const react_web_shared_1 = require("@dgui/react-web-shared");
10
- const react_1 = require("react");
11
- const Tabs = ({ swipe }) => {
12
- const selectTab = (0, react_shared_1.useSelectTab)();
13
- const tabIndex = (0, react_shared_1.useTabIndex)();
14
- const tabOrder = (0, react_shared_1.useTabOrder)();
15
- const tabs = (0, react_1.useMemo)(() => {
16
- const orderedTabs = tabOrder.map((tab) => {
17
- return ((0, jsx_runtime_1.jsx)(Scene_1.default, { tabId: tab }, tab));
18
- });
19
- return orderedTabs;
20
- }, [
21
- tabOrder
22
- ]);
23
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseCarousel, { onSelectTab: selectTab, swipe: swipe, tabIndex: tabIndex, children: tabs }));
24
- };
25
- exports.default = (0, react_1.memo)(Tabs);
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Components/Tabs/index.tsx"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,qDAI4B;AAC5B,6DAEgC;AAChC,iCAIe;AAEf,MAAM,IAAI,GAAgC,CAAC,EACzC,KAAK,EACN,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,IAAA,2BAAY,GAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,IAAA,0BAAW,GAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,0BAAW,GAAE,CAAC;IAE/B,MAAM,IAAI,GAAG,IAAA,eAAO,EAClB,GAAG,EAAE;QACH,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAC9B,CAAC,GAAG,EAAE,EAAE;YACN,OAAO,CACL,uBAAC,eAAK,IAEJ,KAAK,EAAE,GAAG,IADL,GAAG,CAER,CACH,CAAC;QACJ,CAAC,CACF,CAAC;QAEF,OAAO,WAAW,CAAC;IACrB,CAAC,EACD;QACE,QAAQ;KACT,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,kCAAe,IACd,WAAW,EAAE,SAAS,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,YAEjB,IAAI,GACW,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,IAAA,YAAI,EAAC,IAAI,CAAC,CAAC"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const WebButton_1 = __importDefault(require("../../../../Generics/WebButton"));
8
- const react_shared_1 = require("@dgui/react-shared");
9
- const react_1 = require("react");
10
- const DrawerToggle = () => {
11
- const toggleDrawer = (0, react_shared_1.useDrawerToggle)();
12
- const handlePress = (0, react_1.useCallback)(() => {
13
- toggleDrawer();
14
- }, [
15
- toggleDrawer
16
- ]);
17
- return ((0, jsx_runtime_1.jsx)(WebButton_1.default, { onClick: handlePress, title: 'Drawer Toggle' }));
18
- };
19
- exports.default = (0, react_1.memo)(DrawerToggle);
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/WebAppBar/AppBar/DrawerToggle/index.tsx"],"names":[],"mappings":";;;;;;AAAA,+EAA2D;AAC3D,qDAE4B;AAC5B,iCAIe;AAEf,MAAM,YAAY,GAAyC,GAAG,EAAE;IAC9D,MAAM,YAAY,GAAG,IAAA,8BAAe,GAAE,CAAC;IAEvC,MAAM,WAAW,GAAG,IAAA,mBAAW,EAC7B,GAAG,EAAE;QACH,YAAY,EAAE,CAAC;IACjB,CAAC,EACD;QACE,YAAY;KACb,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,mBAAa,IACZ,OAAO,EAAE,WAAW,EACpB,KAAK,EAAC,eAAe,GACrB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,IAAA,YAAI,EACjB,YAAY,CACb,CAAC"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const WebContainer_1 = __importDefault(require("../../../Generics/WebContainer"));
8
- const WebTabBar_1 = require("../../../Generics/WebTabBar");
9
- const DrawerToggle_1 = __importDefault(require("./DrawerToggle"));
10
- const react_shared_1 = require("@dgui/react-shared");
11
- const react_1 = require("react");
12
- const styles = {
13
- tabBar: {
14
- backgroundColor: '#CCC',
15
- display: 'flex',
16
- flexDirection: 'row'
17
- }
18
- };
19
- const AppBar = () => {
20
- const selectTab = (0, react_shared_1.useSelectTab)();
21
- const handleSelectTab = (0, react_1.useCallback)((tabIndex) => {
22
- selectTab(tabIndex);
23
- }, [
24
- selectTab
25
- ]);
26
- const tabOrder = (0, react_shared_1.useTabOrder)();
27
- const tabs = (0, react_1.useMemo)(() => {
28
- return tabOrder.map((tabId, index) => {
29
- return ((0, jsx_runtime_1.jsx)(WebTabBar_1.WebTabBarTab, { onSelectTab: handleSelectTab, tabId: tabId, tabIndex: index }, tabId));
30
- });
31
- }, [
32
- handleSelectTab,
33
- tabOrder
34
- ]);
35
- return ((0, jsx_runtime_1.jsxs)(WebContainer_1.default, { style: styles.tabBar, children: [(0, jsx_runtime_1.jsx)(DrawerToggle_1.default, {}), (0, jsx_runtime_1.jsx)(WebTabBar_1.WebTabBar, { children: tabs })] }));
36
- };
37
- exports.default = AppBar;
38
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/WebAppBar/AppBar/index.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAA8D;AAC9D,2DAGqC;AACrC,kEAA0C;AAC1C,qDAG4B;AAC5B,iCAKe;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,IAAA,2BAAY,GAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,IAAA,mBAAW,EACjC,CACE,QAAgB,EAChB,EAAE;QACF,SAAS,CAAC,QAAQ,CAAC,CAAC;IACtB,CAAC,EACD;QACE,SAAS;KACV,CACF,CAAC;IAEF,MAAM,QAAQ,GAAG,IAAA,0BAAW,GAAE,CAAC;IAE/B,MAAM,IAAI,GAAG,IAAA,eAAO,EAClB,GAAG,EAAE;QACH,OAAO,QAAQ,CAAC,GAAG,CACjB,CACE,KAAK,EACL,KAAK,EACL,EAAE;YACF,OAAO,CACL,uBAAC,wBAAY,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,wBAAC,sBAAgB,IACf,KAAK,EAAE,MAAM,CAAC,MAAM,aAEpB,uBAAC,sBAAY,KAAG,EAChB,uBAAC,qBAAS,cACP,IAAI,GACK,IACK,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,MAAM,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const AppBar_1 = __importDefault(require("./AppBar"));
8
- const react_web_shared_1 = require("@dgui/react-web-shared");
9
- const WebAppBar = ({ children }) => {
10
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, { gatewayId: 'ReactWebDigestAppBar', children: children !== null && children !== void 0 ? children : (0, jsx_runtime_1.jsx)(AppBar_1.default, {}) }));
11
- };
12
- WebAppBar.displayName = 'WebAppBar';
13
- exports.default = WebAppBar;
14
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Components/WebAppBar/index.tsx"],"names":[],"mappings":";;;;;;AAGA,sDAA8B;AAC9B,6DAEgC;AAKhC,MAAM,SAAS,GAAiD,CAAC,EAC/D,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,iCAAc,IACb,SAAS,EAAC,sBAAsB,YAE/B,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,uBAAC,gBAAM,KAAG,GACR,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,kBAAe,SAAS,CAAC"}
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- const jsx_runtime_1 = require("react/jsx-runtime");
15
- const react_shared_1 = require("@dgui/react-shared");
16
- const react_web_shared_1 = require("@dgui/react-web-shared");
17
- const react_1 = require("react");
18
- const WebDrawer = (_a) => {
19
- var { children } = _a, props = __rest(_a, ["children"]);
20
- const { drawerId, gatewayId } = (0, react_1.useMemo)(() => {
21
- return {
22
- drawerId: props.drawerId,
23
- gatewayId: props.tabId ?
24
- `drawer-${props.drawerId}-${props.tabId}` :
25
- `drawer-${props.drawerId}`
26
- };
27
- }, []);
28
- const addDrawer = (0, react_shared_1.useAddDrawer)();
29
- const removeDrawer = (0, react_shared_1.useRemoveDrawer)();
30
- (0, react_1.useEffect)(() => {
31
- addDrawer(props);
32
- return () => {
33
- removeDrawer(drawerId);
34
- };
35
- }, []);
36
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, { gatewayId: gatewayId, children: children }));
37
- };
38
- WebDrawer.displayName = 'WebDrawer';
39
- exports.default = WebDrawer;
40
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Components/WebDrawer/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAGA,qDAG4B;AAC5B,6DAEgC;AAChC,iCAIe;AAEf,MAAM,SAAS,GAAiD,CAAC,EAGhE,EAAE,EAAE;QAH4D,EAC/D,QAAQ,OAET,EADI,KAAK,cAFuD,YAGhE,CADS;IAIR,MAAM,EACJ,QAAQ,EACR,SAAS,EACV,GAAG,IAAA,eAAO,EACT,GAAG,EAAE;QACH,OAAO;YACL,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBACtB,UAAU,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;gBAC3C,UAAU,KAAK,CAAC,QAAQ,EAAE;SAC7B,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,MAAM,SAAS,GAAG,IAAA,2BAAY,GAAE,CAAC;IACjC,MAAM,YAAY,GAAG,IAAA,8BAAe,GAAE,CAAC;IAEvC,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,SAAS,CAAC,KAAK,CAAC,CAAC;QAEjB,OAAO,GAAG,EAAE;YACV,YAAY,CACV,QAAQ,CACT,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uBAAC,iCAAc,IACb,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACM,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,kBAAe,SAAS,CAAC"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const WebTabBar_1 = require("../../../Generics/WebTabBar");
5
- const react_shared_1 = require("@dgui/react-shared");
6
- const react_1 = require("react");
7
- const styles = {
8
- drawerBar: {
9
- backgroundColor: '#CCC',
10
- flexDirection: 'row'
11
- }
12
- };
13
- const DrawerBar = () => {
14
- const selectDrawer = (0, react_shared_1.useSelectDrawer)();
15
- const handleSelectDrawer = (0, react_1.useCallback)((drawerIndex) => {
16
- selectDrawer(drawerIndex);
17
- }, [
18
- selectDrawer
19
- ]);
20
- const drawerOrder = (0, react_shared_1.useDrawerOrder)();
21
- const tabs = (0, react_1.useMemo)(() => {
22
- return drawerOrder.map((tabId, index) => {
23
- return ((0, jsx_runtime_1.jsx)(WebTabBar_1.WebTabBarTab, { onSelectTab: handleSelectDrawer, tabId: tabId, tabIndex: index }, tabId));
24
- });
25
- }, [
26
- drawerOrder,
27
- handleSelectDrawer
28
- ]);
29
- return ((0, jsx_runtime_1.jsx)("div", { style: styles.drawerBar, children: (0, jsx_runtime_1.jsx)(WebTabBar_1.WebTabBar, { children: tabs }) }));
30
- };
31
- DrawerBar.displayName = 'WebDrawerBar';
32
- exports.default = DrawerBar;
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/WebDrawerBar/DrawerBar/index.tsx"],"names":[],"mappings":";;;AAAA,2DAGqC;AACrC,qDAG4B;AAC5B,iCAKe;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,IAAA,8BAAe,GAAE,CAAC;IAEvC,MAAM,kBAAkB,GAAG,IAAA,mBAAW,EACpC,CACE,WAAmB,EACnB,EAAE;QACF,YAAY,CAAC,WAAW,CAAC,CAAC;IAC5B,CAAC,EACD;QACE,YAAY;KACb,CACF,CAAC;IAEF,MAAM,WAAW,GAAG,IAAA,6BAAc,GAAE,CAAC;IAErC,MAAM,IAAI,GAAG,IAAA,eAAO,EAClB,GAAG,EAAE;QACH,OAAO,WAAW,CAAC,GAAG,CACpB,CACE,KAAK,EACL,KAAK,EACL,EAAE;YACF,OAAO,CACL,uBAAC,wBAAS,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,gCACE,KAAK,EAAE,MAAM,CAAC,SAAS,YAEvB,uBAAC,qBAAM,cACJ,IAAI,GACE,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,cAAc,CAAC;AAEvC,kBAAe,SAAS,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const DrawerBar_1 = __importDefault(require("./DrawerBar"));
8
- const react_web_shared_1 = require("@dgui/react-web-shared");
9
- const WebDrawerBar = ({ children }) => {
10
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, { gatewayId: 'ReactWebDigestDrawerBar', children: children !== null && children !== void 0 ? children : (0, jsx_runtime_1.jsx)(DrawerBar_1.default, {}) }));
11
- };
12
- WebDrawerBar.displayName = 'WebDrawerBar';
13
- exports.default = WebDrawerBar;
14
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Components/WebDrawerBar/index.tsx"],"names":[],"mappings":";;;;;;AAGA,4DAAoC;AACpC,6DAEgC;AAKhC,MAAM,YAAY,GAAoD,CAAC,EACrE,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,iCAAc,IACb,SAAS,EAAC,yBAAyB,YAElC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,uBAAC,mBAAS,KAAG,GACX,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,kBAAe,YAAY,CAAC"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- const jsx_runtime_1 = require("react/jsx-runtime");
15
- const react_shared_1 = require("@dgui/react-shared");
16
- const react_web_shared_1 = require("@dgui/react-web-shared");
17
- const react_1 = require("react");
18
- const WebTab = (_a) => {
19
- var { children } = _a, props = __rest(_a, ["children"]);
20
- const { gatewayId, tabId } = (0, react_1.useMemo)(() => {
21
- return {
22
- gatewayId: `tab-${props.tabId}`,
23
- tabId: props.tabId
24
- };
25
- }, []);
26
- const addTab = (0, react_shared_1.useAddTab)();
27
- const removeTab = (0, react_shared_1.useRemoveTab)();
28
- (0, react_1.useEffect)(() => {
29
- addTab(props);
30
- return () => {
31
- removeTab(tabId);
32
- };
33
- }, []);
34
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, { gatewayId: gatewayId, children: children }));
35
- };
36
- WebTab.displayName = 'WebTab';
37
- exports.default = WebTab;
38
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Components/WebTab/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAGA,qDAG4B;AAC5B,6DAEgC;AAChC,iCAIe;AAEf,MAAM,MAAM,GAA8C,CAAC,EAG1D,EAAE,EAAE;QAHsD,EACzD,QAAQ,OAET,EADI,KAAK,cAFiD,YAG1D,CADS;IAIR,MAAM,EACJ,SAAS,EACT,KAAK,EACN,GAAG,IAAA,eAAO,EACT,GAAG,EAAE;QACH,OAAO;YACL,SAAS,EAAE,OAAO,KAAK,CAAC,KAAK,EAAE;YAC/B,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,wBAAS,GAAE,CAAC;IAC3B,MAAM,SAAS,GAAG,IAAA,2BAAY,GAAE,CAAC;IAEjC,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,MAAM,CAAC,KAAK,CAAC,CAAC;QAEd,OAAO,GAAG,EAAE;YACV,SAAS,CACP,KAAK,CACN,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uBAAC,iCAAc,IACb,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACM,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE9B,kBAAe,MAAM,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const WebButton = (props) => {
5
- return ((0, jsx_runtime_1.jsx)("button", Object.assign({ type: 'button' }, props, { children: props.title })));
6
- };
7
- WebButton.displayName = 'WebButton';
8
- exports.default = WebButton;
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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,iDACE,IAAI,EAAC,QAAQ,IACT,KAAK,cAER,KAAK,CAAC,KAAK,IACL,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,kBAAe,SAAS,CAAC"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- const jsx_runtime_1 = require("react/jsx-runtime");
15
- const WebContainer = (_a) => {
16
- var { children, style } = _a, props = __rest(_a, ["children", "style"]);
17
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({}, props, { style: style, children: children })));
18
- };
19
- WebContainer.displayName = 'WebContainer';
20
- exports.default = WebContainer;
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Generics/WebContainer/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAKA,MAAM,YAAY,GAAyC,CAAC,EAI3D,EAAE,EAAE;QAJuD,EAC1D,QAAQ,EACR,KAAK,OAEN,EADI,KAAK,cAHkD,qBAI3D,CADS;IAER,OAAO,CACL,gDACM,KAAK,IACT,KAAK,EAAE,KAAK,YAEX,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,kBAAe,YAAY,CAAC"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const react_1 = require("react");
8
- const react_modern_drawer_1 = __importDefault(require("react-modern-drawer"));
9
- const styles = {
10
- drawer: {
11
- display: 'flex',
12
- flexDirection: 'column',
13
- position: 'absolute'
14
- },
15
- drawerWrap: {
16
- display: 'flex',
17
- height: '100%',
18
- overflow: 'hidden',
19
- position: 'relative'
20
- }
21
- };
22
- const WebDrawers = ({ animationTime = 150, children, drawerContent, drawerWidth = 400, opacity = 0.6, open = true, position = 'left', style: givenDrawerStyle }) => {
23
- const style = (0, react_1.useMemo)(() => {
24
- return Object.assign(Object.assign({}, styles.drawer), givenDrawerStyle);
25
- }, [
26
- givenDrawerStyle
27
- ]);
28
- return ((0, jsx_runtime_1.jsxs)("div", { style: styles.drawerWrap, children: [children, (0, jsx_runtime_1.jsx)(react_modern_drawer_1.default, { direction: position, duration: animationTime, enableOverlay: false, open: open, overlayOpacity: opacity, size: drawerWidth, style: style, children: drawerContent })] }));
29
- };
30
- WebDrawers.displayName = 'WebDrawers';
31
- exports.default = WebDrawers;
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Generics/WebDrawers/index.tsx"],"names":[],"mappings":";;;;;;AAAA,iCAMe;AACf,8EAAyC;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,IAAA,eAAO,EACnB,GAAG,EAAE;QACH,uCACK,MAAM,CAAC,MAAM,GACb,gBAAgB,EACnB;IACJ,CAAC,EACD;QACE,gBAAgB;KACjB,CACF,CAAC;IAEF,OAAO,CACL,iCACE,KAAK,EAAE,MAAM,CAAC,UAAU,aAEvB,QAAQ,EACT,uBAAC,6BAAM,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,kBAAe,UAAU,CAAC"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_web_shared_1 = require("@dgui/react-web-shared");
5
- const react_1 = require("react");
6
- const WebGatewayDest = ({ gatewayId }) => {
7
- const ref = (0, react_1.useRef)(null);
8
- const gatewayRegistry = (0, react_1.useContext)(react_web_shared_1.WebBaseGatewayContext);
9
- (0, react_1.useEffect)(() => {
10
- gatewayRegistry === null || gatewayRegistry === void 0 ? void 0 : gatewayRegistry.addRef(gatewayId, ref);
11
- return () => {
12
- gatewayRegistry === null || gatewayRegistry === void 0 ? void 0 : gatewayRegistry.removeRef(gatewayId);
13
- };
14
- }, []);
15
- return ((0, jsx_runtime_1.jsx)("div", { ref: ref }));
16
- };
17
- WebGatewayDest.displayName = 'WebGatewayDest';
18
- exports.default = WebGatewayDest;
19
- //# sourceMappingURL=WebGatewayDest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebGatewayDest.js","sourceRoot":"","sources":["../../../src/Generics/WebGateway/WebGatewayDest.tsx"],"names":[],"mappings":";;;AAQA,6DAEgC;AAChC,iCAKe;AAEf,MAAM,cAAc,GAA2C,CAAC,EAC9D,SAAS,EACV,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,IAAA,cAAM,EAAwB,IAAI,CAAC,CAAC;IAEhD,MAAM,eAAe,GAAG,IAAA,kBAAU,EAAC,wCAAqB,CAAC,CAAC;IAE1D,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,MAAM,CACrB,SAAS,EACT,GAAG,CACJ,CAAC;QAEF,OAAO,GAAG,EAAE;YACV,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACxC,CAAC,CAAC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,gCACE,GAAG,EAAE,GAAG,GACR,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAE9C,kBAAe,cAAc,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WebGatewayDest = void 0;
7
- var WebGatewayDest_1 = require("./WebGatewayDest");
8
- Object.defineProperty(exports, "WebGatewayDest", { enumerable: true, get: function () { return __importDefault(WebGatewayDest_1).default; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Generics/WebGateway/index.ts"],"names":[],"mappings":";;;;;;AAAA,mDAG0B;AAFxB,iIAAA,OAAO,OAAkB"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const WebContainer_1 = __importDefault(require("../WebContainer"));
8
- const styles = {
9
- tabBar: {
10
- flex: 1,
11
- flexDirection: 'row'
12
- }
13
- };
14
- const WebTabBar = ({ children }) => {
15
- return ((0, jsx_runtime_1.jsx)(WebContainer_1.default, { style: styles.tabBar, children: children }));
16
- };
17
- exports.default = WebTabBar;
18
- //# sourceMappingURL=WebTabBar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebTabBar.js","sourceRoot":"","sources":["../../../src/Generics/WebTabBar/WebTabBar.tsx"],"names":[],"mappings":";;;;;;AAAA,mEAA2C;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,uBAAC,sBAAY,IACX,KAAK,EAAE,MAAM,CAAC,MAAM,YAEnB,QAAQ,GACI,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const WebButton_1 = __importDefault(require("../WebButton"));
8
- const react_1 = require("react");
9
- const WebTabBarTab = ({ onSelectTab, tabId, tabIndex, tabTitle }) => {
10
- const handlePress = (0, react_1.useCallback)(() => {
11
- onSelectTab(tabIndex, tabId);
12
- }, [
13
- onSelectTab,
14
- tabId,
15
- tabIndex
16
- ]);
17
- return ((0, jsx_runtime_1.jsx)(WebButton_1.default, { onClick: handlePress, title: tabTitle !== null && tabTitle !== void 0 ? tabTitle : tabId }));
18
- };
19
- exports.default = (0, react_1.memo)(WebTabBarTab);
20
- //# sourceMappingURL=WebTabBarTab.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebTabBarTab.js","sourceRoot":"","sources":["../../../src/Generics/WebTabBar/WebTabBarTab.tsx"],"names":[],"mappings":";;;;;;AAAA,6DAAqC;AACrC,iCAIe;AAEf,MAAM,YAAY,GAAyC,CAAC,EAC1D,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,IAAA,mBAAW,EAC7B,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,uBAAC,mBAAS,IACR,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,KAAK,GACxB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,IAAA,YAAI,EACjB,YAAY,CACb,CAAC"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WebTabBarTab = exports.WebTabBar = void 0;
7
- var WebTabBar_1 = require("./WebTabBar");
8
- Object.defineProperty(exports, "WebTabBar", { enumerable: true, get: function () { return __importDefault(WebTabBar_1).default; } });
9
- var WebTabBarTab_1 = require("./WebTabBarTab");
10
- Object.defineProperty(exports, "WebTabBarTab", { enumerable: true, get: function () { return __importDefault(WebTabBarTab_1).default; } });
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Generics/WebTabBar/index.ts"],"names":[],"mappings":";;;;;;AAAA,yCAGqB;AAFnB,uHAAA,OAAO,OAAa;AAGtB,+CAGwB;AAFtB,6HAAA,OAAO,OAAgB"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_shared_1 = require("@dgui/react-shared");
5
- const react_web_shared_1 = require("@dgui/react-web-shared");
6
- const Providers = ({ children, drawerIndex, drawerOpen, onDrawerToggle, onSelectDrawer, onSelectTab, tabIndex }) => {
7
- return ((0, jsx_runtime_1.jsx)(react_shared_1.Providers, { drawerIndex: drawerIndex, drawerOpen: drawerOpen, onDrawerToggle: onDrawerToggle, onSelectDrawer: onSelectDrawer, onSelectTab: onSelectTab, tabIndex: tabIndex, children: (0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGatewayProvider, { children: children }) }));
8
- };
9
- Providers.displayName = 'WebProviders';
10
- exports.default = Providers;
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Providers/index.tsx"],"names":[],"mappings":";;;AAAA,qDAG4B;AAC5B,6DAEgC;AAMhC,MAAM,SAAS,GAAsC,CAAC,EACpD,QAAQ,EACR,WAAW,EACX,UAAU,EACV,cAAc,EACd,cAAc,EACd,WAAW,EACX,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,wBAAa,IACZ,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,YAElB,uBAAC,yCAAsB,cACpB,QAAQ,GACc,GACX,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,cAAc,CAAC;AAEvC,kBAAe,SAAS,CAAC"}