require('./Button.styles_l6tr4p.css');
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var react = require('@linaria/react');
var Button_tokens = require('./Button.tokens.js');
var common = require('../../engines/common.js');
var Spinner$1 = require('../Spinner/Spinner.js');

// issue #823
var mergedConfig = /*#__PURE__*/common.mergeConfig(Spinner$1.spinnerConfig);
var Spinner = /*#__PURE__*/common.component(mergedConfig);
var ButtonText = /*#__PURE__*/react.styled('span')({
  name: "ButtonText",
  "class": "bzw1898",
  propsAsIs: false
});
var StyledAdditionalContent = /*#__PURE__*/react.styled('div')({
  name: "StyledAdditionalContent",
  "class": "sdfuqwe",
  propsAsIs: false
});
var ButtonValue = /*#__PURE__*/react.styled('span')({
  name: "ButtonValue",
  "class": "b9ypozh",
  propsAsIs: false
});

// TODO: #720
var _exp12 = function _exp12() {
  return function (_ref) {
    var isLoading = _ref.isLoading;
    return isLoading ? '0' : '1';
  };
};
var _exp13 = function _exp13() {
  return function (_ref2) {
    var contentPlacing = _ref2.contentPlacing;
    return contentPlacing;
  };
};
var LoadWrap = /*#__PURE__*/react.styled('div')({
  name: "LoadWrap",
  "class": "l4dfhbg",
  propsAsIs: false,
  vars: {
    "l4dfhbg-0": [/*#__PURE__*/_exp12()],
    "l4dfhbg-1": [/*#__PURE__*/_exp13()]
  }
});
var Loader = /*#__PURE__*/react.styled('div')({
  name: "Loader",
  "class": "lrdlazt",
  propsAsIs: false
});
var _exp14 = function _exp14() {
  return Spinner;
};
var StyledSpinner = /*#__PURE__*/react.styled(_exp14())({
  name: "StyledSpinner",
  "class": "s7rggv0",
  propsAsIs: true
});
var _exp21 = function _exp21() {
  return function (_ref3) {
    var hasContentMargin = _ref3.hasContentMargin;
    return hasContentMargin ? "var(".concat(Button_tokens.tokens.buttonLeftContentMargin, ")") : 0;
  };
};
var StyledContentLeft = /*#__PURE__*/react.styled('div')({
  name: "StyledContentLeft",
  "class": "s1rjh7ra",
  propsAsIs: false,
  vars: {
    "s1rjh7ra-0": [/*#__PURE__*/_exp21()]
  }
});
var _exp24 = function _exp24() {
  return function (_ref4) {
    var hasContentMargin = _ref4.hasContentMargin;
    return hasContentMargin ? "var(".concat(Button_tokens.tokens.buttonRightContentMargin, ")") : 0;
  };
};
var StyledContentRight = /*#__PURE__*/react.styled('div')({
  name: "StyledContentRight",
  "class": "s9ga1dj",
  propsAsIs: false,
  vars: {
    "s9ga1dj-0": [/*#__PURE__*/_exp24()]
  }
});
var base = "babf779";

exports.ButtonText = ButtonText;
exports.ButtonValue = ButtonValue;
exports.LoadWrap = LoadWrap;
exports.Loader = Loader;
exports.StyledAdditionalContent = StyledAdditionalContent;
exports.StyledContentLeft = StyledContentLeft;
exports.StyledContentRight = StyledContentRight;
exports.StyledSpinner = StyledSpinner;
exports.base = base;
//# sourceMappingURL=Button.styles.js.map
