intelicoreact 0.2.55 → 0.2.58

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.
@@ -96,7 +96,7 @@ var InputCalendar = function InputCalendar(_ref) {
96
96
  var _inputRef$current;
97
97
 
98
98
  var value = inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.value;
99
- if ((0, _momentTimezone.default)(value, format).format(format) === 'Invalid date') onChange(formattedMaxDate !== null && formattedMaxDate !== void 0 ? formattedMaxDate : '');else if ((0, _momentTimezone.default)(value, format).startOf('day').isBefore(momentMinDate, 'days')) onChange(formattedMinDate);else if ((0, _momentTimezone.default)(value, format).endOf('day').isAfter(momentMaxDate, 'days')) onChange(formattedMaxDate);else onChange((0, _momentTimezone.default)(value, format).format(format));
99
+ if (typeof isOpened === 'boolean' && (0, _momentTimezone.default)(value, format).format(format) === 'Invalid date') onChange(formattedMaxDate !== null && formattedMaxDate !== void 0 ? formattedMaxDate : '');else if (typeof isOpened === 'boolean' && (0, _momentTimezone.default)(value, format).startOf('day').isBefore(momentMinDate, 'days')) onChange(formattedMinDate);else if (typeof isOpened === 'boolean' && (0, _momentTimezone.default)(value, format).endOf('day').isAfter(momentMaxDate, 'days')) onChange(formattedMaxDate);else onChange((0, _momentTimezone.default)(value, format).format(format));
100
100
  };
101
101
 
