@mongodb-js/compass-components 1.1.1 → 1.3.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.map +1 -1
- package/lib/components/accordion.js +4 -5
- package/lib/components/accordion.js.map +1 -1
- package/lib/components/bson-value.d.ts.map +1 -1
- package/lib/components/bson-value.js +7 -8
- package/lib/components/bson-value.js.map +1 -1
- package/lib/components/cancel-loader.js +1 -1
- package/lib/components/cancel-loader.js.map +1 -1
- package/lib/components/collapsible-field-set.d.ts +2 -4
- package/lib/components/collapsible-field-set.d.ts.map +1 -1
- package/lib/components/collapsible-field-set.js +13 -20
- package/lib/components/collapsible-field-set.js.map +1 -1
- package/lib/components/document-list/document-actions-group.js +1 -1
- package/lib/components/document-list/document-actions-group.js.map +1 -1
- package/lib/components/document-list/document-edit-actions-footer.d.ts.map +1 -1
- package/lib/components/document-list/document-edit-actions-footer.js +11 -9
- package/lib/components/document-list/document-edit-actions-footer.js.map +1 -1
- package/lib/components/document-list/document.js +4 -4
- package/lib/components/document-list/document.js.map +1 -1
- package/lib/components/document-list/element-actions.d.ts.map +1 -1
- package/lib/components/document-list/element-actions.js +6 -5
- package/lib/components/document-list/element-actions.js.map +1 -1
- package/lib/components/document-list/element-editors.d.ts.map +1 -1
- package/lib/components/document-list/element-editors.js +8 -7
- package/lib/components/document-list/element-editors.js.map +1 -1
- package/lib/components/document-list/element.d.ts.map +1 -1
- package/lib/components/document-list/element.js +13 -13
- package/lib/components/document-list/element.js.map +1 -1
- package/lib/components/document-list/typography.d.ts +6 -0
- package/lib/components/document-list/typography.d.ts.map +1 -0
- package/lib/components/document-list/typography.js +10 -0
- package/lib/components/document-list/typography.js.map +1 -0
- package/lib/components/empty-content.d.ts +12 -0
- package/lib/components/empty-content.d.ts.map +1 -0
- package/lib/components/empty-content.js +52 -0
- package/lib/components/empty-content.js.map +1 -0
- package/lib/components/error-warning-summary.d.ts +2 -0
- package/lib/components/error-warning-summary.d.ts.map +1 -1
- package/lib/components/error-warning-summary.js +6 -6
- package/lib/components/error-warning-summary.js.map +1 -1
- package/lib/components/file-input.d.ts.map +1 -1
- package/lib/components/file-input.js +8 -10
- package/lib/components/file-input.js.map +1 -1
- package/lib/components/form-field-container.d.ts +8 -0
- package/lib/components/form-field-container.d.ts.map +1 -0
- package/lib/components/form-field-container.js +16 -0
- package/lib/components/form-field-container.js.map +1 -0
- package/lib/components/icons/document-icon.d.ts +7 -0
- package/lib/components/icons/document-icon.d.ts.map +1 -0
- package/lib/components/icons/document-icon.js +52 -0
- package/lib/components/icons/document-icon.js.map +1 -0
- package/lib/components/icons/favorite-icon.d.ts.map +1 -1
- package/lib/components/icons/favorite-icon.js +2 -3
- package/lib/components/icons/favorite-icon.js.map +1 -1
- package/lib/components/icons/no-saved-items-icon.d.ts +8 -0
- package/lib/components/icons/no-saved-items-icon.d.ts.map +1 -0
- package/lib/components/icons/no-saved-items-icon.js +41 -0
- package/lib/components/icons/no-saved-items-icon.js.map +1 -0
- package/lib/components/interactive-popover.d.ts +3 -4
- package/lib/components/interactive-popover.d.ts.map +1 -1
- package/lib/components/interactive-popover.js +30 -16
- package/lib/components/interactive-popover.js.map +1 -1
- package/lib/components/item-action-controls.js +2 -2
- package/lib/components/item-action-controls.js.map +1 -1
- package/lib/components/keyline-card.d.ts +7 -0
- package/lib/components/keyline-card.d.ts.map +1 -0
- package/lib/components/keyline-card.js +28 -0
- package/lib/components/keyline-card.js.map +1 -0
- package/lib/components/leafygreen.d.ts +20 -18
- package/lib/components/leafygreen.d.ts.map +1 -1
- package/lib/components/leafygreen.js +18 -1
- package/lib/components/leafygreen.js.map +1 -1
- package/lib/components/list-editor.d.ts +14 -0
- package/lib/components/list-editor.d.ts.map +1 -0
- package/lib/components/list-editor.js +36 -0
- package/lib/components/list-editor.js.map +1 -0
- package/lib/components/{confirmation-modal.d.ts → modals/confirmation-modal.d.ts} +1 -1
- package/lib/components/modals/confirmation-modal.d.ts.map +1 -0
- package/lib/components/{confirmation-modal.js → modals/confirmation-modal.js} +1 -1
- package/lib/components/modals/confirmation-modal.js.map +1 -0
- package/lib/components/modals/form-modal.d.ts +22 -0
- package/lib/components/modals/form-modal.d.ts.map +1 -0
- package/lib/components/modals/form-modal.js +31 -0
- package/lib/components/modals/form-modal.js.map +1 -0
- package/lib/components/modals/info-modal.d.ts +12 -0
- package/lib/components/modals/info-modal.d.ts.map +1 -0
- package/lib/components/modals/info-modal.js +23 -0
- package/lib/components/modals/info-modal.js.map +1 -0
- package/lib/components/modals/modal-body.d.ts +16 -0
- package/lib/components/modals/modal-body.d.ts.map +1 -0
- package/lib/components/modals/modal-body.js +46 -0
- package/lib/components/modals/modal-body.js.map +1 -0
- package/lib/components/modals/modal-footer-button.d.ts +5 -0
- package/lib/components/modals/modal-footer-button.d.ts.map +1 -0
- package/lib/components/modals/modal-footer-button.js +37 -0
- package/lib/components/modals/modal-footer-button.js.map +1 -0
- package/lib/components/modals/modal-header.d.ts +15 -0
- package/lib/components/modals/modal-header.d.ts.map +1 -0
- package/lib/components/modals/modal-header.js +65 -0
- package/lib/components/modals/modal-header.js.map +1 -0
- package/lib/components/modals/modal.d.ts +7 -0
- package/lib/components/modals/modal.d.ts.map +1 -0
- package/lib/components/{modal.js → modals/modal.js} +9 -3
- package/lib/components/modals/modal.js.map +1 -0
- package/lib/components/placeholder.js +4 -4
- package/lib/components/placeholder.js.map +1 -1
- package/lib/components/resize-handle.d.ts.map +1 -1
- package/lib/components/resize-handle.js +2 -1
- package/lib/components/resize-handle.js.map +1 -1
- package/lib/components/resizeable-sidebar.d.ts.map +1 -1
- package/lib/components/resizeable-sidebar.js +21 -22
- package/lib/components/resizeable-sidebar.js.map +1 -1
- package/lib/components/spin-loader.js +1 -1
- package/lib/components/spin-loader.js.map +1 -1
- package/lib/components/tab-nav-bar.d.ts.map +1 -1
- package/lib/components/tab-nav-bar.js +11 -7
- package/lib/components/tab-nav-bar.js.map +1 -1
- package/lib/components/virtual-grid.d.ts +1 -1
- package/lib/components/workspace-container.d.ts +1 -0
- package/lib/components/workspace-container.d.ts.map +1 -1
- package/lib/components/workspace-container.js +88 -10
- package/lib/components/workspace-container.js.map +1 -1
- package/lib/components/workspace-tabs/tab.d.ts.map +1 -1
- package/lib/components/workspace-tabs/tab.js +26 -27
- package/lib/components/workspace-tabs/tab.js.map +1 -1
- package/lib/components/workspace-tabs/workspace-tabs.d.ts +2 -0
- package/lib/components/workspace-tabs/workspace-tabs.d.ts.map +1 -1
- package/lib/components/workspace-tabs/workspace-tabs.js +10 -8
- package/lib/components/workspace-tabs/workspace-tabs.js.map +1 -1
- package/lib/hooks/use-focus-ring.d.ts.map +1 -1
- package/lib/hooks/use-focus-ring.js +3 -2
- package/lib/hooks/use-focus-ring.js.map +1 -1
- package/lib/hooks/use-theme.d.ts +2 -1
- package/lib/hooks/use-theme.d.ts.map +1 -1
- package/lib/hooks/use-theme.js +9 -6
- package/lib/hooks/use-theme.js.map +1 -1
- package/lib/index.d.ts +15 -12
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +26 -23
- package/lib/index.js.map +1 -1
- package/package.json +37 -46
- package/lib/compass-font-sizes.d.ts +0 -3
- package/lib/compass-font-sizes.d.ts.map +0 -1
- package/lib/compass-font-sizes.js +0 -6
- package/lib/compass-font-sizes.js.map +0 -1
- package/lib/compass-ui-colors.d.ts +0 -7
- package/lib/compass-ui-colors.d.ts.map +0 -1
- package/lib/compass-ui-colors.js +0 -10
- package/lib/compass-ui-colors.js.map +0 -1
- package/lib/components/confirmation-modal.d.ts.map +0 -1
- package/lib/components/confirmation-modal.js.map +0 -1
- package/lib/components/editor.d.ts +0 -36
- package/lib/components/editor.d.ts.map +0 -1
- package/lib/components/editor.js +0 -107
- package/lib/components/editor.js.map +0 -1
- package/lib/components/leafy-green/combobox/chip.d.ts +0 -4
- package/lib/components/leafy-green/combobox/chip.d.ts.map +0 -1
- package/lib/components/leafy-green/combobox/chip.js +0 -182
- package/lib/components/leafy-green/combobox/chip.js.map +0 -1
- package/lib/components/leafy-green/combobox/combobox-context.d.ts +0 -15
- package/lib/components/leafy-green/combobox/combobox-context.d.ts.map +0 -1
- package/lib/components/leafy-green/combobox/combobox-context.js +0 -12
- package/lib/components/leafy-green/combobox/combobox-context.js.map +0 -1
- package/lib/components/leafy-green/combobox/combobox-group.d.ts +0 -9
- package/lib/components/leafy-green/combobox/combobox-group.d.ts.map +0 -1
- package/lib/components/leafy-green/combobox/combobox-group.js +0 -69
- package/lib/components/leafy-green/combobox/combobox-group.js.map +0 -1
- package/lib/components/leafy-green/combobox/combobox-option.d.ts +0 -10
- package/lib/components/leafy-green/combobox/combobox-option.d.ts.map +0 -1
- package/lib/components/leafy-green/combobox/combobox-option.js +0 -142
- package/lib/components/leafy-green/combobox/combobox-option.js.map +0 -1
- package/lib/components/leafy-green/combobox/combobox-types.d.ts +0 -94
- package/lib/components/leafy-green/combobox/combobox-types.d.ts.map +0 -1
- package/lib/components/leafy-green/combobox/combobox-types.js +0 -36
- package/lib/components/leafy-green/combobox/combobox-types.js.map +0 -1
- package/lib/components/leafy-green/combobox/combobox.d.ts +0 -4
- package/lib/components/leafy-green/combobox/combobox.d.ts.map +0 -1
- package/lib/components/leafy-green/combobox/combobox.js +0 -725
- package/lib/components/leafy-green/combobox/combobox.js.map +0 -1
- package/lib/components/leafy-green/combobox/combobox.styles.d.ts +0 -39
- package/lib/components/leafy-green/combobox/combobox.styles.d.ts.map +0 -1
- package/lib/components/leafy-green/combobox/combobox.styles.js +0 -299
- package/lib/components/leafy-green/combobox/combobox.styles.js.map +0 -1
- package/lib/components/leafy-green/combobox/index.d.ts +0 -4
- package/lib/components/leafy-green/combobox/index.d.ts.map +0 -1
- package/lib/components/leafy-green/combobox/index.js +0 -13
- package/lib/components/leafy-green/combobox/index.js.map +0 -1
- package/lib/components/leafy-green/combobox/util.d.ts +0 -27
- package/lib/components/leafy-green/combobox/util.d.ts.map +0 -1
- package/lib/components/leafy-green/combobox/util.js +0 -65
- package/lib/components/leafy-green/combobox/util.js.map +0 -1
- package/lib/components/modal-title.d.ts +0 -5
- package/lib/components/modal-title.d.ts.map +0 -1
- package/lib/components/modal-title.js +0 -18
- package/lib/components/modal-title.js.map +0 -1
- package/lib/components/modal.d.ts +0 -7
- package/lib/components/modal.d.ts.map +0 -1
- package/lib/components/modal.js.map +0 -1
- package/lib/components/toolbar.d.ts +0 -10
- package/lib/components/toolbar.d.ts.map +0 -1
- package/lib/components/toolbar.js +0 -25
- package/lib/components/toolbar.js.map +0 -1
- package/lib/constants/mongodb-ace-theme-query.d.ts +0 -3
- package/lib/constants/mongodb-ace-theme-query.d.ts.map +0 -1
- package/lib/constants/mongodb-ace-theme-query.js +0 -123
- package/lib/constants/mongodb-ace-theme-query.js.map +0 -1
- package/lib/constants/mongodb-ace-theme.d.ts +0 -3
- package/lib/constants/mongodb-ace-theme.d.ts.map +0 -1
- package/lib/constants/mongodb-ace-theme.js +0 -113
- package/lib/constants/mongodb-ace-theme.js.map +0 -1
package/lib/hooks/use-theme.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.withTheme = exports.useTheme = exports.ThemeProvider = exports.Theme = void 0;
|
|
26
|
+
exports.withTheme = exports.useTheme = exports.ThemeProvider = exports.Theme = exports.useDarkMode = void 0;
|
|
27
27
|
const react_1 = __importStar(require("react"));
|
|
28
28
|
var Theme;
|
|
29
29
|
(function (Theme) {
|
|
@@ -33,6 +33,7 @@ var Theme;
|
|
|
33
33
|
exports.Theme = Theme;
|
|
34
34
|
const ThemeContext = (0, react_1.createContext)({
|
|
35
35
|
theme: Theme.Light,
|
|
36
|
+
enabled: false,
|
|
36
37
|
});
|
|
37
38
|
const ThemeProvider = ({ children, theme, }) => {
|
|
38
39
|
return (react_1.default.createElement(ThemeContext.Provider, { value: theme }, children));
|
|
@@ -42,13 +43,15 @@ function useTheme() {
|
|
|
42
43
|
return (0, react_1.useContext)(ThemeContext);
|
|
43
44
|
}
|
|
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;
|
|
45
51
|
const withTheme = function (WrappedComponent) {
|
|
46
52
|
const ComponentWithTheme = (props, ref) => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const applyTheme = theme.enabled === true ||
|
|
50
|
-
((_b = (_a = global === null || global === void 0 ? void 0 : global.process) === null || _a === void 0 ? void 0 : _a.env) === null || _b === void 0 ? void 0 : _b.COMPASS_LG_DARKMODE) === 'true';
|
|
51
|
-
return (react_1.default.createElement(WrappedComponent, { darkMode: applyTheme ? (theme === null || theme === void 0 ? void 0 : theme.theme) === Theme.Dark : undefined, ref: ref, ...props }));
|
|
53
|
+
const darkMode = useDarkMode();
|
|
54
|
+
return (react_1.default.createElement(WrappedComponent, { darkMode: darkMode, ref: ref, ...props }));
|
|
52
55
|
};
|
|
53
56
|
const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
54
57
|
ComponentWithTheme.displayName = `withTheme(${displayName})`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-theme.js","sourceRoot":"","sources":["../../src/hooks/use-theme.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyD;AAEzD,IAAK,KAGJ;AAHD,WAAK,KAAK;IACR,wBAAe,CAAA;IACf,sBAAa,CAAA;AACf,CAAC,EAHI,KAAK,KAAL,KAAK,QAGT;
|
|
1
|
+
{"version":3,"file":"use-theme.js","sourceRoot":"","sources":["../../src/hooks/use-theme.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA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,GAAG,CAAC;IAE7D,OAAO,eAAK,CAAC,UAAU,CAAC,kBAAkB,CAA4B,CAAC;AACzE,CAAC,CAAC;AAEmD,8BAAS"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
export * from './components/leafygreen';
|
|
2
2
|
export { default as emotion, flush, hydrate, cx, merge, getRegisteredStyles, injectGlobal, keyframes, css, sheet, cache, } from '@leafygreen-ui/emotion';
|
|
3
3
|
import CancelLoader from './components/cancel-loader';
|
|
4
|
-
import ConfirmationModal from './components/confirmation-modal';
|
|
4
|
+
import ConfirmationModal from './components/modals/confirmation-modal';
|
|
5
5
|
import FileInput from './components/file-input';
|
|
6
|
-
import { Modal } from './components/modal';
|
|
7
|
-
import { ModalTitle } from './components/modal-title';
|
|
8
|
-
import { Toolbar } from './components/toolbar';
|
|
6
|
+
import { Modal } from './components/modals/modal';
|
|
9
7
|
import { MoreOptionsToggle } from './components/more-options-toggle';
|
|
10
8
|
import { ErrorSummary, WarningSummary } from './components/error-warning-summary';
|
|
11
9
|
import { RadioBoxGroup } from './components/radio-box-group';
|
|
@@ -16,17 +14,16 @@ import { CollapsibleFieldSet } from './components/collapsible-field-set';
|
|
|
16
14
|
import { WorkspaceTabs } from './components/workspace-tabs/workspace-tabs';
|
|
17
15
|
import ResizableSidebar, { defaultSidebarWidth } from './components/resizeable-sidebar';
|
|
18
16
|
import { ItemAction, MenuAction, ItemActionControls, ItemActionGroup, ItemActionMenu } from './components/item-action-controls';
|
|
19
|
-
export {
|
|
17
|
+
export { DocumentIcon } from './components/icons/document-icon';
|
|
20
18
|
export { FavoriteIcon } from './components/icons/favorite-icon';
|
|
19
|
+
export { NoSavedItemsIcon } from './components/icons/no-saved-items-icon';
|
|
21
20
|
export { Variant as BadgeVariant } from '@leafygreen-ui/badge';
|
|
22
21
|
export { Variant as BannerVariant } from '@leafygreen-ui/banner';
|
|
23
22
|
export { Size as ButtonSize, Variant as ButtonVariant, } from '@leafygreen-ui/button';
|
|
24
23
|
export { Checkbox } from './components/checkbox';
|
|
25
24
|
export { default as LeafyGreenProvider } from '@leafygreen-ui/leafygreen-provider';
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export * as compassFontSizes from './compass-font-sizes';
|
|
29
|
-
export * as compassUIColors from './compass-ui-colors';
|
|
25
|
+
export { palette } from '@leafygreen-ui/palette';
|
|
26
|
+
export { rgba } from 'polished';
|
|
30
27
|
export { default as Portal } from '@leafygreen-ui/portal';
|
|
31
28
|
export { Size as RadioBoxSize } from '@leafygreen-ui/radio-box-group';
|
|
32
29
|
export { Size as SelectSize } from '@leafygreen-ui/select';
|
|
@@ -37,18 +34,23 @@ export { Toggle } from './components/toggle';
|
|
|
37
34
|
export { breakpoints, spacing } from '@leafygreen-ui/tokens';
|
|
38
35
|
export { Tooltip } from './components/tooltip';
|
|
39
36
|
import IndexIcon from './components/index-icon';
|
|
40
|
-
export {
|
|
37
|
+
export { default as FormFieldContainer } from './components/form-field-container';
|
|
38
|
+
export { FormModal } from './components/modals/form-modal';
|
|
39
|
+
export { InfoModal } from './components/modals/info-modal';
|
|
40
|
+
export { Accordion, CollapsibleFieldSet, CancelLoader, ConfirmationModal, ErrorSummary, FileInput, IndexIcon, Modal, MoreOptionsToggle, RadioBoxGroup, SpinLoader, ResizeHandle, ResizeDirection, ResizableSidebar, WarningSummary, WorkspaceTabs, ItemAction, MenuAction, ItemActionControls, ItemActionGroup, ItemActionMenu, defaultSidebarWidth, };
|
|
41
41
|
export { useFocusState, useHoverState, FocusState, } from './hooks/use-focus-hover';
|
|
42
|
-
export { withTheme, useTheme, Theme, ThemeState, ThemeProvider, } from './hooks/use-theme';
|
|
42
|
+
export { withTheme, useTheme, useDarkMode, Theme, ThemeState, ThemeProvider, } from './hooks/use-theme';
|
|
43
43
|
export { ContentWithFallback, FadeInPlaceholder, } from './components/content-with-fallback';
|
|
44
44
|
export { InlineDefinition } from './components/inline-definition';
|
|
45
45
|
import type { glyphs } from '@leafygreen-ui/icon';
|
|
46
46
|
export declare type IconGlyph = Extract<keyof typeof glyphs, string>;
|
|
47
|
+
export { EmptyContent } from './components/empty-content';
|
|
47
48
|
export { ErrorBoundary } from './components/error-boundary';
|
|
48
49
|
export { TabNavBar } from './components/tab-nav-bar';
|
|
49
50
|
export { WorkspaceContainer } from './components/workspace-container';
|
|
50
51
|
export { InlineInfoLink } from './components/inline-info-link';
|
|
51
52
|
export { InteractivePopover } from './components/interactive-popover';
|
|
53
|
+
export { ListEditor } from './components/list-editor';
|
|
52
54
|
export { Placeholder } from './components/placeholder';
|
|
53
55
|
export { useDOMRect } from './hooks/use-dom-rect';
|
|
54
56
|
export { VirtualGrid } from './components/virtual-grid';
|
|
@@ -56,7 +58,8 @@ export { mergeProps } from './utils/merge-props';
|
|
|
56
58
|
export { focusRing, useFocusRing } from './hooks/use-focus-ring';
|
|
57
59
|
export { useDefaultAction } from './hooks/use-default-action';
|
|
58
60
|
export { useSortControls, useSortedItems } from './hooks/use-sort';
|
|
59
|
-
export {
|
|
61
|
+
export { fontFamilies } from '@leafygreen-ui/tokens';
|
|
60
62
|
export { default as BSONValue } from './components/bson-value';
|
|
61
63
|
export * as DocumentList from './components/document-list';
|
|
64
|
+
export { KeylineCard } from './components/keyline-card';
|
|
62
65
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.d.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,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,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"}
|
package/lib/index.js
CHANGED
|
@@ -29,8 +29,8 @@ 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.
|
|
33
|
-
exports.
|
|
32
|
+
exports.ResizeDirection = exports.ResizeHandle = exports.SpinLoader = exports.RadioBoxGroup = exports.MoreOptionsToggle = exports.Modal = exports.IndexIcon = exports.FileInput = exports.ErrorSummary = exports.ConfirmationModal = exports.CancelLoader = exports.CollapsibleFieldSet = exports.Accordion = exports.InfoModal = exports.FormModal = exports.FormFieldContainer = exports.Tooltip = exports.spacing = exports.breakpoints = exports.Toggle = exports.ToastVariant = exports.ToastArea = exports.useToast = exports.VisuallyHidden = exports.useId = exports.SelectSize = exports.RadioBoxSize = exports.Portal = exports.rgba = exports.palette = exports.LeafyGreenProvider = exports.Checkbox = 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.KeylineCard = exports.DocumentList = exports.BSONValue = exports.fontFamilies = 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.useTheme = exports.withTheme = exports.FocusState = exports.useHoverState = exports.useFocusState = exports.defaultSidebarWidth = exports.ItemActionMenu = exports.ItemActionGroup = exports.ItemActionControls = exports.WorkspaceTabs = exports.WarningSummary = exports.ResizableSidebar = void 0;
|
|
34
34
|
__exportStar(require("./components/leafygreen"), exports);
|
|
35
35
|
var emotion_1 = require("@leafygreen-ui/emotion");
|
|
36
36
|
Object.defineProperty(exports, "emotion", { enumerable: true, get: function () { return __importDefault(emotion_1).default; } });
|
|
@@ -46,16 +46,12 @@ Object.defineProperty(exports, "sheet", { enumerable: true, get: function () { r
|
|
|
46
46
|
Object.defineProperty(exports, "cache", { enumerable: true, get: function () { return emotion_1.cache; } });
|
|
47
47
|
const cancel_loader_1 = __importDefault(require("./components/cancel-loader"));
|
|
48
48
|
exports.CancelLoader = cancel_loader_1.default;
|
|
49
|
-
const confirmation_modal_1 = __importDefault(require("./components/confirmation-modal"));
|
|
49
|
+
const confirmation_modal_1 = __importDefault(require("./components/modals/confirmation-modal"));
|
|
50
50
|
exports.ConfirmationModal = confirmation_modal_1.default;
|
|
51
51
|
const file_input_1 = __importDefault(require("./components/file-input"));
|
|
52
52
|
exports.FileInput = file_input_1.default;
|
|
53
|
-
const modal_1 = require("./components/modal");
|
|
53
|
+
const modal_1 = require("./components/modals/modal");
|
|
54
54
|
Object.defineProperty(exports, "Modal", { enumerable: true, get: function () { return modal_1.Modal; } });
|
|
55
|
-
const modal_title_1 = require("./components/modal-title");
|
|
56
|
-
Object.defineProperty(exports, "ModalTitle", { enumerable: true, get: function () { return modal_title_1.ModalTitle; } });
|
|
57
|
-
const toolbar_1 = require("./components/toolbar");
|
|
58
|
-
Object.defineProperty(exports, "Toolbar", { enumerable: true, get: function () { return toolbar_1.Toolbar; } });
|
|
59
55
|
const more_options_toggle_1 = require("./components/more-options-toggle");
|
|
60
56
|
Object.defineProperty(exports, "MoreOptionsToggle", { enumerable: true, get: function () { return more_options_toggle_1.MoreOptionsToggle; } });
|
|
61
57
|
const error_warning_summary_1 = require("./components/error-warning-summary");
|
|
@@ -81,13 +77,12 @@ const item_action_controls_1 = require("./components/item-action-controls");
|
|
|
81
77
|
Object.defineProperty(exports, "ItemActionControls", { enumerable: true, get: function () { return item_action_controls_1.ItemActionControls; } });
|
|
82
78
|
Object.defineProperty(exports, "ItemActionGroup", { enumerable: true, get: function () { return item_action_controls_1.ItemActionGroup; } });
|
|
83
79
|
Object.defineProperty(exports, "ItemActionMenu", { enumerable: true, get: function () { return item_action_controls_1.ItemActionMenu; } });
|
|
84
|
-
var
|
|
85
|
-
Object.defineProperty(exports, "
|
|
86
|
-
Object.defineProperty(exports, "EditorVariant", { enumerable: true, get: function () { return editor_1.EditorVariant; } });
|
|
87
|
-
Object.defineProperty(exports, "EditorTextCompleter", { enumerable: true, get: function () { return editor_1.EditorTextCompleter; } });
|
|
88
|
-
Object.defineProperty(exports, "setEditorValue", { enumerable: true, get: function () { return editor_1.setEditorValue; } });
|
|
80
|
+
var document_icon_1 = require("./components/icons/document-icon");
|
|
81
|
+
Object.defineProperty(exports, "DocumentIcon", { enumerable: true, get: function () { return document_icon_1.DocumentIcon; } });
|
|
89
82
|
var favorite_icon_1 = require("./components/icons/favorite-icon");
|
|
90
83
|
Object.defineProperty(exports, "FavoriteIcon", { enumerable: true, get: function () { return favorite_icon_1.FavoriteIcon; } });
|
|
84
|
+
var no_saved_items_icon_1 = require("./components/icons/no-saved-items-icon");
|
|
85
|
+
Object.defineProperty(exports, "NoSavedItemsIcon", { enumerable: true, get: function () { return no_saved_items_icon_1.NoSavedItemsIcon; } });
|
|
91
86
|
var badge_1 = require("@leafygreen-ui/badge");
|
|
92
87
|
Object.defineProperty(exports, "BadgeVariant", { enumerable: true, get: function () { return badge_1.Variant; } });
|
|
93
88
|
var banner_1 = require("@leafygreen-ui/banner");
|
|
@@ -99,14 +94,10 @@ var checkbox_1 = require("./components/checkbox");
|
|
|
99
94
|
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return checkbox_1.Checkbox; } });
|
|
100
95
|
var leafygreen_provider_1 = require("@leafygreen-ui/leafygreen-provider");
|
|
101
96
|
Object.defineProperty(exports, "LeafyGreenProvider", { enumerable: true, get: function () { return __importDefault(leafygreen_provider_1).default; } });
|
|
102
|
-
var combobox_1 = require("./components/leafy-green/combobox");
|
|
103
|
-
Object.defineProperty(exports, "Combobox", { enumerable: true, get: function () { return combobox_1.Combobox; } });
|
|
104
|
-
Object.defineProperty(exports, "ComboboxOption", { enumerable: true, get: function () { return combobox_1.ComboboxOption; } });
|
|
105
|
-
Object.defineProperty(exports, "ComboboxGroup", { enumerable: true, get: function () { return combobox_1.ComboboxGroup; } });
|
|
106
97
|
var palette_1 = require("@leafygreen-ui/palette");
|
|
107
|
-
Object.defineProperty(exports, "
|
|
108
|
-
|
|
109
|
-
exports
|
|
98
|
+
Object.defineProperty(exports, "palette", { enumerable: true, get: function () { return palette_1.palette; } });
|
|
99
|
+
var polished_1 = require("polished");
|
|
100
|
+
Object.defineProperty(exports, "rgba", { enumerable: true, get: function () { return polished_1.rgba; } });
|
|
110
101
|
var portal_1 = require("@leafygreen-ui/portal");
|
|
111
102
|
Object.defineProperty(exports, "Portal", { enumerable: true, get: function () { return __importDefault(portal_1).default; } });
|
|
112
103
|
var radio_box_group_2 = require("@leafygreen-ui/radio-box-group");
|
|
@@ -130,6 +121,12 @@ var tooltip_1 = require("./components/tooltip");
|
|
|
130
121
|
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return tooltip_1.Tooltip; } });
|
|
131
122
|
const index_icon_1 = __importDefault(require("./components/index-icon"));
|
|
132
123
|
exports.IndexIcon = index_icon_1.default;
|
|
124
|
+
var form_field_container_1 = require("./components/form-field-container");
|
|
125
|
+
Object.defineProperty(exports, "FormFieldContainer", { enumerable: true, get: function () { return __importDefault(form_field_container_1).default; } });
|
|
126
|
+
var form_modal_1 = require("./components/modals/form-modal");
|
|
127
|
+
Object.defineProperty(exports, "FormModal", { enumerable: true, get: function () { return form_modal_1.FormModal; } });
|
|
128
|
+
var info_modal_1 = require("./components/modals/info-modal");
|
|
129
|
+
Object.defineProperty(exports, "InfoModal", { enumerable: true, get: function () { return info_modal_1.InfoModal; } });
|
|
133
130
|
var use_focus_hover_1 = require("./hooks/use-focus-hover");
|
|
134
131
|
Object.defineProperty(exports, "useFocusState", { enumerable: true, get: function () { return use_focus_hover_1.useFocusState; } });
|
|
135
132
|
Object.defineProperty(exports, "useHoverState", { enumerable: true, get: function () { return use_focus_hover_1.useHoverState; } });
|
|
@@ -137,6 +134,7 @@ Object.defineProperty(exports, "FocusState", { enumerable: true, get: function (
|
|
|
137
134
|
var use_theme_1 = require("./hooks/use-theme");
|
|
138
135
|
Object.defineProperty(exports, "withTheme", { enumerable: true, get: function () { return use_theme_1.withTheme; } });
|
|
139
136
|
Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return use_theme_1.useTheme; } });
|
|
137
|
+
Object.defineProperty(exports, "useDarkMode", { enumerable: true, get: function () { return use_theme_1.useDarkMode; } });
|
|
140
138
|
Object.defineProperty(exports, "Theme", { enumerable: true, get: function () { return use_theme_1.Theme; } });
|
|
141
139
|
Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return use_theme_1.ThemeProvider; } });
|
|
142
140
|
var content_with_fallback_1 = require("./components/content-with-fallback");
|
|
@@ -144,6 +142,8 @@ Object.defineProperty(exports, "ContentWithFallback", { enumerable: true, get: f
|
|
|
144
142
|
Object.defineProperty(exports, "FadeInPlaceholder", { enumerable: true, get: function () { return content_with_fallback_1.FadeInPlaceholder; } });
|
|
145
143
|
var inline_definition_1 = require("./components/inline-definition");
|
|
146
144
|
Object.defineProperty(exports, "InlineDefinition", { enumerable: true, get: function () { return inline_definition_1.InlineDefinition; } });
|
|
145
|
+
var empty_content_1 = require("./components/empty-content");
|
|
146
|
+
Object.defineProperty(exports, "EmptyContent", { enumerable: true, get: function () { return empty_content_1.EmptyContent; } });
|
|
147
147
|
var error_boundary_1 = require("./components/error-boundary");
|
|
148
148
|
Object.defineProperty(exports, "ErrorBoundary", { enumerable: true, get: function () { return error_boundary_1.ErrorBoundary; } });
|
|
149
149
|
var tab_nav_bar_1 = require("./components/tab-nav-bar");
|
|
@@ -154,6 +154,8 @@ var inline_info_link_1 = require("./components/inline-info-link");
|
|
|
154
154
|
Object.defineProperty(exports, "InlineInfoLink", { enumerable: true, get: function () { return inline_info_link_1.InlineInfoLink; } });
|
|
155
155
|
var interactive_popover_1 = require("./components/interactive-popover");
|
|
156
156
|
Object.defineProperty(exports, "InteractivePopover", { enumerable: true, get: function () { return interactive_popover_1.InteractivePopover; } });
|
|
157
|
+
var list_editor_1 = require("./components/list-editor");
|
|
158
|
+
Object.defineProperty(exports, "ListEditor", { enumerable: true, get: function () { return list_editor_1.ListEditor; } });
|
|
157
159
|
var placeholder_1 = require("./components/placeholder");
|
|
158
160
|
Object.defineProperty(exports, "Placeholder", { enumerable: true, get: function () { return placeholder_1.Placeholder; } });
|
|
159
161
|
var use_dom_rect_1 = require("./hooks/use-dom-rect");
|
|
@@ -170,10 +172,11 @@ Object.defineProperty(exports, "useDefaultAction", { enumerable: true, get: func
|
|
|
170
172
|
var use_sort_1 = require("./hooks/use-sort");
|
|
171
173
|
Object.defineProperty(exports, "useSortControls", { enumerable: true, get: function () { return use_sort_1.useSortControls; } });
|
|
172
174
|
Object.defineProperty(exports, "useSortedItems", { enumerable: true, get: function () { return use_sort_1.useSortedItems; } });
|
|
173
|
-
var
|
|
174
|
-
Object.defineProperty(exports, "
|
|
175
|
-
Object.defineProperty(exports, "Stage", { enumerable: true, get: function () { return pipeline_1.Stage; } });
|
|
175
|
+
var tokens_2 = require("@leafygreen-ui/tokens");
|
|
176
|
+
Object.defineProperty(exports, "fontFamilies", { enumerable: true, get: function () { return tokens_2.fontFamilies; } });
|
|
176
177
|
var bson_value_1 = require("./components/bson-value");
|
|
177
178
|
Object.defineProperty(exports, "BSONValue", { enumerable: true, get: function () { return __importDefault(bson_value_1).default; } });
|
|
178
179
|
exports.DocumentList = __importStar(require("./components/document-list"));
|
|
180
|
+
var keyline_card_1 = require("./components/keyline-card");
|
|
181
|
+
Object.defineProperty(exports, "KeylineCard", { enumerable: true, get: function () { return keyline_card_1.KeylineCard; } });
|
|
179
182
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;
|
|
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,gGA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cAAc,OAAA;AACvB,wEAAsE;AAA7D,yHAAA,kBAAkB,OAAA;AAC3B,wDAAsD;AAA7C,yGAAA,UAAU,OAAA;AACnB,wDAAuD;AAA9C,0GAAA,WAAW,OAAA;AACpB,qDAAkD;AAAzC,0GAAA,UAAU,OAAA;AACnB,0DAAwD;AAA/C,2GAAA,WAAW,OAAA;AACpB,mDAAiD;AAAxC,yGAAA,UAAU,OAAA;AACnB,yDAAiE;AAAxD,2GAAA,SAAS,OAAA;AAAE,8GAAA,YAAY,OAAA;AAChC,iEAA8D;AAArD,sHAAA,gBAAgB,OAAA;AACzB,6CAAmE;AAA1D,2GAAA,eAAe,OAAA;AAAE,0GAAA,cAAc,OAAA;AACxC,gDAAqD;AAA5C,sGAAA,YAAY,OAAA;AAErB,sDAA+D;AAAtD,wHAAA,OAAO,OAAa;AAC7B,2EAA2D;AAC3D,0DAAwD;AAA/C,2GAAA,WAAW,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongodb-js/compass-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "React Components used in Compass",
|
|
5
5
|
"license": "SSPL",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,61 +31,55 @@
|
|
|
31
31
|
"reformat": "npm run prettier -- --write ."
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@leafygreen-ui/badge": "^
|
|
35
|
-
"@leafygreen-ui/banner": "^
|
|
36
|
-
"@leafygreen-ui/button": "^16.
|
|
37
|
-
"@leafygreen-ui/card": "^7.
|
|
38
|
-
"@leafygreen-ui/checkbox": "^10.
|
|
39
|
-
"@leafygreen-ui/code": "^12.
|
|
40
|
-
"@leafygreen-ui/
|
|
41
|
-
"@leafygreen-ui/
|
|
42
|
-
"@leafygreen-ui/
|
|
43
|
-
"@leafygreen-ui/icon": "^11.
|
|
44
|
-
"@leafygreen-ui/icon-button": "^13.1
|
|
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
|
-
"@
|
|
68
|
-
"@leafygreen-ui/typography": "^13.1.1",
|
|
69
|
-
"@mongodb-js/compass-logging": "^1.1.0",
|
|
34
|
+
"@leafygreen-ui/badge": "^6.1.2",
|
|
35
|
+
"@leafygreen-ui/banner": "^5.0.3",
|
|
36
|
+
"@leafygreen-ui/button": "^16.1.1",
|
|
37
|
+
"@leafygreen-ui/card": "^7.1.1",
|
|
38
|
+
"@leafygreen-ui/checkbox": "^10.1.1",
|
|
39
|
+
"@leafygreen-ui/code": "^12.1.1",
|
|
40
|
+
"@leafygreen-ui/combobox": "^3.1.1",
|
|
41
|
+
"@leafygreen-ui/confirmation-modal": "^3.1.1",
|
|
42
|
+
"@leafygreen-ui/emotion": "^4.0.3",
|
|
43
|
+
"@leafygreen-ui/icon": "^11.11.1",
|
|
44
|
+
"@leafygreen-ui/icon-button": "^13.2.1",
|
|
45
|
+
"@leafygreen-ui/leafygreen-provider": "^2.3.5",
|
|
46
|
+
"@leafygreen-ui/logo": "^6.3.0",
|
|
47
|
+
"@leafygreen-ui/marketing-modal": "^3.0.7",
|
|
48
|
+
"@leafygreen-ui/menu": "^16.0.0",
|
|
49
|
+
"@leafygreen-ui/modal": "^10.1.2",
|
|
50
|
+
"@leafygreen-ui/palette": "^3.4.4",
|
|
51
|
+
"@leafygreen-ui/pipeline": "^3.0.0",
|
|
52
|
+
"@leafygreen-ui/popover": "^9.1.1",
|
|
53
|
+
"@leafygreen-ui/portal": "^4.0.6",
|
|
54
|
+
"@leafygreen-ui/radio-box-group": "^9.1.1",
|
|
55
|
+
"@leafygreen-ui/radio-group": "^8.1.1",
|
|
56
|
+
"@leafygreen-ui/segmented-control": "^3.1.1",
|
|
57
|
+
"@leafygreen-ui/select": "^7.1.2",
|
|
58
|
+
"@leafygreen-ui/table": "^6.1.1",
|
|
59
|
+
"@leafygreen-ui/tabs": "^9.2.1",
|
|
60
|
+
"@leafygreen-ui/text-area": "^6.2.1",
|
|
61
|
+
"@leafygreen-ui/text-input": "^10.2.1",
|
|
62
|
+
"@leafygreen-ui/toast": "^2.0.3",
|
|
63
|
+
"@leafygreen-ui/toggle": "^8.0.5",
|
|
64
|
+
"@leafygreen-ui/tokens": "^1.3.4",
|
|
65
|
+
"@leafygreen-ui/tooltip": "^7.1.3",
|
|
66
|
+
"@leafygreen-ui/typography": "^13.2.1",
|
|
67
|
+
"@mongodb-js/compass-logging": "^1.1.1",
|
|
70
68
|
"@react-aria/interactions": "^3.9.1",
|
|
71
69
|
"@react-aria/tooltip": "^3.2.1",
|
|
72
70
|
"@react-aria/utils": "^3.13.1",
|
|
73
71
|
"@react-aria/visually-hidden": "^3.3.1",
|
|
74
72
|
"@react-stately/tooltip": "^3.0.5",
|
|
75
|
-
"@types/lodash": "^4.14.172",
|
|
76
73
|
"bson": "^4.6.1",
|
|
77
74
|
"focus-trap-react": "^8.4.2",
|
|
78
75
|
"hadron-document": "^8.0.1",
|
|
79
76
|
"hadron-type-checker": "^7.0.0",
|
|
80
|
-
"lodash": "^4.17.21",
|
|
81
77
|
"polished": "^4.2.2",
|
|
78
|
+
"react-intersection-observer": "^8.25.1",
|
|
82
79
|
"react-sortable-hoc": "^2.0.0",
|
|
83
80
|
"react-window": "^1.8.6"
|
|
84
81
|
},
|
|
85
82
|
"peerDependencies": {
|
|
86
|
-
"ace-builds": "^1.4.3",
|
|
87
|
-
"mongodb-ace-autocompleter": "^1.1.1",
|
|
88
|
-
"mongodb-ace-mode": "^2.0.1",
|
|
89
83
|
"react": "^16.14.0",
|
|
90
84
|
"react-ace": "^9.5.0"
|
|
91
85
|
},
|
|
@@ -102,12 +96,9 @@
|
|
|
102
96
|
"@types/chai-dom": "^0.0.10",
|
|
103
97
|
"@types/mocha": "^9.0.0",
|
|
104
98
|
"@types/react": "^17.0.5",
|
|
105
|
-
"ace-builds": "^1.4.3",
|
|
106
99
|
"chai": "^4.3.4",
|
|
107
100
|
"eslint": "^7.25.0",
|
|
108
101
|
"mocha": "^8.4.0",
|
|
109
|
-
"mongodb-ace-autocompleter": "^1.1.1",
|
|
110
|
-
"mongodb-ace-mode": "^2.0.1",
|
|
111
102
|
"nyc": "^15.0.0",
|
|
112
103
|
"prettier": "^2.7.1",
|
|
113
104
|
"react": "^16.14.0",
|
|
@@ -125,5 +116,5 @@
|
|
|
125
116
|
"publishConfig": {
|
|
126
117
|
"access": "public"
|
|
127
118
|
},
|
|
128
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "10815be8fd57f3bfd89d061e1592eb7136d4a0fb"
|
|
129
120
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compass-font-sizes.d.ts","sourceRoot":"","sources":["../src/compass-font-sizes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,SAAS,CAAC;AACpC,eAAO,MAAM,eAAe,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compass-font-sizes.js","sourceRoot":"","sources":["../src/compass-font-sizes.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,MAAM,CAAC;AACvB,QAAA,eAAe,GAAG,MAAM,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const gray8 = "#f5f6f7";
|
|
2
|
-
export declare const transparentGray = "rgba(180, 180, 180, 0.5)";
|
|
3
|
-
export declare const transparentWhite = "rgba(255, 255, 255, 0.5)";
|
|
4
|
-
export declare const gold = "#FFC010";
|
|
5
|
-
export declare const scrollbarThumbLightTheme = "rgba(137, 151, 155, 0.65)";
|
|
6
|
-
export declare const scrollbarThumbDarkTheme = "rgba(137, 151, 155, 0.65)";
|
|
7
|
-
//# sourceMappingURL=compass-ui-colors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compass-ui-colors.d.ts","sourceRoot":"","sources":["../src/compass-ui-colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,YAAY,CAAC;AAC/B,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,gBAAgB,6BAA6B,CAAC;AAC3D,eAAO,MAAM,IAAI,YAAY,CAAC;AAG9B,eAAO,MAAM,wBAAwB,8BAA8B,CAAC;AACpE,eAAO,MAAM,uBAAuB,8BAA8B,CAAC"}
|
package/lib/compass-ui-colors.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.scrollbarThumbDarkTheme = exports.scrollbarThumbLightTheme = exports.gold = exports.transparentWhite = exports.transparentGray = exports.gray8 = void 0;
|
|
4
|
-
exports.gray8 = '#f5f6f7';
|
|
5
|
-
exports.transparentGray = 'rgba(180, 180, 180, 0.5)';
|
|
6
|
-
exports.transparentWhite = 'rgba(255, 255, 255, 0.5)';
|
|
7
|
-
exports.gold = '#FFC010';
|
|
8
|
-
exports.scrollbarThumbLightTheme = 'rgba(137, 151, 155, 0.65)';
|
|
9
|
-
exports.scrollbarThumbDarkTheme = 'rgba(137, 151, 155, 0.65)';
|
|
10
|
-
//# sourceMappingURL=compass-ui-colors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compass-ui-colors.js","sourceRoot":"","sources":["../src/compass-ui-colors.ts"],"names":[],"mappings":";;;AAAa,QAAA,KAAK,GAAG,SAAS,CAAC;AAClB,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAC7C,QAAA,gBAAgB,GAAG,0BAA0B,CAAC;AAC9C,QAAA,IAAI,GAAG,SAAS,CAAC;AAGjB,QAAA,wBAAwB,GAAG,2BAA2B,CAAC;AACvD,QAAA,uBAAuB,GAAG,2BAA2B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"confirmation-modal.d.ts","sourceRoot":"","sources":["../../src/components/confirmation-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,iBAAiB,IAAI,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAEhF,iBAAS,iBAAiB,CAAC,EACzB,UAAU,EACV,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,2BAA2B,CAAC,GAAG;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,KAAK,CAAC,YAAY,CAOrB;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"confirmation-modal.js","sourceRoot":"","sources":["../../src/components/confirmation-modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,iEAAuE;AACvE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,0CAAwB,EAAC,YAAY,CAAC,CAAC;AAEzD,6CAAgF;AAEhF,SAAS,iBAAiB,CAAC,EACzB,UAAU,EACV,GAAG,KAAK,EAGT;IACC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,KAAK,CAAC,IAAI,IAAI,UAAU,EAAE;YAC5B,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;SACvC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;IAC7B,OAAO,8BAAC,8BAA2B,mBAAc,UAAU,KAAM,KAAK,GAAI,CAAC;AAC7E,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'ace-builds';
|
|
3
|
-
import type { IAceEditorProps, IAceOptions } from 'react-ace';
|
|
4
|
-
import 'ace-builds/src-noconflict/ext-language_tools';
|
|
5
|
-
import 'ace-builds/src-noconflict/mode-javascript';
|
|
6
|
-
import 'ace-builds/src-noconflict/mode-json';
|
|
7
|
-
import 'ace-builds/src-noconflict/mode-csharp';
|
|
8
|
-
import 'ace-builds/src-noconflict/mode-python';
|
|
9
|
-
import 'ace-builds/src-noconflict/mode-java';
|
|
10
|
-
import 'ace-builds/src-noconflict/mode-ruby';
|
|
11
|
-
import 'ace-builds/src-noconflict/mode-rust';
|
|
12
|
-
import 'ace-builds/src-noconflict/mode-golang';
|
|
13
|
-
import 'ace-builds/src-noconflict/mode-php';
|
|
14
|
-
import 'mongodb-ace-mode';
|
|
15
|
-
import '../constants/mongodb-ace-theme';
|
|
16
|
-
import '../constants/mongodb-ace-theme-query';
|
|
17
|
-
declare const EditorVariant: {
|
|
18
|
-
readonly Shell: "Shell";
|
|
19
|
-
readonly EJSON: "EJSON";
|
|
20
|
-
readonly Generic: "Generic";
|
|
21
|
-
};
|
|
22
|
-
declare type EditorProps = {
|
|
23
|
-
variant: keyof typeof EditorVariant;
|
|
24
|
-
text?: string;
|
|
25
|
-
id?: string;
|
|
26
|
-
options?: Omit<IAceOptions, 'readOnly'>;
|
|
27
|
-
readOnly?: boolean;
|
|
28
|
-
completer?: unknown;
|
|
29
|
-
'data-testid'?: string;
|
|
30
|
-
onChangeText?: (text: string, event?: any) => void;
|
|
31
|
-
} & Omit<IAceEditorProps, 'onChange' | 'value'>;
|
|
32
|
-
declare function Editor({ text, variant, options, readOnly, id, onChangeText, completer, onFocus, 'data-testid': dataTestId, ...aceProps }: EditorProps): React.ReactElement;
|
|
33
|
-
declare function setEditorValue(element: HTMLElement, value: string): void;
|
|
34
|
-
declare const EditorTextCompleter: any;
|
|
35
|
-
export { Editor, EditorVariant, EditorTextCompleter, setEditorValue };
|
|
36
|
-
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/components/editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAYvD,OAAO,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAI9D,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,qCAAqC,CAAC;AAC7C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,oCAAoC,CAAC;AAE5C,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAiB9C,QAAA,MAAM,aAAa;;;;CAIT,CAAC;AAEX,aAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,OAAO,aAAa,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,S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