@mongodb-js/compass-components 1.4.0 → 1.5.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/accordion.d.ts +1 -2
- package/lib/components/accordion.d.ts.map +1 -1
- package/lib/components/accordion.js +3 -3
- package/lib/components/accordion.js.map +1 -1
- package/lib/components/bson-value.d.ts.map +1 -1
- package/lib/components/bson-value.js +3 -3
- package/lib/components/bson-value.js.map +1 -1
- package/lib/components/cancel-loader.d.ts.map +1 -1
- package/lib/components/cancel-loader.js +6 -1
- package/lib/components/cancel-loader.js.map +1 -1
- package/lib/components/combobox/Chip.d.ts +4 -0
- package/lib/components/combobox/Chip.d.ts.map +1 -0
- package/lib/components/combobox/Chip.js +229 -0
- package/lib/components/combobox/Chip.js.map +1 -0
- package/lib/components/combobox/Combobox.d.ts +39 -0
- package/lib/components/combobox/Combobox.d.ts.map +1 -0
- package/lib/components/combobox/Combobox.js +817 -0
- package/lib/components/combobox/Combobox.js.map +1 -0
- package/lib/components/combobox/Combobox.styles.d.ts +38 -0
- package/lib/components/combobox/Combobox.styles.d.ts.map +1 -0
- package/lib/components/combobox/Combobox.styles.js +278 -0
- package/lib/components/combobox/Combobox.styles.js.map +1 -0
- package/lib/components/combobox/Combobox.types.d.ts +121 -0
- package/lib/components/combobox/Combobox.types.d.ts.map +1 -0
- package/lib/components/combobox/Combobox.types.js +46 -0
- package/lib/components/combobox/Combobox.types.js.map +1 -0
- package/lib/components/combobox/ComboboxContext.d.ts +21 -0
- package/lib/components/combobox/ComboboxContext.d.ts.map +1 -0
- package/lib/components/combobox/ComboboxContext.js +19 -0
- package/lib/components/combobox/ComboboxContext.js.map +1 -0
- package/lib/components/combobox/ComboboxGroup.d.ts +15 -0
- package/lib/components/combobox/ComboboxGroup.d.ts.map +1 -0
- package/lib/components/combobox/ComboboxGroup.js +84 -0
- package/lib/components/combobox/ComboboxGroup.js.map +1 -0
- package/lib/components/combobox/ComboboxMenu/ComboboxMenu.d.ts +9 -0
- package/lib/components/combobox/ComboboxMenu/ComboboxMenu.d.ts.map +1 -0
- package/lib/components/combobox/ComboboxMenu/ComboboxMenu.js +86 -0
- package/lib/components/combobox/ComboboxMenu/ComboboxMenu.js.map +1 -0
- package/lib/components/combobox/ComboboxMenu/Menu.styles.d.ts +22 -0
- package/lib/components/combobox/ComboboxMenu/Menu.styles.d.ts.map +1 -0
- package/lib/components/combobox/ComboboxMenu/Menu.styles.js +115 -0
- package/lib/components/combobox/ComboboxMenu/Menu.styles.js.map +1 -0
- package/lib/components/combobox/ComboboxOption.d.ts +17 -0
- package/lib/components/combobox/ComboboxOption.d.ts.map +1 -0
- package/lib/components/combobox/ComboboxOption.js +258 -0
- package/lib/components/combobox/ComboboxOption.js.map +1 -0
- package/lib/components/combobox/Menu.styles.d.ts +18 -0
- package/lib/components/combobox/Menu.styles.d.ts.map +1 -0
- package/lib/components/combobox/Menu.styles.js +98 -0
- package/lib/components/combobox/Menu.styles.js.map +1 -0
- package/lib/components/combobox/index.d.ts +4 -0
- package/lib/components/combobox/index.d.ts.map +1 -0
- package/lib/components/combobox/index.js +13 -0
- package/lib/components/combobox/index.js.map +1 -0
- package/lib/components/combobox/utils/OptionObjectUtils.d.ts +5 -0
- package/lib/components/combobox/utils/OptionObjectUtils.d.ts.map +1 -0
- package/lib/components/combobox/utils/OptionObjectUtils.js +23 -0
- package/lib/components/combobox/utils/OptionObjectUtils.js.map +1 -0
- package/lib/components/combobox/utils/flattenChildren.d.ts +4 -0
- package/lib/components/combobox/utils/flattenChildren.d.ts.map +1 -0
- package/lib/components/combobox/utils/flattenChildren.js +35 -0
- package/lib/components/combobox/utils/flattenChildren.js.map +1 -0
- package/lib/components/combobox/utils/getNameAndValue.d.ts +6 -0
- package/lib/components/combobox/utils/getNameAndValue.d.ts.map +1 -0
- package/lib/components/combobox/utils/getNameAndValue.js +16 -0
- package/lib/components/combobox/utils/getNameAndValue.js.map +1 -0
- package/lib/components/combobox/utils/index.d.ts +5 -0
- package/lib/components/combobox/utils/index.d.ts.map +1 -0
- package/lib/components/combobox/utils/index.js +14 -0
- package/lib/components/combobox/utils/index.js.map +1 -0
- package/lib/components/combobox/utils/wrapJSX.d.ts +3 -0
- package/lib/components/combobox/utils/wrapJSX.d.ts.map +1 -0
- package/lib/components/combobox/utils/wrapJSX.js +33 -0
- package/lib/components/combobox/utils/wrapJSX.js.map +1 -0
- package/lib/components/empty-content.d.ts.map +1 -1
- package/lib/components/empty-content.js +9 -2
- package/lib/components/empty-content.js.map +1 -1
- package/lib/components/file-input.d.ts +18 -19
- package/lib/components/file-input.d.ts.map +1 -1
- package/lib/components/file-input.js +3 -3
- package/lib/components/file-input.js.map +1 -1
- package/lib/components/horizontal-rule.d.ts +4 -0
- package/lib/components/horizontal-rule.d.ts.map +1 -0
- package/lib/components/horizontal-rule.js +49 -0
- package/lib/components/horizontal-rule.js.map +1 -0
- package/lib/components/icons/document-icon.d.ts +1 -4
- package/lib/components/icons/document-icon.d.ts.map +1 -1
- package/lib/components/icons/document-icon.js +2 -2
- package/lib/components/icons/document-icon.js.map +1 -1
- package/lib/components/icons/favorite-icon.d.ts +6 -7
- package/lib/components/icons/favorite-icon.d.ts.map +1 -1
- package/lib/components/icons/favorite-icon.js +2 -2
- package/lib/components/icons/favorite-icon.js.map +1 -1
- package/lib/components/icons/no-saved-items-icon.d.ts +0 -1
- package/lib/components/icons/no-saved-items-icon.d.ts.map +1 -1
- package/lib/components/icons/no-saved-items-icon.js +2 -2
- package/lib/components/icons/no-saved-items-icon.js.map +1 -1
- package/lib/components/index-keys-badge.d.ts +11 -0
- package/lib/components/index-keys-badge.d.ts.map +1 -0
- package/lib/components/index-keys-badge.js +26 -0
- package/lib/components/index-keys-badge.js.map +1 -0
- package/lib/components/interactive-popover.js +2 -2
- package/lib/components/interactive-popover.js.map +1 -1
- package/lib/components/keyline-card.d.ts +1 -4
- package/lib/components/keyline-card.d.ts.map +1 -1
- package/lib/components/keyline-card.js +2 -2
- package/lib/components/keyline-card.js.map +1 -1
- package/lib/components/leafygreen.d.ts +26 -74
- package/lib/components/leafygreen.d.ts.map +1 -1
- package/lib/components/leafygreen.js +38 -70
- package/lib/components/leafygreen.js.map +1 -1
- package/lib/components/modals/confirmation-modal.d.ts +1 -1
- package/lib/components/modals/confirmation-modal.d.ts.map +1 -1
- package/lib/components/modals/confirmation-modal.js +3 -2
- package/lib/components/modals/confirmation-modal.js.map +1 -1
- package/lib/components/modals/modal-body.d.ts.map +1 -1
- package/lib/components/modals/modal-body.js +6 -3
- package/lib/components/modals/modal-body.js.map +1 -1
- package/lib/components/modals/modal-footer-button.d.ts +2 -2
- package/lib/components/modals/modal-footer-button.d.ts.map +1 -1
- package/lib/components/modals/modal-footer-button.js +3 -4
- package/lib/components/modals/modal-footer-button.js.map +1 -1
- package/lib/components/modals/modal-header.d.ts +2 -3
- package/lib/components/modals/modal-header.d.ts.map +1 -1
- package/lib/components/modals/modal-header.js +2 -2
- package/lib/components/modals/modal-header.js.map +1 -1
- package/lib/components/modals/modal.d.ts +1 -1
- package/lib/components/modals/modal.d.ts.map +1 -1
- package/lib/components/modals/modal.js +5 -2
- package/lib/components/modals/modal.js.map +1 -1
- package/lib/components/placeholder.d.ts +3 -4
- package/lib/components/placeholder.d.ts.map +1 -1
- package/lib/components/placeholder.js +2 -2
- package/lib/components/placeholder.js.map +1 -1
- package/lib/components/resizeable-sidebar.d.ts.map +1 -1
- package/lib/components/resizeable-sidebar.js +2 -2
- package/lib/components/resizeable-sidebar.js.map +1 -1
- package/lib/components/spin-loader.d.ts +2 -1
- package/lib/components/spin-loader.d.ts.map +1 -1
- package/lib/components/spin-loader.js +10 -3
- package/lib/components/spin-loader.js.map +1 -1
- package/lib/components/store-connector.d.ts +17 -0
- package/lib/components/store-connector.d.ts.map +1 -0
- package/lib/components/store-connector.js +25 -0
- package/lib/components/store-connector.js.map +1 -0
- package/lib/components/tab-nav-bar.d.ts +2 -3
- package/lib/components/tab-nav-bar.d.ts.map +1 -1
- package/lib/components/tab-nav-bar.js +2 -2
- package/lib/components/tab-nav-bar.js.map +1 -1
- package/lib/components/tooltip.d.ts.map +1 -1
- package/lib/components/tooltip.js +2 -8
- package/lib/components/tooltip.js.map +1 -1
- package/lib/components/virtual-grid.d.ts +1 -1
- package/lib/components/workspace-container.d.ts +1 -2
- package/lib/components/workspace-container.d.ts.map +1 -1
- package/lib/components/workspace-container.js +3 -3
- package/lib/components/workspace-container.js.map +1 -1
- package/lib/components/workspace-tabs/tab.d.ts +3 -3
- package/lib/components/workspace-tabs/tab.d.ts.map +1 -1
- package/lib/components/workspace-tabs/tab.js +18 -4
- package/lib/components/workspace-tabs/tab.js.map +1 -1
- package/lib/components/workspace-tabs/workspace-tabs.d.ts +1 -2
- package/lib/components/workspace-tabs/workspace-tabs.d.ts.map +1 -1
- package/lib/components/workspace-tabs/workspace-tabs.js +48 -23
- package/lib/components/workspace-tabs/workspace-tabs.js.map +1 -1
- package/lib/hooks/use-effect-on-change.d.ts +3 -0
- package/lib/hooks/use-effect-on-change.d.ts.map +1 -0
- package/lib/hooks/use-effect-on-change.js +19 -0
- package/lib/hooks/use-effect-on-change.js.map +1 -0
- package/lib/hooks/use-scrollbars.d.ts +11 -0
- package/lib/hooks/use-scrollbars.d.ts.map +1 -0
- package/lib/hooks/use-scrollbars.js +117 -0
- package/lib/hooks/use-scrollbars.js.map +1 -0
- package/lib/hooks/use-theme.d.ts +11 -13
- package/lib/hooks/use-theme.d.ts.map +1 -1
- package/lib/hooks/use-theme.js +17 -21
- package/lib/hooks/use-theme.js.map +1 -1
- package/lib/index.d.ts +8 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +21 -8
- package/lib/index.js.map +1 -1
- package/package.json +52 -43
- package/lib/components/checkbox.d.ts +0 -5
- package/lib/components/checkbox.d.ts.map +0 -1
- package/lib/components/checkbox.js +0 -15
- package/lib/components/checkbox.js.map +0 -1
- package/lib/components/toggle.d.ts +0 -5
- package/lib/components/toggle.d.ts.map +0 -1
- package/lib/components/toggle.js +0 -15
- package/lib/components/toggle.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function getScrollbarStyles(darkMode: boolean): string;
|
|
3
|
+
export declare function useScrollbars(): {
|
|
4
|
+
className: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
interface WithPortalClassName {
|
|
7
|
+
portalClassName?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const withPortalScrollbars: <ComponentProps extends WithPortalClassName>(WrappedComponent: React.ComponentType<ComponentProps & WithPortalClassName>) => (props: ComponentProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=use-scrollbars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-scrollbars.d.ts","sourceRoot":"","sources":["../../src/hooks/use-scrollbars.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAkB,MAAM,OAAO,CAAC;AA+EvC,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,OAAO,UAEnD;AASD,wBAAgB,aAAa;;EAgB5B;AAED,UAAU,mBAAmB;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAID,eAAO,MAAM,oBAAoB,qKAqBhC,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
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 (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.withPortalScrollbars = exports.useScrollbars = exports.getScrollbarStyles = void 0;
|
|
30
|
+
const polished_1 = require("polished");
|
|
31
|
+
const palette_1 = require("@leafygreen-ui/palette");
|
|
32
|
+
const emotion_1 = require("@leafygreen-ui/emotion");
|
|
33
|
+
const react_1 = __importStar(require("react"));
|
|
34
|
+
const is_electron_renderer_1 = __importDefault(require("is-electron-renderer"));
|
|
35
|
+
const use_theme_1 = require("./use-theme");
|
|
36
|
+
const scrollbarSize = 10;
|
|
37
|
+
const scrollbarStyles = (0, emotion_1.css)({
|
|
38
|
+
'*::-webkit-scrollbar-thumb': {
|
|
39
|
+
backgroundColor: 'transparent',
|
|
40
|
+
borderRadius: `${scrollbarSize}px`,
|
|
41
|
+
},
|
|
42
|
+
'*::-webkit-scrollbar-track': {
|
|
43
|
+
backgroundColor: 'transparent',
|
|
44
|
+
},
|
|
45
|
+
'*::-webkit-scrollbar': {
|
|
46
|
+
width: `${scrollbarSize}px`,
|
|
47
|
+
'&:horizontal': {
|
|
48
|
+
height: `${scrollbarSize}px`,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
'*::-webkit-scrollbar-corner': {
|
|
52
|
+
background: 'transparent',
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
const scrollbarLightModeStyles = (0, emotion_1.css)({
|
|
56
|
+
'*:active::-webkit-scrollbar-thumb, *:focus::-webkit-scrollbar-thumb, *:hover::-webkit-scrollbar-thumb': {
|
|
57
|
+
backgroundColor: (0, polished_1.rgba)(palette_1.palette.black, 0.12),
|
|
58
|
+
'&:hover': {
|
|
59
|
+
backgroundColor: (0, polished_1.rgba)(palette_1.palette.black, 0.2),
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
'*::-webkit-scrollbar-thumb': {
|
|
63
|
+
'&:horizontal': {
|
|
64
|
+
backgroundColor: (0, polished_1.rgba)(palette_1.palette.black, 0.12),
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
'*::-webkit-scrollbar-track': {
|
|
68
|
+
'&:hover': {
|
|
69
|
+
backgroundColor: (0, polished_1.rgba)(palette_1.palette.black, 0.04),
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
}, scrollbarStyles);
|
|
73
|
+
const scrollbarDarkModeStyles = (0, emotion_1.css)({
|
|
74
|
+
'*:active::-webkit-scrollbar-thumb, *:focus::-webkit-scrollbar-thumb, *:hover::-webkit-scrollbar-thumb': {
|
|
75
|
+
backgroundColor: (0, polished_1.rgba)(palette_1.palette.white, 0.2),
|
|
76
|
+
'&:hover': {
|
|
77
|
+
backgroundColor: (0, polished_1.rgba)(palette_1.palette.white, 0.25),
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
'*::-webkit-scrollbar-thumb': {
|
|
81
|
+
'&:horizontal': {
|
|
82
|
+
backgroundColor: (0, polished_1.rgba)(palette_1.palette.white, 0.2),
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
'*::-webkit-scrollbar-track': {
|
|
86
|
+
'&:hover': {
|
|
87
|
+
backgroundColor: (0, polished_1.rgba)(palette_1.palette.white, 0.1),
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
}, scrollbarStyles);
|
|
91
|
+
function getScrollbarStyles(darkMode) {
|
|
92
|
+
return darkMode ? scrollbarDarkModeStyles : scrollbarLightModeStyles;
|
|
93
|
+
}
|
|
94
|
+
exports.getScrollbarStyles = getScrollbarStyles;
|
|
95
|
+
function useScrollbars() {
|
|
96
|
+
const darkMode = (0, use_theme_1.useDarkMode)();
|
|
97
|
+
const scrollbarStylesClass = (0, react_1.useMemo)(() => {
|
|
98
|
+
if (!is_electron_renderer_1.default) {
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
return getScrollbarStyles(!!darkMode);
|
|
102
|
+
}, [darkMode]);
|
|
103
|
+
return {
|
|
104
|
+
className: scrollbarStylesClass,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
exports.useScrollbars = useScrollbars;
|
|
108
|
+
const withPortalScrollbars = (WrappedComponent) => {
|
|
109
|
+
const ComponentWithScrollbars = (props) => {
|
|
110
|
+
const { className } = useScrollbars();
|
|
111
|
+
const appliedClassName = is_electron_renderer_1.default ? className : undefined;
|
|
112
|
+
return (react_1.default.createElement(WrappedComponent, { ...props, portalClassName: (0, emotion_1.cx)(appliedClassName, props.portalClassName) }));
|
|
113
|
+
};
|
|
114
|
+
return ComponentWithScrollbars;
|
|
115
|
+
};
|
|
116
|
+
exports.withPortalScrollbars = withPortalScrollbars;
|
|
117
|
+
//# sourceMappingURL=use-scrollbars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-scrollbars.js","sourceRoot":"","sources":["../../src/hooks/use-scrollbars.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAgC;AAChC,oDAAiD;AACjD,oDAAiD;AACjD,+CAAuC;AACvC,gFAAsD;AAEtD,2CAA0C;AAE1C,MAAM,aAAa,GAAG,EAAE,CAAC;AAEzB,MAAM,eAAe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
|
|
4
4
|
Dark = "Dark"
|
|
5
5
|
}
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare const ThemeProvider: ({ children, theme, }: {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
theme: ThemeState;
|
|
13
|
-
}) => React.ReactElement;
|
|
14
|
-
declare function useTheme(): ThemeState;
|
|
15
|
-
export declare function useDarkMode(): boolean | undefined;
|
|
16
|
-
interface WithThemeProps {
|
|
6
|
+
export declare function useDarkMode(localDarkMode?: boolean): boolean | undefined;
|
|
7
|
+
interface WithDarkModeProps {
|
|
17
8
|
darkMode?: boolean;
|
|
18
9
|
}
|
|
19
|
-
declare const
|
|
20
|
-
|
|
10
|
+
export declare const ThemeProvider: ({ children, theme, }: {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
theme: {
|
|
13
|
+
theme: Theme;
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
};
|
|
16
|
+
}) => React.ReactElement;
|
|
17
|
+
declare const withDarkMode: <ComponentProps extends WithDarkModeProps = WithDarkModeProps>(WrappedComponent: React.ComponentType<ComponentProps & WithDarkModeProps>) => React.ComponentType<ComponentProps>;
|
|
18
|
+
export { Theme, withDarkMode };
|
|
21
19
|
//# sourceMappingURL=use-theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-theme.d.ts","sourceRoot":"","sources":["../../src/hooks/use-theme.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"use-theme.d.ts","sourceRoot":"","sources":["../../src/hooks/use-theme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK;IACR,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,wBAAgB,WAAW,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAGxE;AAED,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAGD,eAAO,MAAM,aAAa;cAId,MAAM,SAAS;;eAEhB,KAAK;iBACH,OAAO;;MAEhB,MAAM,YAQT,CAAC;AAIF,QAAA,MAAM,YAAY,kLA4BjB,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC"}
|
package/lib/hooks/use-theme.js
CHANGED
|
@@ -22,40 +22,36 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
const react_1 =
|
|
29
|
+
exports.withDarkMode = exports.Theme = exports.ThemeProvider = exports.useDarkMode = void 0;
|
|
30
|
+
const react_1 = __importDefault(require("react"));
|
|
31
|
+
const leafygreen_provider_1 = __importStar(require("@leafygreen-ui/leafygreen-provider"));
|
|
28
32
|
var Theme;
|
|
29
33
|
(function (Theme) {
|
|
30
34
|
Theme["Light"] = "Light";
|
|
31
35
|
Theme["Dark"] = "Dark";
|
|
32
36
|
})(Theme || (Theme = {}));
|
|
33
37
|
exports.Theme = Theme;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
+
function useDarkMode(localDarkMode) {
|
|
39
|
+
const darkMode = (0, leafygreen_provider_1.useDarkMode)(localDarkMode);
|
|
40
|
+
return darkMode.darkMode;
|
|
41
|
+
}
|
|
42
|
+
exports.useDarkMode = useDarkMode;
|
|
38
43
|
const ThemeProvider = ({ children, theme, }) => {
|
|
39
|
-
return (react_1.default.createElement(
|
|
44
|
+
return theme.enabled ? (react_1.default.createElement(leafygreen_provider_1.default, { darkMode: theme.theme === Theme.Dark }, children)) : (react_1.default.createElement(react_1.default.Fragment, null, children));
|
|
40
45
|
};
|
|
41
46
|
exports.ThemeProvider = ThemeProvider;
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
exports.useTheme = useTheme;
|
|
46
|
-
function useDarkMode() {
|
|
47
|
-
const theme = useTheme();
|
|
48
|
-
return theme.enabled === true ? (theme === null || theme === void 0 ? void 0 : theme.theme) === Theme.Dark : undefined;
|
|
49
|
-
}
|
|
50
|
-
exports.useDarkMode = useDarkMode;
|
|
51
|
-
const withTheme = function (WrappedComponent) {
|
|
52
|
-
const ComponentWithTheme = (props, ref) => {
|
|
47
|
+
const withDarkMode = function (WrappedComponent) {
|
|
48
|
+
const ComponentWithDarkMode = (props, ref) => {
|
|
53
49
|
const darkMode = useDarkMode();
|
|
54
50
|
return (react_1.default.createElement(WrappedComponent, { darkMode: darkMode, ref: ref, ...props }));
|
|
55
51
|
};
|
|
56
52
|
const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
57
|
-
|
|
58
|
-
return react_1.default.forwardRef(
|
|
53
|
+
ComponentWithDarkMode.displayName = `WithDarkMode(${displayName})`;
|
|
54
|
+
return react_1.default.forwardRef(ComponentWithDarkMode);
|
|
59
55
|
};
|
|
60
|
-
exports.
|
|
56
|
+
exports.withDarkMode = withDarkMode;
|
|
61
57
|
//# sourceMappingURL=use-theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-theme.js","sourceRoot":"","sources":["../../src/hooks/use-theme.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-theme.js","sourceRoot":"","sources":["../../src/hooks/use-theme.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,0FAE4C;AAE5C,IAAK,KAGJ;AAHD,WAAK,KAAK;IACR,wBAAe,CAAA;IACf,sBAAa,CAAA;AACf,CAAC,EAHI,KAAK,KAAL,KAAK,QAGT;AA+DQ,sBAAK;AA7Dd,SAAgB,WAAW,CAAC,aAAuB;IACjD,MAAM,QAAQ,GAAG,IAAA,iCAAqB,EAAC,aAAa,CAAC,CAAC;IACtD,OAAO,QAAQ,CAAC,QAAQ,CAAC;AAC3B,CAAC;AAHD,kCAGC;AAOM,MAAM,aAAa,GAAG,CAAC,EAC5B,QAAQ,EACR,KAAK,GAON,EAAsB,EAAE;IACvB,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CACrB,8BAAC,6BAAkB,IAAC,QAAQ,EAAE,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,IAAI,IACrD,QAAQ,CACU,CACtB,CAAC,CAAC,CAAC,CACF,8DAAG,QAAQ,CAAI,CAChB,CAAC;AACJ,CAAC,CAAC;AAjBW,QAAA,aAAa,iBAiBxB;AAIF,MAAM,YAAY,GAAG,UAGnB,gBAAyE;IAEzE,MAAM,qBAAqB,GAAG,CAC5B,KAAqB,EACrB,GAEC,EACD,EAAE;QACF,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;QAC/B,OAAO,CACL,8BAAC,gBAAgB,IAGf,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACH,CAAC;IACJ,CAAC,CAAC;IAEF,MAAM,WAAW,GACf,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;IACvE,qBAAqB,CAAC,WAAW,GAAG,gBAAgB,WAAW,GAAG,CAAC;IAEnE,OAAO,eAAK,CAAC,UAAU,CAAC,qBAAqB,CAA4B,CAAC;AAC5E,CAAC,CAAC;AAEc,oCAAY"}
|
package/lib/index.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ export { NoSavedItemsIcon } from './components/icons/no-saved-items-icon';
|
|
|
19
19
|
export { Variant as BadgeVariant } from '@leafygreen-ui/badge';
|
|
20
20
|
export { Variant as BannerVariant } from '@leafygreen-ui/banner';
|
|
21
21
|
export { Size as ButtonSize, Variant as ButtonVariant, } from '@leafygreen-ui/button';
|
|
22
|
-
export { Checkbox } from './components/checkbox';
|
|
23
22
|
export { default as LeafyGreenProvider } from '@leafygreen-ui/leafygreen-provider';
|
|
24
23
|
export { palette } from '@leafygreen-ui/palette';
|
|
25
24
|
export { rgba } from 'polished';
|
|
@@ -29,7 +28,6 @@ export { Size as SelectSize } from '@leafygreen-ui/select';
|
|
|
29
28
|
export { useId } from '@react-aria/utils';
|
|
30
29
|
export { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
31
30
|
export { useToast, openToast, closeToast, ToastArea, ToastVariant, } from './hooks/use-toast';
|
|
32
|
-
export { Toggle } from './components/toggle';
|
|
33
31
|
export { breakpoints, spacing } from '@leafygreen-ui/tokens';
|
|
34
32
|
export { Tooltip } from './components/tooltip';
|
|
35
33
|
import IndexIcon from './components/index-icon';
|
|
@@ -41,13 +39,15 @@ export { FormModal } from './components/modals/form-modal';
|
|
|
41
39
|
export { InfoModal } from './components/modals/info-modal';
|
|
42
40
|
export { Accordion, CollapsibleFieldSet, CancelLoader, ConfirmationModal, ErrorSummary, FileInput, FileInputBackend, IndexIcon, MoreOptionsToggle, RadioBoxGroup, SpinLoader, ResizeHandle, ResizeDirection, ResizableSidebar, WarningSummary, WorkspaceTabs, ItemAction, MenuAction, ItemActionControls, ItemActionGroup, ItemActionMenu, DropdownMenuButton, defaultSidebarWidth, ElectronFileDialogOptions, ElectronShowFileDialogProvider, createElectronFileInputBackend, };
|
|
43
41
|
export { useFocusState, useHoverState, FocusState, } from './hooks/use-focus-hover';
|
|
44
|
-
export {
|
|
42
|
+
export { getScrollbarStyles, useScrollbars } from './hooks/use-scrollbars';
|
|
43
|
+
export { withDarkMode, useDarkMode, Theme, ThemeProvider, } from './hooks/use-theme';
|
|
45
44
|
export { ContentWithFallback, FadeInPlaceholder, } from './components/content-with-fallback';
|
|
46
45
|
export { InlineDefinition } from './components/inline-definition';
|
|
47
46
|
import type { glyphs } from '@leafygreen-ui/icon';
|
|
48
47
|
export declare type IconGlyph = Extract<keyof typeof glyphs, string>;
|
|
49
48
|
export { EmptyContent } from './components/empty-content';
|
|
50
49
|
export { ErrorBoundary } from './components/error-boundary';
|
|
50
|
+
export { StoreConnector } from './components/store-connector';
|
|
51
51
|
export { TabNavBar } from './components/tab-nav-bar';
|
|
52
52
|
export { WorkspaceContainer } from './components/workspace-container';
|
|
53
53
|
export { InlineInfoLink } from './components/inline-info-link';
|
|
@@ -65,4 +65,9 @@ export { fontFamilies } from '@leafygreen-ui/tokens';
|
|
|
65
65
|
export { default as BSONValue } from './components/bson-value';
|
|
66
66
|
export * as DocumentList from './components/document-list';
|
|
67
67
|
export { KeylineCard } from './components/keyline-card';
|
|
68
|
+
export { variantColors as codePalette } from '@leafygreen-ui/code';
|
|
69
|
+
export { useEffectOnChange } from './hooks/use-effect-on-change';
|
|
70
|
+
export { HorizontalRule } from './components/horizontal-rule';
|
|
71
|
+
export { IndexKeysBadge } from './components/index-keys-badge';
|
|
72
|
+
export { Combobox, ComboboxOption, ComboboxGroup } from './components/combobox';
|
|
68
73
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AAExC,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,EACL,OAAO,EACP,EAAE,EACF,KAAK,EACL,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,GAAG,EACH,KAAK,EACL,KAAK,GACN,MAAM,wBAAwB,CAAC;AAChC,OAAO,YAAY,MAAM,4BAA4B,CAAC;AACtD,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,SAAS,EAAE,EAChB,yBAAyB,EACzB,8BAA8B,EAC9B,8BAA8B,EAC9B,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,k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AAwB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,aAAa,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -29,8 +29,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
29
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.MoreOptionsToggle = exports.IndexIcon = exports.FileInput = exports.ErrorSummary = exports.ConfirmationModal = exports.CancelLoader = exports.CollapsibleFieldSet = exports.Accordion = exports.InfoModal = exports.FormModal = exports.ModalHeader = exports.ModalBody = exports.Modal = exports.FormFieldContainer = exports.Tooltip = exports.spacing = exports.breakpoints = exports.
|
|
33
|
-
exports.KeylineCard = exports.DocumentList = exports.BSONValue = exports.fontFamilies = exports.useFormattedDate = exports.useSortedItems = exports.useSortControls = exports.useDefaultAction = exports.useFocusRing = exports.focusRing = exports.mergeProps = exports.VirtualGrid = exports.useDOMRect = exports.Placeholder = exports.ListEditor = exports.InteractivePopover = exports.InlineInfoLink = exports.WorkspaceContainer = exports.TabNavBar = exports.ErrorBoundary = exports.EmptyContent = exports.InlineDefinition = exports.FadeInPlaceholder = exports.ContentWithFallback = exports.ThemeProvider = exports.Theme = exports.useDarkMode = exports.
|
|
32
|
+
exports.SpinLoader = exports.RadioBoxGroup = exports.MoreOptionsToggle = exports.IndexIcon = exports.FileInput = exports.ErrorSummary = exports.ConfirmationModal = exports.CancelLoader = exports.CollapsibleFieldSet = exports.Accordion = exports.InfoModal = exports.FormModal = exports.ModalHeader = exports.ModalBody = exports.Modal = exports.FormFieldContainer = exports.Tooltip = exports.spacing = exports.breakpoints = exports.ToastVariant = exports.ToastArea = exports.closeToast = exports.openToast = exports.useToast = exports.VisuallyHidden = exports.useId = exports.SelectSize = exports.RadioBoxSize = exports.Portal = exports.rgba = exports.palette = exports.LeafyGreenProvider = exports.ButtonVariant = exports.ButtonSize = exports.BannerVariant = exports.BadgeVariant = exports.NoSavedItemsIcon = exports.FavoriteIcon = exports.DocumentIcon = exports.cache = exports.sheet = exports.css = exports.keyframes = exports.injectGlobal = exports.getRegisteredStyles = exports.merge = exports.cx = exports.hydrate = exports.flush = exports.emotion = void 0;
|
|
33
|
+
exports.Combobox = exports.IndexKeysBadge = exports.HorizontalRule = exports.useEffectOnChange = exports.codePalette = exports.KeylineCard = exports.DocumentList = exports.BSONValue = exports.fontFamilies = exports.useFormattedDate = exports.useSortedItems = exports.useSortControls = exports.useDefaultAction = exports.useFocusRing = exports.focusRing = exports.mergeProps = exports.VirtualGrid = exports.useDOMRect = exports.Placeholder = exports.ListEditor = exports.InteractivePopover = exports.InlineInfoLink = exports.WorkspaceContainer = exports.TabNavBar = exports.StoreConnector = exports.ErrorBoundary = exports.EmptyContent = exports.InlineDefinition = exports.FadeInPlaceholder = exports.ContentWithFallback = exports.ThemeProvider = exports.Theme = exports.useDarkMode = exports.withDarkMode = exports.useScrollbars = exports.getScrollbarStyles = exports.FocusState = exports.useHoverState = exports.useFocusState = exports.createElectronFileInputBackend = exports.defaultSidebarWidth = exports.DropdownMenuButton = exports.ItemActionMenu = exports.ItemActionGroup = exports.ItemActionControls = exports.WorkspaceTabs = exports.WarningSummary = exports.ResizableSidebar = exports.ResizeDirection = exports.ResizeHandle = void 0;
|
|
34
|
+
exports.ComboboxGroup = exports.ComboboxOption = void 0;
|
|
34
35
|
__exportStar(require("./components/leafygreen"), exports);
|
|
35
36
|
var emotion_1 = require("@leafygreen-ui/emotion");
|
|
36
37
|
Object.defineProperty(exports, "emotion", { enumerable: true, get: function () { return __importDefault(emotion_1).default; } });
|
|
@@ -90,8 +91,6 @@ Object.defineProperty(exports, "BannerVariant", { enumerable: true, get: functio
|
|
|
90
91
|
var button_1 = require("@leafygreen-ui/button");
|
|
91
92
|
Object.defineProperty(exports, "ButtonSize", { enumerable: true, get: function () { return button_1.Size; } });
|
|
92
93
|
Object.defineProperty(exports, "ButtonVariant", { enumerable: true, get: function () { return button_1.Variant; } });
|
|
93
|
-
var checkbox_1 = require("./components/checkbox");
|
|
94
|
-
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return checkbox_1.Checkbox; } });
|
|
95
94
|
var leafygreen_provider_1 = require("@leafygreen-ui/leafygreen-provider");
|
|
96
95
|
Object.defineProperty(exports, "LeafyGreenProvider", { enumerable: true, get: function () { return __importDefault(leafygreen_provider_1).default; } });
|
|
97
96
|
var palette_1 = require("@leafygreen-ui/palette");
|
|
@@ -114,8 +113,6 @@ Object.defineProperty(exports, "openToast", { enumerable: true, get: function ()
|
|
|
114
113
|
Object.defineProperty(exports, "closeToast", { enumerable: true, get: function () { return use_toast_1.closeToast; } });
|
|
115
114
|
Object.defineProperty(exports, "ToastArea", { enumerable: true, get: function () { return use_toast_1.ToastArea; } });
|
|
116
115
|
Object.defineProperty(exports, "ToastVariant", { enumerable: true, get: function () { return use_toast_1.ToastVariant; } });
|
|
117
|
-
var toggle_1 = require("./components/toggle");
|
|
118
|
-
Object.defineProperty(exports, "Toggle", { enumerable: true, get: function () { return toggle_1.Toggle; } });
|
|
119
116
|
var tokens_1 = require("@leafygreen-ui/tokens");
|
|
120
117
|
Object.defineProperty(exports, "breakpoints", { enumerable: true, get: function () { return tokens_1.breakpoints; } });
|
|
121
118
|
Object.defineProperty(exports, "spacing", { enumerable: true, get: function () { return tokens_1.spacing; } });
|
|
@@ -139,9 +136,11 @@ var use_focus_hover_1 = require("./hooks/use-focus-hover");
|
|
|
139
136
|
Object.defineProperty(exports, "useFocusState", { enumerable: true, get: function () { return use_focus_hover_1.useFocusState; } });
|
|
140
137
|
Object.defineProperty(exports, "useHoverState", { enumerable: true, get: function () { return use_focus_hover_1.useHoverState; } });
|
|
141
138
|
Object.defineProperty(exports, "FocusState", { enumerable: true, get: function () { return use_focus_hover_1.FocusState; } });
|
|
139
|
+
var use_scrollbars_1 = require("./hooks/use-scrollbars");
|
|
140
|
+
Object.defineProperty(exports, "getScrollbarStyles", { enumerable: true, get: function () { return use_scrollbars_1.getScrollbarStyles; } });
|
|
141
|
+
Object.defineProperty(exports, "useScrollbars", { enumerable: true, get: function () { return use_scrollbars_1.useScrollbars; } });
|
|
142
142
|
var use_theme_1 = require("./hooks/use-theme");
|
|
143
|
-
Object.defineProperty(exports, "
|
|
144
|
-
Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return use_theme_1.useTheme; } });
|
|
143
|
+
Object.defineProperty(exports, "withDarkMode", { enumerable: true, get: function () { return use_theme_1.withDarkMode; } });
|
|
145
144
|
Object.defineProperty(exports, "useDarkMode", { enumerable: true, get: function () { return use_theme_1.useDarkMode; } });
|
|
146
145
|
Object.defineProperty(exports, "Theme", { enumerable: true, get: function () { return use_theme_1.Theme; } });
|
|
147
146
|
Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return use_theme_1.ThemeProvider; } });
|
|
@@ -154,6 +153,8 @@ var empty_content_1 = require("./components/empty-content");
|
|
|
154
153
|
Object.defineProperty(exports, "EmptyContent", { enumerable: true, get: function () { return empty_content_1.EmptyContent; } });
|
|
155
154
|
var error_boundary_1 = require("./components/error-boundary");
|
|
156
155
|
Object.defineProperty(exports, "ErrorBoundary", { enumerable: true, get: function () { return error_boundary_1.ErrorBoundary; } });
|
|
156
|
+
var store_connector_1 = require("./components/store-connector");
|
|
157
|
+
Object.defineProperty(exports, "StoreConnector", { enumerable: true, get: function () { return store_connector_1.StoreConnector; } });
|
|
157
158
|
var tab_nav_bar_1 = require("./components/tab-nav-bar");
|
|
158
159
|
Object.defineProperty(exports, "TabNavBar", { enumerable: true, get: function () { return tab_nav_bar_1.TabNavBar; } });
|
|
159
160
|
var workspace_container_1 = require("./components/workspace-container");
|
|
@@ -189,4 +190,16 @@ Object.defineProperty(exports, "BSONValue", { enumerable: true, get: function ()
|
|
|
189
190
|
exports.DocumentList = __importStar(require("./components/document-list"));
|
|
190
191
|
var keyline_card_1 = require("./components/keyline-card");
|
|
191
192
|
Object.defineProperty(exports, "KeylineCard", { enumerable: true, get: function () { return keyline_card_1.KeylineCard; } });
|
|
193
|
+
var code_1 = require("@leafygreen-ui/code");
|
|
194
|
+
Object.defineProperty(exports, "codePalette", { enumerable: true, get: function () { return code_1.variantColors; } });
|
|
195
|
+
var use_effect_on_change_1 = require("./hooks/use-effect-on-change");
|
|
196
|
+
Object.defineProperty(exports, "useEffectOnChange", { enumerable: true, get: function () { return use_effect_on_change_1.useEffectOnChange; } });
|
|
197
|
+
var horizontal_rule_1 = require("./components/horizontal-rule");
|
|
198
|
+
Object.defineProperty(exports, "HorizontalRule", { enumerable: true, get: function () { return horizontal_rule_1.HorizontalRule; } });
|
|
199
|
+
var index_keys_badge_1 = require("./components/index-keys-badge");
|
|
200
|
+
Object.defineProperty(exports, "IndexKeysBadge", { enumerable: true, get: function () { return index_keys_badge_1.IndexKeysBadge; } });
|
|
201
|
+
var combobox_1 = require("./components/combobox");
|
|
202
|
+
Object.defineProperty(exports, "Combobox", { enumerable: true, get: function () { return combobox_1.Combobox; } });
|
|
203
|
+
Object.defineProperty(exports, "ComboboxOption", { enumerable: true, get: function () { return combobox_1.ComboboxOption; } });
|
|
204
|
+
Object.defineProperty(exports, "ComboboxGroup", { enumerable: true, get: function () { return combobox_1.ComboboxGroup; } });
|
|
192
205
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAAwC;AAExC,kDAYgC;AAX9B,mHAAA,OAAO,OAAW;AAClB,gGAAA,KAAK,OAAA;AACL,kGAAA,OAAO,OAAA;AACP,6FAAA,EAAE,OAAA;AACF,gGAAA,KAAK,OAAA;AACL,8GAAA,mBAAmB,OAAA;AACnB,uGAAA,YAAY,OAAA;AACZ,oGAAA,SAAS,OAAA;AACT,8FAAA,GAAG,OAAA;AACH,gGAAA,KAAK,OAAA;AACL,gGAAA,KAAK,OAAA;AAEP,+EAAsD;AAyEpD,uBAzEK,uBAAY,CAyEL;AAxEd,gGAAuE;AAyErE,4BAzEK,4BAAiB,CAyEL;AAxEnB,sEAKiC;AAqE/B,oBA1EK,oBAAS,CA0EL;AAoBT,+GA3FA,2CAA8B,OA2FA;AAxFhC,0EAAqE;AAuEnE,kGAvEO,uCAAiB,OAuEP;AAtEnB,8EAG4C;AA+D1C,6FAjEA,oCAAY,OAiEA;AAUZ,+FA1EA,sCAAc,OA0EA;AAxEhB,kEAA6D;AAmE3D,8FAnEO,+BAAa,OAmEP;AAlEf,0DAAsD;AAmEpD,2FAnEO,wBAAU,OAmEP;AAlEZ,8DAA2E;AAmEzE,6FAnEO,4BAAY,OAmEP;AACZ,gGApEqB,+BAAe,OAoErB;AAnEjB,sDAAmD;AAuDjD,0FAvDO,q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AAA;AACzB,6CAAmE;AAA1D,2GAAA,eAAe,OAAA;AAAE,0GAAA,cAAc,OAAA;AACxC,iEAA8D;AAArD,sHAAA,gBAAgB,OAAA;AACzB,gDAAqD;AAA5C,sGAAA,YAAY,OAAA;AACrB,sDAA+D;AAAtD,wHAAA,OAAO,OAAa;AAC7B,2EAA2D;AAC3D,0DAAwD;AAA/C,2GAAA,WAAW,OAAA;AACpB,4CAAmE;AAA1D,mGAAA,aAAa,OAAe;AACrC,qEAAiE;AAAxD,yHAAA,iBAAiB,OAAA;AAC1B,gEAA8D;AAArD,iHAAA,cAAc,OAAA;AACvB,kEAA+D;AAAtD,kHAAA,cAAc,OAAA;AACvB,kDAAgF;AAAvE,oGAAA,QAAQ,OAAA;AAAE,0GAAA,cAAc,OAAA;AAAE,yGAAA,aAAa,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongodb-js/compass-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "React Components used in Compass",
|
|
5
5
|
"license": "SSPL",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,61 +31,68 @@
|
|
|
31
31
|
"reformat": "npm run prettier -- --write ."
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@leafygreen-ui/
|
|
38
|
-
"@leafygreen-ui/
|
|
39
|
-
"@leafygreen-ui/
|
|
40
|
-
"@leafygreen-ui/
|
|
41
|
-
"@leafygreen-ui/
|
|
34
|
+
"@dnd-kit/core": "^6.0.7",
|
|
35
|
+
"@dnd-kit/sortable": "^7.0.2",
|
|
36
|
+
"@dnd-kit/utilities": "^3.2.1",
|
|
37
|
+
"@leafygreen-ui/badge": "^8.0.1",
|
|
38
|
+
"@leafygreen-ui/banner": "^7.0.1",
|
|
39
|
+
"@leafygreen-ui/button": "^19.0.3",
|
|
40
|
+
"@leafygreen-ui/card": "^9.0.2",
|
|
41
|
+
"@leafygreen-ui/checkbox": "^12.0.2",
|
|
42
|
+
"@leafygreen-ui/code": "^14.1.0",
|
|
43
|
+
"@leafygreen-ui/confirmation-modal": "^4.0.1",
|
|
42
44
|
"@leafygreen-ui/emotion": "^4.0.3",
|
|
43
|
-
"@leafygreen-ui/
|
|
44
|
-
"@leafygreen-ui/icon
|
|
45
|
-
"@leafygreen-ui/
|
|
46
|
-
"@leafygreen-ui/
|
|
47
|
-
"@leafygreen-ui/
|
|
48
|
-
"@leafygreen-ui/
|
|
49
|
-
"@leafygreen-ui/
|
|
50
|
-
"@leafygreen-ui/
|
|
51
|
-
"@leafygreen-ui/
|
|
52
|
-
"@leafygreen-ui/
|
|
53
|
-
"@leafygreen-ui/
|
|
54
|
-
"@leafygreen-ui/
|
|
55
|
-
"@leafygreen-ui/
|
|
56
|
-
"@leafygreen-ui/
|
|
57
|
-
"@leafygreen-ui/
|
|
58
|
-
"@leafygreen-ui/
|
|
59
|
-
"@leafygreen-ui/
|
|
60
|
-
"@leafygreen-ui/
|
|
61
|
-
"@leafygreen-ui/
|
|
62
|
-
"@leafygreen-ui/
|
|
63
|
-
"@leafygreen-ui/
|
|
64
|
-
"@leafygreen-ui/
|
|
65
|
-
"@leafygreen-ui/
|
|
66
|
-
"@leafygreen-ui/
|
|
67
|
-
"@
|
|
45
|
+
"@leafygreen-ui/hooks": "^7.3.3",
|
|
46
|
+
"@leafygreen-ui/icon": "^11.12.3",
|
|
47
|
+
"@leafygreen-ui/icon-button": "^15.0.3",
|
|
48
|
+
"@leafygreen-ui/inline-definition": "^6.0.0",
|
|
49
|
+
"@leafygreen-ui/leafygreen-provider": "^3.1.0",
|
|
50
|
+
"@leafygreen-ui/lib": "^10.0.0",
|
|
51
|
+
"@leafygreen-ui/logo": "^7.0.0",
|
|
52
|
+
"@leafygreen-ui/marketing-modal": "^3.0.10",
|
|
53
|
+
"@leafygreen-ui/menu": "^19.0.1",
|
|
54
|
+
"@leafygreen-ui/modal": "^14.0.0",
|
|
55
|
+
"@leafygreen-ui/palette": "^3.4.6",
|
|
56
|
+
"@leafygreen-ui/pipeline": "^5.0.1",
|
|
57
|
+
"@leafygreen-ui/popover": "^11.0.1",
|
|
58
|
+
"@leafygreen-ui/portal": "^4.0.7",
|
|
59
|
+
"@leafygreen-ui/radio-box-group": "^12.0.1",
|
|
60
|
+
"@leafygreen-ui/radio-group": "^10.0.3",
|
|
61
|
+
"@leafygreen-ui/segmented-control": "^7.0.0",
|
|
62
|
+
"@leafygreen-ui/select": "^10.1.0",
|
|
63
|
+
"@leafygreen-ui/table": "^9.0.1",
|
|
64
|
+
"@leafygreen-ui/tabs": "^11.0.1",
|
|
65
|
+
"@leafygreen-ui/text-area": "^8.0.1",
|
|
66
|
+
"@leafygreen-ui/text-input": "^12.1.1",
|
|
67
|
+
"@leafygreen-ui/toast": "^4.0.1",
|
|
68
|
+
"@leafygreen-ui/toggle": "^10.0.2",
|
|
69
|
+
"@leafygreen-ui/tokens": "^1.4.1",
|
|
70
|
+
"@leafygreen-ui/tooltip": "^9.0.2",
|
|
71
|
+
"@leafygreen-ui/typography": "^15.2.0",
|
|
72
|
+
"@mongodb-js/compass-logging": "^1.1.2",
|
|
68
73
|
"@react-aria/interactions": "^3.9.1",
|
|
69
74
|
"@react-aria/tooltip": "^3.2.1",
|
|
70
75
|
"@react-aria/utils": "^3.13.1",
|
|
71
76
|
"@react-aria/visually-hidden": "^3.3.1",
|
|
72
77
|
"@react-stately/tooltip": "^3.0.5",
|
|
73
|
-
"bson": "^4.
|
|
78
|
+
"bson": "^4.7.1",
|
|
74
79
|
"focus-trap-react": "^8.4.2",
|
|
75
|
-
"hadron-document": "^8.0
|
|
80
|
+
"hadron-document": "^8.1.0",
|
|
76
81
|
"hadron-type-checker": "^7.0.0",
|
|
82
|
+
"is-electron-renderer": "^2.0.1",
|
|
83
|
+
"lodash": "^4.17.21",
|
|
77
84
|
"polished": "^4.2.2",
|
|
85
|
+
"prop-types": "^15.7.2",
|
|
78
86
|
"react-intersection-observer": "^8.34.0",
|
|
79
|
-
"react-sortable-hoc": "^2.0.0",
|
|
80
87
|
"react-window": "^1.8.6"
|
|
81
88
|
},
|
|
82
89
|
"peerDependencies": {
|
|
83
|
-
"react": "^
|
|
90
|
+
"react": "^17.0.2",
|
|
84
91
|
"react-ace": "^9.5.0"
|
|
85
92
|
},
|
|
86
93
|
"devDependencies": {
|
|
87
|
-
"@mongodb-js/eslint-config-compass": "^1.0.
|
|
88
|
-
"@mongodb-js/mocha-config-compass": "^1.0.
|
|
94
|
+
"@mongodb-js/eslint-config-compass": "^1.0.2",
|
|
95
|
+
"@mongodb-js/mocha-config-compass": "^1.0.2",
|
|
89
96
|
"@mongodb-js/prettier-config-compass": "^1.0.0",
|
|
90
97
|
"@mongodb-js/tsconfig-compass": "^1.0.1",
|
|
91
98
|
"@testing-library/dom": "^8.11.1",
|
|
@@ -96,14 +103,16 @@
|
|
|
96
103
|
"@types/chai-dom": "^0.0.10",
|
|
97
104
|
"@types/mocha": "^9.0.0",
|
|
98
105
|
"@types/react": "^17.0.5",
|
|
106
|
+
"@types/reflux": "^6.4.3",
|
|
99
107
|
"chai": "^4.3.4",
|
|
100
108
|
"eslint": "^7.25.0",
|
|
101
109
|
"mocha": "^8.4.0",
|
|
102
110
|
"nyc": "^15.0.0",
|
|
103
111
|
"prettier": "^2.7.1",
|
|
104
|
-
"react": "^
|
|
112
|
+
"react": "^17.0.2",
|
|
105
113
|
"react-ace": "^9.5.0",
|
|
106
|
-
"react-dom": "^
|
|
114
|
+
"react-dom": "^17.0.2",
|
|
115
|
+
"reflux": "^0.4.1",
|
|
107
116
|
"rimraf": "^3.0.2",
|
|
108
117
|
"sinon": "^9.0.0",
|
|
109
118
|
"typescript": "^4.8.3"
|
|
@@ -116,5 +125,5 @@
|
|
|
116
125
|
"publishConfig": {
|
|
117
126
|
"access": "public"
|
|
118
127
|
},
|
|
119
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "cfe9a829fd77fc84e090f2c7b38663167071ebc5"
|
|
120
129
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Checkbox as LeafyGreenCheckbox } from './leafygreen';
|
|
3
|
-
declare function Checkbox(props: React.ComponentProps<typeof LeafyGreenCheckbox>): ReturnType<typeof LeafyGreenCheckbox>;
|
|
4
|
-
export { Checkbox };
|
|
5
|
-
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/components/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,QAAQ,IAAI,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAG9D,iBAAS,QAAQ,CACf,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,GACrD,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAMvC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Checkbox = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const leafygreen_1 = require("./leafygreen");
|
|
9
|
-
const use_theme_1 = require("../hooks/use-theme");
|
|
10
|
-
function Checkbox(props) {
|
|
11
|
-
const theme = (0, use_theme_1.useTheme)();
|
|
12
|
-
return (react_1.default.createElement(leafygreen_1.Checkbox, { darkMode: (theme === null || theme === void 0 ? void 0 : theme.theme) === use_theme_1.Theme.Dark, ...props }));
|
|
13
|
-
}
|
|
14
|
-
exports.Checkbox = Checkbox;
|
|
15
|
-
//# sourceMappingURL=checkbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../src/components/checkbox.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,6CAA8D;AAC9D,kDAAqD;AAErD,SAAS,QAAQ,CACf,KAAsD;IAEtD,MAAM,KAAK,GAAG,IAAA,oBAAQ,GAAE,CAAC;IAEzB,OAAO,CACL,8BAAC,qBAAkB,IAAC,QAAQ,EAAE,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,MAAK,iBAAK,CAAC,IAAI,KAAM,KAAK,GAAI,CACzE,CAAC;AACJ,CAAC;AAEQ,4BAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/components/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAG1D,iBAAS,MAAM,CACb,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,GACnD,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAIrC;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/lib/components/toggle.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Toggle = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const leafygreen_1 = require("./leafygreen");
|
|
9
|
-
const use_theme_1 = require("../hooks/use-theme");
|
|
10
|
-
function Toggle(props) {
|
|
11
|
-
const theme = (0, use_theme_1.useTheme)();
|
|
12
|
-
return react_1.default.createElement(leafygreen_1.Toggle, { darkMode: (theme === null || theme === void 0 ? void 0 : theme.theme) === use_theme_1.Theme.Dark, ...props });
|
|
13
|
-
}
|
|
14
|
-
exports.Toggle = Toggle;
|
|
15
|
-
//# sourceMappingURL=toggle.js.map
|