@zohodesk/dot 1.4.13 → 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 (176) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +6 -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/IconButton/IconButton.js +4 -5
  37. package/es/IconButton/IconButton.module.css +0 -1
  38. package/es/Link/Link.js +8 -10
  39. package/es/Message/Message.js +4 -5
  40. package/es/TagWithIcon/TagWithIcon.module.css +0 -3
  41. package/es/ToastMessage/ToastMessage.js +2 -4
  42. package/es/actions/AutoClose.js +2 -1
  43. package/es/alert/AlertLookup/AlertLookup.js +14 -12
  44. package/es/avatar/AvatarClose/AvatarClose.js +7 -7
  45. package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
  46. package/es/avatar/AvatarIcon/AvatarIcon.js +4 -5
  47. package/es/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
  48. package/es/avatar/AvatarStatus/AvatarStatus.js +7 -8
  49. package/es/avatar/AvatarThread/AvatarThread.js +7 -7
  50. package/es/avatar/AvatarUser/AvatarUser.js +10 -9
  51. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  52. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
  53. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
  54. package/es/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  55. package/es/form/fields/CurrencyField/CurrencyField.js +14 -12
  56. package/es/form/fields/DateField/DateField.js +14 -14
  57. package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -12
  58. package/es/form/fields/PhoneField/PhoneField.js +7 -7
  59. package/es/form/fields/RadioField/RadioField.js +18 -15
  60. package/es/form/fields/SelectField/SelectField.js +14 -14
  61. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
  62. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  63. package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
  64. package/es/form/fields/TextEditorField/TextEditorField.js +11 -10
  65. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
  66. package/es/form/fields/TextareaField/TextareaField.js +14 -13
  67. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
  68. package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
  69. package/es/layout/SubtabLayout/SubtabLayout.module.css +0 -2
  70. package/es/list/Comment/Comment.module.css +0 -1
  71. package/es/list/Dot/Dot.module.css +0 -1
  72. package/es/list/ListLayout/ListLayout.js +4 -5
  73. package/es/list/ListLayout/ListLayout.module.css +0 -6
  74. package/es/list/SecondaryText/AccountName.js +12 -12
  75. package/es/list/SecondaryText/ContactName.js +8 -9
  76. package/es/list/SecondaryText/Email.js +8 -8
  77. package/es/list/SecondaryText/PhoneNumber.js +8 -8
  78. package/es/list/SecondaryText/SecondaryText.js +4 -5
  79. package/es/list/SecondaryText/TicketId.js +7 -7
  80. package/es/list/Subject/Subject.js +7 -7
  81. package/es/list/Subject/Subject.module.css +8 -1
  82. package/es/list/Thread/Thread.module.css +0 -1
  83. package/es/list/status/StatusListItem/StatusListItem.js +5 -5
  84. package/es/lookup/Lookup/Lookup.js +7 -7
  85. package/es/lookup/Lookup/Lookup.module.css +4 -1
  86. package/es/lookup/Lookup/props/propTypes.js +3 -2
  87. package/es/lookup/header/Search/Search.js +5 -3
  88. package/es/lookup/header/TicketHeader/TicketHeader.js +88 -73
  89. package/es/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  90. package/es/lookup/header/TicketHeader/props/propTypes.js +2 -1
  91. package/es/v1/Drawer/Drawer.js +4 -5
  92. package/es/v1/ExternalLink/ExternalLink.js +4 -5
  93. package/es/v1/FlipCard/FlipCard.js +14 -12
  94. package/es/v1/GlobalNotification/GlobalNotification.js +6 -7
  95. package/es/v1/IconButton/IconButton.js +4 -5
  96. package/es/v1/Link/Link.js +8 -10
  97. package/es/v1/Message/Message.js +4 -5
  98. package/es/v1/ToastMessage/ToastMessage.js +2 -4
  99. package/es/v1/actions/AutoClose.js +2 -1
  100. package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
  101. package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
  102. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
  103. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +4 -5
  104. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +7 -8
  105. package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
  106. package/es/v1/avatar/AvatarUser/AvatarUser.js +10 -9
  107. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  108. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
  109. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  110. package/es/v1/form/fields/CurrencyField/CurrencyField.js +14 -12
  111. package/es/v1/form/fields/DateField/DateField.js +14 -14
  112. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +13 -12
  113. package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
  114. package/es/v1/form/fields/RadioField/RadioField.js +18 -16
  115. package/es/v1/form/fields/SelectField/SelectField.js +14 -14
  116. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
  117. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  118. package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
  119. package/es/v1/form/fields/TextEditorField/TextEditorField.js +11 -10
  120. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
  121. package/es/v1/form/fields/TextareaField/TextareaField.js +14 -13
  122. package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -6
  123. package/es/v1/list/ListLayout/ListLayout.js +4 -5
  124. package/es/v1/list/SecondaryText/AccountName.js +12 -12
  125. package/es/v1/list/SecondaryText/ContactName.js +8 -9
  126. package/es/v1/list/SecondaryText/Email.js +8 -8
  127. package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
  128. package/es/v1/list/SecondaryText/SecondaryText.js +4 -5
  129. package/es/v1/list/SecondaryText/TicketId.js +7 -7
  130. package/es/v1/list/Subject/Subject.js +7 -7
  131. package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
  132. package/es/v1/lookup/Lookup/Lookup.js +7 -7
  133. package/es/v1/lookup/Lookup/props/propTypes.js +3 -2
  134. package/es/v1/lookup/header/Search/Search.js +5 -3
  135. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +30 -12
  136. package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  137. package/es/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
  138. package/es/v1/notification/DesktopNotification/DesktopNotification.js +6 -7
  139. package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
  140. package/es/version2/GlobalNotification/GlobalNotification.module.css +0 -4
  141. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
  142. package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
  143. package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
  144. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
  145. package/lib/ActionButton/ActionButton.module.css +51 -4
  146. package/lib/AlphabeticList/AlphabeticList.module.css +0 -2
  147. package/lib/AttachmentViewer/AttachmentViewer.module.css +0 -2
  148. package/lib/ChannelIcon/ChannelIcon.module.css +9 -4
  149. package/lib/FormAction/FormAction.module.css +18 -1
  150. package/lib/IconButton/IconButton.module.css +0 -1
  151. package/lib/TagWithIcon/TagWithIcon.module.css +0 -3
  152. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
  153. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
  154. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
  155. package/lib/layout/SubtabLayout/SubtabLayout.module.css +0 -2
  156. package/lib/list/Comment/Comment.module.css +0 -1
  157. package/lib/list/Dot/Dot.module.css +0 -1
  158. package/lib/list/ListLayout/ListLayout.module.css +0 -6
  159. package/lib/list/Subject/Subject.module.css +8 -1
  160. package/lib/list/Thread/Thread.module.css +0 -1
  161. package/lib/lookup/Lookup/Lookup.js +3 -2
  162. package/lib/lookup/Lookup/Lookup.module.css +4 -1
  163. package/lib/lookup/Lookup/props/propTypes.js +3 -2
  164. package/lib/lookup/header/TicketHeader/TicketHeader.js +93 -106
  165. package/lib/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  166. package/lib/lookup/header/TicketHeader/props/propTypes.js +2 -1
  167. package/lib/v1/lookup/Lookup/Lookup.js +3 -2
  168. package/lib/v1/lookup/Lookup/props/propTypes.js +3 -2
  169. package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +37 -12
  170. package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  171. package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
  172. package/lib/version2/GlobalNotification/GlobalNotification.module.css +0 -4
  173. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
  174. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
  175. package/package.json +9 -9
  176. package/result.json +1 -1
@@ -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';
@@ -58,7 +56,7 @@ function CheckBoxField(props) {
58
56
  lockedInfoText: lockedInfoText,
59
57
  infoText: infoText,
60
58
  renderProps: renderLabelProps
61
- }, /*#__PURE__*/React.createElement(Label, _extends({
59
+ }, /*#__PURE__*/React.createElement(Label, {
62
60
  text: labelName,
63
61
  id: id,
64
62
  size: fieldSize === 'small' ? 'small' : 'medium',
@@ -68,8 +66,9 @@ function CheckBoxField(props) {
68
66
  title: labelName,
69
67
  onClick: !removeEvent ? handleLabelClick : null,
70
68
  variant: isDirectCol ? 'default' : 'primary',
71
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
72
- }, LabelProps)));
69
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
70
+ ...LabelProps
71
+ }));
73
72
 
74
73
  function handleChange(value) {
75
74
  onChange && onChange(id, value);
@@ -95,27 +94,30 @@ function CheckBoxField(props) {
95
94
  align: "top"
96
95
  }, /*#__PURE__*/React.createElement(Box, {
97
96
  className: isDirectCol ? style.checkbox : style.checkboxRow
98
- }, /*#__PURE__*/React.createElement(CheckBox, _extends({
97
+ }, /*#__PURE__*/React.createElement(CheckBox, {
99
98
  id: id,
100
99
  onChange: handleChange,
101
100
  disabled: removeEvent,
102
101
  checked: checked,
103
102
  getRef: handleGetRef,
104
103
  dataId: dataId,
105
- getContainerRef: getContainerRef
106
- }, CheckBoxProps))), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
104
+ getContainerRef: getContainerRef,
105
+ ...CheckBoxProps
106
+ })), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
107
107
  flexible: true
