@zohodesk/dot 1.4.14 → 1.4.15

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 (140) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +8 -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 +1 -1
  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/coverage-final.json +16 -16
  28. package/coverage/coverage-summary.json +16 -16
  29. package/coverage/index.html +1 -1
  30. package/es/Drawer/Drawer.js +5 -4
  31. package/es/ExternalLink/ExternalLink.js +5 -4
  32. package/es/FlipCard/FlipCard.js +12 -14
  33. package/es/IconButton/IconButton.js +5 -4
  34. package/es/Link/Link.js +10 -8
  35. package/es/Message/Message.js +5 -4
  36. package/es/ToastMessage/ToastMessage.js +4 -2
  37. package/es/actions/AutoClose.js +1 -2
  38. package/es/alert/AlertLookup/AlertLookup.js +12 -14
  39. package/es/avatar/AvatarClose/AvatarClose.js +7 -7
  40. package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
  41. package/es/avatar/AvatarIcon/AvatarIcon.js +5 -4
  42. package/es/avatar/AvatarStatus/AvatarStatus.js +8 -7
  43. package/es/avatar/AvatarThread/AvatarThread.js +7 -7
  44. package/es/avatar/AvatarUser/AvatarUser.js +9 -10
  45. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
  46. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
  47. package/es/form/fields/CheckBoxField/CheckBoxField.js +13 -15
  48. package/es/form/fields/CurrencyField/CurrencyField.js +12 -14
  49. package/es/form/fields/DateField/DateField.js +14 -14
  50. package/es/form/fields/MultiSelectField/MultiSelectField.js +12 -13
  51. package/es/form/fields/PhoneField/PhoneField.js +7 -7
  52. package/es/form/fields/RadioField/RadioField.js +15 -18
  53. package/es/form/fields/SelectField/SelectField.js +14 -14
  54. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -13
  55. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  56. package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
  57. package/es/form/fields/TextEditorField/TextEditorField.js +10 -11
  58. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
  59. package/es/form/fields/TextareaField/TextareaField.js +13 -14
  60. package/es/layout/SubtabLayout/SubtabLayout.js +6 -4
  61. package/es/list/ListLayout/ListLayout.js +5 -4
  62. package/es/list/SecondaryText/AccountName.js +12 -12
  63. package/es/list/SecondaryText/ContactName.js +9 -8
  64. package/es/list/SecondaryText/Email.js +8 -8
  65. package/es/list/SecondaryText/PhoneNumber.js +8 -8
  66. package/es/list/SecondaryText/SecondaryText.js +5 -4
  67. package/es/list/SecondaryText/TicketId.js +7 -7
  68. package/es/list/Subject/Subject.js +7 -7
  69. package/es/list/Thread/Thread.js +1 -2
  70. package/es/list/status/StatusDropdown/StatusDropdown.js +50 -179
  71. package/es/list/status/StatusDropdown/StatusDropdown.module.css +1 -10
  72. package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
  73. package/es/list/status/StatusDropdown/props/propTypes.js +1 -1
  74. package/es/list/status/StatusListItem/StatusListItem.js +10 -6
  75. package/es/lookup/Lookup/Lookup.js +5 -4
  76. package/es/lookup/header/Search/Search.js +3 -5
  77. package/es/v1/Drawer/Drawer.js +5 -4
  78. package/es/v1/ExternalLink/ExternalLink.js +5 -4
  79. package/es/v1/FlipCard/FlipCard.js +12 -14
  80. package/es/v1/GlobalNotification/GlobalNotification.js +7 -6
  81. package/es/v1/IconButton/IconButton.js +5 -4
  82. package/es/v1/Link/Link.js +10 -8
  83. package/es/v1/Message/Message.js +5 -4
  84. package/es/v1/ToastMessage/ToastMessage.js +4 -2
  85. package/es/v1/actions/AutoClose.js +1 -2
  86. package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
  87. package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
  88. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
  89. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +5 -4
  90. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +8 -7
  91. package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
  92. package/es/v1/avatar/AvatarUser/AvatarUser.js +9 -10
  93. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
  94. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
  95. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +13 -15
  96. package/es/v1/form/fields/CurrencyField/CurrencyField.js +12 -14
  97. package/es/v1/form/fields/DateField/DateField.js +14 -14
  98. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +12 -13
  99. package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
  100. package/es/v1/form/fields/RadioField/RadioField.js +16 -18
  101. package/es/v1/form/fields/SelectField/SelectField.js +14 -14
  102. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -13
  103. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  104. package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
  105. package/es/v1/form/fields/TextEditorField/TextEditorField.js +10 -11
  106. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
  107. package/es/v1/form/fields/TextareaField/TextareaField.js +13 -14
  108. package/es/v1/layout/SubtabLayout/SubtabLayout.js +6 -4
  109. package/es/v1/list/ListLayout/ListLayout.js +5 -4
  110. package/es/v1/list/SecondaryText/AccountName.js +12 -12
  111. package/es/v1/list/SecondaryText/ContactName.js +9 -8
  112. package/es/v1/list/SecondaryText/Email.js +8 -8
  113. package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
  114. package/es/v1/list/SecondaryText/SecondaryText.js +5 -4
  115. package/es/v1/list/SecondaryText/TicketId.js +7 -7
  116. package/es/v1/list/Subject/Subject.js +7 -7
  117. package/es/v1/list/Thread/Thread.js +1 -2
  118. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +49 -134
  119. package/es/v1/list/status/StatusDropdown/props/defaultProps.js +2 -1
  120. package/es/v1/list/status/StatusDropdown/props/propTypes.js +1 -1
  121. package/es/v1/list/status/StatusListItem/StatusListItem.js +10 -6
  122. package/es/v1/lookup/Lookup/Lookup.js +5 -4
  123. package/es/v1/lookup/header/Search/Search.js +3 -5
  124. package/es/v1/notification/DesktopNotification/DesktopNotification.js +7 -6
  125. package/es/version2/GlobalNotification/GlobalNotification.js +7 -6
  126. package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
  127. package/es/version2/notification/DesktopNotification/DesktopNotification.js +7 -6
  128. package/lib/list/Thread/Thread.js +1 -2
  129. package/lib/list/status/StatusDropdown/StatusDropdown.js +96 -231
  130. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +1 -10
  131. package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
  132. package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
  133. package/lib/list/status/StatusListItem/StatusListItem.js +6 -1
  134. package/lib/v1/list/Thread/Thread.js +1 -2
  135. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +41 -132
  136. package/lib/v1/list/status/StatusDropdown/props/defaultProps.js +2 -1
  137. package/lib/v1/list/status/StatusDropdown/props/propTypes.js +1 -1
  138. package/lib/v1/list/status/StatusListItem/StatusListItem.js +6 -1
  139. package/package.json +8 -8
  140. package/result.json +1 -1
@@ -1,3 +1,5 @@
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
+
1
3
  /**** Libraries ****/
2
4
  import React, { memo } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -56,7 +58,7 @@ function CheckBoxField(props) {
56
58
  lockedInfoText: lockedInfoText,
57
59
  infoText: infoText,
58
60
  renderProps: renderLabelProps
59
- }, /*#__PURE__*/React.createElement(Label, {
61
+ }, /*#__PURE__*/React.createElement(Label, _extends({
60
62
  text: labelName,
61
63
  id: id,
62
64
  size: fieldSize === 'small' ? 'small' : 'medium',
@@ -66,9 +68,8 @@ function CheckBoxField(props) {
66
68
  title: labelName,
67
69
  onClick: !removeEvent ? handleLabelClick : null,
68
70
  variant: isDirectCol ? 'default' : 'primary',
69
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
70
- ...LabelProps
71
- }));
71
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
72
+ }, LabelProps)));
72
73
 
73
74
  function handleChange(value) {
74
75
  onChange && onChange(id, value);
@@ -94,30 +95,27 @@ function CheckBoxField(props) {
94
95
  align: "top"
95
96
  }, /*#__PURE__*/React.createElement(Box, {
96
97
  className: isDirectCol ? style.checkbox : style.checkboxRow
97
- }, /*#__PURE__*/React.createElement(CheckBox, {
98
+ }, /*#__PURE__*/React.createElement(CheckBox, _extends({
98
99
  id: id,
99
100
  onChange: handleChange,
100
101
  disabled: removeEvent,
101
102
  checked: checked,
102
103
  getRef: handleGetRef,
103
104
  dataId: dataId,
104
- getContainerRef: getContainerRef,
105
- ...CheckBoxProps
106
- })), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
105
+ getContainerRef: getContainerRef
106
+ }, CheckBoxProps))), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
107
107
  flexible: true
