@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, { memo } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -9,7 +7,7 @@ import { propTypes } from './props/propTypes';
9
7
  import Label from '@zohodesk/components/es/v1/Label/Label';
10
8
  import Select from '@zohodesk/components/es/v1/Select/Select';
11
9
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
12
- import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
10
+ import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
13
11
  import FieldContainer from '../FieldContainer/FieldContainer';
14
12
  /** CSS */
15
13
 
@@ -93,18 +91,18 @@ const SelectField = props => {
93
91
  isLocked: isLocked,
94
92
  lockedInfoText: lockedInfoText,
95
93
  renderProps: renderLabelProps
96
- }, /*#__PURE__*/React.createElement(Label, _extends({
94
+ }, /*#__PURE__*/React.createElement(Label, {
97
95
  text: labelName,
98
96
  size: fieldSize === 'small' ? 'small' : 'medium',
99
97
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
100
98
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
101
99
  htmlFor: uniqueId,
102
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
103
- }, LabelProps, {
100
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
101
+ ...LabelProps,
104
102
  id: uniqueId
105
- }))), /*#__PURE__*/React.createElement("div", {
103
+ })), /*#__PURE__*/React.createElement("div", {
106
104
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
107
- }, /*#__PURE__*/React.createElement(Select, _extends({
105
+ }, /*#__PURE__*/React.createElement(Select, {
108
106
  options: options,
109
107
  selectedValue: selectedValue,
110
108
  onChange: handleChange,
@@ -133,22 +131,24 @@ const SelectField = props => {
133
131
  needLocalSearch: needLocalSearch,
134
132
  isDefaultSelectValue: isDefaultSelectValue,
135
133
  placeHolder: placeHolder,
136
- iconOnHover: iconOnHover
137
- }, SelectProps, {
134
+ iconOnHover: iconOnHover,
135
+ ...SelectProps,
138
136
  ariaLabelledby: uniqueId
139
- }), children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
137
+ }, children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
140
138
  text: validationMessage,
141
139
  palette: validationPalette,
142
140
  type: errorType,
143
141
  htmlFor: uniqueId,
144
- dataId: `${dataId}_ValidationMessage`
145
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
142
+ dataId: `${dataId}_ValidationMessage`,
143
+ ...ValidationMessageProps1
144
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
146
145
  text: validationRuleMessage,
147
146
  palette: validationRulePalette,
148
147
  type: errorType,
149
148
  htmlFor: uniqueId,
150
- dataId: `${dataId}_ValidationRuleMessage`
151
- }, ValidationMessageProps2)));
149
+ dataId: `${dataId}_ValidationRuleMessage`,
150
+ ...ValidationMessageProps2
151
+ }));
152
152
  };
153
153
 
154
154
  SelectField.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
  import React from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes } from './props/propTypes';
@@ -12,7 +10,7 @@ import Loader from '@zohodesk/svg/lib/Loader/Loader';
12
10
  import DropDownSeparator from '@zohodesk/components/es/v1/DropDown/DropDownSeparator';
13
11
  import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptyState';
14
12
  import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
15
- import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
13
+ import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
16
14
  import MultiSelectHeader from '@zohodesk/components/es/v1/MultiSelect/MultiSelectHeader';
17
15
  import { stopBubbling } from '../../../../utils/General';
18
16
  import { scrollTo, findScrollEnd } from '@zohodesk/components/es/utils/Common.js';
@@ -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, { memo } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -9,7 +7,7 @@ import { propTypes } from './props/propTypes';
9
7
  import Label from '@zohodesk/components/es/v1/Label/Label';
10
8
  import TextBoxIcon from '@zohodesk/components/es/v1/TextBoxIcon/TextBoxIcon';
11
9
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
12
- import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
10
+ import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
13
11
  import FieldContainer from '../FieldContainer/FieldContainer';
14
12
  /**** CSS ****/
15
13
 
