"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 SwitchMeta = {
  componentName: 'Switch',
  title: 'Switch',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  group: '基础组件',
  category: '操作反馈',
  npm: {
    "package": 'kernelsoft-lowcode-material',
    version: '0.1.1-alpha1',
    exportName: 'Switch',
    main: 'src/index.tsx',
    destructuring: true,
    subName: ''
  },
  configure: {
    props: [{
      title: {
        label: {
          type: 'i18n',
          'en-US': 'checked',
          'zh-CN': '状态'
        }
      },
      name: 'checked',
      setter: {
        componentName: 'BoolSetter',
        isRequired: true
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'disable',
          'zh-CN': '是否禁用'
        }
      },
      name: 'disable',
      setter: {
        componentName: 'BoolSetter',
        isRequired: true
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'activeColor',
          'zh-CN': '打开颜色'
        }
      },
      name: 'activeColor',
      setter: {
        componentName: 'ColorSetter',
        isRequired: true
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'inactiveColor',
          'zh-CN': '关闭颜色'
        }
      },
      name: 'inactiveColor',
      setter: {
        componentName: 'ColorSetter',
        isRequired: true,
        initialValue: ''
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'activeText',
          'zh-CN': '打开文字'
        }
      },
      name: 'activeText',
      setter: {
        componentName: 'StringSetter',
        isRequired: true
      }
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'inactiveText',
          'zh-CN': '关闭文字'
        }
      },
      name: 'inactiveText',
      setter: {
        componentName: 'StringSetter',
        isRequired: true,
        initialValue: ''
      }
    }],
    supports: {},
    component: {}
  }
};
var snippets = [{
  title: '开关',
  screenshot: require("../icons/switch.svg"),
  schema: {
    componentName: 'Switch',
    props: {
      leftAction: {
        type: 'JSSlot',
        value: []
      },
      rightAction: {
        type: 'JSSlot',
        value: []
      }
    }
  }
}];
var _default = exports["default"] = (0, _extends2["default"])({}, SwitchMeta, {
  snippets: snippets
});