108
- }, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
108
+ }, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
109
109
  text: validationMessage,
110
110
  palette: validationPalette,
111
111
  type: errorType,
112
- dataId: `${dataId}_ValidationMessage`,
113
- ...ValidationMessageProps1
114
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
112
+ dataId: `${dataId}_ValidationMessage`
113
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
115
114
  text: validationRuleMessage,
116
115
  palette: validationRulePalette,
117
116
  type: errorType,
118
- dataId: `${dataId}_ValidationRuleMessage`,
119
- ...ValidationMessageProps2
120
- })));
117
+ dataId: `${dataId}_ValidationRuleMessage`
118
+ }, ValidationMessageProps2))));
121
119
  }
122
120
 
123
121
  CheckBoxField.propTypes = propTypes;
@@ -1,3 +1,5 @@
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
+
1
3
  /**** Libraries ****/
2
4
  import React, { memo, useRef, useState } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -101,17 +103,16 @@ function CurrencyField(props) {
101
103
  isLocked: isLocked,
102
104
  lockedInfoText: lockedInfoText,
103
105
  renderProps: renderLabelProps
104
- }, /*#__PURE__*/React.createElement(Label, {
106
+ }, /*#__PURE__*/React.createElement(Label, _extends({
105
107
  text: labelName,
106
108
  size: fieldSize === 'small' ? 'small' : 'medium',
107
109
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
108
110
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
109
111
  htmlFor: uniqueId,
110
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
111
- ...LabelProps
112
- })), /*#__PURE__*/React.createElement("div", {
112
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
113
+ }, LabelProps))), /*#__PURE__*/React.createElement("div", {
113
114
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
114
- }, /*#__PURE__*/React.createElement(TextBox, {
115
+ }, /*#__PURE__*/React.createElement(TextBox, _extends({
115
116
  htmlId: uniqueId,
116
117
  id: id,
117
118
  type: textBoxType,
@@ -131,23 +132,20 @@ function CurrencyField(props) {
131
132
  isDisabled: isDisabled,
132
133
  needEffect: isReadOnly || isDisabled ? false : true,
133
134
  isClickable: isClickable,
134
- needReadOnlyStyle: needReadOnlyStyle,
135
- ...TextBoxProps
136
- }), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
135
+ needReadOnlyStyle: needReadOnlyStyle
136
+ }, TextBoxProps)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
137
137
  text: validationMessage,
138
138
  palette: validationPalette,
139
139
  type: errorType,
140
140
  dataId: `${dataId}_ValidationMessage`,
141
- htmlFor: uniqueId,
142
- ...ValidationMessageProps1
143
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
141
+ htmlFor: uniqueId
142
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
144
143
  text: validationRuleMessage,
145
144
  palette: validationRulePalette,
146
145
  type: errorType,
147
146
  htmlFor: uniqueId,
148
- dataId: `${dataId}_ValidationRuleMessage`,
149
- ...ValidationMessageProps2
150
- })));
147
+ dataId: `${dataId}_ValidationRuleMessage`
148
+ }, ValidationMessageProps2))));
151
149
  }
152
150
 
153
151
  CurrencyField.propTypes = propTypes;
@@ -1,3 +1,5 @@
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
+
1
3
  /**** Libraries ****/