@@ -84,18 +82,18 @@ const TextBoxField = props => {
84
82
  ePhiData: ePhiData,
85
83
  dataId: dataId,
86
84
  renderProps: renderLabelProps
87
- }, /*#__PURE__*/React.createElement(Label, _extends({
85
+ }, /*#__PURE__*/React.createElement(Label, {
88
86
  text: labelName,
89
87
  size: fieldSize === 'small' ? 'small' : 'medium',
90
88
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
91
89
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
92
90
  htmlFor: uniqueId,
93
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
94
- }, LabelProps, {
91
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
92
+ ...LabelProps,
95
93
  id: labelName
96
- }))), /*#__PURE__*/React.createElement("div", {
94
+ })), /*#__PURE__*/React.createElement("div", {
97
95
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
98
- }, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
96
+ }, /*#__PURE__*/React.createElement(TextBoxIcon, {
99
97
  htmlId: uniqueId,
100
98
  id: id,
101
99
  type: textBoxType,
@@ -115,24 +113,26 @@ const TextBoxField = props => {
115
113
  isDisabled: isDisabled,
116
114
  needEffect: isReadOnly || isDisabled ? false : true,
117
115
  isClickable: isClickable,
118
- needReadOnlyStyle: needReadOnlyStyle
119
- }, TextBoxIconProps, {
116
+ needReadOnlyStyle: needReadOnlyStyle,
117
+ ...TextBoxIconProps,
120
118
  a11y: {
121
119
  ariaLabelledby: labelName
122
120
  }
123
- }), children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
121
+ }, children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
124
122
  text: validationMessage,
125
123
  palette: validationPalette,
126
124
  type: errorType,
127
125
  dataId: `${dataId}_ValidationMessage`,
128
- htmlFor: uniqueId
129
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
126
+ htmlFor: uniqueId,
127
+ ...ValidationMessageProps1
128
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
130
129
  text: validationRuleMessage,
131
130
  palette: validationRulePalette,
132
131
  type: errorType,
133
132
  htmlFor: uniqueId,
134
- dataId: `${dataId}_ValidationRuleMessage`
135
- }, ValidationMessageProps2))));
133
+ dataId: `${dataId}_ValidationRuleMessage`,
134
+ ...ValidationMessageProps2
135
+ })));
136
136
  };
137
137
 
138
138
  TextBoxField.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, { memo, useRef } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -101,17 +99,18 @@ const TextEditorField = props => {
101
99
  renderProps: {
102
100
  end: renderEnd
103
101
  }
104
- }, /*#__PURE__*/React.createElement(Label, _extends({
102
+ }, /*#__PURE__*/React.createElement(Label, {
105
103
  text: labelName,
106
104
  size: fieldSize === 'small' ? 'small' : 'medium',
107
105
  htmlFor: !isReadOnly && !isDisabled ? id : undefined,
108
106
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
109
107
  onClick: handleLabelClick,
110
108
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
111
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
112
- }, LabelProps))), /*#__PURE__*/React.createElement("div", {
109
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
110
+ ...LabelProps
111
+ })), /*#__PURE__*/React.createElement("div", {
113
112
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
114
- }, /*#__PURE__*/React.createElement(TextEditorWrapper, _extends({
113
+ }, /*#__PURE__*/React.createElement(TextEditorWrapper, {
115
114
  needEditor: needEditor,
116
115
  onChange: handleChange,
117
116
  id: id,
@@ -140,13 +139,15 @@ const TextEditorField = props => {
140
139
  shouldEditorUpdateContent: shouldEditorUpdateContent,
141
140
  setInlineAttachmentInProgress: setInlineAttachmentInProgress,
142
141
  handleEditorDropUpload: handleEditorDropUpload,
143
- needInlineAttachment: needInlineAttachment
144
- }, TextEditorWrapperProps))), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
142
+ needInlineAttachment: needInlineAttachment,
143
+ ...TextEditorWrapperProps
144
+ })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
145
145
  text: validationMessage,
146
146
  palette: validationPalette,
147
147
  type: errorType,
