@carbon/ibm-products 1.26.0 → 1.27.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +11 -11
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon.css +11 -11
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +11 -11
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +2 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +4 -1
- package/es/components/Datagrid/utils/makeData.js +1 -1
- package/es/components/WebTerminal/WebTerminal.js +1 -1
- package/es/components/WebTerminal/WebTerminalContentWrapper.js +1 -1
- package/es/components/WebTerminal/hooks/index.js +6 -0
- package/es/components/WebTerminal/index.js +6 -0
- package/es/components/WebTerminal/preview-components/Navigation.js +6 -0
- package/es/components/WebTerminal/preview-components/documentationLinks.js +6 -0
- package/es/components/WebTerminal/preview-components/index.js +7 -0
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +2 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +5 -1
- package/lib/components/Datagrid/utils/makeData.js +1 -1
- package/lib/components/WebTerminal/hooks/index.js +6 -0
- package/lib/components/WebTerminal/preview-components/Navigation.js +6 -0
- package/lib/components/WebTerminal/preview-components/documentationLinks.js +6 -0
- package/package.json +2 -2
- package/scss/components/Datagrid/styles/_datagrid.scss +12 -10
- package/scss/components/WebTerminal/_index.scss +7 -0
- package/scss/components/WebTerminal/_storybook-styles.scss +7 -0
- package/scss/components/WebTerminal/_web-terminal.scss +13 -0
@@ -21,6 +21,12 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
21
21
|
|
22
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
23
23
|
|
24
|
+
//
|
25
|
+
// Copyright IBM Corp. 2022, 2022
|
26
|
+
//
|
27
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
28
|
+
// LICENSE file in the root directory of this source tree.
|
29
|
+
//
|
24
30
|
var WebTerminalContext = /*#__PURE__*/(0, _react.createContext)();
|
25
31
|
exports.WebTerminalContext = WebTerminalContext;
|
26
32
|
var componentName = 'WebTerminalProvider';
|
@@ -15,6 +15,12 @@ var _iconsReact = require("@carbon/icons-react");
|
|
15
15
|
|
16
16
|
var _hooks = require("../hooks");
|
17
17
|
|
18
|
+
//
|
19
|
+
// Copyright IBM Corp. 2020, 2022
|
20
|
+
//
|
21
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
22
|
+
// LICENSE file in the root directory of this source tree.
|
23
|
+
//
|
18
24
|
var Navigation = function Navigation() {
|
19
25
|
var _useWebTerminal = (0, _hooks.useWebTerminal)(),
|
20
26
|
openWebTerminal = _useWebTerminal.openWebTerminal;
|
@@ -4,6 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.documentationLinks = void 0;
|
7
|
+
//
|
8
|
+
// Copyright IBM Corp. 2020, 2021
|
9
|
+
//
|
10
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
11
|
+
// LICENSE file in the root directory of this source tree.
|
12
|
+
//
|
7
13
|
var documentationLinks = [{
|
8
14
|
itemText: 'BX/ICP docs',
|
9
15
|
href: '#',
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "1.
|
4
|
+
"version": "1.27.0",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -93,5 +93,5 @@
|
|
93
93
|
"react": "^16.8.6 || ^17.0.1",
|
94
94
|
"react-dom": "^16.8.6 || ^17.0.1"
|
95
95
|
},
|
96
|
-
"gitHead": "
|
96
|
+
"gitHead": "83988f0190d38209fe2fe64539e9aab021a46f8d"
|
97
97
|
}
|
@@ -153,9 +153,12 @@
|
|
153
153
|
overflow-x: auto;
|
154
154
|
}
|
155
155
|
|
156
|
-
.#{$block-class}__table-simple {
|
157
|
-
|
156
|
+
table.#{$block-class}__table-simple {
|
157
|
+
display: flex;
|
158
|
+
overflow: auto;
|
158
159
|
max-height: 100%;
|
160
|
+
flex-direction: column;
|
161
|
+
background-color: $ui-01;
|
159
162
|
}
|
160
163
|
|
161
164
|
.#{$block-class}__head {
|
@@ -195,6 +198,13 @@
|
|
195
198
|
white-space: nowrap;
|
196
199
|
}
|
197
200
|
|
201
|
+
.#{$block-class}__defaultStringRenderer.#{$block-class}__defaultStringRenderer--multiline {
|
202
|
+
display: -webkit-box;
|
203
|
+
-webkit-box-orient: vertical;
|
204
|
+
-webkit-line-clamp: 2;
|
205
|
+
white-space: initial;
|
206
|
+
}
|
207
|
+
|
198
208
|
.#{$block-class}__expanded-row {
|
199
209
|
display: flex;
|
200
210
|
overflow: hidden;
|
@@ -326,14 +336,6 @@
|
|
326
336
|
min-width: 0 !important;
|
327
337
|
}
|
328
338
|
|
329
|
-
.#{$block-class}__table-simple::-webkit-scrollbar {
|
330
|
-
width: 6px;
|
331
|
-
background-color: $ui-background;
|
332
|
-
}
|
333
|
-
|
334
|
-
.#{$block-class}__table-simple::-webkit-scrollbar-thumb {
|
335
|
-
background-color: $text-03;
|
336
|
-
}
|
337
339
|
.#{$block-class}__sticky.#{$block-class}__simple-body {
|
338
340
|
overflow: auto;
|
339
341
|
}
|
@@ -1,3 +1,10 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2021, 2022
|
3
|
+
//
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
6
|
+
//
|
7
|
+
|
1
8
|
/* stylelint-disable */
|
2
9
|
|
3
10
|
@import '../../global/styles/project-settings';
|
@@ -1,6 +1,19 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2021, 2022
|
3
|
+
//
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
6
|
+
//
|
7
|
+
|
1
8
|
// Standard imports.
|
2
9
|
@import '../../global/styles/project-settings';
|
3
10
|
|
11
|
+
// WebTerminal uses the following Carbon components:
|
12
|
+
// Button
|
13
|
+
// OverflowMenu
|
14
|
+
@import 'carbon-components/scss/components/button/button';
|
15
|
+
@import 'carbon-components/scss/components/overflow-menu/overflow-menu';
|
16
|
+
|
4
17
|
$web-terminal-width: 40rem; // 640px
|
5
18
|
$block-class: #{$pkg-prefix}--web-terminal;
|
6
19
|
|