UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

17 lines (11 loc) 740 B
'use strict'; var styled = require('styled-components'); var constants = require('../constants.js'); function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; } var styled__default = /*#__PURE__*/_interopDefault(styled); const loading = styled.keyframes(["from{opacity:1;}to{opacity:0.2;}"]); const LoadingCounter = styled__default.default.span.withConfig({ displayName: "LoadingCounter", componentId: "sc-ouonic-0" })(["animation:", " 1.2s ease-in-out infinite alternate;background-color:", ";border-color:", ";width:1.5rem;height:1rem;display:inline-block;border-radius:20px;"], loading, constants.get('colors.neutral.muted'), constants.get('colors.border.default')); exports.LoadingCounter = LoadingCounter;