148
- dataId: `${dataId}_ValidationMessage`
149
- }, ValidationMessageProps)));
148
+ dataId: `${dataId}_ValidationMessage`,
149
+ ...ValidationMessageProps
150
+ }));
150
151
  };
151
152
 
152
153
  TextEditorField.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
  import React, { useState } from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes } from './props/propTypes';
@@ -91,7 +89,7 @@ const TextEditorWrapper = props => {
91
89
  return /*#__PURE__*/React.createElement("div", {
92
90
  className: style.container,
93
91
  "data-selector-id": dataSelectorId
94
- }, !isEditorShow ? /*#__PURE__*/React.createElement(Textarea, _extends({
92
+ }, !isEditorShow ? /*#__PURE__*/React.createElement(Textarea, {
95
93
  onFocus: handleTextareaFocus,
96
94
  text: value,
97
95
  animated: !needEditor,
@@ -103,8 +101,9 @@ const TextEditorWrapper = props => {
103
101
  getRef: getRef,
104
102
  size: textBoxSize,
105
103
  variant: textBoxVariant,
106
- customClass: style.textBox
107
- }, Textarea1Props)) : null, /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
104
+ customClass: style.textBox,
105
+ ...Textarea1Props
106
+ }) : null, /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
108
107
  name: "slideDown",
109
108
  runOnMount: true,
110
109
  enterDuration: '300',
@@ -113,7 +112,7 @@ const TextEditorWrapper = props => {
113
112
  component: "div"
114
113
  }, /*#__PURE__*/React.createElement("div", {
115
114
  className: style.textEditor
116
- }, isEditorShow && needEditor ? /*#__PURE__*/React.createElement(TextEditor, _extends({
115
+ }, isEditorShow && needEditor ? /*#__PURE__*/React.createElement(TextEditor, {
117
116
  id: id,
118
117
  value: value,
119
118
  onChange: !isReadOnly && !isDisabled ? onChange : null,
@@ -141,8 +140,9 @@ const TextEditorWrapper = props => {
141
140
  setInlineAttachmentInProgress: setInlineAttachmentInProgress,
142
141
  handleDropUpload: handleEditorDropUpload,
143
142
  onFocus: focusCallback,
144
- needInlineAttachment: needInlineAttachment
145
- }, TextEditorProps)) : /*#__PURE__*/React.createElement(Textarea, _extends({
143
+ needInlineAttachment: needInlineAttachment,
144
+ ...TextEditorProps
145
+ }) : /*#__PURE__*/React.createElement(Textarea, {
146
146
  onFocus: handleTextareaFocus,
147
147
  text: value,
148
148
  animated: !needEditor,
@@ -153,8 +153,9 @@ const TextEditorWrapper = props => {
153
153
  needEffect: !(isReadOnly || isDisabled),
154
154
  getRef: getRef,
155
155
  size: textBoxSize,
156
- variant: textBoxVariant
157
- }, Textarea2Props)))));
156
+ variant: textBoxVariant,
157
+ ...Textarea2Props
158
+ }))));
158
159
  };
159
160
 
160
161
  export default TextEditorWrapper;
@@ -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, { memo } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -9,7 +7,7 @@ import { propTypes } from './props/propTypes';
9
7
  import Label from '@zohodesk/components/es/v1/Label/Label';
10
8
  import Textarea from '@zohodesk/components/es/v1/Textarea/Textarea';
11
9
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
12
- import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
10
+ import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
13
11
  import FieldContainer from '../FieldContainer/FieldContainer';
14
12
  /**** CSS ****/
15
13
 
