@jupyterlab/ui-components 4.6.0-alpha.2 → 4.6.0-alpha.4

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 (73) hide show
  1. package/lib/FormRendererRegistry.d.ts +1 -1
  2. package/lib/components/accordiontoolbar.d.ts +2 -1
  3. package/lib/components/accordiontoolbar.js.map +1 -1
  4. package/lib/components/button.js.map +1 -1
  5. package/lib/components/collapser.d.ts +2 -2
  6. package/lib/components/collapser.js.map +1 -1
  7. package/lib/components/form.d.ts +4 -4
  8. package/lib/components/form.js.map +1 -1
  9. package/lib/components/htmlselect.d.ts +2 -2
  10. package/lib/components/htmlselect.js +1 -3
  11. package/lib/components/htmlselect.js.map +1 -1
  12. package/lib/components/inputgroup.js.map +1 -1
  13. package/lib/components/menu.d.ts +1 -1
  14. package/lib/components/menu.js.map +1 -1
  15. package/lib/components/search.d.ts +1 -1
  16. package/lib/components/search.js +1 -1
  17. package/lib/components/search.js.map +1 -1
  18. package/lib/components/sidepanel.d.ts +1 -1
  19. package/lib/components/sidepanel.js.map +1 -1
  20. package/lib/components/spinner.d.ts +1 -1
  21. package/lib/components/switch.d.ts +2 -2
  22. package/lib/components/switch.js.map +1 -1
  23. package/lib/components/table.d.ts +2 -1
  24. package/lib/components/table.js.map +1 -1
  25. package/lib/components/toolbar.d.ts +5 -4
  26. package/lib/components/toolbar.js +1 -1
  27. package/lib/components/toolbar.js.map +1 -1
  28. package/lib/components/vdom.d.ts +4 -3
  29. package/lib/components/vdom.js.map +1 -1
  30. package/lib/components/windowedlist.d.ts +12 -5
  31. package/lib/components/windowedlist.js +37 -10
  32. package/lib/components/windowedlist.js.map +1 -1
  33. package/lib/hoverbox.js.map +1 -1
  34. package/lib/icon/labicon.d.ts +2 -2
  35. package/lib/icon/labicon.js +0 -1
  36. package/lib/icon/labicon.js.map +1 -1
  37. package/lib/icon/widgets/commandpalettesvg.d.ts +1 -1
  38. package/lib/icon/widgets/commandpalettesvg.js +1 -3
  39. package/lib/icon/widgets/commandpalettesvg.js.map +1 -1
  40. package/lib/icon/widgets/menusvg.d.ts +4 -3
  41. package/lib/icon/widgets/menusvg.js.map +1 -1
  42. package/lib/icon/widgets/tabbarsvg.d.ts +4 -3
  43. package/lib/icon/widgets/tabbarsvg.js.map +1 -1
  44. package/lib/style/icon.d.ts +1 -1
  45. package/lib/utils.js.map +1 -1
  46. package/package.json +8 -8
  47. package/src/FormRendererRegistry.tsx +1 -1
  48. package/src/components/accordiontoolbar.ts +5 -8
  49. package/src/components/button.tsx +1 -2
  50. package/src/components/collapser.ts +5 -3
  51. package/src/components/form.tsx +15 -20
  52. package/src/components/htmlselect.tsx +7 -6
  53. package/src/components/inputgroup.tsx +1 -2
  54. package/src/components/menu.ts +5 -4
  55. package/src/components/search.tsx +2 -2
  56. package/src/components/sidepanel.ts +2 -5
  57. package/src/components/spinner.ts +1 -1
  58. package/src/components/switch.ts +3 -2
  59. package/src/components/table.tsx +2 -1
  60. package/src/components/toolbar.tsx +10 -7
  61. package/src/components/vdom.ts +7 -4
  62. package/src/components/windowedlist.ts +47 -19
  63. package/src/hoverbox.ts +8 -6
  64. package/src/icon/labicon.tsx +8 -4
  65. package/src/icon/widgets/commandpalettesvg.ts +3 -4
  66. package/src/icon/widgets/menusvg.ts +5 -3
  67. package/src/icon/widgets/tabbarsvg.ts +6 -3
  68. package/src/style/icon.ts +1 -1
  69. package/src/utils.ts +2 -2
  70. package/style/base.css +15 -0
  71. package/style/rjsfTemplates.css +1 -0
  72. package/style/styling.css +1 -0
  73. package/style/windowedlist.css +0 -1