2
4
  import React, { memo, useEffect, useRef } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -101,21 +103,21 @@ function DateField(props) {
101
103
  isLocked: isLocked,
102
104
  lockedInfoText: lockedInfoText,
103
105
  renderProps: renderLabelProps
104
- }, /*#__PURE__*/React.createElement(Label, {
106
+ }, /*#__PURE__*/React.createElement(Label, _extends({
105
107
  text: labelName,
106
108
  htmlFor: getAriaId,
107
109
  size: fieldSize === 'small' ? 'small' : 'medium',
108
110
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
109
111
  onClick: isDisabled || isReadOnly ? null : handleLabelClick,
110
112
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
111
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
112
- ...LabelProps,
113
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
114
+ }, LabelProps, {
113
115
  id: labelName
114
- })), /*#__PURE__*/React.createElement("div", {
116
+ }))), /*#__PURE__*/React.createElement("div", {
115
117
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
116
118
  }, isLocked && lockedValueText ? /*#__PURE__*/React.createElement("div", {
117
119
  className: style.lockText
118
- }, lockedValueText) : /*#__PURE__*/React.createElement(DateWidget, {
120
+ }, lockedValueText) : /*#__PURE__*/React.createElement(DateWidget, _extends({
119
121
  textBoxSize: fieldSize === 'medium' ? textBoxSize : 'xsmall',
120
122
  textBoxVariant: textBoxVariant,
121
123
  isDateTime: isDateTime,
@@ -133,26 +135,24 @@ function DateField(props) {
133
135
  isEditable: true,
134
136
  htmlId: getAriaId,
135
137
  i18nKeys: i18nKeys,
136
- iconOnHover: iconOnHover,
137
- ...DateWidgetProps,
138
+ iconOnHover: iconOnHover
139
+ }, DateWidgetProps, {
138
140
  a11y: {
139
141
  ariaLabelledby: labelName
140
142
  }
141
- }), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
143
+ })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
142
144
  text: validationMessage,
143
145
  palette: validationPalette,
144
146
  type: errorType,
145
147
  htmlFor: getAriaId,
146
- dataId: `${dataId}_ValidationMessage`,
147
- ...ValidationMessageProps1
148
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
148
+ dataId: `${dataId}_ValidationMessage`
149
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
149
150
  text: validationRuleMessage,
150
151
  palette: validationRulePalette,
151
152
  type: errorType,
152
153
  htmlFor: getAriaId,
153
- dataId: `${dataId}_ValidationRuleMessage`,
154
- ...ValidationMessageProps2
155
- })));
154
+ dataId: `${dataId}_ValidationRuleMessage`
155
+ }, ValidationMessageProps2))));
156
156
  }
157
157
 
158
158
  DateField.propTypes = propTypes;
@@ -1,3 +1,5 @@
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
+
1
3
  /**** Libraries ****/
2
4
  import React, { memo, useRef } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -120,7 +122,7 @@ function MultiSelectField(props) {
120
122
  isLocked: isLocked,
121
123
  lockedInfoText: lockedInfoText,
122
124
  renderProps: renderLabelProps
123
- }, /*#__PURE__*/React.createElement(Label, {
125
+ }, /*#__PURE__*/React.createElement(Label, _extends({
124
126
  text: labelName,
125
127
  id: id,
126
128
  size: fieldSize === 'small' ? 'small' : 'medium',
@@ -128,9 +130,8 @@ function MultiSelectField(props) {
128
130
  ,
129
131
  customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
130
132
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
131
- htmlFor: uniqueId,
132
- ...LabelProps
133
- })), /*#__PURE__*/React.createElement(MultiSelect, {
133
+ htmlFor: uniqueId
134
+ }, LabelProps))), /*#__PURE__*/React.createElement(MultiSelect, _extends({
134
135
  options: options,
135
136
  onChange: handleChange,
136
137
  selectedOptions: selectedOptions,
@@ -161,24 +162,22 @@ function MultiSelectField(props) {
161
162
  i18nKeys: i18nKeys,
162
163
  htmlId: uniqueId,
163
164
  customChildrenClass: customChildrenClass,
164
- onFocus: onFocus,
165
- ...MultiSelectProps,
165
+ onFocus: onFocus
166
+ }, MultiSelectProps, {
166
167
  ariaLabelledby: uniqueId
167
- }, children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
168
+ }), children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
168
169
  text: validationMessage,
169
170
  palette: validationPalette,
170
171
  type: errorType,
171
172
  dataId: `${dataId}_ValidationMessage`,
172
- htmlFor: uniqueId,
173
- ...ValidationMessageProps1
174
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
173
+ htmlFor: uniqueId
174
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
175
175
  text: validationRuleMessage,
176
176
  palette: validationRulePalette,
177
177
  type: errorType,
178
178
  dataId: `${dataId}_ValidationRuleMessage`,
179
- htmlFor: uniqueId,
180
- ...ValidationMessageProps2
181
- }));
179
+ htmlFor: uniqueId
180
+ }, ValidationMessageProps2)));
182
181
  }
183
182
 
