"use strict";
exports.__esModule = true;
exports.ListNumeric = exports.listNumericPropSizeDefault = exports.listNumericPropSize = exports.listNumericPropViewDefault = exports.listNumericPropView = void 0;
var tslib_1 = require("tslib");
// @ts-nocheck
require("./ListNumeric.css");
var react_1 = (0, tslib_1.__importDefault)(require("react"));
var html_react_parser_1 = (0, tslib_1.__importDefault)(require("html-react-parser"));
var bem_1 = require("../../utils/bem");
var PropsWithAsAttributes_1 = require("../../utils/types/PropsWithAsAttributes");
var Typography_1 = require("../Typography");
exports.listNumericPropView = ['default'];
exports.listNumericPropViewDefault = exports.listNumericPropView[0];
exports.listNumericPropSize = ['m'];
exports.listNumericPropSizeDefault = exports.listNumericPropSize[0];
var cnListNumeric = (0, bem_1.cn)('ListNumeric');
exports.ListNumeric = (0, PropsWithAsAttributes_1.forwardRefWithAs)(function (props, ref) {
    var _a = props.view, view = _a === void 0 ? exports.listNumericPropViewDefault : _a, groupTitle = props.groupTitle, _b = props.titleSize, titleSize = _b === void 0 ? 'lg' : _b, _c = props.size, size = _c === void 0 ? exports.listNumericPropSizeDefault : _c, items = props.items, _d = props.titleTag, titleTag = _d === void 0 ? 'div' : _d;
    return (react_1["default"].createElement("div", { className: cnListNumeric({ view: view, size: size }) },
        groupTitle && (react_1["default"].createElement(Typography_1.Typography.Text, { className: cnListNumeric('Title'), size: "xs", weight: "bold", transform: "uppercase" }, groupTitle)),
        react_1["default"].createElement("div", { className: cnListNumeric('List') }, items &&
            items.map(function (item) { return (react_1["default"].createElement("div", { className: cnListNumeric('Item') },
                react_1["default"].createElement(Typography_1.Typography.Title, { className: cnListNumeric('Item-Title'), size: titleSize, as: titleTag }, item.title),
                react_1["default"].createElement(Typography_1.Typography.Text, { className: cnListNumeric('Item-Text') }, (0, html_react_parser_1["default"])(item.text)))); }))));
});
