@jupyterlab/ui-components 4.0.0-alpha.31 → 4.0.0-alpha.32

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.
@@ -0,0 +1,59 @@
1
+ import { Token } from '@lumino/coreutils';
2
+ import type { Widget } from '@rjsf/core';
3
+ /**
4
+ * A registry for rendering widget (used in the metadataform-extension).
5
+ */
6
+ export declare class FormWidgetRegistry implements IFormWidgetRegistry {
7
+ /**
8
+ * Adds a Widget renderer for a given id - if the id is already in use, returns false.
9
+ * Otherwise, returns true.
10
+ * @param id - Unique ID for the given renderer.
11
+ * @param renderer - A function that takes props and returns a rendered widget.
12
+ * @returns - Whether the renderer was added successfully. False if the id is already in use.
13
+ */
14
+ addRenderer(id: string, renderer: Widget): boolean;
15
+ /**
16
+ * Returns the formWidget for the given id
17
+ * @param id - The unique id for the formWidget.
18
+ * @returns - A function that takes props and returns a rendered widget.
19
+ */
20
+ getRenderer(id: string): Widget;
21
+ /**
22
+ * Returns all registered renderer in dictionary form.
23
+ * @returns - A dictionary that maps an id to a rendered Widget.
24
+ */
25
+ get renderers(): {
26
+ [id: string]: Widget;
27
+ };
28
+ private _renderers;
29
+ }
30
+ /**
31
+ * A registry for rendering Widgets (used in the metadataform-extension).
32
+ */
33
+ export interface IFormWidgetRegistry {
34
+ /**
35
+ * Adds a Widget renderer for a given id - if the id is already in use, returns false.
36
+ * Otherwise, returns true.
37
+ * @param id - Unique ID for the given renderer.
38
+ * @param renderer - A function that takes props and returns a rendered widget.
39
+ * @returns - Whether the renderer was added successfully. False if the id is already in use.
40
+ */
41
+ addRenderer: (id: string, renderer: Widget) => void;
42
+ /**
43
+ * Returns the formWidget for the given id
44
+ * @param id - The unique id for the formWidget.
45
+ * @returns - A function that takes props and returns a rendered widget.
46
+ */
47
+ getRenderer: (id: string) => Widget;
48
+ /**
49
+ * Returns all registered renderer in dictionary form.
50
+ * @returns - A dictionary that maps an id to a rendered Widget.
51
+ */
52
+ renderers: {
53
+ [id: string]: Widget;
54
+ };
55
+ }
56
+ /**
57
+ * The token of the registry.
58
+ */
59
+ export declare const IFormWidgetRegistry: Token<IFormWidgetRegistry>;
@@ -0,0 +1,47 @@
1
+ /* -----------------------------------------------------------------------------
2
+ | Copyright (c) Jupyter Development Team.
3
+ | Distributed under the terms of the Modified BSD License.
4
+ |----------------------------------------------------------------------------*/
5
+ import { Token } from '@lumino/coreutils';
6
+ /**
7
+ * A registry for rendering widget (used in the metadataform-extension).
8
+ */
9
+ export class FormWidgetRegistry {
10
+ constructor() {
11
+ this._renderers = {};
12
+ }
13
+ /**
14
+ * Adds a Widget renderer for a given id - if the id is already in use, returns false.
15
+ * Otherwise, returns true.
16
+ * @param id - Unique ID for the given renderer.
17
+ * @param renderer - A function that takes props and returns a rendered widget.
18
+ * @returns - Whether the renderer was added successfully. False if the id is already in use.
19
+ */
20
+ addRenderer(id, renderer) {
21
+ if (this._renderers[id]) {
22
+ return false;
23
+ }
24
+ this._renderers[id] = renderer;
25
+ return true;
26
+ }
27
+ /**
28
+ * Returns the formWidget for the given id
29
+ * @param id - The unique id for the formWidget.
30
+ * @returns - A function that takes props and returns a rendered widget.
31
+ */
32
+ getRenderer(id) {
33
+ return this._renderers[id];
34
+ }
35
+ /**
36
+ * Returns all registered renderer in dictionary form.
37
+ * @returns - A dictionary that maps an id to a rendered Widget.
38
+ */
39
+ get renderers() {
40
+ return this._renderers;
41
+ }
42
+ }
43
+ /**
44
+ * The token of the registry.
45
+ */
46
+ export const IFormWidgetRegistry = new Token('@jupyterlab/ui-components:IFormWidgetRegistry');
47
+ //# sourceMappingURL=FormWidgetRegistry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormWidgetRegistry.js","sourceRoot":"","sources":["../src/FormWidgetRegistry.tsx"],"names":[],"mappings":"AAAA;;;+EAG+E;AAE/E,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C;;GAEG;AACH,MAAM,OAAO,kBAAkB;IAA/B;QAiCU,eAAU,GAA6B,EAAE,CAAC;IACpD,CAAC;IAjCC;;;;;;OAMG;IACH,WAAW,CAAC,EAAU,EAAE,QAAgB;QACtC,IAAI,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;YACvB,OAAO,KAAK,CAAC;SACd;QACD,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;OAIG;IACH,WAAW,CAAC,EAAU;QACpB,OAAO,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACH,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CAGF;AA6BD;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,KAAK,CAC1C,+CAA+C,CAChD,CAAC"}
@@ -23,5 +23,5 @@ export declare namespace Styling {
23
23
  /**
24
24
  * Wrap a select node.
25
25
  */
26
- function wrapSelect(node: HTMLSelectElement): HTMLElement;
26
+ function wrapSelect(node: HTMLSelectElement, multiple?: boolean): HTMLElement;
27
27
  }
@@ -34,7 +34,8 @@ export var Styling;
34
34
  node.classList.add('jp-mod-styled');
35
35
  }
36
36
  if (node.localName === 'select') {
37
- wrapSelect(node);
37
+ const multiple = node.hasAttribute('multiple');
38
+ wrapSelect(node, multiple);
38
39
  }
39
40
  const nodes = node.getElementsByTagName(tagName);
40
41
  for (let i = 0; i < nodes.length; i++) {
@@ -44,7 +45,8 @@ export var Styling;
44
45
  child.classList.add(className);
45
46
  }
46
47
  if (tagName === 'select') {
47
- wrapSelect(child);
48
+ const multiple = child.hasAttribute('multiple');
49
+ wrapSelect(child, multiple);
48
50
  }
49
51
  }
50
52
  }
@@ -52,7 +54,7 @@ export var Styling;
52
54
  /**
53
55
  * Wrap a select node.
54
56
  */
