@zohodesk/dot 1.4.12 → 1.4.14

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.
Files changed (229) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +13 -0
  3. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  4. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  5. package/coverage/ExternalLink/index.html +1 -1
  6. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  7. package/coverage/ExternalLink/props/index.html +1 -1
  8. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  9. package/coverage/IconButton/IconButton.js.html +1 -1
  10. package/coverage/IconButton/IconButton.module.css.html +2 -5
  11. package/coverage/IconButton/index.html +1 -1
  12. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  13. package/coverage/IconButton/props/index.html +1 -1
  14. package/coverage/IconButton/props/propTypes.js.html +1 -1
  15. package/coverage/Image/Image.js.html +1 -1
  16. package/coverage/Image/Image.module.css.html +1 -1
  17. package/coverage/Image/index.html +1 -1
  18. package/coverage/Image/props/defaultProps.js.html +1 -1
  19. package/coverage/Image/props/index.html +1 -1
  20. package/coverage/Image/props/propTypes.js.html +1 -1
  21. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  22. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  23. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  24. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  27. package/coverage/index.html +1 -1
  28. package/es/ActionButton/ActionButton.module.css +51 -4
  29. package/es/AlphabeticList/AlphabeticList.module.css +0 -2
  30. package/es/AttachmentViewer/AttachmentViewer.module.css +0 -2
  31. package/es/ChannelIcon/ChannelIcon.module.css +9 -4
  32. package/es/Drawer/Drawer.js +4 -5
  33. package/es/ExternalLink/ExternalLink.js +4 -5
  34. package/es/FlipCard/FlipCard.js +14 -12
  35. package/es/FormAction/FormAction.module.css +18 -1
  36. package/es/FreezeLayer/FreezeLayer.js +1 -1
  37. package/es/IconButton/IconButton.js +4 -5
  38. package/es/IconButton/IconButton.module.css +0 -1
  39. package/es/Link/Link.js +8 -10
  40. package/es/Message/Message.js +4 -5
  41. package/es/TagWithIcon/TagWithIcon.module.css +0 -3
  42. package/es/ToastMessage/ToastMessage.js +2 -4
  43. package/es/actions/AutoClose.js +2 -1
  44. package/es/alert/AlertLookup/AlertLookup.js +14 -12
  45. package/es/avatar/AvatarClose/AvatarClose.js +7 -7
  46. package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
  47. package/es/avatar/AvatarIcon/AvatarIcon.js +4 -5
  48. package/es/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
  49. package/es/avatar/AvatarStatus/AvatarStatus.js +7 -8
  50. package/es/avatar/AvatarThread/AvatarThread.js +7 -7
  51. package/es/avatar/AvatarUser/AvatarUser.js +10 -9
  52. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  53. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +36 -24
  54. package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  55. package/es/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  56. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
  57. package/es/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  58. package/es/form/fields/CurrencyField/CurrencyField.js +14 -12
  59. package/es/form/fields/DateField/DateField.js +14 -14
  60. package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -12
  61. package/es/form/fields/PhoneField/PhoneField.js +7 -7
  62. package/es/form/fields/RadioField/RadioField.js +21 -15
  63. package/es/form/fields/SelectField/SelectField.js +14 -14
  64. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
  65. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  66. package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
  67. package/es/form/fields/TextEditorField/TextEditorField.js +11 -10
  68. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
  69. package/es/form/fields/TextareaField/TextareaField.js +16 -13
  70. package/es/form/fields/TextareaField/props/propTypes.js +1 -0
  71. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
  72. package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
  73. package/es/layout/SubtabLayout/SubtabLayout.module.css +0 -2
  74. package/es/list/Comment/Comment.module.css +0 -1
  75. package/es/list/Dot/Dot.module.css +0 -1
  76. package/es/list/ListLayout/ListLayout.js +4 -5
  77. package/es/list/ListLayout/ListLayout.module.css +0 -6
  78. package/es/list/SecondaryText/AccountName.js +12 -12
  79. package/es/list/SecondaryText/ContactName.js +8 -9
  80. package/es/list/SecondaryText/Email.js +8 -8
  81. package/es/list/SecondaryText/PhoneNumber.js +8 -8
  82. package/es/list/SecondaryText/SecondaryText.js +4 -5
  83. package/es/list/SecondaryText/TicketId.js +7 -7
  84. package/es/list/Subject/Subject.js +7 -7
  85. package/es/list/Subject/Subject.module.css +8 -1
  86. package/es/list/Thread/Thread.module.css +0 -1
  87. package/es/list/status/StatusListItem/StatusListItem.js +5 -5
  88. package/es/lookup/Lookup/Lookup.js +7 -7
  89. package/es/lookup/Lookup/Lookup.module.css +4 -1
  90. package/es/lookup/Lookup/props/propTypes.js +3 -2
  91. package/es/lookup/header/Search/Search.js +5 -3
  92. package/es/lookup/header/TicketHeader/TicketHeader.js +88 -73
  93. package/es/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  94. package/es/lookup/header/TicketHeader/props/propTypes.js +2 -1
  95. package/es/v1/ActionButton/ActionButton.js +1 -1
  96. package/es/v1/AttachmentViewer/AttachmentViewer.js +2 -2
  97. package/es/v1/Drawer/Drawer.js +6 -7
  98. package/es/v1/ExternalLink/ExternalLink.js +4 -5
  99. package/es/v1/FlipCard/FlipCard.js +15 -13
  100. package/es/v1/FreezeLayer/FreezeLayer.js +2 -2
  101. package/es/v1/GlobalNotification/GlobalNotification.js +6 -7
  102. package/es/v1/IconButton/IconButton.js +4 -5
  103. package/es/v1/Link/Link.js +8 -10
  104. package/es/v1/Loader/Loader.js +1 -1
  105. package/es/v1/Message/Message.js +4 -5
  106. package/es/v1/ToastMessage/ToastMessage.js +4 -6
  107. package/es/v1/actions/AutoClose.js +2 -1
  108. package/es/v1/alert/AlertLookup/AlertLookup.js +16 -16
  109. package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
  110. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
  111. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +5 -6
  112. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +7 -8
  113. package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
  114. package/es/v1/avatar/AvatarUser/AvatarUser.js +10 -9
  115. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  116. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +39 -27
  117. package/es/v1/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  118. package/es/v1/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  119. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  120. package/es/v1/form/fields/CurrencyField/CurrencyField.js +15 -13
  121. package/es/v1/form/fields/DateField/DateField.js +15 -15
  122. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +14 -13
  123. package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
  124. package/es/v1/form/fields/RadioField/RadioField.js +21 -16
  125. package/es/v1/form/fields/SelectField/SelectField.js +15 -15
  126. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +14 -11
  127. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  128. package/es/v1/form/fields/TextBoxField/TextBoxField.js +15 -15
  129. package/es/v1/form/fields/TextEditorField/TextEditorField.js +11 -10
  130. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
  131. package/es/v1/form/fields/TextareaField/TextareaField.js +17 -14
  132. package/es/v1/form/fields/TextareaField/props/propTypes.js +1 -0
  133. package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -6
  134. package/es/v1/list/ListLayout/ListLayout.js +4 -5
  135. package/es/v1/list/SecondaryText/AccountName.js +12 -12
  136. package/es/v1/list/SecondaryText/ContactName.js +8 -9
  137. package/es/v1/list/SecondaryText/Email.js +8 -8
  138. package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
  139. package/es/v1/list/SecondaryText/SecondaryText.js +4 -5
  140. package/es/v1/list/SecondaryText/TicketId.js +7 -7
  141. package/es/v1/list/Subject/Subject.js +7 -7
  142. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  143. package/es/v1/list/status/StatusListItem/StatusListItem.js +6 -6
  144. package/es/v1/lookup/Lookup/Lookup.js +7 -7
  145. package/es/v1/lookup/Lookup/props/propTypes.js +3 -2
  146. package/es/v1/lookup/header/Search/Search.js +5 -3
  147. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +30 -12
  148. package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  149. package/es/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
  150. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  151. package/es/v1/notification/DesktopNotification/DesktopNotification.js +7 -8
  152. package/es/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
  153. package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
  154. package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
  155. package/es/version2/GlobalNotification/GlobalNotification.module.css +0 -4
  156. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
  157. package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
  158. package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
  159. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
  160. package/lib/ActionButton/ActionButton.module.css +51 -4
  161. package/lib/AlphabeticList/AlphabeticList.module.css +0 -2
  162. package/lib/AttachmentViewer/AttachmentViewer.module.css +0 -2
  163. package/lib/ChannelIcon/ChannelIcon.module.css +9 -4
  164. package/lib/FormAction/FormAction.module.css +18 -1
  165. package/lib/FreezeLayer/FreezeLayer.js +1 -1
  166. package/lib/IconButton/IconButton.module.css +0 -1
  167. package/lib/TagWithIcon/TagWithIcon.module.css +0 -3
  168. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
  169. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +8 -0
  170. package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  171. package/lib/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  172. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
  173. package/lib/form/fields/RadioField/RadioField.js +3 -0
  174. package/lib/form/fields/TextareaField/TextareaField.js +2 -0
  175. package/lib/form/fields/TextareaField/props/propTypes.js +1 -0
  176. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
  177. package/lib/layout/SubtabLayout/SubtabLayout.module.css +0 -2
  178. package/lib/list/Comment/Comment.module.css +0 -1
  179. package/lib/list/Dot/Dot.module.css +0 -1
  180. package/lib/list/ListLayout/ListLayout.module.css +0 -6
  181. package/lib/list/Subject/Subject.module.css +8 -1
  182. package/lib/list/Thread/Thread.module.css +0 -1
  183. package/lib/lookup/Lookup/Lookup.js +3 -2
  184. package/lib/lookup/Lookup/Lookup.module.css +4 -1
  185. package/lib/lookup/Lookup/props/propTypes.js +3 -2
  186. package/lib/lookup/header/TicketHeader/TicketHeader.js +93 -106
  187. package/lib/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  188. package/lib/lookup/header/TicketHeader/props/propTypes.js +2 -1
  189. package/lib/v1/ActionButton/ActionButton.js +1 -1
  190. package/lib/v1/AttachmentViewer/AttachmentViewer.js +2 -2
  191. package/lib/v1/Drawer/Drawer.js +2 -2
  192. package/lib/v1/FlipCard/FlipCard.js +1 -1
  193. package/lib/v1/FreezeLayer/FreezeLayer.js +2 -2
  194. package/lib/v1/Loader/Loader.js +1 -1
  195. package/lib/v1/ToastMessage/ToastMessage.js +2 -2
  196. package/lib/v1/alert/AlertLookup/AlertLookup.js +1 -1
  197. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +1 -1
  198. package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +11 -3
  199. package/lib/v1/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  200. package/lib/v1/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  201. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +1 -1
  202. package/lib/v1/form/fields/DateField/DateField.js +1 -1
  203. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +1 -1
  204. package/lib/v1/form/fields/RadioField/RadioField.js +3 -0
  205. package/lib/v1/form/fields/SelectField/SelectField.js +1 -1
  206. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -1
  207. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +1 -1
  208. package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -1
  209. package/lib/v1/form/fields/TextareaField/props/propTypes.js +1 -0
  210. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  211. package/lib/v1/list/status/StatusListItem/StatusListItem.js +1 -1
  212. package/lib/v1/lookup/Lookup/Lookup.js +3 -2
  213. package/lib/v1/lookup/Lookup/props/propTypes.js +3 -2
  214. package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +37 -12
  215. package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  216. package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
  217. package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  218. package/lib/v1/notification/DesktopNotification/DesktopNotification.js +1 -1
  219. package/lib/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
  220. package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
  221. package/lib/version2/GlobalNotification/GlobalNotification.module.css +0 -4
  222. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
  223. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
  224. package/package.json +11 -11
  225. package/result.json +1 -1
  226. package/es/v1/Provider/Config.js +0 -20
  227. package/lib/v1/Provider/Config.js +0 -29
  228. /package/es/{FreezeLayer → Hooks}/useFreezeLayer.js +0 -0
  229. /package/lib/{FreezeLayer → Hooks}/useFreezeLayer.js +0 -0
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React, { PureComponent } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -115,18 +113,18 @@ export default class SelectField extends PureComponent {
115
113
  isLocked: isLocked,
116
114
  lockedInfoText: lockedInfoText,
117
115
  renderProps: renderLabelProps
118
- }, /*#__PURE__*/React.createElement(Label, _extends({
116
+ }, /*#__PURE__*/React.createElement(Label, {
119
117
  text: labelName,
120
118
  size: fieldSize === 'small' ? 'small' : 'medium',
121
119
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
122
120
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
123
121
  htmlFor: uniqueId,
124
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
125
- }, LabelProps, {
122
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
123
+ ...LabelProps,
126
124
  id: uniqueId
127
- }))), /*#__PURE__*/React.createElement("div", {
125
+ })), /*#__PURE__*/React.createElement("div", {
128
126
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
129
- }, /*#__PURE__*/React.createElement(Select, _extends({
127
+ }, /*#__PURE__*/React.createElement(Select, {
130
128
  options: options,
131
129
  selectedValue: selectedValue,
132
130
  onChange: this.handleChange,
@@ -155,22 +153,24 @@ export default class SelectField extends PureComponent {
155
153
  needLocalSearch: needLocalSearch,
156
154
  isDefaultSelectValue: isDefaultSelectValue,
157
155
  placeHolder: placeHolder,
158
- iconOnHover: iconOnHover
159
- }, SelectProps, {
156
+ iconOnHover: iconOnHover,
157
+ ...SelectProps,
160
158
  ariaLabelledby: uniqueId
161
- }), children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
159
+ }, children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
162
160
  text: validationMessage,
163
161
  palette: validationPalette,
164
162
  type: errorType,
165
163
  htmlFor: uniqueId,
166
- dataId: `${dataId}_ValidationMessage`
167
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
164
+ dataId: `${dataId}_ValidationMessage`,
165
+ ...ValidationMessageProps1
166
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
168
167
  text: validationRuleMessage,
169
168
  palette: validationRulePalette,
170
169
  type: errorType,
171
170
  htmlFor: uniqueId,
172
- dataId: `${dataId}_ValidationRuleMessage`
173
- }, ValidationMessageProps2)));
171
+ dataId: `${dataId}_ValidationRuleMessage`,
172
+ ...ValidationMessageProps2
173
+ }));
174
174
  }