184
183
  MultiSelectField.propTypes = propTypes;
@@ -1,3 +1,5 @@
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
+
1
3
  /**** Libraries ****/
2
4
  import React, { memo, useState, useRef } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -104,7 +106,7 @@ function PhoneField(props) {
104
106
  dataSelectorId: dataSelectorId
105
107
  }, /*#__PURE__*/React.createElement(Box, {
106
108
  flexible: true
107
- }, /*#__PURE__*/React.createElement(TextBoxField, {
109
+ }, /*#__PURE__*/React.createElement(TextBoxField, _extends({
108
110
  labelName: labelName,
109
111
  id: id,
110
112
  palette: isMandatory ? 'mandatory' : 'default',
@@ -131,9 +133,8 @@ function PhoneField(props) {
131
133
  labelPalette: labelPalette,
132
134
  labelCustomClass: labelCustomClass,
133
135
  errorType: errorType,
134
- ePhiData: ePhiData,
135
- ...TextBoxFieldProps
136
- })), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, {
136
+ ePhiData: ePhiData
137
+ }, TextBoxFieldProps))), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, _extends({
137
138
  className: style.phoneIcon,
138
139
  callfrom: "phone",
139
140
  pbxname: providerName,
@@ -144,9 +145,8 @@ function PhoneField(props) {
144
145
  callto: 'RequestPhoneNumber',
145
146
  href: true,
146
147
  onClick: onCall,
147
- type: type,
148
- ...LinkProps
149
- }, /*#__PURE__*/React.createElement(Icon, {
148
+ type: type
149
+ }, LinkProps), /*#__PURE__*/React.createElement(Icon, {
150
150
  name: "ZD-GN-phone",
151
151
  size: "14"
152
152
  })) : null));
@@ -1,3 +1,5 @@
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
+
1
3
  /**** Libraries ****/
2
4
  import React, { memo } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -63,15 +65,14 @@ const RadioField = props => {
63
65
  className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
64
66
  "data-title": isDisabled ? title : null,
65
67
  "data-selector-id": dataSelectorId
66
- }, labelName && /*#__PURE__*/React.createElement(Label, {
68
+ }, labelName && /*#__PURE__*/React.createElement(Label, _extends({
67
69
  text: labelName,
68
70
  size: "medium",
69
71
  id: id,
70
72
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : 'default',
71
73
  customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
72
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
73
- ...LabelProps
74
- }), /*#__PURE__*/React.createElement("div", {
74
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
75
+ }, LabelProps)), /*#__PURE__*/React.createElement("div", {
75
76
  className: `${style.fieldContainer} ${isBoxStyle ? style.radiosWrapper : ''} ${labelName ? style.fieldMargin_medium : ''} ${style.radioContainer}`
76
77
  }, options.map((option, index) => {
77
78
  let {
@@ -85,7 +86,7 @@ const RadioField = props => {
85
86
  return /*#__PURE__*/React.createElement("span", {
86
87
  key: index,
87
88
  className: `${!isBoxStyle ? style.radio : ''} ${style.radioWrap}`
88
- }, /*#__PURE__*/React.createElement(Radio, {
89
+ }, /*#__PURE__*/React.createElement(Radio, _extends({
89
90
  id: index,
90
91
  value: value,
91
92
  name: id,
@@ -102,8 +103,8 @@ const RadioField = props => {
102
103
  checked: isChecked,
103
104
  dataId: dataId,
104
105
  isReadOnly: isReadOnly,
105
- variant: variant,
106
- ...RadioProps,
106
+ variant: variant
107
+ }, RadioProps, {
107
108
  a11y: {
108
109
  tabIndex: !!selectedValue ? isChecked ? '0' : '-1' : index === 0 ? '0' : '-1',
109
110
  ...RadioProps.a11y
@@ -112,26 +113,23 @@ const RadioField = props => {
112
113
  customRadioWrap: `${isBoxStyle ? style.radioBox : ''} ${isBoxStyle && isChecked ? style.radioBoxActive : ''}`,
113
114
  ...RadioProps.customClass
114
115
  }
115
- }, !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, {
116
+ }), !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, _extends({
116
117
  name: "ZD-GN-info",
117
118
  size: "16",
118
119
  title: infoTooltip,
119
- iconClass: style.infoIcon,
120
- ...InfoIconProps
121
- }) : null));
122
- })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
120
+ iconClass: style.infoIcon
121
+ }, InfoIconProps)) : null));
122
+ })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
123
123
  text: validationMessage,
