UNPKG

@elastic/eui

Version:

Elastic UI Component Library

26 lines (24 loc) 1.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.euiSearchBar__searchHolder = exports.euiSearchBar__filtersHolder = void 0; var _react = require("@emotion/react"); var _global_styling = require("../../global_styling"); var _form = require("../form/form.styles"); /* * 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 euiSearchBar__searchHolder = exports.euiSearchBar__searchHolder = function euiSearchBar__searchHolder(euiThemeContext) { return /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', (0, _global_styling.mathWithUnits)((0, _form.euiFormMaxWidth)(euiThemeContext), function (x) { return x / 2; })), ";;label:euiSearchBar__searchHolder;"); }; var euiSearchBar__filtersHolder = exports.euiSearchBar__filtersHolder = function euiSearchBar__filtersHolder(euiThemeContext) { var euiTheme = euiThemeContext.euiTheme; return /*#__PURE__*/(0, _react.css)((0, _global_styling.euiBreakpoint)(euiThemeContext, ['m', 'l', 'xl']), "{", (0, _global_styling.logicalCSS)('max-width', "calc(100% - ".concat(euiTheme.size.base, ")")), ";};label:euiSearchBar__filtersHolder;"); };