UNPKG

@elastic/eui

Version:

Elastic UI Component Library

64 lines (63 loc) 2.72 kB
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /* * 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 } from '@emotion/react'; import { euiTextTruncate, euiTextBreakWord, logicalTextAlignCSS } from '../../global_styling'; var _ref = process.env.NODE_ENV === "production" ? { name: "7d9p9x-mobile", styles: "flex-direction:column;label:mobile;" } : { name: "7d9p9x-mobile", styles: "flex-direction:column;label:mobile;", toString: _EMOTION_STRINGIFIED_CSS_ERROR__ }; var _ref2 = process.env.NODE_ENV === "production" ? { name: "o9tdjd-desktop", styles: "flex-wrap:wrap;label:desktop;" } : { name: "o9tdjd-desktop", styles: "flex-wrap:wrap;label:desktop;", toString: _EMOTION_STRINGIFIED_CSS_ERROR__ }; var _ref3 = process.env.NODE_ENV === "production" ? { name: "1x3x3jh-center", styles: "justify-content:center;text-align:center;label:center;" } : { name: "1x3x3jh-center", styles: "justify-content:center;text-align:center;label:center;", toString: _EMOTION_STRINGIFIED_CSS_ERROR__ }; var _ref4 = process.env.NODE_ENV === "production" ? { name: "1vsid2d-euiTableCellContent", styles: "display:flex;align-items:center;label:euiTableCellContent;" } : { name: "1vsid2d-euiTableCellContent", styles: "display:flex;align-items:center;label:euiTableCellContent;", toString: _EMOTION_STRINGIFIED_CSS_ERROR__ }; export var euiTableCellContentStyles = function euiTableCellContentStyles(_ref5) { var euiTheme = _ref5.euiTheme; return { euiTableCellContent: _ref4, // Align left: null, // Default, no CSS needed right: /*#__PURE__*/css("justify-content:flex-end;", logicalTextAlignCSS('right'), ";;label:right;"), center: _ref3, // Text wrapping truncateText: /*#__PURE__*/css(euiTextTruncate(), ".euiTableCellContent__text{overflow:hidden;text-overflow:ellipsis;};label:truncateText;"), wrapText: /*#__PURE__*/css(euiTextBreakWord(), ";;label:wrapText;"), // Action cells hasActions: { actions: /*#__PURE__*/css("gap:", euiTheme.size.xs, ";;label:actions;"), custom: /*#__PURE__*/css("gap:", euiTheme.size.s, ";;label:custom;"), desktop: _ref2, mobile: _ref } }; };