124
124
  palette: validationPalette,
125
125
  type: errorType,
126
- dataId: `${dataId}_ValidationMessage`,
127
- ...ValidationMessageProps1
128
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
126
+ dataId: `${dataId}_ValidationMessage`
127
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
129
128
  text: validationRuleMessage,
130
129
  palette: validationRulePalette,
131
130
  type: errorType,
132
- dataId: `${dataId}_ValidationRuleMessage`,
133
- ...ValidationMessageProps2
134
- }));
131
+ dataId: `${dataId}_ValidationRuleMessage`
132
+ }, ValidationMessageProps2)));
135
133
  };
136
134
 
137
135
  RadioField.propTypes = propTypes;
@@ -1,3 +1,5 @@
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
+
1
3
  /**** Libraries ****/
2
4
  import React, { memo } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -91,18 +93,18 @@ const SelectField = props => {
91
93
  isLocked: isLocked,
92
94
  lockedInfoText: lockedInfoText,
93
95
  renderProps: renderLabelProps
94
- }, /*#__PURE__*/React.createElement(Label, {
96
+ }, /*#__PURE__*/React.createElement(Label, _extends({
95
97
  text: labelName,
96
98
  size: fieldSize === 'small' ? 'small' : 'medium',
97
99
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
98
100
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
99
101
  htmlFor: uniqueId,
100
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
101
- ...LabelProps,
102
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
103
+ }, LabelProps, {
102
104
  id: uniqueId
103
- })), /*#__PURE__*/React.createElement("div", {
105
+ }))), /*#__PURE__*/React.createElement("div", {
104
106
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
105
- }, /*#__PURE__*/React.createElement(Select, {
107
+ }, /*#__PURE__*/React.createElement(Select, _extends({
106
108
  options: options,
107
109
  selectedValue: selectedValue,
108
110
  onChange: handleChange,
@@ -131,24 +133,22 @@ const SelectField = props => {
131
133
  needLocalSearch: needLocalSearch,
132
134
  isDefaultSelectValue: isDefaultSelectValue,
133
135
  placeHolder: placeHolder,
134
- iconOnHover: iconOnHover,
135
- ...SelectProps,
136
+ iconOnHover: iconOnHover
137
+ }, SelectProps, {
136
138
  ariaLabelledby: uniqueId
137
- }, children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
139
+ }), children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
138
140
  text: validationMessage,
139
141
  palette: validationPalette,
140
142
  type: errorType,
141
143
  htmlFor: uniqueId,
142
- dataId: `${dataId}_ValidationMessage`,
143
- ...ValidationMessageProps1
144
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
144
+ dataId: `${dataId}_ValidationMessage`
145
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
145
146
  text: validationRuleMessage,
146
147
  palette: validationRulePalette,
147
148
  type: errorType,
148
149
  htmlFor: uniqueId,
149
- dataId: `${dataId}_ValidationRuleMessage`,
150
- ...ValidationMessageProps2
151
- }));
150
+ dataId: `${dataId}_ValidationRuleMessage`
151
+ }, ValidationMessageProps2)));
152
152
  };
153
153
 
154
154
  SelectField.propTypes = propTypes;
@@ -1,3 +1,5 @@
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
+
1
3
  import React from 'react';
2
4
  import { defaultProps } from './props/defaultProps';
3
5
  import { propTypes } from './props/propTypes';
@@ -185,12 +187,10 @@ export default class TagsMultiSelect extends React.Component {
185
187
  boxCustomProps,
186
188
  tagCustomProps
187
189
  } = tag;
