UNPKG

react-trello

Version:

Pluggable components to add a trello like kanban board to your application

54 lines (35 loc) 1.93 kB
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.LoadingBar = exports.LoaderDiv = void 0; var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral")); var _styledComponents = _interopRequireWildcard(require("styled-components")); function _templateObject3() { const data = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n margin: 0 2px;\n width: 4px;\n height: 18px;\n border-radius: 4px;\n animation: ", " 1s ease-in-out infinite;\n background-color: #777;\n\n &:nth-child(1) {\n animation-delay: 0.0001s;\n }\n &:nth-child(2) {\n animation-delay: 0.09s;\n }\n &:nth-child(3) {\n animation-delay: 0.18s;\n }\n &:nth-child(4) {\n animation-delay: 0.27s;\n }\n"]); _templateObject3 = function _templateObject3() { return data; }; return data; } function _templateObject2() { const data = (0, _taggedTemplateLiteral2.default)(["\n text-align: center;\n margin: 15px 0;\n"]); _templateObject2 = function _templateObject2() { return data; }; return data; } function _templateObject() { const data = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n transform: scale(1);\n }\n 20% {\n transform: scale(1, 2.2);\n }\n 40% {\n transform: scale(1);\n }\n"]); _templateObject = function _templateObject() { return data; }; return data; } const keyframeAnimation = (0, _styledComponents.keyframes)(_templateObject()); const LoaderDiv = _styledComponents.default.div(_templateObject2()); exports.LoaderDiv = LoaderDiv; const LoadingBar = _styledComponents.default.div(_templateObject3(), keyframeAnimation); exports.LoadingBar = LoadingBar;