175
175
 
176
176
  }
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes } from './props/propTypes';
@@ -187,10 +185,12 @@ export default class TagsMultiSelect extends React.Component {
187
185
  boxCustomProps,
188
186
  tagCustomProps
189
187
  } = tag;
190
- return index < chipLimit ? /*#__PURE__*/React.createElement(Box, _extends({
188
+ return index < chipLimit ? /*#__PURE__*/React.createElement(Box, {
191
189
  className: style.tag,
192
- key: index
193
- }, TagWrapperProps, boxCustomProps), /*#__PURE__*/React.createElement(Tag, _extends({
190
+ key: index,
191
+ ...TagWrapperProps,
192
+ ...boxCustomProps
193
+ }, /*#__PURE__*/React.createElement(Tag, {
194
194
  id: id,
195
195
  text: name,
196
196
  onRemove: isReadOnly ? null : deleteTag.bind(this, name),
@@ -198,8 +198,10 @@ export default class TagsMultiSelect extends React.Component {
198
198
  palette: clickableTag ? 'defaultLink' : tagType === 'SYSTEM' ? 'primary' : 'default',
199
199
  isReadOnly: isReadOnly,
200
200
  onSelectTag: onSelectTag ? onSelectTag : undefined,
201
- customClass: tagCustomClass
202
- }, TagProps, tagCustomProps))) : null;
201
+ customClass: tagCustomClass,
202
+ ...TagProps,
203
+ ...tagCustomProps
204
+ })) : null;
203
205
  }), tagsList.length > chipNeedToShow && !isPopupReady ? /*#__PURE__*/React.createElement(Box, {
204
206
  className: style.moreLess,
205
207
  dataId: `${dataId}_tagsMore`,
@@ -211,7 +213,7 @@ export default class TagsMultiSelect extends React.Component {
211
213
  className: style.inputWrapper
212
214
  }, /*#__PURE__*/React.createElement("span", {
213
215
  className: style.custmSpan
214
- }, name), /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
216
+ }, name), /*#__PURE__*/React.createElement(TextBoxIcon, {
215
217
  htmlId: htmlId,
216
218
  dataId: `${dataId}_tagInp`,
217
219
  value: name,
@@ -227,8 +229,9 @@ export default class TagsMultiSelect extends React.Component {
227
229
  customTextBox: style.input
228
230
  },
229
231
  size: "xsmall",
230
- inputRef: this.textInputRef
231
- }, TextBoxIconProps), getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
232
+ inputRef: this.textInputRef,
233
+ ...TextBoxIconProps
234
+ }, getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
232
235
  query: this.responsiveFunc,
