"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.euiSelectableListStyles = exports.euiSelectableListGroupLabelStyles = void 0;
var _react = require("@emotion/react");
var _css = require("@emotion/css");
var _euiThemeCommon = require("@elastic/eui-theme-common");
var _global_styling = require("../../../global_styling");
var _title = require("../../title/title.styles");
var _list_item_layout = require("../../list_item_layout/_list_item_layout.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.
 */ // .euiSelectableList__list requires a static vanilla className
// as it's passed down to react-window's virtualization library
var _ref = process.env.NODE_ENV === "production" ? {
  name: "1giu8j5-fullHeight",
  styles: "flex-grow:1;label:fullHeight;"
} : {
  name: "1giu8j5-fullHeight",
  styles: "flex-grow:1;label:fullHeight;",
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
};
var euiSelectableListStyles = exports.euiSelectableListStyles = function euiSelectableListStyles(euiThemeContext) {
  var euiTheme = euiThemeContext.euiTheme;
  return {
    euiSelectableList: /*#__PURE__*/(0, _react.css)("&:has(:focus-visible){", (0, _global_styling.euiFocusRing)(euiThemeContext, 'outset'), ";};label:euiSelectableList;"),
    fullHeight: _ref,
    bordered: /*#__PURE__*/(0, _react.css)("overflow:hidden;border:", euiTheme.border.thin, ";border-radius:", euiTheme.border.radius.medium, ";;label:bordered;"),
    paddingSize: {
      s: /*#__PURE__*/(0, _react.css)("padding:", euiTheme.size.s, ";;label:s;")
    },
    euiSelectableList__list: /*#__PURE__*/(0, _css.css)((0, _global_styling.euiYScrollWithShadows)(euiThemeContext, {
      hasAnimatedOverflowShadow: true
    }), " &:focus,&>ul:focus{outline:none;};label:euiSelectableList__list;")
  };
};
var euiSelectableListGroupLabelStyles = exports.euiSelectableListGroupLabelStyles = function euiSelectableListGroupLabelStyles(euiThemeContext) {
  var euiTheme = euiThemeContext.euiTheme;
  var itemVars = (0, _list_item_layout.euiListItemVariables)(euiThemeContext);
  var spacingVertical = euiTheme.size.s;
  var borderColor = euiTheme.components.selectableListItemBorderColor;
  return {
    groupLabel: /*#__PURE__*/(0, _react.css)((0, _title.euiTitle)(euiThemeContext, 'xxxs'), " position:relative;display:flex;align-items:center;gap:", itemVars.spacing.horizontal, ";", (0, _global_styling.logicalCSS)('padding-horizontal', itemVars.textPadding.horizontal), " ", (0, _global_styling.logicalCSS)('padding-vertical', spacingVertical), " &:not(:first-child){", (0, _global_styling.logicalCSS)('padding-top', (0, _euiThemeCommon.mathWithUnits)([spacingVertical], function (a) {
      return a * 3;
    })), " &::before{content:'';position:absolute;inset:0;inset-block-start:", spacingVertical, ";", (0, _global_styling.logicalCSS)('border-top', "".concat(euiTheme.border.width.thin, " solid ").concat(borderColor)), ";}};label:groupLabel;")
  };
};