UNPKG

@chayns-components/core

Version:

A set of beautiful React components for developing your own applications with chayns.

39 lines (38 loc) 1.82 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.SmallWaitCursorSpeed = exports.SmallWaitCursorSize = void 0; var _react = _interopRequireDefault(require("react")); var _SmallWaitCursor = require("./SmallWaitCursor.styles"); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } // noinspection JSUnusedGlobalSymbols let SmallWaitCursorSize = exports.SmallWaitCursorSize = /*#__PURE__*/function (SmallWaitCursorSize) { SmallWaitCursorSize[SmallWaitCursorSize["Small"] = 16] = "Small"; SmallWaitCursorSize[SmallWaitCursorSize["Medium"] = 30] = "Medium"; return SmallWaitCursorSize; }({}); let SmallWaitCursorSpeed = exports.SmallWaitCursorSpeed = /*#__PURE__*/function (SmallWaitCursorSpeed) { SmallWaitCursorSpeed[SmallWaitCursorSpeed["Slow"] = 1.5] = "Slow"; SmallWaitCursorSpeed[SmallWaitCursorSpeed["Medium"] = 1] = "Medium"; SmallWaitCursorSpeed[SmallWaitCursorSpeed["Fast"] = 0.5] = "Fast"; return SmallWaitCursorSpeed; }({}); const SmallWaitCursor = ({ shouldHideBackground = false, shouldHideWaitCursor = false, size = SmallWaitCursorSize.Medium, speed = SmallWaitCursorSpeed.Medium, color }) => /*#__PURE__*/_react.default.createElement(_SmallWaitCursor.StyledSmallWaitCursor, { $shouldShowWaitCursor: !shouldHideWaitCursor, $size: size }, /*#__PURE__*/_react.default.createElement(_SmallWaitCursor.StyledSmallWaitCursorWaitCursor, { $shouldHideBackground: shouldHideBackground, $size: size, $speed: speed, $color: color }), !shouldHideBackground && /*#__PURE__*/_react.default.createElement(_SmallWaitCursor.StyledSmallWaitCursorBackground, null)); SmallWaitCursor.displayName = 'SmallWaitCursor'; var _default = exports.default = SmallWaitCursor; //# sourceMappingURL=SmallWaitCursor.js.map