188
- return index < chipLimit ? /*#__PURE__*/React.createElement(Box, {
190
+ return index < chipLimit ? /*#__PURE__*/React.createElement(Box, _extends({
189
191
  className: style.tag,
190
- key: index,
191
- ...TagWrapperProps,
192
- ...boxCustomProps
193
- }, /*#__PURE__*/React.createElement(Tag, {
192
+ key: index
193
+ }, TagWrapperProps, boxCustomProps), /*#__PURE__*/React.createElement(Tag, _extends({
194
194
  id: id,
195
195
  text: name,
196
196
  onRemove: isReadOnly ? null : deleteTag.bind(this, name),
@@ -198,10 +198,8 @@ 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,
203
- ...tagCustomProps
204
- })) : null;
201
+ customClass: tagCustomClass
202
+ }, TagProps, tagCustomProps))) : null;
205
203
  }), tagsList.length > chipNeedToShow && !isPopupReady ? /*#__PURE__*/React.createElement(Box, {
206
204
  className: style.moreLess,
207
205
  dataId: `${dataId}_tagsMore`,
@@ -213,7 +211,7 @@ export default class TagsMultiSelect extends React.Component {
213
211
  className: style.inputWrapper
214
212
  }, /*#__PURE__*/React.createElement("span", {
215
213
  className: style.custmSpan
216
- }, name), /*#__PURE__*/React.createElement(TextBoxIcon, {
214
+ }, name), /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
217
215
  htmlId: htmlId,
218
216
  dataId: `${dataId}_tagInp`,
219
217
  value: name,
@@ -229,9 +227,8 @@ export default class TagsMultiSelect extends React.Component {
229
227
  customTextBox: style.input
230
228
  },
231
229
  size: "xsmall",
232
- inputRef: this.textInputRef,
233
- ...TextBoxIconProps
234
- }, getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
230
+ inputRef: this.textInputRef
231
+ }, TextBoxIconProps), getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
235
232
  query: this.responsiveFunc,
236
233
  responsiveId: "Helmet"
237
234
  }, _ref2 => {
@@ -1,3 +1,5 @@
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
+
1
3
  import React, { useState, useEffect } from 'react';
2
4
  import { defaultProps } from './props/defaultProps';
3
5
  import { propTypes } from './props/propTypes';
@@ -200,7 +202,7 @@ const TagsMultiSelectField = props => {
200
202
  renderProps: {
201
203
  end: renderEnd
202
204
  }
203
- }, /*#__PURE__*/React.createElement(Label, {
205
+ }, /*#__PURE__*/React.createElement(Label, _extends({
204
206
  text: labelName,
205
207
  title: labelName,
206
208
  id: id,
@@ -208,12 +210,11 @@ const TagsMultiSelectField = props => {
208
210
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
209
211
  customClass: `${fieldStyle.fieldLabel} ${isMandatory ? fieldStyle.labelMandatory : ''} ${labelClass ? labelClass : ''}`,
210
212
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
211
- htmlFor: htmlId,
212
- ...LabelProps
213
- }), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
213
+ htmlFor: htmlId
214
+ }, LabelProps)), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
214
215
  dataId: `${dataId}_tagCount`,
215
216
  className: style.count
216
- }, `(${selectedValueCount})`) : null), /*#__PURE__*/React.createElement(TagsMultiSelect, {
217
+ }, `(${selectedValueCount})`) : null), /*#__PURE__*/React.createElement(TagsMultiSelect, _extends({
217
218
  addTag: handleAdd,
218
219
  deleteTag: onDelete,
219
220
  handleChange: handleChange,
@@ -243,17 +244,16 @@ const TagsMultiSelectField = props => {
243
244
  borderColor: borderColor,
244
245
  htmlId: htmlId,
245
246
  getTextBoxChildren: getTextBoxChildren,
246
- className: containerClass,
247
- ...TagsMultiSelectProps,
247
+ className: containerClass
248
+ }, TagsMultiSelectProps, {
248
249
  clickableTag: clickableTag
249
- }), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
250
+ })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
250
251
  text: validationMessage,
251
252
  palette: validationPalette,
252
253
  type: errorType,
253
254
  dataId: `${dataId}_ValidationMessage`,
254
- htmlFor: htmlId,
255
- ...ValidationMessageProps
256
- }));
255
+ htmlFor: htmlId
256
+ }, ValidationMessageProps)));
257
257
  };
258
258
 
259
259
  TagsMultiSelectField.propTypes = propTypes;
@@ -1,3 +1,5 @@
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
+
1
3
  /**** Libraries ****/
