@mongodb-js/compass-components 1.52.1 → 1.53.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 (229) hide show
  1. package/lib/components/drawer-portal.d.ts +8 -5
  2. package/lib/components/drawer-portal.d.ts.map +1 -1
  3. package/lib/components/drawer-portal.js +105 -28
  4. package/lib/components/drawer-portal.js.map +1 -1
  5. package/lib/components/guide-cue/guide-cue.d.ts +3 -2
  6. package/lib/components/guide-cue/guide-cue.d.ts.map +1 -1
  7. package/lib/components/guide-cue/guide-cue.js +3 -3
  8. package/lib/components/guide-cue/guide-cue.js.map +1 -1
  9. package/lib/components/leafygreen.d.ts +0 -1
  10. package/lib/components/leafygreen.d.ts.map +1 -1
  11. package/lib/components/leafygreen.js +2 -4
  12. package/lib/components/leafygreen.js.map +1 -1
  13. package/package.json +4 -4
  14. package/lib/components/drawer/constants.d.ts +0 -9
  15. package/lib/components/drawer/constants.d.ts.map +0 -1
  16. package/lib/components/drawer/constants.js +0 -13
  17. package/lib/components/drawer/constants.js.map +0 -1
  18. package/lib/components/drawer/drawer/drawer.constants.d.ts +0 -3
  19. package/lib/components/drawer/drawer/drawer.constants.d.ts.map +0 -1
  20. package/lib/components/drawer/drawer/drawer.constants.js +0 -6
  21. package/lib/components/drawer/drawer/drawer.constants.js.map +0 -1
  22. package/lib/components/drawer/drawer/drawer.d.ts +0 -4
  23. package/lib/components/drawer/drawer/drawer.d.ts.map +0 -1
  24. package/lib/components/drawer/drawer/drawer.js +0 -143
  25. package/lib/components/drawer/drawer/drawer.js.map +0 -1
  26. package/lib/components/drawer/drawer/drawer.styles.d.ts +0 -29
  27. package/lib/components/drawer/drawer/drawer.styles.d.ts.map +0 -1
  28. package/lib/components/drawer/drawer/drawer.styles.js +0 -174
  29. package/lib/components/drawer/drawer/drawer.styles.js.map +0 -1
  30. package/lib/components/drawer/drawer/drawer.types.d.ts +0 -40
  31. package/lib/components/drawer/drawer/drawer.types.d.ts.map +0 -1
  32. package/lib/components/drawer/drawer/drawer.types.js +0 -13
  33. package/lib/components/drawer/drawer/drawer.types.js.map +0 -1
  34. package/lib/components/drawer/drawer/index.d.ts +0 -5
  35. package/lib/components/drawer/drawer/index.d.ts.map +0 -1
  36. package/lib/components/drawer/drawer/index.js +0 -12
  37. package/lib/components/drawer/drawer/index.js.map +0 -1
  38. package/lib/components/drawer/drawer-layout/drawer-layout.d.ts +0 -17
  39. package/lib/components/drawer/drawer-layout/drawer-layout.d.ts.map +0 -1
  40. package/lib/components/drawer/drawer-layout/drawer-layout.js +0 -57
  41. package/lib/components/drawer/drawer-layout/drawer-layout.js.map +0 -1
  42. package/lib/components/drawer/drawer-layout/drawer-layout.types.d.ts +0 -34
  43. package/lib/components/drawer/drawer-layout/drawer-layout.types.d.ts.map +0 -1
  44. package/lib/components/drawer/drawer-layout/drawer-layout.types.js +0 -3
  45. package/lib/components/drawer/drawer-layout/drawer-layout.types.js.map +0 -1
  46. package/lib/components/drawer/drawer-layout/index.d.ts +0 -3
  47. package/lib/components/drawer/drawer-layout/index.d.ts.map +0 -1
  48. package/lib/components/drawer/drawer-layout/index.js +0 -6
  49. package/lib/components/drawer/drawer-layout/index.js.map +0 -1
  50. package/lib/components/drawer/drawer-stack-context/drawer-stack-context.d.ts +0 -8
  51. package/lib/components/drawer/drawer-stack-context/drawer-stack-context.d.ts.map +0 -1
  52. package/lib/components/drawer/drawer-stack-context/drawer-stack-context.js +0 -71
  53. package/lib/components/drawer/drawer-stack-context/drawer-stack-context.js.map +0 -1
  54. package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.d.ts +0 -21
  55. package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.d.ts.map +0 -1
  56. package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.js +0 -3
  57. package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.js.map +0 -1
  58. package/lib/components/drawer/drawer-stack-context/index.d.ts +0 -3
  59. package/lib/components/drawer/drawer-stack-context/index.d.ts.map +0 -1
  60. package/lib/components/drawer/drawer-stack-context/index.js +0 -8
  61. package/lib/components/drawer/drawer-stack-context/index.js.map +0 -1
  62. package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.d.ts +0 -6
  63. package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.d.ts.map +0 -1
  64. package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.js +0 -85
  65. package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.js.map +0 -1
  66. package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.d.ts +0 -37
  67. package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.d.ts.map +0 -1
  68. package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.js +0 -3
  69. package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.js.map +0 -1
  70. package/lib/components/drawer/drawer-toolbar-context/index.d.ts +0 -2
  71. package/lib/components/drawer/drawer-toolbar-context/index.d.ts.map +0 -1
  72. package/lib/components/drawer/drawer-toolbar-context/index.js +0 -7
  73. package/lib/components/drawer/drawer-toolbar-context/index.js.map +0 -1
  74. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.d.ts +0 -18
  75. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.d.ts.map +0 -1
  76. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.js +0 -86
  77. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.js.map +0 -1
  78. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.d.ts +0 -15
  79. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.d.ts.map +0 -1
  80. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.js +0 -50
  81. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.js.map +0 -1
  82. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.d.ts +0 -2
  83. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.d.ts.map +0 -1
  84. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.js +0 -11
  85. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.js.map +0 -1
  86. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.d.ts +0 -44
  87. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.d.ts.map +0 -1
  88. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.js +0 -3
  89. package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.js.map +0 -1
  90. package/lib/components/drawer/drawer-toolbar-layout/index.d.ts +0 -3
  91. package/lib/components/drawer/drawer-toolbar-layout/index.d.ts.map +0 -1
  92. package/lib/components/drawer/drawer-toolbar-layout/index.js +0 -6
  93. package/lib/components/drawer/drawer-toolbar-layout/index.js.map +0 -1
  94. package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.d.ts +0 -11
  95. package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.d.ts.map +0 -1
  96. package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.js +0 -63
  97. package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.js.map +0 -1
  98. package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.d.ts +0 -10
  99. package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.d.ts.map +0 -1
  100. package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.js +0 -137
  101. package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.js.map +0 -1
  102. package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.d.ts +0 -11
  103. package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.d.ts.map +0 -1
  104. package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.js +0 -3
  105. package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.js.map +0 -1
  106. package/lib/components/drawer/drawer-with-toolbar-wrapper/index.d.ts +0 -2
  107. package/lib/components/drawer/drawer-with-toolbar-wrapper/index.d.ts.map +0 -1
  108. package/lib/components/drawer/drawer-with-toolbar-wrapper/index.js +0 -6
  109. package/lib/components/drawer/drawer-with-toolbar-wrapper/index.js.map +0 -1
  110. package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.d.ts +0 -12
  111. package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.d.ts.map +0 -1
  112. package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.js +0 -55
  113. package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.js.map +0 -1
  114. package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.d.ts +0 -6
  115. package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.d.ts.map +0 -1
  116. package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.js +0 -54
  117. package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.js.map +0 -1
  118. package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.d.ts +0 -8
  119. package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.d.ts.map +0 -1
  120. package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.js +0 -3
  121. package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.js.map +0 -1
  122. package/lib/components/drawer/embedded-drawer-layout/index.d.ts +0 -3
  123. package/lib/components/drawer/embedded-drawer-layout/index.d.ts.map +0 -1
  124. package/lib/components/drawer/embedded-drawer-layout/index.js +0 -6
  125. package/lib/components/drawer/embedded-drawer-layout/index.js.map +0 -1
  126. package/lib/components/drawer/index.d.ts +0 -6
  127. package/lib/components/drawer/index.d.ts.map +0 -1
  128. package/lib/components/drawer/index.js +0 -17
  129. package/lib/components/drawer/index.js.map +0 -1
  130. package/lib/components/drawer/layout-component/index.d.ts +0 -3
  131. package/lib/components/drawer/layout-component/index.d.ts.map +0 -1
  132. package/lib/components/drawer/layout-component/index.js +0 -6
  133. package/lib/components/drawer/layout-component/index.js.map +0 -1
  134. package/lib/components/drawer/layout-component/layout-component.d.ts +0 -18
  135. package/lib/components/drawer/layout-component/layout-component.d.ts.map +0 -1
  136. package/lib/components/drawer/layout-component/layout-component.js +0 -53
  137. package/lib/components/drawer/layout-component/layout-component.js.map +0 -1
  138. package/lib/components/drawer/layout-component/layout-component.styles.d.ts +0 -20
  139. package/lib/components/drawer/layout-component/layout-component.styles.d.ts.map +0 -1
  140. package/lib/components/drawer/layout-component/layout-component.styles.js +0 -3
  141. package/lib/components/drawer/layout-component/layout-component.styles.js.map +0 -1
  142. package/lib/components/drawer/overlay-drawer-layout/index.d.ts +0 -3
  143. package/lib/components/drawer/overlay-drawer-layout/index.d.ts.map +0 -1
  144. package/lib/components/drawer/overlay-drawer-layout/index.js +0 -6
  145. package/lib/components/drawer/overlay-drawer-layout/index.js.map +0 -1
  146. package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.d.ts +0 -11
  147. package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.d.ts.map +0 -1
  148. package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.js +0 -54
  149. package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.js.map +0 -1
  150. package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.d.ts +0 -5
  151. package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.d.ts.map +0 -1
  152. package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.js +0 -27
  153. package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.js.map +0 -1
  154. package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.d.ts +0 -3
  155. package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.d.ts.map +0 -1
  156. package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.js +0 -3
  157. package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.js.map +0 -1
  158. package/lib/components/drawer/utils/get-lg-ids.d.ts +0 -8
  159. package/lib/components/drawer/utils/get-lg-ids.d.ts.map +0 -1
  160. package/lib/components/drawer/utils/get-lg-ids.js +0 -11
  161. package/lib/components/drawer/utils/get-lg-ids.js.map +0 -1
  162. package/lib/components/drawer/utils/index.d.ts +0 -2
  163. package/lib/components/drawer/utils/index.d.ts.map +0 -1
  164. package/lib/components/drawer/utils/index.js +0 -7
  165. package/lib/components/drawer/utils/index.js.map +0 -1
  166. package/lib/components/toolbar/constants.d.ts +0 -3
  167. package/lib/components/toolbar/constants.d.ts.map +0 -1
  168. package/lib/components/toolbar/constants.js +0 -6
  169. package/lib/components/toolbar/constants.js.map +0 -1
  170. package/lib/components/toolbar/context/index.d.ts +0 -3
  171. package/lib/components/toolbar/context/index.d.ts.map +0 -1
  172. package/lib/components/toolbar/context/index.js +0 -10
  173. package/lib/components/toolbar/context/index.js.map +0 -1
  174. package/lib/components/toolbar/context/toolbar-context.d.ts +0 -6
  175. package/lib/components/toolbar/context/toolbar-context.d.ts.map +0 -1
  176. package/lib/components/toolbar/context/toolbar-context.js +0 -65
  177. package/lib/components/toolbar/context/toolbar-context.js.map +0 -1
  178. package/lib/components/toolbar/context/toolbar-context.types.d.ts +0 -21
  179. package/lib/components/toolbar/context/toolbar-context.types.d.ts.map +0 -1
  180. package/lib/components/toolbar/context/toolbar-context.types.js +0 -3
  181. package/lib/components/toolbar/context/toolbar-context.types.js.map +0 -1
  182. package/lib/components/toolbar/context/toolbar-descendants-context.d.ts +0 -5
  183. package/lib/components/toolbar/context/toolbar-descendants-context.d.ts.map +0 -1
  184. package/lib/components/toolbar/context/toolbar-descendants-context.js +0 -10
  185. package/lib/components/toolbar/context/toolbar-descendants-context.js.map +0 -1
  186. package/lib/components/toolbar/index.d.ts +0 -5
  187. package/lib/components/toolbar/index.d.ts.map +0 -1
  188. package/lib/components/toolbar/index.js +0 -27
  189. package/lib/components/toolbar/index.js.map +0 -1
  190. package/lib/components/toolbar/toolbar/index.d.ts +0 -4
  191. package/lib/components/toolbar/toolbar/index.d.ts.map +0 -1
  192. package/lib/components/toolbar/toolbar/index.js +0 -8
  193. package/lib/components/toolbar/toolbar/index.js.map +0 -1
  194. package/lib/components/toolbar/toolbar/toolbar.d.ts +0 -4
  195. package/lib/components/toolbar/toolbar/toolbar.d.ts.map +0 -1
  196. package/lib/components/toolbar/toolbar/toolbar.js +0 -93
  197. package/lib/components/toolbar/toolbar/toolbar.js.map +0 -1
  198. package/lib/components/toolbar/toolbar/toolbar.styles.d.ts +0 -7
  199. package/lib/components/toolbar/toolbar/toolbar.styles.d.ts.map +0 -1
  200. package/lib/components/toolbar/toolbar/toolbar.styles.js +0 -26
  201. package/lib/components/toolbar/toolbar/toolbar.styles.js.map +0 -1
  202. package/lib/components/toolbar/toolbar/toolbar.types.d.ts +0 -6
  203. package/lib/components/toolbar/toolbar/toolbar.types.d.ts.map +0 -1
  204. package/lib/components/toolbar/toolbar/toolbar.types.js +0 -3
  205. package/lib/components/toolbar/toolbar/toolbar.types.js.map +0 -1
  206. package/lib/components/toolbar/toolbar-icon-button/index.d.ts +0 -3
  207. package/lib/components/toolbar/toolbar-icon-button/index.d.ts.map +0 -1
  208. package/lib/components/toolbar/toolbar-icon-button/index.js +0 -6
  209. package/lib/components/toolbar/toolbar-icon-button/index.js.map +0 -1
  210. package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.d.ts +0 -4
  211. package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.d.ts.map +0 -1
  212. package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.js +0 -77
  213. package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.js.map +0 -1
  214. package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.d.ts +0 -13
  215. package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.d.ts.map +0 -1
  216. package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.js +0 -38
  217. package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.js.map +0 -1
  218. package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.d.ts +0 -19
  219. package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.d.ts.map +0 -1
  220. package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.js +0 -3
  221. package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.js.map +0 -1
  222. package/lib/components/toolbar/utils/get-lg-ids.d.ts +0 -8
  223. package/lib/components/toolbar/utils/get-lg-ids.d.ts.map +0 -1
  224. package/lib/components/toolbar/utils/get-lg-ids.js +0 -14
  225. package/lib/components/toolbar/utils/get-lg-ids.js.map +0 -1
  226. package/lib/components/toolbar/utils/index.d.ts +0 -2
  227. package/lib/components/toolbar/utils/index.d.ts.map +0 -1
  228. package/lib/components/toolbar/utils/index.js +0 -7
  229. package/lib/components/toolbar/utils/index.js.map +0 -1
