@carbon/ibm-products 2.0.0-rc.28 → 2.0.0-rc.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. package/css/config.css +3 -0
  2. package/css/config.css.map +1 -0
  3. package/css/index-full-carbon.css +55 -134
  4. package/css/index-full-carbon.css.map +1 -1
  5. package/css/index-full-carbon.min.css +5 -3
  6. package/css/index-full-carbon.min.css.map +1 -1
  7. package/css/index-without-carbon-released-only.css +54 -63
  8. package/css/index-without-carbon-released-only.css.map +1 -1
  9. package/css/index-without-carbon-released-only.min.css +4 -2
  10. package/css/index-without-carbon-released-only.min.css.map +1 -1
  11. package/css/index-without-carbon.css +55 -134
  12. package/css/index-without-carbon.css.map +1 -1
  13. package/css/index-without-carbon.min.css +5 -3
  14. package/css/index-without-carbon.min.css.map +1 -1
  15. package/css/index.css +55 -134
  16. package/css/index.css.map +1 -1
  17. package/css/index.min.css +5 -3
  18. package/css/index.min.css.map +1 -1
  19. package/es/components/AboutModal/AboutModal.js +41 -62
  20. package/es/components/AddSelect/AddSelectBody.js +4 -2
  21. package/es/components/AddSelect/AddSelectColumn.js +11 -5
  22. package/es/components/AddSelect/AddSelectFilter.js +5 -4
  23. package/es/components/AddSelect/AddSelectRow.js +3 -3
  24. package/es/components/AddSelect/AddSelectSort.js +2 -1
  25. package/es/components/Datagrid/index.js +1 -0
  26. package/es/components/Datagrid/useEditableCell.js +13 -0
  27. package/es/components/Datagrid/useInlineEdit.js +16 -11
  28. package/es/components/ExampleComponent/ExampleDeprecatedComponent.js +24 -0
  29. package/es/components/Tearsheet/Tearsheet.js +5 -0
  30. package/es/components/index.js +0 -1
  31. package/es/global/js/package-settings.js +2 -2
  32. package/es/settings.js +40 -20
  33. package/lib/components/AboutModal/AboutModal.js +40 -62
  34. package/lib/components/AddSelect/AddSelectBody.js +4 -2
  35. package/lib/components/AddSelect/AddSelectColumn.js +11 -5
  36. package/lib/components/AddSelect/AddSelectFilter.js +4 -3
  37. package/lib/components/AddSelect/AddSelectRow.js +2 -2
  38. package/lib/components/AddSelect/AddSelectSort.js +2 -1
  39. package/lib/components/Datagrid/index.js +8 -0
  40. package/lib/components/Datagrid/useEditableCell.js +23 -0
  41. package/lib/components/Datagrid/useInlineEdit.js +22 -11
  42. package/lib/components/ExampleComponent/ExampleDeprecatedComponent.js +38 -0
  43. package/lib/components/Tearsheet/Tearsheet.js +5 -0
  44. package/lib/components/index.js +0 -8
  45. package/lib/global/js/package-settings.js +2 -2
  46. package/lib/settings.js +43 -21
  47. package/package.json +2 -2
  48. package/scss/components/AboutModal/_about-modal.scss +34 -53
  49. package/scss/components/AboutModal/_storybook-styles.scss +10 -4
  50. package/scss/components/AddSelect/_add-select.scss +7 -3
  51. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +1 -1
  52. package/scss/components/_index-with-carbon.scss +0 -1
  53. package/scss/components/_index.scss +0 -1
  54. package/scss/config.scss +1 -0
  55. package/es/components/ModifiedTabs/ModifiedTabLabelNew.js +0 -34
  56. package/es/components/ModifiedTabs/ModifiedTabLabelWithClose.js +0 -47
  57. package/es/components/ModifiedTabs/ModifiedTabs.js +0 -141
  58. package/es/components/ModifiedTabs/index.js +0 -1
  59. package/lib/components/ModifiedTabs/ModifiedTabLabelNew.js +0 -50
  60. package/lib/components/ModifiedTabs/ModifiedTabLabelWithClose.js +0 -63
  61. package/lib/components/ModifiedTabs/ModifiedTabs.js +0 -164
  62. package/lib/components/ModifiedTabs/index.js +0 -13
  63. package/scss/components/ModifiedTabs/_carbon-imports.scss +0 -10
  64. package/scss/components/ModifiedTabs/_index-with-carbon.scss +0 -9
  65. package/scss/components/ModifiedTabs/_index.scss +0 -8
  66. package/scss/components/ModifiedTabs/_modified-tabs.scss +0 -89
  67. package/scss/components/ModifiedTabs/_storybook-styles.scss +0 -6
