@jupyterlab/ui-components 3.3.0-alpha.9 → 4.0.0-alpha.15
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/lib/components/button.d.ts +21 -0
- package/lib/components/button.js +24 -0
- package/lib/components/button.js.map +1 -0
- package/lib/components/collapse.d.ts +13 -58
- package/lib/components/collapse.js +20 -141
- package/lib/components/collapse.js.map +1 -1
- package/lib/components/collapser.d.ts +64 -0
- package/lib/components/collapser.js +145 -0
- package/lib/components/collapser.js.map +1 -0
- package/lib/components/index.d.ts +4 -1
- package/lib/components/index.js +4 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/inputgroup.d.ts +18 -0
- package/lib/components/inputgroup.js +27 -0
- package/lib/components/inputgroup.js.map +1 -0
- package/lib/components/toolbar.d.ts +81 -17
- package/lib/components/toolbar.js +140 -50
- package/lib/components/toolbar.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/package.json +14 -24
- package/style/base.css +88 -17
- package/style/index.css +0 -2
- package/style/index.js +0 -2
- package/lib/blueprint.d.ts +0 -20
- package/lib/blueprint.js +0 -23
- package/lib/blueprint.js.map +0 -1
package/style/base.css
CHANGED
|
@@ -28,8 +28,13 @@ html {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
body {
|
|
31
|
-
color:
|
|
32
|
-
font-
|
|
31
|
+
color: var(--jp-ui-font-color1);
|
|
32
|
+
font-size: var(--jp-ui-font-size1);
|
|
33
|
+
/* Blueprint reset rules */
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
letter-spacing: 0;
|
|
36
|
+
line-height: 1.28581;
|
|
37
|
+
text-transform: none;
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
p {
|
|
@@ -64,29 +69,79 @@ a:hover {
|
|
|
64
69
|
|
|
65
70
|
/* Styles for ui-components */
|
|
66
71
|
.jp-Button {
|
|
72
|
+
color: var(--jp-ui-font-color2);
|
|
67
73
|
border-radius: var(--jp-border-radius);
|
|
68
74
|
padding: 0px 12px;
|
|
69
75
|
font-size: var(--jp-ui-font-size1);
|
|
76
|
+
/* Copy from blueprint 3 */
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
flex-direction: row;
|
|
79
|
+
border: none;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
text-align: left;
|
|
84
|
+
vertical-align: middle;
|
|
85
|
+
min-height: 30px;
|
|
86
|
+
min-width: 30px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.jp-Button:disabled {
|
|
90
|
+
cursor: not-allowed;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.jp-Button:empty {
|
|
94
|
+
padding: 0 !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.jp-Button.jp-mod-small {
|
|
98
|
+
min-height: 24px;
|
|
99
|
+
min-width: 24px;
|
|
100
|
+
font-size: 12px;
|
|
101
|
+
padding: 0 7px;
|
|
70
102
|
}
|
|
71
103
|
|
|
72
104
|
/* Use our own theme for hover styles */
|
|
73
|
-
|
|
105
|
+
.jp-Button.jp-mod-minimal:hover {
|
|
74
106
|
background-color: var(--jp-layout-color2);
|
|
75
107
|
}
|
|
76
|
-
|
|
77
|
-
|
|
108
|
+
|
|
109
|
+
.jp-Button.jp-mod-minimal {
|
|
110
|
+
background: none;
|
|
78
111
|
}
|
|
79
112
|
|
|
80
|
-
.jp-
|
|
81
|
-
|
|
113
|
+
.jp-InputGroup {
|
|
114
|
+
display: block;
|
|
115
|
+
position: relative;
|
|
82
116
|
}
|
|
83
117
|
|
|
84
118
|
.jp-InputGroup input {
|
|
85
119
|
box-sizing: border-box;
|
|
120
|
+
border: none;
|
|
86
121
|
border-radius: 0;
|
|
87
122
|
background-color: transparent;
|
|
88
123
|
color: var(--jp-ui-font-color0);
|
|
89
124
|
box-shadow: inset 0 0 0 var(--jp-border-width) var(--jp-input-border-color);
|
|
125
|
+
|
|
126
|
+
padding-bottom: 0px;
|
|
127
|
+
padding-top: 0px;
|
|
128
|
+
padding-left: 10px;
|
|
129
|
+
padding-right: 28px;
|
|
130
|
+
position: relative;
|
|
131
|
+
width: 100%;
|
|
132
|
+
|
|
133
|
+
-webkit-appearance: none;
|
|
134
|
+
-moz-appearance: none;
|
|
135
|
+
appearance: none;
|
|
136
|
+
|
|
137
|
+
font-size: 14px;
|
|
138
|
+
font-weight: 400;
|
|
139
|
+
|
|
140
|
+
height: 30px;
|
|
141
|
+
line-height: 30px;
|
|
142
|
+
|
|
143
|
+
outline: none;
|
|
144
|
+
vertical-align: middle;
|
|
90
145
|
}
|
|
91
146
|
|
|
92
147
|
.jp-InputGroup input:focus {
|
|
@@ -95,23 +150,28 @@ button.jp-Button.bp3-button.bp3-minimal:hover {
|
|
|
95
150
|
inset 0 0 0 3px var(--jp-input-active-box-shadow-color);
|
|
96
151
|
}
|
|
97
152
|
|
|
98
|
-
.jp-InputGroup input
|
|
99
|
-
|
|
100
|
-
|
|
153
|
+
.jp-InputGroup input:disabled {
|
|
154
|
+
cursor: not-allowed;
|
|
155
|
+
resize: block;
|
|
156
|
+
background-color: var(--jp-layout-color2);
|
|
157
|
+
color: var(--jp-ui-font-color2);
|
|
101
158
|
}
|
|
102
159
|
|
|
103
|
-
.jp-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
margin: auto;
|
|
160
|
+
.jp-InputGroup input:disabled ~ span {
|
|
161
|
+
cursor: not-allowed;
|
|
162
|
+
color: var(--jp-ui-font-color2);
|
|
107
163
|
}
|
|
108
164
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
165
|
+
.jp-InputGroup input::placeholder,
|
|
166
|
+
input::placeholder {
|
|
167
|
+
color: var(--jp-ui-font-color2);
|
|
112
168
|
}
|
|
113
169
|
|
|
114
170
|
.jp-InputGroupAction {
|
|
171
|
+
position: absolute;
|
|
172
|
+
top: 0;
|
|
173
|
+
right: 0;
|
|
174
|
+
|
|
115
175
|
padding: 6px;
|
|
116
176
|
}
|
|
117
177
|
|
|
@@ -131,6 +191,17 @@ input::placeholder {
|
|
|
131
191
|
-webkit-appearance: none;
|
|
132
192
|
}
|
|
133
193
|
|
|
194
|
+
.jp-HTMLSelect.jp-DefaultStyle select:disabled {
|
|
195
|
+
background-color: var(--jp-layout-color2);
|
|
196
|
+
color: var(--jp-ui-font-color2);
|
|
197
|
+
cursor: not-allowed;
|
|
198
|
+
resize: block;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.jp-HTMLSelect.jp-DefaultStyle select:disabled ~ span {
|
|
202
|
+
cursor: not-allowed;
|
|
203
|
+
}
|
|
204
|
+
|
|
134
205
|
/* Use our own theme for hover and option styles */
|
|
135
206
|
.jp-HTMLSelect.jp-DefaultStyle select:hover,
|
|
136
207
|
.jp-HTMLSelect.jp-DefaultStyle select > option {
|
package/style/index.css
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
/* This file was auto-generated by ensurePackage() in @jupyterlab/buildutils */
|
|
7
|
-
@import url('~@blueprintjs/core/lib/css/blueprint.css');
|
|
8
|
-
@import url('~@blueprintjs/select/lib/css/blueprint-select.css');
|
|
9
7
|
@import url('~@lumino/widgets/style/index.css');
|
|
10
8
|
|
|
11
9
|
@import url('./base.css');
|
package/style/index.js
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
|----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
/* This file was auto-generated by ensurePackage() in @jupyterlab/buildutils */
|
|
7
|
-
import '@blueprintjs/core/lib/css/blueprint.css';
|
|
8
|
-
import '@blueprintjs/select/lib/css/blueprint-select.css';
|
|
9
7
|
import '@lumino/widgets/style/index.js';
|
|
10
8
|
|
|
11
9
|
import './base.css';
|
package/lib/blueprint.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IButtonProps as IBPButtonProps } from '@blueprintjs/core/lib/cjs/components/button/buttons';
|
|
2
|
-
import { ICollapseProps } from '@blueprintjs/core/lib/cjs/components/collapse/collapse';
|
|
3
|
-
import { ICheckboxProps } from '@blueprintjs/core/lib/cjs/components/forms/controls';
|
|
4
|
-
import { IInputGroupProps as IBPInputGroupProps } from '@blueprintjs/core/lib/cjs/components/forms/inputGroup';
|
|
5
|
-
import { ISelectProps } from '@blueprintjs/select/lib/cjs/components/select/select';
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
export { Intent } from '@blueprintjs/core/lib/cjs/common/intent';
|
|
8
|
-
interface IButtonProps extends IBPButtonProps {
|
|
9
|
-
title?: string;
|
|
10
|
-
type?: 'button' | 'submit' | 'reset';
|
|
11
|
-
}
|
|
12
|
-
interface IInputGroupProps extends IBPInputGroupProps {
|
|
13
|
-
rightIcon?: string;
|
|
14
|
-
}
|
|
15
|
-
declare type CommonProps<T> = React.DOMAttributes<T>;
|
|
16
|
-
export declare const Button: (props: IButtonProps & CommonProps<any>) => JSX.Element;
|
|
17
|
-
export declare const InputGroup: (props: IInputGroupProps & CommonProps<any>) => JSX.Element;
|
|
18
|
-
export declare const Collapse: (props: ICollapseProps & CommonProps<any>) => JSX.Element;
|
|
19
|
-
export declare const Select: (props: ISelectProps<any> & CommonProps<any>) => JSX.Element;
|
|
20
|
-
export declare const Checkbox: (props: ICheckboxProps & CommonProps<any>) => JSX.Element;
|
package/lib/blueprint.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Jupyter Development Team.
|
|
2
|
-
// Distributed under the terms of the Modified BSD License.
|
|
3
|
-
import { Button as BPButton } from '@blueprintjs/core/lib/cjs/components/button/buttons';
|
|
4
|
-
import { Collapse as BPCollapse } from '@blueprintjs/core/lib/cjs/components/collapse/collapse';
|
|
5
|
-
import { Checkbox as BPCheckbox } from '@blueprintjs/core/lib/cjs/components/forms/controls';
|
|
6
|
-
import { InputGroup as BPInputGroup } from '@blueprintjs/core/lib/cjs/components/forms/inputGroup';
|
|
7
|
-
import { Select as BPSelect } from '@blueprintjs/select/lib/cjs/components/select/select';
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
import { LabIcon } from './icon';
|
|
10
|
-
import { classes } from './utils';
|
|
11
|
-
export { Intent } from '@blueprintjs/core/lib/cjs/common/intent';
|
|
12
|
-
export const Button = (props) => (React.createElement(BPButton, Object.assign({}, props, { className: classes(props.className, props.minimal ? 'minimal' : '', 'jp-Button') })));
|
|
13
|
-
export const InputGroup = (props) => {
|
|
14
|
-
if (props.rightIcon) {
|
|
15
|
-
return (React.createElement(BPInputGroup, Object.assign({}, props, { className: classes(props.className, 'jp-InputGroup'), rightElement: React.createElement("div", { className: "jp-InputGroupAction" },
|
|
16
|
-
React.createElement(LabIcon.resolveReact, { icon: props.rightIcon })) })));
|
|
17
|
-
}
|
|
18
|
-
return (React.createElement(BPInputGroup, Object.assign({}, props, { className: classes(props.className, 'jp-InputGroup') })));
|
|
19
|
-
};
|
|
20
|
-
export const Collapse = (props) => React.createElement(BPCollapse, Object.assign({}, props));
|
|
21
|
-
export const Select = (props) => (React.createElement(BPSelect, Object.assign({}, props, { className: classes(props.className, 'jp-Select') })));
|
|
22
|
-
export const Checkbox = (props) => (React.createElement(BPCheckbox, Object.assign({}, props, { className: classes(props.className, 'jp-Checkbox') })));
|
|
23
|
-
//# sourceMappingURL=blueprint.js.map
|
package/lib/blueprint.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint.js","sourceRoot":"","sources":["../src/blueprint.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EACL,MAAM,IAAI,QAAQ,EAEnB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,QAAQ,IAAI,UAAU,EAEvB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,QAAQ,IAAI,UAAU,EAEvB,MAAM,qDAAqD,CAA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