@carbon/ibm-products 2.0.0-rc.13 → 2.0.0-rc.14
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.
@@ -54,6 +54,7 @@ export var ButtonMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
54
54
|
),
|
55
55
|
ariaLabel: menuAriaLabel,
|
56
56
|
menuOptionsClass: cx("".concat(blockClass, "__options"), menuOptionsClass),
|
57
|
+
size: size,
|
57
58
|
renderIcon: function renderIcon() {
|
58
59
|
return /*#__PURE__*/React.createElement("div", {
|
59
60
|
className: cx(["".concat(blockClass, "__trigger"), "".concat(carbonPrefix, "--btn"), "".concat(carbonPrefix, "--btn--").concat(kind), "".concat(carbonPrefix, "--btn--").concat(size)])
|
@@ -120,8 +121,8 @@ ButtonMenu.propTypes = {
|
|
120
121
|
renderIcon: Button.propTypes.renderIcon,
|
121
122
|
|
122
123
|
/**
|
123
|
-
* The size of the button for the menu trigger.
|
124
|
-
*
|
124
|
+
* The size of the button for the menu trigger.
|
125
|
+
* The menu button supports: sm, md, lg
|
125
126
|
*/
|
126
|
-
size:
|
127
|
+
size: PropTypes.oneOf(['sm', 'md', 'lg'])
|
127
128
|
};
|
@@ -59,6 +59,7 @@ var ButtonMenu = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
59
59
|
),
|
60
60
|
ariaLabel: menuAriaLabel,
|
61
61
|
menuOptionsClass: (0, _classnames.default)("".concat(blockClass, "__options"), menuOptionsClass),
|
62
|
+
size: size,
|
62
63
|
renderIcon: function renderIcon() {
|
63
64
|
return /*#__PURE__*/_react.default.createElement("div", {
|
64
65
|
className: (0, _classnames.default)(["".concat(blockClass, "__trigger"), "".concat(carbonPrefix, "--btn"), "".concat(carbonPrefix, "--btn--").concat(kind), "".concat(carbonPrefix, "--btn--").concat(size)])
|
@@ -127,8 +128,8 @@ ButtonMenu.propTypes = {
|
|
127
128
|
renderIcon: _react2.Button.propTypes.renderIcon,
|
128
129
|
|
129
130
|
/**
|
130
|
-
* The size of the button for the menu trigger.
|
131
|
-
*
|
131
|
+
* The size of the button for the menu trigger.
|
132
|
+
* The menu button supports: sm, md, lg
|
132
133
|
*/
|
133
|
-
size:
|
134
|
+
size: _propTypes.default.oneOf(['sm', 'md', 'lg'])
|
134
135
|
};
|
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.
|
4
|
+
"version": "2.0.0-rc.14",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -94,5 +94,5 @@
|
|
94
94
|
"react": "^16.8.6 || ^17.0.1",
|
95
95
|
"react-dom": "^16.8.6 || ^17.0.1"
|
96
96
|
},
|
97
|
-
"gitHead": "
|
97
|
+
"gitHead": "841dab2f0145b838bd5b3691dbb58cda52c986b6"
|
98
98
|
}
|