(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", "../Pallette/themes", "../InputBase", "../utils/theme/getTheme", "./themes"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.InputNumberStyled = exports.StepWrapper = exports.InputNumberWrapper = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importStar)(require("styled-components"));
    var themes_1 = require("../Pallette/themes");
    var InputBase_1 = (0, tslib_1.__importDefault)(require("../InputBase"));
    var getTheme_1 = require("../utils/theme/getTheme");
    var themes_2 = require("./themes");
    var COMPONENT_NAME = "inputNumber";
    exports.InputNumberWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n  display: flex;\n  align-items: center;\n  width: 100%;\n  gap: 8px;\n"], ["\n  display: flex;\n  align-items: center;\n  width: 100%;\n  gap: 8px;\n"])));
    exports.StepWrapper = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            componentName: COMPONENT_NAME,
            theme: props.theme,
            defaultTheme: themes_2.defaultThemeInputNumber
        })
    }); })(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  height: 36px;\n  user-select: none;\n  -webkit-user-select: none;\n\n  div {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    width: 16px;\n    height: 16px;\n    border-radius: 4px;\n    cursor: ", ";\n\n    ", ";\n\n    ", "\n  }\n"], ["\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  height: 36px;\n  user-select: none;\n  -webkit-user-select: none;\n\n  div {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    width: 16px;\n    height: 16px;\n    border-radius: 4px;\n    cursor: ", ";\n\n    ", ";\n\n    ", "\n  }\n"])), function (_a) {
        var isDisabled = _a.isDisabled;
        return (isDisabled ? "not-allowed" : "pointer");
    }, function (_a) {
        var theme = _a.theme;
        return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n        background: ", ";\n        svg {\n          color: ", ";\n        }\n      "], ["\n        background: ", ";\n        svg {\n          color: ", ";\n        }\n      "])), theme.components[COMPONENT_NAME].backgroundStep, theme.components[COMPONENT_NAME].iconColorStep);
    }, function (_a) {
        var theme = _a.theme, isDisabled = _a.isDisabled;
        return isDisabled && (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n        background: ", ";\n        svg {\n          color: ", ";\n        }\n      "], ["\n        background: ", ";\n        svg {\n          color: ", ";\n        }\n      "])), theme.components[COMPONENT_NAME].backgroundStepDisabled, theme.components[COMPONENT_NAME].iconColorStepDisabled);
    });
    exports.StepWrapper.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.InputNumberStyled = (0, styled_components_1.default)(InputBase_1.default).attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            componentName: COMPONENT_NAME,
            theme: props.theme,
            defaultTheme: themes_2.defaultThemeInputNumber
        })
    }); })(templateObject_7 || (templateObject_7 = (0, tslib_1.__makeTemplateObject)(["\n  padding-right: 16px;\n  ", " {\n    div {\n      &:hover {\n        ", ";\n      }\n    }\n  }\n\n  input {\n    ::placeholder {\n      ", "\n    }\n  }\n"], ["\n  padding-right: 16px;\n  ", " {\n    div {\n      &:hover {\n        ", ";\n      }\n    }\n  }\n\n  input {\n    ::placeholder {\n      ", "\n    }\n  }\n"])), exports.StepWrapper, function (_a) {
        var theme = _a.theme;
        return (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n          background: ", ";\n\n          svg {\n            color: ", ";\n          }\n        "], ["\n          background: ", ";\n\n          svg {\n            color: ", ";\n          }\n        "])), theme.components[COMPONENT_NAME].backgroundStepHover, theme.components[COMPONENT_NAME].iconColorStepHover);
    }, function (_a) {
        var theme = _a.theme, isReadOnly = _a.isReadOnly;
        return isReadOnly && (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = (0, tslib_1.__makeTemplateObject)(["\n          color: ", ";\n        "], ["\n          color: ", ";\n        "])), theme.components[COMPONENT_NAME].colorReadOnly);
    });
    exports.InputNumberStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
});
