"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
// eslint-disable-next-line @typescript-eslint/no-unused-vars

var RadioMeta = {
  componentName: 'Radio',
  title: 'Radio',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  group: '基础组件',
  category: '数据录入',
  npm: {
    "package": 'kernelsoft-lowcode-material',
    version: '0.1.1-alpha1',
    exportName: 'Radio',
    main: 'src/index.tsx',
    destructuring: true,
    subName: ''
  },
  configure: {
    props: [{
      title: {
        label: {
          type: 'i18n',
          'en-US': 'value',
          'zh-CN': '选中值'
        }
      },
      name: 'value',
      setter: {
        componentName: 'StringSetter',
        isRequired: true
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'options',
          'zh-CN': '选项'
        }
      },
      name: 'options',
      setter: {
        componentName: 'ArraySetter',
        props: {
          itemSetter: {
            componentName: 'ObjectSetter',
            props: {
              config: {
                items: [{
                  title: {
                    label: {
                      type: 'i18n',
                      'en-US': 'title',
                      'zh-CN': '文本'
                    }
                  },
                  name: 'title',
                  setter: {
                    componentName: 'StringSetter',
                    isRequired: true,
                    initialValue: ''
                  }
                }, {
                  title: {
                    label: {
                      type: 'i18n',
                      'en-US': 'value',
                      'zh-CN': '值'
                    }
                  },
                  name: 'value',
                  setter: {
                    componentName: 'StringSetter',
                    isRequired: true,
                    initialValue: ''
                  }
                }],
                extraSetter: {
                  componentName: 'MixedSetter',
                  isRequired: false,
                  props: {}
                }
              }
            }
          }
        },
        isRequired: true
      }
    }],
    supports: {
      style: true
    },
    component: {}
  }
};
var snippets = [{
  title: '单选',
  screenshot: require("../icons/radio.svg"),
  schema: {
    componentName: 'Radio',
    props: {
      value: '1',
      options: [{
        value: '1',
        title: '选项A'
      }, {
        value: '2',
        title: '选项B'
      }, {
        value: '3',
        title: '选项C'
      }, {
        value: '4',
        title: '选项D'
      }]
    }
  }
}];
var _default = exports["default"] = (0, _extends2["default"])({}, RadioMeta, {
  snippets: snippets
});