@elastic/eui
Version:
Elastic UI Component Library
43 lines (42 loc) • 2.49 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.euiRangeWrapperStyles = void 0;
var _react = require("@emotion/react");
var _form = require("../form.styles");
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.
*/
var _ref = process.env.NODE_ENV === "production" ? {
name: "nbwcci-fullWidth",
styles: "max-inline-size:100%;label:fullWidth;"
} : {
name: "nbwcci-fullWidth",
styles: "max-inline-size:100%;label:fullWidth;",
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};
var _ref2 = process.env.NODE_ENV === "production" ? {
name: "9gg6o0-euiRangeWrapper",
styles: "display:flex;align-items:center;>.euiFormControlLayout{inline-size:auto;max-inline-size:50%;.euiFormControlLayout__childrenWrapper{flex-shrink:0;}.euiFormControlLayout__prepend,.euiFormControlLayout__append{flex-shrink:1;max-inline-size:none;}};label:euiRangeWrapper;"
} : {
name: "9gg6o0-euiRangeWrapper",
styles: "display:flex;align-items:center;>.euiFormControlLayout{inline-size:auto;max-inline-size:50%;.euiFormControlLayout__childrenWrapper{flex-shrink:0;}.euiFormControlLayout__prepend,.euiFormControlLayout__append{flex-shrink:1;max-inline-size:none;}};label:euiRangeWrapper;",
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};
var euiRangeWrapperStyles = exports.euiRangeWrapperStyles = function euiRangeWrapperStyles(euiThemeContext) {
var form = (0, _form.euiFormVariables)(euiThemeContext);
return {
euiRangeWrapper: _ref2,
// Skip the css`` on the default height to avoid generating a className
uncompressed: "\n block-size: ".concat(form.controlHeight, ";\n "),
compressed: /*#__PURE__*/(0, _react.css)("block-size:", form.controlCompressedHeight, ";;label:compressed;"),
// Skip the css`` on the default width to avoid generating a className
formWidth: "\n max-inline-size: ".concat(form.maxWidth, ";\n "),
fullWidth: _ref
};
};