UNPKG

@elastic/eui

Version:

Elastic UI Component Library

38 lines (37 loc) 2.22 kB
var _templateObject; function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); } /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ import { css, keyframes } from '@emotion/react'; import { logicalTextAlignCSS, euiCanAnimate } from '../../global_styling'; export var euiStatStyles = function euiStatStyles() { return { euiStat: /*#__PURE__*/css(";label:euiStat;"), // Text align left: /*#__PURE__*/css(logicalTextAlignCSS('left'), " align-items:flex-start;;label:left;"), center: /*#__PURE__*/css(logicalTextAlignCSS('center'), " align-items:center;;label:center;"), right: /*#__PURE__*/css(logicalTextAlignCSS('right'), " align-items:flex-end;;label:right;") }; }; export var euiStatTitleStyles = function euiStatTitleStyles(_ref) { var euiTheme = _ref.euiTheme; return { euiStat__title: /*#__PURE__*/css(";label:euiStat__title;"), // Colors default: /*#__PURE__*/css("color:", euiTheme.colors.fullShade, ";;label:default;"), subdued: /*#__PURE__*/css("color:", euiTheme.colors.textSubdued, ";;label:subdued;"), primary: /*#__PURE__*/css("color:", euiTheme.colors.textPrimary, ";;label:primary;"), success: /*#__PURE__*/css("color:", euiTheme.colors.textSuccess, ";;label:success;"), warning: /*#__PURE__*/css("color:", euiTheme.colors.textWarning, ";;label:warning;"), danger: /*#__PURE__*/css("color:", euiTheme.colors.textDanger, ";;label:danger;"), accent: /*#__PURE__*/css("color:", euiTheme.colors.textAccent, ";;label:accent;"), // Loading isLoading: /*#__PURE__*/css(euiCanAnimate, "{animation:", euiStatPulse, " 1.5s infinite ease-in-out;};label:isLoading;") }; }; var euiStatPulse = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% { opacity: 1; }\n 50% { opacity: .25; }\n 100% { opacity: 1; }\n"])));