2
4
  import React, { memo } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -82,18 +84,18 @@ const TextBoxField = props => {
82
84
  ePhiData: ePhiData,
83
85
  dataId: dataId,
84
86
  renderProps: renderLabelProps
85
- }, /*#__PURE__*/React.createElement(Label, {
87
+ }, /*#__PURE__*/React.createElement(Label, _extends({
86
88
  text: labelName,
87
89
  size: fieldSize === 'small' ? 'small' : 'medium',
88
90
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
89
91
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
90
92
  htmlFor: uniqueId,
91
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
92
- ...LabelProps,
93
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
94
+ }, LabelProps, {
93
95
  id: labelName
94
- })), /*#__PURE__*/React.createElement("div", {
96
+ }))), /*#__PURE__*/React.createElement("div", {
95
97
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
96
- }, /*#__PURE__*/React.createElement(TextBoxIcon, {
98
+ }, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
97
99
  htmlId: uniqueId,
98
100
  id: id,
99
101
  type: textBoxType,
@@ -113,26 +115,24 @@ const TextBoxField = props => {
113
115
  isDisabled: isDisabled,
114
116
  needEffect: isReadOnly || isDisabled ? false : true,
115
117
  isClickable: isClickable,
116
- needReadOnlyStyle: needReadOnlyStyle,
117
- ...TextBoxIconProps,
118
+ needReadOnlyStyle: needReadOnlyStyle
119
+ }, TextBoxIconProps, {
118
120
  a11y: {
119
121
  ariaLabelledby: labelName
120
122
  }
121
- }, children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
123
+ }), children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
122
124
  text: validationMessage,
123
125
  palette: validationPalette,
124
126
  type: errorType,
125
127
  dataId: `${dataId}_ValidationMessage`,
126
- htmlFor: uniqueId,
127
- ...ValidationMessageProps1
128
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
128
+ htmlFor: uniqueId
129
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
129
130
  text: validationRuleMessage,
130
131
  palette: validationRulePalette,
131
132
  type: errorType,
132
133
  htmlFor: uniqueId,
133
- dataId: `${dataId}_ValidationRuleMessage`,
134
- ...ValidationMessageProps2
135
- })));
134
+ dataId: `${dataId}_ValidationRuleMessage`
135
+ }, ValidationMessageProps2))));
136
136
  };
137
137
 
138
138
  TextBoxField.propTypes = propTypes;
@@ -1,3 +1,5 @@
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
+
1
3
  /**** Libraries ****/
2
4
  import React, { memo, useRef } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -99,18 +101,17 @@ const TextEditorField = props => {
99
101
  renderProps: {
100
102
  end: renderEnd
101
103
  }
102
- }, /*#__PURE__*/React.createElement(Label, {
104
+ }, /*#__PURE__*/React.createElement(Label, _extends({
103
105
  text: labelName,
104
106
  size: fieldSize === 'small' ? 'small' : 'medium',
105
107
  htmlFor: !isReadOnly && !isDisabled ? id : undefined,
106
108
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
107
109
  onClick: handleLabelClick,
108
110
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
109
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
110
- ...LabelProps
111
- })), /*#__PURE__*/React.createElement("div", {
111
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
112
+ }, LabelProps))), /*#__PURE__*/React.createElement("div", {
112
113
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
113
- }, /*#__PURE__*/React.createElement(TextEditorWrapper, {
114
+ }, /*#__PURE__*/React.createElement(TextEditorWrapper, _extends({
114
115
  needEditor: needEditor,
115
116
  onChange: handleChange,
116
117
  id: id,
@@ -139,15 +140,13 @@ const TextEditorField = props => {
139
140
  shouldEditorUpdateContent: shouldEditorUpdateContent,
140
141
  setInlineAttachmentInProgress: setInlineAttachmentInProgress,
141
142
  handleEditorDropUpload: handleEditorDropUpload,
142
- needInlineAttachment: needInlineAttachment,
143
- ...TextEditorWrapperProps
144
- })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
143
+ needInlineAttachment: needInlineAttachment
144
+ }, TextEditorWrapperProps))), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
145
145
  text: validationMessage,
146
146
  palette: validationPalette,
147
147
  type: errorType,
148
- dataId: `${dataId}_ValidationMessage`,
149
- ...ValidationMessageProps
150
- }));
148
+ dataId: `${dataId}_ValidationMessage`
149
+ }, ValidationMessageProps)));
151
150
  };
152
151
 
153
152
  TextEditorField.propTypes = propTypes;