55
- function wrapSelect(node) {
57
+ function wrapSelect(node, multiple) {
56
58
  const wrapper = document.createElement('div');
57
59
  wrapper.classList.add('jp-select-wrapper');
58
60
  node.addEventListener('focus', Private.onFocus);
@@ -62,14 +64,19 @@ export var Styling;
62
64
  node.parentElement.replaceChild(wrapper, node);
63
65
  }
64
66
  wrapper.appendChild(node);
65
- // add the icon node
66
- wrapper.appendChild(caretDownEmptyIcon.element({
67
- tag: 'span',
68
- stylesheet: 'select',
69
- right: '8px',
70
- top: '5px',
71
- width: '18px'
72
- }));
67
+ if (multiple) {
68
+ wrapper.classList.add('multiple');
69
+ }
70
+ else {
71
+ // add the icon node
72
+ wrapper.appendChild(caretDownEmptyIcon.element({
73
+ tag: 'span',
74
+ stylesheet: 'select',
75
+ right: '8px',
76
+ top: '5px',
77
+ width: '18px'
78
+ }));
79
+ }
73
80
  return wrapper;
74
81
  }
75
82
  Styling.wrapSelect = wrapSelect;
@@ -1 +1 @@
1
- {"version":3,"file":"styling.js","sourceRoot":"","sources":["../../src/components/styling.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C;;GAEG;AACH,MAAM,KAAW,OAAO,CA2EvB;AA3ED,WAAiB,OAAO;IACtB;;;;;;OAMG;IACH,SAAgB,SAAS,CAAC,IAAiB,EAAE,SAAS,GAAG,EAAE;QACzD,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;QAC1C,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;QAC5C,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QACzC,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC5C,CAAC;IALe,iBAAS,YAKxB,CAAA;IAED;;;;;;;;OAQG;IACH,SAAgB,cAAc,CAC5B,IAAiB,EACjB,OAAe,EACf,SAAS,GAAG,EAAE;QAEd,IAAI,IAAI,CAAC,SAAS,KAAK,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aAAM;YACL,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;SAC3C;IACH,CAAC;IAXe,eAAO,UAWtB,CAAA;AACH,CAAC,EAhBS,OAAO,KAAP,OAAO,QAgBhB"}
@@ -31,6 +31,7 @@ export declare const downloadIcon: LabIcon;
31
31
  export declare const duplicateIcon: LabIcon;
32
32
  export declare const editIcon: LabIcon;
33
33
  export declare const ellipsesIcon: LabIcon;
34
+ export declare const errorIcon: LabIcon;
34
35
  export declare const expandAllIcon: LabIcon;
35
36
  export declare const extensionIcon: LabIcon;
36
37
  export declare const fastForwardIcon: LabIcon;
@@ -37,6 +37,7 @@ import downloadSvgstr from '../../style/icons/toolbar/download.svg';
37
37
  import duplicateSvgstr from '../../style/icons/toolbar/duplicate.svg';
38
38
  import editSvgstr from '../../style/icons/toolbar/edit.svg';
39
39
  import ellipsesSvgstr from '../../style/icons/toolbar/ellipses.svg';
40
+ import errorSvgstr from '../../style/icons/error.svg';
40
41
  import expandAllSvgstr from '../../style/icons/toolbar/expand-all.svg';
41
42
  import extensionSvgstr from '../../style/icons/sidebar/extension.svg';
42
43
  import fastForwardSvgstr from '../../style/icons/toolbar/fast-forward.svg';
@@ -133,6 +134,7 @@ export const downloadIcon = new LabIcon({ name: 'ui-components:download', svgstr
133
134
  export const duplicateIcon = new LabIcon({ name: 'ui-components:duplicate', svgstr: duplicateSvgstr });
134
135
  export const editIcon = new LabIcon({ name: 'ui-components:edit', svgstr: editSvgstr });
135
136
  export const ellipsesIcon = new LabIcon({ name: 'ui-components:ellipses', svgstr: ellipsesSvgstr });
137
+ export const errorIcon = new LabIcon({ name: 'ui-components:error', svgstr: errorSvgstr });
136
138
  export const expandAllIcon = new LabIcon({ name: 'ui-components:expand-all', svgstr: expandAllSvgstr });
137
139
  export const extensionIcon = new LabIcon({ name: 'ui-components:extension', svgstr: extensionSvgstr });
138
140
  export const fastForwardIcon = new LabIcon({ name: 'ui-components:fast-forward', svgstr: fastForwardSvg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AE,IAAI,EAAE,yBAAyB,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;AACrG,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,OAAO,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;AACjG,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,OAAO,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;AACxF,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,OAAO,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;AACxF,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,OAAO,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;AAC3F,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,OAAO,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;AACxF,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,OAAO,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC"}
package/lib/index.d.ts CHANGED
@@ -8,3 +8,5 @@ export * from './hoverbox';
8
8
  export * from './tokens';
9
9
  export * from './utils';
10
10
  export * from './FormComponentRegistry';
11
+ export * from './FormWidgetRegistry';
12
+ export * from './rjsfTemplates';
package/lib/index.js CHANGED
@@ -10,4 +10,6 @@ export * from './hoverbox';
10
10
  export * from './tokens';
11
11
  export * from './utils';
12
12
  export * from './FormComponentRegistry';
13
+ export * from './FormWidgetRegistry';
14
+ export * from './rjsfTemplates';
13
15
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,197 @@
1
+ import React from 'react';
2
+ import { ArrayFieldTemplateProps, FieldTemplateProps, ObjectFieldTemplateProps } from '@rjsf/core';
3
+ import { ITranslator } from '@jupyterlab/translation';
4
+ /**
5
+ * React JSON schema form templates namespace.
6
+ */
7
+ export declare namespace RJSFTemplates {
8
+ /**
9
+ * Properties for React JSON schema form's templates factory.
10
+ */
11
+ interface IProps {
12
+ /**
13
+ * Whether the form is compact or not.
14
+ * Currently the compact mode is used for metadata-form,
15
+ * and the normal mode for settings-editor.
16
+ */
17
+ compact?: boolean;
18
+ /**
19
+ * Whether to display if the current value is not the default one.
20
+ */
21
+ showModifiedFromDefault?: boolean;
22
+ /**
23
+ * Translator for button text.
24
+ */
25
+ translator?: ITranslator;
26
+ }
27
+ /**
28
+ * Properties for React JSON schema form's field template.
29
+ */
30
+ interface IFieldProps {
31
+ /**
32
+ * Whether to display if the current value is not the default one.
33
+ */
34
+ showModifiedFromDefault?: boolean;
35
+ /**
36
+ * Translator for button text.
37
+ */
38
+ translator?: ITranslator;
39
+ /**
40
+ * Whether the field is in compact mode or not.
41
+ * In compact mode :
42
+ * - the title and description are displayed together
43
+ * - the input field is 100% wide (supposed to be in a tight container)
44
+ */
45
+ compact?: boolean;
46
+ }
47
+ /**
48
+ * Properties for React JSON schema form's container template (array and object).
49
+ */
50
+ interface IContainerProps {
51
+ /**
52
+ * Translator for button text.
53
+ */
54
+ translator?: ITranslator;
55
+ /**
56
+ * Array operation button style.
57
+ */
58
+ buttonStyle?: 'icons' | 'text';
59
+ /**
60
+ * Whether the container is in compact mode or not.
61
+ * In compact mode the title and description are displayed more compactness.
62
+ */
63
+ compact?: boolean;
64
+ }
65
+ /**
66
+ * Properties of the button to move an item.
67
+ */
68
+ interface IMoveButtonProps {
69
+ /**
70
+ * Item index to move with this button.
71
+ */
72
+ item: ArrayFieldTemplateProps['items'][number];
73
+ /**
74
+ * Direction in which to move the item.
75
+ */
76
+ direction: 'up' | 'down';
77
+ /**
78
+ * Button style.
79
+ */
80
+ buttonStyle?: 'icons' | 'text';
81
+ /**
82
+ * Translator for button text.
83
+ */
84
+ translator?: ITranslator;
85
+ }
86
+ /**
87
+ * Properties of the button to drop an item.
88
+ */
89
+ interface IDropButtonProps {
90
+ /**
91
+ * Item index to drop with this button.
92
+ */
93
+ item: ArrayFieldTemplateProps['items'][number];
94
+ /**
95
+ * Button style.
96
+ */
97
+ buttonStyle?: 'icons' | 'text';
98
+ /**
99
+ * Translator for button text.
100
+ */
101
+ translator?: ITranslator;
102
+ }
103
+ /**
104
+ * Properties of the button to add an item.
105
+ */
106
+ interface IAddButtonProps {
107
+ /**
108
+ * Function to call to add an item.
109
+ */
110
+ onAddClick: ArrayFieldTemplateProps['onAddClick'];
111
+ /**
112
+ * Button style.
113
+ */
114
+ buttonStyle?: 'icons' | 'text';
115
+ /**
116
+ * Translator for button text.
117
+ */
118
+ translator?: ITranslator;
119
+ }
120
+ }
121
+ /**
122
+ * Button to move an item.
123
+ *
124
+ * @returns - the button as a react element.
125
+ */
126
+ export declare const MoveButton: (props: RJSFTemplates.IMoveButtonProps) => JSX.Element;
127
+ /**
128
+ * Button to drop an item.
129
+ *
130
+ * @returns - the button as a react element.
131
+ */
132
+ export declare const DropButton: (props: RJSFTemplates.IDropButtonProps) => JSX.Element;
133
+ /**
134
+ * Button to add an item.
135
+ *
136
+ * @returns - the button as a react element.
137
+ */
138
+ export declare const AddButton: (props: RJSFTemplates.IAddButtonProps) => JSX.Element;
139
+ /**
140
+ * React JSON schema form's array template.
141
+ */
142
+ export declare class RJSFArrayTemplate {
143
+ /**
144
+ * Create a new array template object.
145
+ *
146
+ * @param options - the container template options.
147
+ */
148
+ constructor(options?: RJSFTemplates.IContainerProps);
149
+ get template(): React.FC<ArrayFieldTemplateProps>;
150
+ private _translator;
151
+ private _buttonStyle;
152
+ private _compact;
153
+ }
154
+ /**
155
+ * React JSON schema form's object template.
156
+ */
157
+ export declare class RJSFObjectTemplate {
158
+ /**
159
+ * Create a new object template object.
160
+ *
161
+ * @param options - the container template options.
162
+ */
163
+ constructor(options?: RJSFTemplates.IContainerProps);
164
+ get template(): React.FC<ObjectFieldTemplateProps>;
165
+ private _translator;
166
+ private _buttonStyle;
167
+ private _compact;
168
+ }
169
+ /**
170
+ * Custom field template for React JSON-schema form.
171
+ *
172
+ */
173
+ export declare class RJSFFieldTemplate {
174
+ /**
175
+ * Create a new field template object.
176
+ *
177
+ * @param options - the field template options.
178
+ */
179
+ constructor(options?: RJSFTemplates.IFieldProps);
180
+ get template(): React.FC<FieldTemplateProps>;
181
+ private _showModifiedFromDefault;
182
+ private _translator;
183
+ private _compact;
184
+ }
185
+ /**
186
+ * A templates factory for react JSON schema form.
187
+ * It includes a field template, an array template and an object template.
188
+ */
189
+ export declare class RJSFTemplatesFactory {
190
+ constructor(options: RJSFTemplates.IProps);
191
+ get fieldTemplate(): React.FC<FieldTemplateProps>;
192
+ get arrayTemplate(): React.FC<ArrayFieldTemplateProps>;
193
+ get objectTemplate(): React.FC<ObjectFieldTemplateProps>;
194
+ private _fieldTemplate;
195
+ private _arrayTemplate;
196
+ private _objectTemplate;
197
+ }
@@ -0,0 +1,269 @@
1
+ /*
2
+ * Copyright (c) Jupyter Development Team.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ import React from 'react';
6
+ import { utils } from '@rjsf/core';
7
+ import { addIcon, caretDownIcon, caretUpIcon, closeIcon, LabIcon } from './icon';
8
+ import { JSONExt } from '@lumino/coreutils';
9
+ import { reduce } from '@lumino/algorithm';
10
+ /**
11
+ * Button to move an item.
12
+ *
13
+ * @returns - the button as a react element.
14
+ */
15
+ export const MoveButton = (props) => {
16
+ var _a;
17
+ const trans = (_a = props.translator) === null || _a === void 0 ? void 0 : _a.load('jupyterlab');
18
+ let buttonContent;
19
+ /**
20
+ * Whether the button is disabled or not.
21
+ */
22
+ const disabled = () => {
23
+ if (props.direction === 'up') {
24
+ return !props.item.hasMoveUp;
25
+ }
26
+ else {
27
+ return !props.item.hasMoveDown;
28
+ }
29
+ };
30
+ if (props.buttonStyle === 'icons') {
31
+ buttonContent = (React.createElement(LabIcon.resolveReact, { icon: props.direction === 'up' ? caretUpIcon : caretDownIcon, tag: "span", elementSize: "xlarge", elementPosition: "center" }));
32
+ }
33
+ else {
34
+ buttonContent =
35
+ props.direction === 'up'
36
+ ? (trans === null || trans === void 0 ? void 0 : trans.__('Move up')) || 'Move up'
37
+ : (trans === null || trans === void 0 ? void 0 : trans.__('Move down')) || 'Move down';
38
+ }
39
+ const moveTo = props.direction === 'up' ? props.item.index - 1 : props.item.index + 1;
40
+ const button = (React.createElement("button", { className: "jp-mod-styled jp-mod-reject jp-ArrayOperationsButton", onClick: props.item.onReorderClick(props.item.index, moveTo), disabled: disabled() }, buttonContent));
41
+ return button;
42
+ };
43
+ /**
44
+ * Button to drop an item.
45
+ *
46
+ * @returns - the button as a react element.
47
+ */
48
+ export const DropButton = (props) => {
49
+ var _a;
50
+ const trans = (_a = props.translator) === null || _a === void 0 ? void 0 : _a.load('jupyterlab');
51
+ let buttonContent;
52
+ if (props.buttonStyle === 'icons') {
53
+ buttonContent = (React.createElement(LabIcon.resolveReact, { icon: closeIcon, tag: "span", elementSize: "xlarge", elementPosition: "center" }));
54
+ }
55
+ else {
56
+ buttonContent = (trans === null || trans === void 0 ? void 0 : trans.__('Remove')) || 'Remove';
57
+ }
58
+ const button = (React.createElement("button", { className: "jp-mod-styled jp-mod-warn jp-ArrayOperationsButton", onClick: props.item.onDropIndexClick(props.item.index) }, buttonContent));
59
+ return button;
60
+ };
61
+ /**
62
+ * Button to add an item.
63
+ *
64
+ * @returns - the button as a react element.
65
+ */
66
+ export const AddButton = (props) => {
67
+ var _a;
68
+ const trans = (_a = props.translator) === null || _a === void 0 ? void 0 : _a.load('jupyterlab');
69
+ let buttonContent;
70
+ if (props.buttonStyle === 'icons') {
71
+ buttonContent = (React.createElement(LabIcon.resolveReact, { icon: addIcon, tag: "span", elementSize: "xlarge", elementPosition: "center" }));
72
+ }
73
+ else {
74
+ buttonContent = (trans === null || trans === void 0 ? void 0 : trans.__('Add')) || 'Add';
75
+ }
76
+ const button = (React.createElement("button", { className: "jp-mod-styled jp-mod-reject jp-ArrayOperationsButton", onClick: props.onAddClick }, buttonContent));
77
+ return button;
78
+ };
79
+ /**
80
+ * React JSON schema form's array template.
81
+ */
82
+ export class RJSFArrayTemplate {
83
+ /**
84
+ * Create a new array template object.
85
+ *
86
+ * @param options - the container template options.
87
+ */
88
+ constructor(options = {}) {
89
+ this._translator = options.translator;
90
+ this._buttonStyle = options.buttonStyle || 'text';
91
+ this._compact = options.compact || false;
92
+ }
93
+ get template() {
94
+ const factory = (props) => {
95
+ var _a;
96
+ return (React.createElement("div", { className: props.className },
97
+ this._compact ? (React.createElement("div", { className: "jp-FormGroup-compactTitle" },
98
+ React.createElement("div", { className: "jp-FormGroup-fieldLabel jp-FormGroup-contentItem", id: `${props.idSchema.$id}__title` }, props.title || ''),
99
+ React.createElement("div", { className: "jp-FormGroup-description", id: `${props.idSchema.$id}-description` }, props.schema.description || ''))) : (React.createElement(React.Fragment, null,
100
+ props.title && (React.createElement(props.TitleField, { title: props.title, required: props.required, id: `${props.idSchema.$id}-title` })),
101
+ React.createElement(props.DescriptionField, { id: `${props.idSchema.$id}-description`, description: (_a = props.schema.description) !== null && _a !== void 0 ? _a : '' }))),
102
+ props.items.map(item => {
103
+ return (React.createElement("div", { key: item.key, className: item.className },
104
+ item.children,
105
+ React.createElement("div", { className: "jp-ArrayOperations" },
106
+ React.createElement(MoveButton, { buttonStyle: this._buttonStyle, translator: this._translator, item: item, direction: "up" }),
107
+ React.createElement(MoveButton, { buttonStyle: this._buttonStyle, translator: this._translator, item: item, direction: "down" }),
108
+ React.createElement(DropButton, { buttonStyle: this._buttonStyle, translator: this._translator, item: item }))));
109
+ }),
110
+ props.canAdd && (React.createElement(AddButton, { onAddClick: props.onAddClick, buttonStyle: this._buttonStyle, translator: this._translator }))));
111
+ };
112
+ factory.displayName = 'JupyterLabArrayTemplate';
113
+ return factory;
114
+ }
115
+ }
116
+ /**
117
+ * React JSON schema form's object template.
118
+ */
119
+ export class RJSFObjectTemplate {
120
+ /**
121
+ * Create a new object template object.
122
+ *
123
+ * @param options - the container template options.
124
+ */
125
+ constructor(options = {}) {
126
+ this._translator = options.translator;
127
+ this._buttonStyle = options.buttonStyle || 'text';
128
+ this._compact = options.compact || false;
129
+ }
130
+ get template() {
131
+ const factory = (props) => {
132
+ var _a;
133
+ return (React.createElement("fieldset", { id: props.idSchema.$id },
134
+ this._compact ? (React.createElement("div", { className: "jp-FormGroup-compactTitle" },
135
+ React.createElement("div", { className: "jp-FormGroup-fieldLabel jp-FormGroup-contentItem", id: `${props.idSchema.$id}__title` }, props.title || ''),
136
+ React.createElement("div", { className: "jp-FormGroup-description", id: `${props.idSchema.$id}__description` }, props.schema.description || ''))) : (React.createElement(React.Fragment, null,
137
+ (props.title || props.uiSchema['ui:title']) && (React.createElement(props.TitleField, { id: `${props.idSchema.$id}__title`, title: props.title || props.uiSchema['ui:title'] || '', required: props.required })),
138
+ React.createElement(props.DescriptionField, { id: `${props.idSchema.$id}__description`, description: (_a = props.schema.description) !== null && _a !== void 0 ? _a : '' }))),
139
+ props.properties.map(property => property.content),
140
+ utils.canExpand(props.schema, props.uiSchema, props.formData) && (React.createElement(AddButton, { onAddClick: props.onAddClick(props.schema), buttonStyle: this._buttonStyle, translator: this._translator }))));
141
+ };
142
+ factory.displayName = 'JupyterLabObjectTemplate';
143
+ return factory;
144
+ }
145
+ }
146
+ /**
147
+ * Custom field template for React JSON-schema form.
148
+ *
149
+ */
150
+ export class RJSFFieldTemplate {
151
+ /**
152
+ * Create a new field template object.
153
+ *
154
+ * @param options - the field template options.
155
+ */
156
+ constructor(options = {}) {
157
+ var _a, _b;
158
+ this._showModifiedFromDefault = (_a = options.showModifiedFromDefault) !== null && _a !== void 0 ? _a : false;
159
+ this._translator = options.translator;
160
+ this._compact = (_b = options.compact) !== null && _b !== void 0 ? _b : false;
161
+ }
162
+ get template() {
163
+ const factory = (props) => {
164
+ var _a, _b, _c;
165
+ const trans = (_a = this._translator) === null || _a === void 0 ? void 0 : _a.load('jupyterlab');
166
+ let isModified = false;
167
+ const { formData, schema, label, displayLabel, id, formContext, errors, rawErrors, children, onKeyChange, onDropPropertyClick } = props;
168
+ const schemaIds = id.split('_');
169
+ schemaIds.shift();
170
+ const schemaId = schemaIds.join('.');
171
+ if (this._showModifiedFromDefault) {
172
+ /**
173
+ * Determine if the field has been modified.
174
+ * Schema Id is formatted as 'root_<field name>.<nexted field name>'
175
+ * This logic parses out the field name to find the default value
176
+ * before determining if the field has been modified.
177
+ */
178
+ let defaultValue;
179
+ if (schemaIds.length === 1) {
180
+ defaultValue = formContext.settings.default(schemaId);
181
+ }
182
+ else if (schemaIds.length > 1) {
183
+ const allDefaultsForObject = {};
184
+ allDefaultsForObject[schemaIds[0]] = formContext.settings.default(schemaIds[0]);
185
+ defaultValue = reduce(schemaIds, (acc, val, i) => {
186
+ return acc === null || acc === void 0 ? void 0 : acc[val];
187
+ }, allDefaultsForObject);
188
+ }
189
+ isModified =
190
+ schemaId !== '' &&
191
+ formData !== undefined &&
192
+ defaultValue !== undefined &&
193
+ !schema.properties &&
194
+ schema.type !== 'array' &&
195
+ !JSONExt.deepEqual(formData, defaultValue);
196
+ }
197
+ const isRoot = schemaId === '';
198
+ const needsDescription = !isRoot &&
199
+ schema.type != 'object' &&
200
+ id !=
201
+ 'jp-SettingsEditor-@jupyterlab/shortcuts-extension:shortcuts_shortcuts';
202
+ // While we can implement "remove" button for array items in array template,
203
+ // object templates do not provide a way to do this; instead we need to add
204
+ // buttons here (and first check if the field can be removed = is additional).
205
+ const isAdditional = schema.hasOwnProperty(utils.ADDITIONAL_PROPERTY_FLAG);
206
+ const isItem = !(schema.type === 'object' || schema.type === 'array');
207
+ return (React.createElement("div", { className: `form-group ${displayLabel || schema.type === 'boolean' ? 'small-field' : ''}` },
208
+ // Only show the modified indicator if there are no errors
209
+ isModified && !rawErrors && React.createElement("div", { className: "jp-modifiedIndicator" }),
210
+ // Shows a red indicator for fields that have validation errors
211
+ rawErrors && (React.createElement("div", { className: "jp-modifiedIndicator jp-errorIndicator" })),
212
+ React.createElement("div", { className: `jp-FormGroup-content ${this._compact
213
+ ? 'jp-FormGroup-contentCompact'
214
+ : 'jp-FormGroup-contentNormal'}` },
215
+ isItem && displayLabel && !isRoot && label && !isAdditional ? (this._compact ? (React.createElement("div", { className: "jp-FormGroup-compactTitle" },
216
+ React.createElement("div", { className: "jp-FormGroup-fieldLabel jp-FormGroup-contentItem" }, label),
217
+ isItem && schema.description && needsDescription && (React.createElement("div", { className: "jp-FormGroup-description" }, schema.description)))) : (React.createElement("h3", { className: "jp-FormGroup-fieldLabel jp-FormGroup-contentItem" }, label))) : (React.createElement(React.Fragment, null)),
218
+ isAdditional && (React.createElement("input", { className: "jp-FormGroup-contentItem jp-mod-styled", type: "text", onBlur: event => onKeyChange(event.target.value), defaultValue: label })),
219
+ React.createElement("div", { className: `${isRoot
220
+ ? 'jp-root'
221
+ : schema.type === 'object'
222
+ ? 'jp-objectFieldWrapper'
223
+ : schema.type === 'array'
224
+ ? 'jp-arrayFieldWrapper'
225
+ : 'jp-inputFieldWrapper jp-FormGroup-contentItem'}` }, children),
226
+ isAdditional && (React.createElement("button", { className: "jp-FormGroup-contentItem jp-mod-styled jp-mod-warn jp-FormGroup-removeButton", onClick: onDropPropertyClick(label) }, (trans === null || trans === void 0 ? void 0 : trans.__('Remove')) || 'Remove')),
227
+ !this._compact && schema.description && needsDescription && (React.createElement("div", { className: "jp-FormGroup-description" }, schema.description)),
228
+ isModified && schema.default !== undefined && (React.createElement("div", { className: "jp-FormGroup-default" }, (trans === null || trans === void 0 ? void 0 : trans.__('Default: %1', (_b = schema.default) === null || _b === void 0 ? void 0 : _b.toLocaleString())) ||
229
+ `Default: ${(_c = schema.default) === null || _c === void 0 ? void 0 : _c.toLocaleString()}`)),
230
+ React.createElement("div", { className: "validationErrors" }, errors))));
231
+ };
232
+ factory.displayName = 'JupyterLabFieldTemplate';
233
+ return factory;
234
+ }
235
+ }
236
+ /**
237
+ * A templates factory for react JSON schema form.
238
+ * It includes a field template, an array template and an object template.
239
+ */
240
+ export class RJSFTemplatesFactory {
241
+ constructor(options) {
242
+ var _a, _b, _c, _d;
243
+ this._fieldTemplate = new RJSFFieldTemplate({
244
+ showModifiedFromDefault: (_a = options.showModifiedFromDefault) !== null && _a !== void 0 ? _a : false,
245
+ compact: (_b = options.compact) !== null && _b !== void 0 ? _b : false,
246
+ translator: options.translator
247
+ });
248
+ this._arrayTemplate = new RJSFArrayTemplate({
249
+ compact: (_c = options.compact) !== null && _c !== void 0 ? _c : false,
250
+ buttonStyle: options.compact ? 'icons' : 'text',
251
+ translator: options.translator
252
+ });
253
+ this._objectTemplate = new RJSFObjectTemplate({
254
+ compact: (_d = options.compact) !== null && _d !== void 0 ? _d : false,
255
+ buttonStyle: options.compact ? 'icons' : 'text',
256
+ translator: options.translator
257
+ });
258
+ }
259
+ get fieldTemplate() {
260
+ return this._fieldTemplate.template;
261
+ }
262
+ get arrayTemplate() {
263
+ return this._arrayTemplate.template;
264
+ }
265
+ get objectTemplate() {
266
+ return this._objectTemplate.template;
267
+ }
268
+ }
269
+ //# sourceMappingURL=rjsfTemplates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rjsfTemplates.js","sourceRoot":"","sources":["../src/rjsfTemplates.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIL,KAAK,EACN,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,OAAO,EACP,aAAa,EACb,WAAW,EACX,SAAS,EACT,OAAO,EACR,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AA6H3C;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,KAAqC,EACxB,EAAE;;IACf,MAAM,KAAK,GAAG,MAAA,KAAK,CAAC,UAAU,0CAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IACnD,IAAI,aAAmC,CAAC;IAExC;;OAEG;IACH,MAAM,QAAQ,GAAG,GAAG,EAAE;QACpB,IAAI,KAAK,CAAC,SAAS,KAAK,IAAI,EAAE;YAC5B,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;SAC9B;aAAM;YACL,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;SAChC;IACH,CAAC,CAAC;IAEF,IAAI,KAAK,CAAC,WAAW,KAAK,OAAO,EAAE;QACjC,aAAa,GAAG,CACd,oBAAC,OAAO,CAAC,YAAY,IACnB,IAAI,EAAE,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,EAC5D,GAAG,EAAC,MAAM,EACV,WAAW,EAAC,QAAQ,EACpB,eAAe,EAAC,QAAQ,GACxB,CACH,CAAC;KACH;SAAM;QACL,aAAa;YACX,KAAK,CA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a;QACf,OAAO,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC;IACtC,CAAC;IAED,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC;IACtC,CAAC;IAED,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC;IACvC,CAAC;CAKF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/ui-components",
3
- "version": "4.0.0-alpha.31",
3
+ "version": "4.0.0-alpha.32",
4
4
  "description": "JupyterLab - UI components written in React",
5
5
  "homepage": "https://github.com/jupyterlab/jupyterlab",
6
6
  "bugs": {
@@ -40,10 +40,10 @@
40
40
  "watch": "tsc -b --watch"
41
41
  },
42
42
  "dependencies": {
43
- "@jupyterlab/coreutils": "^6.0.0-alpha.16",
44
- "@jupyterlab/observables": "^5.0.0-alpha.16",
45
- "@jupyterlab/rendermime-interfaces": "^3.8.0-alpha.16",
46
- "@jupyterlab/translation": "^4.0.0-alpha.16",
43
+ "@jupyterlab/coreutils": "^6.0.0-alpha.17",
44
+ "@jupyterlab/observables": "^5.0.0-alpha.17",
45
+ "@jupyterlab/rendermime-interfaces": "^3.8.0-alpha.17",
46
+ "@jupyterlab/translation": "^4.0.0-alpha.17",
47
47
  "@lumino/algorithm": "^2.0.0-alpha.6",
48
48
  "@lumino/commands": "^2.0.0-alpha.6",
49
49
  "@lumino/coreutils": "^2.0.0-alpha.6",
@@ -60,16 +60,11 @@
60
60
  "typestyle": "^2.0.4"
61
61
  },
62
62
  "devDependencies": {
63
- "@babel/core": "^7.10.2",
64
- "@babel/preset-env": "^7.10.2",
65
- "@jupyterlab/testutils": "^4.0.0-alpha.16",
66
- "@types/jest": "^26.0.10",
63
+ "@jupyterlab/testing": "^4.0.0-alpha.17",
64
+ "@types/jest": "^29.2.0",
67
65
  "@types/react": "^17.0.0",
68
- "babel-loader": "^8.0.6",
69
- "jest": "^26.4.2",
70
66
  "rimraf": "~3.0.0",
71
- "svgo": "^2.8.0",
72
- "ts-jest": "^26.3.0",
67
+ "svgo": "^3.0.1",
73
68
  "typedoc": "~0.22.10",
74
69
  "typescript": "~4.7.3"
75
70
  },
package/style/base.css CHANGED
@@ -13,9 +13,10 @@
13
13
  @import './iconshover.css';
14
14
  @import './iframe.css';
15
15
  @import './hoverbox.css';
16
+ @import './rjsfTemplates.css';
17
+ @import './sidepanel.css';
16
18
  @import './spinner.css';
17
19
  @import './styling.css';
18
- @import './sidepanel.css';
19
20
  @import './switch.css';
20
21
  @import './toolbar.css';
21
22
  @import './windowedlist.css';
@@ -36,13 +37,6 @@ a:hover {
36
37
  color: unset;
37
38
  }
38
39
 
39
- /* Disable default focus outline */
40
- :focus {
41
- outline: unset;
42
- outline-offset: unset;
43
- -moz-outline-radius: unset;
44
- }
45
-
46
40
  /* Accessibility for links inside dialog box text */
47
41
  .jp-Dialog-content a {
48
42
  text-decoration: revert;
@@ -165,6 +159,7 @@ input::placeholder {
165
159
  color: var(--jp-ui-font-color0);
166
160
  display: block;
167
161
  font-size: var(--jp-ui-font-size1);
162
+ font-family: var(--jp-ui-font-family);
168
163
  height: 24px;
169
164
  line-height: 14px;
170
165
  padding: 0 25px 0 10px;
@@ -44,6 +44,7 @@
44
44
  --jp-icon-duplicate: url('icons/toolbar/duplicate.svg');
45
45
  --jp-icon-edit: url('icons/toolbar/edit.svg');
46
46
  --jp-icon-ellipses: url('icons/toolbar/ellipses.svg');
47
+ --jp-icon-error: url('icons/error.svg');
47
48
  --jp-icon-expand-all: url('icons/toolbar/expand-all.svg');
48
49
  --jp-icon-extension: url('icons/sidebar/extension.svg');
49
50
  --jp-icon-fast-forward: url('icons/toolbar/fast-forward.svg');
@@ -239,6 +240,10 @@
239
240
  background-image: var(--jp-icon-ellipses);
240
241
  }
241
242
 
243
+ .jp-ErrorIcon {
244
+ background-image: var(--jp-icon-error);
245
+ }
246
+
242
247
  .jp-ExpandAllIcon {
243
248
  background-image: var(--jp-icon-expand-all);
244
249
  }
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 24 24">
2
+ <g class="jp-icon3" fill="#616161"><circle cx="12" cy="19" r="2"/><path d="M10 3h4v12h-4z"/></g>
3
+ <path fill="none" d="M0 0h24v24H0z"/>
4
+ </svg>
package/style/icons.css CHANGED
@@ -206,39 +206,39 @@
206
206
  }
207
207
 
208
208
  .jp-jupyter-icon-color[fill] {
209
- fill: var(--jp-jupyter-icon-color);
209
+ fill: var(--jp-jupyter-icon-color, var(--jp-warn-color0));
210
210
  }
211
211
 
212
212
  .jp-notebook-icon-color[fill] {
213
- fill: var(--jp-notebook-icon-color);
213
+ fill: var(--jp-notebook-icon-color, var(--jp-warn-color0));
214
214
  }
215
215
 
216
216
  .jp-json-icon-color[fill] {
217
- fill: var(--jp-json-icon-color);
217
+ fill: var(--jp-json-icon-color, var(--jp-warn-color1));
218
218
  }
219
219
 
220
220
  .jp-console-icon-color[fill] {
221
- fill: var(--jp-console-icon-color);
221
+ fill: var(--jp-console-icon-color, white);
222
222
  }
223
223
 
224
224
  .jp-console-icon-background-color[fill] {
225
- fill: var(--jp-console-icon-background-color);
225
+ fill: var(--jp-console-icon-background-color, var(--jp-brand-color1));
226
226
  }
227
227
 
228
228
  .jp-terminal-icon-color[fill] {
229
- fill: var(--jp-terminal-icon-color);
229
+ fill: var(--jp-terminal-icon-color, var(--jp-layout-color2));
230
230
  }
231
231
 
232
232
  .jp-terminal-icon-background-color[fill] {
233
- fill: var(--jp-terminal-icon-background-color);
233
+ fill: var(--jp-terminal-icon-background-color, var(--jp-inverse-layout2));
234
234
  }
235
235
 
236
236
  .jp-text-editor-icon-color[fill] {
237
- fill: var(--jp-text-editor-icon-color);
237
+ fill: var(--jp-text-editor-icon-color, var(--jp-inverse-layout3));
238
238
  }
239
239
 
240
240
  .jp-inspector-icon-color[fill] {
241
- fill: var(--jp-inspector-icon-color);
241
+ fill: var(--jp-inspector-icon-color, var(--jp-inverse-layout3));
242
242
  }
243
243
 
244
244
  /* CSS for icons in selected filebrowser listing items */
@@ -0,0 +1,230 @@
1
+ /*-----------------------------------------------------------------------------
2
+ | Copyright (c) Jupyter Development Team.
3
+ | Distributed under the terms of the Modified BSD License.
4
+ |----------------------------------------------------------------------------*/
5
+
6
+ form.rjsf button[type='submit'] {
7
+ display: none;
8
+ }
9
+
10
+ .jp-FormGroup-content fieldset {
11
+ border: none;
12
+ padding: 0;
13
+ }
14
+
15
+ .jp-FormGroup-content fieldset .jp-inputFieldWrapper input,
16
+ .jp-FormGroup-content fieldset .jp-inputFieldWrapper select,
17
+ .jp-FormGroup-content fieldset .jp-inputFieldWrapper textarea {
18
+ font-size: var(--jp-content-font-size2);
19
+ border-color: var(--jp-input-border-color);
20
+ border-style: solid;
21
+ border-radius: var(--jp-border-radius);
22
+ border-width: 1px;
23
+ padding: 6px 8px;
24
+ background: none;
25
+ color: var(--jp-ui-font-color0);
26
+ height: inherit;
27
+ }
28
+
29
+ .jp-FormGroup-content fieldset input[type='checkbox'] {
30
+ position: relative;
31
+ top: 2px;
32
+ margin-left: 0;
33
+ }
34
+
35
+ .jp-FormGroup-content button.jp-mod-styled {
36
+ cursor: pointer;
37
+ }
38
+
39
+ .jp-FormGroup-content .form-group.small-field:hover {
40
+ background: var(--jp-border-color3);
41
+ }
42
+
43
+ .jp-FormGroup-content .checkbox label {
44
+ cursor: pointer;
45
+ font-size: var(--jp-content-font-size1);
46
+ }
47
+
48
+ .jp-FormGroup-content .jp-root > fieldset > legend {
49
+ display: none;
50
+ }
51
+
52
+ .jp-FormGroup-content .jp-root > fieldset > p {
53
+ display: none;
54
+ }
55
+
56
+ /** copy of `input.jp-mod-styled:focus` style */
57
+ .jp-FormGroup-content fieldset input:focus {
58
+ -moz-outline-radius: unset;
59
+ outline: var(--jp-border-width) solid var(--md-blue-500);
60
+ outline-offset: -1px;
61
+ box-shadow: inset 0 0 4px var(--md-blue-300);
62
+ }
63
+
64
+ .jp-FormGroup-content .checkbox .field-description {
65
+ /* Disable default description field for checkbox:
66
+ because other widgets do not have description fields,
67
+ we add descriptions to each widget on the field level.
68
+ */
69
+ display: none;
70
+ }
71
+
72
+ .jp-FormGroup-content #root__description {
73
+ display: none;
74
+ }
75
+
76
+ .jp-FormGroup-content .jp-modifiedIndicator {
77
+ width: 5px;
78
+ background-color: var(--jp-brand-color2);
79
+ margin-top: 0;
80
+ margin-left: calc(var(--jp-private-settingeditor-modifier-indent) * -1);
81
+ flex-shrink: 0;
82
+ }
83
+
84
+ .jp-FormGroup-content .jp-modifiedIndicator.jp-errorIndicator {
85
+ background-color: var(--jp-error-color0);
86
+ }
87
+
88
+ /* RJSF ARRAY style */
89
+
90
+ .jp-arrayFieldWrapper legend {
91
+ font-size: var(--jp-content-font-size2);
92
+ color: var(--jp-ui-font-color0);
93
+ flex-basis: 100%;
94
+ padding: 4px 0;
95
+ font-weight: var(--jp-content-header-font-weight);
96
+ border-bottom: 1px solid var(--jp-border-color2);
97
+ }
98
+
99
+ .jp-arrayFieldWrapper .field-description {
100
+ padding: 4px 0;
101
+ white-space: pre-wrap;
102
+ }
103
+
104
+ .jp-arrayFieldWrapper .array-item {
105
+ width: 100%;
106
+ border: 1px solid var(--jp-border-color2);
107
+ border-radius: 4px;
108
+ margin: 4px;
109
+ }
110
+
111
+ .jp-ArrayOperations {
112
+ display: flex;
113
+ margin-left: 8px;
114
+ }
115
+
116
+ .jp-ArrayOperationsButton {
117
+ margin: 2px;
118
+ }
119
+
120
+ .jp-ArrayOperationsButton .jp-icon3[fill] {
121
+ fill: var(--jp-ui-font-color0);
122
+ }
123
+
124
+ button.jp-ArrayOperationsButton.jp-mod-styled:disabled {
125
+ cursor: not-allowed;
126
+ opacity: 0.5;
127
+ }
128
+
129
+ /* RJSF form validation error */
130
+
131
+ .jp-FormGroup-content .validationErrors {
132
+ color: var(--jp-error-color0);
133
+ }
134
+
135
+ /* Hide panel level error as duplicated the field level error */
136
+ .jp-FormGroup-content .panel.errors {
137
+ display: none;
138
+ }
139
+
140
+ /* RJSF normal content (settings-editor) */
141
+
142
+ .jp-FormGroup-contentNormal {
143
+ display: flex;
144
+ align-items: center;
145
+ flex-wrap: wrap;
146
+ }
147
+
148
+ .jp-FormGroup-contentNormal .jp-FormGroup-contentItem {
149
+ margin-left: 7px;
150
+ color: var(--jp-ui-font-color0);
151
+ }
152
+
153
+ .jp-FormGroup-contentNormal .jp-FormGroup-description {
154
+ flex-basis: 100%;
155
+ padding: 4px 7px;
156
+ }
157
+
158
+ .jp-FormGroup-contentNormal .jp-FormGroup-default {
159
+ flex-basis: 100%;
160
+ padding: 4px 7px;
161
+ }
162
+
163
+ .jp-FormGroup-contentNormal .jp-FormGroup-fieldLabel {
164
+ font-size: var(--jp-content-font-size1);
165
+ font-weight: normal;
166
+ min-width: 120px;
167
+ }
168
+
169
+ .jp-FormGroup-contentNormal fieldset:not(:first-child) {
170
+ margin-left: 7px;
171
+ }
172
+
173
+ .jp-FormGroup-contentNormal .field-array-of-string .array-item {
174
+ /* Display `jp-ArrayOperations` buttons side-by-side with content except
175
+ for small screens where flex-wrap will place them one below the other.
176
+ */
177
+ display: flex;
178
+ align-items: center;
179
+ flex-wrap: wrap;
180
+ }
181
+
182
+ .jp-FormGroup-contentNormal .jp-objectFieldWrapper .form-group {
183
+ padding: 2px 8px 2px var(--jp-private-settingeditor-modifier-indent);
184
+ margin-top: 2px;
185
+ }
186
+
187
+ /* RJSF compact content (metadata-form) */
188
+
189
+ .jp-FormGroup-content.jp-FormGroup-contentCompact {
190
+ width: 100%;
191
+ }
192
+
193
+ .jp-FormGroup-contentCompact .form-group {
194
+ display: flex;
195
+ padding: 4px 8px 4px 0;
196
+ }
197
+
198
+ .jp-FormGroup-contentCompact
199
+ .jp-FormGroup-compactTitle
200
+ .jp-FormGroup-description {
201
+ font-size: var(--jp-ui-font-size1);
202
+ color: var(--jp-ui-font-color2);
203
+ padding-left: 3px;
204
+ }
205
+
206
+ .jp-FormGroup-contentCompact .jp-FormGroup-fieldLabel {
207
+ font-size: var(--jp-ui-font-size2);
208
+ font-weight: normal;
209
+ }
210
+
211
+ .jp-FormGroup-contentCompact .jp-inputFieldWrapper {
212
+ padding-left: 5px;
213
+ }
214
+
215
+ .jp-FormGroup-contentCompact .jp-inputFieldWrapper .form-control {
216
+ width: 100%;
217
+ box-sizing: border-box;
218
+ }
219
+
220
+ .jp-FormGroup-contentCompact .jp-arrayFieldWrapper .jp-FormGroup-compactTitle {
221
+ padding-bottom: 7px;
222
+ }
223
+
224
+ .jp-FormGroup-contentCompact
225
+ .jp-objectFieldWrapper
226
+ .jp-objectFieldWrapper
227
+ .form-group {
228
+ padding: 2px 8px 2px var(--jp-private-settingeditor-modifier-indent);
229
+ margin-top: 2px;
230
+ }
@@ -48,7 +48,8 @@
48
48
  margin: 0;
49
49
  display: flex;
50
50
  align-items: center;
51
- background: var(--jp-toolbar-background);
51
+ background: var(--jp-layout-color1);
52
+ color: var(--jp-ui-font-color1);
52
53
  border-bottom: var(--jp-border-width) solid var(--jp-toolbar-border-color);
53
54
  box-shadow: var(--jp-toolbar-box-shadow);
54
55
  font-size: var(--jp-ui-font-size0);
package/style/styling.css CHANGED
@@ -53,11 +53,14 @@ input.jp-mod-styled:focus {
53
53
  flex-direction: column;
54
54
  padding: 1px;
55
55
  background-color: var(--jp-layout-color1);
56
- height: 28px;
57
56
  box-sizing: border-box;
58
57
  margin-bottom: 12px;
59
58
  }
60
59
 
60
+ .jp-select-wrapper:not(.multiple) {
61
+ height: 28px;
62
+ }
63
+
61
64
  .jp-select-wrapper.jp-mod-focused select.jp-mod-styled {
62
65
  border: var(--jp-border-width) solid var(--jp-input-active-border-color);
63
66
  box-shadow: var(--jp-input-box-shadow);
@@ -73,7 +76,6 @@ select.jp-mod-styled:hover {
73
76
 
74
77
  select.jp-mod-styled {
75
78
  flex: 1 1 auto;
76
- height: 32px;
77
79
  width: 100%;
78
80
  font-size: var(--jp-ui-font-size2);
79
81
  background: var(--jp-input-background);
@@ -86,3 +88,12 @@ select.jp-mod-styled {
86
88
  -webkit-appearance: none;
87
89
  -moz-appearance: none;
88
90
  }
91
+
92
+ select.jp-mod-styled:not([multiple]) {
93
+ height: 32px;
94
+ }
95
+
96
+ select.jp-mod-styled[multiple] {
97
+ max-height: 200px;
98
+ overflow-y: auto;
99
+ }
package/style/switch.css CHANGED
@@ -21,11 +21,12 @@
21
21
 
22
22
  .jp-switch-label {
23
23
  margin-right: 5px;
24
+ font-family: var(--jp-ui-font-family);
24
25
  }
25
26
 
26
27
  .jp-switch-track {
27
28
  cursor: pointer;
28
- background-color: var(--jp-switch-color);
29
+ background-color: var(--jp-switch-color, var(--jp-border-color1));
29
30
  -webkit-transition: 0.4s;
30
31
  transition: 0.4s;
31
32
  border-radius: 34px;
@@ -48,7 +49,7 @@
48
49
  }
49
50
 
50
51
  .jp-switch[aria-checked='true'] .jp-switch-track {
51
- background-color: var(--jp-switch-true-position-color);
52
+ background-color: var(--jp-switch-true-position-color, var(--jp-warn-color0));
52
53
  }
53
54
 
54
55
  .jp-switch[aria-checked='true'] .jp-switch-track::before {
package/style/tabbar.css CHANGED
@@ -7,6 +7,7 @@
7
7
  align-items: center;
8
8
  display: flex;
9
9
  padding: 4px;
10
+ padding-bottom: 5px;
10
11
  margin-right: 1px;
11
12
  background-color: var(--jp-layout-color2);
12
13
  }
package/style/toolbar.css CHANGED
@@ -98,6 +98,7 @@ button.jp-ToolbarButtonComponent .jp-ToolbarButtonComponent-label {
98
98
  line-height: 100%;
99
99
  padding-left: 2px;
100
100
  color: var(--jp-ui-font-color1);
101
+ font-family: var(--jp-ui-font-family);
101
102
  }
102
103
 
103
104
  #jp-main-dock-panel[data-mode='single-document']