@@ -134,16 +134,17 @@ var AddSelectFilter = function AddSelectFilter(_ref) {
134
134
  className: filterBtnClassnames,
135
135
  size: "md",
136
136
  tooltipPosition: "left"
137
- }), open && /*#__PURE__*/_react.default.createElement("div", {
138
- className: blockClass
137
+ }), open && /*#__PURE__*/_react.default.createElement(_react2.Layer, {
138
+ className: blockClass,
139
+ level: 1
139
140
  }, /*#__PURE__*/_react.default.createElement("div", {
140
141
  className: "".concat(blockClass, "-content")
141
142
  }, /*#__PURE__*/_react.default.createElement("p", null, filtersLabel), /*#__PURE__*/_react.default.createElement("div", {
142
143
  className: "".concat(blockClass, "-opts")
143
144
  }, filterOpts.map(function (filterOpts) {
144
145
  return /*#__PURE__*/_react.default.createElement(_react2.Dropdown, {
145
- id: filterOpts.id,
146
146
  key: filterOpts.id,
147
+ id: filterOpts.id,
147
148
  titleText: filterOpts.label,
148
149
  items: filterOpts.opts,
149
150
  onChange: function onChange(value) {
@@ -174,7 +174,7 @@ var AddSelectRow = function AddSelectRow(_ref) {
174
174
  item: item,
175
175
  selected: selected,
176
176
  onClick: handleMultiSelection
177
- }), hasModifiers && /*#__PURE__*/_react.default.createElement(_react2.Dropdown, {
177
+ }), hasModifiers && /*#__PURE__*/_react.default.createElement(_react2.Layer, null, /*#__PURE__*/_react.default.createElement(_react2.Dropdown, {
178
178
  id: "add-select-modifier-".concat(item.id),
179
179
  type: "inline",
180
180
  items: modifiers.options,
@@ -186,7 +186,7 @@ var AddSelectRow = function AddSelectRow(_ref) {
186
186
  var selectedItem = _ref3.selectedItem;
187
187
  return modifierHandler(item.id, selectedItem);
188
188
  }
189
- })) : /*#__PURE__*/_react.default.createElement(_AddSelectFormControl.AddSelectFormControl, {
189
+ }))) : /*#__PURE__*/_react.default.createElement(_AddSelectFormControl.AddSelectFormControl, {
190
190
  type: "radio",
191
191
  item: item,
192
192
  selected: selected,
@@ -71,7 +71,8 @@ var AddSelectSort = function AddSelectSort(_ref) {
71
71
  },
72
72
  className: "".concat(blockClass, "_overflow"),
73
73
  flipped: true,
74
- ariaLabel: sortByLabel
74
+ ariaLabel: sortByLabel,
75
+ iconDescription: sortByLabel
75
76
  }, sortByOpts.map(function (opt) {
76
77
  return /*#__PURE__*/_react.default.createElement(_react2.OverflowMenuItem, {
77
78
  className: "".concat(blockClass, "_overflow-item"),
@@ -59,6 +59,12 @@ Object.defineProperty(exports, "useDisableSelectRows", {
59
59
  return _useDisableSelectRows.default;
60
60
  }
61
61
  });
62
+ Object.defineProperty(exports, "useEditableCell", {
63
+ enumerable: true,
64
+ get: function get() {
65
+ return _useEditableCell.default;
66
+ }
67
+ });
62
68
  Object.defineProperty(exports, "useExpandedRow", {
63
69
  enumerable: true,
64
70
  get: function get() {
@@ -162,6 +168,8 @@ var _useColumnOrder = _interopRequireDefault(require("./useColumnOrder"));
162
168
 
163
169
  var _useInlineEdit = _interopRequireDefault(require("./useInlineEdit"));
164
170
 
171
+ var _useEditableCell = _interopRequireDefault(require("./useEditableCell"));
172
+
165
173
  var _useFiltering = _interopRequireDefault(require("./useFiltering"));
166
174
 
167
175
  var _getAutoSizedColumnWidth = require("./utils/getAutoSizedColumnWidth");
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _useInlineEdit = _interopRequireDefault(require("./useInlineEdit"));
11
+
12
+ /**
13
+ * Copyright IBM Corp. 2023, 2023
14
+ *
15
+ * This source code is licensed under the Apache-2.0 license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */
18
+ var useEditableCell = function useEditableCell(hooks) {
19
+ (0, _useInlineEdit.default)(hooks, 'usingEditableCell');
20
+ };
21
+
22
+ var _default = useEditableCell;
23
+ exports.default = _default;
@@ -2,6 +2,8 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
5
7
  Object.defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
@@ -9,7 +11,7 @@ exports.default = void 0;
9
11
 
10
12
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
13
 
12
- var _react = _interopRequireDefault(require("react"));
14
+ var _react = _interopRequireWildcard(require("react"));
13
15
 
14
16
  var _settings = require("../../settings");
15
17
 
@@ -17,16 +19,25 @@ var _classnames = _interopRequireDefault(require("classnames"));
17
19
 
18
20
  var _InlineEditCell = require("./Datagrid/addons/InlineEdit/InlineEditCell");
19
21
 
20
- /*
21
- * Licensed Materials - Property of IBM
22
- * 5724-Q36
23
- * (c) Copyright IBM Corp. 2022
24
- * US Government Users Restricted Rights - Use, duplication or disclosure
25
- * restricted by GSA ADP Schedule Contract with IBM Corp.
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+
24
+ 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; }
25
+
26
+ /**
27
+ * Copyright IBM Corp. 2022, 2023
28
+ *
29
+ * This source code is licensed under the Apache-2.0 license found in the
30
+ * LICENSE file in the root directory of this source tree.
26
31
  */
27
32
  var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
28
33
 
29
- var useInlineEdit = function useInlineEdit(hooks) {
34
+ var useInlineEdit = function useInlineEdit(hooks, usingEditableCell) {
35
+ (0, _react.useEffect)(function () {
36
+ if (!usingEditableCell) {
37
+ _settings.pkg.checkReportFeatureEnabled('Datagrid.useInlineEdit');
38
+ }
39
+ }, [usingEditableCell]);
40
+
30
41
  var addInlineEdit = function addInlineEdit(props, _ref) {
31
42
  var _cell$column, _cell$column$inlineEd, _instance$columns$fil;
32
43
 
@@ -57,9 +68,9 @@ var useInlineEdit = function useInlineEdit(hooks) {
57
68
  }
58
69
 
59
70
  return [props, {
60
- className: (0, _classnames.default)("".concat(blockClass, "__cell"), (0, _defineProperty2.default)({}, "".concat(blockClass, "__cell-inline-edit"), true)),
71
+ className: (0, _classnames.default)("".concat(blockClass, "__cell"), (0, _defineProperty2.default)({}, "".concat(blockClass, "__cell-inline-edit"), !!usingEditableCell || _settings.pkg.isFeatureEnabled('Datagrid.useInlineEdit') ? true : '')),
61
72
  role: 'gridcell',
62
- children: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, inlineEditType === 'text' && renderInlineEditComponent(inlineEditType), inlineEditType === 'number' && renderInlineEditComponent(inlineEditType), inlineEditType === 'selection' && renderInlineEditComponent(inlineEditType), inlineEditType === 'date' && renderInlineEditComponent(inlineEditType), !inlineEditType && /*#__PURE__*/_react.default.createElement(_InlineEditCell.InlineEditCell, {
73
+ children: (!!usingEditableCell || _settings.pkg.isFeatureEnabled('Datagrid.useInlineEdit')) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, inlineEditType === 'text' && renderInlineEditComponent(inlineEditType), inlineEditType === 'number' && renderInlineEditComponent(inlineEditType), inlineEditType === 'selection' && renderInlineEditComponent(inlineEditType), inlineEditType === 'date' && renderInlineEditComponent(inlineEditType), !inlineEditType && /*#__PURE__*/_react.default.createElement(_InlineEditCell.InlineEditCell, {
63
74
  config: columnInlineEditConfig,
64
75
  tabIndex: -1,
65
76
  value: cell.value,
@@ -76,7 +87,7 @@ var useInlineEdit = function useInlineEdit(hooks) {
76
87
  hooks.getCellProps.push(addInlineEdit);
77
88
  hooks.useInstance.push(function (instance) {
78
89
  Object.assign(instance, {
79
- withInlineEdit: true
90
+ withInlineEdit: !!usingEditableCell || _settings.pkg.isFeatureEnabled('Datagrid.useInlineEdit') ? true : false
80
91
  });
81
92
  });
82
93
  };
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.ExampleDeprecatedComponent = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _settings = require("../../settings");
13
+
14
+ var _ExampleComponent = require("./ExampleComponent");
15
+
16
+ /**
17
+ * Copyright IBM Corp. 2023, 2023
18
+ *
19
+ * This source code is licensed under the Apache-2.0 license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ */
22
+ var componentName = 'ExampleDeprecatedComponent'; // This is NOT a full component example. It is only intended to show the deprecation of a component.
23
+
24
+ var ExampleDeprecatedComponent = function ExampleDeprecatedComponent() {
25
+ return /*#__PURE__*/_react.default.createElement(_ExampleComponent.ExampleComponent, {
26
+ primaryButtonLabel: "primary",
27
+ secondaryButtonLabel: "secondary"
28
+ });
29
+ }; // example of a deprecation warning
30
+
31
+
32
+ exports.ExampleDeprecatedComponent = ExampleDeprecatedComponent;
33
+ ExampleDeprecatedComponent.deprecated = {
34
+ level: 'warn',
35
+ details: "This an example component deprecation message used by 'checkComponentEnabled'."
36
+ }; // The component enable should log the deprecation
37
+
38
+ exports.ExampleDeprecatedComponent = ExampleDeprecatedComponent = _settings.pkg.checkComponentEnabled(ExampleDeprecatedComponent, componentName);
@@ -199,6 +199,11 @@ Tearsheet.propTypes = _objectSpread({
199
199
  */
200
200
  portalTarget: _propTypes.default.node,
201
201
 
202
+ /**
203
+ * Specify a CSS selector that matches the DOM element that should be focused when the Modal opens
204
+ */
205
+ selectorPrimaryFocus: _propTypes.default.string,
206
+
202
207
  /**
203
208
  * The main title of the tearsheet, displayed in the header area.
204
209
  */
@@ -177,12 +177,6 @@ Object.defineProperty(exports, "ImportModal", {
177
177
  return _ImportModal.ImportModal;
178
178
  }
179
179
  });
180
- Object.defineProperty(exports, "ModifiedTabs", {
181
- enumerable: true,
182
- get: function get() {
183
- return _ModifiedTabs.ModifiedTabs;
184
- }
185
- });
186
180
  Object.defineProperty(exports, "MultiAddSelect", {
187
181
  enumerable: true,
188
182
  get: function get() {
@@ -482,8 +476,6 @@ var _HTTPErrors = require("./HTTPErrors");
482
476
 
483
477
  var _ImportModal = require("./ImportModal");
484
478
 
485
- var _ModifiedTabs = require("./ModifiedTabs");
486
-
487
479
  var _MultiAddSelect = require("./MultiAddSelect");
488
480
 
489
481
  var _NotificationsPanel = require("./NotificationsPanel");
@@ -63,7 +63,6 @@ var defaults = {
63
63
  WebTerminalContentWrapper: true,
64
64
  WebTerminalProvider: true,
65
65
  // other public components not yet reviewed and released:
66
- ModifiedTabs: false,
67
66
  Toolbar: false,
68
67
  ToolbarButton: false,
69
68
  ToolbarGroup: false,
@@ -82,7 +81,8 @@ var defaults = {
82
81
  feature: {
83
82
  'a-new-feature': false,
84
83
  'default-portal-target-body': true,
85
- 'Datagrid.useInfiniteScroll': false
84
+ 'Datagrid.useInfiniteScroll': false,
85
+ 'Datagrid.useInlineEdit': false
86
86
  }
87
87
  };
88
88
 
package/lib/settings.js CHANGED
@@ -15,34 +15,54 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _themes = require("@carbon/themes");
17
17
 
18
+ var _pconsole = _interopRequireDefault(require("./global/js/utils/pconsole"));
19
+
18
20
  var carbon = {
19
21
  get themes() {
20
22
  return _themes.themes;
21
23
  },
22
24
 
23
25
  prefix: 'cds'
26
+ };
27
+ exports.carbon = carbon;
28
+
29
+ var componentDeprecatedWarning = function componentDeprecatedWarning(name, details) {
30
+ return "Carbon for IBM Products (WARNING): Component \"".concat(name, "\" is deprecated. ").concat(details);
31
+ };
32
+
33
+ _packageSettings.default.logDeprecated = function (component, name) {
34
+ if (component !== null && component !== void 0 && component.deprecated) {
35
+ var _pconsole$level;
36
+
37
+ var _component$deprecated = component.deprecated,
38
+ level = _component$deprecated.level,
39
+ details = _component$deprecated.details;
40
+ var logUsing = (_pconsole$level = _pconsole.default === null || _pconsole.default === void 0 ? void 0 : _pconsole.default[level]) !== null && _pconsole$level !== void 0 ? _pconsole$level : _pconsole.default.error;
41
+ logUsing(componentDeprecatedWarning(name || component.displayName, details));
42
+ }
24
43
  }; // Check that a component is enabled. This function returns a stub which checks
25
44
  // the component status on first use and then renders as the component or as
26
45
  // a Canary placeholder initialized with the name of the replaced component.
27
46
  // Note that the returned stub carries any other properties which had already
28
47
  // been assigned (eg propTypes, displayName, etc).
29
48
 
30
- exports.carbon = carbon;
31
49
 
32
50
  _packageSettings.default.checkComponentEnabled = function (component, name) {
33
51
  if (component.render) {
34
52
  // The component is a forward-ref, so make a stub forward-ref.
35
53
  var forward = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
36
- return (// Replace the stub's render fn so this test only happens once.
37
- (forward.render = _packageSettings.default.isComponentEnabled(name) || !_packageSettings.default.isComponentPublic(name) ? // If the component is enabled, or if it's not a public component,
38
- // replace the stub's render fn with the component's render fn.
39
- component.render : // Note that Canary is a direct render fn (not a forward-ref) and
40
- // will ignore the passed props and ref (if any)
41
- _Canary.Canary.bind(undefined, {
42
- componentName: name
43
- }))( // Call it now (after this it will be directly called).
44
- props, ref)
45
- );
54
+ _packageSettings.default.logDeprecated(component, name); // may log don't care about result
55
+ // Replace the stub's render fn so this test only happens once.
56
+
57
+
58
+ return (forward.render = _packageSettings.default.isComponentEnabled(name) || !_packageSettings.default.isComponentPublic(name) ? // If the component is enabled, or if it's not a public component,
59
+ // replace the stub's render fn with the component's render fn.
60
+ component.render : // Note that Canary is a direct render fn (not a forward-ref) and
61
+ // will ignore the passed props and ref (if any)
62
+ _Canary.Canary.bind(undefined, {
63
+ componentName: name
64
+ }))( // Call it now (after this it will be directly called).
65
+ props, ref);
46
66
  }); // Transfer object properties already assigned (eg propTypes, displayName)
47
67
  // then merge in the stub forward-ref which checks the component status
48
68
  // when first used.
@@ -52,16 +72,18 @@ _packageSettings.default.checkComponentEnabled = function (component, name) {
52
72
  } else {
53
73
  // The component is a direct render fn, so make a stub render fn.
54
74
  var _render = function render(props) {
55
- return (// Replace the stub render fn so this test only happens once.
56
- (_render = _packageSettings.default.isComponentEnabled(name) || !_packageSettings.default.isComponentPublic(name) ? // If the component is enabled, or if it's not a public component,
57
- // replace the stub render fn with the component render fn.
58
- component : // Replace the stub render fn with the Canary render fn, which will
59
- // ignore the passed props.
60
- _Canary.Canary.bind(undefined, {
61
- componentName: name
62
- }))( // Call it now (after this it will be directly called).
63
- props)
64
- );
75
+ _packageSettings.default.logDeprecated(component, name); // may log don't care about result
76
+ // Replace the stub render fn so this test only happens once.
77
+
78
+
79
+ return (_render = _packageSettings.default.isComponentEnabled(name) || !_packageSettings.default.isComponentPublic(name) ? // If the component is enabled, or if it's not a public component,
80
+ // replace the stub render fn with the component render fn.
81
+ component : // Replace the stub render fn with the Canary render fn, which will
82
+ // ignore the passed props.
83
+ _Canary.Canary.bind(undefined, {
84
+ componentName: name
85
+ }))( // Call it now (after this it will be directly called).
86
+ props);
65
87
  }; // Transfer object properties already assigned (eg propTypes, displayName)
66
88
  // to a function which calls the stub render fn which checks the component
67
89
  // status when first used.
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": "2.0.0-rc.28",
4
+ "version": "2.0.0-rc.29",
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": "d459d01283f68efa6a4bfbdc79a97bf508f83f6b"
96
+ "gitHead": "16ba4d09a98be1ea3c64f6ee4323d08529e12a34"
97
97
  }
@@ -21,61 +21,59 @@ $block-class: #{c4p-settings.$pkg-prefix}--about-modal;
21
21
  }
22
22
 
23
23
  .#{$block-class} .#{$block-class}__logo {
24
- margin: $spacing-05;
24
+ margin: $spacing-05 $spacing-05 $spacing-07 $spacing-05;
25
25
  }
26
26
 
27
27
  .#{$block-class} .#{$block-class}__header {
28
- padding: 0 20% $spacing-03 $spacing-05;
28
+ padding: 0 20% 0 $spacing-05;
29
29
  margin-bottom: 0;
30
30
  grid-row: auto;
31
31
  }
32
32
 
33
33
  .#{$block-class} .#{$block-class}__title {
34
- @include type.type-style('productive-heading-04');
34
+ @include type.type-style('heading-04');
35
35
 
36
36
  color: $text-primary;
37
37
  }
38
38
 
39
39
  .#{$block-class} .#{$block-class}__body {
40
- @include type.type-style('body-short-02');
40
+ @include type.type-style('body-compact-02');
41
41
 
42
42
  min-height: $spacing-10;
43
43
  padding: 0 20% 0 $spacing-05;
44
+ margin-bottom: $spacing-06;
44
45
  grid-row: auto;
45
46
  overflow-x: hidden;
46
47
  overflow-y: auto;
47
48
  }
48
49
 
49
- .#{$block-class}.#{$block-class}--with-tabs .#{$block-class}__body {
50
- min-height: calc(#{$spacing-10} + #{$spacing-08});
51
- // stylelint-disable-next-line carbon/layout-token-use
52
- margin-bottom: calc(#{$spacing-09} + #{$spacing-08});
53
- }
54
-
55
- .#{$block-class}.#{$block-class}--with-tabs
56
- .#{c4p-settings.$carbon-prefix}--modal-content--overflow-indicator {
57
- // stylelint-disable-next-line carbon/layout-token-use
58
- bottom: calc(#{$spacing-09} + #{$spacing-08});
59
- }
60
-
61
50
  .#{$block-class}
62
51
  .#{c4p-settings.$carbon-prefix}--modal-content--overflow-indicator {
52
+ bottom: #{$spacing-06};
63
53
  background-image: linear-gradient(to bottom, #00000000, $layer-01);
64
54
  }
65
55
 
66
56
  .#{$block-class} .#{$block-class}__links-container {
67
- margin-top: $spacing-05;
57
+ @include type.type-style('body-compact-01');
58
+
59
+ margin-top: $spacing-06;
60
+ }
61
+
62
+ .#{$block-class} .#{$block-class}__version {
63
+ color: $text-secondary;
68
64
  }
69
65
 
70
66
  .#{$block-class} .#{$block-class}__links-container a + a {
71
67
  padding-left: $spacing-03;
72
- border-left: 1px solid $text-primary;
68
+ border-left: 1px solid $border-strong-01;
73
69
  margin-left: $spacing-03;
74
70
  }
75
71
 
76
- .#{$block-class} .#{$block-class}__legal-text,
72
+ .#{$block-class} .#{$block-class}__content,
77
73
  .#{$block-class} .#{$block-class}__copyright-text {
78
- margin-top: $spacing-07;
74
+ @include type.type-style('label-01');
75
+
76
+ margin-top: $spacing-06;
79
77
  margin-bottom: 0;
80
78
  color: $text-secondary;
81
79
  }
@@ -84,46 +82,29 @@ $block-class: #{c4p-settings.$pkg-prefix}--about-modal;
84
82
  margin-top: $spacing-05;
85
83
  }
86
84
 
85
+ p.c4p--about-modal__content:first-child,
86
+ p.c4p--about-modal__copyright-text:first-child {
87
+ margin-top: $spacing-07;
88
+ }
89
+
87
90
  .#{$block-class} .#{$block-class}__footer {
88
91
  position: relative;
89
- height: $spacing-03 + $spacing-10;
92
+ height: calc(
93
+ #{$spacing-05} + #{$spacing-02} + #{$spacing-06} + #{$spacing-07}
94
+ );
90
95
  flex-direction: column;
91
96
  justify-content: center;
92
- background-color: $background-inverse;
93
- color: $text-inverse;
94
- }
95
-
96
- .#{$block-class} .#{$block-class}__tab-container {
97
- position: absolute;
98
- bottom: 0;
97
+ background-color: $layer-02;
99
98
  }
100
99
 
101
- .#{$block-class} .#{$block-class}__version-label,
102
- .#{$block-class} .#{$block-class}__version-number {
103
- @include type.type-style('body-short-01');
104
-
105
- padding-left: $spacing-05;
106
- margin-top: 0;
107
- margin-bottom: 0;
108
- color: $text-inverse;
109
- }
100
+ .#{$block-class} .#{$block-class}__footer-label {
101
+ @include type.type-style('label-01');
110
102
 
111
- .#{$block-class} .#{$block-class}__version-label {
112
- @include font-weight('semibold');
113
- }
114
-
115
- .#{$block-class}
116
- .#{c4p-settings.$carbon-prefix}--tabs
117
- .#{c4p-settings.$carbon-prefix}--tabs__nav-link,
118
- .#{$block-class} .#{c4p-settings.$carbon-prefix}--tab-content {
119
- @include type.type-style('body-short-01');
120
- }
121
-
122
- .#{$block-class} .#{c4p-settings.$carbon-prefix}--tab-content {
123
- height: $spacing-03 + $spacing-10;
103
+ padding: $spacing-05 0 0 $spacing-05;
104
+ margin-bottom: $spacing-02;
105
+ color: $text-secondary;
124
106
  }
125
107
 
126
- .#{$block-class} .#{c4p-settings.$carbon-prefix}--tab-content:not([hidden]) {
127
- display: flex;
128
- align-items: center;
108
+ .#{$block-class} .#{$block-class}__footer-content {
109
+ padding: 0 0 $spacing-05 $spacing-05;
129
110
  }
@@ -8,9 +8,15 @@
8
8
  @use '../../global/styles/project-settings' as *;
9
9
  @use '@carbon/styles/scss/spacing' as *;
10
10
 
11
- .about-modal-stories--tech-logo {
12
- width: 2.25rem;
13
- height: 2.25rem;
14
- margin-right: $spacing-05;
11
+ // Standard imports.
12
+ @use '../../global/styles/project-settings' as c4p-settings;
13
+
14
+ // The block part of our conventional BEM class names (blockClass__E--M).
15
+ $block-class: #{c4p-settings.$pkg-prefix}--about-modal;
16
+
17
+ .#{$block-class}__stories--tech-logo {
18
+ width: $spacing-06;
19
+ height: $spacing-06;
20
+ margin-right: $spacing-03;
15
21
  object-fit: contain;
16
22
  }
@@ -265,6 +265,10 @@ $tearsheet-class: #{$pkg-prefix}--tearsheet;
265
265
  }
266
266
  }
267
267
 
268
+ .#{$block-class}-sort_overflow {
269
+ z-index: 9999;
270
+ }
271
+
268
272
  .#{$block-class}__tags {
269
273
  display: flex;
270
274
  align-items: center;
@@ -278,7 +282,7 @@ $tearsheet-class: #{$pkg-prefix}--tearsheet;
278
282
 
279
283
  .#{$block-class}__global-filter {
280
284
  position: absolute;
281
- z-index: 6000;
285
+ z-index: 999999;
282
286
  right: 0;
283
287
  width: 100%;
284
288
  max-width: 40rem;
@@ -461,7 +465,7 @@ button.#{$block-class}__global-filter-toggle {
461
465
  margin-top: $spacing-03;
462
466
  }
463
467
 
464
- .#{$block-class} .#{$carbon-prefix}--tooltip,
465
- .#{$block-class} .#{$carbon-prefix}--overflow-menu-options {
468
+ .#{$block-class} + div .#{$carbon-prefix}--tooltip,
469
+ .#{$block-class} + div .#{$carbon-prefix}--overflow-menu-options {
466
470
  z-index: 9000;
467
471
  }
@@ -274,7 +274,7 @@ $header-cell-background: $layer-accent-01;
274
274
  .#{$block-class}__th--selected-header,
275
275
  .#{$block-class}__td-th--selected-header.#{$block-class}__td {
276
276
  background-color: $background-inverse;
277
- color: $text-on-color;
277
+ color: $text-inverse;
278
278
 
279
279
  /* stylelint-disable-next-line max-nesting-depth */
280
280
  &:focus,
@@ -25,7 +25,6 @@
25
25
  @use './ExpressiveCard/index-with-carbon' as *;
26
26
  @use './HTTPErrors/index-with-carbon' as *;
27
27
  @use './ImportModal/index-with-carbon' as *;
28
- @use './ModifiedTabs/index-with-carbon' as *;
29
28
  @use './MultiAddSelect/index-with-carbon' as *;
30
29
  @use './NotificationsPanel/index-with-carbon' as *;
31
30
  @use './PageHeader/index-with-carbon' as *;
@@ -26,7 +26,6 @@
26
26
  @use './FilterSummary/index';
27
27
  @use './HTTPErrors';
28
28
  @use './ImportModal';
29
- @use './ModifiedTabs';
30
29
  @use './MultiAddSelect';
31
30
  @use './NotificationsPanel';
32
31
  @use './PageHeader';
@@ -0,0 +1 @@
1
+ @forward './global/styles/project-settings';
@@ -1,34 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2020, 2020
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
- import React from 'react';
8
- import PropTypes from 'prop-types';
9
- import { Add } from '@carbon/react/icons';
10
- import { pkg } from '../../settings';
11
- var blockClass = "".concat(pkg.prefix, "--modified-tabs");
12
- export var ModifiedTabLabelNew = function ModifiedTabLabelNew(_ref) {
13
- var label = _ref.label;
14
- return /*#__PURE__*/React.createElement("span", {
15
- className: "".concat(blockClass, "__tab-new")
16
- }, /*#__PURE__*/React.createElement("span", {
17
- className: "".concat(blockClass, "__tab-new__label")
18
- }, label), /*#__PURE__*/React.createElement("span", {
19
- className: "".concat(blockClass, "__tab-new-img")
20
- }, /*#__PURE__*/React.createElement(Add, {
21
- size: 20
22
- })));
23
- };
24
- ModifiedTabLabelNew.propTypes = {
25
- /**
26
- * Label content of the tab
27
- */
28
- label: PropTypes.string,
29
-
30
- /**
31
- * Optional onClick handler
32
- */
33
- onClick: PropTypes.func
34
- };