102
102
  var onKeyDown = function onKeyDown(e) {
@@ -30,6 +30,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
30
30
  var RC = 'user-contacts';
31
31
 
32
32
  var UserContacts = function UserContacts(props) {
33
+ var _mainRef$current;
34
+
33
35
  var _ref = props || {},
34
36
  email = _ref.email,
35
37
  phone = _ref.phone,
@@ -92,14 +94,14 @@ var UserContacts = function UserContacts(props) {
92
94
  }
93
95
  };
94
96
 
95
- (0, _react.useLayoutEffect)(function () {
97
+ (0, _react.useLayoutEffect)(checkWidth, [isRunTask]);
98
+ (0, _react.useEffect)(function () {
96
99
  setIsRunTask({});
97
100
  return function () {
98
101
  setIsUseEmailIcon(false);
99
102
  setIsUsePhoneIcon(false);
100
103
  };
101
- }, [email, phone, isSalesContact, isSalesContact, isDisputeContact, isAccountingContact, +maxWidth]);
102
- (0, _react.useLayoutEffect)(checkWidth, [isRunTask]);
104
+ }, [email, phone, isSalesContact, isSalesContact, isDisputeContact, isAccountingContact, +maxWidth, mainRef === null || mainRef === void 0 ? void 0 : (_mainRef$current = mainRef.current) === null || _mainRef$current === void 0 ? void 0 : _mainRef$current.clientWidth]);
103
105
  return /*#__PURE__*/_react.default.createElement("div", {
104
106
  ref: mainRef,
105
107
  className: (0, _classnames.default)('j4', RC, className)
@@ -1,18 +1,22 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.DefaultPhoneIcon = exports.DefaultEmalIcon = void 0;
7
9
 
10
+ var _react = _interopRequireDefault(require("react"));
11
+
8
12
  var DefaultEmalIcon = function DefaultEmalIcon() {
9
- return /*#__PURE__*/React.createElement("svg", {
13
+ return /*#__PURE__*/_react.default.createElement("svg", {
10
14
  xmlns: "http://www.w3.org/2000/svg",
11
15
  width: "16",
12
16
  height: "16",
13
17
  viewBox: "0 0 16 16",
14
18
  fill: "none"
15
- }, /*#__PURE__*/React.createElement("mask", {
19
+ }, /*#__PURE__*/_react.default.createElement("mask", {
16
20
  id: "mask0_18590_7794",
17
21
  style: {
18
22
  maskType: 'alpha'
@@ -22,21 +26,21 @@ var DefaultEmalIcon = function DefaultEmalIcon() {
22
26
  y: "0",
23
27
  width: "16",
24
28
  height: "16"
25
- }, /*#__PURE__*/React.createElement("path", {
29
+ }, /*#__PURE__*/_react.default.createElement("path", {
26
30
  d: "M2.66659 2.66675H13.3333C14.0666 2.66675 14.6666 3.26675 14.6666 4.00008V12.0001C14.6666 12.7334 14.0666 13.3334 13.3333 13.3334H2.66659C1.93325 13.3334 1.33325 12.7334 1.33325 12.0001V4.00008C1.33325 3.26675 1.93325 2.66675 2.66659 2.66675Z",
27
31
  stroke: "black",
28
32
  strokeWidth: "1.07",
29
33
  strokeLinecap: "round",
30
34
  strokeLinejoin: "round"
31
- }), /*#__PURE__*/React.createElement("path", {
35
+ }), /*#__PURE__*/_react.default.createElement("path", {
32
36
  d: "M14.6666 4L7.99992 8.66667L1.33325 4",
33
37
  stroke: "black",
34
38
  width: "1.07",
35
39
  linecap: "round",
36
40
  linejoin: "round"
37
- })), /*#__PURE__*/React.createElement("g", {
41
+ })), /*#__PURE__*/_react.default.createElement("g", {
38
42
  mask: "url(#mask0_18590_7794)"
39
- }, /*#__PURE__*/React.createElement("rect", {
43
+ }, /*#__PURE__*/_react.default.createElement("rect", {
40
44
  width: "16",
41
45
  height: "16",
42
46
  fill: "#1F7499"
@@ -46,13 +50,13 @@ var DefaultEmalIcon = function DefaultEmalIcon() {
46
50
  exports.DefaultEmalIcon = DefaultEmalIcon;
47
51
 
48
52
  var DefaultPhoneIcon = function DefaultPhoneIcon() {
49
- return /*#__PURE__*/React.createElement("svg", {
53
+ return /*#__PURE__*/_react.default.createElement("svg", {
50
54
  xmlns: "http://www.w3.org/2000/svg",
51
55
  width: "16",
52
56
  height: "16",
53
57
  viewBox: "0 0 16 16",
54
58
  fill: "none"
55
- }, /*#__PURE__*/React.createElement("mask", {
59
+ }, /*#__PURE__*/_react.default.createElement("mask", {
56
60
  id: "mask0_18590_7803",
57
61
  style: {
58
62
  maskType: 'alpha'
@@ -62,21 +66,21 @@ var DefaultPhoneIcon = function DefaultPhoneIcon() {
62
66
  y: "0",
63
67
  width: "16",
64
68
  height: "16"
65
- }, /*#__PURE__*/React.createElement("path", {
69
+ }, /*#__PURE__*/_react.default.createElement("path", {
66
70
  d: "M11.3333 1.33325H4.66659C3.93021 1.33325 3.33325 1.93021 3.33325 2.66659V13.3333C3.33325 14.0696 3.93021 14.6666 4.66659 14.6666H11.3333C12.0696 14.6666 12.6666 14.0696 12.6666 13.3333V2.66659C12.6666 1.93021 12.0696 1.33325 11.3333 1.33325Z",
67
71
  stroke: "black",
68
72
  strokeWidth: "1.07",
69
73
  strokeLinecap: "round",
70
74
  strokeLinejoin: "round"
71
- }), /*#__PURE__*/React.createElement("path", {
75
+ }), /*#__PURE__*/_react.default.createElement("path", {
72
76
  d: "M8 12H8.0075",
73
77
  stroke: "black",
74
78
  'stroke-width': '1.07',
75
79
  'stroke-linecap': 'round',
76
80
  'stroke-linejoin': 'round'
77
- })), /*#__PURE__*/React.createElement("g", {
81
+ })), /*#__PURE__*/_react.default.createElement("g", {
78
82
  mask: "url(#mask0_18590_7803)"
79
- }, /*#__PURE__*/React.createElement("rect", {
83
+ }, /*#__PURE__*/_react.default.createElement("rect", {
80
84
  width: "16",
81
85
  height: "16",
82
86
  fill: "#1F7499"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.2.55",
3
+ "version": "0.2.58",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [