@jupyterlab/ui-components 4.0.0-alpha.33 → 4.0.0-alpha.35

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.
Files changed (49) hide show
  1. package/lib/components/form.d.ts +17 -2
  2. package/lib/components/form.js +52 -11
  3. package/lib/components/form.js.map +1 -1
  4. package/lib/components/vdom.d.ts +1 -1
  5. package/lib/components/windowedlist.d.ts +1 -1
  6. package/lib/components/windowedlist.js +2 -1
  7. package/lib/components/windowedlist.js.map +1 -1
  8. package/lib/hoverbox.d.ts +1 -1
  9. package/lib/icon/labicon.js +49 -48
  10. package/lib/icon/labicon.js.map +1 -1
  11. package/lib/icon/widgets/tabbarsvg.js +2 -1
  12. package/lib/icon/widgets/tabbarsvg.js.map +1 -1
  13. package/lib/tokens.d.ts +1 -1
  14. package/package.json +22 -20
  15. package/src/FormRendererRegistry.tsx +60 -0
  16. package/src/components/accordiontoolbar.ts +252 -0
  17. package/src/components/button.tsx +45 -0
  18. package/src/components/collapser.ts +176 -0
  19. package/src/components/form.tsx +678 -0
  20. package/src/components/htmlselect.tsx +99 -0
  21. package/src/components/iframe.ts +153 -0
  22. package/src/components/index.ts +20 -0
  23. package/src/components/inputgroup.tsx +51 -0
  24. package/src/components/interface.ts +9 -0
  25. package/src/components/menu.ts +442 -0
  26. package/src/components/panelwithtoolbar.ts +41 -0
  27. package/src/components/search.tsx +216 -0
  28. package/src/components/sidepanel.ts +168 -0
  29. package/src/components/spinner.ts +31 -0
  30. package/src/components/styling.ts +114 -0
  31. package/src/components/switch.ts +103 -0
  32. package/src/components/toolbar.tsx +1119 -0
  33. package/src/components/vdom.ts +324 -0
  34. package/src/components/windowedlist.ts +1422 -0
  35. package/src/hoverbox.ts +401 -0
  36. package/src/icon/iconimports.ts +206 -0
  37. package/src/icon/index.ts +6 -0
  38. package/src/icon/labicon.tsx +955 -0
  39. package/src/icon/widgets/commandpalettesvg.ts +78 -0
  40. package/src/icon/widgets/index.ts +6 -0
  41. package/src/icon/widgets/menusvg.ts +218 -0
  42. package/src/icon/widgets/tabbarsvg.ts +122 -0
  43. package/src/index.ts +13 -0
  44. package/src/style/icon.ts +581 -0
  45. package/src/style/index.ts +4 -0
  46. package/src/svg.d.ts +58 -0
  47. package/src/tokens.ts +68 -0
  48. package/src/utils.ts +90 -0
  49. package/style/rjsfTemplates.css +0 -4
