"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * title: "单选选项卡（支持纵横布局）"
 * description: "通过设置Radio.Group的style属性，实现横向和纵向布局；灵活使用Radio，实现选项卡。"
 */
var react_1 = __importStar(require("react"));
var console_components_1 = require("@alicloud/console-components");
var styled_components_1 = __importDefault(require("styled-components"));
var List = [
    {
        label: '输入文字',
        value: 'A',
    },
    {
        label: '输入文字',
        value: 'B',
    },
    {
        label: '输入文字',
        value: 'C',
        disabled: true,
    },
    {
        label: '输入文字',
        value: 'D',
    },
];
var StyledDiv = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  border-radius: 4px;\n  border: 1px solid #e5e5e5;\n  padding: 16px;\n  width: 254px;\n  box-sizing: content-box;\n  height:60px;\n  &:hover {\n    background-color: #f7f9fa;\n    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16);\n  }\n"], ["\n  border-radius: 4px;\n  border: 1px solid #e5e5e5;\n  padding: 16px;\n  width: 254px;\n  box-sizing: content-box;\n  height:60px;\n  &:hover {\n    background-color: #f7f9fa;\n    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16);\n  }\n"])));
var girdStyle = {
    display: 'grid',
    gridTemplateColumns: '1fr 1fr',
    grigTemplateRows: '1fr 1fr',
    gridColumnGap: '8px',
    gridRowGap: '8px',
    width: '512px',
};
exports.default = (function () {
    var _a = (0, react_1.useState)(''), checkedList = _a[0], setCheckedList = _a[1];
    return (react_1.default.createElement("div", null,
        react_1.default.createElement(console_components_1.Radio.Group, { value: checkedList, onChange: function (value) { return setCheckedList("".concat(value)); }, style: girdStyle }, List.map(function (item) { return (react_1.default.createElement(StyledDiv, { style: checkedList === item.value ? { backgroundColor: '#eff3f8' } : {} },
            react_1.default.createElement(console_components_1.Radio, { value: item.value, disabled: item.disabled },
                item.label,
                react_1.default.createElement("p", { style: {
                        margin: '0 0 0 24px',
                        color: '#808080',
                    } },
                    "\u6309\u6307\u5B9AIP/\u5B9E\u4F8BID\u7533\u8BF7\uFF0C\u6BCF\u6708\u9650\u4F7F\u752820\u6B21\uFF0C\u5982\u9700\u63D0\u5347\u914D\u989D\u9700",
                    react_1.default.createElement("a", { style: { color: '#0064c8' } }, "\u63D0\u4EA4\u5DE5\u5355\u7533\u8BF7"))))); }))));
});
var templateObject_1;
