@elastic/eui
Version:
Elastic UI Component Library
25 lines (23 loc) • 1.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.euiInlineEditReadModeStyles = void 0;
var _react = require("@emotion/react");
var _services = require("../../services");
/*
* 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.
*/
var euiInlineEditReadModeStyles = exports.euiInlineEditReadModeStyles = function euiInlineEditReadModeStyles(_ref) {
var euiTheme = _ref.euiTheme;
return {
euiInlineEditReadMode: /*#__PURE__*/(0, _react.css)(";label:euiInlineEditReadMode;"),
// Override the cursor and allow users to highlight text when in the read only state
isReadOnly: /*#__PURE__*/(0, _react.css)("&:disabled{cursor:text;color:", euiTheme.colors.text, ";user-select:text;};label:isReadOnly;"),
hasPlaceholder: /*#__PURE__*/(0, _react.css)(".euiText,.euiTitle{color:", (0, _services.tint)(euiTheme.colors.subduedText, 0.08), ";};label:hasPlaceholder;")
};
};