(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", "../../../utils/defineResponsibleSize"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.ListItemsWrapper = exports.ListStyled = 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 defineResponsibleSize_1 = require("../../../utils/defineResponsibleSize");
    exports.ListStyled = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n  user-select: none;\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0;\n  padding: 0;\n  ", ";\n  ", ";\n"], ["\n  user-select: none;\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0;\n  padding: 0;\n  ", ";\n  ", ";\n"])), function (_a) {
        var width = _a.width;
        return (0, defineResponsibleSize_1.defineResponsibleWidth)(width);
    }, function (_a) {
        var height = _a.height;
        return (0, defineResponsibleSize_1.defineResponsibleHeight)(height);
    });
    exports.ListStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.ListItemsWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  transition: all 0.3s;\n\n  ", "\n"], ["\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  transition: all 0.3s;\n\n  ", "\n"])), function (_a) {
        var isExpand = _a.isExpand, type = _a.type, isHeader = _a.isHeader;
        if (type === "collapse" && isHeader) {
            return isExpand
                ? (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n            opacity: 1;\n            max-height: 100%;\n          "], ["\n            opacity: 1;\n            max-height: 100%;\n          "]))) : (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n            opacity: 0;\n            max-height: 0;\n            display: none;\n          "], ["\n            opacity: 0;\n            max-height: 0;\n            display: none;\n          "])));
        }
        return null;
    });
    exports.ListItemsWrapper.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
});