@@ -37,6 +35,7 @@ const TextareaField = props => {
37
35
  validationRuleMessage,
38
36
  validationRulePalette,
39
37
  // onKeyDown,
38
+ onFocus,
40
39
  infoText,
41
40
  borderColor,
42
41
  fieldSize,
@@ -81,17 +80,18 @@ const TextareaField = props => {
81
80
  isLocked: isLocked,
82
81
  lockedInfoText: lockedInfoText,
83
82
  renderProps: renderLabelProps
84
- }, /*#__PURE__*/React.createElement(Label, _extends({
83
+ }, /*#__PURE__*/React.createElement(Label, {
85
84
  text: labelName,
86
85
  id: id,
87
86
  size: fieldSize === 'small' ? 'small' : 'medium',
88
87
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
89
88
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
90
89
  htmlFor: uniqueId,
91
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
92
- }, LabelProps))), /*#__PURE__*/React.createElement("div", {
90
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
91
+ ...LabelProps
92
+ })), /*#__PURE__*/React.createElement("div", {
93
93
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
94
- }, /*#__PURE__*/React.createElement(Textarea, _extends({
94
+ }, /*#__PURE__*/React.createElement(Textarea, {
95
95
  onChange: handleChange,
96
96
  animated: animated,
97
97
  size: fieldSize === 'medium' ? textBoxSize : 'xmedium',
@@ -103,29 +103,32 @@ const TextareaField = props => {
103
103
  text: value,
104
104
  placeHolder: placeHolder,
105
105
  dataId: `property(${dataId})`,
106
+ onFocus: onFocus,
106
107
  onBlur: handleBlur,
107
108
  borderColor: borderColor,
108
109
  needEffect: isReadOnly || isDisabled ? false : true,
109
110
  resize: "vertical" // onKeyDown={onKeyDown}
110
111
  ,
111
- htmlId: uniqueId
112
- }, TextareaProps, {
112
+ htmlId: uniqueId,
113
+ ...TextareaProps,
113
114
  a11y: {
114
115
  ariaLabelledby: labelName
115
116
  }
116
- })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
117
+ }), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
117
118
  text: validationMessage,
118
119
  palette: validationPalette,
119
120
  type: errorType,
120
121
  htmlFor: uniqueId,
121
- dataId: `${dataId}_ValidationMessage`
122
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
122
+ dataId: `${dataId}_ValidationMessage`,
123
+ ...ValidationMessageProps1
124
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
123
125
  text: validationRuleMessage,
124
126
  palette: validationRulePalette,
125
127
  type: errorType,
126
128
  htmlFor: uniqueId,
127
- dataId: `${dataId}_ValidationRuleMessage`
128
- }, ValidationMessageProps2))));
129
+ dataId: `${dataId}_ValidationRuleMessage`,
130
+ ...ValidationMessageProps2
131
+ })));
129
132
  };
130
133
 
131
134
  TextareaField.propTypes = propTypes;
@@ -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,
@@ -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';
@@ -114,15 +112,15 @@ export default function SubtabLayout(props) {
114
112
  children,
115
113
  dataId
116
114
  } = props;
117
- return /*#__PURE__*/React.createElement(Card, _extends({
115
+ return /*#__PURE__*/React.createElement(Card, {
118
116
  isScrollAttribute: true,
119
- dataId: dataId
120
- }, props, {
117
+ dataId: dataId,
118
+ ...props,
121
119
  childTypes: {
122
120
  cardHeader: SubtabHeader,
123
121
  cardContent: SubtabContent
124
122
  }
125
- }), children);
123
+ }, children);
126
124
  }
127
125
  SubtabLayout.defaultProps = SubtabLayout_defaultProps;
128
126
  SubtabLayout.propTypes = SubtabLayout_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
  import React from 'react';
4
2
  import { ListLayout_defaultProps } from './props/defaultProps';
5
3
  import { ListLayout_propTypes, Column_propTypes } from './props/propTypes';
@@ -57,9 +55,10 @@ export function Column(props) {
57
55
  children,
58
56
  className
59
57
  } = props;
60
- return /*#__PURE__*/React.createElement(Box, _extends({
61
- className: `${className ? className : ''}`
62
- }, props), children);
58
+ return /*#__PURE__*/React.createElement(Box, {
59
+ className: `${className ? className : ''}`,
60
+ ...props
61
+ }, children);
63
62
  }
64
63
  Column.propTypes = Column_propTypes; // if (__DOCS__) {
65
64
  // ListLayout.docs = {
@@ -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 ****/
@@ -52,26 +50,28 @@ export default function AccountName(props) {
52
50
  }, /*#__PURE__*/React.createElement(Box, {
53
51
  className: style.primaryAccountName,
54
52
  shrink: true
55
- }, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
53
+ }, isLink ? /*#__PURE__*/React.createElement(Link, {
56
54
  href: href,
57
55
  urlName: urlName,
58
56
  urlData: urlData,
59
57
  onClick: onClick,
60
58
  dataId: `${dataId}_link`,
61
- className: style.link
62
- }, LinkProps, {
59
+ className: style.link,
60
+ ...LinkProps,
63
61
  ariaLabel: `Account Name ${text}`
64
- }), /*#__PURE__*/React.createElement("div", {
62
+ }, /*#__PURE__*/React.createElement("div", {
65
63
  className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
66
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
67
- className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`
68
- }, TextProps), text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
64
+ }, text)) : /*#__PURE__*/React.createElement("div", {
65
+ className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
66
+ ...TextProps
67
+ }, text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
69
68
  href: secondaryAccountHref,
70
69
  onClick: secondaryAccountClick,
71
70
  className: style.link
72
- }, /*#__PURE__*/React.createElement("div", _extends({
73
- className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
74
- }, SecondaryTextProps), secondaryAccountText))))));
71
+ }, /*#__PURE__*/React.createElement("div", {
72
+ className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
73
+ ...SecondaryTextProps
74
+ }, secondaryAccountText))))));
75
75
  }
76
76
  AccountName.propTypes = AccountName_propTypes;
77
77
  AccountName.defaultProps = AccountName_defaultProps;
@@ -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 { ContactName_defaultProps } from './props/defaultProps';
5
3
  import { ContactName_propTypes } from './props/propTypes';
@@ -53,22 +51,23 @@ export default function ContactName(props) {
53
51
  iconClass: style.icon
54
52
  })), /*#__PURE__*/React.createElement(Box, {
55
53
  flexible: true
56
- }, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
54
+ }, isLink ? /*#__PURE__*/React.createElement(Link, {
57
55
  urlName: urlName,
58
56
  href: href,
59
57
  urlData: urlData,
60
58
  onClick: onClick,
61
59
  title: dataTitle,
62
60
  dataId: `${dataId}_link`,
63
- className: style.link
64
- }, LinkProps, {
61
+ className: style.link,
62
+ ...LinkProps,
65
63
  ariaLabel: `Contact Name ${text}`
66
- }), /*#__PURE__*/React.createElement("div", {
64
+ }, /*#__PURE__*/React.createElement("div", {
67
65
  className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
68
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
66
+ }, text)) : /*#__PURE__*/React.createElement("div", {
69
67
  className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
70
- "data-title": dataTitle
71
- }, TextProps), text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
68
+ "data-title": dataTitle,
69
+ ...TextProps
70
+ }, text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
72
71
  type: sentimentType,
73
72
  dataTitle: sentimentDataTitle
74
73
  })));
@@ -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 ****/
@@ -29,19 +27,21 @@ export default function Email(props) {
29
27
  LinkProps = {},
30
28
  TextProps = {}
31
29
  } = customProps;
32
- return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
30
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
33
31
  href: href,
34
32
  title: title,
35
33
  urlData: urlData,
36
34
  urlName: urlName,
37
35
  target: target,
38
- className: style.link
39
- }, LinkProps), /*#__PURE__*/React.createElement("div", {
36
+ className: style.link,
37
+ ...LinkProps
38
+ }, /*#__PURE__*/React.createElement("div", {
40
39
  className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
41
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
40
+ }, text)) : /*#__PURE__*/React.createElement("div", {
42
41
  className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
43
- "data-title": title
44
- }, TextProps), text));
42
+ "data-title": title,
43
+ ...TextProps
44
+ }, text));
45
45
  }
46
46
  Email.propTypes = Email_propTypes;
47
47
  Email.defaultProps = Email_defaultProps;