react-quizzes-fork
Version:
React quizz/form builder and delivery solution
116 lines • 5.16 kB
JavaScript
;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var index_1 = __importDefault(require("antd/es/avatar/index"));
var index_2 = __importDefault(require("antd/es/icon/index"));
var RadioButtons_1 = __importDefault(require("./Components/RadioButtons"));
var MultiLineInput_1 = __importDefault(require("./Components/MultiLineInput"));
var radiobuttonicon_1 = __importDefault(require("./CustomIcons/radiobuttonicon"));
var multiLineInputIcon_1 = __importDefault(require("./CustomIcons/multiLineInputIcon"));
function _defaultItems() {
// deafult sample question
var questions = {
es: "Pregunta ejemplo",
};
var options = [
{
value: "1",
text: __assign({}, questions)
}
];
return [
// {
// key: "Select",
// name: "toolbox.select.name", // id of translation
// questions,
// options,
// // description: "toolbox.label.description", // desciption under input on toolbox
// icon: <Avatar icon="down-square" />, // this will go to Dom so can be string|| jsx component
// field_name: "select_", // will add a generated uuidv4
// Component: Select // component not instanciated
// },
// {
// key: "Tags",
// name: "toolbox.tags.name", // id of translation
// questions,
// options,
// // description: "toolbox.label.description", // desciption under input on toolbox
// icon: <Avatar icon="tags" />, // this will go to Dom so can be string|| jsx component
// field_name: "tags_", // will add a generated uuidv4
// Component: Tags // component not instanciated
// },
// {
// key: "Checkboxes",
// name: "toolbox.checkboxes.name", // id of translation
// questions,
// options,
// // description: "toolbox.label.description", // desciption under input on toolbox
// icon: <Avatar icon="check-circle" />, // this will go to Dom so can be string|| jsx component
// field_name: "checkboxes_", // will add a generated uuidv4
// Component: Checkboxes // component not instanciated
// },
{
key: "RadioButtons",
name: "toolbox.radiobuttons.name",
questions: questions,
options: options,
// description: "toolbox.label.description", // desciption under input on toolbox
icon: (react_1.default.createElement(index_1.default, null,
react_1.default.createElement(index_2.default, { component: radiobuttonicon_1.default }))),
field_name: "radiobuttons_",
Component: RadioButtons_1.default // component not instanciated
},
// {
// key: "TextInput",
// name: "toolbox.textinput.name", // id of translation
// questions,
// // description: "toolbox.textInput.description", // desciption under input on toolbox
// icon: (
// <Avatar>
// <Icon component={inputIcon} />
// </Avatar>
// ), // this will go to Dom so can be string|| jsx component
// field_name: "textinput_", // will add a generated uuidv4
// Component: TextInput // component not instanciated
// },
// {
// key: "NumberInput",
// name: "toolbox.numberinput.name", // id of translation
// questions,
// // description: "toolbox.textInput.description", // desciption under input on toolbox
// icon: (
// <Avatar>
// <Icon component={numberInputIcon} />
// </Avatar>
// ), // this will go to Dom so can be string|| jsx component
// field_name: "numberinput_", // will add a generated uuidv4
// Component: NumberInput // component not instanciated
// },
{
key: "MultiLineInput",
name: "toolbox.multilineinput.name",
questions: questions,
// description: "toolbox.textInput.description", // desciption under input on toolbox
icon: (react_1.default.createElement(index_1.default, null,
react_1.default.createElement(index_2.default, { component: multiLineInputIcon_1.default }))),
field_name: "multilineinput_",
Component: MultiLineInput_1.default // component not instanciated
},
];
}
exports.default = _defaultItems;
//# sourceMappingURL=index.js.map