@mongodb-js/compass-components 1.52.1 → 1.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/drawer-portal.d.ts +8 -5
- package/lib/components/drawer-portal.d.ts.map +1 -1
- package/lib/components/drawer-portal.js +105 -28
- package/lib/components/drawer-portal.js.map +1 -1
- package/lib/components/guide-cue/guide-cue.d.ts +3 -2
- package/lib/components/guide-cue/guide-cue.d.ts.map +1 -1
- package/lib/components/guide-cue/guide-cue.js +3 -3
- package/lib/components/guide-cue/guide-cue.js.map +1 -1
- package/lib/components/leafygreen.d.ts +0 -1
- package/lib/components/leafygreen.d.ts.map +1 -1
- package/lib/components/leafygreen.js +2 -4
- package/lib/components/leafygreen.js.map +1 -1
- package/package.json +4 -4
- package/lib/components/drawer/constants.d.ts +0 -9
- package/lib/components/drawer/constants.d.ts.map +0 -1
- package/lib/components/drawer/constants.js +0 -13
- package/lib/components/drawer/constants.js.map +0 -1
- package/lib/components/drawer/drawer/drawer.constants.d.ts +0 -3
- package/lib/components/drawer/drawer/drawer.constants.d.ts.map +0 -1
- package/lib/components/drawer/drawer/drawer.constants.js +0 -6
- package/lib/components/drawer/drawer/drawer.constants.js.map +0 -1
- package/lib/components/drawer/drawer/drawer.d.ts +0 -4
- package/lib/components/drawer/drawer/drawer.d.ts.map +0 -1
- package/lib/components/drawer/drawer/drawer.js +0 -143
- package/lib/components/drawer/drawer/drawer.js.map +0 -1
- package/lib/components/drawer/drawer/drawer.styles.d.ts +0 -29
- package/lib/components/drawer/drawer/drawer.styles.d.ts.map +0 -1
- package/lib/components/drawer/drawer/drawer.styles.js +0 -174
- package/lib/components/drawer/drawer/drawer.styles.js.map +0 -1
- package/lib/components/drawer/drawer/drawer.types.d.ts +0 -40
- package/lib/components/drawer/drawer/drawer.types.d.ts.map +0 -1
- package/lib/components/drawer/drawer/drawer.types.js +0 -13
- package/lib/components/drawer/drawer/drawer.types.js.map +0 -1
- package/lib/components/drawer/drawer/index.d.ts +0 -5
- package/lib/components/drawer/drawer/index.d.ts.map +0 -1
- package/lib/components/drawer/drawer/index.js +0 -12
- package/lib/components/drawer/drawer/index.js.map +0 -1
- package/lib/components/drawer/drawer-layout/drawer-layout.d.ts +0 -17
- package/lib/components/drawer/drawer-layout/drawer-layout.d.ts.map +0 -1
- package/lib/components/drawer/drawer-layout/drawer-layout.js +0 -57
- package/lib/components/drawer/drawer-layout/drawer-layout.js.map +0 -1
- package/lib/components/drawer/drawer-layout/drawer-layout.types.d.ts +0 -34
- package/lib/components/drawer/drawer-layout/drawer-layout.types.d.ts.map +0 -1
- package/lib/components/drawer/drawer-layout/drawer-layout.types.js +0 -3
- package/lib/components/drawer/drawer-layout/drawer-layout.types.js.map +0 -1
- package/lib/components/drawer/drawer-layout/index.d.ts +0 -3
- package/lib/components/drawer/drawer-layout/index.d.ts.map +0 -1
- package/lib/components/drawer/drawer-layout/index.js +0 -6
- package/lib/components/drawer/drawer-layout/index.js.map +0 -1
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.d.ts +0 -8
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.d.ts.map +0 -1
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.js +0 -71
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.js.map +0 -1
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.d.ts +0 -21
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.d.ts.map +0 -1
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.js +0 -3
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.js.map +0 -1
- package/lib/components/drawer/drawer-stack-context/index.d.ts +0 -3
- package/lib/components/drawer/drawer-stack-context/index.d.ts.map +0 -1
- package/lib/components/drawer/drawer-stack-context/index.js +0 -8
- package/lib/components/drawer/drawer-stack-context/index.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.d.ts +0 -6
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.js +0 -85
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.d.ts +0 -37
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.js +0 -3
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-context/index.d.ts +0 -2
- package/lib/components/drawer/drawer-toolbar-context/index.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-context/index.js +0 -7
- package/lib/components/drawer/drawer-toolbar-context/index.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.d.ts +0 -18
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.js +0 -86
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.d.ts +0 -15
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.js +0 -50
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.d.ts +0 -2
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.js +0 -11
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.d.ts +0 -44
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.js +0 -3
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/index.d.ts +0 -3
- package/lib/components/drawer/drawer-toolbar-layout/index.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/index.js +0 -6
- package/lib/components/drawer/drawer-toolbar-layout/index.js.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.d.ts +0 -11
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.d.ts.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.js +0 -63
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.js.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.d.ts +0 -10
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.d.ts.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.js +0 -137
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.js.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.d.ts +0 -11
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.d.ts.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.js +0 -3
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.js.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.d.ts +0 -2
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.d.ts.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.js +0 -6
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.js.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.d.ts +0 -12
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.d.ts.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.js +0 -55
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.js.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.d.ts +0 -6
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.d.ts.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.js +0 -54
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.js.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.d.ts +0 -8
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.d.ts.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.js +0 -3
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.js.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/index.d.ts +0 -3
- package/lib/components/drawer/embedded-drawer-layout/index.d.ts.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/index.js +0 -6
- package/lib/components/drawer/embedded-drawer-layout/index.js.map +0 -1
- package/lib/components/drawer/index.d.ts +0 -6
- package/lib/components/drawer/index.d.ts.map +0 -1
- package/lib/components/drawer/index.js +0 -17
- package/lib/components/drawer/index.js.map +0 -1
- package/lib/components/drawer/layout-component/index.d.ts +0 -3
- package/lib/components/drawer/layout-component/index.d.ts.map +0 -1
- package/lib/components/drawer/layout-component/index.js +0 -6
- package/lib/components/drawer/layout-component/index.js.map +0 -1
- package/lib/components/drawer/layout-component/layout-component.d.ts +0 -18
- package/lib/components/drawer/layout-component/layout-component.d.ts.map +0 -1
- package/lib/components/drawer/layout-component/layout-component.js +0 -53
- package/lib/components/drawer/layout-component/layout-component.js.map +0 -1
- package/lib/components/drawer/layout-component/layout-component.styles.d.ts +0 -20
- package/lib/components/drawer/layout-component/layout-component.styles.d.ts.map +0 -1
- package/lib/components/drawer/layout-component/layout-component.styles.js +0 -3
- package/lib/components/drawer/layout-component/layout-component.styles.js.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/index.d.ts +0 -3
- package/lib/components/drawer/overlay-drawer-layout/index.d.ts.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/index.js +0 -6
- package/lib/components/drawer/overlay-drawer-layout/index.js.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.d.ts +0 -11
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.d.ts.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.js +0 -54
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.js.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.d.ts +0 -5
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.d.ts.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.js +0 -27
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.js.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.d.ts +0 -3
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.d.ts.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.js +0 -3
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.js.map +0 -1
- package/lib/components/drawer/utils/get-lg-ids.d.ts +0 -8
- package/lib/components/drawer/utils/get-lg-ids.d.ts.map +0 -1
- package/lib/components/drawer/utils/get-lg-ids.js +0 -11
- package/lib/components/drawer/utils/get-lg-ids.js.map +0 -1
- package/lib/components/drawer/utils/index.d.ts +0 -2
- package/lib/components/drawer/utils/index.d.ts.map +0 -1
- package/lib/components/drawer/utils/index.js +0 -7
- package/lib/components/drawer/utils/index.js.map +0 -1
- package/lib/components/toolbar/constants.d.ts +0 -3
- package/lib/components/toolbar/constants.d.ts.map +0 -1
- package/lib/components/toolbar/constants.js +0 -6
- package/lib/components/toolbar/constants.js.map +0 -1
- package/lib/components/toolbar/context/index.d.ts +0 -3
- package/lib/components/toolbar/context/index.d.ts.map +0 -1
- package/lib/components/toolbar/context/index.js +0 -10
- package/lib/components/toolbar/context/index.js.map +0 -1
- package/lib/components/toolbar/context/toolbar-context.d.ts +0 -6
- package/lib/components/toolbar/context/toolbar-context.d.ts.map +0 -1
- package/lib/components/toolbar/context/toolbar-context.js +0 -65
- package/lib/components/toolbar/context/toolbar-context.js.map +0 -1
- package/lib/components/toolbar/context/toolbar-context.types.d.ts +0 -21
- package/lib/components/toolbar/context/toolbar-context.types.d.ts.map +0 -1
- package/lib/components/toolbar/context/toolbar-context.types.js +0 -3
- package/lib/components/toolbar/context/toolbar-context.types.js.map +0 -1
- package/lib/components/toolbar/context/toolbar-descendants-context.d.ts +0 -5
- package/lib/components/toolbar/context/toolbar-descendants-context.d.ts.map +0 -1
- package/lib/components/toolbar/context/toolbar-descendants-context.js +0 -10
- package/lib/components/toolbar/context/toolbar-descendants-context.js.map +0 -1
- package/lib/components/toolbar/index.d.ts +0 -5
- package/lib/components/toolbar/index.d.ts.map +0 -1
- package/lib/components/toolbar/index.js +0 -27
- package/lib/components/toolbar/index.js.map +0 -1
- package/lib/components/toolbar/toolbar/index.d.ts +0 -4
- package/lib/components/toolbar/toolbar/index.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar/index.js +0 -8
- package/lib/components/toolbar/toolbar/index.js.map +0 -1
- package/lib/components/toolbar/toolbar/toolbar.d.ts +0 -4
- package/lib/components/toolbar/toolbar/toolbar.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar/toolbar.js +0 -93
- package/lib/components/toolbar/toolbar/toolbar.js.map +0 -1
- package/lib/components/toolbar/toolbar/toolbar.styles.d.ts +0 -7
- package/lib/components/toolbar/toolbar/toolbar.styles.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar/toolbar.styles.js +0 -26
- package/lib/components/toolbar/toolbar/toolbar.styles.js.map +0 -1
- package/lib/components/toolbar/toolbar/toolbar.types.d.ts +0 -6
- package/lib/components/toolbar/toolbar/toolbar.types.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar/toolbar.types.js +0 -3
- package/lib/components/toolbar/toolbar/toolbar.types.js.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/index.d.ts +0 -3
- package/lib/components/toolbar/toolbar-icon-button/index.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/index.js +0 -6
- package/lib/components/toolbar/toolbar-icon-button/index.js.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.d.ts +0 -4
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.js +0 -77
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.js.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.d.ts +0 -13
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.js +0 -38
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.js.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.d.ts +0 -19
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.js +0 -3
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.js.map +0 -1
- package/lib/components/toolbar/utils/get-lg-ids.d.ts +0 -8
- package/lib/components/toolbar/utils/get-lg-ids.d.ts.map +0 -1
- package/lib/components/toolbar/utils/get-lg-ids.js +0 -14
- package/lib/components/toolbar/utils/get-lg-ids.js.map +0 -1
- package/lib/components/toolbar/utils/index.d.ts +0 -2
- package/lib/components/toolbar/utils/index.d.ts.map +0 -1
- package/lib/components/toolbar/utils/index.js +0 -7
- package/lib/components/toolbar/utils/index.js.map +0 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DisplayMode as DrawerDisplayMode, type DrawerLayoutProps } from '
|
|
3
|
-
type
|
|
2
|
+
import { DisplayMode as DrawerDisplayMode, type DrawerLayoutProps } from '@leafygreen-ui/drawer';
|
|
3
|
+
import { type GuideCueProps } from './guide-cue/guide-cue';
|
|
4
|
+
type ToolbarData = Required<DrawerLayoutProps>['toolbarData'];
|
|
5
|
+
type SectionData = ToolbarData[number];
|
|
4
6
|
type DrawerSectionProps = Omit<SectionData, 'content' | 'onClick'> & {
|
|
7
|
+
title: React.ReactNode;
|
|
5
8
|
/**
|
|
6
9
|
* If `true` will automatically open the section when first mounted. Default: `false`
|
|
7
10
|
*/
|
|
@@ -11,6 +14,7 @@ type DrawerSectionProps = Omit<SectionData, 'content' | 'onClick'> & {
|
|
|
11
14
|
* provided will stay unordered at the bottom of the list
|
|
12
15
|
*/
|
|
13
16
|
order?: number;
|
|
17
|
+
guideCue?: GuideCueProps<HTMLButtonElement>;
|
|
14
18
|
};
|
|
15
19
|
/**
|
|
16
20
|
* Drawer component that keeps track of drawer rendering state and provides
|
|
@@ -50,9 +54,7 @@ export declare const DrawerContentProvider: React.FunctionComponent;
|
|
|
50
54
|
* DrawerAnchor component will render the drawer in any place it is rendered.
|
|
51
55
|
* This component has to wrap any content that Drawer will be shown near
|
|
52
56
|
*/
|
|
53
|
-
export declare const DrawerAnchor: React.FunctionComponent
|
|
54
|
-
displayMode?: DrawerDisplayMode;
|
|
55
|
-
}>;
|
|
57
|
+
export declare const DrawerAnchor: React.FunctionComponent;
|
|
56
58
|
/**
|
|
57
59
|
* DrawerSection allows to declaratively render sections inside the drawer
|
|
58
60
|
* independantly from the Drawer itself
|
|
@@ -66,4 +68,5 @@ export declare function useDrawerActions(): {
|
|
|
66
68
|
export declare const useDrawerState: () => {
|
|
67
69
|
isDrawerOpen: boolean;
|
|
68
70
|
};
|
|
71
|
+
export { getLgIds as getDrawerIds } from '@leafygreen-ui/drawer';
|
|
69
72
|
//# sourceMappingURL=drawer-portal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer-portal.d.ts","sourceRoot":"","sources":["../../src/components/drawer-portal.tsx"],"names":[],"mappings":"AACA,OAAO,KAON,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"drawer-portal.d.ts","sourceRoot":"","sources":["../../src/components/drawer-portal.tsx"],"names":[],"mappings":"AACA,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,WAAW,IAAI,iBAAiB,EAEhC,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGrE,KAAK,WAAW,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC,aAAa,CAAC,CAAC;AAE9D,KAAK,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAEvC,KAAK,kBAAkB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,SAAS,CAAC,GAAG;IAKnE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CAC7C,CAAC;AAgCF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,iBA0CzC,CAAC;AAgFF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAsIhC,CAAC;AAWF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CA+DrE,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,wBAAgB,gBAAgB;qBAGX,MAAM;;EAU1B;AAED,eAAO,MAAM,cAAc;;CAS1B,CAAC;AAEF,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -36,15 +36,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.useDrawerState = exports.DrawerDisplayMode = exports.DrawerSection = exports.DrawerAnchor = exports.DrawerContentProvider = void 0;
|
|
39
|
+
exports.getDrawerIds = exports.useDrawerState = exports.DrawerDisplayMode = exports.DrawerSection = exports.DrawerAnchor = exports.DrawerContentProvider = void 0;
|
|
40
40
|
exports.useDrawerActions = useDrawerActions;
|
|
41
41
|
const react_dom_1 = __importDefault(require("react-dom"));
|
|
42
42
|
const react_1 = __importStar(require("react"));
|
|
43
|
-
const drawer_1 = require("
|
|
43
|
+
const drawer_1 = require("@leafygreen-ui/drawer");
|
|
44
44
|
Object.defineProperty(exports, "DrawerDisplayMode", { enumerable: true, get: function () { return drawer_1.DisplayMode; } });
|
|
45
45
|
const emotion_1 = require("@leafygreen-ui/emotion");
|
|
46
46
|
const lodash_1 = require("lodash");
|
|
47
47
|
const rafraf_1 = require("../utils/rafraf");
|
|
48
|
+
const guide_cue_1 = require("./guide-cue/guide-cue");
|
|
49
|
+
const tokens_1 = require("@leafygreen-ui/tokens");
|
|
48
50
|
const DrawerStateContext = react_1.default.createContext([]);
|
|
49
51
|
const DrawerOpenStateContext = react_1.default.createContext(false);
|
|
50
52
|
const DrawerSetOpenStateContext = react_1.default.createContext(() => { });
|
|
@@ -144,20 +146,17 @@ const drawerLayoutFixesStyles = (0, emotion_1.css)({
|
|
|
144
146
|
overflow: 'auto',
|
|
145
147
|
},
|
|
146
148
|
// drawer section
|
|
147
|
-
'& > div:nth-child(2)': {
|
|
148
|
-
|
|
149
|
+
'& > div:nth-child(2) > div': {
|
|
150
|
+
// hiding the border border as we already have one in the place where the
|
|
151
|
+
// Anchor is currently rendered
|
|
152
|
+
borderTop: 'none',
|
|
153
|
+
borderBottom: 'none',
|
|
149
154
|
},
|
|
150
|
-
//
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
// that LG team provides a better one for us to achieve this behavior when
|
|
156
|
-
// we're removing the vendored version of the drawer
|
|
157
|
-
'& > div:nth-child(2) > div:nth-child(2) > div:first-child > div:first-child > div:first-child > div:first-child': {
|
|
158
|
-
flex: 'none',
|
|
159
|
-
width: 'calc(100% - 28px)', // disallow going over the title size (100 - close button width)
|
|
160
|
-
overflow: 'hidden',
|
|
155
|
+
// drawer content > title content
|
|
156
|
+
'& > div:nth-child(2) > div:nth-child(2) > div:nth-child(2) > div:first-child > div:first-child > div:first-child': {
|
|
157
|
+
// fix for the flex parent not allowing flex children to collapse if they
|
|
158
|
+
// are overflowing the container
|
|
159
|
+
minWidth: 0,
|
|
161
160
|
},
|
|
162
161
|
});
|
|
163
162
|
const emptyDrawerLayoutFixesStyles = (0, emotion_1.css)({
|
|
@@ -185,11 +184,20 @@ const drawerSectionPortalStyles = (0, emotion_1.css)({
|
|
|
185
184
|
minHeight: '100%',
|
|
186
185
|
height: '100%',
|
|
187
186
|
});
|
|
187
|
+
// Leafygreen dynamically changes styles of the title group based on whether or
|
|
188
|
+
// not title is a `string` or a `ReactNode`, we want it to consistently have
|
|
189
|
+
// bold title styles no matter what title you provided, so we wrap it in our own
|
|
190
|
+
// container
|
|
191
|
+
const drawerTitleGroupStyles = (0, emotion_1.css)({
|
|
192
|
+
width: '100%',
|
|
193
|
+
fontSize: tokens_1.BaseFontSize.Body2,
|
|
194
|
+
fontWeight: tokens_1.fontWeights.bold,
|
|
195
|
+
});
|
|
188
196
|
/**
|
|
189
197
|
* DrawerAnchor component will render the drawer in any place it is rendered.
|
|
190
198
|
* This component has to wrap any content that Drawer will be shown near
|
|
191
199
|
*/
|
|
192
|
-
const DrawerAnchor = ({
|
|
200
|
+
const DrawerAnchor = ({ children }) => {
|
|
193
201
|
const actions = (0, react_1.useContext)(DrawerActionsContext);
|
|
194
202
|
const drawerSectionItems = (0, react_1.useContext)(DrawerStateContext);
|
|
195
203
|
const prevDrawerSectionItems = (0, react_1.useRef)([]);
|
|
@@ -210,7 +218,9 @@ const DrawerAnchor = ({ displayMode, children }) => {
|
|
|
210
218
|
return drawerSectionItems
|
|
211
219
|
.map((data) => {
|
|
212
220
|
return {
|
|
221
|
+
hasPadding: false,
|
|
213
222
|
...data,
|
|
223
|
+
title: (react_1.default.createElement("div", { key: data.id, className: drawerTitleGroupStyles }, data.title)),
|
|
214
224
|
content: (react_1.default.createElement("div", { key: data.id, "data-drawer-section": data.id, className: drawerSectionPortalStyles })),
|
|
215
225
|
};
|
|
216
226
|
})
|
|
@@ -218,19 +228,73 @@ const DrawerAnchor = ({ displayMode, children }) => {
|
|
|
218
228
|
return orderB < orderA ? 1 : orderB > orderA ? -1 : 0;
|
|
219
229
|
});
|
|
220
230
|
}, [drawerSectionItems]);
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
231
|
+
const [toolbarIconNodes, setToolbarIconNodes] = (0, react_1.useState)({});
|
|
232
|
+
(0, react_1.useLayoutEffect)(function () {
|
|
233
|
+
const drawerEl = document.querySelector('.compass-drawer-anchor');
|
|
234
|
+
if (!drawerEl) {
|
|
235
|
+
throw new Error('Can not use DrawerSection without DrawerAnchor being mounted on the page');
|
|
236
|
+
}
|
|
237
|
+
function check() {
|
|
238
|
+
if (!drawerEl) {
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
const nodes = {};
|
|
242
|
+
for (const item of toolbarData) {
|
|
243
|
+
if (!item.guideCue) {
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
const button = drawerEl.querySelector(`button[aria-label="${item.label}"]`);
|
|
247
|
+
if (button) {
|
|
248
|
+
nodes[item.id] = button;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
setToolbarIconNodes((oldNodes) => {
|
|
252
|
+
// account for removed nodes by checking all keys of both old and new
|
|
253
|
+
for (const id of Object.keys({ ...oldNodes, ...nodes })) {
|
|
254
|
+
if (nodes[id] !== oldNodes[id]) {
|
|
255
|
+
return nodes;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return oldNodes;
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
check();
|
|
262
|
+
const mutationObserver = new MutationObserver(() => {
|
|
263
|
+
check();
|
|
264
|
+
});
|
|
265
|
+
// use a mutation observer because at least in unit tests the button
|
|
266
|
+
// elements don't exist immediately
|
|
267
|
+
mutationObserver.observe(drawerEl, {
|
|
268
|
+
subtree: true,
|
|
269
|
+
childList: true,
|
|
270
|
+
});
|
|
271
|
+
return () => {
|
|
272
|
+
mutationObserver.disconnect();
|
|
273
|
+
};
|
|
274
|
+
}, [toolbarData]);
|
|
275
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
276
|
+
toolbarData.map((item) => {
|
|
277
|
+
return (toolbarIconNodes[item.id] &&
|
|
278
|
+
item.guideCue && (react_1.default.createElement(guide_cue_1.GuideCue, { key: item.id, ...item.guideCue, triggerNode: toolbarIconNodes[item.id] })));
|
|
279
|
+
}),
|
|
280
|
+
react_1.default.createElement(drawer_1.DrawerLayout, { displayMode: drawer_1.DisplayMode.Embedded, resizable: true, toolbarData: toolbarData, className: (0, emotion_1.cx)(drawerLayoutFixesStyles, toolbarData.length === 0 && emptyDrawerLayoutFixesStyles,
|
|
281
|
+
// classname is the only property leafygreen passes over to the drawer
|
|
282
|
+
// wrapper component that would allow us to target it
|
|
283
|
+
'compass-drawer-anchor') },
|
|
284
|
+
react_1.default.createElement(DrawerContextGrabber, null, children))));
|
|
226
285
|
};
|
|
227
286
|
exports.DrawerAnchor = DrawerAnchor;
|
|
287
|
+
function querySectionPortal(parent, id) {
|
|
288
|
+
return (parent?.querySelector(`[data-drawer-section${id ? `=${id}` : ''}]`) ?? null);
|
|
289
|
+
}
|
|
228
290
|
/**
|
|
229
291
|
* DrawerSection allows to declaratively render sections inside the drawer
|
|
230
292
|
* independantly from the Drawer itself
|
|
231
293
|
*/
|
|
232
294
|
const DrawerSection = ({ children, ...props }) => {
|
|
233
|
-
const [portalNode, setPortalNode] = (0, react_1.useState)(
|
|
295
|
+
const [portalNode, setPortalNode] = (0, react_1.useState)(() => {
|
|
296
|
+
return querySectionPortal(document, props.id);
|
|
297
|
+
});
|
|
234
298
|
const actions = (0, react_1.useContext)(DrawerActionsContext);
|
|
235
299
|
const prevProps = (0, react_1.useRef)();
|
|
236
300
|
(0, react_1.useEffect)(() => {
|
|
@@ -244,12 +308,21 @@ const DrawerSection = ({ children, ...props }) => {
|
|
|
244
308
|
if (!drawerEl) {
|
|
245
309
|
throw new Error('Can not use DrawerSection without DrawerAnchor being mounted on the page');
|
|
246
310
|
}
|
|
247
|
-
setPortalNode(
|
|
311
|
+
setPortalNode(querySectionPortal(drawerEl, props.id));
|
|
248
312
|
const mutationObserver = new MutationObserver((mutations) => {
|
|
249
313
|
for (const mutation of mutations) {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
314
|
+
if (mutation.type === 'childList') {
|
|
315
|
+
for (const node of Array.from(mutation.addedNodes)) {
|
|
316
|
+
// Added node can be either the drawer section portal itself, a
|
|
317
|
+
// parent node containing the section (in that case we won't get an
|
|
318
|
+
// explicit mutation for the section itself), or something
|
|
319
|
+
// completely unrelated, like a text node insert. By searching for
|
|
320
|
+
// the section portal from added node parent element we cover all
|
|
321
|
+
// these cases in one go
|
|
322
|
+
const drawerSectionNode = querySectionPortal(node.parentElement, props.id);
|
|
323
|
+
if (drawerSectionNode) {
|
|
324
|
+
setPortalNode(drawerSectionNode);
|
|
325
|
+
}
|
|
253
326
|
}
|
|
254
327
|
}
|
|
255
328
|
}
|
|
@@ -261,7 +334,7 @@ const DrawerSection = ({ children, ...props }) => {
|
|
|
261
334
|
return () => {
|
|
262
335
|
mutationObserver.disconnect();
|
|
263
336
|
};
|
|
264
|
-
}, [
|
|
337
|
+
}, [props.id]);
|
|
265
338
|
(0, react_1.useEffect)(() => {
|
|
266
339
|
return () => {
|
|
267
340
|
actions.current.removeToolbarData(props.id);
|
|
@@ -277,7 +350,9 @@ function useDrawerActions() {
|
|
|
277
350
|
const actions = (0, react_1.useContext)(DrawerActionsContext);
|
|
278
351
|
const stableActions = (0, react_1.useRef)({
|
|
279
352
|
openDrawer: (id) => {
|
|
280
|
-
|
|
353
|
+
(0, rafraf_1.rafraf)(() => {
|
|
354
|
+
actions.current.openDrawer(id);
|
|
355
|
+
});
|
|
281
356
|
},
|
|
282
357
|
closeDrawer: () => {
|
|
283
358
|
actions.current.closeDrawer();
|
|
@@ -295,4 +370,6 @@ const useDrawerState = () => {
|
|
|
295
370
|
};
|
|
296
371
|
};
|
|
297
372
|
exports.useDrawerState = useDrawerState;
|
|
373
|
+
var drawer_2 = require("@leafygreen-ui/drawer");
|
|
374
|
+
Object.defineProperty(exports, "getDrawerIds", { enumerable: true, get: function () { return drawer_2.getLgIds; } });
|
|
298
375
|
//# sourceMappingURL=drawer-portal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer-portal.js","sourceRoot":"","sources":["../../src/components/drawer-portal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"drawer-portal.js","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ACtB,iGAAiG;YACjG,WAAW,CAAC,MAAM,GAAG,CAAC;KACzB,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,cAAc,kBASzB;AAEF,gDAAiE;AAAxD,sGAAA,QAAQ,OAAgB"}
|
|
@@ -26,11 +26,12 @@ type GroupAndStep = {
|
|
|
26
26
|
export type GuideCueProps<T> = Omit<LGGuideCueProps, 'currentStep' | 'refEl' | 'numberOfSteps' | 'open' | 'setOpen' | 'children'> & GroupAndStep & {
|
|
27
27
|
cueId: string;
|
|
28
28
|
description: React.ReactChild;
|
|
29
|
-
|
|
29
|
+
triggerNode?: T;
|
|
30
|
+
trigger?: ({ ref }: {
|
|
30
31
|
ref: React.Ref<T>;
|
|
31
32
|
}) => React.ReactElement;
|
|
32
33
|
onOpenChange?: (isOpen: boolean) => void;
|
|
33
34
|
};
|
|
34
|
-
export declare const GuideCue: <T extends HTMLElement>({ description, trigger, cueId, groupId, step, onPrimaryButtonClick, onDismiss, onOpenChange, ...restOfCueProps }: GuideCueProps<T>) => React.JSX.Element;
|
|
35
|
+
export declare const GuideCue: <T extends HTMLElement>({ description, trigger, triggerNode, cueId, groupId, step, onPrimaryButtonClick, onDismiss, onOpenChange, ...restOfCueProps }: GuideCueProps<T>) => React.JSX.Element;
|
|
35
36
|
export {};
|
|
36
37
|
//# sourceMappingURL=guide-cue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guide-cue.d.ts","sourceRoot":"","sources":["../../../src/components/guide-cue/guide-cue.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAUpD,MAAM,MAAM,GAAG,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,SAAS,C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EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEJ,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,WAAW,EAAE,+HAW7C,aAAa,CAAC,CAAC,CAAC,sBAgLlB,CAAC"}
|
|
@@ -63,10 +63,10 @@ exports.GuideCueProvider = GuideCueProvider;
|
|
|
63
63
|
const getDataCueId = ({ cueId, groupId, }) => {
|
|
64
64
|
return `guide-cue-${cueId}${groupId ? `-${groupId}` : ''}`;
|
|
65
65
|
};
|
|
66
|
-
const GuideCue = ({ description, trigger, cueId, groupId, step, onPrimaryButtonClick, onDismiss, onOpenChange, ...restOfCueProps }) => {
|
|
66
|
+
const GuideCue = ({ description, trigger, triggerNode, cueId, groupId, step, onPrimaryButtonClick, onDismiss, onOpenChange, ...restOfCueProps }) => {
|
|
67
67
|
const [isCueOpen, setIsCueOpen] = (0, react_1.useState)(false);
|
|
68
68
|
const [isIntersecting, setIsIntersecting] = (0, react_1.useState)(true);
|
|
69
|
-
const refEl = (0, react_1.useRef)(null);
|
|
69
|
+
const refEl = (0, react_1.useRef)(triggerNode ?? null);
|
|
70
70
|
const [readyToRender, setReadyToRender] = (0, react_1.useState)(false);
|
|
71
71
|
const context = (0, react_1.useContext)(GuideCueContext);
|
|
72
72
|
const cueData = (0, react_1.useMemo)(() => {
|
|
@@ -190,7 +190,7 @@ const GuideCue = ({ description, trigger, cueId, groupId, step, onPrimaryButtonC
|
|
|
190
190
|
}, setOpen: () => setOpen(false), currentStep: cueData.step || 1, refEl: refEl, "data-cueid": getDataCueId(cueData), tooltipClassName: (0, __1.cx)(
|
|
191
191
|
// Avoid flicker when the component (trigger) becomes invisible
|
|
192
192
|
!isIntersecting && hiddenPopoverStyles) }, description)),
|
|
193
|
-
trigger({ ref: refEl })));
|
|
193
|
+
trigger?.({ ref: refEl })));
|
|
194
194
|
};
|
|
195
195
|
exports.GuideCue = GuideCue;
|
|
196
196
|
//# sourceMappingURL=guide-cue.js.map
|
|
@@ -1 +1 @@
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C;IAE1C,OAAO,CACL;QACG,aAAa,IAAI,CAChB,8BAAC,oBAAU,OACL,cAAc,EAClB,IAAI,EAAE,SAAS,EACf,aAAa,EAAE,mCAAe,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,EAC/D,SAAS,EAAE,GAAG,EAAE;gBACd,SAAS,EAAE,EAAE,CAAC;gBACd,WAAW,EAAE,CAAC;YAChB,CAAC,EACD,oBAAoB,EAAE,GAAG,EAAE;gBACzB,oBAAoB,EAAE,EAAE,CAAC;gBACzB,MAAM,EAAE,CAAC;YACX,CAAC,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAC7B,WAAW,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC,EAC9B,KAAK,EAAE,KAAK,gBACA,YAAY,CAAC,OAAO,CAAC,EACjC,gBAAgB,EAAE,IAAA,MAAE;YAClB,+DAA+D;YAC/D,CAAC,cAAc,IAAI,mBAAmB,CACvC,IAEA,WAAW,CACD,CACd;QACA,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CACzB,CACJ,CAAC;AACJ,CAAC,CAAC;AA3LW,QAAA,QAAQ,YA2LnB"}
|
|
@@ -34,7 +34,6 @@ import Toggle from '@leafygreen-ui/toggle';
|
|
|
34
34
|
import Tooltip from '@leafygreen-ui/tooltip';
|
|
35
35
|
import { H1, H2, H3, Subtitle, Body, InlineCode, InlineKeyCode, Disclaimer, Overline, Label, Description } from '@leafygreen-ui/typography';
|
|
36
36
|
import { Combobox, ComboboxOption, ComboboxGroup } from '@leafygreen-ui/combobox';
|
|
37
|
-
export { getLgIds as getDrawerIds } from './drawer';
|
|
38
37
|
declare const Icon: {
|
|
39
38
|
({ size, ...rest }: Omit<React.ComponentProps<typeof LeafyGreenIcon>, "size"> & {
|
|
40
39
|
size?: LeafyGreenIconSize | "xsmall" | number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leafygreen.d.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qB,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,cAAc,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,4BAA4B,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,gBAAgB,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,oBAAoB,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,iBAAiB,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,qBAAqB,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,oBAAoB,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,mBAAmB,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,eAAe,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,iBAAiB,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,cAAc,MAAM,oBAAoB,CAAC"}
|
|
@@ -36,8 +36,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Toggle = exports.TextInput = exports.TextArea = exports.Tabs = 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.Copyable = exports.ConfirmationModal = exports.Code = exports.Chip = exports.Checkbox = exports.Card = exports.Banner = exports.Badge = exports.AtlasNavGraphic = exports.IconButton = exports.Button = exports.Link = exports.
|
|
40
|
-
exports.LgChatTitleBar = exports.LgChatSuggestions = exports.LgChatRichLinks = exports.LgChatMessage = exports.LgChatMessageRating = exports.LgChatMessagePrompts = exports.LgChatMessageFeedback = exports.LgChatMessageFeed = exports.LgChatMessageActions = exports.LgChatLgMarkdown = exports.LgChatLeafygreenChatProvider = exports.LgChatInputBar = exports.LgChatFixedChatWindow = exports.LgChatChatWindow = exports.LgChatChatDisclaimer = exports.LgChatAvatar = exports.InputOption = exports.Avatar = 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 =
|
|
39
|
+
exports.Tooltip = exports.Toggle = exports.TextInput = exports.TextArea = exports.Tabs = 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.Copyable = exports.ConfirmationModal = exports.Code = exports.Chip = exports.Checkbox = exports.Card = exports.Banner = exports.Badge = exports.AtlasNavGraphic = exports.IconButton = exports.Button = exports.Link = exports.useMergeRefs = exports.usePrevious = void 0;
|
|
40
|
+
exports.LgChatTitleBar = exports.LgChatSuggestions = exports.LgChatRichLinks = exports.LgChatMessage = exports.LgChatMessageRating = exports.LgChatMessagePrompts = exports.LgChatMessageFeedback = exports.LgChatMessageFeed = exports.LgChatMessageActions = exports.LgChatLgMarkdown = exports.LgChatLeafygreenChatProvider = exports.LgChatInputBar = exports.LgChatFixedChatWindow = exports.LgChatChatWindow = exports.LgChatChatDisclaimer = exports.LgChatAvatar = exports.InputOption = exports.Avatar = 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 = 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.
|
|
@@ -143,8 +143,6 @@ const combobox_1 = require("@leafygreen-ui/combobox");
|
|
|
143
143
|
Object.defineProperty(exports, "Combobox", { enumerable: true, get: function () { return combobox_1.Combobox; } });
|
|
144
144
|
Object.defineProperty(exports, "ComboboxOption", { enumerable: true, get: function () { return combobox_1.ComboboxOption; } });
|
|
145
145
|
Object.defineProperty(exports, "ComboboxGroup", { enumerable: true, get: function () { return combobox_1.ComboboxGroup; } });
|
|
146
|
-
var drawer_1 = require("./drawer");
|
|
147
|
-
Object.defineProperty(exports, "getDrawerIds", { enumerable: true, get: function () { return drawer_1.getLgIds; } });
|
|
148
146
|
// 2. Wrap and make any changes/workaround to leafygreen components.
|
|
149
147
|
const Icon = ({ size, ...rest }) => {
|
|
150
148
|
size = size === 'xsmall' ? 12 : size;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leafygreen.js","sourceRoot":"","sources":["../../src/components/leafygreen.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAExC,wEAAwE;AAExE,mDAAmD;AACnD,uEAA8D;
|
|
1
|
+
{"version":3,"file":"leafygreen.js","sourceRoot":"","sources":["../../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EAAE;YACd,oBAAoB,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC5C,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;QAChB,CAAC,EACD,GAAG,EAAE,GAAG,GACa,CACxB,CAAC;AACJ,CAAC,CACF,CAAC;AAgDA,8BAAS;AA9CX,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAwEpC,gEAAgD;AAChD,2EAA2D;AAE3D,gEAAgD;AAChD,iFAAiE;AACjE,yEAAyD;AACzD,oFAAoE;AACpE,qEAAqD;AACrD,kGAAkF;AAClF,yEAAyD;AACzD,iFAAiE;AACjE,2EAA2D;AAC3D,mFAAmE;AACnE,iFAAiE;AACjE,+EAA+D;AAC/D,kEAAkD;AAClD,uEAAuD;AACvD,0EAA0D;AAC1D,qEAAqD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongodb-js/compass-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.53.0",
|
|
4
4
|
"description": "React Components used in Compass",
|
|
5
5
|
"license": "SSPL",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@leafygreen-ui/combobox": "^11.0.2",
|
|
47
47
|
"@leafygreen-ui/confirmation-modal": "^6.0.2",
|
|
48
48
|
"@leafygreen-ui/copyable": "^10.0.14",
|
|
49
|
-
"@leafygreen-ui/
|
|
49
|
+
"@leafygreen-ui/drawer": "^5.0.3",
|
|
50
50
|
"@leafygreen-ui/emotion": "^4.0.9",
|
|
51
51
|
"@leafygreen-ui/guide-cue": "^7.0.2",
|
|
52
52
|
"@leafygreen-ui/hooks": "^8.3.4",
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
"@leafygreen-ui/info-sprinkle": "^4.0.2",
|
|
56
56
|
"@leafygreen-ui/input-option": "^3.0.12",
|
|
57
57
|
"@leafygreen-ui/leafygreen-provider": "^4.0.2",
|
|
58
|
-
"@leafygreen-ui/lib": "^15.3.0",
|
|
59
58
|
"@leafygreen-ui/logo": "^10.0.2",
|
|
60
59
|
"@leafygreen-ui/marketing-modal": "^5.0.2",
|
|
61
60
|
"@leafygreen-ui/menu": "^29.0.5",
|
|
@@ -119,6 +118,7 @@
|
|
|
119
118
|
},
|
|
120
119
|
"devDependencies": {
|
|
121
120
|
"@emotion/css": "^11.11.2",
|
|
121
|
+
"@leafygreen-ui/lib": "^15.3.0",
|
|
122
122
|
"@mongodb-js/eslint-config-compass": "^1.4.10",
|
|
123
123
|
"@mongodb-js/mocha-config-compass": "^1.7.1",
|
|
124
124
|
"@mongodb-js/prettier-config-compass": "^1.2.8",
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"publishConfig": {
|
|
143
143
|
"access": "public"
|
|
144
144
|
},
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "17573379f75eea1d9ca28086bef188edbcbb950b"
|
|
146
146
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,SAAS;;;;;CAKrB,CAAC;AAEF,eAAO,MAAM,WAAW,MAAM,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PANEL_WIDTH = exports.GRID_AREA = exports.TOOLBAR_WIDTH = void 0;
|
|
4
|
-
var toolbar_1 = require("../toolbar");
|
|
5
|
-
Object.defineProperty(exports, "TOOLBAR_WIDTH", { enumerable: true, get: function () { return toolbar_1.TOOLBAR_WIDTH; } });
|
|
6
|
-
exports.GRID_AREA = {
|
|
7
|
-
drawer: 'drawer',
|
|
8
|
-
content: 'content',
|
|
9
|
-
toolbar: 'toolbar',
|
|
10
|
-
innerDrawer: 'inner-drawer',
|
|
11
|
-
};
|
|
12
|
-
exports.PANEL_WIDTH = 432;
|
|
13
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/drawer/constants.ts"],"names":[],"mappings":";;;AAAA,sCAA2C;AAAlC,wGAAA,aAAa,OAAA;AAET,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,WAAW,GAAG,GAAG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer/drawer.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,iBAAiB,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.constants.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer/drawer.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,EAAE,CAAC;AACnB,QAAA,iBAAiB,GAAG,GAAG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AA4BvE,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQ/D,eAAO,MAAM,MAAM,iGA4JlB,CAAC"}
|