UNPKG

2.18 kBPlain TextView Raw
1// Copyright (c) Jupyter Development Team.
2// Distributed under the terms of the Modified BSD License.
3/**
4 * @packageDocumentation
5 * @module apputils
6 */
7import { Toolbar as UIToolbar } from '@jupyterlab/ui-components';
8import { Widget } from '@lumino/widgets';
9import { Toolbar as ApputilsToolbar } from './toolbar';
10
11/**
12 * @deprecated since v4
13 * These widgets are now in @jupyterlab/ui-components
14 */
15export {
16 addCommandToolbarButtonClass,
17 addToolbarButtonClass,
18 Collapser as Collapse,
19 CommandToolbarButton,
20 CommandToolbarButtonComponent,
21 IFrame,
22 IUseSignalProps,
23 IUseSignalState,
24 HoverBox,
25 ReactWidget,
26 Spinner,
27 Styling,
28 ToolbarButton,
29 ToolbarButtonComponent,
30 UseSignal,
31 VDomModel,
32 VDomRenderer
33} from '@jupyterlab/ui-components';
34
35export * from './clipboard';
36export * from './commandlinker';
37export * from './commandpalette';
38export * from './dialog';
39export * from './domutils';
40export * from './inputdialog';
41export * from './kernelstatuses';
42export * from './mainareawidget';
43export * from './menufactory';
44export * from './notification';
45export * from './printing';
46export * from './runningSessions';
47export * from './sanitizer';
48export * from './semanticCommand';
49export * from './sessioncontext';
50export * from './thememanager';
51export * from './tokens';
52export {
53 ToolbarWidgetRegistry,
54 createDefaultFactory,
55 createToolbarFactory,
56 setToolbar
57} from './toolbar';
58export * from './widgettracker';
59export * from './windowresolver';
60
61// Merge Toolbar namespace to preserve API
62/**
63 * @deprecated since v4
64 * This class is in @jupyterlab/ui-components
65 */
66export class Toolbar<T extends Widget = Widget> extends UIToolbar<T> {}
67
68export namespace Toolbar {
69 export const createInterruptButton = ApputilsToolbar.createInterruptButton;
70 export const createKernelNameItem = ApputilsToolbar.createKernelNameItem;
71 export const createKernelStatusItem = ApputilsToolbar.createKernelStatusItem;
72 export const createRestartButton = ApputilsToolbar.createRestartButton;
73 /**
74 * @deprecated since v4
75 * This helper function is in @jupyterlab/ui-components
76 */
77 export const createSpacerItem = UIToolbar.createSpacerItem;
78}