@atlaskit/button 23.4.11 → 23.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/button
2
2
 
3
+ ## 23.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`3ea3fab89f015`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3ea3fab89f015) -
8
+ `IconButton` now passes through the `tooltip.shortcut` prop to the Tooltip component.
9
+
3
10
  ## 23.4.11
4
11
 
5
12
  ### Patch Changes
@@ -114,7 +114,8 @@ var IconButton = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.f
114
114
  component: tooltip === null || tooltip === void 0 ? void 0 : tooltip.component,
115
115
  hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
116
116
  hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown,
117
- ignoreTooltipPointerEvents: tooltip === null || tooltip === void 0 ? void 0 : tooltip.ignoreTooltipPointerEvents
117
+ ignoreTooltipPointerEvents: tooltip === null || tooltip === void 0 ? void 0 : tooltip.ignoreTooltipPointerEvents,
118
+ shortcut: tooltip === null || tooltip === void 0 ? void 0 : tooltip.shortcut
118
119
  }, function (triggerProps) {
119
120
  return /*#__PURE__*/_react.default.createElement(_buttonBase.default, (0, _extends2.default)({}, saferRest, {
120
121
  appearance: appearance,
@@ -105,7 +105,8 @@ const IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
105
105
  component: tooltip === null || tooltip === void 0 ? void 0 : tooltip.component,
106
106
  hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
107
107
  hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown,
108
- ignoreTooltipPointerEvents: tooltip === null || tooltip === void 0 ? void 0 : tooltip.ignoreTooltipPointerEvents
108
+ ignoreTooltipPointerEvents: tooltip === null || tooltip === void 0 ? void 0 : tooltip.ignoreTooltipPointerEvents,
109
+ shortcut: tooltip === null || tooltip === void 0 ? void 0 : tooltip.shortcut
109
110
  }, triggerProps => /*#__PURE__*/React.createElement(ButtonBase, _extends({}, saferRest, {
110
111
  appearance: appearance,
111
112
  autoFocus: autoFocus,
@@ -107,7 +107,8 @@ var IconButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
107
107
  component: tooltip === null || tooltip === void 0 ? void 0 : tooltip.component,
108
108
  hideTooltipOnClick: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnClick,
109
109
  hideTooltipOnMouseDown: tooltip === null || tooltip === void 0 ? void 0 : tooltip.hideTooltipOnMouseDown,
110
- ignoreTooltipPointerEvents: tooltip === null || tooltip === void 0 ? void 0 : tooltip.ignoreTooltipPointerEvents
110
+ ignoreTooltipPointerEvents: tooltip === null || tooltip === void 0 ? void 0 : tooltip.ignoreTooltipPointerEvents,
111
+ shortcut: tooltip === null || tooltip === void 0 ? void 0 : tooltip.shortcut
111
112
  }, function (triggerProps) {
112
113
  return /*#__PURE__*/React.createElement(ButtonBase, _extends({}, saferRest, {
113
114
  appearance: appearance,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "23.4.11",
3
+ "version": "23.5.0",
4
4
  "description": "A button triggers an event or action. They let users know what will happen next.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"