@@ -1,9 +1,12 @@
1
1
  // Copyright (c) Jupyter Development Team.
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
- import { ITranslator, nullTranslator } from '@jupyterlab/translation';
5
- import { hpass, VirtualElement } from '@lumino/virtualdom';
6
- import { DockPanel, TabBar, TabPanel, Widget } from '@lumino/widgets';
4
+ import type { ITranslator } from '@jupyterlab/translation';
5
+ import { nullTranslator } from '@jupyterlab/translation';
6
+ import type { VirtualElement } from '@lumino/virtualdom';
7
+ import { hpass } from '@lumino/virtualdom';
8
+ import type { Widget } from '@lumino/widgets';
9
+ import { DockPanel, TabBar, TabPanel } from '@lumino/widgets';
7
10
  import { LabIconStyle } from '../../style';
8
11
  import { classes } from '../../utils';
9
12
  import { addIcon, closeIcon } from '../iconimports';
package/src/style/icon.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // Distributed under the terms of the Modified BSD License.
3
3
 
4
4
  import { style as typestyleClass } from 'typestyle/lib';
5
- import { NestedCSSProperties } from 'typestyle/lib/types';
5
+ import type { NestedCSSProperties } from 'typestyle/lib/types';
6
6
 
7
7
  export namespace LabIconStyle {
8
8
  /**
package/src/utils.ts CHANGED
@@ -14,8 +14,8 @@ function _classes(
14
14
  c && typeof c === 'object'
15
15
  ? Object.keys(c).map(key => !!c[key] && key)
16
16
  : typeof c === 'string'
17
- ? c.split(/\s+/)
18
- : []
17
+ ? c.split(/\s+/)
18
+ : []
19
19
  )
20
20
  .reduce((flattened, c) => flattened.concat(c), [] as string[])
21
21
  .filter(c => !!c) as string[];
package/style/base.css CHANGED
@@ -49,6 +49,20 @@
49
49
  text-decoration: revert;
50
50
  }
51
51
 
52
+ /* Utility class for content that should only be available to screen readers. */
53
+ .jp-sr-only {
54
+ position: absolute !important;
55
+ width: 1px !important;
56
+ height: 1px !important;
57
+ padding: 0 !important;
58
+ margin: -1px !important;
59
+ overflow: hidden !important;
60
+ clip: rect(0 0 0 0) !important;
61
+ clip-path: inset(50%) !important;
62
+ white-space: nowrap !important;
63
+ border: 0 !important;
64
+ }
65
+
52
66
  /* Styles for ui-components */
53
67
  .jp-FilterBox {
54
68
  --design-unit: 3;
@@ -60,6 +74,7 @@
60
74
  border-radius: var(--jp-border-radius);
61
75
  padding: 0 12px;
62
76
  font-size: var(--jp-ui-font-size1);
77
+ font-family: var(--jp-ui-font-family);
63
78
 
64
79
  /* Copy from blueprint 3 */
65
80
  display: inline-flex;
@@ -15,6 +15,7 @@
15
15
  .jp-FormGroup-content fieldset .jp-inputFieldWrapper > input,
16
16
  .jp-FormGroup-content fieldset .jp-inputFieldWrapper > select,
17
17
  .jp-FormGroup-content fieldset .jp-inputFieldWrapper > textarea {
18
+ font-family: var(--jp-ui-font-family);
18
19
  font-size: var(--jp-content-font-size2);
19
20
  border-color: var(--jp-input-border-color);
20
21
  border-style: solid;
package/style/styling.css CHANGED
@@ -20,6 +20,7 @@ button.jp-mod-styled {
20
20
  }
21
21
 
22
22
  input.jp-mod-styled {
23
+ font-family: var(--jp-ui-font-family);
23
24
  background: var(--jp-input-background);
24
25
  height: 28px;
25
26
  box-sizing: border-box;
@@ -7,7 +7,6 @@
7
7
  height: 100%;
8
8
  position: relative;
9
9
  overflow: auto;
10
- overflow-anchor: none;
11
10
  }
12
11
 
13
12
  .jp-WindowedPanel-inner {