(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "tslib", "styled-components", "../utils/theme/getTheme", "../Pallette/style-utils", "../Pallette/Shape", "../typography/P2", "../Pallette/themes", "./theme"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.ListBaseItemStyled = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importStar)(require("styled-components"));
    var getTheme_1 = require("../utils/theme/getTheme");
    var style_utils_1 = require("../Pallette/style-utils");
    var Shape_1 = require("../Pallette/Shape");
    var P2_1 = (0, tslib_1.__importDefault)(require("../typography/P2"));
    var themes_1 = require("../Pallette/themes");
    var theme_1 = require("./theme");
    var COMPONENT_NAME = "list";
    exports.ListBaseItemStyled = (0, styled_components_1.default)(P2_1.default).attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            componentName: COMPONENT_NAME,
            theme: props.theme,
            defaultTheme: theme_1.defaultThemeList
        })
    }); })(templateObject_7 || (templateObject_7 = (0, tslib_1.__makeTemplateObject)(["\n  display: flex;\n  align-items: center;\n  box-sizing: border-box;\n  word-break: break-word;\n  border-radius: ", ";\n  cursor: ", ";\n\n  ", "\n\n  p, h6 {\n    ", "\n  }\n\n  ", ";\n"], ["\n  display: flex;\n  align-items: center;\n  box-sizing: border-box;\n  word-break: break-word;\n  border-radius: ", ";\n  cursor: ", ";\n\n  ", "\n\n  p, h6 {\n    ", "\n  }\n\n  ", ";\n"])), Shape_1.Shape.borderRadiusMedium, function (_a) {
        var isDisabled = _a.isDisabled;
        return (isDisabled ? "not-allowed" : "pointer");
    }, function (_a) {
        var size = _a.size;
        if (size === "m") {
            return style_utils_1.Padding.allSide(2, 4);
        }
        if (size === "s") {
            return style_utils_1.Padding.allSide(0, 4);
        }
        return style_utils_1.Padding.allSide(3, 4);
    }, style_utils_1.Padding.allSide(1), function (_a) {
        var theme = _a.theme, isSelected = _a.isSelected, isDisabled = _a.isDisabled, size = _a.size;
        if (size === "s") {
            if (isDisabled) {
                return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n          color: ", ";\n        "], ["\n          color: ", ";\n        "])), theme.components[COMPONENT_NAME].colorDisabled);
            }
            if (isSelected) {
                return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n          color: ", ";\n        "], ["\n          color: ", ";\n        "])), theme.components[COMPONENT_NAME].colorSelectedSizeS);
            }
            return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n        color: ", ";\n        &:hover {\n          color: ", ";\n        }\n      "], ["\n        color: ", ";\n        &:hover {\n          color: ", ";\n        }\n      "])), theme.components[COMPONENT_NAME].colorDefault, theme.components[COMPONENT_NAME].colorHover);
        }
        if (isDisabled) {
            return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n        background: ", ";\n        color: ", ";\n      "], ["\n        background: ", ";\n        color: ", ";\n      "])), theme.components[COMPONENT_NAME].backgroundDisabled, theme.components[COMPONENT_NAME].colorDisabled);
        }
        if (isSelected) {
            return (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n        background: ", ";\n        color: ", ";\n      "], ["\n        background: ", ";\n        color: ", ";\n      "])), theme.components[COMPONENT_NAME].backgroundSelected, theme.components[COMPONENT_NAME].colorSelected);
        }
        return (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = (0, tslib_1.__makeTemplateObject)(["\n      background: ", ";\n      color: ", ";\n\n      &:hover {\n        svg {\n          color: ", ";\n        }\n        background: ", ";\n        color: ", ";\n      }\n    "], ["\n      background: ", ";\n      color: ", ";\n\n      &:hover {\n        svg {\n          color: ", ";\n        }\n        background: ", ";\n        color: ", ";\n      }\n    "])), theme.components[COMPONENT_NAME].backgroundDefault, theme.components[COMPONENT_NAME].colorDefault, theme.components[COMPONENT_NAME].colorHover, theme.components[COMPONENT_NAME].backgroundHover, theme.components[COMPONENT_NAME].colorHover);
    });
    exports.ListBaseItemStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
});