233
236
  responsiveId: "Helmet"
234
237
  }, _ref2 => {
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React, { useState, useEffect } from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes } from './props/propTypes';
@@ -202,7 +200,7 @@ const TagsMultiSelectField = props => {
202
200
  renderProps: {
203
201
  end: renderEnd
204
202
  }
205
- }, /*#__PURE__*/React.createElement(Label, _extends({
203
+ }, /*#__PURE__*/React.createElement(Label, {
206
204
  text: labelName,
207
205
  title: labelName,
208
206
  id: id,
@@ -210,11 +208,12 @@ const TagsMultiSelectField = props => {
210
208
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
211
209
  customClass: `${fieldStyle.fieldLabel} ${isMandatory ? fieldStyle.labelMandatory : ''} ${labelClass ? labelClass : ''}`,
212
210
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
213
- htmlFor: htmlId
214
- }, LabelProps)), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
211
+ htmlFor: htmlId,
212
+ ...LabelProps
213
+ }), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
215
214
  dataId: `${dataId}_tagCount`,
216
215
  className: style.count
217
- }, `(${selectedValueCount})`) : null), /*#__PURE__*/React.createElement(TagsMultiSelect, _extends({
216
+ }, `(${selectedValueCount})`) : null), /*#__PURE__*/React.createElement(TagsMultiSelect, {
218
217
  addTag: handleAdd,
219
218
  deleteTag: onDelete,
220
219
  handleChange: handleChange,
@@ -244,16 +243,17 @@ const TagsMultiSelectField = props => {
244
243
  borderColor: borderColor,
245
244
  htmlId: htmlId,
246
245
  getTextBoxChildren: getTextBoxChildren,
247
- className: containerClass
248
- }, TagsMultiSelectProps, {
246
+ className: containerClass,
247
+ ...TagsMultiSelectProps,
249
248
  clickableTag: clickableTag
250
- })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
249
+ }), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
251
250
  text: validationMessage,
