@jupyterlab/ui-components 4.0.0-alpha.17 → 4.0.0-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/ui-components",
3
- "version": "4.0.0-alpha.17",
3
+ "version": "4.0.0-alpha.20",
4
4
  "description": "JupyterLab - UI components written in React",
5
5
  "homepage": "https://github.com/jupyterlab/jupyterlab",
6
6
  "bugs": {
@@ -28,13 +28,11 @@
28
28
  ],
29
29
  "scripts": {
30
30
  "build": "tsc -b",
31
- "build:storybook": "build-storybook -c .storybook",
32
31
  "build:test": "tsc --build tsconfig.test.json",
33
32
  "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo",
34
33
  "cleansvg": "svgo --config svgo.yaml",
35
34
  "docs": "typedoc src",
36
35
  "docs:init": "bash docs/build.sh",
37
- "storybook": "start-storybook -p 9001 -c .storybook",
38
36
  "test": "jest",
39
37
  "test:cov": "jest --collect-coverage",
40
38
  "test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
@@ -42,18 +40,19 @@
42
40
  "watch": "tsc -b --watch"
43
41
  },
44
42
  "dependencies": {
45
- "@jupyterlab/coreutils": "^6.0.0-alpha.2",
46
- "@jupyterlab/translation": "^4.0.0-alpha.2",
43
+ "@jupyterlab/coreutils": "^6.0.0-alpha.5",
44
+ "@jupyterlab/translation": "^4.0.0-alpha.5",
47
45
  "@lumino/algorithm": "^1.9.1",
48
- "@lumino/commands": "^1.19.0",
49
- "@lumino/coreutils": "^1.11.1",
46
+ "@lumino/commands": "^1.20.0",
47
+ "@lumino/coreutils": "^1.12.0",
50
48
  "@lumino/disposable": "^1.10.1",
51
49
  "@lumino/messaging": "^1.10.1",
52
- "@lumino/polling": "^1.9.1",
50
+ "@lumino/polling": "^1.10.0",
53
51
  "@lumino/properties": "^1.8.1",
54
52
  "@lumino/signaling": "^1.10.1",
55
53
  "@lumino/virtualdom": "^1.14.1",
56
- "@lumino/widgets": "^1.30.0",
54
+ "@lumino/widgets": "^1.31.1",
55
+ "@rjsf/core": "^3.1.0",
57
56
  "react": "^17.0.1",
58
57
  "react-dom": "^17.0.1",
59
58
  "typestyle": "^2.0.4"
@@ -61,17 +60,15 @@
61
60
  "devDependencies": {
62
61
  "@babel/core": "^7.10.2",
63
62
  "@babel/preset-env": "^7.10.2",
64
- "@jupyterlab/testutils": "^4.0.0-alpha.2",
65
- "@storybook/addon-actions": "6.0.20",
66
- "@storybook/react": "6.0.20",
63
+ "@jupyterlab/testutils": "^4.0.0-alpha.5",
67
64
  "@types/jest": "^26.0.10",
68
65
  "@types/react": "^17.0.0",
69
66
  "babel-loader": "^8.0.6",
70
67
  "jest": "^26.4.2",
71
68
  "rimraf": "~3.0.0",
72
- "svgo": "^1.3.2",
69
+ "svgo": "^2.8.0",
73
70
  "ts-jest": "^26.3.0",
74
- "typedoc": "~0.21.2",
71
+ "typedoc": "~0.22.10",
75
72
  "typescript": "~4.5.2"
76
73
  },
77
74
  "peerDependencies": {
package/style/base.css CHANGED
@@ -11,6 +11,7 @@
11
11
  @import './iconsalt.css';
12
12
  @import './iconshover.css';
13
13
  @import './iframe.css';
14
+ @import './hoverbox.css';
14
15
  @import './spinner.css';
15
16
  @import './styling.css';
16
17
  @import './sidepanel.css';
@@ -31,6 +32,7 @@ html {
31
32
  body {
32
33
  color: var(--jp-ui-font-color1);
33
34
  font-size: var(--jp-ui-font-size1);
35
+
34
36
  /* Blueprint reset rules */
35
37
  font-weight: 400;
36
38
  letter-spacing: 0;
@@ -51,16 +53,28 @@ strong {
51
53
  font-weight: unset;
52
54
  }
53
55
 
54
- /* Override Blueprint's _typography.scss styles */
56
+ /* Disable native link decoration styles everywhere outside of dialog boxes */
55
57
  a {
56
58
  text-decoration: unset;
57
59
  color: unset;
58
60
  }
61
+
59
62
  a:hover {
60
63
  text-decoration: unset;
61
64
  color: unset;
62
65
  }
63
66
 
67
+ /* Accessibility for links inside dialog box text */
68
+ .jp-Dialog-content a {
69
+ text-decoration: revert;
70
+ color: revert;
71
+ }
72
+
73
+ .jp-Dialog-content a:hover {
74
+ text-decoration: revert;
75
+ color: revert;
76
+ }
77
+
64
78
  /* Override Blueprint's _accessibility.scss styles */
65
79
  :focus {
66
80
  outline: unset;
@@ -72,8 +86,9 @@ a:hover {
72
86
  .jp-Button {
73
87
  color: var(--jp-ui-font-color2);
74
88
  border-radius: var(--jp-border-radius);
75
- padding: 0px 12px;
89
+ padding: 0 12px;
76
90
  font-size: var(--jp-ui-font-size1);
91
+
77
92
  /* Copy from blueprint 3 */
78
93
  display: inline-flex;
79
94
  flex-direction: row;
@@ -123,24 +138,19 @@ a:hover {
123
138
  background-color: transparent;
124
139
  color: var(--jp-ui-font-color0);
125
140
  box-shadow: inset 0 0 0 var(--jp-border-width) var(--jp-input-border-color);
126
-
127
- padding-bottom: 0px;
128
- padding-top: 0px;
141
+ padding-bottom: 0;
142
+ padding-top: 0;
129
143
  padding-left: 10px;
130
144
  padding-right: 28px;
131
145
  position: relative;
132
146
  width: 100%;
133
-
134
147
  -webkit-appearance: none;
135
148
  -moz-appearance: none;
136
149
  appearance: none;
137
-
138
150
  font-size: 14px;
139
151
  font-weight: 400;
140
-
141
152
  height: 30px;
142
153
  line-height: 30px;
143
-
144
154
  outline: none;
145
155
  vertical-align: middle;
146
156
  }
@@ -172,7 +182,6 @@ input::placeholder {
172
182
  position: absolute;
173
183
  top: 0;
174
184
  right: 0;
175
-
176
185
  padding: 6px;
177
186
  }
178
187
 
@@ -209,6 +218,7 @@ input::placeholder {
209
218
  background-color: var(--jp-layout-color2);
210
219
  color: var(--jp-ui-font-color0);
211
220
  }
221
+
212
222
  select {
213
223
  box-sizing: border-box;
214
224
  }
@@ -23,7 +23,7 @@
23
23
  }
24
24
 
25
25
  .jp-Collapse-contents {
26
- padding: 0px 12px 0px 12px;
26
+ padding: 0 12px;
27
27
  background-color: var(--jp-layout-color1);
28
28
  color: var(--jp-ui-font-color1);
29
29
  overflow: auto;
@@ -53,6 +53,7 @@
53
53
  --jp-icon-jupyterlab-wordmark: url('icons/jupyter/jupyterlab-wordmark.svg');
54
54
  --jp-icon-kernel: url('icons/statusbar/kernel.svg');
55
55
  --jp-icon-keyboard: url('icons/filetype/keyboard.svg');
56
+ --jp-icon-launch: url('icons/toolbar/launch.svg');
56
57
  --jp-icon-launcher: url('icons/filetype/launcher.svg');
57
58
  --jp-icon-line-form: url('icons/statusbar/line-form.svg');
58
59
  --jp-icon-link: url('icons/toolbar/link.svg');
@@ -100,243 +101,327 @@
100
101
  .jp-AddIcon {
101
102
  background-image: var(--jp-icon-add);
102
103
  }
104
+
103
105
  .jp-BugDotIcon {
104
106
  background-image: var(--jp-icon-bug-dot);
105
107
  }
108
+
106
109
  .jp-BugIcon {
107
110
  background-image: var(--jp-icon-bug);
108
111
  }
112
+
109
113
  .jp-BuildIcon {
110
114
  background-image: var(--jp-icon-build);
111
115
  }
116
+
112
117
  .jp-CaretDownEmptyIcon {
113
118
  background-image: var(--jp-icon-caret-down-empty);
114
119
  }
120
+
115
121
  .jp-CaretDownEmptyThinIcon {
116
122
  background-image: var(--jp-icon-caret-down-empty-thin);
117
123
  }
124
+
118
125
  .jp-CaretDownIcon {
119
126
  background-image: var(--jp-icon-caret-down);
120
127
  }
128
+
121
129
  .jp-CaretLeftIcon {
122
130
  background-image: var(--jp-icon-caret-left);
123
131
  }
132
+
124
133
  .jp-CaretRightIcon {
125
134
  background-image: var(--jp-icon-caret-right);
126
135
  }
136
+
127
137
  .jp-CaretUpEmptyThinIcon {
128
138
  background-image: var(--jp-icon-caret-up-empty-thin);
129
139
  }
140
+
130
141
  .jp-CaretUpIcon {
131
142
  background-image: var(--jp-icon-caret-up);
132
143
  }
144
+
133
145
  .jp-CaseSensitiveIcon {
134
146
  background-image: var(--jp-icon-case-sensitive);
135
147
  }
148
+
136
149
  .jp-CheckIcon {
137
150
  background-image: var(--jp-icon-check);
138
151
  }
152
+
139
153
  .jp-CircleEmptyIcon {
140
154
  background-image: var(--jp-icon-circle-empty);
141
155
  }
156
+
142
157
  .jp-CircleIcon {
143
158
  background-image: var(--jp-icon-circle);
144
159
  }
160
+
145
161
  .jp-ClearIcon {
146
162
  background-image: var(--jp-icon-clear);
147
163
  }
164
+
148
165
  .jp-CloseIcon {
149
166
  background-image: var(--jp-icon-close);
150
167
  }
168
+
151
169
  .jp-CodeIcon {
152
170
  background-image: var(--jp-icon-code);
153
171
  }
172
+
154
173
  .jp-ConsoleIcon {
155
174
  background-image: var(--jp-icon-console);
156
175
  }
176
+
157
177
  .jp-CopyIcon {
158
178
  background-image: var(--jp-icon-copy);
159
179
  }
180
+
160
181
  .jp-CopyrightIcon {
161
182
  background-image: var(--jp-icon-copyright);
162
183
  }
184
+
163
185
  .jp-CutIcon {
164
186
  background-image: var(--jp-icon-cut);
165
187
  }
188
+
166
189
  .jp-DownloadIcon {
167
190
  background-image: var(--jp-icon-download);
168
191
  }
192
+
169
193
  .jp-EditIcon {
170
194
  background-image: var(--jp-icon-edit);
171
195
  }
196
+
172
197
  .jp-EllipsesIcon {
173
198
  background-image: var(--jp-icon-ellipses);
174
199
  }
200
+
175
201
  .jp-ExtensionIcon {
176
202
  background-image: var(--jp-icon-extension);
177
203
  }
204
+
178
205
  .jp-FastForwardIcon {
179
206
  background-image: var(--jp-icon-fast-forward);
180
207
  }
208
+
181
209
  .jp-FileIcon {
182
210
  background-image: var(--jp-icon-file);
183
211
  }
212
+
184
213
  .jp-FileUploadIcon {
185
214
  background-image: var(--jp-icon-file-upload);
186
215
  }
216
+
187
217
  .jp-FilterListIcon {
188
218
  background-image: var(--jp-icon-filter-list);
189
219
  }
220
+
190
221
  .jp-FolderIcon {
191
222
  background-image: var(--jp-icon-folder);
192
223
  }
224
+
193
225
  .jp-Html5Icon {
194
226
  background-image: var(--jp-icon-html5);
195
227
  }
228
+
196
229
  .jp-ImageIcon {
197
230
  background-image: var(--jp-icon-image);
198
231
  }
232
+
199
233
  .jp-InspectorIcon {
200
234
  background-image: var(--jp-icon-inspector);
201
235
  }
236
+
202
237
  .jp-JsonIcon {
203
238
  background-image: var(--jp-icon-json);
204
239
  }
240
+
205
241
  .jp-JuliaIcon {
206
242
  background-image: var(--jp-icon-julia);
207
243
  }
244
+
208
245
  .jp-JupyterFaviconIcon {
209
246
  background-image: var(--jp-icon-jupyter-favicon);
210
247
  }
248
+
211
249
  .jp-JupyterIcon {
212
250
  background-image: var(--jp-icon-jupyter);
213
251
  }
252
+
214
253
  .jp-JupyterlabWordmarkIcon {
215
254
  background-image: var(--jp-icon-jupyterlab-wordmark);
216
255
  }
256
+
217
257
  .jp-KernelIcon {
218
258
  background-image: var(--jp-icon-kernel);
219
259
  }
260
+
220
261
  .jp-KeyboardIcon {
221
262
  background-image: var(--jp-icon-keyboard);
222
263
  }
264
+
265
+ .jp-LaunchIcon {
266
+ background-image: var(--jp-icon-launch);
267
+ }
268
+
223
269
  .jp-LauncherIcon {
224
270
  background-image: var(--jp-icon-launcher);
225
271
  }
272
+
226
273
  .jp-LineFormIcon {
227
274
  background-image: var(--jp-icon-line-form);
228
275
  }
276
+
229
277
  .jp-LinkIcon {
230
278
  background-image: var(--jp-icon-link);
231
279
  }
280
+
232
281
  .jp-ListIcon {
233
282
  background-image: var(--jp-icon-list);
234
283
  }
284
+
235
285
  .jp-ListingsInfoIcon {
236
286
  background-image: var(--jp-icon-listings-info);
237
287
  }
288
+
238
289
  .jp-MarkdownIcon {
239
290
  background-image: var(--jp-icon-markdown);
240
291
  }
292
+
241
293
  .jp-NewFolderIcon {
242
294
  background-image: var(--jp-icon-new-folder);
243
295
  }
296
+
244
297
  .jp-NotTrustedIcon {
245
298
  background-image: var(--jp-icon-not-trusted);
246
299
  }
300
+
247
301
  .jp-NotebookIcon {
248
302
  background-image: var(--jp-icon-notebook);
249
303
  }
304
+
250
305
  .jp-NumberingIcon {
251
306
  background-image: var(--jp-icon-numbering);
252
307
  }
308
+
253
309
  .jp-OfflineBoltIcon {
254
310
  background-image: var(--jp-icon-offline-bolt);
255
311
  }
312
+
256
313
  .jp-PaletteIcon {
257
314
  background-image: var(--jp-icon-palette);
258
315
  }
316
+
259
317
  .jp-PasteIcon {
260
318
  background-image: var(--jp-icon-paste);
261
319
  }
320
+
262
321
  .jp-PdfIcon {
263
322
  background-image: var(--jp-icon-pdf);
264
323
  }
324
+
265
325
  .jp-PythonIcon {
266
326
  background-image: var(--jp-icon-python);
267
327
  }
328
+
268
329
  .jp-RKernelIcon {
269
330
  background-image: var(--jp-icon-r-kernel);
270
331
  }
332
+
271
333
  .jp-ReactIcon {
272
334
  background-image: var(--jp-icon-react);
273
335
  }
336
+
274
337
  .jp-RedoIcon {
275
338
  background-image: var(--jp-icon-redo);
276
339
  }
340
+
277
341
  .jp-RefreshIcon {
278
342
  background-image: var(--jp-icon-refresh);
279
343
  }
344
+
280
345
  .jp-RegexIcon {
281
346
  background-image: var(--jp-icon-regex);
282
347
  }
348
+
283
349
  .jp-RunIcon {
284
350
  background-image: var(--jp-icon-run);
285
351
  }
352
+
286
353
  .jp-RunningIcon {
287
354
  background-image: var(--jp-icon-running);
288
355
  }
356
+
289
357
  .jp-SaveIcon {
290
358
  background-image: var(--jp-icon-save);
291
359
  }
360
+
292
361
  .jp-SearchIcon {
293
362
  background-image: var(--jp-icon-search);
294
363
  }
364
+
295
365
  .jp-SettingsIcon {
296
366
  background-image: var(--jp-icon-settings);
297
367
  }
368
+
298
369
  .jp-ShareIcon {
299
370
  background-image: var(--jp-icon-share);
300
371
  }
372
+
301
373
  .jp-SpreadsheetIcon {
302
374
  background-image: var(--jp-icon-spreadsheet);
303
375
  }
376
+
304
377
  .jp-StopIcon {
305
378
  background-image: var(--jp-icon-stop);
306
379
  }
380
+
307
381
  .jp-TabIcon {
308
382
  background-image: var(--jp-icon-tab);
309
383
  }
384
+
310
385
  .jp-TableRowsIcon {
311
386
  background-image: var(--jp-icon-table-rows);
312
387
  }
388
+
313
389
  .jp-TagIcon {
314
390
  background-image: var(--jp-icon-tag);
315
391
  }
392
+
316
393
  .jp-TerminalIcon {
317
394
  background-image: var(--jp-icon-terminal);
318
395
  }
396
+
319
397
  .jp-TextEditorIcon {
320
398
  background-image: var(--jp-icon-text-editor);
321
399
  }
400
+
322
401
  .jp-TocIcon {
323
402
  background-image: var(--jp-icon-toc);
324
403
  }
404
+
325
405
  .jp-TreeViewIcon {
326
406
  background-image: var(--jp-icon-tree-view);
327
407
  }
408
+
328
409
  .jp-TrustedIcon {
329
410
  background-image: var(--jp-icon-trusted);
330
411
  }
412
+
331
413
  .jp-UndoIcon {
332
414
  background-image: var(--jp-icon-undo);
333
415
  }
416
+
334
417
  .jp-UserIcon {
335
418
  background-image: var(--jp-icon-user);
336
419
  }
420
+
337
421
  .jp-VegaIcon {
338
422
  background-image: var(--jp-icon-vega);
339
423
  }
424
+
340
425
  .jp-YamlIcon {
341
426
  background-image: var(--jp-icon-yaml);
342
427
  }
@@ -0,0 +1,13 @@
1
+ /*-----------------------------------------------------------------------------
2
+ | Copyright (c) 2014-2016, Jupyter Development Team.
3
+ |
4
+ | Distributed under the terms of the Modified BSD License.
5
+ |----------------------------------------------------------------------------*/
6
+
7
+ .jp-HoverBox {
8
+ position: fixed;
9
+ }
10
+
11
+ .jp-HoverBox.jp-mod-outofview {
12
+ display: none;
13
+ }
@@ -0,0 +1,6 @@
1
+ <svg viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg">
2
+ <g class="jp-icon3 jp-icon-selectable" fill="#616161">
3
+ <path d="M26,28H6a2.0027,2.0027,0,0,1-2-2V6A2.0027,2.0027,0,0,1,6,4H16V6H6V26H26V16h2V26A2.0027,2.0027,0,0,1,26,28Z"/>
4
+ <polygon points="20 2 20 4 26.586 4 18 12.586 19.414 14 28 5.414 28 12 30 12 30 2 20 2"/>
5
+ </g>
6
+ </svg>