@jupyterlab/ui-components 4.0.0-alpha.34 → 4.0.0-alpha.36

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 (63) hide show
  1. package/lib/components/collapser.js +26 -10
  2. package/lib/components/collapser.js.map +1 -1
  3. package/lib/components/form.js +1 -1
  4. package/lib/components/form.js.map +1 -1
  5. package/lib/components/menu.d.ts +0 -7
  6. package/lib/components/menu.js +0 -9
  7. package/lib/components/menu.js.map +1 -1
  8. package/lib/components/vdom.d.ts +1 -1
  9. package/lib/components/windowedlist.d.ts +1 -1
  10. package/lib/components/windowedlist.js +3 -2
  11. package/lib/components/windowedlist.js.map +1 -1
  12. package/lib/hoverbox.d.ts +1 -1
  13. package/lib/icon/iconimports.d.ts +2 -0
  14. package/lib/icon/iconimports.js +4 -0
  15. package/lib/icon/iconimports.js.map +1 -1
  16. package/lib/icon/labicon.js +49 -48
  17. package/lib/icon/labicon.js.map +1 -1
  18. package/lib/icon/widgets/tabbarsvg.js +2 -1
  19. package/lib/icon/widgets/tabbarsvg.js.map +1 -1
  20. package/lib/style/icon.d.ts +0 -8
  21. package/lib/style/icon.js +1 -9
  22. package/lib/style/icon.js.map +1 -1
  23. package/package.json +20 -19
  24. package/src/FormRendererRegistry.tsx +60 -0
  25. package/src/components/accordiontoolbar.ts +252 -0
  26. package/src/components/button.tsx +45 -0
  27. package/src/components/collapser.ts +201 -0
  28. package/src/components/form.tsx +678 -0
  29. package/src/components/htmlselect.tsx +99 -0
  30. package/src/components/iframe.ts +153 -0
  31. package/src/components/index.ts +20 -0
  32. package/src/components/inputgroup.tsx +51 -0
  33. package/src/components/interface.ts +9 -0
  34. package/src/components/menu.ts +432 -0
  35. package/src/components/panelwithtoolbar.ts +41 -0
  36. package/src/components/search.tsx +216 -0
  37. package/src/components/sidepanel.ts +168 -0
  38. package/src/components/spinner.ts +31 -0
  39. package/src/components/styling.ts +114 -0
  40. package/src/components/switch.ts +103 -0
  41. package/src/components/toolbar.tsx +1119 -0
  42. package/src/components/vdom.ts +324 -0
  43. package/src/components/windowedlist.ts +1422 -0
  44. package/src/hoverbox.ts +401 -0
  45. package/src/icon/iconimports.ts +210 -0
  46. package/src/icon/index.ts +6 -0
  47. package/src/icon/labicon.tsx +955 -0
  48. package/src/icon/widgets/commandpalettesvg.ts +78 -0
  49. package/src/icon/widgets/index.ts +6 -0
  50. package/src/icon/widgets/menusvg.ts +218 -0
  51. package/src/icon/widgets/tabbarsvg.ts +122 -0
  52. package/src/index.ts +13 -0
  53. package/src/style/icon.ts +554 -0
  54. package/src/style/index.ts +4 -0
  55. package/src/svg.d.ts +58 -0
  56. package/src/tokens.ts +68 -0
  57. package/src/utils.ts +90 -0
  58. package/style/collapse.css +20 -6
  59. package/style/deprecated.css +10 -0
  60. package/style/icons/search/filter-dot.svg +8 -0
  61. package/style/icons/search/filter.svg +5 -0
  62. package/style/icons.css +4 -0
  63. package/style/rjsfTemplates.css +18 -13