252
251
  palette: validationPalette,
253
252
  type: errorType,
254
253
  dataId: `${dataId}_ValidationMessage`,
255
- htmlFor: htmlId
256
- }, ValidationMessageProps)));
254
+ htmlFor: htmlId,
255
+ ...ValidationMessageProps
256
+ }));
257
257
  };
258
258
 
259
259
  TagsMultiSelectField.propTypes = propTypes;
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React, { PureComponent } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -103,18 +101,18 @@ export default class TextBoxField extends PureComponent {
103
101
  ePhiData: ePhiData,
104
102
  dataId: dataId,
105
103
  renderProps: renderLabelProps
106
- }, /*#__PURE__*/React.createElement(Label, _extends({
104
+ }, /*#__PURE__*/React.createElement(Label, {
107
105
  text: labelName,
108
106
  size: fieldSize === 'small' ? 'small' : 'medium',
109
107
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
110
108
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
111
109
  htmlFor: uniqueId,
112
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
113
- }, LabelProps, {
110
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
111
+ ...LabelProps,
114
112
  id: labelName
115
- }))), /*#__PURE__*/React.createElement("div", {
113
+ })), /*#__PURE__*/React.createElement("div", {
116
114
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
117
- }, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
115
+ }, /*#__PURE__*/React.createElement(TextBoxIcon, {
118
116
  htmlId: uniqueId,
119
117
  id: id,
120
118
  type: textBoxType,
@@ -134,24 +132,26 @@ export default class TextBoxField extends PureComponent {
134
132
  isDisabled: isDisabled,
135
133
  needEffect: isReadOnly || isDisabled ? false : true,
136
134
  isClickable: isClickable,
137
- needReadOnlyStyle: needReadOnlyStyle
138
- }, TextBoxIconProps, {
135
+ needReadOnlyStyle: needReadOnlyStyle,
136
+ ...TextBoxIconProps,
139
137
  a11y: {
140
138
  ariaLabelledby: labelName
141
139
  }
142
- }), children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
140
+ }, children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
143
141
  text: validationMessage,
144
142
  palette: validationPalette,
145
143
  type: errorType,
146
144
  dataId: `${dataId}_ValidationMessage`,
147
- htmlFor: uniqueId
148
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
145
+ htmlFor: uniqueId,
146
+ ...ValidationMessageProps1
147
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
149
148
  text: validationRuleMessage,
150
149
  palette: validationRulePalette,
151
150
  type: errorType,
152
151
  htmlFor: uniqueId,
153
- dataId: `${dataId}_ValidationRuleMessage`
154
- }, ValidationMessageProps2))));
152
+ dataId: `${dataId}_ValidationRuleMessage`,
153
+ ...ValidationMessageProps2
154
+ })));
155
155
  }
156
156
 
157
157
  }
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React, { PureComponent } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -121,17 +119,18 @@ export default class TextEditorField extends PureComponent {
121
119
  renderProps: {
122
120
  end: this.renderEnd
123
121
  }
124
- }, /*#__PURE__*/React.createElement(Label, _extends({
122
+ }, /*#__PURE__*/React.createElement(Label, {
125
123
  text: labelName,
126
124
  size: fieldSize === 'small' ? 'small' : 'medium',
127
125
  htmlFor: !isReadOnly && !isDisabled ? id : undefined,
128
126
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
129
127
  onClick: this.handleLabelClick,
130
128
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
131
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
132
- }, LabelProps))), /*#__PURE__*/React.createElement("div", {
129
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
130
+ ...LabelProps
131
+ })), /*#__PURE__*/React.createElement("div", {
133
132
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
134
- }, /*#__PURE__*/React.createElement(TextEditorWrapper, _extends({
133
+ }, /*#__PURE__*/React.createElement(TextEditorWrapper, {
135
134
  needEditor: needEditor,
136
135
  onChange: this.handleChange,
137
136
  id: id,
@@ -160,13 +159,15 @@ export default class TextEditorField extends PureComponent {
160
159
  shouldEditorUpdateContent: shouldEditorUpdateContent,
161
160
  setInlineAttachmentInProgress: setInlineAttachmentInProgress,
162
161
  handleEditorDropUpload: handleEditorDropUpload,
163
- needInlineAttachment: needInlineAttachment
164
- }, TextEditorWrapperProps))), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
162
+ needInlineAttachment: needInlineAttachment,
163
+ ...TextEditorWrapperProps
164
+ })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
165
165
  text: validationMessage,
166
166
  palette: validationPalette,
167
167
  type: errorType,
168
- dataId: `${dataId}_ValidationMessage`
169
- }, ValidationMessageProps)));
168
+ dataId: `${dataId}_ValidationMessage`,
169
+ ...ValidationMessageProps
170
+ }));
170
171
  }
171
172
 
172
173
  }
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React, { Component } from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes } from './props/propTypes';
@@ -132,7 +130,7 @@ export default class TextEditorWrapper extends Component {
132
130
  return /*#__PURE__*/React.createElement("div", {
133
131
  className: style.container,
134
132
  "data-selector-id": dataSelectorId
135
- }, !isEditorShow ? /*#__PURE__*/React.createElement(Textarea, _extends({
133
+ }, !isEditorShow ? /*#__PURE__*/React.createElement(Textarea, {
136
134
  onFocus: this.handleTextareaFocus,
137
135
  text: value,
138
136
  animated: !needEditor,
@@ -144,8 +142,9 @@ export default class TextEditorWrapper extends Component {
144
142
  getRef: getRef,
145
143
  size: textBoxSize,
146
144
  variant: textBoxVariant,
147
- customClass: style.textBox
148
- }, Textarea1Props)) : null, /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
145
+ customClass: style.textBox,
146
+ ...Textarea1Props
147
+ }) : null, /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
149
148
  name: "slideDown",
150
149
  runOnMount: true,
151
150
  enterDuration: '300',
@@ -154,7 +153,7 @@ export default class TextEditorWrapper extends Component {
154
153
  component: "div"
155
154
  }, /*#__PURE__*/React.createElement("div", {
156
155
  className: style.textEditor
157
- }, isEditorShow && needEditor ? /*#__PURE__*/React.createElement(TextEditor, _extends({
156
+ }, isEditorShow && needEditor ? /*#__PURE__*/React.createElement(TextEditor, {
158
157
  id: id,
159
158
  value: value,
160
159
  onChange: !isReadOnly && !isDisabled ? onChange : null,
@@ -182,8 +181,9 @@ export default class TextEditorWrapper extends Component {
182
181
  setInlineAttachmentInProgress: setInlineAttachmentInProgress,
183
182
  handleDropUpload: handleEditorDropUpload,
184
183
  onFocus: this.focusCallback,
185
- needInlineAttachment: needInlineAttachment
186
- }, TextEditorProps)) : /*#__PURE__*/React.createElement(Textarea, _extends({
184
+ needInlineAttachment: needInlineAttachment,
185
+ ...TextEditorProps
186
+ }) : /*#__PURE__*/React.createElement(Textarea, {
187
187
  onFocus: this.handleTextareaFocus,
188
188
  text: value,
189
189
  animated: !needEditor,
@@ -194,8 +194,9 @@ export default class TextEditorWrapper extends Component {
194
194
  needEffect: !(isReadOnly || isDisabled),
195
195
  getRef: getRef,
196
196
  size: textBoxSize,
197
- variant: textBoxVariant
198
- }, Textarea2Props)))));
197
+ variant: textBoxVariant,
198
+ ...Textarea2Props
199
+ }))));
199
200
  }
200
201
 
