intelicoreact 1.3.79 → 1.3.81

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.
@@ -55,10 +55,10 @@ const Hint = _ref => {
55
55
  const getHintContainer = () => {
56
56
  return document.getElementById(hintId);
57
57
  };
58
- const getHintMarkUp = () => {
58
+ const getHintMarkUp = className => {
59
59
  return /*#__PURE__*/_react.default.createElement("div", {
60
60
  "data-testid": "test-hint-text",
61
- className: (0, _classnames.default)("hint__text", "hint__text_".concat(side))
61
+ className: (0, _classnames.default)("hint__text", "hint__text_".concat(side), "hint--".concat(className, "__text"))
62
62
  }, hint, children);
63
63
  };
64
64
  const setHintContainerStyles = () => {
@@ -77,10 +77,10 @@ const Hint = _ref => {
77
77
  hc.style.top = isOpen ? top === null || top === void 0 ? void 0 : top.toString().concat("px") : 0;
78
78
  hc.style.maxHeight = isOpen ? swHeight === null || swHeight === void 0 ? void 0 : swHeight.toString().concat("px") : 0;
79
79
  };
80
- const renderHintContainer = () => {
80
+ const renderHintContainer = className => {
81
81
  const hc = getHintContainer();
82
82
  if (!hc) return null;
83
- return /*#__PURE__*/(0, _reactDom.createPortal)(getHintMarkUp(), hc);
83
+ return /*#__PURE__*/(0, _reactDom.createPortal)(getHintMarkUp(className), hc);
84
84
  };
85
85
  (0, _react.useEffect)(() => {
86
86
  initHintContainer();
@@ -120,6 +120,6 @@ const Hint = _ref => {
120
120
  className: (0, _classnames.default)("hint__label", {
121
121
  "color--primary": isOpen
122
122
  })
123
- }, (0, _utils.capitalized)(label))), isOpen && renderHintContainer());
123
+ }, (0, _utils.capitalized)(label))), isOpen && renderHintContainer(className));
124
124
  };
125
125
  var _default = exports.default = Hint;
@@ -78,6 +78,16 @@
78
78
  left: 8px;
79
79
  }
80
80
  }
81
+ &_centeredBottom {
82
+ top: 26px;
83
+ left: 50%;
84
+ transform: translateX(-50%);
85
+
86
+ &::before {
87
+ top: -4.25px;
88
+ left: calc(50% - 8px);
89
+ }
90
+ }
81
91
 
82
92
  &_right {
83
93
  top: -4px;
@@ -96,10 +96,10 @@ class ApiUtils extends _Utils.default {
96
96
  if (typeof getBodyAs === 'string' && getBodyAs in response && typeof response[getBodyAs] === 'function') {
97
97
  return response[getBodyAs];
98
98
  }
99
- if (contentType.includes('text/csv')) {
99
+ if (contentType !== null && contentType !== void 0 && contentType.includes('text/csv')) {
100
100
  return response.blob;
101
101
  }
102
- return contentType.includes('json') ? response.json : response.text;
102
+ if (contentType) return contentType.includes("json") ? response.json : response.text;
103
103
  })();
104
104
 
105
105
  // обработка случаев краша метода json при отсутствии тела ответа
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.3.79",
3
+ "version": "1.3.81",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [