myprojectpackageprav
Version:
My package in npm
20 lines • 1.79 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
var InputLabel = function (inputProps) {
var _a;
return (react_1.default.createElement("label", { htmlFor: (_a = inputProps === null || inputProps === void 0 ? void 0 : inputProps.labelProps) === null || _a === void 0 ? void 0 : _a.htmlFor, className: inputProps === null || inputProps === void 0 ? void 0 : inputProps.className }, inputProps === null || inputProps === void 0 ? void 0 :
inputProps.label,
" ",
(inputProps === null || inputProps === void 0 ? void 0 : inputProps.currency) && react_1.default.createElement("span", { className: "currency" }, "$"),
" ",
(inputProps === null || inputProps === void 0 ? void 0 : inputProps.isbadge) && react_1.default.createElement("span", { className: inputProps === null || inputProps === void 0 ? void 0 : inputProps.badge }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.isbadge),
" ",
(inputProps === null || inputProps === void 0 ? void 0 : inputProps.mandatory) && react_1.default.createElement("span", { className: "mandatory" }, "*"),
" ",
(inputProps === null || inputProps === void 0 ? void 0 : inputProps.isinfoLabel) && react_1.default.createElement("span", { className: inputProps === null || inputProps === void 0 ? void 0 : inputProps.isinfoClassName, "data-tip": inputProps === null || inputProps === void 0 ? void 0 : inputProps.infoLabel },
react_1.default.createElement("span", { className: inputProps === null || inputProps === void 0 ? void 0 : inputProps.isinfoIcon }))));
};
exports.default = InputLabel;
//# sourceMappingURL=input-label.js.map