@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
54 lines (52 loc) • 2.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.StyledWaitCursorWaitCursor = exports.StyledWaitCursorBackground = exports.StyledWaitCursor = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
const StyledWaitCursor = exports.StyledWaitCursor = _styledComponents.default.div`
position: relative;
height: 26px;
width: 26px;
opacity: ${({
$shouldShowWaitCursor
}) => $shouldShowWaitCursor ? 1 : 0};
`;
const StyledWaitCursorBackground = exports.StyledWaitCursorBackground = _styledComponents.default.div`
background-color: white;
border-radius: 50%;
height: 100%;
width: 100%;
position: relative;
z-index: 1;
box-shadow:
0 4px 12px 0 rgba(0, 0, 0, 0.2),
0 1px 1px rgba(0, 0, 0, 0.2);
`;
const spin = (0, _styledComponents.keyframes)`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`;
const StyledWaitCursorWaitCursor = exports.StyledWaitCursorWaitCursor = _styledComponents.default.div`
position: absolute;
top: 5px;
left: 5px;
z-index: 2;
border-style: solid;
border-width: 3px;
border-color: ${({
$color
}) => $color};
height: ${26 - 10}px;
width: ${26 - 10}px;
border-radius: 50%;
display: inline-block;
border-top: 3px solid transparent;
animation: ${spin} 1s linear infinite;
`;
//# sourceMappingURL=WaitCursor.styles.js.map