intelicoreact 1.3.80 → 1.3.82

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,18 @@
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% -
89
+
90
+ px);
91
+ }
92
+ }
81
93
 
82
94
  &_right {
83
95
  top: -4px;
@@ -99,7 +99,8 @@ class ApiUtils extends _Utils.default {
99
99
  if (contentType !== null && contentType !== void 0 && contentType.includes('text/csv')) {
100
100
  return response.blob;
101
101
  }
102
- if (contentType) return contentType.includes("json") ? response.json : response.text;
102
+ if (contentType !== null && contentType !== void 0 && contentType.includes("json")) return response.json;
103
+ return response.text;
103
104
  })();
104
105
 
105
106
  // обработка случаев краша метода json при отсутствии тела ответа
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.3.80",
3
+ "version": "1.3.82",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [