@jupyterlab/ui-components 3.3.0-alpha.7 → 4.0.0-alpha.16
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/accordiontoolbar.d.ts +36 -0
- package/lib/components/accordiontoolbar.js +229 -0
- package/lib/components/accordiontoolbar.js.map +1 -0
- 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 +6 -1
- package/lib/components/index.js +6 -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/panelwithtoolbar.d.ts +27 -0
- package/lib/components/panelwithtoolbar.js +18 -0
- package/lib/components/panelwithtoolbar.js.map +1 -0
- package/lib/components/sidepanel.d.ts +84 -0
- package/lib/components/sidepanel.js +95 -0
- package/lib/components/sidepanel.js.map +1 -0
- package/lib/components/toolbar.d.ts +90 -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 -25
- package/style/base.css +89 -17
- package/style/index.css +0 -2
- package/style/index.js +0 -2
- package/style/sidepanel.css +85 -0
- package/lib/blueprint.d.ts +0 -20
- package/lib/blueprint.js +0 -23
- package/lib/blueprint.js.map +0 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.jp-SidePanel {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
min-width: var(--jp-sidebar-min-width);
|
|
5
|
+
color: var(--jp-ui-font-color1);
|
|
6
|
+
background: var(--jp-layout-color1);
|
|
7
|
+
font-size: var(--jp-ui-font-size1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.jp-SidePanel-header {
|
|
11
|
+
flex: 0 0 auto;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
border-bottom: var(--jp-border-width) solid var(--jp-border-color2);
|
|
15
|
+
font-size: var(--jp-ui-font-size0);
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
letter-spacing: 1px;
|
|
18
|
+
margin: 0px;
|
|
19
|
+
padding: 2px;
|
|
20
|
+
text-transform: uppercase;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.jp-SidePanel-toolbar {
|
|
24
|
+
flex: 0 0 auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.jp-SidePanel-content {
|
|
28
|
+
flex: 1 1 auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.jp-SidePanel-toolbar,
|
|
32
|
+
.jp-AccordionPanel-toolbar {
|
|
33
|
+
height: var(--jp-private-toolbar-height);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.lm-AccordionPanel .jp-AccordionPanel-title {
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
line-height: 25px;
|
|
39
|
+
margin: 0px;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
background: var(--jp-toolbar-background);
|
|
43
|
+
border-bottom: var(--jp-border-width) solid var(--jp-toolbar-border-color);
|
|
44
|
+
box-shadow: var(--jp-toolbar-box-shadow);
|
|
45
|
+
font-size: var(--jp-ui-font-size0);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.jp-AccordionPanel-title {
|
|
49
|
+
user-select: none;
|
|
50
|
+
-moz-user-select: none;
|
|
51
|
+
-webkit-user-select: none;
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.lm-AccordionPanel[data-orientation='horizontal'] > .jp-AccordionPanel-title {
|
|
56
|
+
/* Title is rotated for horizontal accordion panel using CSS */
|
|
57
|
+
display: block;
|
|
58
|
+
transform-origin: top left;
|
|
59
|
+
transform: rotate(-90deg) translate(-100%);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.jp-AccordionPanel-title .lm-AccordionPanel-titleLabel {
|
|
63
|
+
user-select: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.jp-AccordionPanel-title .lm-AccordionPanel-titleCollapser {
|
|
67
|
+
transform: rotate(-90deg);
|
|
68
|
+
margin: auto 0px;
|
|
69
|
+
height: 16px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.jp-AccordionPanel-title.lm-mod-expanded .lm-AccordionPanel-titleCollapser {
|
|
73
|
+
transform: rotate(0deg);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.lm-AccordionPanel .jp-AccordionPanel-toolbar {
|
|
77
|
+
background: none;
|
|
78
|
+
box-shadow: none;
|
|
79
|
+
border: none;
|
|
80
|
+
margin-left: auto;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.lm-AccordionPanel .lm-SplitPanel-handle:hover {
|
|
84
|
+
background: var(--jp-layout-color3);
|
|
85
|
+
}
|
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,CAAC;AAC7D,OAAO,EACL,UAAU,IAAI,YAAY,EAE3B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EACL,MAAM,IAAI,QAAQ,EAEnB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AAajE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAsC,EAAe,EAAE,CAAC,CAC7E,o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