108
- }, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
108
+ }, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
109
109
  text: validationMessage,
110
110
  palette: validationPalette,
111
111
  type: errorType,
112
- dataId: `${dataId}_ValidationMessage`
113
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
112
+ dataId: `${dataId}_ValidationMessage`,
113
+ ...ValidationMessageProps1
114
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
114
115
  text: validationRuleMessage,
115
116
  palette: validationRulePalette,
116
117
  type: errorType,
117
- dataId: `${dataId}_ValidationRuleMessage`
118
- }, ValidationMessageProps2))));
118
+ dataId: `${dataId}_ValidationRuleMessage`,
119
+ ...ValidationMessageProps2
120
+ })));
119
121
  }
120
122
 
121
123
  CheckBoxField.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, useState } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -103,16 +101,17 @@ function CurrencyField(props) {
103
101
  isLocked: isLocked,
104
102
  lockedInfoText: lockedInfoText,
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))), /*#__PURE__*/React.createElement("div", {
110
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
111
+ ...LabelProps
112
+ })), /*#__PURE__*/React.createElement("div", {
114
113
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
115
- }, /*#__PURE__*/React.createElement(TextBox, _extends({
114
+ }, /*#__PURE__*/React.createElement(TextBox, {
116
115
  htmlId: uniqueId,
117
116
  id: id,
118
117
  type: textBoxType,
@@ -132,20 +131,23 @@ function CurrencyField(props) {
132
131
  isDisabled: isDisabled,
133
132
  needEffect: isReadOnly || isDisabled ? false : true,
134
133
  isClickable: isClickable,
135
- needReadOnlyStyle: needReadOnlyStyle
136
- }, TextBoxProps)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
134
+ needReadOnlyStyle: needReadOnlyStyle,
135
+ ...TextBoxProps
136
+ }), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
137
137
  text: validationMessage,
138
138
  palette: validationPalette,
139
139
  type: errorType,
140
140
  dataId: `${dataId}_ValidationMessage`,
141
- htmlFor: uniqueId
142
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
141
+ htmlFor: uniqueId,
142
+ ...ValidationMessageProps1
143
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
143
144
  text: validationRuleMessage,
144
145
  palette: validationRulePalette,
145
146
  type: errorType,
146
147
  htmlFor: uniqueId,
147
- dataId: `${dataId}_ValidationRuleMessage`
148
- }, ValidationMessageProps2))));
148
+ dataId: `${dataId}_ValidationRuleMessage`,
149
+ ...ValidationMessageProps2
150
+ })));
149
151
  }
150
152
 
