@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,54 @@
|
|
|
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.OverlayDrawerLayout = void 0;
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const overlay_drawer_layout_styles_1 = require("./overlay-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 overlay drawers, when the drawer is open, the layout will not shift. Instead the shifting is handled by the children of this component.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
exports.OverlayDrawerLayout = (0, react_1.forwardRef)(({ children, className, hasToolbar = false }, forwardedRef) => {
|
|
48
|
+
return (react_1.default.createElement("div", { ref: forwardedRef, className: (0, overlay_drawer_layout_styles_1.getOverlayDrawerLayoutStyles)({
|
|
49
|
+
className,
|
|
50
|
+
hasToolbar,
|
|
51
|
+
}) }, children));
|
|
52
|
+
});
|
|
53
|
+
exports.OverlayDrawerLayout.displayName = 'OverlayDrawerLayout';
|
|
54
|
+
//# sourceMappingURL=overlay-drawer-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay-drawer-layout.js","sourceRoot":"","sources":["../../../../src/components/drawer/overlay-drawer-layout/overlay-drawer-layout.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,iFAA8E;AAG9E;;;;;;;GAOG;AACU,QAAA,mBAAmB,GAAG,IAAA,kBAAU,EAI3C,CACE,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,GAAG,KAAK,EAA4B,EACrE,YAAY,EACZ,EAAE;IACF,OAAO,CACL,uCACE,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,IAAA,2DAA4B,EAAC;YACtC,SAAS;YACT,UAAU;SACX,CAAC,IAED,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,2BAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay-drawer-layout.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,4BAA4B,GAAI,4BAG1C;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,WAQE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOverlayDrawerLayoutStyles = void 0;
|
|
4
|
+
const emotion_1 = require("@leafygreen-ui/emotion");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
|
+
const baseStyles = (0, emotion_1.css) `
|
|
7
|
+
width: 100%;
|
|
8
|
+
position: relative;
|
|
9
|
+
height: inherit;
|
|
10
|
+
`;
|
|
11
|
+
const drawerBaseStyles = (0, emotion_1.css) `
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: auto 0px;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
`;
|
|
16
|
+
const toolbarBaseStyles = (0, emotion_1.css) `
|
|
17
|
+
display: grid;
|
|
18
|
+
grid-template-columns: auto ${constants_1.TOOLBAR_WIDTH}px;
|
|
19
|
+
grid-template-areas: '${constants_1.GRID_AREA.content} ${constants_1.GRID_AREA.drawer}';
|
|
20
|
+
height: 100%;
|
|
21
|
+
`;
|
|
22
|
+
const getOverlayDrawerLayoutStyles = ({ className, hasToolbar = false, }) => (0, emotion_1.cx)(baseStyles, {
|
|
23
|
+
[toolbarBaseStyles]: hasToolbar,
|
|
24
|
+
[drawerBaseStyles]: !hasToolbar,
|
|
25
|
+
}, className);
|
|
26
|
+
exports.getOverlayDrawerLayoutStyles = getOverlayDrawerLayoutStyles;
|
|
27
|
+
//# sourceMappingURL=overlay-drawer-layout.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay-drawer-layout.styles.js","sourceRoot":"","sources":["../../../../src/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.ts"],"names":[],"mappings":";;;AAAA,oDAAiD;AAEjD,4CAAwD;AAExD,MAAM,UAAU,GAAG,IAAA,aAAG,EAAA;;;;CAIrB,CAAC;AAEF,MAAM,gBAAgB,GAAG,IAAA,aAAG,EAAA;;;;CAI3B,CAAC;AAEF,MAAM,iBAAiB,GAAG,IAAA,aAAG,EAAA;;gCAEG,yBAAa;0BACnB,qBAAS,CAAC,OAAO,IAAI,qBAAS,CAAC,MAAM;;CAE9D,CAAC;AAEK,MAAM,4BAA4B,GAAG,CAAC,EAC3C,SAAS,EACT,UAAU,GAAG,KAAK,GAInB,EAAE,EAAE,CACH,IAAA,YAAE,EACA,UAAU,EACV;IACE,CAAC,iBAAiB,CAAC,EAAE,UAAU;IAC/B,CAAC,gBAAgB,CAAC,EAAE,CAAC,UAAU;CAChC,EACD,SAAS,CACV,CAAC;AAdS,QAAA,4BAA4B,gCAcrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay-drawer-layout.types.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAE5F,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay-drawer-layout.types.js","sourceRoot":"","sources":["../../../../src/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LgIdString } from '@leafygreen-ui/lib';
|
|
2
|
+
export declare const DEFAULT_LGID_ROOT = "lg-drawer";
|
|
3
|
+
export declare const getLgIds: (root?: LgIdString) => {
|
|
4
|
+
readonly root: `lg-${string}`;
|
|
5
|
+
readonly closeButton: `lg-${string}-close_button`;
|
|
6
|
+
readonly toolbar: `lg-${string}-toolbar`;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=get-lg-ids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-lg-ids.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/utils/get-lg-ids.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAE7C,eAAO,MAAM,QAAQ,GAAI,OAAM,UAA8B;;;;CAKhD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLgIds = exports.DEFAULT_LGID_ROOT = void 0;
|
|
4
|
+
exports.DEFAULT_LGID_ROOT = 'lg-drawer';
|
|
5
|
+
const getLgIds = (root = exports.DEFAULT_LGID_ROOT) => ({
|
|
6
|
+
root,
|
|
7
|
+
closeButton: `${root}-close_button`,
|
|
8
|
+
toolbar: `${root}-toolbar`,
|
|
9
|
+
});
|
|
10
|
+
exports.getLgIds = getLgIds;
|
|
11
|
+
//# sourceMappingURL=get-lg-ids.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-lg-ids.js","sourceRoot":"","sources":["../../../../src/components/drawer/utils/get-lg-ids.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAG,WAAW,CAAC;AAEtC,MAAM,QAAQ,GAAG,CAAC,OAAmB,yBAAiB,EAAE,EAAE,CAC/D,CAAC;IACC,IAAI;IACJ,WAAW,EAAE,GAAG,IAAI,eAAe;IACnC,OAAO,EAAE,GAAG,IAAI,UAAU;CACjB,CAAA,CAAC;AALD,QAAA,QAAQ,YAKP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLgIds = exports.DEFAULT_LGID_ROOT = void 0;
|
|
4
|
+
var get_lg_ids_1 = require("./get-lg-ids");
|
|
5
|
+
Object.defineProperty(exports, "DEFAULT_LGID_ROOT", { enumerable: true, get: function () { return get_lg_ids_1.DEFAULT_LGID_ROOT; } });
|
|
6
|
+
Object.defineProperty(exports, "getLgIds", { enumerable: true, get: function () { return get_lg_ids_1.getLgIds; } });
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/drawer/utils/index.ts"],"names":[],"mappings":";;;AAAA,2CAA2D;AAAlD,+GAAA,iBAAiB,OAAA;AAAE,sGAAA,QAAQ,OAAA"}
|
|
@@ -41,5 +41,6 @@ declare const Icon: {
|
|
|
41
41
|
};
|
|
42
42
|
export { Link, Button, IconButton } from './links/link';
|
|
43
43
|
declare const TextInput: typeof LeafyGreenTextInput;
|
|
44
|
+
export { Drawer, DrawerLayout, DisplayMode as DrawerDisplayMode, DrawerStackProvider, useDrawerStackContext, useDrawerToolbarContext, type DrawerLayoutProps, } from './drawer';
|
|
44
45
|
export { AtlasNavGraphic, Badge, Banner, Card, Checkbox, Chip, Code, ConfirmationModal, ExpandedContent, HeaderCell, HeaderRow, Icon, Language, Menu, MenuItem, MenuSeparator, Modal, ModalFooter, MarketingModal, MongoDBLogoMark, MongoDBLogo, Pipeline, Popover, RadioBox, RadioBoxGroup, Radio, RadioGroup, SegmentedControl, SegmentedControlOption, Select, Option, OptionGroup, Table, TableBody, TableHead, Row, Cell, Stage, Tab, Tabs, TextArea, TextInput, Toggle, Tooltip, H1, H2, H3, Subtitle, Body, InlineCode, InlineKeyCode, Disclaimer, Overline, Label, Description, SearchInput, InfoSprinkle, flexRender, useLeafyGreenTable, getExpandedRowModel, getFilteredRowModel, type LgTableRowType, Combobox, ComboboxGroup, ComboboxOption, };
|
|
45
46
|
//# sourceMappingURL=leafygreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leafygreen.d.ts","sourceRoot":"","sources":["../../src/components/leafygreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAE,OAAO,IAAI,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Default) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.ComboboxOption = exports.ComboboxGroup = exports.Combobox = exports.getFilteredRowModel = exports.getExpandedRowModel = exports.useLeafyGreenTable = exports.flexRender = exports.InfoSprinkle = exports.SearchInput = exports.Description = exports.Label = exports.Overline = exports.Disclaimer = exports.InlineKeyCode = exports.InlineCode = exports.Body = exports.Subtitle = exports.H3 = exports.H2 = void 0;
|
|
39
|
+
exports.Tab = exports.Stage = exports.Cell = exports.Row = exports.TableHead = exports.TableBody = exports.Table = exports.OptionGroup = exports.Option = exports.Select = exports.SegmentedControlOption = exports.SegmentedControl = exports.RadioGroup = exports.Radio = exports.RadioBoxGroup = exports.RadioBox = exports.Popover = exports.Pipeline = exports.MongoDBLogo = exports.MongoDBLogoMark = exports.MarketingModal = exports.ModalFooter = exports.Modal = exports.MenuSeparator = exports.MenuItem = exports.Menu = exports.Language = exports.Icon = exports.HeaderRow = exports.HeaderCell = exports.ExpandedContent = exports.ConfirmationModal = exports.Code = exports.Chip = exports.Checkbox = exports.Card = exports.Banner = exports.Badge = exports.AtlasNavGraphic = exports.useDrawerToolbarContext = exports.useDrawerStackContext = exports.DrawerStackProvider = exports.DrawerDisplayMode = exports.DrawerLayout = exports.Drawer = exports.IconButton = exports.Button = exports.Link = exports.useMergeRefs = exports.usePrevious = void 0;
|
|
40
|
+
exports.ComboboxOption = exports.ComboboxGroup = exports.Combobox = exports.getFilteredRowModel = exports.getExpandedRowModel = exports.useLeafyGreenTable = exports.flexRender = exports.InfoSprinkle = exports.SearchInput = exports.Description = exports.Label = exports.Overline = exports.Disclaimer = exports.InlineKeyCode = exports.InlineCode = exports.Body = exports.Subtitle = exports.H3 = exports.H2 = exports.H1 = exports.Tooltip = exports.Toggle = exports.TextInput = exports.TextArea = exports.Tabs = void 0;
|
|
41
41
|
const react_1 = __importStar(require("react"));
|
|
42
42
|
// This file exports `@leafygreen-ui` components and wraps some of them.
|
|
43
43
|
// 1. Import the components we use from leafygreen.
|
|
@@ -167,4 +167,11 @@ const TextInput = react_1.default.forwardRef(function TextInput({ defaultValue,
|
|
|
167
167
|
});
|
|
168
168
|
exports.TextInput = TextInput;
|
|
169
169
|
TextInput.displayName = 'TextInput';
|
|
170
|
+
var drawer_1 = require("./drawer");
|
|
171
|
+
Object.defineProperty(exports, "Drawer", { enumerable: true, get: function () { return drawer_1.Drawer; } });
|
|
172
|
+
Object.defineProperty(exports, "DrawerLayout", { enumerable: true, get: function () { return drawer_1.DrawerLayout; } });
|
|
173
|
+
Object.defineProperty(exports, "DrawerDisplayMode", { enumerable: true, get: function () { return drawer_1.DisplayMode; } });
|
|
174
|
+
Object.defineProperty(exports, "DrawerStackProvider", { enumerable: true, get: function () { return drawer_1.DrawerStackProvider; } });
|
|
175
|
+
Object.defineProperty(exports, "useDrawerStackContext", { enumerable: true, get: function () { return drawer_1.useDrawerStackContext; } });
|
|
176
|
+
Object.defineProperty(exports, "useDrawerToolbarContext", { enumerable: true, get: function () { return drawer_1.useDrawerToolbarContext; } });
|
|
170
177
|
//# sourceMappingURL=leafygreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leafygreen.js","sourceRoot":"","sources":["../../src/components/leafygreen.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAExC,wEAAwE;AAExE,mDAAmD;AACnD,iEAAwD;
|
|
1
|
+
{"version":3,"file":"leafygreen.js","sourceRoot":"","sources":["../../src/components/leafygreen.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAExC,wEAAwE;AAExE,mDAAmD;AACnD,iEAAwD;AAgJtD,sFAhJkB,eAAK,OAgJlB;AA/IP,mEAA0D;AAgJxD,uFAh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M,OAAA;AACN,sGAAA,YAAY,OAAA;AACZ,2GAAA,WAAW,OAAqB;AAChC,6GAAA,mBAAmB,OAAA;AACnB,+GAAA,qBAAqB,OAAA;AACrB,iHAAA,uBAAuB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/toolbar/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,EAAE,CAAC;AACnB,QAAA,kBAAkB,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EACL,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useToolbarDescendantsContext = exports.ToolbarDescendantsContext = exports.useToolbarContext = exports.ToolbarContextProvider = void 0;
|
|
4
|
+
var toolbar_context_1 = require("./toolbar-context");
|
|
5
|
+
Object.defineProperty(exports, "ToolbarContextProvider", { enumerable: true, get: function () { return toolbar_context_1.ToolbarContextProvider; } });
|
|
6
|
+
Object.defineProperty(exports, "useToolbarContext", { enumerable: true, get: function () { return toolbar_context_1.useToolbarContext; } });
|
|
7
|
+
var toolbar_descendants_context_1 = require("./toolbar-descendants-context");
|
|
8
|
+
Object.defineProperty(exports, "ToolbarDescendantsContext", { enumerable: true, get: function () { return toolbar_descendants_context_1.ToolbarDescendantsContext; } });
|
|
9
|
+
Object.defineProperty(exports, "useToolbarDescendantsContext", { enumerable: true, get: function () { return toolbar_descendants_context_1.useToolbarDescendantsContext; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/toolbar/context/index.ts"],"names":[],"mappings":";;;AAAA,qDAA8E;AAArE,yHAAA,sBAAsB,OAAA;AAAE,oHAAA,iBAAiB,OAAA;AAClD,6EAGuC;AAFrC,wIAAA,yBAAyB,OAAA;AACzB,2IAAA,4BAA4B,OAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import type { ToolbarProviderProps } from './toolbar-context.types';
|
|
3
|
+
export declare const ToolbarContext: React.Context<ToolbarProviderProps>;
|
|
4
|
+
export declare const useToolbarContext: () => ToolbarProviderProps;
|
|
5
|
+
export declare const ToolbarContextProvider: ({ children, focusedIndex, shouldFocus, lgIds, handleOnIconButtonClick, darkMode, }: PropsWithChildren<ToolbarProviderProps>) => React.JSX.Element;
|
|
6
|
+
//# sourceMappingURL=toolbar-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-context.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/context/toolbar-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,KAAK,iBAAiB,EAGvB,MAAM,OAAO,CAAC;AAMf,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,cAAc,qCAKzB,CAAC;AAEH,eAAO,MAAM,iBAAiB,4BACoB,CAAC;AAEnD,eAAO,MAAM,sBAAsB,GAAI,oFAOpC,iBAAiB,CAAC,oBAAoB,CAAC,sBAiBzC,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ToolbarContextProvider = exports.useToolbarContext = exports.ToolbarContext = void 0;
|
|
40
|
+
const react_1 = __importStar(require("react"));
|
|
41
|
+
const leafygreen_provider_1 = __importDefault(require("@leafygreen-ui/leafygreen-provider"));
|
|
42
|
+
const utils_1 = require("../utils");
|
|
43
|
+
exports.ToolbarContext = (0, react_1.createContext)({
|
|
44
|
+
focusedIndex: undefined,
|
|
45
|
+
shouldFocus: false,
|
|
46
|
+
lgIds: (0, utils_1.getLgIds)(),
|
|
47
|
+
handleOnIconButtonClick: () => { },
|
|
48
|
+
});
|
|
49
|
+
const useToolbarContext = () => (0, react_1.useContext)(exports.ToolbarContext);
|
|
50
|
+
exports.useToolbarContext = useToolbarContext;
|
|
51
|
+
const ToolbarContextProvider = ({ children, focusedIndex, shouldFocus, lgIds, handleOnIconButtonClick, darkMode = false, }) => {
|
|
52
|
+
const ToolbarProvider = exports.ToolbarContext.Provider;
|
|
53
|
+
const toolbarProviderData = (0, react_1.useMemo)(() => {
|
|
54
|
+
return {
|
|
55
|
+
focusedIndex,
|
|
56
|
+
shouldFocus,
|
|
57
|
+
lgIds,
|
|
58
|
+
handleOnIconButtonClick,
|
|
59
|
+
};
|
|
60
|
+
}, [focusedIndex, shouldFocus, lgIds, handleOnIconButtonClick]);
|
|
61
|
+
return (react_1.default.createElement(leafygreen_provider_1.default, { darkMode: darkMode },
|
|
62
|
+
react_1.default.createElement(ToolbarProvider, { value: toolbarProviderData }, children)));
|
|
63
|
+
};
|
|
64
|
+
exports.ToolbarContextProvider = ToolbarContextProvider;
|
|
65
|
+
//# sourceMappingURL=toolbar-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-context.js","sourceRoot":"","sources":["../../../../src/components/toolbar/context/toolbar-context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAKe;AAEf,6FAAoE;AAEpE,oCAAoC;AAIvB,QAAA,cAAc,GAAG,IAAA,qBAAa,EAAuB;IAChE,YAAY,EAAE,SAAS;IACvB,WAAW,EAAE,KAAK;IAClB,KAAK,EAAE,IAAA,gBAAQ,GAAE;IACjB,uBAAuB,EAAE,GAAG,EAAE,GAAE,CAAC;CAClC,CAAC,CAAC;AAEI,MAAM,iBAAiB,GAAG,GAAG,EAAE,CACpC,IAAA,kBAAU,EAAuB,sBAAc,CAAC,CAAC;AADtC,QAAA,iBAAiB,qBACqB;AAE5C,MAAM,sBAAsB,GAAG,CAAC,EACrC,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,KAAK,EACL,uBAAuB,EACvB,QAAQ,GAAG,KAAK,GACwB,EAAE,EAAE;IAC5C,MAAM,eAAe,GAAG,sBAAc,CAAC,QAAQ,CAAC;IAEhD,MAAM,mBAAmB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACvC,OAAO;YACL,YAAY;YACZ,WAAW;YACX,KAAK;YACL,uBAAuB;SACxB,CAAC;IACJ,CAAC,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,uBAAuB,CAAC,CAAC,CAAC;IAEhE,OAAO,CACL,8BAAC,6BAAkB,IAAC,QAAQ,EAAE,QAAQ;QACpC,8BAAC,eAAe,IAAC,KAAK,EAAE,mBAAmB,IAAG,QAAQ,CAAmB,CACtD,CACtB,CAAC;AACJ,CAAC,CAAC;AAxBW,QAAA,sBAAsB,0BAwBjC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DarkModeProps } from '@leafygreen-ui/lib';
|
|
2
|
+
import type { GetLgIdsReturnType } from '../utils';
|
|
3
|
+
export type ToolbarProviderProps = DarkModeProps & {
|
|
4
|
+
/**
|
|
5
|
+
* The index of the currently focused item in the toolbar.
|
|
6
|
+
*/
|
|
7
|
+
focusedIndex?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the toolbar should focus the currently focused item. This will prevent this component from hijacking focus on initial page load.
|
|
10
|
+
*/
|
|
11
|
+
shouldFocus?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* LGIDs for Toolbar components.
|
|
14
|
+
*/
|
|
15
|
+
lgIds: GetLgIdsReturnType;
|
|
16
|
+
/**
|
|
17
|
+
* Callback to handle clicks on ToolbarIconButtons.
|
|
18
|
+
*/
|
|
19
|
+
handleOnIconButtonClick: (event: React.MouseEvent<HTMLButtonElement>, focusedIndex: number, onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void) => void;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=toolbar-context.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-context.types.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/context/toolbar-context.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,KAAK,EAAE,kBAAkB,CAAC;IAE1B;;OAEG;IACH,uBAAuB,EAAE,CACvB,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAC1C,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,KACvD,IAAI,CAAC;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-context.types.js","sourceRoot":"","sources":["../../../../src/components/toolbar/context/toolbar-context.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ToolbarDescendantsContext: import("@leafygreen-ui/descendants/dist/Descendants/DescendantsContext").DescendantContextType<HTMLButtonElement>;
|
|
2
|
+
export declare function useToolbarDescendantsContext(): {
|
|
3
|
+
descendants: import("@leafygreen-ui/descendants").DescendantsList<HTMLButtonElement>;
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=toolbar-descendants-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-descendants-context.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/context/toolbar-descendants-context.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB,mHACoC,CAAC;AAE3E,wBAAgB,4BAA4B;;EAE3C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToolbarDescendantsContext = void 0;
|
|
4
|
+
exports.useToolbarDescendantsContext = useToolbarDescendantsContext;
|
|
5
|
+
const descendants_1 = require("@leafygreen-ui/descendants");
|
|
6
|
+
exports.ToolbarDescendantsContext = (0, descendants_1.createDescendantsContext)('ToolbarDescendantsContext');
|
|
7
|
+
function useToolbarDescendantsContext() {
|
|
8
|
+
return (0, descendants_1.useDescendantsContext)(exports.ToolbarDescendantsContext);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=toolbar-descendants-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-descendants-context.js","sourceRoot":"","sources":["../../../../src/components/toolbar/context/toolbar-descendants-context.tsx"],"names":[],"mappings":";;;AAQA,oEAEC;AAVD,4DAGoC;AAEvB,QAAA,yBAAyB,GACpC,IAAA,sCAAwB,EAAoB,2BAA2B,CAAC,CAAC;AAE3E,SAAgB,4BAA4B;IAC1C,OAAO,IAAA,mCAAqB,EAAC,iCAAyB,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './constants';
|
|
2
|
+
export { Toolbar, toolbarClassName, type ToolbarProps } from './toolbar';
|
|
3
|
+
export { ToolbarIconButton, type ToolbarIconButtonProps, } from './toolbar-icon-button';
|
|
4
|
+
export { DEFAULT_LGID_ROOT, getLgIds, type GetLgIdsReturnType } from './utils';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.getLgIds = exports.DEFAULT_LGID_ROOT = exports.ToolbarIconButton = exports.toolbarClassName = exports.Toolbar = void 0;
|
|
18
|
+
__exportStar(require("./constants"), exports);
|
|
19
|
+
var toolbar_1 = require("./toolbar");
|
|
20
|
+
Object.defineProperty(exports, "Toolbar", { enumerable: true, get: function () { return toolbar_1.Toolbar; } });
|
|
21
|
+
Object.defineProperty(exports, "toolbarClassName", { enumerable: true, get: function () { return toolbar_1.toolbarClassName; } });
|
|
22
|
+
var toolbar_icon_button_1 = require("./toolbar-icon-button");
|
|
23
|
+
Object.defineProperty(exports, "ToolbarIconButton", { enumerable: true, get: function () { return toolbar_icon_button_1.ToolbarIconButton; } });
|
|
24
|
+
var utils_1 = require("./utils");
|
|
25
|
+
Object.defineProperty(exports, "DEFAULT_LGID_ROOT", { enumerable: true, get: function () { return utils_1.DEFAULT_LGID_ROOT; } });
|
|
26
|
+
Object.defineProperty(exports, "getLgIds", { enumerable: true, get: function () { return utils_1.getLgIds; } });
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/toolbar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,qCAAyE;AAAhE,kGAAA,OAAO,OAAA;AAAE,2GAAA,gBAAgB,OAAA;AAClC,6DAG+B;AAF7B,wHAAA,iBAAiB,OAAA;AAGnB,iCAA+E;AAAtE,0GAAA,iBAAiB,OAAA;AAAE,iGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toolbarClassName = exports.Toolbar = void 0;
|
|
4
|
+
var toolbar_1 = require("./toolbar");
|
|
5
|
+
Object.defineProperty(exports, "Toolbar", { enumerable: true, get: function () { return toolbar_1.Toolbar; } });
|
|
6
|
+
var toolbar_styles_1 = require("./toolbar.styles");
|
|
7
|
+
Object.defineProperty(exports, "toolbarClassName", { enumerable: true, get: function () { return toolbar_styles_1.toolbarClassName; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar/index.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,mDAAoD;AAA3C,kHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar/toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAaxC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,OAAO,kGA+FnB,CAAC"}
|