@jupyterlab/ui-components 1.0.0-alpha.8 → 1.0.0

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/index.d.ts CHANGED
@@ -5,9 +5,6 @@ import { ICollapseProps } from '@blueprintjs/core/lib/cjs/components/collapse/co
5
5
  import { IInputGroupProps as IBPInputGroupProps } from '@blueprintjs/core/lib/cjs/components/forms/inputGroup';
6
6
  import { IHTMLSelectProps } from '@blueprintjs/core/lib/cjs/components/html-select/htmlSelect';
7
7
  import { ISelectProps } from '@blueprintjs/select/lib/cjs/components/select/select';
8
- import '@blueprintjs/icons/lib/css/blueprint-icons.css';
9
- import '@blueprintjs/core/lib/css/blueprint.css';
10
- import '../style/index.css';
11
8
  export { Intent } from '@blueprintjs/core/lib/cjs/common/intent';
12
9
  interface IButtonProps extends IBPButtonProps {
13
10
  title?: string;
package/lib/index.js CHANGED
@@ -7,9 +7,6 @@ import { Collapse as BPCollapse } from '@blueprintjs/core/lib/cjs/components/col
7
7
  import { InputGroup as BPInputGroup } from '@blueprintjs/core/lib/cjs/components/forms/inputGroup';
8
8
  import { HTMLSelect as BPHTMLSelect } from '@blueprintjs/core/lib/cjs/components/html-select/htmlSelect';
9
9
  import { Select as BPSelect } from '@blueprintjs/select/lib/cjs/components/select/select';
10
- import '@blueprintjs/icons/lib/css/blueprint-icons.css';
11
- import '@blueprintjs/core/lib/css/blueprint.css';
12
- import '../style/index.css';
13
10
  import { combineClassNames } from './utils';
14
11
  export { Intent } from '@blueprintjs/core/lib/cjs/common/intent';
15
12
  export const Button = (props) => (React.createElement(BPButton, Object.assign({}, props, { className: combineClassNames(props.className, props.minimal && 'minimal', 'jp-Button') })));
@@ -24,3 +21,4 @@ export const Icon = (props) => (React.createElement(BPIcon, Object.assign({}, pr
24
21
  export const Collapse = (props) => (React.createElement(BPCollapse, Object.assign({}, props)));
25
22
  export const HTMLSelect = (props) => (React.createElement(BPHTMLSelect, Object.assign({}, props, { className: combineClassNames(props.className, 'jp-HTMLSelect') })));
26
23
  export const Select = (props) => (React.createElement(BPSelect, Object.assign({}, props, { className: combineClassNames(props.className, 'jp-Select') })));
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,MAAM,IAAI,QAAQ,EAEnB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,IAAI,IAAI,MAAM,EAEf,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,QAAQ,IAAI,UAAU,EAEvB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,UAAU,IAAI,YAAY,EAE3B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EACL,UAAU,IAAI,YAAY,EAE3B,MAAM,6DAA6D,CAAC;AACrE,OAAO,EACL,MAAM,IAAI,QAAQ,EAEnB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AAajE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAsC,EAAE,EAAE,CAAC,CAChE,oBAAC,QAAQ,oBACH,KAAK,IACT,SAAS,EAAE,iBAAiB,CAC1B,KAAK,CAAC,SAAS,EACf,KAAK,CAAC,OAAO,IAAI,SAAS,EAC1B,WAAW,CACZ,IACD,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAA0C,EAAE,EAAE;IACvE,IAAI,KAAK,CAAC,SAAS,EAAE;QACnB,OAAO,CACL,oBAAC,YAAY,oBACP,KAAK,IACT,SAAS,EAAE,iBAAiB,CAAC,KAAK,CAAC,SAAS,EAAE,eAAe,CAAC,EAC9D,YAAY,EACV,6BAAK,SAAS,EAAC,qBAAqB;gBAClC,oBAAC,IAAI,IAAC,SAAS,EAAC,SAAS,EAAC,IAAI,EAAE,KAAK,CAAC,SAAS,GAAI,CAC/C,IAER,CACH,CAAC;KACH;IACD,OAAO,CACL,oBAAC,YAAY,oBACP,KAAK,IACT,SAAS,EAAE,iBAAiB,CAAC,KAAK,CAAC,SAAS,EAAE,eAAe,CAAC,IAC9D,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAiB,EAAE,EAAE,CAAC,CACzC,oBAAC,MAAM,oBACD,KAAK,IACT,SAAS,EAAE,iBAAiB,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,IACxD,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAwC,EAAE,EAAE,CAAC,CACpE,oBAAC,UAAU,oBAAK,KAAK,EAAI,CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAA0C,EAAE,EAAE,CAAC,CACxE,oBAAC,YAAY,oBACP,KAAK,IACT,SAAS,EAAE,iBAAiB,CAAC,KAAK,CAAC,SAAS,EAAE,eAAe,CAAC,IAC9D,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAA2C,EAAE,EAAE,CAAC,CACrE,oBAAC,QAAQ,oBACH,KAAK,IACT,SAAS,EAAE,iBAAiB,CAAC,KAAK,CAAC,SAAS,EAAE,WAAW,CAAC,IAC1D,CACH,CAAC"}
package/lib/utils.js CHANGED
@@ -3,3 +3,4 @@
3
3
  export function combineClassNames(...classNames) {
4
4
  return classNames.join(' ');
5
5
  }
6
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,MAAM,UAAU,iBAAiB,CAAC,GAAG,UAAkC;IACrE,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/ui-components",
3
- "version": "1.0.0-alpha.8",
3
+ "version": "1.0.0",
4
4
  "description": "JupyterLab - UI components written in React",
5
5
  "homepage": "https://github.com/jupyterlab/jupyterlab",
6
6
  "bugs": {
@@ -18,8 +18,12 @@
18
18
  "lib/*.js",
19
19
  "style/*.css"
20
20
  ],
21
+ "sideEffects": [
22
+ "style/**/*"
23
+ ],
21
24
  "main": "lib/index.js",
22
25
  "types": "lib/index.d.ts",
26
+ "style": "style/index.css",
23
27
  "directories": {
24
28
  "lib": "lib/"
25
29
  },
@@ -40,7 +44,7 @@
40
44
  "@types/react": "~16.8.18",
41
45
  "rimraf": "~2.6.2",
42
46
  "typedoc": "^0.14.2",
43
- "typescript": "~3.4.3"
47
+ "typescript": "~3.5.1"
44
48
  },
45
49
  "peerDependencies": {
46
50
  "react": "~16.8.4"
@@ -48,5 +52,13 @@
48
52
  "publishConfig": {
49
53
  "access": "public"
50
54
  },
51
- "gitHead": "ac27c477b689240fe0e3e11ff2e3b4984687a899"
55
+ "jupyterlab": {
56
+ "extraStyles": {
57
+ "blueprintjs": [
58
+ "icons/lib/css/blueprint-icons.css",
59
+ "core/lib/css/blueprint.css"
60
+ ]
61
+ }
62
+ },
63
+ "gitHead": "382da7c3efb2696a0ae26a4fea27aeeead99fbd9"
52
64
  }
package/style/base.css ADDED
@@ -0,0 +1,114 @@
1
+ /*-----------------------------------------------------------------------------
2
+ | Copyright (c) Jupyter Development Team.
3
+ | Distributed under the terms of the Modified BSD License.
4
+ |----------------------------------------------------------------------------*/
5
+
6
+ /* Override Blueprint's _reset.scss styles */
7
+ html {
8
+ box-sizing: unset;
9
+ }
10
+
11
+ *,
12
+ *::before,
13
+ *::after {
14
+ box-sizing: unset;
15
+ }
16
+
17
+ body {
18
+ color: unset;
19
+ font-family: var(--jp-ui-font-family);
20
+ }
21
+
22
+ p {
23
+ margin-top: unset;
24
+ margin-bottom: unset;
25
+ }
26
+
27
+ small {
28
+ font-size: unset;
29
+ }
30
+
31
+ strong {
32
+ font-weight: unset;
33
+ }
34
+
35
+ /* Override Blueprint's _typography.scss styles */
36
+ a {
37
+ text-decoration: unset;
38
+ color: unset;
39
+ }
40
+ a:hover {
41
+ text-decoration: unset;
42
+ color: unset;
43
+ }
44
+
45
+ /* Override Blueprint's _accessibility.scss styles */
46
+ :focus {
47
+ outline: unset;
48
+ outline-offset: unset;
49
+ -moz-outline-radius: unset;
50
+ }
51
+
52
+ /* Styles for ui-components */
53
+ .jp-Button {
54
+ border-radius: var(--jp-border-radius);
55
+ padding: 0px 12px;
56
+ font-size: var(--jp-ui-font-size1);
57
+ }
58
+
59
+ /* Use our own theme for hover styles */
60
+ button.jp-Button.bp3-button.bp3-minimal:hover {
61
+ background-color: var(--jp-layout-color2);
62
+ }
63
+ .jp-Button.minimal {
64
+ color: unset !important;
65
+ }
66
+
67
+ .jp-Button.jp-ToolbarButtonComponent {
68
+ text-transform: none;
69
+ }
70
+
71
+ .jp-InputGroup input {
72
+ box-sizing: border-box;
73
+ border-radius: 0;
74
+ background-color: transparent;
75
+ color: var(--jp-ui-font-color0);
76
+ box-shadow: inset 0 0 0 var(--jp-border-width) var(--jp-input-border-color);
77
+ }
78
+
79
+ .jp-InputGroup input:focus {
80
+ box-shadow: inset 0 0 0 var(--jp-border-width)
81
+ var(--jp-input-active-box-shadow-color),
82
+ inset 0 0 0 3px var(--jp-input-active-box-shadow-color);
83
+ }
84
+
85
+ .jp-InputGroup input::placeholder,
86
+ input::placeholder {
87
+ color: var(--jp-ui-font-color3);
88
+ }
89
+
90
+ .jp-Icon {
91
+ color: var(--jp-layout-color4);
92
+ }
93
+
94
+ .jp-InputGroupAction {
95
+ padding: 6px;
96
+ }
97
+
98
+ .jp-HTMLSelect.bp3-html-select.bp3-minimal select {
99
+ height: 24;
100
+ font-size: var(--jp-ui-font-size1);
101
+ line-height: 14px;
102
+ border-radius: 0;
103
+ display: block;
104
+ color: var(--jp-ui-font-color0);
105
+ }
106
+
107
+ /* Use our own theme for hover styles */
108
+ .jp-HTMLSelect.bp3-html-select.bp3-minimal select:hover {
109
+ color: var(--jp-ui-font-color0);
110
+ background-color: var(--jp-layout-color2);
111
+ }
112
+ select {
113
+ box-sizing: border-box;
114
+ }
package/style/index.css CHANGED
@@ -3,109 +3,9 @@
3
3
  | Distributed under the terms of the Modified BSD License.
4
4
  |----------------------------------------------------------------------------*/
5
5
 
6
- /* Override Blueprint's _reset.scss styles */
7
- html {
8
- box-sizing: unset;
9
- }
6
+ /* This file was auto-generated by ensurePackage() in @jupyterlab/buildutils */
7
+ @import url('~@blueprintjs/core/lib/css/blueprint.css');
8
+ @import url('~@blueprintjs/icons/lib/css/blueprint-icons.css');
9
+ @import url('~@blueprintjs/select/lib/css/blueprint-select.css');
10
10
 
11
- *,
12
- *::before,
13
- *::after {
14
- box-sizing: unset;
15
- }
16
-
17
- body {
18
- color: unset;
19
- font-family: var(--jp-ui-font-family);
20
- }
21
-
22
- p {
23
- margin-top: unset;
24
- margin-bottom: unset;
25
- }
26
-
27
- small {
28
- font-size: unset;
29
- }
30
-
31
- strong {
32
- font-weight: unset;
33
- }
34
-
35
- /* Override Blueprint's _typography.scss styles */
36
- a {
37
- text-decoration: unset;
38
- color: unset;
39
- }
40
-
41
- a:hover {
42
- text-decoration: unset;
43
- color: unset;
44
- }
45
-
46
- /* Override Blueprint's _accessibility.scss styles */
47
- :focus {
48
- outline: unset;
49
- outline-offset: unset;
50
- -moz-outline-radius: unset;
51
- }
52
-
53
- /* Styles for ui-components */
54
- .jp-Button {
55
- border-radius: var(--jp-border-radius);
56
- padding: 0px 12px;
57
- font-size: var(--jp-ui-font-size1);
58
- text-transform: uppercase;
59
- }
60
-
61
- .jp-Button.minimal {
62
- color: unset !important;
63
- }
64
-
65
- .jp-Button.jp-ToolbarButtonComponent {
66
- text-transform: none;
67
- }
68
-
69
- .jp-InputGroup input {
70
- box-sizing: border-box;
71
- border-radius: 0;
72
- background-color: transparent;
73
- color: var(--jp-ui-font-color0);
74
- box-shadow: inset 0 0 0 var(--jp-border-width) var(--jp-input-border-color);
75
- }
76
-
77
- .jp-InputGroup input:focus {
78
- box-shadow: inset 0 0 0 var(--jp-border-width)
79
- var(--jp-input-active-box-shadow-color),
80
- inset 0 0 0 3px var(--jp-input-active-box-shadow-color);
81
- }
82
-
83
- .jp-InputGroup input::placeholder,
84
- input::placeholder {
85
- color: var(--jp-ui-font-color3);
86
- }
87
-
88
- .jp-Icon {
89
- color: var(--jp-layout-color4);
90
- }
91
-
92
- .jp-InputGroupAction {
93
- padding: 6px;
94
- }
95
-
96
- .jp-HTMLSelect select {
97
- height: 24;
98
- font-size: var(--jp-ui-font-size1);
99
- line-height: 14px;
100
- border-radius: 0;
101
- display: block;
102
- color: var(--jp-ui-font-color0);
103
- }
104
-
105
- .jp-HTMLSelect select:hover {
106
- color: var(--jp-ui-font-color0);
107
- }
108
-
109
- select {
110
- box-sizing: border-box;
111
- }
11
+ @import url('./base.css');