intelicoreact 1.2.61 → 1.2.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,6 +23,8 @@ require("./Hint.scss");
|
|
|
23
23
|
|
|
24
24
|
var _CustomIcons = require("../../../Molecular/CustomIcons");
|
|
25
25
|
|
|
26
|
+
var _utils = require("../../../Functions/utils");
|
|
27
|
+
|
|
26
28
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
29
|
|
|
28
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -132,7 +134,7 @@ var Hint = function Hint(_ref) {
|
|
|
132
134
|
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
133
135
|
"tab-index": 0,
|
|
134
136
|
"data-testid": 'test-hint',
|
|
135
|
-
"aria-label":
|
|
137
|
+
"aria-label": (0, _utils.firstLetterCapital)(label),
|
|
136
138
|
onClick: function onClick() {
|
|
137
139
|
return handleOpenType === 'click' && (isCallbackExist ? onClickCallback() : setIsOpen(!isOpen));
|
|
138
140
|
},
|
package/dist/Functions/utils.js
CHANGED
|
@@ -338,7 +338,7 @@ var changeMeta = function changeMeta(key) {
|
|
|
338
338
|
exports.changeMeta = changeMeta;
|
|
339
339
|
|
|
340
340
|
var firstLetterCapital = function firstLetterCapital(str) {
|
|
341
|
-
return "".concat(str.charAt(0).toUpperCase()).concat(str.slice(1));
|
|
341
|
+
return typeof str === 'string' ? "".concat(str.charAt(0).toUpperCase()).concat(str.slice(1)) : str;
|
|
342
342
|
};
|
|
343
343
|
|
|
344
344
|
exports.firstLetterCapital = firstLetterCapital;
|