@@ -1,71 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.useDrawerStackContext = exports.DrawerStackProvider = exports.DrawerStackContext = void 0;
37
- const react_1 = __importStar(require("react"));
38
- exports.DrawerStackContext = (0, react_1.createContext)({
39
- getDrawerIndex: () => 0,
40
- registerDrawer: () => { },
41
- unregisterDrawer: () => { },
42
- });
43
- const DrawerStackProvider = ({ children, }) => {
44
- const [stack, setStack] = (0, react_1.useState)([]);
45
- const getDrawerIndex = (0, react_1.useCallback)((id) => {
46
- return stack.indexOf(id);
47
- }, [stack]);
48
- const registerDrawer = (0, react_1.useCallback)((id) => {
49
- setStack((prev) => {
50
- if (prev.includes(id))
51
- return prev;
52
- return [...prev, id];
53
- });
54
- }, [setStack]);
55
- const unregisterDrawer = (0, react_1.useCallback)((id) => {
56
- setStack((prev) => {
57
- if (!prev.includes(id))
58
- return prev;
59
- return prev.filter((item) => item !== id);
60
- });
61
- }, [setStack]);
62
- const value = (0, react_1.useMemo)(() => ({ getDrawerIndex, registerDrawer, unregisterDrawer }), [getDrawerIndex, registerDrawer, unregisterDrawer]);
63
- return (react_1.default.createElement(exports.DrawerStackContext.Provider, { value: value }, children));
64
- };
65
- exports.DrawerStackProvider = DrawerStackProvider;
66
- const useDrawerStackContext = () => {
67
- const context = (0, react_1.useContext)(exports.DrawerStackContext);
68
- return context;
69
- };
70
- exports.useDrawerStackContext = useDrawerStackContext;
71
- //# sourceMappingURL=drawer-stack-context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-stack-context.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-stack-context/drawer-stack-context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAMe;AAIF,QAAA,kBAAkB,GAAG,IAAA,qBAAa,EAAyB;IACtE,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;IACvB,cAAc,EAAE,GAAG,EAAE,GAAE,CAAC;IACxB,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC;CAC3B,CAAC,CAAC;AAEI,MAAM,mBAAmB,GAAG,CAAC,EAClC,QAAQ,GAGT,EAAE,EAAE;IACH,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAgB,EAAE,CAAC,CAAC;IAEtD,MAAM,cAAc,GAAG,IAAA,mBAAW,EAChC,CAAC,EAAU,EAAE,EAAE;QACb,OAAO,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC,EACD,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,MAAM,cAAc,GAAG,IAAA,mBAAW,EAChC,CAAC,EAAU,EAAE,EAAE;QACb,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE;YAChB,IAAI,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAAE,OAAO,IAAI,CAAC;YACnC,OAAO,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAClC,CAAC,EAAU,EAAE,EAAE;QACb,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE;YAChB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAAE,OAAO,IAAI,CAAC;YACpC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;IACL,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,KAAK,GAAG,IAAA,eAAO,EACnB,GAAG,EAAE,CAAC,CAAC,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC,EAC5D,CAAC,cAAc,EAAE,cAAc,EAAE,gBAAgB,CAAC,CACnD,CAAC;IAEF,OAAO,CACL,8BAAC,0BAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IACtC,QAAQ,CACmB,CAC/B,CAAC;AACJ,CAAC,CAAC;AA5CW,QAAA,mBAAmB,uBA4C9B;AAEK,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACxC,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,0BAAkB,CAAC,CAAC;IAE/C,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAJW,QAAA,qBAAqB,yBAIhC"}
@@ -1,21 +0,0 @@
1
- export interface DrawerStackContextType {
2
- /**
3
- * Returns the index of a drawer instance in the drawer stack
4
- * @param id - The id of the drawer instance to get the index of
5
- * @returns The index of the drawer instance in the stack
6
- */
7
- getDrawerIndex: (id: string) => number;
8
- /**
9
- * Registers a drawer instance in the drawer stack
10
- * @param id - The id of the drawer instance to register
11
- * @returns void
12
- */
13
- registerDrawer: (id: string) => void;
14
- /**
15
- * Unregisters a drawer instance from the drawer stack
16
- * @param id - The id of the drawer instance to unregister
17
- * @returns void
18
- */
19
- unregisterDrawer: (id: string) => void;
20
- }
21
- //# sourceMappingURL=drawer-stack-context.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-stack-context.types.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-stack-context/drawer-stack-context.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IAEvC;;;;OAIG;IACH,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAErC;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=drawer-stack-context.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-stack-context.types.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-stack-context/drawer-stack-context.types.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export { DrawerStackContext, DrawerStackProvider, useDrawerStackContext, } from './drawer-stack-context';
2
- export { type DrawerStackContextType } from './drawer-stack-context.types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-stack-context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useDrawerStackContext = exports.DrawerStackProvider = exports.DrawerStackContext = void 0;
4
- var drawer_stack_context_1 = require("./drawer-stack-context");
5
- Object.defineProperty(exports, "DrawerStackContext", { enumerable: true, get: function () { return drawer_stack_context_1.DrawerStackContext; } });
6
- Object.defineProperty(exports, "DrawerStackProvider", { enumerable: true, get: function () { return drawer_stack_context_1.DrawerStackProvider; } });
7
- Object.defineProperty(exports, "useDrawerStackContext", { enumerable: true, get: function () { return drawer_stack_context_1.useDrawerStackContext; } });
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-stack-context/index.ts"],"names":[],"mappings":";;;AAAA,+DAIgC;AAH9B,0HAAA,kBAAkB,OAAA;AAClB,2HAAA,mBAAmB,OAAA;AACnB,6HAAA,qBAAqB,OAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { DrawerToolbarContextType, DrawerToolbarProviderProps } from './drawer-toolbar-context.types';
3
- export declare const DrawerToolbarContext: React.Context<DrawerToolbarContextType | null>;
4
- export declare const DrawerToolbarProvider: ({ children, data, }: DrawerToolbarProviderProps) => React.JSX.Element;
5
- export declare const useDrawerToolbarContext: () => DrawerToolbarContextType;
6
- //# sourceMappingURL=drawer-toolbar-context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-toolbar-context.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-context/drawer-toolbar-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAGV,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,oBAAoB,gDACqB,CAAC;AAEvD,eAAO,MAAM,qBAAqB,GAAI,qBAGnC,0BAA0B,sBAqD5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,gCAUnC,CAAC"}
@@ -1,85 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.useDrawerToolbarContext = exports.DrawerToolbarProvider = exports.DrawerToolbarContext = void 0;
37
- const react_1 = __importStar(require("react"));
38
- const drawer_styles_1 = require("../drawer/drawer.styles");
39
- exports.DrawerToolbarContext = (0, react_1.createContext)(null);
40
- const DrawerToolbarProvider = ({ children, data, }) => {
41
- const [content, setContent] = (0, react_1.useState)(undefined);
42
- const [isDrawerOpen, setIsDrawerOpen] = (0, react_1.useState)(false);
43
- const openDrawer = (0, react_1.useCallback)((id) => {
44
- const activeDrawerContent = data.find((item) => item?.id === id && item?.content);
45
- if (activeDrawerContent) {
46
- setIsDrawerOpen(true);
47
- setContent((prev) => {
48
- if (prev?.id === id)
49
- return prev;
50
- return activeDrawerContent;
51
- });
52
- }
53
- else {
54
- // eslint-disable-next-line no-console
55
- console.error(`No matching item found in the toolbar for the provided id: ${id}. Please verify that the id is correct.`);
56
- }
57
- }, [setContent, data, setIsDrawerOpen]);
58
- const closeDrawer = (0, react_1.useCallback)(() => {
59
- // Delay the removal of the content to allow the drawer to close before removing the content
60
- setTimeout(() => {
61
- setContent(undefined);
62
- }, drawer_styles_1.drawerTransitionDuration);
63
- setIsDrawerOpen(false);
64
- }, [setContent]);
65
- const getActiveDrawerContent = (0, react_1.useCallback)(() => {
66
- return content;
67
- }, [content]);
68
- const value = (0, react_1.useMemo)(() => ({
69
- openDrawer,
70
- closeDrawer,
71
- getActiveDrawerContent,
72
- isDrawerOpen,
73
- }), [openDrawer, closeDrawer, getActiveDrawerContent, isDrawerOpen]);
74
- return (react_1.default.createElement(exports.DrawerToolbarContext.Provider, { value: value }, children));
75
- };
76
- exports.DrawerToolbarProvider = DrawerToolbarProvider;
77
- const useDrawerToolbarContext = () => {
78
- const context = (0, react_1.useContext)(exports.DrawerToolbarContext);
79
- if (!context) {
80
- throw new Error('useDrawerToolbarContext must be used within a DrawerToolbarProvider');
81
- }
82
- return context;
83
- };
84
- exports.useDrawerToolbarContext = useDrawerToolbarContext;
85
- //# sourceMappingURL=drawer-toolbar-context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-toolbar-context.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-context/drawer-toolbar-context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAMe;AAEf,2DAAmE;AAStD,QAAA,oBAAoB,GAC/B,IAAA,qBAAa,EAAkC,IAAI,CAAC,CAAC;AAEhD,MAAM,qBAAqB,GAAG,CAAC,EACpC,QAAQ,EACR,IAAI,GACuB,EAAE,EAAE;IAC/B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAc,SAAS,CAAC,CAAC;IAC/D,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IAEjE,MAAM,UAAU,GAAG,IAAA,mBAAW,EAC5B,CAAC,EAAU,EAAE,EAAE;QACb,MAAM,mBAAmB,GAAG,IAAI,CAAC,IAAI,CACnC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,IAAI,EAAE,OAAO,CAC3C,CAAC;QAEF,IAAI,mBAAmB,EAAE,CAAC;YACxB,eAAe,CAAC,IAAI,CAAC,CAAC;YACtB,UAAU,CAAC,CAAC,IAAI,EAAE,EAAE;gBAClB,IAAI,IAAI,EAAE,EAAE,KAAK,EAAE;oBAAE,OAAO,IAAI,CAAC;gBACjC,OAAO,mBAAmB,CAAC;YAC7B,CAAC,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,sCAAsC;YACtC,OAAO,CAAC,KAAK,CACX,8DAA8D,EAAE,yCAAyC,CAC1G,CAAC;QACJ,CAAC;IACH,CAAC,EACD,CAAC,UAAU,EAAE,IAAI,EAAE,eAAe,CAAC,CACpC,CAAC;IAEF,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACnC,4FAA4F;QAC5F,UAAU,CAAC,GAAG,EAAE;YACd,UAAU,CAAC,SAAS,CAAC,CAAC;QACxB,CAAC,EAAE,wCAAwB,CAAC,CAAC;QAC7B,eAAe,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,MAAM,sBAAsB,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QAC9C,OAAO,OAAO,CAAC;IACjB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,MAAM,KAAK,GAAG,IAAA,eAAO,EACnB,GAAG,EAAE,CAAC,CAAC;QACL,UAAU;QACV,WAAW;QACX,sBAAsB;QACtB,YAAY;KACb,CAAC,EACF,CAAC,UAAU,EAAE,WAAW,EAAE,sBAAsB,EAAE,YAAY,CAAC,CAChE,CAAC;IAEF,OAAO,CACL,8BAAC,4BAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IACxC,QAAQ,CACqB,CACjC,CAAC;AACJ,CAAC,CAAC;AAxDW,QAAA,qBAAqB,yBAwDhC;AAEK,MAAM,uBAAuB,GAAG,GAAG,EAAE;IAC1C,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,4BAAoB,CAAC,CAAC;IAEjD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,qEAAqE,CACtE,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAVW,QAAA,uBAAuB,2BAUlC"}
@@ -1,37 +0,0 @@
1
- import type { LayoutData } from '../drawer-toolbar-layout';
2
- export type ContextData = LayoutData | undefined;
3
- export type DataId = LayoutData['id'];
4
- export interface DrawerToolbarContextType {
5
- /**
6
- * This function is used to open the drawer with the given data.
7
- * @param id - The id of the drawer to open
8
- * @returns void
9
- */
10
- openDrawer: (id: DataId) => void;
11
- /**
12
- * This function is used to clear the active drawer data and indicates that the drawer should close.
13
- * @returns void
14
- */
15
- closeDrawer: () => void;
16
- /**
17
- * Indicates whether the drawer should be closed. Used to manage transition states.
18
- * For example, during close animations, content should remain until the transition completes.
19
- */
20
- isDrawerOpen: boolean;
21
- /**
22
- * This function is used to get the active drawer content.
23
- * @returns The active drawer data
24
- */
25
- getActiveDrawerContent: () => ContextData;
26
- }
27
- export interface DrawerToolbarProviderProps {
28
- /**
29
- * The children of the provider
30
- */
31
- children: React.ReactNode;
32
- /**
33
- * The data to be used in the drawer
34
- */
35
- data: Array<ContextData>;
36
- }
37
- //# sourceMappingURL=drawer-toolbar-context.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-toolbar-context.types.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,SAAS,CAAC;AAEjD,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;AAEtC,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAEjC;;;OAGG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,sBAAsB,EAAE,MAAM,WAAW,CAAC;CAC3C;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC1B"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=drawer-toolbar-context.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-toolbar-context.types.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export { DrawerToolbarProvider, useDrawerToolbarContext, } from './drawer-toolbar-context';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useDrawerToolbarContext = exports.DrawerToolbarProvider = void 0;
4
- var drawer_toolbar_context_1 = require("./drawer-toolbar-context");
5
- Object.defineProperty(exports, "DrawerToolbarProvider", { enumerable: true, get: function () { return drawer_toolbar_context_1.DrawerToolbarProvider; } });
6
- Object.defineProperty(exports, "useDrawerToolbarContext", { enumerable: true, get: function () { return drawer_toolbar_context_1.useDrawerToolbarContext; } });
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-context/index.ts"],"names":[],"mappings":";;;AAAA,mEAGkC;AAFhC,+HAAA,qBAAqB,OAAA;AACrB,iIAAA,uBAAuB,OAAA"}
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { DisplayMode } from '../drawer/drawer.types';
3
- import type { LayoutData } from './drawer-toolbar-layout.types';
4
- /**
5
- * @internal
6
- *
7
- * DrawerToolbarLayoutContainer is a component that provides a layout for displaying content in a drawer with a toolbar.
8
- * It manages the state of the drawer and toolbar, and renders the appropriate components based on the display mode.
9
- */
10
- export declare const DrawerToolbarLayoutContainer: React.ForwardRefExoticComponent<{
11
- onClose?: React.MouseEventHandler<HTMLButtonElement> | undefined;
12
- displayMode?: DisplayMode | undefined;
13
- } & import("@leafygreen-ui/lib").DarkModeProps & import("@leafygreen-ui/lib").LgIdProps & {
14
- toolbarData: Array<LayoutData>;
15
- className?: string;
16
- children: React.ReactNode;
17
- } & React.RefAttributes<HTMLDivElement>>;
18
- //# sourceMappingURL=drawer-toolbar-layout-container.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-toolbar-layout-container.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAOrD,OAAO,KAAK,EAEV,UAAU,EACX,MAAM,+BAA+B,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B;;;;;;;wCAqGxC,CAAC"}
@@ -1,86 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.DrawerToolbarLayoutContainer = void 0;
37
- const react_1 = __importStar(require("react"));
38
- const toolbar_1 = require("../../toolbar");
39
- const drawer_1 = require("../drawer/drawer");
40
- const drawer_types_1 = require("../drawer/drawer.types");
41
- const drawer_toolbar_context_1 = require("../drawer-toolbar-context");
42
- const drawer_with_toolbar_wrapper_1 = require("../drawer-with-toolbar-wrapper");
43
- const layout_component_1 = require("../layout-component");
44
- const utils_1 = require("../utils");
45
- const drawer_toolbar_layout_styles_1 = require("./drawer-toolbar-layout.styles");
46
- /**
47
- * @internal
48
- *
49
- * DrawerToolbarLayoutContainer is a component that provides a layout for displaying content in a drawer with a toolbar.
50
- * It manages the state of the drawer and toolbar, and renders the appropriate components based on the display mode.
51
- */
52
- exports.DrawerToolbarLayoutContainer = (0, react_1.forwardRef)(({ children, displayMode = drawer_types_1.DisplayMode.Overlay, toolbarData, onClose,
53
- // darkMode: darkModeProp,
54
- 'data-lgid': dataLgId = utils_1.DEFAULT_LGID_ROOT, ...rest }, forwardRef) => {
55
- const { openDrawer, closeDrawer, getActiveDrawerContent, isDrawerOpen: _isDrawerOpen, } = (0, drawer_toolbar_context_1.useDrawerToolbarContext)();
56
- const { id } = getActiveDrawerContent() || {};
57
- const lgIds = (0, utils_1.getLgIds)(dataLgId);
58
- const hasData = toolbarData && toolbarData.length > 0;
59
- const { title, content } = toolbarData.find((data) => {
60
- return data.id === id;
61
- }) ?? {};
62
- const handleOnClose = (event) => {
63
- onClose?.(event);
64
- closeDrawer();
65
- };
66
- const handleIconClick = (event, id, onClick) => {
67
- onClick?.(event);
68
- openDrawer(id);
69
- };
70
- const isDrawerOpen = Boolean(title && content && _isDrawerOpen);
71
- return (react_1.default.createElement(layout_component_1.LayoutComponent, { ...rest, ref: forwardRef, displayMode: displayMode, hasToolbar: hasData, isDrawerOpen: isDrawerOpen },
72
- react_1.default.createElement("div", { className: drawer_toolbar_layout_styles_1.contentStyles }, children),
73
- react_1.default.createElement(drawer_with_toolbar_wrapper_1.DrawerWithToolbarWrapper, { displayMode: displayMode, isDrawerOpen: isDrawerOpen },
74
- react_1.default.createElement(toolbar_1.Toolbar, { "data-lgid": lgIds.toolbar, "data-testid": lgIds.toolbar }, toolbarData?.map((toolbarItem) => (react_1.default.createElement(toolbar_1.ToolbarIconButton, { key: toolbarItem.glyph, glyph: toolbarItem.glyph, label: toolbarItem.label, onClick: (event) => {
75
- if (!toolbarItem.content) {
76
- // If the toolbar item does not have content, we don't want to open/update/close the drawer
77
- // but we still want to call the onClick function if it exists. E.g. open a modal or perform an action
78
- toolbarItem.onClick?.(event);
79
- return;
80
- }
81
- return handleIconClick(event, toolbarItem.id, toolbarItem.onClick);
82
- }, active: toolbarItem.id === id, disabled: toolbarItem.disabled })))),
83
- react_1.default.createElement(drawer_1.Drawer, { displayMode: displayMode, open: isDrawerOpen, onClose: handleOnClose, title: title, "data-lgid": `${dataLgId}`, "data-testid": `${dataLgId}`, "aria-live": "polite", "aria-atomic": "true", hasPadding: false }, content))));
84
- });
85
- exports.DrawerToolbarLayoutContainer.displayName = 'DrawerToolbarLayoutContainer';
86
- //# sourceMappingURL=drawer-toolbar-layout-container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-toolbar-layout-container.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,2CAA2D;AAE3D,6CAA0C;AAC1C,yDAAqD;AACrD,sEAAoE;AACpE,gFAA0E;AAC1E,0DAAsD;AACtD,oCAAuD;AAEvD,iFAA+D;AAM/D;;;;;GAKG;AACU,QAAA,4BAA4B,GAAG,IAAA,kBAAU,EAIpD,CACE,EACE,QAAQ,EACR,WAAW,GAAG,0BAAW,CAAC,OAAO,EACjC,WAAW,EACX,OAAO;AACP,0BAA0B;AAC1B,WAAW,EAAE,QAAQ,GAAG,yBAAiB,EACzC,GAAG,IAAI,EAC2B,EACpC,UAAU,EACV,EAAE;IACF,MAAM,EACJ,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,YAAY,EAAE,aAAa,GAC5B,GAAG,IAAA,gDAAuB,GAAE,CAAC;IAC9B,MAAM,EAAE,EAAE,EAAE,GAAG,sBAAsB,EAAE,IAAI,EAAE,CAAC;IAC9C,MAAM,KAAK,GAAG,IAAA,gBAAQ,EAAC,QAAQ,CAAC,CAAC;IACjC,MAAM,OAAO,GAAG,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;IACtD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GACtB,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;QACxB,OAAO,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IACxB,CAAC,CAAC,IAAI,EAAE,CAAC;IAEX,MAAM,aAAa,GAAG,CAAC,KAA0C,EAAE,EAAE;QACnE,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;QACjB,WAAW,EAAE,CAAC;IAChB,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,CACtB,KAA0C,EAC1C,EAAoB,EACpB,OAA8D,EAC9D,EAAE;QACF,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,IAAI,OAAO,IAAI,aAAa,CAAC,CAAC;IAEhE,OAAO,CACL,8BAAC,kCAAe,OACV,IAAI,EACR,GAAG,EAAE,UAAU,EACf,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,OAAO,EACnB,YAAY,EAAE,YAAY;QAE1B,uCAAK,SAAS,EAAE,4CAAa,IAAG,QAAQ,CAAO;QAC/C,8BAAC,sDAAwB,IACvB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY;YAE1B,8BAAC,iBAAO,iBAAY,KAAK,CAAC,OAAO,iBAAe,KAAK,CAAC,OAAO,IAC1D,WAAW,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CACjC,8BAAC,2BAAiB,IAChB,GAAG,EAAE,WAAW,CAAC,KAAK,EACtB,KAAK,EAAE,WAAW,CAAC,KAAK,EACxB,KAAK,EAAE,WAAW,CAAC,KAAK,EACxB,OAAO,EAAE,CAAC,KAA0C,EAAE,EAAE;oBACtD,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;wBACzB,2FAA2F;wBAC3F,sGAAsG;wBACtG,WAAW,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;wBAC7B,OAAO;oBACT,CAAC;oBAED,OAAO,eAAe,CACpB,KAAK,EACL,WAAW,CAAC,EAAE,EACd,WAAW,CAAC,OAAO,CACpB,CAAC;gBACJ,CAAC,EACD,MAAM,EAAE,WAAW,CAAC,EAAE,KAAK,EAAE,EAC7B,QAAQ,EAAE,WAAW,CAAC,QAAQ,GAC9B,CACH,CAAC,CACM;YACV,8BAAC,eAAM,IACL,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,KAAK,eACD,GAAG,QAAQ,EAAE,iBACX,GAAG,QAAQ,EAAE,eAChB,QAAQ,iBACN,MAAM,EAClB,UAAU,EAAE,KAAK,IAEhB,OAAO,CACD,CACgB,CACX,CACnB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,oCAA4B,CAAC,WAAW,GAAG,8BAA8B,CAAC"}
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * @internal
4
- *
5
- * DrawerToolbarLayout is a component that provides a layout for displaying content in a drawer with a toolbar.
6
- */
7
- export declare const DrawerToolbarLayout: React.ForwardRefExoticComponent<{
8
- onClose?: React.MouseEventHandler<HTMLButtonElement> | undefined;
9
- displayMode?: import("..").DisplayMode | undefined;
10
- } & import("@leafygreen-ui/lib").DarkModeProps & import("@leafygreen-ui/lib").LgIdProps & {
11
- toolbarData: Array<import("./drawer-toolbar-layout.types").LayoutData>;
12
- className?: string;
13
- children: React.ReactNode;
14
- } & React.RefAttributes<HTMLDivElement>>;
15
- //# sourceMappingURL=drawer-toolbar-layout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-toolbar-layout.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;wCAoB/B,CAAC"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.DrawerToolbarLayout = void 0;
37
- const react_1 = __importStar(require("react"));
38
- const drawer_toolbar_context_1 = require("../drawer-toolbar-context");
39
- const drawer_toolbar_layout_container_1 = require("./drawer-toolbar-layout-container");
40
- /**
41
- * @internal
42
- *
43
- * DrawerToolbarLayout is a component that provides a layout for displaying content in a drawer with a toolbar.
44
- */
45
- exports.DrawerToolbarLayout = (0, react_1.forwardRef)(({ children, toolbarData, ...rest }, forwardRef) => {
46
- return (react_1.default.createElement(drawer_toolbar_context_1.DrawerToolbarProvider, { data: toolbarData },
47
- react_1.default.createElement(drawer_toolbar_layout_container_1.DrawerToolbarLayoutContainer, { ref: forwardRef, toolbarData: toolbarData, ...rest }, children)));
48
- });
49
- exports.DrawerToolbarLayout.displayName = 'DrawerToolbarLayout';
50
- //# sourceMappingURL=drawer-toolbar-layout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-toolbar-layout.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,sEAAkE;AAGlE,uFAAiF;AAEjF;;;;GAIG;AACU,QAAA,mBAAmB,GAAG,IAAA,kBAAU,EAI3C,CACE,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAI,EAA4B,EAC5D,UAAU,EACV,EAAE;IACF,OAAO,CACL,8BAAC,8CAAqB,IAAC,IAAI,EAAE,WAAW;QACtC,8BAAC,8DAA4B,IAC3B,GAAG,EAAE,UAAU,EACf,WAAW,EAAE,WAAW,KACpB,IAAI,IAEP,QAAQ,CACoB,CACT,CACzB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,2BAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const contentStyles: string;
2
- //# sourceMappingURL=drawer-toolbar-layout.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-toolbar-layout.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,QAIzB,CAAC"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.contentStyles = void 0;
4
- const emotion_1 = require("@leafygreen-ui/emotion");
5
- const constants_1 = require("../constants");
6
- exports.contentStyles = (0, emotion_1.css) `
7
- grid-area: ${constants_1.GRID_AREA.content};
8
- overflow: scroll;
9
- height: inherit;
10
- `;
11
- //# sourceMappingURL=drawer-toolbar-layout.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-toolbar-layout.styles.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.ts"],"names":[],"mappings":";;;AAAA,oDAA6C;AAE7C,4CAAyC;AAE5B,QAAA,aAAa,GAAG,IAAA,aAAG,EAAA;eACjB,qBAAS,CAAC,OAAO;;;CAG/B,CAAC"}
@@ -1,44 +0,0 @@
1
- import type React from 'react';
2
- import type { DarkModeProps, LgIdProps } from '@leafygreen-ui/lib';
3
- import type { ToolbarIconButtonProps } from '../../toolbar';
4
- import type { DrawerProps } from '../drawer/drawer.types';
5
- type PickedOptionalDrawerProps = Pick<DrawerProps, 'onClose' | 'displayMode'>;
6
- type PickedRequiredToolbarIconButtonProps = Pick<ToolbarIconButtonProps, 'glyph' | 'label' | 'onClick' | 'disabled'>;
7
- interface LayoutBase extends PickedRequiredToolbarIconButtonProps {
8
- /**
9
- * The id of the layout. This is used to open the drawer.
10
- */
11
- id: string;
12
- }
13
- interface LayoutWithContent extends LayoutBase {
14
- /**
15
- * The title of the drawer. This is not required if the toolbar item should not open a drawer.
16
- */
17
- title: React.ReactNode;
18
- /**
19
- * The content of the drawer. This is not required if the toolbar item should not open a drawer.
20
- */
21
- content: React.ReactNode;
22
- }
23
- interface LayoutWithoutContent extends LayoutBase {
24
- /**
25
- * The title of the drawer. This is not required if the toolbar item should not open a drawer.
26
- */
27
- title?: never;
28
- /**
29
- * The content of the drawer. This is not required if the toolbar item should not open a drawer.
30
- */
31
- content?: never;
32
- }
33
- export type LayoutData = LayoutWithContent | LayoutWithoutContent;
34
- export type DrawerToolbarLayoutProps = PickedOptionalDrawerProps & DarkModeProps & LgIdProps & {
35
- /**
36
- * An array of data that will be used to render the toolbar items and the drawer content.
37
- */
38
- toolbarData: Array<LayoutData>;
39
- className?: string;
40
- children: React.ReactNode;
41
- };
42
- export type DrawerToolbarLayoutContainerProps = DrawerToolbarLayoutProps;
43
- export {};
44
- //# sourceMappingURL=drawer-toolbar-layout.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-toolbar-layout.types.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,KAAK,yBAAyB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,aAAa,CAAC,CAAC;AAC9E,KAAK,oCAAoC,GAAG,IAAI,CAC9C,sBAAsB,EACtB,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAC3C,CAAC;AAEF,UAAU,UAAW,SAAQ,oCAAoC;IAC/D;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,UAAU,iBAAkB,SAAQ,UAAU;IAC5C;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,UAAU,oBAAqB,SAAQ,UAAU;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAAG,yBAAyB,GAC9D,aAAa,GACb,SAAS,GAAG;IACV;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEJ,MAAM,MAAM,iCAAiC,GAAG,wBAAwB,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=drawer-toolbar-layout.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer-toolbar-layout.types.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export { DrawerToolbarLayout } from './drawer-toolbar-layout';
2
- export type { DrawerToolbarLayoutProps, LayoutData, } from './drawer-toolbar-layout.types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EACV,wBAAwB,EACxB,UAAU,GACX,MAAM,+BAA+B,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DrawerToolbarLayout = void 0;
4
- var drawer_toolbar_layout_1 = require("./drawer-toolbar-layout");
5
- Object.defineProperty(exports, "DrawerToolbarLayout", { enumerable: true, get: function () { return drawer_toolbar_layout_1.DrawerToolbarLayout; } });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-layout/index.ts"],"names":[],"mappings":";;;AAAA,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { DrawerWithToolbarWrapperProps } from './drawer-with-toolbar-wrapper.types';
3
- /**
4
- * @internal
5
- *
6
- * This layout wrapper is used to position the toolbar and drawer together. When the drawer is open, the toolbar and drawer will shift to the right.
7
- *
8
- * If the drawer is overlay, a box shadow will be applied to the left side of this component.
9
- */
10
- export declare const DrawerWithToolbarWrapper: React.ForwardRefExoticComponent<Omit<DrawerWithToolbarWrapperProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- //# sourceMappingURL=drawer-with-toolbar-wrapper.d.ts.map