"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.StyledFormList = exports.HoverBox = void 0;

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _branding = require("../../../mixins/branding");

var _formList = require("../form-list");

var _forms = require("../internals/forms.common");

var _box = require("../../../primitives/box");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var getBorderRadius = function getBorderRadius(_ref) {
  var theme = _ref.theme;
  return theme.cardBorderRadius;
};

var getFontSize = function getFontSize(_ref2) {
  var theme = _ref2.theme;
  return theme.typescale.f1;
};

var HoverBox = (0, _styledComponents["default"])(_box.Box).withConfig({
  displayName: "HoverBox",
  componentId: "sc-5iznx7-0"
})(["align-self:stretch;border-radius:inherit;width:100%;:hover{background:", ";}"], function (_ref3) {
  var isDisabled = _ref3.isDisabled;
  return isDisabled ? undefined : (0, _branding.getPaletteColor)('background');
});
exports.HoverBox = HoverBox;
var StyledFormList = (0, _styledComponents["default"])(_formList.FormList).withConfig({
  displayName: "StyledFormList",
  componentId: "sc-5iznx7-1"
})(["font-size:", ";", ":first-child > ", " > *{border-top-left-radius:", ";border-top-right-radius:", ";}", ":last-child > ", " > *{border-bottom-left-radius:", ";border-bottom-right-radius:", ";}"], getFontSize, _forms.FormRow, HoverBox, getBorderRadius, getBorderRadius, _forms.FormRow, HoverBox, getBorderRadius, getBorderRadius);
exports.StyledFormList = StyledFormList;