(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", "../../../typography/P2", "../../../Pallette/themes", "../../themes", "../../../utils/theme/getTheme"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.SingleValueStyle = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importDefault)(require("styled-components"));
    var P2_1 = (0, tslib_1.__importDefault)(require("../../../typography/P2"));
    var themes_1 = require("../../../Pallette/themes");
    var themes_2 = require("../../themes");
    var getTheme_1 = require("../../../utils/theme/getTheme");
    exports.SingleValueStyle = (0, styled_components_1.default)(P2_1.default).attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            defaultTheme: themes_2.defaultThemeSelect,
            componentName: "select"
        })
    }); })(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  overflow: hidden;\n\n  color: ", ";\n"], ["\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  overflow: hidden;\n\n  color: ", ";\n"])), function (_a) {
        var theme = _a.theme, isDisabled = _a.isDisabled;
        return isDisabled
            ? theme.components.select.colorDisabled
            : theme.components.select.color;
    });
    exports.SingleValueStyle.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1;
});
