@elastic/eui
Version:
Elastic UI Component Library
72 lines (71 loc) • 3.82 kB
JavaScript
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 { logicalCSS } from '../../global_styling';
var _ref3 = process.env.NODE_ENV === "production" ? {
name: "yoyozp-euiCommentEvent",
styles: "overflow:hidden;label:euiCommentEvent;"
} : {
name: "yoyozp-euiCommentEvent",
styles: "overflow:hidden;label:euiCommentEvent;",
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};
export var euiCommentEventStyles = function euiCommentEventStyles(_ref4) {
var euiTheme = _ref4.euiTheme;
return {
euiCommentEvent: _ref3,
// types
regular: /*#__PURE__*/css("border:", euiTheme.border.thin, ";border-radius:", euiTheme.border.radius.medium, ";;label:regular;"),
update: /*#__PURE__*/css(";label:update;"),
custom: /*#__PURE__*/css(";label:custom;")
};
};
var _ref = process.env.NODE_ENV === "production" ? {
name: "ui5tce-euiCommentEvent__headerEvent",
styles: "align-items:center;display:inline-flex;white-space:pre-wrap;flex-wrap:wrap;label:euiCommentEvent__headerEvent;"
} : {
name: "ui5tce-euiCommentEvent__headerEvent",
styles: "align-items:center;display:inline-flex;white-space:pre-wrap;flex-wrap:wrap;label:euiCommentEvent__headerEvent;",
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};
var _ref2 = process.env.NODE_ENV === "production" ? {
name: "bqgcpj-hasEventColor",
styles: "padding:0;label:hasEventColor;"
} : {
name: "bqgcpj-hasEventColor",
styles: "padding:0;label:hasEventColor;",
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};
export var euiCommentEventHeaderStyles = function euiCommentEventHeaderStyles(_ref5) {
var euiTheme = _ref5.euiTheme;
return {
euiCommentEvent__header: /*#__PURE__*/css(";label:euiCommentEvent__header;"),
// types
regular: /*#__PURE__*/css("background:", euiTheme.colors.lightestShade, ";", logicalCSS('border-bottom', euiTheme.border.thin), " padding:", euiTheme.size.s, ";;label:regular;"),
// variants
hasEventColor: _ref2,
// Children
euiCommentEvent__headerMain: /*#__PURE__*/css("display:flex;flex:1;gap:", euiTheme.size.s, ";;label:euiCommentEvent__headerMain;"),
euiCommentEvent__headerData: /*#__PURE__*/css("display:flex;flex:1;align-items:center;flex-wrap:wrap;gap:", euiTheme.size.xs, ";;label:euiCommentEvent__headerData;"),
euiCommentEvent__headerEventIcon: /*#__PURE__*/css(logicalCSS('margin-right', euiTheme.size.xs), ";;label:euiCommentEvent__headerEventIcon;"),
euiCommentEvent__headerUsername: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.semiBold, ";;label:euiCommentEvent__headerUsername;"),
euiCommentEvent__headerEvent: _ref,
euiCommentEvent__headerActions: /*#__PURE__*/css("display:flex;flex-wrap:wrap;gap:", euiTheme.size.xs, ";;label:euiCommentEvent__headerActions;")
};
};
export var euiCommentEventBodyStyles = function euiCommentEventBodyStyles(_ref6) {
var euiTheme = _ref6.euiTheme;
return {
euiCommentEvent__body: /*#__PURE__*/css(";label:euiCommentEvent__body;"),
// types
regular: /*#__PURE__*/css("padding:", euiTheme.size.s, ";;label:regular;"),
update: /*#__PURE__*/css(logicalCSS('padding-top', euiTheme.size.xs), ";;label:update;"),
custom: /*#__PURE__*/css(";label:custom;")
};
};