151
153
  CurrencyField.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, useEffect, useRef } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -103,21 +101,21 @@ function DateField(props) {
103
101
  isLocked: isLocked,
104
102
  lockedInfoText: lockedInfoText,
105
103
  renderProps: renderLabelProps
106
- }, /*#__PURE__*/React.createElement(Label, _extends({
104
+ }, /*#__PURE__*/React.createElement(Label, {
107
105
  text: labelName,
108
106
  htmlFor: getAriaId,
109
107
  size: fieldSize === 'small' ? 'small' : 'medium',
110
108
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
111
109
  onClick: isDisabled || isReadOnly ? null : handleLabelClick,
112
110
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
113
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
114
- }, LabelProps, {
111
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
112
+ ...LabelProps,
115
113
  id: labelName
116
- }))), /*#__PURE__*/React.createElement("div", {
114
+ })), /*#__PURE__*/React.createElement("div", {
117
115
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
118
116
  }, isLocked && lockedValueText ? /*#__PURE__*/React.createElement("div", {
119
117
  className: style.lockText
120
- }, lockedValueText) : /*#__PURE__*/React.createElement(DateWidget, _extends({
118
+ }, lockedValueText) : /*#__PURE__*/React.createElement(DateWidget, {
121
119
  textBoxSize: fieldSize === 'medium' ? textBoxSize : 'xsmall',
122
120
  textBoxVariant: textBoxVariant,
123
121
  isDateTime: isDateTime,
@@ -135,24 +133,26 @@ function DateField(props) {
135
133
  isEditable: true,
136
134
  htmlId: getAriaId,
137
135
  i18nKeys: i18nKeys,
138
- iconOnHover: iconOnHover
139
- }, DateWidgetProps, {
136
+ iconOnHover: iconOnHover,
137
+ ...DateWidgetProps,
140
138
  a11y: {
141
139
  ariaLabelledby: labelName
142
140
  }
143
- })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
141
+ }), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
144
142
  text: validationMessage,
145
143
  palette: validationPalette,
146
144
  type: errorType,
147
145
  htmlFor: getAriaId,
148
- dataId: `${dataId}_ValidationMessage`
149
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
146
+ dataId: `${dataId}_ValidationMessage`,
147
+ ...ValidationMessageProps1
148
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
150
149
  text: validationRuleMessage,
151
150
  palette: validationRulePalette,
152
151
  type: errorType,
153
152
  htmlFor: getAriaId,
154
- dataId: `${dataId}_ValidationRuleMessage`
155
- }, ValidationMessageProps2))));
153
+ dataId: `${dataId}_ValidationRuleMessage`,
154
+ ...ValidationMessageProps2
155
+ })));
156
156
  }
157
157
 
158
158
  DateField.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';
@@ -122,7 +120,7 @@ function MultiSelectField(props) {
122
120
  isLocked: isLocked,
123
121
  lockedInfoText: lockedInfoText,
124
122
  renderProps: renderLabelProps
125
- }, /*#__PURE__*/React.createElement(Label, _extends({
123
+ }, /*#__PURE__*/React.createElement(Label, {
126
124
  text: labelName,
127
125
  id: id,
128
126
  size: fieldSize === 'small' ? 'small' : 'medium',
@@ -130,8 +128,9 @@ function MultiSelectField(props) {
130
128
  ,
131
129
  customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
132
130
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
133
- htmlFor: uniqueId
134
- }, LabelProps))), /*#__PURE__*/React.createElement(MultiSelect, _extends({
131
+ htmlFor: uniqueId,
132
+ ...LabelProps
133
+ })), /*#__PURE__*/React.createElement(MultiSelect, {
135
134
  options: options,
136
135
  onChange: handleChange,
137
136
  selectedOptions: selectedOptions,
@@ -162,22 +161,24 @@ function MultiSelectField(props) {
162
161
  i18nKeys: i18nKeys,
163
162
  htmlId: uniqueId,
164
163
  customChildrenClass: customChildrenClass,
165
- onFocus: onFocus
166
- }, MultiSelectProps, {
164
+ onFocus: onFocus,
165
+ ...MultiSelectProps,
167
166
  ariaLabelledby: uniqueId
168
- }), children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
167
+ }, children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
169
168
  text: validationMessage,
170
169
  palette: validationPalette,
171
170
  type: errorType,
172
171
  dataId: `${dataId}_ValidationMessage`,
173
- htmlFor: uniqueId
174
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
172
+ htmlFor: uniqueId,
173
+ ...ValidationMessageProps1
174
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
175
175
  text: validationRuleMessage,
176
176
  palette: validationRulePalette,
177
177
  type: errorType,
178
178
  dataId: `${dataId}_ValidationRuleMessage`,
179
- htmlFor: uniqueId
180
- }, ValidationMessageProps2)));
179
+ htmlFor: uniqueId,
180
+ ...ValidationMessageProps2
181
+ }));
181
182
  }
182
183
 
