"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ButtonText = exports.ButtonComponent = void 0;
var native_1 = __importDefault(require("styled-components/native"));
var ITheme_1 = require("../../AppProvider/ITheme");
var Pressable_1 = require("../../Pressable");
var RFValue_1 = require("../../RFValue");
var TextNative_1 = require("../../TextNative");
exports.ButtonComponent = native_1.default(Pressable_1.Pressable)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n   background: ", ";\n   padding: 10px;\n   overflow: hidden;\n   border-radius: 5px;\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n  \n  ", "\n  ", "\n  ", "\n  ", "\n  ", "\n  ", "\n  ", "\n  ", "\n  ", "\n  ", "\n  ", "\n  ", "\n  ", "\n  \n"], ["\n   background: ", ";\n   padding: 10px;\n   overflow: hidden;\n   border-radius: 5px;\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n  \n  ", "\n  ", "\n  ",
    "\n  ",
    "\n  ",
    "\n  ", "\n  ",
    "\n  ",
    "\n  ",
    "\n  ", "\n  ", "\n  ", "\n  ", "\n  \n"])), function (props) { return "" + (props.theme.primary || ITheme_1.themeDefault.primary); }, function (props) { return props.rounded && "border-radius: 40px;"; }, function (props) { return props.variant === 'primary' && "background: " + (props.theme.primary || ITheme_1.themeDefault.primary) + ";"; }, function (props) { return props.variant === 'secondary' && "background: " + (props.theme.secondary || ITheme_1.themeDefault.secondary) + ";"; }, function (props) { return props.variant === 'success' && "background: " + (props.theme.success || ITheme_1.themeDefault.success) + ";"; }, function (props) { return props.variant === 'info' && "background: " + (props.theme.info || ITheme_1.themeDefault.info) + ";"; }, function (props) { return props.variant === 'warning' && "background: " + (props.theme.warning || ITheme_1.themeDefault.warning) + ";"; }, function (props) { return props.variant === 'danger' && "background: " + (props.theme.danger || ITheme_1.themeDefault.danger) + ";"; }, function (props) { return props.variant === 'light' && "background: " + (props.theme.light || ITheme_1.themeDefault.light) + ";"; }, function (props) { return props.variant === 'dark' && "background: " + (props.theme.dark || ITheme_1.themeDefault.dark) + ";"; }, function (props) { return props.variant === 'link' && "background: transparent;"; }, function (props) { return props.outline && "border-width: 2px;"; }, function (props) { return props.outline && "background: transparent;"; }, function (props) {
    return props.outline && props.variant === 'primary' && "border-color: " + (props.theme.primary || ITheme_1.themeDefault.primary) + ";";
}, function (props) {
    return props.outline &&
        props.variant === 'secondary' &&
        "border-color: " + (props.theme.secondary || ITheme_1.themeDefault.secondary) + ";";
}, function (props) {
    return props.outline && props.variant === 'success' && "border-color: " + (props.theme.success || ITheme_1.themeDefault.success) + ";";
}, function (props) { return props.outline && props.variant === 'info' && "border-color: " + (props.theme.info || ITheme_1.themeDefault.info) + ";"; }, function (props) {
    return props.outline && props.variant === 'warning' && "border-color: " + (props.theme.warning || ITheme_1.themeDefault.warning) + ";";
}, function (props) {
    return props.outline && props.variant === 'danger' && "border-color: " + (props.theme.danger || ITheme_1.themeDefault.danger) + ";";
}, function (props) {
    return props.outline && props.variant === 'light' && "border-color: " + (props.theme.light || ITheme_1.themeDefault.light) + ";";
}, function (props) { return props.outline && props.variant === 'dark' && "border-color: " + (props.theme.dark || ITheme_1.themeDefault.dark) + ";"; }, function (props) { return props.variant === 'link' && "border-width: 0px;"; }, function (props) { return props.size === 'sm' && "padding: 5px;"; }, function (props) { return props.size === 'lg' && "padding: 12px;"; });
exports.ButtonText = native_1.default(TextNative_1.TextNative)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n   text-align: center;\n   color: white;\n   font-size: ", "px;\n   ", "\n  ", "\n   ", "\n   ", "\n   \n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n   ", "\n"], ["\n   text-align: center;\n   color: white;\n   font-size: ", "px;\n   ", "\n  ", "\n   ", "\n   ", "\n   \n   ",
    "\n   ",
    "\n   ",
    "\n   ", "\n   ",
    "\n   ", "\n   ", "\n   ", "\n"])), RFValue_1.RFValue(14), function (props) { return props.size === 'sm' && "font-size: " + RFValue_1.RFValue(12) + "px"; }, function (props) { return props.size === 'lg' && "font-size: " + RFValue_1.RFValue(16) + "px"; }, function (props) { return props.variant === 'light' && "color: " + (props.theme.light_text || '#666') + ";"; }, function (props) { return props.variant === 'link' && "color: " + (props.theme.primary || ITheme_1.themeDefault.primary) + ";"; }, function (props) {
    return props.outline && props.variant === 'primary' && "color: " + (props.theme.primary || ITheme_1.themeDefault.primary) + ";";
}, function (props) {
    return props.outline && props.variant === 'secondary' && "color: " + (props.theme.secondary || ITheme_1.themeDefault.secondary) + ";";
}, function (props) {
    return props.outline && props.variant === 'success' && "color: " + (props.theme.success || ITheme_1.themeDefault.success) + ";";
}, function (props) { return props.outline && props.variant === 'info' && "color: " + (props.theme.info || ITheme_1.themeDefault.info) + ";"; }, function (props) {
    return props.outline && props.variant === 'warning' && "color: " + (props.theme.warning || ITheme_1.themeDefault.warning) + ";";
}, function (props) { return props.outline && props.variant === 'danger' && "color: " + (props.theme.danger || ITheme_1.themeDefault.danger) + ";"; }, function (props) { return props.outline && props.variant === 'light' && "color: " + (props.theme.light || ITheme_1.themeDefault.light) + ";"; }, function (props) { return props.outline && props.variant === 'dark' && "color: " + (props.theme.dark || ITheme_1.themeDefault.dark) + ";"; });
var templateObject_1, templateObject_2;
//# sourceMappingURL=button.style.js.map