201
202
  }
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React, { PureComponent } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -77,6 +75,7 @@ export default class TextareaField extends PureComponent {
77
75
  validationRuleMessage,
78
76
  validationRulePalette,
79
77
  // onKeyDown,
78
+ onFocus,
80
79
  infoText,
81
80
  borderColor,
82
81
  fieldSize,
@@ -104,17 +103,18 @@ export default class TextareaField extends PureComponent {
104
103
  isLocked: isLocked,
105
104
  lockedInfoText: lockedInfoText,
106
105
  renderProps: renderLabelProps
107
- }, /*#__PURE__*/React.createElement(Label, _extends({
106
+ }, /*#__PURE__*/React.createElement(Label, {
108
107
  text: labelName,
109
108
  id: id,
110
109
  size: fieldSize === 'small' ? 'small' : 'medium',
111
110
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
112
111
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
113
112
  htmlFor: uniqueId,
114
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
115
- }, LabelProps))), /*#__PURE__*/React.createElement("div", {
113
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
114
+ ...LabelProps
115
+ })), /*#__PURE__*/React.createElement("div", {
116
116
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
117
- }, /*#__PURE__*/React.createElement(Textarea, _extends({
117
+ }, /*#__PURE__*/React.createElement(Textarea, {
118
118
  onChange: this.handleChange,
119
119
  animated: animated,
120
120
  size: fieldSize === 'medium' ? textBoxSize : 'xmedium',
@@ -126,29 +126,32 @@ export default class TextareaField extends PureComponent {
126
126
  text: value,
127
127
  placeHolder: placeHolder,
128
128
  dataId: `property(${dataId})`,
129
+ onFocus: onFocus,
129
130
  onBlur: this.handleBlur,
130
131
  borderColor: borderColor,
131
132
  needEffect: isReadOnly || isDisabled ? false : true,
132
133
  resize: "vertical" // onKeyDown={onKeyDown}
133
134
  ,
134
- htmlId: uniqueId
135
- }, TextareaProps, {
135
+ htmlId: uniqueId,
136
+ ...TextareaProps,
136
137
  a11y: {
137
138
  ariaLabelledby: labelName
138
139
  }
139
- })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
140
+ }), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
140
141
  text: validationMessage,
141
142
  palette: validationPalette,
142
143
  type: errorType,
143
144
  htmlFor: uniqueId,
144
- dataId: `${dataId}_ValidationMessage`
145
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
145
+ dataId: `${dataId}_ValidationMessage`,
146
+ ...ValidationMessageProps1
147
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
146
148
  text: validationRuleMessage,
147
149
  palette: validationRulePalette,
148
150
  type: errorType,
149
151
  htmlFor: uniqueId,
150
- dataId: `${dataId}_ValidationRuleMessage`
151
- }, ValidationMessageProps2))));
152
+ dataId: `${dataId}_ValidationRuleMessage`,
153
+ ...ValidationMessageProps2
154
+ })));
152
155
  }
153
156
 
154
157
  }
@@ -12,6 +12,7 @@ export const propTypes = {
12
12
  labelName: PropTypes.string,
13
13
  labelPalette: PropTypes.string,
14
14
  maxLength: PropTypes.number,
15
+ onFocus: PropTypes.func,
15
16
  onBlur: PropTypes.func,
16
17
  onChange: PropTypes.func,
17
18
  placeHolder: PropTypes.string,
@@ -5,7 +5,6 @@
5
5
  display: inline;
6
6
  }
7
7
  .icon{
8
- /* css:theme-validation:ignore */
9
8
  color:var(--label_text_color);
10
9
  display: inline-block;
11
10
  margin: 0 var(--zd_size5) ;
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from 'react';
4
2
  import { SubtabHeader_propTypes, SubtabFooter_propTypes, SubtabContent_propTypes, SubtabLayout_propTypes } from './props/propTypes';
5
3
  import { SubtabHeader_defaultProps, SubtabFooter_defaultProps, SubtabContent_defaultProps, SubtabLayout_defaultProps } from './props/defaultProps';
@@ -124,15 +122,15 @@ export default class SubtabLayout extends React.Component {
124
122
  children,
125
123
  dataId
126
124
  } = this.props;
127
- return /*#__PURE__*/React.createElement(Card, _extends({
125
+ return /*#__PURE__*/React.createElement(Card, {
128
126
  isScrollAttribute: true,
129
- dataId: dataId
130
- }, this.props, {
127
+ dataId: dataId,
128
+ ...this.props,
131
129
  childTypes: {
132
130
  cardHeader: SubtabHeader,
133
131
  cardContent: SubtabContent
134
132
  }
135
- }), children);
133
+ }, children);
136
134
  }
137
135
 
138
136
  }
@@ -48,7 +48,6 @@
48
48
  }
49
49
 
50
50
  .tertiary_borderStyle {
51
- /* css:theme-validation:ignore */
52
51
  border-bottom: 1px solid var(--borderColor);
53
52
  }
54
53
 
@@ -150,7 +149,6 @@
150
149
 
151
150
  .footer {
152
151
  composes: varClass;
153
- /* css:theme-validation:ignore */
154
152
  border-top: 1px solid var(--borderColor);
155
153
  }
156
154
 
@@ -5,7 +5,6 @@
5
5
  composes: varClass;
6
6
  composes: inlineBlockMiddle from '../listCommon.module.css';
