@jupyterlab/ui-components 4.0.0-alpha.30 → 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,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
+ }
@@ -7,6 +7,7 @@
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  min-width: var(--jp-sidebar-min-width);
10
+ overflow-y: auto;
10
11
  color: var(--jp-ui-font-color1);
11
12
  background: var(--jp-layout-color1);
12
13
  font-size: var(--jp-ui-font-size1);
@@ -47,7 +48,8 @@
47
48
  margin: 0;
48
49
  display: flex;
49
50
  align-items: center;
50
- background: var(--jp-toolbar-background);
51
+ background: var(--jp-layout-color1);
52
+ color: var(--jp-ui-font-color1);
51
53
  border-bottom: var(--jp-border-width) solid var(--jp-toolbar-border-color);
52
54
  box-shadow: var(--jp-toolbar-box-shadow);
53
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-border-color1);
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-warn-color0);
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']