react-core-ts
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -74,2 +74,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tooltip_1 = __importDefault(require("./utilities/tooltip")); | ||
var react_1 = __importStar(require("react")); | ||
@@ -81,3 +82,2 @@ var autosuggestions_1 = require("./utilities/autosuggestions"); | ||
var icons_1 = require("./utilities/icons"); | ||
var tootltip_1 = __importDefault(require("./utilities/tootltip")); | ||
var AutoComplete = (0, react_1.forwardRef)(function (_a, ref) { | ||
@@ -274,7 +274,7 @@ var _b, _c, _d, _e, _f, _g; | ||
react_1.default.createElement("div", { key: selectedItems[0].id, className: "selected-item" }, | ||
react_1.default.createElement(tootltip_1.default, { title: (_b = selectedItems[0]) === null || _b === void 0 ? void 0 : _b[desc] }, ((_d = (_c = selectedItems[0]) === null || _c === void 0 ? void 0 : _c[desc]) === null || _d === void 0 ? void 0 : _d.length) > 8 | ||
react_1.default.createElement(tooltip_1.default, { title: (_b = selectedItems[0]) === null || _b === void 0 ? void 0 : _b[desc] }, ((_d = (_c = selectedItems[0]) === null || _c === void 0 ? void 0 : _c[desc]) === null || _d === void 0 ? void 0 : _d.length) > 8 | ||
? "".concat((_e = selectedItems[0]) === null || _e === void 0 ? void 0 : _e[desc].substring(0, 8), "...") | ||
: (_f = selectedItems[0]) === null || _f === void 0 ? void 0 : _f[desc]), | ||
react_1.default.createElement("button", { onClick: function () { return handleRemoveSelectedItem(0); }, className: "remove-item-btn", "aria-label": "Remove ".concat((_g = selectedItems[0]) === null || _g === void 0 ? void 0 : _g[desc]) }, "X")), | ||
react_1.default.createElement(tootltip_1.default, { title: tooltipContent }, (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 1 && (react_1.default.createElement("div", { className: "selected-item-more" }, | ||
react_1.default.createElement(tooltip_1.default, { title: tooltipContent }, (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 1 && (react_1.default.createElement("div", { className: "selected-item-more" }, | ||
"+", | ||
@@ -281,0 +281,0 @@ (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) - 1, |
{ | ||
"name": "react-core-ts", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "React Components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100380
38
1752