@mongodb-js/compass-components 0.13.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/compass-font-sizes.d.ts +1 -0
- package/lib/compass-font-sizes.d.ts.map +1 -1
- package/lib/compass-font-sizes.js +2 -1
- package/lib/compass-font-sizes.js.map +1 -1
- package/lib/compass-ui-colors.d.ts +2 -0
- package/lib/compass-ui-colors.d.ts.map +1 -1
- package/lib/compass-ui-colors.js +3 -1
- package/lib/compass-ui-colors.js.map +1 -1
- package/lib/components/accordion.d.ts +5 -3
- package/lib/components/accordion.d.ts.map +1 -1
- package/lib/components/accordion.js +19 -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 +9 -1
- package/lib/components/bson-value.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 +16 -49
- package/lib/components/cancel-loader.js.map +1 -1
- package/lib/components/document-list/auto-focus-context.d.ts +1 -1
- package/lib/components/document-list/auto-focus-context.d.ts.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/document.d.ts +3 -3
- package/lib/components/document-list/document.d.ts.map +1 -1
- package/lib/components/document-list/document.js +10 -3
- package/lib/components/document-list/document.js.map +1 -1
- package/lib/components/document-list/element-editors.d.ts +4 -1
- package/lib/components/document-list/element-editors.d.ts.map +1 -1
- package/lib/components/document-list/element-editors.js +7 -5
- package/lib/components/document-list/element-editors.js.map +1 -1
- package/lib/components/document-list/element.d.ts +1 -1
- package/lib/components/document-list/element.d.ts.map +1 -1
- package/lib/components/document-list/element.js +80 -53
- 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/document-list/use-previous.d.ts +2 -0
- package/lib/components/document-list/use-previous.d.ts.map +1 -0
- package/lib/components/document-list/use-previous.js +13 -0
- package/lib/components/document-list/use-previous.js.map +1 -0
- package/lib/components/editor.d.ts +34 -0
- package/lib/components/editor.d.ts.map +1 -0
- package/lib/components/editor.js +75 -0
- package/lib/components/editor.js.map +1 -0
- package/lib/components/error-warning-summary.d.ts +22 -0
- package/lib/components/error-warning-summary.d.ts.map +1 -0
- package/lib/components/error-warning-summary.js +84 -0
- package/lib/components/error-warning-summary.js.map +1 -0
- 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/components/toolbar.d.ts +10 -0
- package/lib/components/toolbar.d.ts.map +1 -0
- package/lib/components/toolbar.js +25 -0
- package/lib/components/toolbar.js.map +1 -0
- package/lib/components/workspace-container.d.ts +1 -3
- package/lib/components/workspace-container.d.ts.map +1 -1
- package/lib/components/workspace-container.js +2 -2
- package/lib/components/workspace-container.js.map +1 -1
- package/lib/components/workspace-tabs/tab.d.ts +16 -0
- package/lib/components/workspace-tabs/tab.d.ts.map +1 -0
- package/lib/components/workspace-tabs/tab.js +223 -0
- package/lib/components/workspace-tabs/tab.js.map +1 -0
- package/lib/components/workspace-tabs/workspace-tabs.d.ts +24 -0
- package/lib/components/workspace-tabs/workspace-tabs.d.ts.map +1 -0
- package/lib/components/workspace-tabs/workspace-tabs.js +175 -0
- package/lib/components/workspace-tabs/workspace-tabs.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 +8 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +20 -4
- package/lib/index.js.map +1 -1
- package/package.json +27 -21
|
@@ -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"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useFocusRing = exports.
|
|
3
|
+
exports.useFocusRing = exports.focusRingVisibleStyles = exports.focusRingStyles = void 0;
|
|
4
4
|
const tokens_1 = require("@leafygreen-ui/tokens");
|
|
5
5
|
const emotion_1 = require("@leafygreen-ui/emotion");
|
|
6
6
|
const palette_1 = require("@leafygreen-ui/palette");
|
|
7
7
|
const use_focus_hover_1 = require("./use-focus-hover");
|
|
8
|
-
exports.
|
|
8
|
+
exports.focusRingStyles = (0, emotion_1.css)({
|
|
9
9
|
position: 'relative',
|
|
10
10
|
outline: 'none',
|
|
11
11
|
'&::after': {
|
|
@@ -21,7 +21,7 @@ exports.focusRing = (0, emotion_1.css)({
|
|
|
21
21
|
transition: 'box-shadow .16s ease-in',
|
|
22
22
|
},
|
|
23
23
|
});
|
|
24
|
-
exports.
|
|
24
|
+
exports.focusRingVisibleStyles = (0, emotion_1.css)({
|
|
25
25
|
'&::after': {
|
|
26
26
|
boxShadow: `0 0 0 3px ${palette_1.uiColors.focus}`,
|
|
27
27
|
transitionTimingFunction: 'ease-out',
|
|
@@ -31,7 +31,7 @@ function useFocusRing() {
|
|
|
31
31
|
const [focusProps, focusState] = (0, use_focus_hover_1.useFocusState)();
|
|
32
32
|
return {
|
|
33
33
|
...focusProps,
|
|
34
|
-
className: (0, emotion_1.cx)(exports.
|
|
34
|
+
className: (0, emotion_1.cx)(exports.focusRingStyles, focusState === use_focus_hover_1.FocusState.FocusVisible && exports.focusRingVisibleStyles),
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
exports.useFocusRing = useFocusRing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-focus-ring.js","sourceRoot":"","sources":["../../src/hooks/use-focus-ring.ts"],"names":[],"mappings":";;;AACA,kDAAgD;AAChD,oDAAiD;AACjD,oDAAkD;AAClD,uDAA8D;AAEjD,QAAA,
|
|
1
|
+
{"version":3,"file":"use-focus-ring.js","sourceRoot":"","sources":["../../src/hooks/use-focus-ring.ts"],"names":[],"mappings":";;;AACA,kDAAgD;AAChD,oDAAiD;AACjD,oDAAkD;AAClD,uDAA8D;AAEjD,QAAA,eAAe,GAAG,IAAA,aAAG,EAAC;IACjC,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE;QACV,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,IAAI;QACb,aAAa,EAAE,MAAM;QACrB,GAAG,EAAE,CAAC;QACN,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,YAAY,EAAE,gBAAO,CAAC,CAAC,CAAC;QACxB,SAAS,EAAE,WAAW,kBAAQ,CAAC,KAAK,EAAE;QACtC,UAAU,EAAE,yBAAyB;KACtC;CACF,CAAC,CAAC;AAEU,QAAA,sBAAsB,GAAG,IAAA,aAAG,EAAC;IACxC,UAAU,EAAE;QACV,SAAS,EAAE,aAAa,kBAAQ,CAAC,KAAK,EAAE;QACxC,wBAAwB,EAAE,UAAU;KACrC;CACF,CAAC,CAAC;AAEH,SAAgB,YAAY;IAC1B,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,IAAA,+BAAa,GAAE,CAAC;IAEjD,OAAO;QACL,GAAG,UAAU;QACb,SAAS,EAAE,IAAA,YAAE,EACX,uBAAe,EACf,UAAU,KAAK,4BAAU,CAAC,YAAY,IAAI,8BAAsB,CACjE;KACF,CAAC;AACJ,CAAC;AAVD,oCAUC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -5,10 +5,15 @@ import ConfirmationModal from './components/confirmation-modal';
|
|
|
5
5
|
import FileInput from './components/file-input';
|
|
6
6
|
import { Modal } from './components/modal';
|
|
7
7
|
import { ModalTitle } from './components/modal-title';
|
|
8
|
+
import { Toolbar } from './components/toolbar';
|
|
9
|
+
import { MoreOptionsToggle } from './components/more-options-toggle';
|
|
10
|
+
import { ErrorSummary, WarningSummary } from './components/error-warning-summary';
|
|
8
11
|
import { RadioBoxGroup } from './components/radio-box-group';
|
|
9
12
|
import { SpinLoader } from './components/spin-loader';
|
|
10
13
|
import { ResizeHandle, ResizeDirection } from './components/resize-handle';
|
|
11
|
-
import Accordion from './components/accordion';
|
|
14
|
+
import { Accordion } from './components/accordion';
|
|
15
|
+
import { WorkspaceTabs } from './components/workspace-tabs/workspace-tabs';
|
|
16
|
+
export { Editor, EditorVariant, EditorTextCompleter, setEditorValue, } from './components/editor';
|
|
12
17
|
export { FavoriteIcon } from './components/icons/favorite-icon';
|
|
13
18
|
export { Variant as BadgeVariant } from '@leafygreen-ui/badge';
|
|
14
19
|
export { Variant as BannerVariant } from '@leafygreen-ui/banner';
|
|
@@ -26,7 +31,7 @@ export { useToast, ToastArea } from './hooks/use-toast';
|
|
|
26
31
|
export { Toggle } from './components/toggle';
|
|
27
32
|
export { breakpoints, spacing } from '@leafygreen-ui/tokens';
|
|
28
33
|
export { Tooltip } from './components/tooltip';
|
|
29
|
-
export { Accordion, CancelLoader, ConfirmationModal, FileInput, Modal, ModalTitle, RadioBoxGroup, SpinLoader, ResizeHandle, ResizeDirection, };
|
|
34
|
+
export { Accordion, CancelLoader, ConfirmationModal, ErrorSummary, FileInput, Modal, ModalTitle, MoreOptionsToggle, RadioBoxGroup, SpinLoader, ResizeHandle, ResizeDirection, Toolbar, WarningSummary, WorkspaceTabs, };
|
|
30
35
|
export { useFocusState, useHoverState, FocusState, } from './hooks/use-focus-hover';
|
|
31
36
|
export { withTheme, useTheme, Theme, ThemeProvider } from './hooks/use-theme';
|
|
32
37
|
export { ContentWithFallback, FadeInPlaceholder, } from './components/content-with-fallback';
|
|
@@ -41,7 +46,7 @@ export { Placeholder } from './components/placeholder';
|
|
|
41
46
|
export { useDOMRect } from './hooks/use-dom-rect';
|
|
42
47
|
export { VirtualGrid } from './components/virtual-grid';
|
|
43
48
|
export { mergeProps } from './utils/merge-props';
|
|
44
|
-
export { useFocusRing } from './hooks/use-focus-ring';
|
|
49
|
+
export { focusRingStyles, focusRingVisibleStyles, useFocusRing, } from './hooks/use-focus-ring';
|
|
45
50
|
export { useDefaultAction } from './hooks/use-default-action';
|
|
46
51
|
export { useSortControls, useSortedItems } from './hooks/use-sort';
|
|
47
52
|
export { Pipeline, Stage } from '@leafygreen-ui/pipeline';
|
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,iCAAiC,CAAC;AAChE,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,SAAS,MAAM,wBAAwB,CAAC;
|
|
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,mBA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,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,YAAY,GACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -25,8 +25,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
29
|
-
exports.DocumentList = exports.BSONValue = exports.Stage = exports.Pipeline = exports.useSortedItems = exports.useSortControls = exports.useDefaultAction = exports.useFocusRing = exports.mergeProps = exports.VirtualGrid = exports.useDOMRect = exports.Placeholder = exports.InlineInfoLink = exports.WorkspaceContainer = exports.TabNavBar = exports.ErrorBoundary = exports.InlineDefinition = void 0;
|
|
28
|
+
exports.WorkspaceTabs = exports.WarningSummary = exports.Toolbar = exports.ResizeDirection = exports.ResizeHandle = exports.SpinLoader = exports.RadioBoxGroup = exports.MoreOptionsToggle = exports.ModalTitle = exports.Modal = exports.FileInput = exports.ErrorSummary = exports.ConfirmationModal = exports.CancelLoader = exports.Accordion = exports.Tooltip = exports.spacing = exports.breakpoints = exports.Toggle = exports.ToastArea = exports.useToast = exports.ToastVariant = exports.SelectSize = exports.RadioBoxSize = exports.Portal = exports.compassUIColors = exports.compassFontSizes = exports.uiColors = exports.LeafyGreenProvider = exports.Checkbox = exports.ButtonVariant = exports.ButtonSize = exports.BannerVariant = exports.BadgeVariant = exports.FavoriteIcon = exports.setEditorValue = exports.EditorTextCompleter = exports.EditorVariant = exports.Editor = exports.cache = exports.sheet = exports.css = exports.keyframes = exports.injectGlobal = exports.getRegisteredStyles = exports.merge = exports.cx = exports.hydrate = exports.flush = exports.emotion = void 0;
|
|
29
|
+
exports.DocumentList = exports.BSONValue = exports.Stage = exports.Pipeline = exports.useSortedItems = exports.useSortControls = exports.useDefaultAction = exports.useFocusRing = exports.focusRingVisibleStyles = exports.focusRingStyles = exports.mergeProps = exports.VirtualGrid = exports.useDOMRect = exports.Placeholder = exports.InlineInfoLink = exports.WorkspaceContainer = exports.TabNavBar = exports.ErrorBoundary = exports.InlineDefinition = exports.FadeInPlaceholder = exports.ContentWithFallback = exports.ThemeProvider = exports.Theme = exports.useTheme = exports.withTheme = exports.FocusState = exports.useHoverState = exports.useFocusState = void 0;
|
|
30
30
|
__exportStar(require("./components/leafygreen"), exports);
|
|
31
31
|
var emotion_1 = require("@leafygreen-ui/emotion");
|
|
32
32
|
Object.defineProperty(exports, "emotion", { enumerable: true, get: function () { return __importDefault(emotion_1).default; } });
|
|
@@ -50,6 +50,13 @@ const modal_1 = require("./components/modal");
|
|
|
50
50
|
Object.defineProperty(exports, "Modal", { enumerable: true, get: function () { return modal_1.Modal; } });
|
|
51
51
|
const modal_title_1 = require("./components/modal-title");
|
|
52
52
|
Object.defineProperty(exports, "ModalTitle", { enumerable: true, get: function () { return modal_title_1.ModalTitle; } });
|
|
53
|
+
const toolbar_1 = require("./components/toolbar");
|
|
54
|
+
Object.defineProperty(exports, "Toolbar", { enumerable: true, get: function () { return toolbar_1.Toolbar; } });
|
|
55
|
+
const more_options_toggle_1 = require("./components/more-options-toggle");
|
|
56
|
+
Object.defineProperty(exports, "MoreOptionsToggle", { enumerable: true, get: function () { return more_options_toggle_1.MoreOptionsToggle; } });
|
|
57
|
+
const error_warning_summary_1 = require("./components/error-warning-summary");
|
|
58
|
+
Object.defineProperty(exports, "ErrorSummary", { enumerable: true, get: function () { return error_warning_summary_1.ErrorSummary; } });
|
|
59
|
+
Object.defineProperty(exports, "WarningSummary", { enumerable: true, get: function () { return error_warning_summary_1.WarningSummary; } });
|
|
53
60
|
const radio_box_group_1 = require("./components/radio-box-group");
|
|
54
61
|
Object.defineProperty(exports, "RadioBoxGroup", { enumerable: true, get: function () { return radio_box_group_1.RadioBoxGroup; } });
|
|
55
62
|
const spin_loader_1 = require("./components/spin-loader");
|
|
@@ -57,8 +64,15 @@ Object.defineProperty(exports, "SpinLoader", { enumerable: true, get: function (
|
|
|
57
64
|
const resize_handle_1 = require("./components/resize-handle");
|
|
58
65
|
Object.defineProperty(exports, "ResizeHandle", { enumerable: true, get: function () { return resize_handle_1.ResizeHandle; } });
|
|
59
66
|
Object.defineProperty(exports, "ResizeDirection", { enumerable: true, get: function () { return resize_handle_1.ResizeDirection; } });
|
|
60
|
-
const accordion_1 =
|
|
61
|
-
exports
|
|
67
|
+
const accordion_1 = require("./components/accordion");
|
|
68
|
+
Object.defineProperty(exports, "Accordion", { enumerable: true, get: function () { return accordion_1.Accordion; } });
|
|
69
|
+
const workspace_tabs_1 = require("./components/workspace-tabs/workspace-tabs");
|
|
70
|
+
Object.defineProperty(exports, "WorkspaceTabs", { enumerable: true, get: function () { return workspace_tabs_1.WorkspaceTabs; } });
|
|
71
|
+
var editor_1 = require("./components/editor");
|
|
72
|
+
Object.defineProperty(exports, "Editor", { enumerable: true, get: function () { return editor_1.Editor; } });
|
|
73
|
+
Object.defineProperty(exports, "EditorVariant", { enumerable: true, get: function () { return editor_1.EditorVariant; } });
|
|
74
|
+
Object.defineProperty(exports, "EditorTextCompleter", { enumerable: true, get: function () { return editor_1.EditorTextCompleter; } });
|
|
75
|
+
Object.defineProperty(exports, "setEditorValue", { enumerable: true, get: function () { return editor_1.setEditorValue; } });
|
|
62
76
|
var favorite_icon_1 = require("./components/icons/favorite-icon");
|
|
63
77
|
Object.defineProperty(exports, "FavoriteIcon", { enumerable: true, get: function () { return favorite_icon_1.FavoriteIcon; } });
|
|
64
78
|
var badge_1 = require("@leafygreen-ui/badge");
|
|
@@ -125,6 +139,8 @@ Object.defineProperty(exports, "VirtualGrid", { enumerable: true, get: function
|
|
|
125
139
|
var merge_props_1 = require("./utils/merge-props");
|
|
126
140
|
Object.defineProperty(exports, "mergeProps", { enumerable: true, get: function () { return merge_props_1.mergeProps; } });
|
|
127
141
|
var use_focus_ring_1 = require("./hooks/use-focus-ring");
|
|
142
|
+
Object.defineProperty(exports, "focusRingStyles", { enumerable: true, get: function () { return use_focus_ring_1.focusRingStyles; } });
|
|
143
|
+
Object.defineProperty(exports, "focusRingVisibleStyles", { enumerable: true, get: function () { return use_focus_ring_1.focusRingVisibleStyles; } });
|
|
128
144
|
Object.defineProperty(exports, "useFocusRing", { enumerable: true, get: function () { return use_focus_ring_1.useFocusRing; } });
|
|
129
145
|
var use_default_action_1 = require("./hooks/use-default-action");
|
|
130
146
|
Object.defineProperty(exports, "useDefaultAction", { enumerable: true, get: function () { return use_default_action_1.useDefaultAction; } });
|
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,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HAAA,gBAAgB,OAAA;AAIzB,8DAA4D;AAAnD,+GAAA,aAAa,OAAA;AACtB,wDAAqD;AAA5C,wGAAA,SAAS,OAAA;AAClB,wEAAsE;AAA7D,yHAAA,kBAAkB,OAAA;AAC3B,kEAA+D;AAAtD,kHAAA,cAAc,OAAA;AACvB,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,yDAIgC;AAH9B,iHAAA,eAAe,OAAA;AACf,wHAAA,sBAAsB,OAAA;AACtB,8GAAA,YAAY,OAAA;AAEd,iEAA8D;AAArD,sHAAA,gBAAgB,OAAA;AACzB,6CAAmE;AAA1D,2GAAA,eAAe,OAAA;AAAE,0GAAA,cAAc,OAAA;AACxC,oDAA0D;AAAjD,oGAAA,QAAQ,OAAA;AAAE,iGAAA,KAAK,OAAA;AAExB,sDAA+D;AAAtD,wHAAA,OAAO,OAAa;AAC7B,2EAA2D"}
|
package/package.json
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongodb-js/compass-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "React Components used in Compass",
|
|
5
5
|
"license": "SSPL",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"require": "./lib/index.js",
|
|
11
|
-
"import": "./lib/.esm-wrapper.mjs"
|
|
7
|
+
"compass:main": "src/index.ts",
|
|
8
|
+
"compass:exports": {
|
|
9
|
+
".": "./src/index.ts"
|
|
12
10
|
},
|
|
13
11
|
"types": "./lib/index.d.ts",
|
|
14
12
|
"files": [
|
|
15
|
-
"lib"
|
|
16
|
-
"package.json",
|
|
17
|
-
"README.md"
|
|
13
|
+
"lib"
|
|
18
14
|
],
|
|
19
15
|
"scripts": {
|
|
20
16
|
"bootstrap": "npm run compile",
|
|
21
|
-
"prepublishOnly": "npm run compile",
|
|
17
|
+
"prepublishOnly": "npm run compile && compass-scripts check-exports-exist",
|
|
22
18
|
"clean": "rimraf lib",
|
|
23
19
|
"precompile": "npm run clean",
|
|
24
20
|
"compile": "tsc -p tsconfig.json",
|
|
@@ -40,9 +36,10 @@
|
|
|
40
36
|
"@leafygreen-ui/button": "^12.0.5",
|
|
41
37
|
"@leafygreen-ui/card": "^5.1.4",
|
|
42
38
|
"@leafygreen-ui/checkbox": "^6.0.6",
|
|
39
|
+
"@leafygreen-ui/code": "^9.4.0",
|
|
43
40
|
"@leafygreen-ui/confirmation-modal": "^2.2.3",
|
|
44
41
|
"@leafygreen-ui/emotion": "^4.0.0",
|
|
45
|
-
"@leafygreen-ui/icon": "^11.
|
|
42
|
+
"@leafygreen-ui/icon": "^11.7.0",
|
|
46
43
|
"@leafygreen-ui/icon-button": "^9.1.7",
|
|
47
44
|
"@leafygreen-ui/leafygreen-provider": "^2.1.3",
|
|
48
45
|
"@leafygreen-ui/logo": "^6.1.0",
|
|
@@ -64,22 +61,27 @@
|
|
|
64
61
|
"@leafygreen-ui/tokens": "^0.5.3",
|
|
65
62
|
"@leafygreen-ui/tooltip": "^6.3.1",
|
|
66
63
|
"@leafygreen-ui/typography": "^8.1.0",
|
|
67
|
-
"@mongodb-js/compass-logging": "^0.
|
|
68
|
-
"@react-aria/interactions": "^3.
|
|
69
|
-
"@react-aria/tooltip": "^3.1
|
|
70
|
-
"@react-aria/utils": "^3.
|
|
64
|
+
"@mongodb-js/compass-logging": "^0.13.0",
|
|
65
|
+
"@react-aria/interactions": "^3.9.1",
|
|
66
|
+
"@react-aria/tooltip": "^3.2.1",
|
|
67
|
+
"@react-aria/utils": "^3.13.1",
|
|
71
68
|
"@react-stately/tooltip": "^3.0.5",
|
|
72
69
|
"bson": "^4.6.1",
|
|
73
|
-
"hadron-document": "^7.
|
|
74
|
-
"hadron-type-checker": "^6.
|
|
70
|
+
"hadron-document": "^7.12.0",
|
|
71
|
+
"hadron-type-checker": "^6.9.0",
|
|
72
|
+
"react-sortable-hoc": "^2.0.0",
|
|
75
73
|
"react-window": "^1.8.6"
|
|
76
74
|
},
|
|
77
75
|
"peerDependencies": {
|
|
78
|
-
"
|
|
76
|
+
"ace-builds": "^1.4.3",
|
|
77
|
+
"mongodb-ace-autocompleter": "*",
|
|
78
|
+
"mongodb-ace-mode": "^1.8.0",
|
|
79
|
+
"react": "^16.14.0",
|
|
80
|
+
"react-ace": "^9.5.0"
|
|
79
81
|
},
|
|
80
82
|
"devDependencies": {
|
|
81
|
-
"@mongodb-js/eslint-config-compass": "^0.
|
|
82
|
-
"@mongodb-js/mocha-config-compass": "^0.
|
|
83
|
+
"@mongodb-js/eslint-config-compass": "^0.10.0",
|
|
84
|
+
"@mongodb-js/mocha-config-compass": "^0.11.0",
|
|
83
85
|
"@mongodb-js/prettier-config-compass": "^0.5.0",
|
|
84
86
|
"@mongodb-js/tsconfig-compass": "^0.6.0",
|
|
85
87
|
"@testing-library/dom": "^8.11.1",
|
|
@@ -90,12 +92,16 @@
|
|
|
90
92
|
"@types/chai-dom": "^0.0.10",
|
|
91
93
|
"@types/mocha": "^9.0.0",
|
|
92
94
|
"@types/react": "^17.0.5",
|
|
95
|
+
"ace-builds": "^1.4.3",
|
|
93
96
|
"chai": "^4.3.4",
|
|
94
97
|
"eslint": "^7.25.0",
|
|
95
98
|
"mocha": "^8.4.0",
|
|
99
|
+
"mongodb-ace-autocompleter": "^1.1.1",
|
|
100
|
+
"mongodb-ace-mode": "^1.8.0",
|
|
96
101
|
"nyc": "^15.0.0",
|
|
97
102
|
"prettier": "2.3.2",
|
|
98
103
|
"react": "^16.14.0",
|
|
104
|
+
"react-ace": "^9.5.0",
|
|
99
105
|
"react-dom": "^16.14.0",
|
|
100
106
|
"rimraf": "^3.0.2",
|
|
101
107
|
"sinon": "^9.0.0",
|
|
@@ -109,5 +115,5 @@
|
|
|
109
115
|
"publishConfig": {
|
|
110
116
|
"access": "public"
|
|
111
117
|
},
|
|
112
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "a4e705ec6d13393d2e14e906838bb67548e7ae35"
|
|
113
119
|
}
|