183
184
  MultiSelectField.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, useState, useRef } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -106,7 +104,7 @@ function PhoneField(props) {
106
104
  dataSelectorId: dataSelectorId
107
105
  }, /*#__PURE__*/React.createElement(Box, {
108
106
  flexible: true
109
- }, /*#__PURE__*/React.createElement(TextBoxField, _extends({
107
+ }, /*#__PURE__*/React.createElement(TextBoxField, {
110
108
  labelName: labelName,
111
109
  id: id,
112
110
  palette: isMandatory ? 'mandatory' : 'default',
@@ -133,8 +131,9 @@ function PhoneField(props) {
133
131
  labelPalette: labelPalette,
134
132
  labelCustomClass: labelCustomClass,
135
133
  errorType: errorType,
136
- ePhiData: ePhiData
137
- }, TextBoxFieldProps))), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, _extends({
134
+ ePhiData: ePhiData,
135
+ ...TextBoxFieldProps
136
+ })), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, {
138
137
  className: style.phoneIcon,
139
138
  callfrom: "phone",
140
139
  pbxname: providerName,
@@ -145,8 +144,9 @@ function PhoneField(props) {
145
144
  callto: 'RequestPhoneNumber',
146
145
  href: true,
147
146
  onClick: onCall,
148
- type: type
149
- }, LinkProps), /*#__PURE__*/React.createElement(Icon, {
147
+ type: type,
148
+ ...LinkProps
149
+ }, /*#__PURE__*/React.createElement(Icon, {
150
150
  name: "ZD-GN-phone",
151
151
  size: "14"
152
152
  })) : null));
@@ -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';
@@ -65,14 +63,15 @@ const RadioField = props => {
65
63
  className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
66
64
  "data-title": isDisabled ? title : null,
67
65
  "data-selector-id": dataSelectorId
68
- }, labelName && /*#__PURE__*/React.createElement(Label, _extends({
66
+ }, labelName && /*#__PURE__*/React.createElement(Label, {
69
67
  text: labelName,
70
68
  size: "medium",
71
69
  id: id,
72
70
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : 'default',
73
71
  customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
74
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
75
- }, LabelProps)), /*#__PURE__*/React.createElement("div", {
72
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
73
+ ...LabelProps
74
+ }), /*#__PURE__*/React.createElement("div", {
76
75
  className: `${style.fieldContainer} ${isBoxStyle ? style.radiosWrapper : ''} ${labelName ? style.fieldMargin_medium : ''} ${style.radioContainer}`
77
76
  }, options.map((option, index) => {
78
77
  let {
@@ -86,7 +85,7 @@ const RadioField = props => {
86
85
  return /*#__PURE__*/React.createElement("span", {
87
86
  key: index,
88
87
  className: `${!isBoxStyle ? style.radio : ''} ${style.radioWrap}`
89
- }, /*#__PURE__*/React.createElement(Radio, _extends({
88
+ }, /*#__PURE__*/React.createElement(Radio, {
90
89
  id: index,
91
90
  value: value,
92
91
  name: id,
@@ -103,8 +102,8 @@ const RadioField = props => {
103
102
  checked: isChecked,
104
103
  dataId: dataId,
105
104
  isReadOnly: isReadOnly,
106
- variant: variant
107
- }, RadioProps, {
105
+ variant: variant,
106
+ ...RadioProps,
108
107
  a11y: {
109
108
  tabIndex: !!selectedValue ? isChecked ? '0' : '-1' : index === 0 ? '0' : '-1',
110
109
  ...RadioProps.a11y
@@ -113,23 +112,26 @@ const RadioField = props => {
113
112
  customRadioWrap: `${isBoxStyle ? style.radioBox : ''} ${isBoxStyle && isChecked ? style.radioBoxActive : ''}`,
114
113
  ...RadioProps.customClass
115
114
  }
116
- }), !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, _extends({
115
+ }, !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, {
117
116
  name: "ZD-GN-info",
118
117
  size: "16",
119
118
  title: infoTooltip,
120
- iconClass: style.infoIcon
121
- }, InfoIconProps)) : null));
122
- })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
119
+ iconClass: style.infoIcon,
120
+ ...InfoIconProps
121
+ }) : null));
122
+ })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
123
123
  text: validationMessage,
124
124
  palette: validationPalette,
125
125
  type: errorType,
126
- dataId: `${dataId}_ValidationMessage`
127
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
126
+ dataId: `${dataId}_ValidationMessage`,
127
+ ...ValidationMessageProps1
128
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
128
129
  text: validationRuleMessage,
129
130
  palette: validationRulePalette,
130
131
  type: errorType,
131
- dataId: `${dataId}_ValidationRuleMessage`
132
- }, ValidationMessageProps2)));
132
+ dataId: `${dataId}_ValidationRuleMessage`,
133
+ ...ValidationMessageProps2
134
+ }));
133
135
  };
134
136
 
135
137
  RadioField.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';
@@ -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';
@@ -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';
@@ -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;