@@ -0,0 +1,401 @@
1
+ // Copyright (c) Jupyter Development Team.
2
+ // Distributed under the terms of the Modified BSD License.
3
+
4
+ /**
5
+ * The class name added to all hover boxes.
6
+ */
7
+ const HOVERBOX_CLASS = 'jp-HoverBox';
8
+
9
+ /**
10
+ * The z-index used to hide hovering node that is scrolled out of view.
11
+ */
12
+ const OUTOFVIEW_Z_INDEX = '-1000';
13
+
14
+ type OutOfViewDisplay =
15
+ | 'hidden-inside'
16
+ | 'hidden-outside'
17
+ | 'stick-inside'
18
+ | 'stick-outside';
19
+
20
+ /**
21
+ * A namespace for `HoverBox` members.
22
+ */
23
+ export namespace HoverBox {
24
+ /**
25
+ * Options for setting the geometry of a hovering node and its anchor node.
26
+ */
27
+ export interface IOptions {
28
+ /**
29
+ * The referent anchor rectangle to which the hover box is bound.
30
+ *
31
+ * #### Notes
32
+ * In an editor context, this value will typically be the cursor's
33
+ * coordinate position, which can be retrieved via calling the
34
+ * `getCoordinateForPosition` method.
35
+ */
36
+ anchor: DOMRect;
37
+
38
+ /**
39
+ * The node that hosts the anchor.
40
+ *
41
+ * #### Notes
42
+ * The visibility of the elements under hover box edges within this host
43
+ * node is the heuristic that determines whether the hover box ought to be
44
+ * visible.
45
+ */
46
+ host: HTMLElement;
47
+
48
+ /**
49
+ * The maximum height of a hover box.
50
+ *
51
+ * #### Notes
52
+ * This value is only used if a CSS max-height attribute is not set for the
53
+ * hover box. It is a fallback value.
54
+ */
55
+ maxHeight: number;
56
+
57
+ /**
58
+ * The minimum height of a hover box.
59
+ */
60
+ minHeight: number;
61
+
62
+ /**
63
+ * The hover box node.
64
+ */
65
+ node: HTMLElement;
66
+
67
+ /**
68
+ * Optional pixel offset values added to where the hover box should render.
69
+ *
70
+ * #### Notes
71
+ * This option is useful for passing in values that may pertain to CSS
72
+ * borders or padding in cases where the text inside the hover box may need
73
+ * to align with the text of the referent editor.
74
+ *
75
+ * Because the hover box calculation may render a box either above or below
76
+ * the cursor, the `vertical` offset accepts `above` and `below` values for
77
+ * the different render modes.
78
+ */
79
+ offset?: {
80
+ horizontal?: number;
81
+ vertical?: { above?: number; below?: number };
82
+ };
83
+
84
+ /**
85
+ * If space is available both above and below the anchor, denote which
86
+ * location is privileged. Use forceBelow and forceAbove to mandate where
87
+ * hover box should render relative to anchor.
88
+ *
89
+ * #### Notes
90
+ * The default value is `'below'`.
91
+ */
92
+ privilege?: 'above' | 'below' | 'forceAbove' | 'forceBelow';
93
+
94
+ /**
95
+ * If the style of the node has already been computed, it can be passed into
96
+ * the hover box for geometry calculation.
97
+ */
98
+ style?: CSSStyleDeclaration;
99
+
100
+ /**
101
+ * How to position the hover box if its edges extend beyond the view of the
102
+ * host element. Value 'sticky' positions the box at the (inner or outer)
103
+ * edge of the host element.
104
+ *
105
+ * #### Notes
106
+ * The default value for each edge is `'hidden-inside'` for left and top,
107
+ * and `hidden-outside` for right and bottom edges.
108
+ */
109
+ outOfViewDisplay?: {
110
+ top?: OutOfViewDisplay;
111
+ bottom?: OutOfViewDisplay;
112
+ left?: OutOfViewDisplay;
113
+ right?: OutOfViewDisplay;
114
+ };
115
+
116
+ /**
117
+ * Exact size of the hover box. Pass it for faster rendering (allowing the
118
+ * positioning algorithm to to place it immediately at requested position).
119
+ */
120
+ size?: {
121
+ width: number;
122
+ height: number;
123
+ };
124
+ }
125
+
126
+ /**
127
+ * Set the visible dimensions of a hovering box anchored to an editor cursor.
128
+ *
129
+ * @param options - The hover box geometry calculation options.
130
+ */
131
+ export function setGeometry(options: IOptions): void {
132
+ const { anchor, host, node, privilege, outOfViewDisplay } = options;
133
+
134
+ const hostRect = host.getBoundingClientRect();
135
+
136
+ // Add hover box class if it does not exist.
137
+ if (!node.classList.contains(HOVERBOX_CLASS)) {
138
+ node.classList.add(HOVERBOX_CLASS);
139
+ }
140
+
141
+ // Start with the node displayed as if it was in view.
142
+ if (node.style.visibility) {
143
+ node.style.visibility = '';
144
+ }
145
+ if (node.style.zIndex === '') {
146
+ node.style.zIndex = '';
147
+ }
148
+
149
+ // Clear any previously set max-height.
150
+ node.style.maxHeight = '';
151
+
152
+ // Clear any programmatically set margin-top.
153
+ node.style.marginTop = '';
154
+
155
+ const style = options.style || window.getComputedStyle(node);
156
+ const spaceAbove = anchor.top - hostRect.top;
157
+ const spaceBelow = hostRect.bottom - anchor.bottom;
158
+
159
+ const marginTop = parseInt(style.marginTop!, 10) || 0;
160
+ const marginLeft = parseInt(style.marginLeft!, 10) || 0;
161
+ const minHeight = parseInt(style.minHeight!, 10) || options.minHeight;
162
+
163
+ let maxHeight = parseInt(style.maxHeight!, 10) || options.maxHeight;
164
+
165
+ // Determine whether to render above or below; check privilege.
166
+ const renderBelow =
167
+ privilege === 'forceAbove'
168
+ ? false
169
+ : privilege === 'forceBelow'
170
+ ? true
171
+ : privilege === 'above'
172
+ ? spaceAbove < maxHeight && spaceAbove < spaceBelow
173
+ : spaceBelow >= maxHeight || spaceBelow >= spaceAbove;
174
+
175
+ if (renderBelow) {
176
+ maxHeight = Math.min(spaceBelow - marginTop, maxHeight);
177
+ } else {
178
+ maxHeight = Math.min(spaceAbove, maxHeight);
179
+ // If the box renders above the text, its top margin is irrelevant.
180
+ node.style.marginTop = '0px';
181
+ }
182
+ node.style.maxHeight = `${maxHeight}px`;
183
+
184
+ // Make sure the box ought to be visible.
185
+ const withinBounds =
186
+ maxHeight > minHeight &&
187
+ (spaceBelow >= minHeight || spaceAbove >= minHeight);
188
+
189
+ if (!withinBounds) {
190
+ node.style.zIndex = OUTOFVIEW_Z_INDEX;
191
+ node.style.visibility = 'hidden';
192
+ return;
193
+ }
194
+
195
+ if (options.size) {
196
+ node.style.width = `${options.size.width}px`;
197
+ node.style.height = `${options.size.height}px`;
198
+ node.style.contain = 'strict';
199
+ } else {
200
+ node.style.contain = '';
201
+ node.style.width = 'auto';
202
+ node.style.height = '';
203
+ }
204
+
205
+ // Position the box vertically.
206
+ const initialHeight = options.size
207
+ ? options.size.height
208
+ : node.getBoundingClientRect().height;
209
+ const offsetAbove =
210
+ (options.offset &&
211
+ options.offset.vertical &&
212
+ options.offset.vertical.above) ||
213
+ 0;
214
+ const offsetBelow =
215
+ (options.offset &&
216
+ options.offset.vertical &&
217
+ options.offset.vertical.below) ||
218
+ 0;
219
+ let top = renderBelow
220
+ ? hostRect.bottom - spaceBelow + offsetBelow
221
+ : hostRect.top + spaceAbove - initialHeight + offsetAbove;
222
+ node.style.top = `${Math.floor(top)}px`;
223
+
224
+ // Position the box horizontally.
225
+ const offsetHorizontal = (options.offset && options.offset.horizontal) || 0;
226
+ let left = anchor.left + offsetHorizontal;
227
+
228
+ node.style.left = `${Math.ceil(left)}px`;
229
+
230
+ let rect = node.getBoundingClientRect();
231
+
232
+ // Move left to fit in the window.
233
+ const right = rect.right;
234
+ if (right > window.innerWidth) {
235
+ left -= right - window.innerWidth;
236
+ node.style.left = `${Math.ceil(left)}px`;
237
+ }
238
+
239
+ // Move right to fit in the window
240
+ if (left < offsetHorizontal - marginLeft) {
241
+ left = offsetHorizontal - marginLeft;
242
+ node.style.left = `${Math.ceil(left)}px`;
243
+ }
244
+
245
+ // Hide the hover box before querying the DOM for the anchor coordinates.
246
+ // Using z-index set directly for performance.
247
+ node.style.zIndex = '-1000';
248
+
249
+ const bottom = rect.bottom;
250
+
251
+ const includesLeftTop = host.contains(document.elementFromPoint(left, top));
252
+ const includesRightTop = host.contains(
253
+ document.elementFromPoint(right, top)
254
+ );
255
+ const includesRightBottom = host.contains(
256
+ document.elementFromPoint(right, bottom)
257
+ );
258
+ const includesLeftBottom = host.contains(
259
+ document.elementFromPoint(left, bottom)
260
+ );
261
+
262
+ node.style.zIndex = '';
263
+
264
+ const topEdgeInside = includesLeftTop || includesRightTop;
265
+ const bottomEdgeInside = includesLeftBottom || includesRightBottom;
266
+ const leftEdgeInside = includesLeftTop || includesLeftBottom;
267
+ const rightEdgeInside = includesRightBottom || includesRightTop;
268
+
269
+ const height = bottom - top;
270
+ const width = right - left;
271
+
272
+ const overTheTop = top < hostRect.top;
273
+ const belowTheBottom = bottom > hostRect.bottom;
274
+ const beforeTheLeft = left + marginLeft < hostRect.left;
275
+ const afterTheRight = right > hostRect.right;
276
+
277
+ let hide = false;
278
+ let leftChanged = false;
279
+ let topChanged = false;
280
+
281
+ if (overTheTop) {
282
+ switch (outOfViewDisplay?.top || 'hidden-inside') {
283
+ case 'hidden-inside':
284
+ if (!topEdgeInside) {
285
+ hide = true;
286
+ }
287
+ break;
288
+ case 'hidden-outside':
289
+ if (!bottomEdgeInside) {
290
+ hide = true;
291
+ }
292
+ break;
293
+ case 'stick-inside':
294
+ if (hostRect.top > top) {
295
+ top = hostRect.top;
296
+ topChanged = true;
297
+ }
298
+ break;
299
+ case 'stick-outside':
300
+ if (hostRect.top > bottom) {
301
+ top = hostRect.top - height;
302
+ topChanged = true;
303
+ }
304
+ break;
305
+ }
306
+ }
307
+
308
+ if (belowTheBottom) {
309
+ switch (outOfViewDisplay?.bottom || 'hidden-outside') {
310
+ case 'hidden-inside':
311
+ if (!bottomEdgeInside) {
312
+ hide = true;
313
+ }
314
+ break;
315
+ case 'hidden-outside':
316
+ if (!topEdgeInside) {
317
+ hide = true;
318
+ }
319
+ break;
320
+ case 'stick-inside':
321
+ if (hostRect.bottom < bottom) {
322
+ top = hostRect.bottom - height;
323
+ topChanged = true;
324
+ }
325
+ break;
326
+ case 'stick-outside':
327
+ if (hostRect.bottom < top) {
328
+ top = hostRect.bottom;
329
+ topChanged = true;
330
+ }
331
+ break;
332
+ }
333
+ }
334
+
335
+ if (beforeTheLeft) {
336
+ switch (outOfViewDisplay?.left || 'hidden-inside') {
337
+ case 'hidden-inside':
338
+ if (!leftEdgeInside) {
339
+ hide = true;
340
+ }
341
+ break;
342
+ case 'hidden-outside':
343
+ if (!rightEdgeInside) {
344
+ hide = true;
345
+ }
346
+ break;
347
+ case 'stick-inside':
348
+ if (hostRect.left > left + marginLeft) {
349
+ left = hostRect.left - marginLeft;
350
+ leftChanged = true;
351
+ }
352
+ break;
353
+ case 'stick-outside':
354
+ if (hostRect.left > right) {
355
+ left = hostRect.left - marginLeft - width;
356
+ leftChanged = true;
357
+ }
358
+ break;
359
+ }
360
+ }
361
+
362
+ if (afterTheRight) {
363
+ switch (outOfViewDisplay?.right || 'hidden-outside') {
364
+ case 'hidden-inside':
365
+ if (!rightEdgeInside) {
366
+ hide = true;
367
+ }
368
+ break;
369
+ case 'hidden-outside':
370
+ if (!leftEdgeInside) {
371
+ hide = true;
372
+ }
373
+ break;
374
+ case 'stick-inside':
375
+ if (hostRect.right < right) {
376
+ left = hostRect.right - width;
377
+ leftChanged = true;
378
+ }
379
+ break;
380
+ case 'stick-outside':
381
+ if (hostRect.right < left) {
382
+ left = hostRect.right;
383
+ leftChanged = true;
384
+ }
385
+ break;
386
+ }
387
+ }
388
+
389
+ if (hide) {
390
+ node.style.zIndex = OUTOFVIEW_Z_INDEX;
391
+ node.style.visibility = 'hidden';
392
+ }
393
+
394
+ if (leftChanged) {
395
+ node.style.left = `${Math.ceil(left)}px`;
396
+ }
397
+ if (topChanged) {
398
+ node.style.top = `${Math.ceil(top)}px`;
399
+ }
400
+ }
401
+ }
@@ -0,0 +1,206 @@
1
+ /*-----------------------------------------------------------------------------
2
+ | Copyright (c) Jupyter Development Team.
3
+ | Distributed under the terms of the Modified BSD License.
4
+ |----------------------------------------------------------------------------*/
5
+
6
+ /* This file was auto-generated by ensureUiComponents() in @jupyterlab/buildutils */
7
+
8
+ import { LabIcon } from './labicon';
9
+
10
+ // icon svg import statements
11
+ import addAboveSvgstr from '../../style/icons/toolbar/add-above.svg';
12
+ import addBelowSvgstr from '../../style/icons/toolbar/add-below.svg';
13
+ import addSvgstr from '../../style/icons/toolbar/add.svg';
14
+ import bellSvgstr from '../../style/icons/statusbar/bell.svg';
15
+ import bugDotSvgstr from '../../style/icons/toolbar/bug-dot.svg';
16
+ import bugSvgstr from '../../style/icons/toolbar/bug.svg';
17
+ import buildSvgstr from '../../style/icons/sidebar/build.svg';
18
+ import caretDownEmptySvgstr from '../../style/icons/arrow/caret-down-empty.svg';
19
+ import caretDownEmptyThinSvgstr from '../../style/icons/arrow/caret-down-empty-thin.svg';
20
+ import caretDownSvgstr from '../../style/icons/arrow/caret-down.svg';
21
+ import caretLeftSvgstr from '../../style/icons/arrow/caret-left.svg';
22
+ import caretRightSvgstr from '../../style/icons/arrow/caret-right.svg';
23
+ import caretUpEmptyThinSvgstr from '../../style/icons/arrow/caret-up-empty-thin.svg';
24
+ import caretUpSvgstr from '../../style/icons/arrow/caret-up.svg';
25
+ import caseSensitiveSvgstr from '../../style/icons/search/case-sensitive.svg';
26
+ import checkSvgstr from '../../style/icons/toolbar/check.svg';
27
+ import circleEmptySvgstr from '../../style/icons/toolbar/circle-empty.svg';
28
+ import circleSvgstr from '../../style/icons/toolbar/circle.svg';
29
+ import clearSvgstr from '../../style/icons/toolbar/clear.svg';
30
+ import closeSvgstr from '../../style/icons/toolbar/close.svg';
31
+ import codeCheckSvgstr from '../../style/icons/lsp/code-check.svg';
32
+ import codeSvgstr from '../../style/icons/toolbar/code.svg';
33
+ import collapseAllSvgstr from '../../style/icons/toolbar/collapse-all.svg';
34
+ import consoleSvgstr from '../../style/icons/filetype/console.svg';
35
+ import copySvgstr from '../../style/icons/toolbar/copy.svg';
36
+ import copyrightSvgstr from '../../style/icons/licenses/copyright.svg';
37
+ import cutSvgstr from '../../style/icons/toolbar/cut.svg';
38
+ import deleteSvgstr from '../../style/icons/toolbar/delete.svg';
39
+ import downloadSvgstr from '../../style/icons/toolbar/download.svg';
40
+ import duplicateSvgstr from '../../style/icons/toolbar/duplicate.svg';
41
+ import editSvgstr from '../../style/icons/toolbar/edit.svg';
42
+ import ellipsesSvgstr from '../../style/icons/toolbar/ellipses.svg';
43
+ import errorSvgstr from '../../style/icons/error.svg';
44
+ import expandAllSvgstr from '../../style/icons/toolbar/expand-all.svg';
45
+ import extensionSvgstr from '../../style/icons/sidebar/extension.svg';
46
+ import fastForwardSvgstr from '../../style/icons/toolbar/fast-forward.svg';
47
+ import fileSvgstr from '../../style/icons/filetype/file.svg';
48
+ import fileUploadSvgstr from '../../style/icons/toolbar/file-upload.svg';
49
+ import filterListSvgstr from '../../style/icons/toolbar/filter-list.svg';
50
+ import folderFavoriteSvgstr from '../../style/icons/filetype/folder-favorite.svg';
51
+ import folderSvgstr from '../../style/icons/filetype/folder.svg';
52
+ import homeSvgstr from '../../style/icons/filetype/home.svg';
53
+ import html5Svgstr from '../../style/icons/filetype/html5.svg';
54
+ import imageSvgstr from '../../style/icons/filetype/image.svg';
55
+ import infoSvgstr from '../../style/icons/info.svg';
56
+ import inspectorSvgstr from '../../style/icons/filetype/inspector.svg';
57
+ import jsonSvgstr from '../../style/icons/filetype/json.svg';
58
+ import juliaSvgstr from '../../style/icons/filetype/julia.svg';
59
+ import jupyterFaviconSvgstr from '../../style/icons/jupyter/jupyter-favicon.svg';
60
+ import jupyterSvgstr from '../../style/icons/jupyter/jupyter.svg';
61
+ import jupyterlabWordmarkSvgstr from '../../style/icons/jupyter/jupyterlab-wordmark.svg';
62
+ import kernelSvgstr from '../../style/icons/statusbar/kernel.svg';
63
+ import keyboardSvgstr from '../../style/icons/filetype/keyboard.svg';
64
+ import launchSvgstr from '../../style/icons/toolbar/launch.svg';
65
+ import launcherSvgstr from '../../style/icons/filetype/launcher.svg';
66
+ import lineFormSvgstr from '../../style/icons/statusbar/line-form.svg';
67
+ import linkSvgstr from '../../style/icons/toolbar/link.svg';
68
+ import listSvgstr from '../../style/icons/statusbar/list.svg';
69
+ import markdownSvgstr from '../../style/icons/filetype/markdown.svg';
70
+ import moveDownSvgstr from '../../style/icons/toolbar/move-down.svg';
71
+ import moveUpSvgstr from '../../style/icons/toolbar/move-up.svg';
72
+ import newFolderSvgstr from '../../style/icons/toolbar/new-folder.svg';
73
+ import notTrustedSvgstr from '../../style/icons/statusbar/not-trusted.svg';
74
+ import notebookSvgstr from '../../style/icons/filetype/notebook.svg';
75
+ import numberingSvgstr from '../../style/icons/toolbar/numbering.svg';
76
+ import offlineBoltSvgstr from '../../style/icons/toolbar/offline-bolt.svg';
77
+ import paletteSvgstr from '../../style/icons/sidebar/palette.svg';
78
+ import pasteSvgstr from '../../style/icons/toolbar/paste.svg';
79
+ import pdfSvgstr from '../../style/icons/filetype/pdf.svg';
80
+ import pythonSvgstr from '../../style/icons/filetype/python.svg';
81
+ import rKernelSvgstr from '../../style/icons/filetype/r-kernel.svg';
82
+ import reactSvgstr from '../../style/icons/filetype/react.svg';
83
+ import redoSvgstr from '../../style/icons/toolbar/redo.svg';
84
+ import refreshSvgstr from '../../style/icons/toolbar/refresh.svg';
85
+ import regexSvgstr from '../../style/icons/search/regex.svg';
86
+ import runSvgstr from '../../style/icons/toolbar/run.svg';
87
+ import runningSvgstr from '../../style/icons/sidebar/running.svg';
88
+ import saveSvgstr from '../../style/icons/toolbar/save.svg';
89
+ import searchSvgstr from '../../style/icons/toolbar/search.svg';
90
+ import settingsSvgstr from '../../style/icons/filetype/settings.svg';
91
+ import shareSvgstr from '../../style/icons/sidebar/share.svg';
92
+ import spreadsheetSvgstr from '../../style/icons/filetype/spreadsheet.svg';
93
+ import stopSvgstr from '../../style/icons/toolbar/stop.svg';
94
+ import tabSvgstr from '../../style/icons/sidebar/tab.svg';
95
+ import tableRowsSvgstr from '../../style/icons/toolbar/table-rows.svg';
96
+ import tagSvgstr from '../../style/icons/toolbar/tag.svg';
97
+ import terminalSvgstr from '../../style/icons/statusbar/terminal.svg';
98
+ import textEditorSvgstr from '../../style/icons/filetype/text-editor.svg';
99
+ import tocSvgstr from '../../style/icons/sidebar/toc.svg';
100
+ import treeViewSvgstr from '../../style/icons/toolbar/tree-view.svg';
101
+ import trustedSvgstr from '../../style/icons/statusbar/trusted.svg';
102
+ import undoSvgstr from '../../style/icons/toolbar/undo.svg';
103
+ import userSvgstr from '../../style/icons/sidebar/user.svg';
104
+ import usersSvgstr from '../../style/icons/sidebar/users.svg';
105
+ import vegaSvgstr from '../../style/icons/filetype/vega.svg';
106
+ import wordSvgstr from '../../style/icons/search/word.svg';
107
+ import yamlSvgstr from '../../style/icons/filetype/yaml.svg';
108
+
109
+ // LabIcon instance construction
110
+ export const addAboveIcon = new LabIcon({ name: 'ui-components:add-above', svgstr: addAboveSvgstr });
111
+ export const addBelowIcon = new LabIcon({ name: 'ui-components:add-below', svgstr: addBelowSvgstr });
112
+ export const addIcon = new LabIcon({ name: 'ui-components:add', svgstr: addSvgstr });
113
+ export const bellIcon = new LabIcon({ name: 'ui-components:bell', svgstr: bellSvgstr });
114
+ export const bugDotIcon = new LabIcon({ name: 'ui-components:bug-dot', svgstr: bugDotSvgstr });
115
+ export const bugIcon = new LabIcon({ name: 'ui-components:bug', svgstr: bugSvgstr });
116
+ export const buildIcon = new LabIcon({ name: 'ui-components:build', svgstr: buildSvgstr });
117
+ export const caretDownEmptyIcon = new LabIcon({ name: 'ui-components:caret-down-empty', svgstr: caretDownEmptySvgstr });
118
+ export const caretDownEmptyThinIcon = new LabIcon({ name: 'ui-components:caret-down-empty-thin', svgstr: caretDownEmptyThinSvgstr });
119
+ export const caretDownIcon = new LabIcon({ name: 'ui-components:caret-down', svgstr: caretDownSvgstr });
120
+ export const caretLeftIcon = new LabIcon({ name: 'ui-components:caret-left', svgstr: caretLeftSvgstr });
121
+ export const caretRightIcon = new LabIcon({ name: 'ui-components:caret-right', svgstr: caretRightSvgstr });
122
+ export const caretUpEmptyThinIcon = new LabIcon({ name: 'ui-components:caret-up-empty-thin', svgstr: caretUpEmptyThinSvgstr });
123
+ export const caretUpIcon = new LabIcon({ name: 'ui-components:caret-up', svgstr: caretUpSvgstr });
124
+ export const caseSensitiveIcon = new LabIcon({ name: 'ui-components:case-sensitive', svgstr: caseSensitiveSvgstr });
125
+ export const checkIcon = new LabIcon({ name: 'ui-components:check', svgstr: checkSvgstr });
126
+ export const circleEmptyIcon = new LabIcon({ name: 'ui-components:circle-empty', svgstr: circleEmptySvgstr });
127
+ export const circleIcon = new LabIcon({ name: 'ui-components:circle', svgstr: circleSvgstr });
128
+ export const clearIcon = new LabIcon({ name: 'ui-components:clear', svgstr: clearSvgstr });
129
+ export const closeIcon = new LabIcon({ name: 'ui-components:close', svgstr: closeSvgstr });
130
+ export const codeCheckIcon = new LabIcon({ name: 'ui-components:code-check', svgstr: codeCheckSvgstr });
131
+ export const codeIcon = new LabIcon({ name: 'ui-components:code', svgstr: codeSvgstr });
132
+ export const collapseAllIcon = new LabIcon({ name: 'ui-components:collapse-all', svgstr: collapseAllSvgstr });
133
+ export const consoleIcon = new LabIcon({ name: 'ui-components:console', svgstr: consoleSvgstr });
134
+ export const copyIcon = new LabIcon({ name: 'ui-components:copy', svgstr: copySvgstr });
135
+ export const copyrightIcon = new LabIcon({ name: 'ui-components:copyright', svgstr: copyrightSvgstr });
136
+ export const cutIcon = new LabIcon({ name: 'ui-components:cut', svgstr: cutSvgstr });
137
+ export const deleteIcon = new LabIcon({ name: 'ui-components:delete', svgstr: deleteSvgstr });
138
+ export const downloadIcon = new LabIcon({ name: 'ui-components:download', svgstr: downloadSvgstr });
139
+ export const duplicateIcon = new LabIcon({ name: 'ui-components:duplicate', svgstr: duplicateSvgstr });
140
+ export const editIcon = new LabIcon({ name: 'ui-components:edit', svgstr: editSvgstr });
141
+ export const ellipsesIcon = new LabIcon({ name: 'ui-components:ellipses', svgstr: ellipsesSvgstr });
142
+ export const errorIcon = new LabIcon({ name: 'ui-components:error', svgstr: errorSvgstr });
143
+ export const expandAllIcon = new LabIcon({ name: 'ui-components:expand-all', svgstr: expandAllSvgstr });
144
+ export const extensionIcon = new LabIcon({ name: 'ui-components:extension', svgstr: extensionSvgstr });
145
+ export const fastForwardIcon = new LabIcon({ name: 'ui-components:fast-forward', svgstr: fastForwardSvgstr });
146
+ export const fileIcon = new LabIcon({ name: 'ui-components:file', svgstr: fileSvgstr });
147
+ export const fileUploadIcon = new LabIcon({ name: 'ui-components:file-upload', svgstr: fileUploadSvgstr });
148
+ export const filterListIcon = new LabIcon({ name: 'ui-components:filter-list', svgstr: filterListSvgstr });
149
+ export const folderFavoriteIcon = new LabIcon({ name: 'ui-components:folder-favorite', svgstr: folderFavoriteSvgstr });
150
+ export const folderIcon = new LabIcon({ name: 'ui-components:folder', svgstr: folderSvgstr });
151
+ export const homeIcon = new LabIcon({ name: 'ui-components:home', svgstr: homeSvgstr });
152
+ export const html5Icon = new LabIcon({ name: 'ui-components:html5', svgstr: html5Svgstr });
153
+ export const imageIcon = new LabIcon({ name: 'ui-components:image', svgstr: imageSvgstr });
154
+ export const infoIcon = new LabIcon({ name: 'ui-components:info', svgstr: infoSvgstr });
155
+ export const inspectorIcon = new LabIcon({ name: 'ui-components:inspector', svgstr: inspectorSvgstr });
156
+ export const jsonIcon = new LabIcon({ name: 'ui-components:json', svgstr: jsonSvgstr });
157
+ export const juliaIcon = new LabIcon({ name: 'ui-components:julia', svgstr: juliaSvgstr });
158
+ export const jupyterFaviconIcon = new LabIcon({ name: 'ui-components:jupyter-favicon', svgstr: jupyterFaviconSvgstr });
159
+ export const jupyterIcon = new LabIcon({ name: 'ui-components:jupyter', svgstr: jupyterSvgstr });
160
+ export const jupyterlabWordmarkIcon = new LabIcon({ name: 'ui-components:jupyterlab-wordmark', svgstr: jupyterlabWordmarkSvgstr });
161
+ export const kernelIcon = new LabIcon({ name: 'ui-components:kernel', svgstr: kernelSvgstr });
162
+ export const keyboardIcon = new LabIcon({ name: 'ui-components:keyboard', svgstr: keyboardSvgstr });
163
+ export const launchIcon = new LabIcon({ name: 'ui-components:launch', svgstr: launchSvgstr });
164
+ export const launcherIcon = new LabIcon({ name: 'ui-components:launcher', svgstr: launcherSvgstr });
165
+ export const lineFormIcon = new LabIcon({ name: 'ui-components:line-form', svgstr: lineFormSvgstr });
166
+ export const linkIcon = new LabIcon({ name: 'ui-components:link', svgstr: linkSvgstr });
167
+ export const listIcon = new LabIcon({ name: 'ui-components:list', svgstr: listSvgstr });
168
+ export const markdownIcon = new LabIcon({ name: 'ui-components:markdown', svgstr: markdownSvgstr });
169
+ export const moveDownIcon = new LabIcon({ name: 'ui-components:move-down', svgstr: moveDownSvgstr });
170
+ export const moveUpIcon = new LabIcon({ name: 'ui-components:move-up', svgstr: moveUpSvgstr });
171
+ export const newFolderIcon = new LabIcon({ name: 'ui-components:new-folder', svgstr: newFolderSvgstr });
172
+ export const notTrustedIcon = new LabIcon({ name: 'ui-components:not-trusted', svgstr: notTrustedSvgstr });
173
+ export const notebookIcon = new LabIcon({ name: 'ui-components:notebook', svgstr: notebookSvgstr });
174
+ export const numberingIcon = new LabIcon({ name: 'ui-components:numbering', svgstr: numberingSvgstr });
175
+ export const offlineBoltIcon = new LabIcon({ name: 'ui-components:offline-bolt', svgstr: offlineBoltSvgstr });
176
+ export const paletteIcon = new LabIcon({ name: 'ui-components:palette', svgstr: paletteSvgstr });
177
+ export const pasteIcon = new LabIcon({ name: 'ui-components:paste', svgstr: pasteSvgstr });
178
+ export const pdfIcon = new LabIcon({ name: 'ui-components:pdf', svgstr: pdfSvgstr });
179
+ export const pythonIcon = new LabIcon({ name: 'ui-components:python', svgstr: pythonSvgstr });
180
+ export const rKernelIcon = new LabIcon({ name: 'ui-components:r-kernel', svgstr: rKernelSvgstr });
181
+ export const reactIcon = new LabIcon({ name: 'ui-components:react', svgstr: reactSvgstr });
182
+ export const redoIcon = new LabIcon({ name: 'ui-components:redo', svgstr: redoSvgstr });
183
+ export const refreshIcon = new LabIcon({ name: 'ui-components:refresh', svgstr: refreshSvgstr });
184
+ export const regexIcon = new LabIcon({ name: 'ui-components:regex', svgstr: regexSvgstr });
185
+ export const runIcon = new LabIcon({ name: 'ui-components:run', svgstr: runSvgstr });
186
+ export const runningIcon = new LabIcon({ name: 'ui-components:running', svgstr: runningSvgstr });
187
+ export const saveIcon = new LabIcon({ name: 'ui-components:save', svgstr: saveSvgstr });
188
+ export const searchIcon = new LabIcon({ name: 'ui-components:search', svgstr: searchSvgstr });
189
+ export const settingsIcon = new LabIcon({ name: 'ui-components:settings', svgstr: settingsSvgstr });
190
+ export const shareIcon = new LabIcon({ name: 'ui-components:share', svgstr: shareSvgstr });
191
+ export const spreadsheetIcon = new LabIcon({ name: 'ui-components:spreadsheet', svgstr: spreadsheetSvgstr });
192
+ export const stopIcon = new LabIcon({ name: 'ui-components:stop', svgstr: stopSvgstr });
193
+ export const tabIcon = new LabIcon({ name: 'ui-components:tab', svgstr: tabSvgstr });
194
+ export const tableRowsIcon = new LabIcon({ name: 'ui-components:table-rows', svgstr: tableRowsSvgstr });
195
+ export const tagIcon = new LabIcon({ name: 'ui-components:tag', svgstr: tagSvgstr });
196
+ export const terminalIcon = new LabIcon({ name: 'ui-components:terminal', svgstr: terminalSvgstr });
197
+ export const textEditorIcon = new LabIcon({ name: 'ui-components:text-editor', svgstr: textEditorSvgstr });
198
+ export const tocIcon = new LabIcon({ name: 'ui-components:toc', svgstr: tocSvgstr });
199
+ export const treeViewIcon = new LabIcon({ name: 'ui-components:tree-view', svgstr: treeViewSvgstr });
200
+ export const trustedIcon = new LabIcon({ name: 'ui-components:trusted', svgstr: trustedSvgstr });
201
+ export const undoIcon = new LabIcon({ name: 'ui-components:undo', svgstr: undoSvgstr });
202
+ export const userIcon = new LabIcon({ name: 'ui-components:user', svgstr: userSvgstr });
203
+ export const usersIcon = new LabIcon({ name: 'ui-components:users', svgstr: usersSvgstr });
204
+ export const vegaIcon = new LabIcon({ name: 'ui-components:vega', svgstr: vegaSvgstr });
205
+ export const wordIcon = new LabIcon({ name: 'ui-components:word', svgstr: wordSvgstr });
206
+ export const yamlIcon = new LabIcon({ name: 'ui-components:yaml', svgstr: yamlSvgstr });
@@ -0,0 +1,6 @@
1
+ // Copyright (c) Jupyter Development Team.
2
+ // Distributed under the terms of the Modified BSD License.
3
+
4
+ export * from './iconimports';
5
+ export * from './labicon';
6
+ export * from './widgets';