intelicoreact 0.3.5 → 0.3.6

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.
@@ -36,6 +36,8 @@ var UserContacts = function UserContacts(props) {
36
36
  email = _ref.email,
37
37
  phone = _ref.phone,
38
38
  contactType = _ref.contactType,
39
+ _ref$useCommaSeparato = _ref.useCommaSeparator,
40
+ useCommaSeparator = _ref$useCommaSeparato === void 0 ? true : _ref$useCommaSeparato,
39
41
  _ref$isDisputeContact = _ref.isDisputeContact,
40
42
  isDisputeContact = _ref$isDisputeContact === void 0 ? null : _ref$isDisputeContact,
41
43
  _ref$isSalesContact = _ref.isSalesContact,
@@ -112,13 +114,13 @@ var UserContacts = function UserContacts(props) {
112
114
  target: "_blank",
113
115
  rel: "noreferrer",
114
116
  className: (0, _classnames.default)('no-wrap', "".concat(RC, "__email"), (0, _defineProperty2.default)({}, "".concat(RC, "__email_icon-mode"), isUseEmailIcon))
115
- }, isUseEmailIcon ? EIcon : "".concat(email).concat(phone ? ',' : '')), !!phone && /*#__PURE__*/_react.default.createElement("a", {
117
+ }, isUseEmailIcon ? EIcon : "".concat(email).concat(phone && useCommaSeparator ? ',' : '')), !!phone && /*#__PURE__*/_react.default.createElement("a", {
116
118
  ref: phoneRef,
117
119
  href: "tel:+".concat((0, _fieldValueFormatters.formatOnlyNumbers)(phone).trim()),
118
120
  target: "_blank",
119
121
  rel: "noreferrer",
120
122
  className: (0, _classnames.default)('no-wrap', "".concat(RC, "__phone"), (0, _defineProperty2.default)({}, "".concat(RC, "__phone_icon-mode"), isUsePhonelIcon))
121
- }, isUsePhonelIcon ? PIcon : phone), !!contactType && /*#__PURE__*/_react.default.createElement("span", {
123
+ }, isUsePhonelIcon ? PIcon : "".concat(phone).concat(contactType && useCommaSeparator ? ',' : '')), !!contactType && /*#__PURE__*/_react.default.createElement("span", {
122
124
  className: (0, _classnames.default)('no-wrap', "".concat(RC, "__contactType"))
123
125
  }, contactType), isContact && /*#__PURE__*/_react.default.createElement("span", {
124
126
  ref: contactsRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [