@carbon/ibm-products 2.0.0-rc.13 → 2.0.0-rc.15
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +4 -0
- 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 +4 -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 +4 -0
- 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/ButtonMenu/ButtonMenu.js +4 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +0 -1
- package/es/components/Datagrid/utils/DatagridActions.js +2 -1
- package/lib/components/ButtonMenu/ButtonMenu.js +4 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +0 -1
- package/lib/components/Datagrid/utils/DatagridActions.js +2 -1
- package/package.json +2 -2
- package/scss/components/Datagrid/styles/_datagrid.scss +5 -0
@@ -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
|
};
|
@@ -77,7 +77,6 @@ export var handleGridKeyPress = function handleGridKeyPress(_ref) {
|
|
77
77
|
var focusedCalendarElement = document.querySelector(".".concat(carbon.prefix, "--date-picker__input.flatpickr-input.active"));
|
78
78
|
|
79
79
|
if (focusedCalendarElement || document.activeElement.classList.contains("flatpickr-day")) {
|
80
|
-
event.preventDefault();
|
81
80
|
return true;
|
82
81
|
}
|
83
82
|
|
@@ -146,7 +146,8 @@ export var DatagridActions = function DatagridActions(datagridState) {
|
|
146
146
|
style: style
|
147
147
|
}, /*#__PURE__*/React.createElement(CustomizeColumnsButton, null)), /*#__PURE__*/React.createElement(ButtonMenu, {
|
148
148
|
label: "Primary button",
|
149
|
-
renderIcon:
|
149
|
+
renderIcon: ChevronDown,
|
150
|
+
menuOptionsClass: "".concat(blockClass, "__toolbar-options")
|
150
151
|
}, /*#__PURE__*/React.createElement(ButtonMenuItem, {
|
151
152
|
itemText: "Option 1",
|
152
153
|
onClick: action("Click on ButtonMenu Option 1")
|
@@ -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
|
};
|
@@ -84,7 +84,6 @@ var handleGridKeyPress = function handleGridKeyPress(_ref) {
|
|
84
84
|
var focusedCalendarElement = document.querySelector(".".concat(_settings.carbon.prefix, "--date-picker__input.flatpickr-input.active"));
|
85
85
|
|
86
86
|
if (focusedCalendarElement || document.activeElement.classList.contains("flatpickr-day")) {
|
87
|
-
event.preventDefault();
|
88
87
|
return true;
|
89
88
|
}
|
90
89
|
|
@@ -169,7 +169,8 @@ var DatagridActions = function DatagridActions(datagridState) {
|
|
169
169
|
style: style
|
170
170
|
}, /*#__PURE__*/_react.default.createElement(CustomizeColumnsButton, null)), /*#__PURE__*/_react.default.createElement(_ButtonMenu.ButtonMenu, {
|
171
171
|
label: "Primary button",
|
172
|
-
renderIcon: _icons.
|
172
|
+
renderIcon: _icons.ChevronDown,
|
173
|
+
menuOptionsClass: "".concat(blockClass, "__toolbar-options")
|
173
174
|
}, /*#__PURE__*/_react.default.createElement(_ButtonMenu.ButtonMenuItem, {
|
174
175
|
itemText: "Option 1",
|
175
176
|
onClick: (0, _addonActions.action)("Click on ButtonMenu Option 1")
|
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.15",
|
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": "cb84c9271bd62df43c4dba8651c58d9f78bfa2c0"
|
98
98
|
}
|
@@ -590,6 +590,11 @@
|
|
590
590
|
background-color: $button-primary-hover;
|
591
591
|
}
|
592
592
|
|
593
|
+
// extra specificity to override Carbon default
|
594
|
+
.#{$block-class}__toolbar-options.#{$block-class}__toolbar-options {
|
595
|
+
background-color: $layer-02;
|
596
|
+
}
|
597
|
+
|
593
598
|
.#{$block-class}__toolbar-options.#{c4p-settings.$carbon-prefix}--overflow-menu-options::after {
|
594
599
|
background-color: transparent;
|
595
600
|
}
|