@mongodb-js/compass-components 0.15.0 → 0.16.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 +0 -1
- package/lib/components/accordion.js.map +1 -1
- package/lib/components/cancel-loader.d.ts +2 -2
- package/lib/components/cancel-loader.d.ts.map +1 -1
- package/lib/components/cancel-loader.js +2 -2
- package/lib/components/cancel-loader.js.map +1 -1
- package/lib/components/document-list/document-edit-actions-footer.d.ts +15 -0
- package/lib/components/document-list/document-edit-actions-footer.d.ts.map +1 -0
- package/lib/components/document-list/document-edit-actions-footer.js +255 -0
- package/lib/components/document-list/document-edit-actions-footer.js.map +1 -0
- package/lib/components/document-list/element-editors.d.ts.map +1 -1
- package/lib/components/document-list/element-editors.js +4 -2
- 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 +7 -5
- package/lib/components/document-list/element.js.map +1 -1
- package/lib/components/document-list/index.d.ts +1 -0
- package/lib/components/document-list/index.d.ts.map +1 -1
- package/lib/components/document-list/index.js +3 -1
- package/lib/components/document-list/index.js.map +1 -1
- package/lib/components/editor.d.ts +7 -4
- package/lib/components/editor.d.ts.map +1 -1
- package/lib/components/editor.js +19 -6
- package/lib/components/editor.js.map +1 -1
- package/lib/components/leafygreen.d.ts +3 -1
- package/lib/components/leafygreen.d.ts.map +1 -1
- package/lib/components/leafygreen.js +4 -1
- package/lib/components/leafygreen.js.map +1 -1
- package/lib/components/more-options-toggle.d.ts +11 -0
- package/lib/components/more-options-toggle.d.ts.map +1 -0
- package/lib/components/more-options-toggle.js +56 -0
- package/lib/components/more-options-toggle.js.map +1 -0
- package/lib/constants/mongodb-ace-theme-query.d.ts +4 -0
- package/lib/constants/mongodb-ace-theme-query.d.ts.map +1 -0
- package/lib/constants/mongodb-ace-theme-query.js +235 -0
- package/lib/constants/mongodb-ace-theme-query.js.map +1 -0
- package/lib/constants/mongodb-ace-theme.d.ts +3 -0
- package/lib/constants/mongodb-ace-theme.d.ts.map +1 -0
- package/lib/constants/mongodb-ace-theme.js +113 -0
- package/lib/constants/mongodb-ace-theme.js.map +1 -0
- package/lib/hooks/use-focus-ring.d.ts +2 -2
- package/lib/hooks/use-focus-ring.d.ts.map +1 -1
- package/lib/hooks/use-focus-ring.js +4 -4
- package/lib/hooks/use-focus-ring.js.map +1 -1
- package/lib/index.d.ts +4 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -2
- package/lib/index.js.map +1 -1
- package/package.json +13 -16
package/lib/components/editor.js
CHANGED
|
@@ -3,8 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.EditorTextCompleter = exports.EditorVariant = exports.Editor = void 0;
|
|
6
|
+
exports.setEditorValue = exports.EditorTextCompleter = exports.EditorVariant = exports.Editor = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const utils_1 = require("@react-aria/utils");
|
|
8
9
|
if (typeof window === 'undefined' && typeof globalThis !== 'undefined') {
|
|
9
10
|
globalThis.window = {};
|
|
10
11
|
}
|
|
@@ -18,9 +19,10 @@ require("ace-builds/src-noconflict/mode-python");
|
|
|
18
19
|
require("ace-builds/src-noconflict/mode-java");
|
|
19
20
|
require("ace-builds/src-noconflict/mode-ruby");
|
|
20
21
|
require("ace-builds/src-noconflict/mode-rust");
|
|
22
|
+
require("ace-builds/src-noconflict/mode-golang");
|
|
21
23
|
require("mongodb-ace-mode");
|
|
22
|
-
require("mongodb-ace-theme");
|
|
23
|
-
require("mongodb-ace-theme-query");
|
|
24
|
+
require("../constants/mongodb-ace-theme");
|
|
25
|
+
require("../constants/mongodb-ace-theme-query");
|
|
24
26
|
const ext_language_tools_1 = __importDefault(require("ace-builds/src-noconflict/ext-language_tools"));
|
|
25
27
|
const DEFAULT_OPTIONS = {
|
|
26
28
|
enableLiveAutocompletion: false,
|
|
@@ -37,7 +39,8 @@ const EditorVariant = {
|
|
|
37
39
|
Generic: 'Generic',
|
|
38
40
|
};
|
|
39
41
|
exports.EditorVariant = EditorVariant;
|
|
40
|
-
function Editor({ text, variant, options, readOnly, onChangeText, completer, onFocus, ...aceProps }) {
|
|
42
|
+
function Editor({ text, variant, options, readOnly, onChangeText, completer, onFocus, 'data-testid': dataTestId, ...aceProps }) {
|
|
43
|
+
var _a;
|
|
41
44
|
const setOptions = {
|
|
42
45
|
...DEFAULT_OPTIONS,
|
|
43
46
|
...options,
|
|
@@ -45,18 +48,28 @@ function Editor({ text, variant, options, readOnly, onChangeText, completer, onF
|
|
|
45
48
|
...(variant === 'Shell' && { mode: 'ace/mode/mongodb' }),
|
|
46
49
|
...(!!completer && { enableLiveAutocompletion: true }),
|
|
47
50
|
};
|
|
48
|
-
|
|
51
|
+
const editorId = (0, utils_1.useId)();
|
|
52
|
+
const editor = (react_1.default.createElement(react_ace_1.default, { mode: variant === 'Generic'
|
|
49
53
|
? undefined
|
|
50
54
|
: variant === 'EJSON'
|
|
51
55
|
? 'json'
|
|
52
|
-
: 'javascript', theme: "mongodb", width: "100%", value: text, onChange: onChangeText, editorProps: { $blockScrolling: Infinity }, setOptions: setOptions, readOnly: readOnly, ...aceProps, onFocus: (ev) => {
|
|
56
|
+
: 'javascript', theme: "mongodb", width: "100%", value: text, onChange: onChangeText, editorProps: { $blockScrolling: Infinity }, setOptions: setOptions, readOnly: readOnly, name: (_a = aceProps.name) !== null && _a !== void 0 ? _a : editorId, ...aceProps, onFocus: (ev) => {
|
|
53
57
|
if (completer) {
|
|
54
58
|
ext_language_tools_1.default.setCompleters([completer]);
|
|
55
59
|
}
|
|
56
60
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(ev);
|
|
57
61
|
} }));
|
|
62
|
+
return dataTestId ? react_1.default.createElement("div", { "data-testid": dataTestId }, editor) : editor;
|
|
58
63
|
}
|
|
59
64
|
exports.Editor = Editor;
|
|
65
|
+
function setEditorValue(element, value) {
|
|
66
|
+
const container = element.querySelector('.ace_editor');
|
|
67
|
+
if (!container) {
|
|
68
|
+
throw new Error('Cannot find editor container');
|
|
69
|
+
}
|
|
70
|
+
window.ace.edit(container.id).setValue(value);
|
|
71
|
+
}
|
|
72
|
+
exports.setEditorValue = setEditorValue;
|
|
60
73
|
const EditorTextCompleter = ext_language_tools_1.default.textCompleter;
|
|
61
74
|
exports.EditorTextCompleter = EditorTextCompleter;
|
|
62
75
|
//# sourceMappingURL=editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../../src/components/editor.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;
|
|
1
|
+
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../../src/components/editor.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,6CAA0C;AAE1C,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,UAAU,KAAK,WAAW,EAAE;IAMrE,UAAkB,CAAC,MAAM,GAAG,EAAE,CAAC;CACjC;AAED,sBAAoB;AAEpB,0DAAkC;AAClC,wDAAsD;AACtD,qDAAmD;AACnD,+CAA6C;AAC7C,iDAA+C;AAC/C,iDAA+C;AAC/C,+CAA6C;AAC7C,+CAA6C;AAC7C,+CAA6C;AAC7C,iDAA+C;AAC/C,4BAA0B;AAC1B,0CAAwC;AACxC,gDAA8C;AAC9C,sGAAiE;AAKjE,MAAM,eAAe,GAAgB;IACnC,wBAAwB,EAAE,KAAK;IAC/B,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,KAAK;CACjB,CAAC;AAEF,MAAM,aAAa,GA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AO,CAAG,EAAE,CAAC,CAAC;QAChB,CAAC,GACD,CACH,CAAC;IAKF,OAAO,UAAU,CAAC,CAAC,CAAC,sDAAkB,UAAU,IAAG,MAAM,CAAO,CAAC,CAAC,CAAC,MAAM,CAAC;AAC5E,CAAC;AAmBQ,wBAAM;AATf,SAAS,cAAc,CAAC,OAAoB,EAAE,KAAa;IACzD,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IACvD,IAAI,CAAC,SAAS,EAAE;QACd,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;KACjD;IACA,MAAc,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzD,CAAC;AAGoD,wCAAc;AADnE,MAAM,mBAAmB,GAAG,4BAAK,CAAC,aAAa,CAAC;AAChB,kDAAmB"}
|
|
@@ -3,6 +3,7 @@ import { default as Badge } from '@leafygreen-ui/badge';
|
|
|
3
3
|
import { default as Banner } from '@leafygreen-ui/banner';
|
|
4
4
|
import { default as LeafyGreenCheckbox } from '@leafygreen-ui/checkbox';
|
|
5
5
|
import { default as LeafyGreenCard } from '@leafygreen-ui/card';
|
|
6
|
+
import { default as LeafyGreenCode } from '@leafygreen-ui/code';
|
|
6
7
|
import { default as LeafyGreenConfirmationModal } from '@leafygreen-ui/confirmation-modal';
|
|
7
8
|
import { default as Icon } from '@leafygreen-ui/icon';
|
|
8
9
|
import { default as LeafyGreenIconButton } from '@leafygreen-ui/icon-button';
|
|
@@ -26,6 +27,7 @@ declare const Button: import("@leafygreen-ui/box").ExtendableBox<import("@leafyg
|
|
|
26
27
|
}, "button">;
|
|
27
28
|
declare const Card: typeof LeafyGreenCard;
|
|
28
29
|
declare const Checkbox: typeof LeafyGreenCheckbox;
|
|
30
|
+
declare const Code: typeof LeafyGreenCode;
|
|
29
31
|
declare const ConfirmationModal: typeof LeafyGreenConfirmationModal;
|
|
30
32
|
declare const IconButton: typeof LeafyGreenIconButton;
|
|
31
33
|
declare const ModalFooter: typeof LeafyGreenModalFooter;
|
|
@@ -59,5 +61,5 @@ declare const Description: {
|
|
|
59
61
|
}): JSX.Element;
|
|
60
62
|
displayName: string;
|
|
61
63
|
};
|
|
62
|
-
export { AtlasLogoMark, Badge, Banner, Button, Card, Checkbox, ConfirmationModal, Icon, IconButton, Menu, MenuItem, MenuSeparator, Modal, ModalFooter, MongoDBLogoMark, MongoDBLogo, RadioBox, RadioBoxGroup, Radio, RadioGroup, SegmentedControl, SegmentedControlOption, Select, Option, OptionGroup, Table, TableHeader, Row, Cell, Tab, Tabs, TextArea, TextInput, Toast, Toggle, Tooltip, H1, H2, H3, Subtitle, Body, InlineCode, InlineKeyCode, Disclaimer, Overline, Label, Link, Description, };
|
|
64
|
+
export { AtlasLogoMark, Badge, Banner, Button, Card, Checkbox, Code, ConfirmationModal, Icon, IconButton, Menu, MenuItem, MenuSeparator, Modal, ModalFooter, MongoDBLogoMark, MongoDBLogo, RadioBox, RadioBoxGroup, Radio, RadioGroup, SegmentedControl, SegmentedControlOption, Select, Option, OptionGroup, Table, TableHeader, Row, Cell, Tab, Tabs, TextArea, TextInput, Toast, Toggle, Tooltip, H1, H2, H3, Subtitle, Body, InlineCode, InlineKeyCode, Disclaimer, Overline, Label, Link, Description, };
|
|
63
65
|
//# sourceMappingURL=leafygreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leafygreen.d.ts","sourceRoot":"","sources":["../../src/components/leafygreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,E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AClC,QAAA,MAAM,KAAK,wBAIgB,CAAC;AAC5B,QAAA,MAAM,UAAU,EAAE,OAAO,oBAIO,CAAC;AACjC,QAAA,MAAM,gBAAgB,+JAEgB,CAAC;AACvC,QAAA,MAAM,MAAM,EAAE,OAAO,gBAIO,CAAC;AAC7B,QAAA,MAAM,KAAK,wBAAuD,CAAC;AACnE,QAAA,MAAM,IAAI,uBAIgB,CAAC;AAC3B,QAAA,MAAM,QAAQ,EAAE,OAAO,kBAAkD,CAAC;AAC1E,QAAA,MAAM,SAAS,EAAE,OAAO,mBAAoD,CAAC;AAC7E,QAAA,MAAM,MAAM,yBAIgB,CAAC;AAC7B,QAAA,MAAM,OAAO,0BAIgB,CAAC;AAC9B,QAAA,MAAM,KAAK;;;;;;;;;;CAAuD,CAAC;AACnE,QAAA,MAAM,WAAW;;;;;;;;CAEgB,CAAC;AAGlC,OAAO,EACL,aAAa,EACb,KAAK,EACL,MAAM,EACN,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,iBAAiB,EACjB,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,KAAK,EACL,WAAW,EACX,eAAe,EACf,WAAW,EACX,QAAQ,EACR,aAAa,EACb,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,MAAM,EACN,MAAM,EACN,WAAW,EACX,KAAK,EACL,WAAW,EACX,GAAG,EACH,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,MAAM,EACN,OAAO,EACP,EAAE,EACF,EAAE,EACF,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,aAAa,EACb,UAAU,EACV,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,WAAW,GACZ,CAAC"}
|
|
@@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
22
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.Description = exports.Link = exports.Label = exports.Overline = exports.Disclaimer = exports.InlineKeyCode = exports.InlineCode = exports.Body = exports.Subtitle = exports.H3 = exports.H2 = exports.H1 = exports.Tooltip = exports.Toggle = exports.Toast = exports.TextInput = exports.TextArea = exports.Tabs = exports.Tab = exports.Cell = exports.Row = exports.TableHeader = exports.Table = exports.OptionGroup = exports.Option = exports.Select = exports.SegmentedControlOption = exports.SegmentedControl = exports.RadioGroup = exports.Radio = exports.RadioBoxGroup = exports.RadioBox = exports.MongoDBLogo = exports.MongoDBLogoMark = exports.ModalFooter = exports.Modal = exports.MenuSeparator = exports.MenuItem = exports.Menu = exports.IconButton = exports.Icon = exports.ConfirmationModal = exports.Checkbox = exports.Card = exports.Button = exports.Banner = exports.Badge = exports.AtlasLogoMark = void 0;
|
|
25
|
+
exports.Description = exports.Link = exports.Label = exports.Overline = exports.Disclaimer = exports.InlineKeyCode = exports.InlineCode = exports.Body = exports.Subtitle = exports.H3 = exports.H2 = exports.H1 = exports.Tooltip = exports.Toggle = exports.Toast = exports.TextInput = exports.TextArea = exports.Tabs = exports.Tab = exports.Cell = exports.Row = exports.TableHeader = exports.Table = exports.OptionGroup = exports.Option = exports.Select = exports.SegmentedControlOption = exports.SegmentedControl = exports.RadioGroup = exports.Radio = exports.RadioBoxGroup = exports.RadioBox = exports.MongoDBLogo = exports.MongoDBLogoMark = exports.ModalFooter = exports.Modal = exports.MenuSeparator = exports.MenuItem = exports.Menu = exports.IconButton = exports.Icon = exports.ConfirmationModal = exports.Code = exports.Checkbox = exports.Card = exports.Button = exports.Banner = exports.Badge = exports.AtlasLogoMark = void 0;
|
|
26
26
|
const use_theme_1 = require("../hooks/use-theme");
|
|
27
27
|
const badge_1 = __importDefault(require("@leafygreen-ui/badge"));
|
|
28
28
|
Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return badge_1.default; } });
|
|
@@ -31,6 +31,7 @@ Object.defineProperty(exports, "Banner", { enumerable: true, get: function () {
|
|
|
31
31
|
const button_1 = __importDefault(require("@leafygreen-ui/button"));
|
|
32
32
|
const checkbox_1 = __importDefault(require("@leafygreen-ui/checkbox"));
|
|
33
33
|
const card_1 = __importDefault(require("@leafygreen-ui/card"));
|
|
34
|
+
const code_1 = __importDefault(require("@leafygreen-ui/code"));
|
|
34
35
|
const confirmation_modal_1 = __importDefault(require("@leafygreen-ui/confirmation-modal"));
|
|
35
36
|
const icon_1 = __importDefault(require("@leafygreen-ui/icon"));
|
|
36
37
|
Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return icon_1.default; } });
|
|
@@ -83,6 +84,8 @@ const Card = (0, use_theme_1.withTheme)(card_1.default);
|
|
|
83
84
|
exports.Card = Card;
|
|
84
85
|
const Checkbox = (0, use_theme_1.withTheme)(checkbox_1.default);
|
|
85
86
|
exports.Checkbox = Checkbox;
|
|
87
|
+
const Code = (0, use_theme_1.withTheme)(code_1.default);
|
|
88
|
+
exports.Code = Code;
|
|
86
89
|
const ConfirmationModal = (0, use_theme_1.withTheme)(confirmation_modal_1.default);
|
|
87
90
|
exports.ConfirmationModal = ConfirmationModal;
|
|
88
91
|
const IconButton = (0, use_theme_1.withTheme)(icon_button_1.default);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leafygreen.js","sourceRoot":"","sources":["../../src/components/leafygreen.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kDAA+C;AAM/C,iEAAwD;
|
|
1
|
+
{"version":3,"file":"leafygreen.js","sourceRoot":"","sources":["../../src/components/leafygreen.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kDAA+C;AAM/C,iEAAwD;AA0ItD,sFA1IkB,eAAK,OA0IlB;AAzIP,mEAA0D;AA0IxD,uFA1IkB,gBAAM,OA0IlB;AAzIR,mEAAoE;AACpE,uEAAwE;AACxE,+DAAgE;AAChE,+DAAgE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5B,0BAAO;AA3CT,MAAM,KAAK,GAAG,IAAA,qBAAS,EAAC,kBAAe,CAA2B,CAAC;AAqDjE,sBAAK;AApDP,MAAM,WAAW,GAAG,IAAA,qBAAS,EAC3B,wBAAqB,CACU,CAAC;AAoDhC,kCAAW"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type MoreOptionsToggleProps = {
|
|
3
|
+
'aria-controls': string;
|
|
4
|
+
'data-testid'?: string;
|
|
5
|
+
isExpanded: boolean;
|
|
6
|
+
onToggleOptions: () => void;
|
|
7
|
+
id?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const MoreOptionsToggle: React.FunctionComponent<MoreOptionsToggleProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=more-options-toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"more-options-toggle.d.ts","sourceRoot":"","sources":["../../src/components/more-options-toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AA0BvC,aAAK,sBAAsB,GAAG;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC,sBAAsB,CA6C3E,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.MoreOptionsToggle = void 0;
|
|
23
|
+
const react_1 = __importStar(require("react"));
|
|
24
|
+
const emotion_1 = require("@leafygreen-ui/emotion");
|
|
25
|
+
const tokens_1 = require("@leafygreen-ui/tokens");
|
|
26
|
+
const use_focus_ring_1 = require("../hooks/use-focus-ring");
|
|
27
|
+
const leafygreen_1 = require("./leafygreen");
|
|
28
|
+
const merge_props_1 = require("../utils/merge-props");
|
|
29
|
+
const optionContainerStyles = (0, emotion_1.css)({
|
|
30
|
+
textAlign: 'center',
|
|
31
|
+
minWidth: tokens_1.spacing[4] * 5,
|
|
32
|
+
});
|
|
33
|
+
const optionsButtonStyles = (0, emotion_1.css)({
|
|
34
|
+
backgroundColor: 'transparent',
|
|
35
|
+
border: 'none',
|
|
36
|
+
padding: `${tokens_1.spacing[1]}px ${tokens_1.spacing[2]}px`,
|
|
37
|
+
});
|
|
38
|
+
const optionStyles = (0, emotion_1.css)({
|
|
39
|
+
display: 'flex',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
});
|
|
42
|
+
const MoreOptionsToggle = ({ 'aria-controls': ariaControls, isExpanded, id, 'data-testid': dataTestId, onToggleOptions, }) => {
|
|
43
|
+
const optionsIcon = (0, react_1.useMemo)(() => (isExpanded ? 'CaretDown' : 'CaretRight'), [isExpanded]);
|
|
44
|
+
const optionsLabel = (0, react_1.useMemo)(() => (isExpanded ? 'Less Options' : 'More Options'), [isExpanded]);
|
|
45
|
+
const focusRingProps = (0, use_focus_ring_1.useFocusRing)();
|
|
46
|
+
const buttonProps = (0, merge_props_1.mergeProps)({
|
|
47
|
+
className: optionsButtonStyles,
|
|
48
|
+
}, focusRingProps);
|
|
49
|
+
return (react_1.default.createElement("div", { className: optionContainerStyles },
|
|
50
|
+
react_1.default.createElement(leafygreen_1.Link, { "aria-label": optionsLabel, "aria-expanded": isExpanded, "aria-controls": ariaControls, as: "button", hideExternalIcon: true, "data-testid": dataTestId, id: id, onClick: onToggleOptions, ...buttonProps },
|
|
51
|
+
react_1.default.createElement("div", { className: optionStyles },
|
|
52
|
+
optionsLabel,
|
|
53
|
+
react_1.default.createElement(leafygreen_1.Icon, { glyph: optionsIcon })))));
|
|
54
|
+
};
|
|
55
|
+
exports.MoreOptionsToggle = MoreOptionsToggle;
|
|
56
|
+
//# sourceMappingURL=more-options-toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"more-options-toggle.js","sourceRoot":"","sources":["../../src/components/more-options-toggle.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAuC;AACvC,oDAA6C;AAC7C,kDAAgD;AAEhD,4DAAuD;AACvD,6CAA0C;AAC1C,sDAAkD;AAElD,MAAM,qBAAqB,GAAG,IAAA,aAAG,EAAC;IAChC,SAAS,EAAE,QAAQ;IACnB,QAAQ,EAAE,gBAAO,CAAC,CAAC,CAAC,GAAG,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,IAAA,aAAG,EAAC;IAE9B,eAAe,EAAE,aAAa;IAC9B,MAAM,EAAE,MAAM;IAEd,OAAO,EAAE,GAAG,gBAAO,CAAC,CAAC,CAAC,MAAM,gBAAO,CAAC,CAAC,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ter {\nbackground: #ffffff;\ncolor: #999999;\n}\n.ace-mongodb-query {\nbackground: #ffffff;\ncolor: #000;\n}\n.ace-mongodb-query .ace_placeholder {\nfont-family: inherit;\ntransform: none;\nopacity: 1;\nmargin: 0;\n}\n.ace-mongodb-query .ace_keyword {\ncolor: #999999;\nfont-weight: normal;\n}\n.ace-mongodb-query .ace_gutter-cell {\npadding-left: 5px;\npadding-right: 10px;\n}\n.ace-mongodb-query .ace_string {\ncolor: #5b81a9;\n}\n.ace-mongodb-query .ace_boolean {\ncolor: #5b81a9;\nfont-weight: normal;\n}\n.ace-mongodb-query .ace_constant.ace_numeric {\ncolor: #5b81a9;\n}\n.ace-mongodb-query .ace_string.ace_regexp {\ncolor: #5b81a9;\n}\n.ace-mongodb-query .ace_variable.ace_class {\ncolor: teal;\n}\n.ace-mongodb-query .ace_constant.ace_buildin {\ncolor: #0086B3;\n}\n.ace-mongodb-query .ace_support.ace_function {\ncolor: #0086B3;\n}\n.ace-mongodb-query .ace_comment {\ncolor: #998;\nfont-style: italic;\n}\n.ace-mongodb-query .ace_variable.ace_language {\ncolor: #0086B3;\n}\n.ace-mongodb-query .ace_paren {\nfont-weight: normal;\n}\n.ace-mongodb-query .ace_variable.ace_instance {\ncolor: teal;\n}\n.ace-mongodb-query .ace_constant.ace_language {\nfont-weight: bold;\n}\n.ace-mongodb-query .ace_cursor {\ncolor: #999999;\n}\n.ace-mongodb-query.ace_focus .ace_marker-layer .ace_active-line {\nbackground: #ffffff;\n}\n.ace-mongodb-query .ace_marker-layer .ace_active-line {\nbackground: #ffffff;\n}\n.ace-mongodb-query .ace_marker-layer .ace_selection {\nbackground: rgb(181, 213, 255);\n}\n.ace-mongodb-query.ace_multiselect .ace_selection.ace_start {\nbox-shadow: 0 0 3px 0px white;\n}\n.ace-mongodb-query.ace_nobold .ace_line > span {\nfont-weight: normal !important;\n}\n.ace-mongodb-query .ace_marker-layer .ace_step {\nbackground: rgb(252, 255, 0);\n}\n.ace-mongodb-query .ace_marker-layer .ace_stack {\nbackground: rgb(164, 229, 101);\n}\n.ace-mongodb-query .ace_marker-layer .ace_bracket {\nmargin: -1px 0 0 -1px;\nborder: 1px solid rgb(192, 192, 192);\n}\n.ace-mongodb-query .ace_gutter-active-line {\nbackground: #ffffff;\n}\n.ace-mongodb-query .ace_marker-layer .ace_selected-word {\nbackground: rgb(250, 250, 255);\nborder: 1px solid rgb(200, 200, 250);\n}\n.ace-mongodb-query .ace_invisible {\ncolor: #BFBFBF\n}\n.ace-mongodb-query .ace_print-margin {\nwidth: 1px;\nbackground: #e8e8e8;\n}\n.ace-mongodb-query .ace_hidden-cursors {\n opacity: 0;\n}\n.ace-mongodb-query .ace_indent-guide {\nbackground: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\n}";
|
|
2
|
+
declare const mongodbAceThemeQueryCssText = "\n.ace-mongodb-query .ace_scroller {\npadding: 0px 14px;\n}\n.ace-mongodb-query .ace_gutter {\nbackground: #ffffff;\ncolor: #999999;\n}\n.ace-mongodb-query {\nbackground: #ffffff;\ncolor: #000;\n}\n.ace-mongodb-query .ace_placeholder {\nfont-family: inherit;\ntransform: none;\nopacity: 1;\nmargin: 0;\npadding: 14px 8px !important;\n}\n.ace-mongodb-query .ace_keyword {\ncolor: #999999;\nfont-weight: normal;\n}\n.ace-mongodb-query .ace_gutter-cell {\npadding-left: 5px;\npadding-right: 10px;\n}\n.ace-mongodb-query .ace_string {\ncolor: #5b81a9;\n}\n.ace-mongodb-query .ace_boolean {\ncolor: #5b81a9;\nfont-weight: normal;\n}\n.ace-mongodb-query .ace_constant.ace_numeric {\ncolor: #5b81a9;\n}\n.ace-mongodb-query .ace_string.ace_regexp {\ncolor: #5b81a9;\n}\n.ace-mongodb-query .ace_variable.ace_class {\ncolor: teal;\n}\n.ace-mongodb-query .ace_constant.ace_buildin {\ncolor: #0086B3;\n}\n.ace-mongodb-query .ace_support.ace_function {\ncolor: #0086B3;\n}\n.ace-mongodb-query .ace_comment {\ncolor: #998;\n}\n.ace-mongodb-query .ace_variable.ace_language {\ncolor: #0086B3;\n}\n.ace-mongodb-query .ace_paren {\nfont-weight: normal;\n}\n.ace-mongodb-query .ace_variable.ace_instance {\ncolor: teal;\n}\n.ace-mongodb-query .ace_constant.ace_language {\nfont-weight: bold;\n}\n.ace-mongodb-query .ace_cursor {\ncolor: #999999;\n}\n.ace-mongodb-query.ace_focus .ace_marker-layer .ace_active-line {\nbackground: #ffffff;\n}\n.ace-mongodb-query .ace_marker-layer .ace_active-line {\nbackground: #ffffff;\n}\n.ace-mongodb-query .ace_marker-layer .ace_selection {\nbackground: rgb(181, 213, 255);\n}\n.ace-mongodb-query.ace_multiselect .ace_selection.ace_start {\nbox-shadow: 0 0 3px 0px white;\n}\n.ace-mongodb-query.ace_nobold .ace_line > span {\nfont-weight: normal !important;\n}\n.ace-mongodb-query .ace_marker-layer .ace_step {\nbackground: rgb(252, 255, 0);\n}\n.ace-mongodb-query .ace_marker-layer .ace_stack {\nbackground: rgb(164, 229, 101);\n}\n.ace-mongodb-query .ace_marker-layer .ace_bracket {\nmargin: -1px 0 0 -1px;\nborder: 1px solid rgb(192, 192, 192);\n}\n.ace-mongodb-query .ace_gutter-active-line {\nbackground: #ffffff;\n}\n.ace-mongodb-query .ace_marker-layer .ace_selected-word {\nbackground: rgb(250, 250, 255);\nborder: 1px solid rgb(200, 200, 250);\n}\n.ace-mongodb-query .ace_invisible {\ncolor: #BFBFBF\n}\n.ace-mongodb-query .ace_print-margin {\nwidth: 1px;\nbackground: #e8e8e8;\n}\n.ace-mongodb-query .ace_hidden-cursors {\n opacity: 0;\n}\n.ace-mongodb-query .ace_indent-guide {\nbackground: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\n}";
|
|
3
|
+
declare function mongodbAceThemeQuery(acequire: any, exports: any): void;
|
|
4
|
+
//# sourceMappingURL=mongodb-ace-theme-query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongodb-ace-theme-query.d.ts","sourceRoot":"","sources":["../../src/constants/mongodb-ace-theme-query.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,iCAAiC,sjFA4GrC,CAAC;AAEH,QAAA,MAAM,2BAA2B,2nFA+G/B,CAAC;AAEH,iBAAS,oBAAoB,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,QASxD"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const mongodbAceThemeQueryCssTextLegacy = `
|
|
3
|
+
.ace-mongodb-query .ace_gutter {
|
|
4
|
+
background: #ffffff;
|
|
5
|
+
color: #999999;
|
|
6
|
+
}
|
|
7
|
+
.ace-mongodb-query {
|
|
8
|
+
background: #ffffff;
|
|
9
|
+
color: #000;
|
|
10
|
+
}
|
|
11
|
+
.ace-mongodb-query .ace_placeholder {
|
|
12
|
+
font-family: inherit;
|
|
13
|
+
transform: none;
|
|
14
|
+
opacity: 1;
|
|
15
|
+
margin: 0;
|
|
16
|
+
}
|
|
17
|
+
.ace-mongodb-query .ace_keyword {
|
|
18
|
+
color: #999999;
|
|
19
|
+
font-weight: normal;
|
|
20
|
+
}
|
|
21
|
+
.ace-mongodb-query .ace_gutter-cell {
|
|
22
|
+
padding-left: 5px;
|
|
23
|
+
padding-right: 10px;
|
|
24
|
+
}
|
|
25
|
+
.ace-mongodb-query .ace_string {
|
|
26
|
+
color: #5b81a9;
|
|
27
|
+
}
|
|
28
|
+
.ace-mongodb-query .ace_boolean {
|
|
29
|
+
color: #5b81a9;
|
|
30
|
+
font-weight: normal;
|
|
31
|
+
}
|
|
32
|
+
.ace-mongodb-query .ace_constant.ace_numeric {
|
|
33
|
+
color: #5b81a9;
|
|
34
|
+
}
|
|
35
|
+
.ace-mongodb-query .ace_string.ace_regexp {
|
|
36
|
+
color: #5b81a9;
|
|
37
|
+
}
|
|
38
|
+
.ace-mongodb-query .ace_variable.ace_class {
|
|
39
|
+
color: teal;
|
|
40
|
+
}
|
|
41
|
+
.ace-mongodb-query .ace_constant.ace_buildin {
|
|
42
|
+
color: #0086B3;
|
|
43
|
+
}
|
|
44
|
+
.ace-mongodb-query .ace_support.ace_function {
|
|
45
|
+
color: #0086B3;
|
|
46
|
+
}
|
|
47
|
+
.ace-mongodb-query .ace_comment {
|
|
48
|
+
color: #998;
|
|
49
|
+
font-style: italic;
|
|
50
|
+
}
|
|
51
|
+
.ace-mongodb-query .ace_variable.ace_language {
|
|
52
|
+
color: #0086B3;
|
|
53
|
+
}
|
|
54
|
+
.ace-mongodb-query .ace_paren {
|
|
55
|
+
font-weight: normal;
|
|
56
|
+
}
|
|
57
|
+
.ace-mongodb-query .ace_variable.ace_instance {
|
|
58
|
+
color: teal;
|
|
59
|
+
}
|
|
60
|
+
.ace-mongodb-query .ace_constant.ace_language {
|
|
61
|
+
font-weight: bold;
|
|
62
|
+
}
|
|
63
|
+
.ace-mongodb-query .ace_cursor {
|
|
64
|
+
color: #999999;
|
|
65
|
+
}
|
|
66
|
+
.ace-mongodb-query.ace_focus .ace_marker-layer .ace_active-line {
|
|
67
|
+
background: #ffffff;
|
|
68
|
+
}
|
|
69
|
+
.ace-mongodb-query .ace_marker-layer .ace_active-line {
|
|
70
|
+
background: #ffffff;
|
|
71
|
+
}
|
|
72
|
+
.ace-mongodb-query .ace_marker-layer .ace_selection {
|
|
73
|
+
background: rgb(181, 213, 255);
|
|
74
|
+
}
|
|
75
|
+
.ace-mongodb-query.ace_multiselect .ace_selection.ace_start {
|
|
76
|
+
box-shadow: 0 0 3px 0px white;
|
|
77
|
+
}
|
|
78
|
+
.ace-mongodb-query.ace_nobold .ace_line > span {
|
|
79
|
+
font-weight: normal !important;
|
|
80
|
+
}
|
|
81
|
+
.ace-mongodb-query .ace_marker-layer .ace_step {
|
|
82
|
+
background: rgb(252, 255, 0);
|
|
83
|
+
}
|
|
84
|
+
.ace-mongodb-query .ace_marker-layer .ace_stack {
|
|
85
|
+
background: rgb(164, 229, 101);
|
|
86
|
+
}
|
|
87
|
+
.ace-mongodb-query .ace_marker-layer .ace_bracket {
|
|
88
|
+
margin: -1px 0 0 -1px;
|
|
89
|
+
border: 1px solid rgb(192, 192, 192);
|
|
90
|
+
}
|
|
91
|
+
.ace-mongodb-query .ace_gutter-active-line {
|
|
92
|
+
background: #ffffff;
|
|
93
|
+
}
|
|
94
|
+
.ace-mongodb-query .ace_marker-layer .ace_selected-word {
|
|
95
|
+
background: rgb(250, 250, 255);
|
|
96
|
+
border: 1px solid rgb(200, 200, 250);
|
|
97
|
+
}
|
|
98
|
+
.ace-mongodb-query .ace_invisible {
|
|
99
|
+
color: #BFBFBF
|
|
100
|
+
}
|
|
101
|
+
.ace-mongodb-query .ace_print-margin {
|
|
102
|
+
width: 1px;
|
|
103
|
+
background: #e8e8e8;
|
|
104
|
+
}
|
|
105
|
+
.ace-mongodb-query .ace_hidden-cursors {
|
|
106
|
+
opacity: 0;
|
|
107
|
+
}
|
|
108
|
+
.ace-mongodb-query .ace_indent-guide {
|
|
109
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
110
|
+
}`;
|
|
111
|
+
const mongodbAceThemeQueryCssText = `
|
|
112
|
+
.ace-mongodb-query .ace_scroller {
|
|
113
|
+
padding: 0px 14px;
|
|
114
|
+
}
|
|
115
|
+
.ace-mongodb-query .ace_gutter {
|
|
116
|
+
background: #ffffff;
|
|
117
|
+
color: #999999;
|
|
118
|
+
}
|
|
119
|
+
.ace-mongodb-query {
|
|
120
|
+
background: #ffffff;
|
|
121
|
+
color: #000;
|
|
122
|
+
}
|
|
123
|
+
.ace-mongodb-query .ace_placeholder {
|
|
124
|
+
font-family: inherit;
|
|
125
|
+
transform: none;
|
|
126
|
+
opacity: 1;
|
|
127
|
+
margin: 0;
|
|
128
|
+
padding: 14px 8px !important;
|
|
129
|
+
}
|
|
130
|
+
.ace-mongodb-query .ace_keyword {
|
|
131
|
+
color: #999999;
|
|
132
|
+
font-weight: normal;
|
|
133
|
+
}
|
|
134
|
+
.ace-mongodb-query .ace_gutter-cell {
|
|
135
|
+
padding-left: 5px;
|
|
136
|
+
padding-right: 10px;
|
|
137
|
+
}
|
|
138
|
+
.ace-mongodb-query .ace_string {
|
|
139
|
+
color: #5b81a9;
|
|
140
|
+
}
|
|
141
|
+
.ace-mongodb-query .ace_boolean {
|
|
142
|
+
color: #5b81a9;
|
|
143
|
+
font-weight: normal;
|
|
144
|
+
}
|
|
145
|
+
.ace-mongodb-query .ace_constant.ace_numeric {
|
|
146
|
+
color: #5b81a9;
|
|
147
|
+
}
|
|
148
|
+
.ace-mongodb-query .ace_string.ace_regexp {
|
|
149
|
+
color: #5b81a9;
|
|
150
|
+
}
|
|
151
|
+
.ace-mongodb-query .ace_variable.ace_class {
|
|
152
|
+
color: teal;
|
|
153
|
+
}
|
|
154
|
+
.ace-mongodb-query .ace_constant.ace_buildin {
|
|
155
|
+
color: #0086B3;
|
|
156
|
+
}
|
|
157
|
+
.ace-mongodb-query .ace_support.ace_function {
|
|
158
|
+
color: #0086B3;
|
|
159
|
+
}
|
|
160
|
+
.ace-mongodb-query .ace_comment {
|
|
161
|
+
color: #998;
|
|
162
|
+
}
|
|
163
|
+
.ace-mongodb-query .ace_variable.ace_language {
|
|
164
|
+
color: #0086B3;
|
|
165
|
+
}
|
|
166
|
+
.ace-mongodb-query .ace_paren {
|
|
167
|
+
font-weight: normal;
|
|
168
|
+
}
|
|
169
|
+
.ace-mongodb-query .ace_variable.ace_instance {
|
|
170
|
+
color: teal;
|
|
171
|
+
}
|
|
172
|
+
.ace-mongodb-query .ace_constant.ace_language {
|
|
173
|
+
font-weight: bold;
|
|
174
|
+
}
|
|
175
|
+
.ace-mongodb-query .ace_cursor {
|
|
176
|
+
color: #999999;
|
|
177
|
+
}
|
|
178
|
+
.ace-mongodb-query.ace_focus .ace_marker-layer .ace_active-line {
|
|
179
|
+
background: #ffffff;
|
|
180
|
+
}
|
|
181
|
+
.ace-mongodb-query .ace_marker-layer .ace_active-line {
|
|
182
|
+
background: #ffffff;
|
|
183
|
+
}
|
|
184
|
+
.ace-mongodb-query .ace_marker-layer .ace_selection {
|
|
185
|
+
background: rgb(181, 213, 255);
|
|
186
|
+
}
|
|
187
|
+
.ace-mongodb-query.ace_multiselect .ace_selection.ace_start {
|
|
188
|
+
box-shadow: 0 0 3px 0px white;
|
|
189
|
+
}
|
|
190
|
+
.ace-mongodb-query.ace_nobold .ace_line > span {
|
|
191
|
+
font-weight: normal !important;
|
|
192
|
+
}
|
|
193
|
+
.ace-mongodb-query .ace_marker-layer .ace_step {
|
|
194
|
+
background: rgb(252, 255, 0);
|
|
195
|
+
}
|
|
196
|
+
.ace-mongodb-query .ace_marker-layer .ace_stack {
|
|
197
|
+
background: rgb(164, 229, 101);
|
|
198
|
+
}
|
|
199
|
+
.ace-mongodb-query .ace_marker-layer .ace_bracket {
|
|
200
|
+
margin: -1px 0 0 -1px;
|
|
201
|
+
border: 1px solid rgb(192, 192, 192);
|
|
202
|
+
}
|
|
203
|
+
.ace-mongodb-query .ace_gutter-active-line {
|
|
204
|
+
background: #ffffff;
|
|
205
|
+
}
|
|
206
|
+
.ace-mongodb-query .ace_marker-layer .ace_selected-word {
|
|
207
|
+
background: rgb(250, 250, 255);
|
|
208
|
+
border: 1px solid rgb(200, 200, 250);
|
|
209
|
+
}
|
|
210
|
+
.ace-mongodb-query .ace_invisible {
|
|
211
|
+
color: #BFBFBF
|
|
212
|
+
}
|
|
213
|
+
.ace-mongodb-query .ace_print-margin {
|
|
214
|
+
width: 1px;
|
|
215
|
+
background: #e8e8e8;
|
|
216
|
+
}
|
|
217
|
+
.ace-mongodb-query .ace_hidden-cursors {
|
|
218
|
+
opacity: 0;
|
|
219
|
+
}
|
|
220
|
+
.ace-mongodb-query .ace_indent-guide {
|
|
221
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
222
|
+
}`;
|
|
223
|
+
function mongodbAceThemeQuery(acequire, exports) {
|
|
224
|
+
var _a;
|
|
225
|
+
exports.isDark = false;
|
|
226
|
+
exports.cssClass = 'ace-mongodb-query';
|
|
227
|
+
exports.cssText =
|
|
228
|
+
((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.COMPASS_SHOW_NEW_TOOLBARS) === 'true'
|
|
229
|
+
? mongodbAceThemeQueryCssText
|
|
230
|
+
: mongodbAceThemeQueryCssTextLegacy;
|
|
231
|
+
const dom = acequire('../lib/dom');
|
|
232
|
+
dom.importCssString(exports.cssText, exports.cssClass);
|
|
233
|
+
}
|
|
234
|
+
ace.define('ace/theme/mongodb-query', ['require', 'exports', 'module', 'ace/lib/dom'], mongodbAceThemeQuery);
|
|
235
|
+
//# sourceMappingURL=mongodb-ace-theme-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongodb-ace-theme-query.js","sourceRoot":"","sources":["../../src/constants/mongodb-ace-theme-query.ts"],"names":[],"mappings":";AAAA,MAAM,iCAAiC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4GxC,CAAC;AAEH,MAAM,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+GlC,CAAC;AAEH,SAAS,oBAAoB,CAAC,QAAa,EAAE,OAAY;;IACvD,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC;IACvB,OAAO,CAAC,QAAQ,GAAG,mBAAmB,CAAC;IACvC,OAAO,CAAC,OAAO;QACb,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAE,yBAAyB,MAAK,MAAM;YAChD,CAAC,CAAC,2BAA2B;YAC7B,CAAC,CAAC,iCAAiC,CAAC;IACxC,MAAM,GAAG,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;IACnC,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;AACzD,CAAC;AAGD,GAAG,CAAC,MAAM,CACR,yBAAyB,EACzB,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,CAAC,EAC/C,oBAAoB,CACrB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const mongodbAceThemeCssText = "\n.ace-mongodb .ace_gutter {\nbackground: #f5f6f7;\ncolor: #999999;\n}\n.ace-mongodb {\nbackground: #f5f6f7;\ncolor: #000;\n}\n.ace-mongodb .ace_keyword {\ncolor: #999999;\nfont-weight: normal;\n}\n.ace-mongodb .ace_gutter-cell {\npadding-left: 5px;\npadding-right: 10px;\n}\n.ace-mongodb .ace_string {\ncolor: #5b81a9;\n}\n.ace-mongodb .ace_boolean {\ncolor: #5b81a9;\nfont-weight: normal;\n}\n.ace-mongodb .ace_constant.ace_numeric {\ncolor: #5b81a9;\n}\n.ace-mongodb .ace_string.ace_regexp {\ncolor: #5b81a9;\n}\n.ace-mongodb .ace_variable.ace_class {\ncolor: teal;\n}\n.ace-mongodb .ace_constant.ace_buildin {\ncolor: #0086B3;\n}\n.ace-mongodb .ace_support.ace_function {\ncolor: #0086B3;\n}\n.ace-mongodb .ace_comment {\ncolor: #998;\nfont-style: italic;\n}\n.ace-mongodb .ace_variable.ace_language {\ncolor: #0086B3;\n}\n.ace-mongodb .ace_paren {\nfont-weight: normal;\n}\n.ace-mongodb .ace_variable.ace_instance {\ncolor: teal;\n}\n.ace-mongodb .ace_constant.ace_language {\nfont-weight: bold;\n}\n.ace-mongodb .ace_cursor {\ncolor: #999999;\n}\n.ace-mongodb.ace_focus .ace_marker-layer .ace_active-line {\nbackground: #f5f6f7;\n}\n.ace-mongodb .ace_marker-layer .ace_active-line {\nbackground: rgb(245, 245, 245);\n}\n.ace-mongodb .ace_marker-layer .ace_selection {\nbackground: rgb(181, 213, 255);\n}\n.ace-mongodb.ace_multiselect .ace_selection.ace_start {\nbox-shadow: 0 0 3px 0px white;\n}\n.ace-mongodb.ace_nobold .ace_line > span {\nfont-weight: normal !important;\n}\n.ace-mongodb .ace_marker-layer .ace_step {\nbackground: rgb(252, 255, 0);\n}\n.ace-mongodb .ace_marker-layer .ace_stack {\nbackground: rgb(164, 229, 101);\n}\n.ace-mongodb .ace_marker-layer .ace_bracket {\nmargin: -1px 0 0 -1px;\nborder: 1px solid rgb(192, 192, 192);\n}\n.ace-mongodb .ace_gutter-active-line {\nbackground: #f5f6f7;\n}\n.ace-mongodb .ace_marker-layer .ace_selected-word {\nbackground: rgb(250, 250, 255);\nborder: 1px solid rgb(200, 200, 250);\n}\n.ace-mongodb .ace_invisible {\ncolor: #BFBFBF\n}\n.ace-mongodb .ace_print-margin {\nwidth: 1px;\nbackground: #e8e8e8;\n}\n.ace-mongodb .ace_hidden-cursors {\n opacity: 0;\n}\n.ace-mongodb .ace_indent-guide {\nbackground: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\n}";
|
|
2
|
+
declare function mongodbAceTheme(acequire: any, exports: any): void;
|
|
3
|
+
//# sourceMappingURL=mongodb-ace-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongodb-ace-theme.d.ts","sourceRoot":"","sources":["../../src/constants/mongodb-ace-theme.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,sBAAsB,2xEAsG1B,CAAC;AAEH,iBAAS,eAAe,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,QAOnD"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const mongodbAceThemeCssText = `
|
|
3
|
+
.ace-mongodb .ace_gutter {
|
|
4
|
+
background: #f5f6f7;
|
|
5
|
+
color: #999999;
|
|
6
|
+
}
|
|
7
|
+
.ace-mongodb {
|
|
8
|
+
background: #f5f6f7;
|
|
9
|
+
color: #000;
|
|
10
|
+
}
|
|
11
|
+
.ace-mongodb .ace_keyword {
|
|
12
|
+
color: #999999;
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
}
|
|
15
|
+
.ace-mongodb .ace_gutter-cell {
|
|
16
|
+
padding-left: 5px;
|
|
17
|
+
padding-right: 10px;
|
|
18
|
+
}
|
|
19
|
+
.ace-mongodb .ace_string {
|
|
20
|
+
color: #5b81a9;
|
|
21
|
+
}
|
|
22
|
+
.ace-mongodb .ace_boolean {
|
|
23
|
+
color: #5b81a9;
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
}
|
|
26
|
+
.ace-mongodb .ace_constant.ace_numeric {
|
|
27
|
+
color: #5b81a9;
|
|
28
|
+
}
|
|
29
|
+
.ace-mongodb .ace_string.ace_regexp {
|
|
30
|
+
color: #5b81a9;
|
|
31
|
+
}
|
|
32
|
+
.ace-mongodb .ace_variable.ace_class {
|
|
33
|
+
color: teal;
|
|
34
|
+
}
|
|
35
|
+
.ace-mongodb .ace_constant.ace_buildin {
|
|
36
|
+
color: #0086B3;
|
|
37
|
+
}
|
|
38
|
+
.ace-mongodb .ace_support.ace_function {
|
|
39
|
+
color: #0086B3;
|
|
40
|
+
}
|
|
41
|
+
.ace-mongodb .ace_comment {
|
|
42
|
+
color: #998;
|
|
43
|
+
font-style: italic;
|
|
44
|
+
}
|
|
45
|
+
.ace-mongodb .ace_variable.ace_language {
|
|
46
|
+
color: #0086B3;
|
|
47
|
+
}
|
|
48
|
+
.ace-mongodb .ace_paren {
|
|
49
|
+
font-weight: normal;
|
|
50
|
+
}
|
|
51
|
+
.ace-mongodb .ace_variable.ace_instance {
|
|
52
|
+
color: teal;
|
|
53
|
+
}
|
|
54
|
+
.ace-mongodb .ace_constant.ace_language {
|
|
55
|
+
font-weight: bold;
|
|
56
|
+
}
|
|
57
|
+
.ace-mongodb .ace_cursor {
|
|
58
|
+
color: #999999;
|
|
59
|
+
}
|
|
60
|
+
.ace-mongodb.ace_focus .ace_marker-layer .ace_active-line {
|
|
61
|
+
background: #f5f6f7;
|
|
62
|
+
}
|
|
63
|
+
.ace-mongodb .ace_marker-layer .ace_active-line {
|
|
64
|
+
background: rgb(245, 245, 245);
|
|
65
|
+
}
|
|
66
|
+
.ace-mongodb .ace_marker-layer .ace_selection {
|
|
67
|
+
background: rgb(181, 213, 255);
|
|
68
|
+
}
|
|
69
|
+
.ace-mongodb.ace_multiselect .ace_selection.ace_start {
|
|
70
|
+
box-shadow: 0 0 3px 0px white;
|
|
71
|
+
}
|
|
72
|
+
.ace-mongodb.ace_nobold .ace_line > span {
|
|
73
|
+
font-weight: normal !important;
|
|
74
|
+
}
|
|
75
|
+
.ace-mongodb .ace_marker-layer .ace_step {
|
|
76
|
+
background: rgb(252, 255, 0);
|
|
77
|
+
}
|
|
78
|
+
.ace-mongodb .ace_marker-layer .ace_stack {
|
|
79
|
+
background: rgb(164, 229, 101);
|
|
80
|
+
}
|
|
81
|
+
.ace-mongodb .ace_marker-layer .ace_bracket {
|
|
82
|
+
margin: -1px 0 0 -1px;
|
|
83
|
+
border: 1px solid rgb(192, 192, 192);
|
|
84
|
+
}
|
|
85
|
+
.ace-mongodb .ace_gutter-active-line {
|
|
86
|
+
background: #f5f6f7;
|
|
87
|
+
}
|
|
88
|
+
.ace-mongodb .ace_marker-layer .ace_selected-word {
|
|
89
|
+
background: rgb(250, 250, 255);
|
|
90
|
+
border: 1px solid rgb(200, 200, 250);
|
|
91
|
+
}
|
|
92
|
+
.ace-mongodb .ace_invisible {
|
|
93
|
+
color: #BFBFBF
|
|
94
|
+
}
|
|
95
|
+
.ace-mongodb .ace_print-margin {
|
|
96
|
+
width: 1px;
|
|
97
|
+
background: #e8e8e8;
|
|
98
|
+
}
|
|
99
|
+
.ace-mongodb .ace_hidden-cursors {
|
|
100
|
+
opacity: 0;
|
|
101
|
+
}
|
|
102
|
+
.ace-mongodb .ace_indent-guide {
|
|
103
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
104
|
+
}`;
|
|
105
|
+
function mongodbAceTheme(acequire, exports) {
|
|
106
|
+
exports.isDark = false;
|
|
107
|
+
exports.cssClass = 'ace-mongodb';
|
|
108
|
+
exports.cssText = mongodbAceThemeCssText;
|
|
109
|
+
const dom = acequire('../lib/dom');
|
|
110
|
+
dom.importCssString(exports.cssText, exports.cssClass);
|
|
111
|
+
}
|
|
112
|
+
ace.define('ace/theme/mongodb', ['require', 'exports', 'module', 'ace/lib/dom'], mongodbAceTheme);
|
|
113
|
+
//# sourceMappingURL=mongodb-ace-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongodb-ace-theme.js","sourceRoot":"","sources":["../../src/constants/mongodb-ace-theme.ts"],"names":[],"mappings":";AAAA,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsG7B,CAAC;AAEH,SAAS,eAAe,CAAC,QAAa,EAAE,OAAY;IAClD,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC;IACvB,OAAO,CAAC,QAAQ,GAAG,aAAa,CAAC;IACjC,OAAO,CAAC,OAAO,GAAG,sBAAsB,CAAC;IAEzC,MAAM,GAAG,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;IACnC,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;AACzD,CAAC;AAGD,GAAG,CAAC,MAAM,CACR,mBAAmB,EACnB,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,CAAC,EAC/C,eAAe,CAChB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const focusRingStyles: string;
|
|
3
|
+
export declare const focusRingVisibleStyles: string;
|
|
4
4
|
export declare function useFocusRing<T extends HTMLElement>(): React.HTMLProps<T>;
|
|
5
5
|
//# sourceMappingURL=use-focus-ring.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-focus-ring.d.ts","sourceRoot":"","sources":["../../src/hooks/use-focus-ring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"use-focus-ring.d.ts","sourceRoot":"","sources":["../../src/hooks/use-focus-ring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,eAAe,QAe1B,CAAC;AAEH,eAAO,MAAM,sBAAsB,QAKjC,CAAC;AAEH,wBAAgB,YAAY,CAAC,CAAC,SAAS,WAAW,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAUxE"}
|