@carbon/ibm-products 1.58.0 → 1.59.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/css/index-full-carbon.css +56 -44
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +3 -3
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon.css +10 -0
- 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 +54 -44
- package/css/index.css.map +1 -1
- package/css/index.min.css +2 -2
- package/css/index.min.css.map +1 -1
- package/es/components/Checklist/Checklist.js +3 -3
- package/es/components/Checklist/ChecklistChart.js +1 -7
- package/es/components/CreateFullPage/CreateFullPage.js +25 -3
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +34 -18
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +2 -37
- package/es/components/InlineTip/InlineTip.js +5 -1
- package/es/components/InlineTip/InlineTipButton.js +1 -8
- package/es/components/InlineTip/InlineTipLink.js +1 -8
- package/es/global/js/utils/test-helper.js +2 -2
- package/lib/components/Checklist/Checklist.js +3 -3
- package/lib/components/Checklist/ChecklistChart.js +1 -7
- package/lib/components/CreateFullPage/CreateFullPage.js +24 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +35 -19
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +2 -40
- package/lib/components/InlineTip/InlineTip.js +4 -0
- package/lib/components/InlineTip/InlineTipButton.js +2 -9
- package/lib/components/InlineTip/InlineTipLink.js +2 -9
- package/lib/global/js/utils/test-helper.js +2 -2
- package/package.json +10 -10
- package/scss/components/ComboButton/_combo-button.scss +2 -1
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +6 -1
- package/scss/components/Toolbar/_toolbar.scss +6 -3
|
@@ -17,6 +17,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
17
17
|
var _utils = require("./utils");
|
|
18
18
|
var _SteppedAnimatedMedia = require("../SteppedAnimatedMedia");
|
|
19
19
|
var _devtools = require("../../global/js/utils/devtools");
|
|
20
|
+
var _uuidv = _interopRequireDefault(require("../../global/js/utils/uuidv4"));
|
|
20
21
|
var _settings = require("../../settings");
|
|
21
22
|
var _excluded = ["children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "narrow", "onClick", "onClose", "tertiaryButtonLabel", "action", "title", "media"];
|
|
22
23
|
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); }
|
|
@@ -78,6 +79,7 @@ var InlineTip = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
78
79
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
79
80
|
isCollapsed = _useState2[0],
|
|
80
81
|
setIsCollapsed = _useState2[1];
|
|
82
|
+
var labelId = (0, _react.useRef)((0, _uuidv.default)()).current;
|
|
81
83
|
var previewText = (0, _react.useMemo)(function () {
|
|
82
84
|
return (0, _utils.getComponentText)(_react.default.Children.toArray(children));
|
|
83
85
|
}, [children]);
|
|
@@ -93,6 +95,7 @@ var InlineTip = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
93
95
|
setIsCollapsed(collapsible);
|
|
94
96
|
}, [collapsible]);
|
|
95
97
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
|
98
|
+
"aria-labelledby": labelId,
|
|
96
99
|
className: (0, _classnames.default)(blockClass,
|
|
97
100
|
// Apply the block class to the main HTML element
|
|
98
101
|
className,
|
|
@@ -114,6 +117,7 @@ var InlineTip = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
|
114
117
|
}, /*#__PURE__*/_react.default.createElement(_iconsReact.Idea20, null)), /*#__PURE__*/_react.default.createElement("div", {
|
|
115
118
|
className: "".concat(blockClass, "__content")
|
|
116
119
|
}, /*#__PURE__*/_react.default.createElement("h6", {
|
|
120
|
+
id: labelId,
|
|
117
121
|
className: "".concat(blockClass, "__title")
|
|
118
122
|
}, title), /*#__PURE__*/_react.default.createElement("section", {
|
|
119
123
|
className: "".concat(blockClass, "__body")
|
|
@@ -38,7 +38,7 @@ var componentName = 'InlineTipButton';
|
|
|
38
38
|
// };
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
* TODO: A
|
|
41
|
+
* TODO: A standard Carbon button, styled specifically for use inside InlineTip.
|
|
42
42
|
*/
|
|
43
43
|
var InlineTipButton = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
44
44
|
var children = _ref.children,
|
|
@@ -61,17 +61,10 @@ var InlineTipButton = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref
|
|
|
61
61
|
}), children);
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
// Return a placeholder if not released and not enabled by feature flag
|
|
65
|
-
exports.InlineTipButton = InlineTipButton;
|
|
66
|
-
exports.InlineTipButton = InlineTipButton = _settings.pkg.checkComponentEnabled(InlineTipButton, componentName);
|
|
67
|
-
|
|
68
|
-
// The display name of the component, used by React. Note that displayName
|
|
69
|
-
// is used in preference to relying on function.name.
|
|
70
|
-
InlineTipButton.displayName = componentName;
|
|
71
|
-
|
|
72
64
|
// The types and DocGen commentary for the component props,
|
|
73
65
|
// in alphabetical order (for consistency).
|
|
74
66
|
// See https://www.npmjs.com/package/prop-types#usage.
|
|
67
|
+
exports.InlineTipButton = InlineTipButton;
|
|
75
68
|
InlineTipButton.propTypes = {
|
|
76
69
|
/**
|
|
77
70
|
* Provide the contents of the InlineTipButton.
|
|
@@ -39,7 +39,7 @@ var componentName = 'InlineTipLink';
|
|
|
39
39
|
// };
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* TODO: A
|
|
42
|
+
* TODO: A standard Carbon link, styled specifically for use inside InlineTip.
|
|
43
43
|
*/
|
|
44
44
|
var InlineTipLink = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
45
45
|
var children = _ref.children,
|
|
@@ -61,17 +61,10 @@ var InlineTipLink = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
|
|
|
61
61
|
}), children);
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
// Return a placeholder if not released and not enabled by feature flag
|
|
65
|
-
exports.InlineTipLink = InlineTipLink;
|
|
66
|
-
exports.InlineTipLink = InlineTipLink = _settings.pkg.checkComponentEnabled(InlineTipLink, componentName);
|
|
67
|
-
|
|
68
|
-
// The display name of the component, used by React. Note that displayName
|
|
69
|
-
// is used in preference to relying on function.name.
|
|
70
|
-
InlineTipLink.displayName = componentName;
|
|
71
|
-
|
|
72
64
|
// The types and DocGen commentary for the component props,
|
|
73
65
|
// in alphabetical order (for consistency).
|
|
74
66
|
// See https://www.npmjs.com/package/prop-types#usage.
|
|
67
|
+
exports.InlineTipLink = InlineTipLink;
|
|
75
68
|
InlineTipLink.propTypes = {
|
|
76
69
|
/**
|
|
77
70
|
* Provide the contents of the InlineTipLink.
|
|
@@ -119,7 +119,7 @@ var makeMatcherArray = function makeMatcherArray(args) {
|
|
|
119
119
|
* A helper function to enable a test to expect a single call to
|
|
120
120
|
* console.warn, for example when intentionally using a deprecated prop
|
|
121
121
|
* or supplying invalid parameters for the purposes of the test.
|
|
122
|
-
* @param {string|regex|Function|[]} message the expected parameters for the call to
|
|
122
|
+
* @param {string | regex | Function | []} message the expected parameters for the call to
|
|
123
123
|
* console.warn, which must be called exactly once. A single string or regex or an
|
|
124
124
|
* expect matcher can be used to match a single-argument call to console.warn (most common),
|
|
125
125
|
* while an array of strings and/or regex and/or expect matchers can be used to match a
|
|
@@ -233,7 +233,7 @@ var expectLogging = function expectLogging(_ref2, test) {
|
|
|
233
233
|
* A helper function to enable a test to expect a single call to
|
|
234
234
|
* console.error, for example when intentionally omitting a required prop
|
|
235
235
|
* or supplying an invalid prop type or value for the purposes of the test.
|
|
236
|
-
* @param {string|regex|Function|[]} message the expected parameters for the call to
|
|
236
|
+
* @param {string | regex | Function | []} message the expected parameters for the call to
|
|
237
237
|
* console.error, which must be called exactly once. A single string or regex or an
|
|
238
238
|
* expect matcher can be used to match a single-argument call to console.error (most common),
|
|
239
239
|
* while an array of strings and/or regex and/or expect matchers can be used to match a
|
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.59.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -83,18 +83,18 @@
|
|
|
83
83
|
"react-window": "^1.8.8"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@carbon/colors": "^10.37.
|
|
87
|
-
"@carbon/icons-react": "^10.49.
|
|
86
|
+
"@carbon/colors": "^10.37.2",
|
|
87
|
+
"@carbon/icons-react": "^10.49.2",
|
|
88
88
|
"@carbon/import-once": "^10.7.0",
|
|
89
|
-
"@carbon/layout": "^10.37.
|
|
90
|
-
"@carbon/motion": "^10.29.
|
|
91
|
-
"@carbon/themes": "^10.55.
|
|
92
|
-
"@carbon/type": "^10.45.
|
|
93
|
-
"carbon-components": "^10.58.
|
|
94
|
-
"carbon-components-react": "^7.59.
|
|
89
|
+
"@carbon/layout": "^10.37.2",
|
|
90
|
+
"@carbon/motion": "^10.29.2",
|
|
91
|
+
"@carbon/themes": "^10.55.3",
|
|
92
|
+
"@carbon/type": "^10.45.3",
|
|
93
|
+
"carbon-components": "^10.58.9",
|
|
94
|
+
"carbon-components-react": "^7.59.11",
|
|
95
95
|
"carbon-icons": "^7.0.7",
|
|
96
96
|
"react": "^16.8.6 || ^17.0.1",
|
|
97
97
|
"react-dom": "^16.8.6 || ^17.0.1"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "873c5ae8e573e99c87aadd1d300c967d7da635e6"
|
|
100
100
|
}
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
.#{$security--prefix}--combo-button__overflow-menu {
|
|
30
30
|
width: carbon--mini-units($count: 6);
|
|
31
31
|
height: auto;
|
|
32
|
-
|
|
32
|
+
/* stylelint-disable-next-line function-no-unknown */ // carbon--rem renamed to to-rem
|
|
33
|
+
border-left: to-rem($px: 1px) solid $ui-03;
|
|
33
34
|
background-color: $interactive-01;
|
|
34
35
|
}
|
|
35
36
|
|
|
@@ -8,11 +8,16 @@
|
|
|
8
8
|
|
|
9
9
|
@import '../variables';
|
|
10
10
|
|
|
11
|
+
.#{$block-class}__row-size {
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
11
15
|
.#{$block-class}__row-size-dropdown {
|
|
12
16
|
position: absolute;
|
|
17
|
+
right: 0;
|
|
18
|
+
width: 10rem;
|
|
13
19
|
padding: $spacing-05;
|
|
14
20
|
background-color: $ui-background;
|
|
15
|
-
|
|
16
21
|
box-shadow: 1px 4px 8px -3px $overlay-01, -1px 6px 8px -5px $overlay-01;
|
|
17
22
|
}
|
|
18
23
|
|
|
@@ -11,12 +11,14 @@
|
|
|
11
11
|
@include exports('ibm-products--toolbar') {
|
|
12
12
|
$block-class: #{$pkg-prefix}--toolbar;
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
/* stylelint-disable-next-line function-no-unknown */ // carbon--rem renamed to to-rem
|
|
15
|
+
$border: to-rem(
|
|
15
16
|
$px: 1px,
|
|
16
17
|
)
|
|
17
18
|
solid $ui-03;
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
/* stylelint-disable-next-line function-no-unknown */ // carbon--rem renamed to to-rem
|
|
21
|
+
$toolbar-dimensions: to-rem(
|
|
20
22
|
$px: 40px,
|
|
21
23
|
);
|
|
22
24
|
|
|
@@ -61,7 +63,8 @@
|
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
.#{$block-class}__button__caret {
|
|
64
|
-
|
|
66
|
+
/* stylelint-disable-next-line function-no-unknown */ // carbon--rem renamed to to-rem
|
|
67
|
+
$caret-dimensions: to-rem(
|
|
65
68
|
$px: 6px,
|
|
66
69
|
);
|
|
67
70
|
|