@bigbinary/neetoui 5.2.8 → 5.2.10

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/index.d.ts CHANGED
@@ -563,6 +563,7 @@ export type TypographyProps = {
563
563
  export type KbdProps = {
564
564
  keyName?: string;
565
565
  className?: string;
566
+ tooltipProps?: TooltipProps;
566
567
  };
567
568
 
568
569
  export type NoDataProps = {
package/index.js CHANGED
@@ -20201,14 +20201,17 @@ var Input$2 = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
20201
20201
  });
20202
20202
  Input$2.displayName = "Input";
20203
20203
 
20204
- var _excluded$o = ["keyName", "className"];
20204
+ var _excluded$o = ["keyName", "className", "tooltipProps"];
20205
20205
  var Kbd = function Kbd(_ref) {
20206
20206
  var keyName = _ref.keyName,
20207
20207
  className = _ref.className,
20208
+ tooltipProps = _ref.tooltipProps,
20208
20209
  otherProps = _objectWithoutProperties$1(_ref, _excluded$o);
20209
- return /*#__PURE__*/React__default.createElement("span", _extends$4({
20210
+ return /*#__PURE__*/React__default.createElement(Tooltip, _extends$4({
20211
+ disabled: !tooltipProps
20212
+ }, tooltipProps), /*#__PURE__*/React__default.createElement("span", _extends$4({
20210
20213
  className: classnames$1(["neeto-ui-kbd", className])
20211
- }, otherProps), keyName);
20214
+ }, otherProps), keyName));
20212
20215
  };
20213
20216
 
20214
20217
  function _arrayWithoutHoles$1(arr) {