UNPKG

@bigbinary/neetoui

Version:

neetoUI drives the experience at all neeto products

49 lines (46 loc) 2.23 kB
import _defineProperty from '@babel/runtime/helpers/defineProperty'; import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties'; import 'react'; import classnames from 'classnames'; import Tooltip from './Tooltip.js'; import { jsx } from 'react/jsx-runtime'; import '@babel/runtime/helpers/slicedToArray'; import '@tippyjs/react'; import 'tippy.js'; import 'react-router-dom'; import '@bigbinary/neeto-hotkeys'; import './overlayManager.js'; import '@babel/runtime/helpers/classCallCheck'; import '@babel/runtime/helpers/createClass'; import '@bigbinary/neeto-cist'; import 'qs'; import 'ramda'; import './index-DyUNP5G9.js'; import '@babel/runtime/helpers/toConsumableArray'; import 'dayjs'; import 'dayjs/plugin/localeData'; import 'dayjs/plugin/utc'; import 'dayjs/plugin/weekday'; import 'dayjs/plugin/weekOfYear'; import 'i18next'; import './usePrefersReducedMotion-n4ZJtExQ.js'; var _excluded = ["keyName", "className", "tooltipProps"]; function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } var Kbd = function Kbd(_ref) { var keyName = _ref.keyName, className = _ref.className, tooltipProps = _ref.tooltipProps, otherProps = _objectWithoutProperties(_ref, _excluded); return /*#__PURE__*/jsx(Tooltip, _objectSpread(_objectSpread({ disabled: !tooltipProps }, tooltipProps), {}, { children: /*#__PURE__*/jsx("span", _objectSpread(_objectSpread({ className: classnames(["neeto-ui-kbd", className]) }, otherProps), {}, { children: keyName })) })); }; export { Kbd as default }; //# sourceMappingURL=Kbd.js.map