@@ -0,0 +1,554 @@
1
+ // Copyright (c) Jupyter Development Team.
2
+ // Distributed under the terms of the Modified BSD License.
3
+
4
+ import { style as typestyleClass } from 'typestyle/lib';
5
+ import { NestedCSSProperties } from 'typestyle/lib/types';
6
+
7
+ export namespace LabIconStyle {
8
+ /**
9
+ * - breadCrumb: The path icons above the filebrowser
10
+ * - commandPaletteHeader: The icon to the right of palette section headers
11
+ * - commandPaletteItem: The icon next to a palette item
12
+ * - launcherCard: The icons for the cards at the bottom of the launcher
13
+ * - launcherSection: The icons to left of the Launcher section headers
14
+ * - listing: The icons to the left of the filebrowser listing items
15
+ * - listingHeaderItem: Caret icons used to show sort order in listing column headers
16
+ * - mainAreaTab: The icons in the tabs above the main area/the tabManager in the sidebar
17
+ * - menuItem: The icon next to a menu item
18
+ * - runningItem: The icon next to an item in the Running sidebar
19
+ * - select: The caret icon on the left side of a dropdown select element
20
+ * - settingsEditor: The icons to the left of each section of the settings editor
21
+ * - sideBar: The icons for the sidebar (default to the left of the main window)
22
+ * - splash: The icon used for the splash screen
23
+ * - statusBar: The icons in the status bar
24
+ * - toolbarButton: The icon shown on a toolbar button
25
+ */
26
+ type IBuiltin =
27
+ | 'breadCrumb'
28
+ | 'commandPaletteHeader'
29
+ | 'commandPaletteItem'
30
+ | 'launcherCard'
31
+ | 'launcherSection'
32
+ | 'listing'
33
+ | 'listingHeaderItem'
34
+ | 'mainAreaTab'
35
+ | 'menuItem'
36
+ | 'runningItem'
37
+ | 'select'
38
+ | 'settingsEditor'
39
+ | 'sideBar'
40
+ | 'splash'
41
+ | 'statusBar'
42
+ | 'toolbarButton';
43
+
44
+ type IPosition =
45
+ | 'center'
46
+ | 'top'
47
+ | 'right'
48
+ | 'bottom'
49
+ | 'left'
50
+ | 'top right'
51
+ | 'bottom right'
52
+ | 'bottom left'
53
+ | 'top left';
54
+
55
+ type ISize = 'small' | 'normal' | 'large' | 'xlarge';
56
+
57
+ /**
58
+ * Options that function as a shorthand for compound CSS properties,
59
+ * such as the set of props required to center an svg inside
60
+ * of a parent node
61
+ */
62
+ interface ISheetOptions {
63
+ /**
64
+ * How to position the inner svg element,
65
+ * relative to the outer container
66
+ */
67
+ elementPosition?: IPosition;
68
+
69
+ /**
70
+ * the size of the inner svg element. Can be any of:
71
+ * - 'small': 14px x 14px
72
+ * - 'normal': 16px x 16px
73
+ * - 'large': 20px x 20px
74
+ * - 'xlarge': 24px x 24px
75
+ */
76
+ elementSize?: ISize;
77
+
78
+ /**
79
+ * FUTURE: how to position the label element (if any),
80
+ * relative to the outer container
81
+ */
82
+ // labelPosition?: IPosition;
83
+ }
84
+
85
+ /**
86
+ * Stylesheet with a collection of CSS props for each node
87
+ * in an icon, plus some custom options
88
+ */
89
+ interface ISheet {
90
+ /**
91
+ * CSS properties that will be applied to the outer container
92
+ * element via a typestyle class
93
+ */
94
+ container?: NestedCSSProperties;
95
+
96
+ /**
97
+ * CSS properties that will be applied to the inner svg
98
+ * element via a typestyle class
99
+ */
100
+ element?: NestedCSSProperties;
101
+
102
+ /**
103
+ * Options that function as modifiers for this style's
104
+ * CSS properties
105
+ */
106
+ options?: ISheetOptions;
107
+
108
+ /**
109
+ * FUTURE: CSS properties that will be applied to the label
110
+ * element, if any, via a typestyle class
111
+ */
112
+ // labelCSS?: NestedCSSProperties;
113
+ }
114
+
115
+ /**
116
+ * A stylesheet containing only collections of CSS style props that
117
+ * can be fed directly to typestyle's style() function. A standard
118
+ * ISheet can be resolved to a "pure" stylesheet by processing and
119
+ * removing any options
120
+ */
121
+ interface ISheetPure extends ISheet {
122
+ /**
123
+ * Options are disallowed
124
+ */
125
+ options?: undefined;
126
+ }
127
+
128
+ /**
129
+ * Type to help with resolving a stylesheet that might be a string
130
+ */
131
+ type ISheetResolvable = ISheet | IBuiltin;
132
+
133
+ export interface IProps extends NestedCSSProperties, ISheetOptions {
134
+ /**
135
+ * Specify the icon styling. Can be either a string naming one of
136
+ * the builtin icon stylesheets, a LabIconStyle.ISheet object, or an
137
+ * array containing any mixture of the two. If an array is provided,
138
+ * the actual style will be determined by merging the stylesheets in
139
+ * the array, giving precedence to the rightmost values.
140
+ */
141
+ stylesheet?: ISheetResolvable | ISheetResolvable[];
142
+ }
143
+
144
+ /**
145
+ * The builtin stylesheets
146
+ */
147
+ const builtinSheets: { [k in IBuiltin]: ISheet } = {
148
+ breadCrumb: {
149
+ container: {
150
+ $nest: {
151
+ // `&` will be substituted for the generated classname (interpolation)
152
+ '&:first-child svg': {
153
+ bottom: '1px',
154
+ marginLeft: '0px',
155
+ position: 'relative'
156
+ },
157
+ '&:hover': {
158
+ backgroundColor: 'var(--jp-layout-color2)'
159
+ },
160
+ ['.jp-mod-dropTarget&']: {
161
+ backgroundColor: 'var(--jp-brand-color2)',
162
+ opacity: 0.7
163
+ }
164
+ }
165
+ },
166
+ element: {
167
+ borderRadius: 'var(--jp-border-radius)',
168
+ cursor: 'pointer',
169
+ margin: '0px 2px',
170
+ padding: '0px 2px',
171
+ height: '16px',
172
+ width: '16px',
173
+ verticalAlign: 'middle'
174
+ }
175
+ },
176
+
177
+ commandPaletteHeader: {
178
+ container: {
179
+ height: '14px',
180
+ margin: '0 14px 0 auto'
181
+ },
182
+ element: {
183
+ height: '14px',
184
+ width: '14px'
185
+ },
186
+ options: {
187
+ elementPosition: 'center'
188
+ }
189
+ },
190
+
191
+ commandPaletteItem: {
192
+ element: {
193
+ height: '16px',
194
+ width: '16px'
195
+ },
196
+ options: {
197
+ elementPosition: 'center'
198
+ }
199
+ },
200
+
201
+ launcherCard: {
202
+ container: {
203
+ height: '52px',
204
+ width: '52px'
205
+ },
206
+ element: {
207
+ height: '52px',
208
+ width: '52px'
209
+ },
210
+ options: {
211
+ elementPosition: 'center'
212
+ }
213
+ },
214
+
215
+ launcherSection: {
216
+ container: {
217
+ boxSizing: 'border-box',
218
+ marginRight: '12px',
219
+ height: '32px',
220
+ width: '32px'
221
+ },
222
+ element: {
223
+ height: '32px',
224
+ width: '32px'
225
+ },
226
+ options: {
227
+ elementPosition: 'center'
228
+ }
229
+ },
230
+
231
+ listing: {
232
+ container: {
233
+ flex: '0 0 20px',
234
+ marginRight: '4px',
235
+ position: 'relative'
236
+ },
237
+ element: {
238
+ height: '16px',
239
+ width: '16px'
240
+ },
241
+ options: {
242
+ elementPosition: 'center'
243
+ }
244
+ },
245
+
246
+ listingHeaderItem: {
247
+ container: {
248
+ display: 'inline',
249
+ height: '16px',
250
+ width: '16px'
251
+ },
252
+ element: {
253
+ height: 'auto',
254
+ margin: '-2px 0 0 0',
255
+ width: '20px'
256
+ },
257
+ options: {
258
+ elementPosition: 'center'
259
+ }
260
+ },
261
+
262
+ mainAreaTab: {
263
+ container: {
264
+ $nest: {
265
+ '.lm-DockPanel-tabBar &': {
266
+ marginRight: '4px'
267
+ },
268
+ '#tab-manager &': {
269
+ marginRight: '2px',
270
+ position: 'relative'
271
+ }
272
+ }
273
+ },
274
+ element: {
275
+ $nest: {
276
+ '.lm-DockPanel-tabBar &': {
277
+ height: '14px',
278
+ width: '14px'
279
+ },
280
+ '#tab-manager &': {
281
+ height: '16px',
282
+ width: '16px'
283
+ }
284
+ }
285
+ },
286
+ options: {
287
+ elementPosition: 'center'
288
+ }
289
+ },
290
+
291
+ menuItem: {
292
+ container: {
293
+ display: 'inline-block',
294
+ verticalAlign: 'middle'
295
+ },
296
+ element: {
297
+ height: '16px',
298
+ width: '16px'
299
+ },
300
+ options: {
301
+ elementPosition: 'center'
302
+ }
303
+ },
304
+
305
+ runningItem: {
306
+ container: {
307
+ margin: '0px 4px 0px 4px'
308
+ },
309
+ element: {
310
+ height: '16px',
311
+ width: '16px'
312
+ },
313
+ options: {
314
+ elementPosition: 'center'
315
+ }
316
+ },
317
+
318
+ select: {
319
+ container: {
320
+ pointerEvents: 'none'
321
+ },
322
+ element: {
323
+ position: 'absolute',
324
+ height: 'auto',
325
+ width: '16px'
326
+ }
327
+ },
328
+
329
+ settingsEditor: {
330
+ container: {
331
+ display: 'flex',
332
+ flex: '0 0 20px',
333
+ margin: '0 3px 0 0',
334
+ position: 'relative',
335
+ height: '20px',
336
+ width: '20px'
337
+ },
338
+ element: {
339
+ height: '16px',
340
+ width: '16px'
341
+ },
342
+ options: {
343
+ elementPosition: 'center'
344
+ }
345
+ },
346
+
347
+ sideBar: {
348
+ element: {
349
+ height: 'auto',
350
+ width: '20px'
351
+ },
352
+ options: {
353
+ elementPosition: 'center'
354
+ }
355
+ },
356
+
357
+ splash: {
358
+ container: {
359
+ animation: '0.3s fade-in linear forwards',
360
+ height: '100%',
361
+ width: '100%',
362
+ zIndex: 1
363
+ },
364
+ element: {
365
+ // width no height
366
+ width: '100px'
367
+ },
368
+ options: {
369
+ elementPosition: 'center'
370
+ }
371
+ },
372
+
373
+ statusBar: {
374
+ element: {
375
+ left: '0px',
376
+ top: '0px',
377
+ height: '18px',
378
+ width: '20px',
379
+ position: 'relative'
380
+ }
381
+ },
382
+
383
+ toolbarButton: {
384
+ container: {
385
+ display: 'inline-block',
386
+ verticalAlign: 'middle'
387
+ },
388
+ element: {
389
+ height: '16px',
390
+ width: '16px'
391
+ },
392
+ options: {
393
+ elementPosition: 'center'
394
+ }
395
+ }
396
+ };
397
+
398
+ function _elementPositionFactory(extra: NestedCSSProperties): ISheet {
399
+ return {
400
+ container: {
401
+ alignItems: 'center',
402
+ display: 'flex'
403
+ },
404
+ element: {
405
+ display: 'block',
406
+ ...extra
407
+ }
408
+ };
409
+ }
410
+
411
+ /**
412
+ * Styles to help with positioning
413
+ */
414
+ const positionSheets: { [k in IPosition]: ISheet } = {
415
+ center: _elementPositionFactory({ margin: '0 auto', width: '100%' }),
416
+
417
+ top: _elementPositionFactory({ margin: '0 0 auto 0' }),
418
+ right: _elementPositionFactory({ margin: '0 0 0 auto' }),
419
+ bottom: _elementPositionFactory({ margin: 'auto 0 0 0' }),
420
+ left: _elementPositionFactory({ margin: '0 auto 0 0' }),
421
+
422
+ 'top right': _elementPositionFactory({ margin: '0 0 auto auto' }),
423
+ 'bottom right': _elementPositionFactory({ margin: 'auto 0 0 auto' }),
424
+ 'bottom left': _elementPositionFactory({ margin: 'auto auto 0 0' }),
425
+ 'top left': _elementPositionFactory({ margin: '0 auto 0 auto' })
426
+ };
427
+
428
+ function _elementSizeFactory(size: string): ISheet {
429
+ return {
430
+ element: {
431
+ height: size,
432
+ width: size
433
+ }
434
+ };
435
+ }
436
+
437
+ /**
438
+ * sheets that establish some default sizes
439
+ */
440
+ const sizeSheets: { [k in ISize]: ISheet } = {
441
+ small: _elementSizeFactory('14px'),
442
+ normal: _elementSizeFactory('16px'),
443
+ large: _elementSizeFactory('20px'),
444
+ xlarge: _elementSizeFactory('24px')
445
+ };
446
+
447
+ /**
448
+ * Merge two or more icon sheets into a single "pure"
449
+ * icon style (ie collections of CSS props only)
450
+ */
451
+ function mergeSheets(sheets: ISheet[]): ISheetPure {
452
+ return {
453
+ container: Object.assign({}, ...sheets.map(s => s.container)),
454
+ element: Object.assign({}, ...sheets.map(s => s.element))
455
+ };
456
+ }
457
+
458
+ /**
459
+ * Resolve one or more stylesheets that may just be a string naming
460
+ * one of the builtin stylesheets to an array of proper ISheet objects
461
+ */
462
+ function resolveSheet(
463
+ stylesheet: ISheetResolvable | ISheetResolvable[] | undefined
464
+ ): ISheet[] {
465
+ if (!stylesheet) {
466
+ return [];
467
+ }
468
+
469
+ if (!Array.isArray(stylesheet)) {
470
+ // wrap in array
471
+ stylesheet = [stylesheet];
472
+ }
473
+
474
+ return stylesheet.map(k => (typeof k === 'string' ? builtinSheets[k] : k));
475
+ }
476
+
477
+ /**
478
+ * Resolve and merge multiple icon stylesheets
479
+ */
480
+ function applySheetOptions(sheets: ISheet[]) {
481
+ const options: ISheetOptions = Object.assign(
482
+ {},
483
+ ...sheets.map(s => s.options)
484
+ );
485
+
486
+ if (options.elementPosition) {
487
+ sheets.unshift(positionSheets[options.elementPosition]);
488
+ }
489
+
490
+ if (options.elementSize) {
491
+ sheets.unshift(sizeSheets[options.elementSize]);
492
+ }
493
+
494
+ return mergeSheets(sheets);
495
+ }
496
+
497
+ /**
498
+ * Resolve a pure icon stylesheet into a typestyle class
499
+ */
500
+ function resolveStyleClass(stylesheet: ISheetPure): string {
501
+ return typestyleClass({
502
+ ...stylesheet.container,
503
+ $nest: {
504
+ ...stylesheet.container?.$nest,
505
+ ['svg']: stylesheet.element
506
+ }
507
+ });
508
+ }
509
+
510
+ // cache style classes for builtin stylesheets
511
+ const _styleClassCache = new Map<string, string>();
512
+
513
+ /**
514
+ * Get a typestyle class, given a set of icon styling props
515
+ */
516
+ export function styleClass(props?: IProps): string {
517
+ if (!props || Object.keys(props).length === 0) {
518
+ // props is empty
519
+ return '';
520
+ }
521
+
522
+ let { elementPosition, elementSize, stylesheet, ...elementCSS } = props;
523
+
524
+ // add option args with defined values to overrides
525
+ const options = {
526
+ ...(elementPosition && { elementPosition }),
527
+ ...(elementSize && { elementSize })
528
+ };
529
+
530
+ // try to look up the style class in the cache
531
+ const cacheable =
532
+ typeof stylesheet === 'string' && Object.keys(elementCSS).length === 0;
533
+ const cacheKey = cacheable
534
+ ? [stylesheet, elementPosition, elementSize].join(',')
535
+ : '';
536
+ if (cacheable && _styleClassCache.has(cacheKey)) {
537
+ return _styleClassCache.get(cacheKey)!;
538
+ }
539
+
540
+ // resolve kind to an array of sheets, then stick overrides on the end
541
+ const sheets = resolveSheet(stylesheet);
542
+ sheets.push({ element: elementCSS, options });
543
+
544
+ // apply style options/merge sheets, then convert to typestyle class
545
+ const cls = resolveStyleClass(applySheetOptions(sheets));
546
+
547
+ if (cacheable) {
548
+ // store in cache for later reuse
549
+ _styleClassCache.set(cacheKey, cls);
550
+ }
551
+
552
+ return cls;
553
+ }
554
+ }
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Jupyter Development Team.
2
+ // Distributed under the terms of the Modified BSD License.
3
+
4
+ export * from './icon';
package/src/svg.d.ts ADDED
@@ -0,0 +1,58 @@
1
+ // Copyright (c) Jupyter Development Team.
2
+ // Distributed under the terms of the Modified BSD License.
3
+
4
+ // including this file in a package allows for the use of import statements
5
+ // with svg files. Example: `import xSvg from 'path/xSvg.svg'`
6
+
7
+ // for use with raw-loader in Webpack.
8
+ // The svg will be imported as a raw string
9
+
10
+ declare module '*.svg' {
11
+ const value: string; // @ts-ignore
12
+ export default value;
13
+ }
14
+
15
+ // for use with svg-react-loader in Webpack.
16
+ // The svg will be imported as a ReactElement
17
+
18
+ // declare module '*.svg' {
19
+ // import { HTMLAttributes } from 'react';
20
+ // const value: React.ComponentType<HTMLAttributes<SVGElement>>;
21
+ // export default value;
22
+ // }
23
+
24
+ // as an alternative to importing svgs one at a time, you can do a glob import
25
+ // using `context.requires`. This is a Webpack only extension. Implementation:
26
+
27
+ // import { PathExt } from '@jupyterlab/coreutils';
28
+ //
29
+ // /**
30
+ // * Import all svgs from a directory. The input argument should be
31
+ // * of the form `require.context('raw-loader!<path>', true, /\.svg$/)`.
32
+ // * <path> should be a string literal path, as this is needed by `require`.
33
+ // */
34
+ // export function importSvgs(r: any, exclude: string[] = []): IModel[] {
35
+ // const excset = new Set(exclude);
36
+ //
37
+ // return r.keys().reduce((svgs: IModel[], item: string, index: number) => {
38
+ // const name = PathExt.stem(item);
39
+ // if (!excset.has(name)) {
40
+ // svgs.push({ name: name, svg: r(item).default });
41
+ // }
42
+ // return svgs;
43
+ // }, []);
44
+ // }
45
+ //
46
+ // // create the array of default icon models
47
+ // let icons: IModel[];
48
+ // try {
49
+ // // require.context is supplied by Webpack, and doesn't play nice with jest
50
+ // icons = importSvgs(
51
+ // require.context('raw-loader!../../style/icons', true, /\.svg$/),
52
+ // ['bad', 'blank']
53
+ // );
54
+ // } catch (e) {
55
+ // // fallback for jest tests
56
+ // icons = [];
57
+ // }
58
+ // export const defaultIcons: ReadonlyArray<IModel> = icons;
package/src/tokens.ts ADDED
@@ -0,0 +1,68 @@
1
+ // Copyright (c) Jupyter Development Team.
2
+ // Distributed under the terms of the Modified BSD License.
3
+
4
+ import { Token } from '@lumino/coreutils';
5
+ import type { Field, Widget } from '@rjsf/utils';
6
+
7
+ /**
8
+ * Form renderer interface.
9
+ */
10
+ export interface IFormRenderer {
11
+ /**
12
+ * A React component with properties FieldProps.
13
+ */
14
+ fieldRenderer?: Field;
15
+
16
+ /**
17
+ * A React component with properties WidgetProps.
18
+ */
19
+ widgetRenderer?: Widget;
20
+ }
21
+
22
+ /**
23
+ * A registry for rendering fields used in the FormEditor component.
24
+ */
25
+ export interface IFormRendererRegistry {
26
+ /**
27
+ * Adds a renderer for a given property of a given settings plugin.
28
+ *
29
+ * The id must follow that structure `<ISettingRegistry.IPlugin.id>.<propertyName>`
30
+ *
31
+ * @param id - Unique ID for the given renderer.
32
+ * @param renderer - A renderer interfacing IFormRenderer.
33
+ */
34
+ addRenderer: (id: string, renderer: IFormRenderer) => void;
35
+
36
+ /**
37
+ * Returns the component for the given id
38
+ * @param id - The unique id for the component.
39
+ * @returns - A component interfacing IFormComponent.
40
+ */
41
+ getRenderer: (id: string) => IFormRenderer;
42
+
43
+ /**
44
+ * Returns all registered renderers in dictionary form.
45
+ * @returns - A dictionary that maps an id to a renderer.
46
+ */
47
+ renderers: { [id: string]: IFormRenderer };
48
+ }
49
+
50
+ /**
51
+ * The token for the form component registry.
52
+ */
53
+ export const IFormRendererRegistry = new Token<IFormRendererRegistry>(
54
+ '@jupyterlab/ui-components:IFormRendererRegistry'
55
+ );
56
+
57
+ /**
58
+ * Placeholder for future icon manager class to assist with
59
+ * overriding/replacing particular sets of icons
60
+ */
61
+ export interface ILabIconManager {}
62
+
63
+ /**
64
+ * The ILabIconManager token.
65
+ */
66
+ export const ILabIconManager = new Token<ILabIconManager>(
67
+ '@jupyterlab/ui-components:ILabIconManager'
68
+ );