@mongodb-js/compass-components 1.43.0 → 1.45.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/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/{file-input.d.ts → file-picker-dialog.d.ts} +13 -3
- package/lib/components/file-picker-dialog.d.ts.map +1 -0
- package/lib/components/{file-input.js → file-picker-dialog.js} +13 -3
- package/lib/components/file-picker-dialog.js.map +1 -0
- package/lib/components/file-selector.d.ts +11 -0
- package/lib/components/file-selector.d.ts.map +1 -0
- package/lib/components/file-selector.js +49 -0
- package/lib/components/file-selector.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 +4 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -7
- package/lib/index.js.map +1 -1
- package/package.json +11 -9
- package/lib/components/file-input.d.ts.map +0 -1
- package/lib/components/file-input.js.map +0 -1
|
@@ -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"}
|
package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.js
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDrawerWithToolbarWrapperStyles = void 0;
|
|
4
|
+
const emotion_1 = require("@leafygreen-ui/emotion");
|
|
5
|
+
const tokens_1 = require("@leafygreen-ui/tokens");
|
|
6
|
+
const toolbar_1 = require("../../toolbar");
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
const constants_2 = require("../constants");
|
|
9
|
+
const drawer_styles_1 = require("../drawer/drawer.styles");
|
|
10
|
+
const drawer_types_1 = require("../drawer/drawer.types");
|
|
11
|
+
const MOBILE_BREAKPOINT = tokens_1.breakpoints.Tablet;
|
|
12
|
+
const SHADOW_WIDTH = 36; // Width of the shadow padding on the left side
|
|
13
|
+
const drawerIn = (0, emotion_1.keyframes) `
|
|
14
|
+
from {
|
|
15
|
+
// Because of .show() and .close() in the drawer component, transitioning from 0px to (x)px does not transition correctly. Using 1px along with css animations is a workaround to get the animation to work.
|
|
16
|
+
grid-template-columns: ${constants_2.TOOLBAR_WIDTH}px 1px;
|
|
17
|
+
}
|
|
18
|
+
to {
|
|
19
|
+
grid-template-columns: ${constants_2.TOOLBAR_WIDTH}px ${constants_2.PANEL_WIDTH}px;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
const drawerOut = (0, emotion_1.keyframes) `
|
|
23
|
+
from {
|
|
24
|
+
grid-template-columns: ${constants_2.TOOLBAR_WIDTH}px ${constants_2.PANEL_WIDTH}px;
|
|
25
|
+
}
|
|
26
|
+
to {
|
|
27
|
+
grid-template-columns: ${constants_2.TOOLBAR_WIDTH}px 0px;
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
const drawerOutMobile = (0, emotion_1.keyframes) `
|
|
31
|
+
from {
|
|
32
|
+
grid-template-columns: ${constants_2.TOOLBAR_WIDTH}px calc(100vw - ${constants_2.TOOLBAR_WIDTH * 2}px);
|
|
33
|
+
}
|
|
34
|
+
to {
|
|
35
|
+
grid-template-columns: ${constants_2.TOOLBAR_WIDTH}px 0px;
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
const drawerInMobile = (0, emotion_1.keyframes) `
|
|
39
|
+
from {
|
|
40
|
+
grid-template-columns: ${constants_2.TOOLBAR_WIDTH}px 1px;
|
|
41
|
+
}
|
|
42
|
+
to {
|
|
43
|
+
grid-template-columns: ${constants_2.TOOLBAR_WIDTH}px calc(100vw - ${constants_2.TOOLBAR_WIDTH * 2}px);
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
// This animation is used to animate the padding of the drawer when it closes, so that the padding does not block the content underneath it.
|
|
47
|
+
const drawerPaddingOut = (0, emotion_1.keyframes) `
|
|
48
|
+
0% {
|
|
49
|
+
padding-left: ${SHADOW_WIDTH}px;
|
|
50
|
+
}
|
|
51
|
+
99% {
|
|
52
|
+
padding-left: ${SHADOW_WIDTH}px;
|
|
53
|
+
}
|
|
54
|
+
100% {
|
|
55
|
+
padding-left: 0px;
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
const openStyles = (0, emotion_1.css) `
|
|
59
|
+
animation-name: ${drawerIn};
|
|
60
|
+
animation-fill-mode: forwards;
|
|
61
|
+
|
|
62
|
+
@media only screen and (max-width: ${MOBILE_BREAKPOINT}px) {
|
|
63
|
+
animation-name: ${drawerInMobile};
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
const closedStyles = (0, emotion_1.css) `
|
|
67
|
+
animation-name: ${drawerOut};
|
|
68
|
+
|
|
69
|
+
@media only screen and (max-width: ${MOBILE_BREAKPOINT}px) {
|
|
70
|
+
animation-name: ${drawerOutMobile};
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
const getDrawerShadowStyles = ({ theme }) => (0, emotion_1.css) `
|
|
74
|
+
${(0, tokens_1.addOverflowShadow)({ isInside: false, side: tokens_1.Side.Left, theme })};
|
|
75
|
+
|
|
76
|
+
// Need this to show the box shadow since we are using overflow: hidden
|
|
77
|
+
padding-left: ${SHADOW_WIDTH}px;
|
|
78
|
+
|
|
79
|
+
&::before {
|
|
80
|
+
transition-property: opacity;
|
|
81
|
+
transition-duration: ${drawer_styles_1.drawerTransitionDuration}ms;
|
|
82
|
+
transition-timing-function: ease-in-out;
|
|
83
|
+
opacity: 1;
|
|
84
|
+
left: ${SHADOW_WIDTH}px;
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
87
|
+
const baseStyles = (0, emotion_1.css) `
|
|
88
|
+
display: grid;
|
|
89
|
+
grid-template-columns: ${constants_2.TOOLBAR_WIDTH}px 0px;
|
|
90
|
+
grid-template-areas: '${constants_1.GRID_AREA.toolbar} ${constants_1.GRID_AREA.innerDrawer}';
|
|
91
|
+
grid-area: ${constants_1.GRID_AREA.drawer};
|
|
92
|
+
justify-self: end;
|
|
93
|
+
animation-timing-function: ease-in-out;
|
|
94
|
+
animation-duration: ${drawer_styles_1.drawerTransitionDuration}ms;
|
|
95
|
+
z-index: 0;
|
|
96
|
+
height: 100%;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
|
|
99
|
+
.${toolbar_1.toolbarClassName} {
|
|
100
|
+
grid-area: ${constants_1.GRID_AREA.toolbar};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.${drawer_styles_1.drawerClassName} {
|
|
104
|
+
grid-area: ${constants_1.GRID_AREA.innerDrawer};
|
|
105
|
+
position: unset;
|
|
106
|
+
transition: none;
|
|
107
|
+
transform: unset;
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
opacity: 1;
|
|
110
|
+
border-left: 0;
|
|
111
|
+
border-right: 0;
|
|
112
|
+
height: 100%;
|
|
113
|
+
animation: none;
|
|
114
|
+
|
|
115
|
+
> div::before {
|
|
116
|
+
box-shadow: unset;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`;
|
|
120
|
+
const closedDrawerShadowStyles = (0, emotion_1.css) `
|
|
121
|
+
padding-left: 0;
|
|
122
|
+
animation-name: ${drawerPaddingOut};
|
|
123
|
+
animation-timing-function: ease-in-out;
|
|
124
|
+
animation-duration: ${drawer_styles_1.drawerTransitionDuration}ms;
|
|
125
|
+
|
|
126
|
+
::before {
|
|
127
|
+
opacity: 0;
|
|
128
|
+
}
|
|
129
|
+
`;
|
|
130
|
+
const getDrawerWithToolbarWrapperStyles = ({ className, isDrawerOpen, shouldAnimate, displayMode, theme, }) => (0, emotion_1.cx)(baseStyles, {
|
|
131
|
+
[getDrawerShadowStyles({ theme })]: displayMode === drawer_types_1.DisplayMode.Overlay,
|
|
132
|
+
[closedDrawerShadowStyles]: displayMode === drawer_types_1.DisplayMode.Overlay && !isDrawerOpen,
|
|
133
|
+
[openStyles]: isDrawerOpen,
|
|
134
|
+
[closedStyles]: !isDrawerOpen && shouldAnimate, // This ensures that the drawer does not animate closed on initial render
|
|
135
|
+
}, className);
|
|
136
|
+
exports.getDrawerWithToolbarWrapperStyles = getDrawerWithToolbarWrapperStyles;
|
|
137
|
+
//# sourceMappingURL=drawer-with-toolbar-wrapper.styles.js.map
|
package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-with-toolbar-wrapper.styles.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.ts"],"names":[],"mappings":";;;AAAA,oDAA4D;AAE5D,kDAA6E;AAC7E,2CAAiD;AAEjD,4CAAyC;AACzC,4CAA0D;AAC1D,2DAGiC;AACjC,yDAAqD;AAErD,MAAM,iBAAiB,GAAG,oBAAW,CAAC,MAAM,CAAC;AAC7C,MAAM,YAAY,GAAG,EAAE,CAAC,CAAC,+CAA+C;AAExE,MAAM,QAAQ,GAAG,IAAA,mBAAS,EAAA;;;6BAGG,yBAAa;;;6BAGb,yBAAa,MAAM,uBAAW;;CAE1D,CAAC;AAEF,MAAM,SAAS,GAAG,IAAA,mBAAS,EAAA;;6BAEE,yBAAa,MAAM,uBAAW;;;6BAG9B,yBAAa;;CAEzC,CAAC;AAEF,MAAM,eAAe,GAAG,IAAA,mBAAS,EAAA;;6BAEJ,yBAAa,mBACxC,yBAAa,GAAG,CAClB;;;6BAG6B,yBAAa;;CAEzC,CAAC;AAEF,MAAM,cAAc,GAAG,IAAA,mBAAS,EAAA;;6BAEH,yBAAa;;;6BAGb,yBAAa,mBACxC,yBAAa,GAAG,CAClB;;CAEC,CAAC;AAEF,4IAA4I;AAC5I,MAAM,gBAAgB,GAAG,IAAA,mBAAS,EAAA;;oBAEd,YAAY;;;oBAGZ,YAAY;;;;;CAK/B,CAAC;AAEF,MAAM,UAAU,GAAG,IAAA,aAAG,EAAA;oBACF,QAAQ;;;uCAGW,iBAAiB;sBAClC,cAAc;;CAEnC,CAAC;AAEF,MAAM,YAAY,GAAG,IAAA,aAAG,EAAA;oBACJ,SAAS;;uCAEU,iBAAiB;sBAClC,eAAe;;CAEpC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA;IAC9D,IAAA,0BAAiB,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,aAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;;;kBAGhD,YAAY;;;;2BAIH,wCAAwB;;;YAGvC,YAAY;;CAEvB,CAAC;AAEF,MAAM,UAAU,GAAG,IAAA,aAAG,EAAA;;2BAEK,yBAAa;0BACd,qBAAS,CAAC,OAAO,IAAI,qBAAS,CAAC,WAAW;eACrD,qBAAS,CAAC,MAAM;;;wBAGP,wCAAwB;;;;;KAK3C,0BAAgB;iBACJ,qBAAS,CAAC,OAAO;;;KAG7B,+BAAe;iBACH,qBAAS,CAAC,WAAW;;;;;;;;;;;;;;;CAerC,CAAC;AAEF,MAAM,wBAAwB,GAAG,IAAA,aAAG,EAAA;;oBAEhB,gBAAgB;;wBAEZ,wCAAwB;;;;;CAK/C,CAAC;AAEK,MAAM,iCAAiC,GAAG,CAAC,EAChD,SAAS,EACT,YAAY,EACZ,aAAa,EACb,WAAW,EACX,KAAK,GAON,EAAE,EAAE,CACH,IAAA,YAAE,EACA,UAAU,EACV;IACE,CAAC,qBAAqB,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK,0BAAW,CAAC,OAAO;IACvE,CAAC,wBAAwB,CAAC,EACxB,WAAW,KAAK,0BAAW,CAAC,OAAO,IAAI,CAAC,YAAY;IACtD,CAAC,UAAU,CAAC,EAAE,YAAY;IAC1B,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,IAAI,aAAa,EAAE,yEAAyE;CAC1H,EACD,SAAS,CACV,CAAC;AAvBS,QAAA,iCAAiC,qCAuB1C"}
|
package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { HTMLElementProps } from '@leafygreen-ui/lib';
|
|
2
|
+
import type { DrawerProps } from '../drawer/drawer.types';
|
|
3
|
+
type PickedDrawerProps = Required<Pick<DrawerProps, 'displayMode'>>;
|
|
4
|
+
export interface DrawerWithToolbarWrapperProps extends HTMLElementProps<'div'>, PickedDrawerProps {
|
|
5
|
+
/**
|
|
6
|
+
* Determines if the Drawer instance is open or closed
|
|
7
|
+
*/
|
|
8
|
+
isDrawerOpen: boolean;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=drawer-with-toolbar-wrapper.types.d.ts.map
|
package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-with-toolbar-wrapper.types.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,KAAK,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC;AAEpE,MAAM,WAAW,6BACf,SAAQ,gBAAgB,CAAC,KAAK,CAAC,EAC7B,iBAAiB;IACnB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB"}
|
package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-with-toolbar-wrapper.types.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-with-toolbar-wrapper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DrawerWithToolbarWrapper = void 0;
|
|
4
|
+
var drawer_with_toolbar_wrapper_1 = require("./drawer-with-toolbar-wrapper");
|
|
5
|
+
Object.defineProperty(exports, "DrawerWithToolbarWrapper", { enumerable: true, get: function () { return drawer_with_toolbar_wrapper_1.DrawerWithToolbarWrapper; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer-with-toolbar-wrapper/index.ts"],"names":[],"mappings":";;;AAAA,6EAAyE;AAAhE,uIAAA,wBAAwB,OAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EmbeddedDrawerLayoutProps } from './embedded-drawer-layout.types';
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*
|
|
6
|
+
* This layout wrapper is used to create a layout that has 2 grid columns. The main content is on the left and the drawer is on the right.
|
|
7
|
+
*
|
|
8
|
+
* Since this layout is used for embedded drawers, when the drawer is open, the layout will shift to the right by the width of the drawer + toolbar if it exists.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export declare const EmbeddedDrawerLayout: React.ForwardRefExoticComponent<Omit<EmbeddedDrawerLayoutProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
//# sourceMappingURL=embedded-drawer-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedded-drawer-layout.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/embedded-drawer-layout/embedded-drawer-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,+GA0BhC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.EmbeddedDrawerLayout = void 0;
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const embedded_drawer_layout_styles_1 = require("./embedded-drawer-layout.styles");
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
*
|
|
42
|
+
* This layout wrapper is used to create a layout that has 2 grid columns. The main content is on the left and the drawer is on the right.
|
|
43
|
+
*
|
|
44
|
+
* Since this layout is used for embedded drawers, when the drawer is open, the layout will shift to the right by the width of the drawer + toolbar if it exists.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
exports.EmbeddedDrawerLayout = (0, react_1.forwardRef)(({ children, className, isDrawerOpen = false, hasToolbar = false, }, forwardedRef) => {
|
|
48
|
+
return (react_1.default.createElement("div", { ref: forwardedRef, className: (0, embedded_drawer_layout_styles_1.getEmbeddedDrawerLayoutStyles)({
|
|
49
|
+
className,
|
|
50
|
+
isDrawerOpen,
|
|
51
|
+
hasToolbar,
|
|
52
|
+
}) }, children));
|
|
53
|
+
});
|
|
54
|
+
exports.EmbeddedDrawerLayout.displayName = 'EmbeddedDrawerLayout';
|
|
55
|
+
//# sourceMappingURL=embedded-drawer-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedded-drawer-layout.js","sourceRoot":"","sources":["../../../../src/components/drawer/embedded-drawer-layout/embedded-drawer-layout.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,mFAAgF;AAGhF;;;;;;;GAOG;AACU,QAAA,oBAAoB,GAAG,IAAA,kBAAU,EAI5C,CACE,EACE,QAAQ,EACR,SAAS,EACT,YAAY,GAAG,KAAK,EACpB,UAAU,GAAG,KAAK,GACQ,EAC5B,YAAY,EACZ,EAAE;IACF,OAAO,CACL,uCACE,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,IAAA,6DAA6B,EAAC;YACvC,SAAS;YACT,YAAY;YACZ,UAAU;SACX,CAAC,IAED,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,4BAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedded-drawer-layout.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.ts"],"names":[],"mappings":"AAkDA,eAAO,MAAM,6BAA6B,GAAI,0CAI3C;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,WAUE,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEmbeddedDrawerLayoutStyles = void 0;
|
|
4
|
+
const emotion_1 = require("@leafygreen-ui/emotion");
|
|
5
|
+
const tokens_1 = require("@leafygreen-ui/tokens");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
const constants_2 = require("../constants");
|
|
8
|
+
const drawer_1 = require("../drawer");
|
|
9
|
+
const drawer_styles_1 = require("../drawer/drawer.styles");
|
|
10
|
+
const baseStyles = (0, emotion_1.css) `
|
|
11
|
+
width: 100%;
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: auto 0;
|
|
14
|
+
transition-property: grid-template-columns, grid-template-rows;
|
|
15
|
+
transition-timing-function: ease-in-out;
|
|
16
|
+
transition-duration: ${drawer_styles_1.drawerTransitionDuration}ms;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
position: relative;
|
|
19
|
+
height: 100%;
|
|
20
|
+
`;
|
|
21
|
+
const drawerBaseStyles = (0, emotion_1.css) `
|
|
22
|
+
@media only screen and (max-width: ${drawer_1.MOBILE_BREAKPOINT}px) {
|
|
23
|
+
grid-template-columns: unset;
|
|
24
|
+
grid-template-rows: 100% 0;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
// If there is no toolbar and the drawer is open, we need to shift the layout by the panel width;
|
|
28
|
+
const drawerOpenStyles = (0, emotion_1.css) `
|
|
29
|
+
grid-template-columns: auto ${constants_2.PANEL_WIDTH}px;
|
|
30
|
+
|
|
31
|
+
@media only screen and (max-width: ${drawer_1.MOBILE_BREAKPOINT}px) {
|
|
32
|
+
grid-template-rows: 50% 50%;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
const withToolbarBaseStyles = (0, emotion_1.css) `
|
|
36
|
+
grid-template-columns: auto ${constants_2.TOOLBAR_WIDTH}px;
|
|
37
|
+
grid-template-areas: '${constants_1.GRID_AREA.content} ${constants_1.GRID_AREA.drawer}';
|
|
38
|
+
`;
|
|
39
|
+
// If there is a toolbar and the drawer is open, we need to shift the layout by toolbar width + panel width;
|
|
40
|
+
const withToolbarOpenStyles = (0, emotion_1.css) `
|
|
41
|
+
grid-template-columns: auto ${constants_2.PANEL_WIDTH + constants_2.TOOLBAR_WIDTH}px;
|
|
42
|
+
|
|
43
|
+
@media only screen and (max-width: ${tokens_1.breakpoints.Tablet}px) {
|
|
44
|
+
grid-template-columns: auto ${constants_2.TOOLBAR_WIDTH}px;
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
const getEmbeddedDrawerLayoutStyles = ({ className, isDrawerOpen, hasToolbar = false, }) => (0, emotion_1.cx)(baseStyles, {
|
|
48
|
+
[withToolbarBaseStyles]: hasToolbar,
|
|
49
|
+
[withToolbarOpenStyles]: isDrawerOpen && hasToolbar,
|
|
50
|
+
[drawerBaseStyles]: !hasToolbar,
|
|
51
|
+
[drawerOpenStyles]: isDrawerOpen && !hasToolbar,
|
|
52
|
+
}, className);
|
|
53
|
+
exports.getEmbeddedDrawerLayoutStyles = getEmbeddedDrawerLayoutStyles;
|
|
54
|
+
//# sourceMappingURL=embedded-drawer-layout.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedded-drawer-layout.styles.js","sourceRoot":"","sources":["../../../../src/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.ts"],"names":[],"mappings":";;;AAAA,oDAAiD;AACjD,kDAAoD;AAEpD,4CAAyC;AACzC,4CAA0D;AAC1D,sCAA8C;AAC9C,2DAAmE;AAEnE,MAAM,UAAU,GAAG,IAAA,aAAG,EAAA;;;;;;yBAMG,wCAAwB;;;;CAIhD,CAAC;AAEF,MAAM,gBAAgB,GAAG,IAAA,aAAG,EAAA;uCACW,0BAAiB;;;;CAIvD,CAAC;AAEF,iGAAiG;AACjG,MAAM,gBAAgB,GAAG,IAAA,aAAG,EAAA;gCACI,uBAAW;;uCAEJ,0BAAiB;;;CAGvD,CAAC;AAEF,MAAM,qBAAqB,GAAG,IAAA,aAAG,EAAA;gCACD,yBAAa;0BACnB,qBAAS,CAAC,OAAO,IAAI,qBAAS,CAAC,MAAM;CAC9D,CAAC;AAEF,4GAA4G;AAC5G,MAAM,qBAAqB,GAAG,IAAA,aAAG,EAAA;gCACD,uBAAW,GAAG,yBAAa;;uCAEpB,oBAAW,CAAC,MAAM;kCACvB,yBAAa;;CAE9C,CAAC;AAEK,MAAM,6BAA6B,GAAG,CAAC,EAC5C,SAAS,EACT,YAAY,EACZ,UAAU,GAAG,KAAK,GAKnB,EAAE,EAAE,CACH,IAAA,YAAE,EACA,UAAU,EACV;IACE,CAAC,qBAAqB,CAAC,EAAE,UAAU;IACnC,CAAC,qBAAqB,CAAC,EAAE,YAAY,IAAI,UAAU;IACnD,CAAC,gBAAgB,CAAC,EAAE,CAAC,UAAU;IAC/B,CAAC,gBAAgB,CAAC,EAAE,YAAY,IAAI,CAAC,UAAU;CAChD,EACD,SAAS,CACV,CAAC;AAlBS,QAAA,6BAA6B,iCAkBtC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BaseLayoutComponentProps } from '../layout-component/layout-component.styles';
|
|
2
|
+
export type EmbeddedDrawerLayoutProps = BaseLayoutComponentProps & {
|
|
3
|
+
/**
|
|
4
|
+
* Determines if the Drawer is open. This will shift the layout to the right by the width of the drawer + toolbar if it exists if the display mode is set to 'embedded'.
|
|
5
|
+
*/
|
|
6
|
+
isDrawerOpen?: boolean;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=embedded-drawer-layout.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedded-drawer-layout.types.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAE5F,MAAM,MAAM,yBAAyB,GAAG,wBAAwB,GAAG;IACjE;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
|