7
7
  position: relative;
8
- /* css:theme-validation:ignore */
9
8
  color: var(--icon_color);
10
9
  padding: 0 var(--zd_size2) ;
11
10
  cursor: pointer;
@@ -4,7 +4,6 @@
4
4
  .dot {
5
5
  composes: varClass;
6
6
  font-size: var(--zd_font_size16) ;
7
- /* css:theme-validation:ignore */
8
7
  color: var(--dotColor);
9
8
  transform: perspective(1px);
10
9
  }
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React, { Component } from 'react';
4
2
  import { ListLayout_defaultProps } from './props/defaultProps';
5
3
  import { ListLayout_propTypes, Column_propTypes } from './props/propTypes';
@@ -69,9 +67,10 @@ export class Column extends Component {
69
67
  children,
70
68
  className
71
69
  } = this.props;
72
- return /*#__PURE__*/React.createElement(Box, _extends({
73
- className: `${className ? className : ''}`
74
- }, this.props), children);
70
+ return /*#__PURE__*/React.createElement(Box, {
71
+ className: `${className ? className : ''}`,
72
+ ...this.props
73
+ }, children);
75
74
  }
76
75
 
77
76
  }
@@ -45,12 +45,6 @@
45
45
  border-bottom: 1px dotted var(--listBorder);
46
46
  }
47
47
 
48
- .compact,
49
- .classic,
50
- .superCompact {
51
- /* css:theme-validation:ignore */
52
- }
53
-
54
48
  [dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
55
49
  border-left: var(--zd_size2) solid transparent;
56
50
  }
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /* eslint-disable react/forbid-component-props */
4
2
 
5
3
  /**** Libraries ****/
@@ -53,26 +51,28 @@ export default class AccountName extends Component {
53
51
  }, /*#__PURE__*/React.createElement(Box, {
54
52
  className: style.primaryAccountName,
55
53
  shrink: true
56
- }, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
54
+ }, isLink ? /*#__PURE__*/React.createElement(Link, {
57
55
  href: href,
58
56
  urlName: urlName,
59
57
  urlData: urlData,
60
58
  onClick: onClick,
61
59
  dataId: `${dataId}_link`,
62
- className: style.link
63
- }, LinkProps, {
60
+ className: style.link,
61
+ ...LinkProps,
64
62
  ariaLabel: `Account Name ${text}`
65
- }), /*#__PURE__*/React.createElement("div", {
63
+ }, /*#__PURE__*/React.createElement("div", {
66
64
  className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
67
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
68
- className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`
69
- }, TextProps), text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
65
+ }, text)) : /*#__PURE__*/React.createElement("div", {
66
+ className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
67
+ ...TextProps
68
+ }, text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
70
69
  href: secondaryAccountHref,
71
70
  onClick: secondaryAccountClick,
72
71
  className: style.link
73
- }, /*#__PURE__*/React.createElement("div", _extends({
74
- className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
75
- }, SecondaryTextProps), secondaryAccountText))))));
72
+ }, /*#__PURE__*/React.createElement("div", {
73
+ className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
74
+ ...SecondaryTextProps
75
+ }, secondaryAccountText))))));
76
76
  }
77
77
 
78
78
  }
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React, { Component } from 'react';
4
2
  import { ContactName_defaultProps } from './props/defaultProps';
5
3
  import { ContactName_propTypes } from './props/propTypes';
@@ -54,22 +52,23 @@ export default class ContactName extends Component {
54
52
  iconClass: style.icon
55
53
  })), /*#__PURE__*/React.createElement(Box, {
56
54
  flexible: true
57
- }, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
55
+ }, isLink ? /*#__PURE__*/React.createElement(Link, {
58
56
  urlName: urlName,
59
57
  href: href,
60
58
  urlData: urlData,
61
59
  onClick: onClick,
62
60
  title: dataTitle,
63
61
  dataId: `${dataId}_link`,
64
- className: style.link
65
- }, LinkProps, {
62
+ className: style.link,
63
+ ...LinkProps,
66
64
  ariaLabel: `Contact Name ${text}`
67
- }), /*#__PURE__*/React.createElement("div", {
65
+ }, /*#__PURE__*/React.createElement("div", {
68
66
  className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
69
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
67
+ }, text)) : /*#__PURE__*/React.createElement("div", {
70
68
  className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
71
- "data-title": dataTitle
72
- }, TextProps), text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
69
+ "data-title": dataTitle,
70
+ ...TextProps
71
+ }, text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
73
72
  type: sentimentType,
74
73
  dataTitle: sentimentDataTitle
75
74
  })));