@mongodb-js/compass-components 1.42.0 → 1.44.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.
- package/lib/components/actions/dropdown-menu-button.d.ts +1 -1
- package/lib/components/actions/dropdown-menu-button.d.ts.map +1 -1
- package/lib/components/actions/dropdown-menu-button.js +2 -3
- package/lib/components/actions/dropdown-menu-button.js.map +1 -1
- package/lib/components/actions/item-action-group.d.ts.map +1 -1
- package/lib/components/actions/item-action-group.js +1 -2
- package/lib/components/actions/item-action-group.js.map +1 -1
- package/lib/components/actions/item-action-menu.d.ts +1 -3
- package/lib/components/actions/item-action-menu.d.ts.map +1 -1
- package/lib/components/actions/item-action-menu.js +1 -8
- package/lib/components/actions/item-action-menu.js.map +1 -1
- package/lib/components/actions/types.d.ts +1 -0
- package/lib/components/actions/types.d.ts.map +1 -1
- package/lib/components/actions/utils.d.ts +3 -0
- package/lib/components/actions/utils.d.ts.map +1 -1
- package/lib/components/actions/utils.js +27 -0
- package/lib/components/actions/utils.js.map +1 -1
- package/lib/components/context-menu.d.ts +1 -1
- package/lib/components/context-menu.d.ts.map +1 -1
- package/lib/components/context-menu.js.map +1 -1
- package/lib/components/document-list/document-edit-actions-footer.d.ts.map +1 -1
- package/lib/components/document-list/document-edit-actions-footer.js +31 -26
- package/lib/components/document-list/document-edit-actions-footer.js.map +1 -1
- package/lib/components/drawer/constants.d.ts +9 -0
- package/lib/components/drawer/constants.d.ts.map +1 -0
- package/lib/components/drawer/constants.js +13 -0
- package/lib/components/drawer/constants.js.map +1 -0
- package/lib/components/drawer/drawer/drawer.constants.d.ts +3 -0
- package/lib/components/drawer/drawer/drawer.constants.d.ts.map +1 -0
- package/lib/components/drawer/drawer/drawer.constants.js +6 -0
- package/lib/components/drawer/drawer/drawer.constants.js.map +1 -0
- package/lib/components/drawer/drawer/drawer.d.ts +4 -0
- package/lib/components/drawer/drawer/drawer.d.ts.map +1 -0
- package/lib/components/drawer/drawer/drawer.js +137 -0
- package/lib/components/drawer/drawer/drawer.js.map +1 -0
- package/lib/components/drawer/drawer/drawer.styles.d.ts +29 -0
- package/lib/components/drawer/drawer/drawer.styles.d.ts.map +1 -0
- package/lib/components/drawer/drawer/drawer.styles.js +174 -0
- package/lib/components/drawer/drawer/drawer.styles.js.map +1 -0
- package/lib/components/drawer/drawer/drawer.types.d.ts +35 -0
- package/lib/components/drawer/drawer/drawer.types.d.ts.map +1 -0
- package/lib/components/drawer/drawer/drawer.types.js +13 -0
- package/lib/components/drawer/drawer/drawer.types.js.map +1 -0
- package/lib/components/drawer/drawer/index.d.ts +5 -0
- package/lib/components/drawer/drawer/index.d.ts.map +1 -0
- package/lib/components/drawer/drawer/index.js +12 -0
- package/lib/components/drawer/drawer/index.js.map +1 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.d.ts +17 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.d.ts.map +1 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.js +57 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.js.map +1 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.types.d.ts +34 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.types.d.ts.map +1 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.types.js +3 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.types.js.map +1 -0
- package/lib/components/drawer/drawer-layout/index.d.ts +3 -0
- package/lib/components/drawer/drawer-layout/index.d.ts.map +1 -0
- package/lib/components/drawer/drawer-layout/index.js +6 -0
- package/lib/components/drawer/drawer-layout/index.js.map +1 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.d.ts +8 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.d.ts.map +1 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.js +71 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.js.map +1 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.d.ts +21 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.d.ts.map +1 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.js +3 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.js.map +1 -0
- package/lib/components/drawer/drawer-stack-context/index.d.ts +3 -0
- package/lib/components/drawer/drawer-stack-context/index.d.ts.map +1 -0
- package/lib/components/drawer/drawer-stack-context/index.js +8 -0
- package/lib/components/drawer/drawer-stack-context/index.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.d.ts +6 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.js +85 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.d.ts +37 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.js +3 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-context/index.d.ts +2 -0
- package/lib/components/drawer/drawer-toolbar-context/index.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-context/index.js +7 -0
- package/lib/components/drawer/drawer-toolbar-context/index.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.d.ts +18 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.js +82 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.d.ts +15 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.js +50 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.d.ts +2 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.js +11 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.d.ts +44 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.js +3 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/index.d.ts +3 -0
- package/lib/components/drawer/drawer-toolbar-layout/index.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/index.js +6 -0
- package/lib/components/drawer/drawer-toolbar-layout/index.js.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.d.ts +11 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.d.ts.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.js +63 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.js.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.d.ts +10 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.d.ts.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.js +137 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.js.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.d.ts +11 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.d.ts.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.js +3 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.js.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.d.ts +2 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.d.ts.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.js +6 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.js.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.d.ts +12 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.d.ts.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.js +55 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.js.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.d.ts +6 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.d.ts.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.js +54 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.js.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.d.ts +8 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.d.ts.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.js +3 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.js.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/index.d.ts +3 -0
- package/lib/components/drawer/embedded-drawer-layout/index.d.ts.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/index.js +6 -0
- package/lib/components/drawer/embedded-drawer-layout/index.js.map +1 -0
- package/lib/components/drawer/index.d.ts +6 -0
- package/lib/components/drawer/index.d.ts.map +1 -0
- package/lib/components/drawer/index.js +17 -0
- package/lib/components/drawer/index.js.map +1 -0
- package/lib/components/drawer/layout-component/index.d.ts +3 -0
- package/lib/components/drawer/layout-component/index.d.ts.map +1 -0
- package/lib/components/drawer/layout-component/index.js +6 -0
- package/lib/components/drawer/layout-component/index.js.map +1 -0
- package/lib/components/drawer/layout-component/layout-component.d.ts +18 -0
- package/lib/components/drawer/layout-component/layout-component.d.ts.map +1 -0
- package/lib/components/drawer/layout-component/layout-component.js +53 -0
- package/lib/components/drawer/layout-component/layout-component.js.map +1 -0
- package/lib/components/drawer/layout-component/layout-component.styles.d.ts +20 -0
- package/lib/components/drawer/layout-component/layout-component.styles.d.ts.map +1 -0
- package/lib/components/drawer/layout-component/layout-component.styles.js +3 -0
- package/lib/components/drawer/layout-component/layout-component.styles.js.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/index.d.ts +3 -0
- package/lib/components/drawer/overlay-drawer-layout/index.d.ts.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/index.js +6 -0
- package/lib/components/drawer/overlay-drawer-layout/index.js.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.d.ts +11 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.d.ts.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.js +54 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.js.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.d.ts +5 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.d.ts.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.js +27 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.js.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.d.ts +3 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.d.ts.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.js +3 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.js.map +1 -0
- package/lib/components/drawer/utils/get-lg-ids.d.ts +8 -0
- package/lib/components/drawer/utils/get-lg-ids.d.ts.map +1 -0
- package/lib/components/drawer/utils/get-lg-ids.js +11 -0
- package/lib/components/drawer/utils/get-lg-ids.js.map +1 -0
- package/lib/components/drawer/utils/index.d.ts +2 -0
- package/lib/components/drawer/utils/index.d.ts.map +1 -0
- package/lib/components/drawer/utils/index.js +7 -0
- package/lib/components/drawer/utils/index.js.map +1 -0
- package/lib/components/leafygreen.d.ts +1 -0
- package/lib/components/leafygreen.d.ts.map +1 -1
- package/lib/components/leafygreen.js +9 -2
- package/lib/components/leafygreen.js.map +1 -1
- package/lib/components/toolbar/constants.d.ts +3 -0
- package/lib/components/toolbar/constants.d.ts.map +1 -0
- package/lib/components/toolbar/constants.js +6 -0
- package/lib/components/toolbar/constants.js.map +1 -0
- package/lib/components/toolbar/context/index.d.ts +3 -0
- package/lib/components/toolbar/context/index.d.ts.map +1 -0
- package/lib/components/toolbar/context/index.js +10 -0
- package/lib/components/toolbar/context/index.js.map +1 -0
- package/lib/components/toolbar/context/toolbar-context.d.ts +6 -0
- package/lib/components/toolbar/context/toolbar-context.d.ts.map +1 -0
- package/lib/components/toolbar/context/toolbar-context.js +65 -0
- package/lib/components/toolbar/context/toolbar-context.js.map +1 -0
- package/lib/components/toolbar/context/toolbar-context.types.d.ts +21 -0
- package/lib/components/toolbar/context/toolbar-context.types.d.ts.map +1 -0
- package/lib/components/toolbar/context/toolbar-context.types.js +3 -0
- package/lib/components/toolbar/context/toolbar-context.types.js.map +1 -0
- package/lib/components/toolbar/context/toolbar-descendants-context.d.ts +5 -0
- package/lib/components/toolbar/context/toolbar-descendants-context.d.ts.map +1 -0
- package/lib/components/toolbar/context/toolbar-descendants-context.js +10 -0
- package/lib/components/toolbar/context/toolbar-descendants-context.js.map +1 -0
- package/lib/components/toolbar/index.d.ts +5 -0
- package/lib/components/toolbar/index.d.ts.map +1 -0
- package/lib/components/toolbar/index.js +27 -0
- package/lib/components/toolbar/index.js.map +1 -0
- package/lib/components/toolbar/toolbar/index.d.ts +4 -0
- package/lib/components/toolbar/toolbar/index.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar/index.js +8 -0
- package/lib/components/toolbar/toolbar/index.js.map +1 -0
- package/lib/components/toolbar/toolbar/toolbar.d.ts +4 -0
- package/lib/components/toolbar/toolbar/toolbar.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar/toolbar.js +93 -0
- package/lib/components/toolbar/toolbar/toolbar.js.map +1 -0
- package/lib/components/toolbar/toolbar/toolbar.styles.d.ts +7 -0
- package/lib/components/toolbar/toolbar/toolbar.styles.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar/toolbar.styles.js +26 -0
- package/lib/components/toolbar/toolbar/toolbar.styles.js.map +1 -0
- package/lib/components/toolbar/toolbar/toolbar.types.d.ts +6 -0
- package/lib/components/toolbar/toolbar/toolbar.types.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar/toolbar.types.js +3 -0
- package/lib/components/toolbar/toolbar/toolbar.types.js.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/index.d.ts +3 -0
- package/lib/components/toolbar/toolbar-icon-button/index.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/index.js +6 -0
- package/lib/components/toolbar/toolbar-icon-button/index.js.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.d.ts +4 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.js +77 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.js.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.d.ts +13 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.js +38 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.js.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.d.ts +19 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.js +3 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.js.map +1 -0
- package/lib/components/toolbar/utils/get-lg-ids.d.ts +8 -0
- package/lib/components/toolbar/utils/get-lg-ids.d.ts.map +1 -0
- package/lib/components/toolbar/utils/get-lg-ids.js +14 -0
- package/lib/components/toolbar/utils/get-lg-ids.js.map +1 -0
- package/lib/components/toolbar/utils/index.d.ts +2 -0
- package/lib/components/toolbar/utils/index.d.ts.map +1 -0
- package/lib/components/toolbar/utils/index.js +7 -0
- package/lib/components/toolbar/utils/index.js.map +1 -0
- package/lib/index.d.ts +10 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +11 -9
- package/lib/index.js.map +1 -1
- package/package.json +12 -10
|
@@ -0,0 +1,85 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-toolbar-context.types.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;;;;wCA0FxC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 } = (0, drawer_toolbar_context_1.useDrawerToolbarContext)();
|
|
56
|
+
const { id, title, content } = getActiveDrawerContent() || {};
|
|
57
|
+
const lgIds = (0, utils_1.getLgIds)(dataLgId);
|
|
58
|
+
const hasData = toolbarData && toolbarData.length > 0;
|
|
59
|
+
const handleOnClose = (event) => {
|
|
60
|
+
onClose?.(event);
|
|
61
|
+
closeDrawer();
|
|
62
|
+
};
|
|
63
|
+
const handleIconClick = (event, id, onClick) => {
|
|
64
|
+
onClick?.(event);
|
|
65
|
+
openDrawer(id);
|
|
66
|
+
};
|
|
67
|
+
return (react_1.default.createElement(layout_component_1.LayoutComponent, { ...rest, ref: forwardRef, displayMode: displayMode, hasToolbar: hasData, isDrawerOpen: isDrawerOpen },
|
|
68
|
+
react_1.default.createElement("div", { className: drawer_toolbar_layout_styles_1.contentStyles }, children),
|
|
69
|
+
react_1.default.createElement(drawer_with_toolbar_wrapper_1.DrawerWithToolbarWrapper, { displayMode: displayMode, isDrawerOpen: isDrawerOpen },
|
|
70
|
+
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) => {
|
|
71
|
+
if (!toolbarItem.content) {
|
|
72
|
+
// If the toolbar item does not have content, we don't want to open/update/close the drawer
|
|
73
|
+
// but we still want to call the onClick function if it exists. E.g. open a modal or perform an action
|
|
74
|
+
toolbarItem.onClick?.(event);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
return handleIconClick(event, toolbarItem.id, toolbarItem.onClick);
|
|
78
|
+
}, active: toolbarItem.id === id, disabled: toolbarItem.disabled })))),
|
|
79
|
+
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" }, content))));
|
|
80
|
+
});
|
|
81
|
+
exports.DrawerToolbarLayoutContainer.displayName = 'DrawerToolbarLayoutContainer';
|
|
82
|
+
//# sourceMappingURL=drawer-toolbar-layout-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,EAAE,UAAU,EAAE,WAAW,EAAE,sBAAsB,EAAE,YAAY,EAAE,GACrE,IAAA,gDAAuB,GAAE,CAAC;IAC5B,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,sBAAsB,EAAE,IAAI,EAAE,CAAC;IAC9D,MAAM,KAAK,GAAG,IAAA,gBAAQ,EAAC,QAAQ,CAAC,CAAC;IACjC,MAAM,OAAO,GAAG,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;IAEtD,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,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,IAEjB,OAAO,CACD,CACgB,CACX,CACnB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,oCAA4B,CAAC,WAAW,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-toolbar-layout.types.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-toolbar-layout/index.ts"],"names":[],"mappings":";;;AAAA,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-with-toolbar-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEzF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,mHAmCpC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.DrawerWithToolbarWrapper = void 0;
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const leafygreen_provider_1 = require("@leafygreen-ui/leafygreen-provider");
|
|
39
|
+
const drawer_with_toolbar_wrapper_styles_1 = require("./drawer-with-toolbar-wrapper.styles");
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*
|
|
43
|
+
* 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.
|
|
44
|
+
*
|
|
45
|
+
* If the drawer is overlay, a box shadow will be applied to the left side of this component.
|
|
46
|
+
*/
|
|
47
|
+
exports.DrawerWithToolbarWrapper = (0, react_1.forwardRef)(({ children, className, isDrawerOpen, displayMode, }, forwardedRef) => {
|
|
48
|
+
const { theme } = (0, leafygreen_provider_1.useDarkMode)();
|
|
49
|
+
const [shouldAnimate, setShouldAnimate] = (0, react_1.useState)(false);
|
|
50
|
+
(0, react_1.useEffect)(() => {
|
|
51
|
+
if (isDrawerOpen)
|
|
52
|
+
setShouldAnimate(true);
|
|
53
|
+
}, [isDrawerOpen]);
|
|
54
|
+
return (react_1.default.createElement("div", { ref: forwardedRef, className: (0, drawer_with_toolbar_wrapper_styles_1.getDrawerWithToolbarWrapperStyles)({
|
|
55
|
+
className,
|
|
56
|
+
isDrawerOpen,
|
|
57
|
+
shouldAnimate,
|
|
58
|
+
displayMode,
|
|
59
|
+
theme,
|
|
60
|
+
}) }, children));
|
|
61
|
+
});
|
|
62
|
+
exports.DrawerWithToolbarWrapper.displayName = 'DrawerWithToolbarWrapper';
|
|
63
|
+
//# sourceMappingURL=drawer-with-toolbar-wrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-with-toolbar-wrapper.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+D;AAE/D,4EAAiE;AAEjE,6FAAyF;AAGzF;;;;;;GAMG;AACU,QAAA,wBAAwB,GAAG,IAAA,kBAAU,EAIhD,CACE,EACE,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,WAAW,GACmB,EAChC,YAAY,EACZ,EAAE;IACF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,iCAAW,GAAE,CAAC;IAChC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE1D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,YAAY;YAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,OAAO,CACL,uCACE,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,IAAA,sEAAiC,EAAC;YAC3C,SAAS;YACT,YAAY;YACZ,aAAa;YACb,WAAW;YACX,KAAK;SACN,CAAC,IAED,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gCAAwB,CAAC,WAAW,GAAG,0BAA0B,CAAC"}
|
package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Theme } from '@leafygreen-ui/lib';
|
|
2
|
+
import { DisplayMode } from '../drawer/drawer.types';
|
|
3
|
+
export declare const getDrawerWithToolbarWrapperStyles: ({ className, isDrawerOpen, shouldAnimate, displayMode, theme, }: {
|
|
4
|
+
className?: string;
|
|
5
|
+
isDrawerOpen: boolean;
|
|
6
|
+
shouldAnimate?: boolean;
|
|
7
|
+
displayMode: DisplayMode;
|
|
8
|
+
theme: Theme;
|
|
9
|
+
}) => string;
|
|
10
|
+
//# sourceMappingURL=drawer-with-toolbar-wrapper.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-with-toolbar-wrapper.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAUhD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAwIrD,eAAO,MAAM,iCAAiC,GAAI,iEAM/C;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC;CACd,WAWE,CAAC"}
|