@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
  import React, { Component, Fragment } from 'react';
2
4
  import { defaultProps } from './props/defaultProps';
3
5
  import { propTypes } from './props/propTypes';
@@ -548,22 +550,21 @@ export class ToggleDropDown extends Component {
548
550
  let listIndex = -1;
549
551
  const ariaTitleId = this.getAriaId(); // const allyOptionsArr = this.getOptionsArray();
550
552
 
551
- return /*#__PURE__*/React.createElement("div", {
553
+ return /*#__PURE__*/React.createElement("div", _extends({
552
554
  className: style.wrapper,
553
555
  onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.showTogglePopup : undefined,
554
556
  onMouseLeave: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.hideTogglePopup : undefined,
555
- "data-selector-id": dataSelectorId,
556
- ...ToggleDropDownProps
557
- }, /*#__PURE__*/React.createElement(Container, {
557
+ "data-selector-id": dataSelectorId
558
+ }, ToggleDropDownProps), /*#__PURE__*/React.createElement(Container, {
558
559
  alignBox: "row",
559
560
  onClick: !showOnHover && !isDisabled && !isReadOnly && isEditable && this.handleTogglePopup,
560
561
  eleRef: getTargetRef,
561
562
  align: "vertical",
562
563
  isCover: false,
563
564
  dataId: dataId
564
- }, children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component, { ...componentProps,
565
+ }, children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component, _extends({}, componentProps, {
565
566
  isActive: isPopupOpen
566
- }) : children : /*#__PURE__*/React.createElement(RippleEffect, {
567
+ })) : children : /*#__PURE__*/React.createElement(RippleEffect, {
567
568
  hoverType: hoverType,
568
569
  isActive: isPopupOpen,
569
570
  isNeedEffect: isEditable && isNeedEffect
@@ -601,7 +602,7 @@ export class ToggleDropDown extends Component {
601
602
  let {
602
603
  tabletMode
603
604
  } = _ref4;
604
- return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
605
+ return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
605
606
  boxPosition: position,
606
607
  isActive: isPopupReady,
607
608
  onClick: removeClose,
@@ -637,12 +638,12 @@ export class ToggleDropDown extends Component {
637
638
  searchValue: searchValue,
638
639
  isFetchingOptions: isFetchingOptions
639
640
  }
640
- },
641
- ...DropBoxProps,
641
+ }
642
+ }, DropBoxProps, {
642
643
  onClose: this.handleTogglePopup
643
- }, /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
644
+ }), /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
644
645
  className: style.search
645
- }, /*#__PURE__*/React.createElement(TextBoxIcon, {
646
+ }, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
646
647
  placeHolder: placeHolderText,
647
648
  onChange: this.handleChange,
648
649
  value: searchValue,
@@ -663,9 +664,8 @@ export class ToggleDropDown extends Component {
663
664
  ariaAutocomplete: 'list',
664
665
  ariaHaspopup: true,
665
666
  ariaExpanded: true
666
- },
667
- ...TextBoxIconProps
668
- })) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
667
+ }
668
+ }, TextBoxIconProps))) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
669
669
  className: style.title
670
670
  }, /*#__PURE__*/React.createElement(DropDownHeading, {
671
671
  text: title,
@@ -716,7 +716,7 @@ export class ToggleDropDown extends Component {
716
716
  isDisabled = false
717
717
  } = item;
718
718
  listIndex += 1;
719
- return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
719
+ return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
720
720
  key: listIndex,
721
721
  dataId: item[keyName],
722
722
  value: item[keyName],
@@ -742,9 +742,8 @@ export class ToggleDropDown extends Component {
742
742
  role: isSearch ? 'option' : 'menuitem',
743
743
  ariaSelected: selectedId === item[idName],
744
744
  ariaLabel: item[keyName]
745
- },
746
- ...ListItemWithIconProps
747
- }) : /*#__PURE__*/React.createElement(ListItem, {
745
+ }
746
+ }, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
748
747
  key: listIndex,
749
748
  dataId: item[keyName],
750
749
  value: item[keyName],
@@ -767,9 +766,8 @@ export class ToggleDropDown extends Component {
767
766
  role: isSearch ? 'option' : 'menuitem',
768
767
  ariaSelected: selectedId === item[idName],
769
768
  ariaLabel: item[keyName]
770
- },
771
- ...ListItemProps
772
- });
769
+ }
770
+ }, ListItemProps));
773
771
  }));
774
772
  }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
775
773
  isCover: false,
@@ -793,7 +791,7 @@ export class ToggleDropDown extends Component {
793
791
  key: i
794
792
  }, needDivider ? /*#__PURE__*/React.createElement("div", {
795
793
  className: style.seperatedLine
796
- }) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
794
+ }) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
797
795
  dataId: item[keyName],
798
796
  value: item[keyName],
799
797
  id: item[idName],
@@ -819,9 +817,8 @@ export class ToggleDropDown extends Component {
819
817
  role: isSearch ? 'option' : 'menuitem',
820
818
  ariaSelected: selectedId === item[idName],
821
819
  ariaLabel: item[keyName]
822
- },
823
- ...ListItemWithIconProps
824
- }) : /*#__PURE__*/React.createElement(ListItem, {
820
+ }
821
+ }, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
825
822
  key: listIndex,
826
823
  dataId: item[keyName],
827
824
  value: item[keyName],
@@ -844,9 +841,8 @@ export class ToggleDropDown extends Component {
844
841
  role: isSearch ? 'option' : 'menuitem',
845
842
  ariaSelected: selectedId === item[idName],
846
843
  ariaLabel: item[keyName]
847
- },
848
- ...ListItemProps
849
- }));
844
+ }
845
+ }, ListItemProps)));
850
846
  }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
851
847
  isCover: false,
852
848
  align: "both"
@@ -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, { PureComponent } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -84,7 +86,7 @@ export default class CheckBoxField extends PureComponent {
84
86
  lockedInfoText: lockedInfoText,
85
87
  infoText: infoText,
86
88
  renderProps: renderLabelProps
87
- }, /*#__PURE__*/React.createElement(Label, {
89
+ }, /*#__PURE__*/React.createElement(Label, _extends({
88
90
  text: labelName,
89
91
  id: id,
90
92
  size: fieldSize === 'small' ? 'small' : 'medium',
@@ -94,9 +96,8 @@ export default class CheckBoxField extends PureComponent {
94
96
  title: labelName,
95
97
  onClick: !removeEvent ? this.handleLabelClick : null,
96
98
  variant: isDirectCol ? 'default' : 'primary',
97
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
98
- ...LabelProps
99
- }));
99
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
100
+ }, LabelProps)));
100
101
  return /*#__PURE__*/React.createElement("div", {
101
102
  className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
102
103
  "data-title": isDisabled ? title : null,
@@ -109,30 +110,27 @@ export default class CheckBoxField extends PureComponent {
109
110
  align: "top"
110
111
  }, /*#__PURE__*/React.createElement(Box, {
111
112
  className: isDirectCol ? style.checkbox : style.checkboxRow
112
- }, /*#__PURE__*/React.createElement(CheckBox, {
113
+ }, /*#__PURE__*/React.createElement(CheckBox, _extends({
113
114
  id: id,
114
115
  onChange: this.handleChange,
115
116
  disabled: removeEvent,
116
117
  checked: checked,
117
118
  getRef: this.handleGetRef,
118
119
  dataId: dataId,
119
- getContainerRef: getContainerRef,
120
- ...CheckBoxProps
121
- })), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
120
+ getContainerRef: getContainerRef
121
+ }, CheckBoxProps))), !isDirectCol && /*#__PURE__*/React.createElement(Box, {
122
122
  flexible: true
123
- }, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
123
+ }, labelElement)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
124
124
  text: validationMessage,
125
125
  palette: validationPalette,
126
126
  type: errorType,
127
- dataId: `${dataId}_ValidationMessage`,
128
- ...ValidationMessageProps1
129
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
127
+ dataId: `${dataId}_ValidationMessage`
128
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
130
129
  text: validationRuleMessage,
131
130
  palette: validationRulePalette,
132
131
  type: errorType,
133
- dataId: `${dataId}_ValidationRuleMessage`,
134
- ...ValidationMessageProps2
135
- })));
132
+ dataId: `${dataId}_ValidationRuleMessage`
133
+ }, ValidationMessageProps2))));
136
134
  }
137
135
 
138
136
  }
@@ -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, { PureComponent } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -126,17 +128,16 @@ export default class CurrencyField extends PureComponent {
126
128
  isLocked: isLocked,
127
129
  lockedInfoText: lockedInfoText,
128
130
  renderProps: renderLabelProps
129
- }, /*#__PURE__*/React.createElement(Label, {
131
+ }, /*#__PURE__*/React.createElement(Label, _extends({
130
132
  text: labelName,
131
133
  size: fieldSize === 'small' ? 'small' : 'medium',
132
134
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
133
135
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
134
136
  htmlFor: uniqueId,
135
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
136
- ...LabelProps
137
- })), /*#__PURE__*/React.createElement("div", {
137
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
138
+ }, LabelProps))), /*#__PURE__*/React.createElement("div", {
138
139
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
139
- }, /*#__PURE__*/React.createElement(TextBox, {
140
+ }, /*#__PURE__*/React.createElement(TextBox, _extends({
140
141
  htmlId: uniqueId,
141
142
  id: id,
142
143
  type: textBoxType,
@@ -156,23 +157,20 @@ export default class CurrencyField extends PureComponent {
156
157
  isDisabled: isDisabled,
157
158
  needEffect: isReadOnly || isDisabled ? false : true,
158
159
  isClickable: isClickable,
159
- needReadOnlyStyle: needReadOnlyStyle,
160
- ...TextBoxProps
161
- }), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
160
+ needReadOnlyStyle: needReadOnlyStyle
161
+ }, TextBoxProps)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
162
162
  text: validationMessage,
163
163
  palette: validationPalette,
164
164
  type: errorType,
165
165
  dataId: `${dataId}_ValidationMessage`,
166
- htmlFor: uniqueId,
167
- ...ValidationMessageProps1
168
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
166
+ htmlFor: uniqueId
167
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
169
168
  text: validationRuleMessage,
170
169
  palette: validationRulePalette,
171
170
  type: errorType,
172
171
  htmlFor: uniqueId,
173
- dataId: `${dataId}_ValidationRuleMessage`,
174
- ...ValidationMessageProps2
175
- })));
172
+ dataId: `${dataId}_ValidationRuleMessage`
173
+ }, ValidationMessageProps2))));
176
174
  }
177
175
 
178
176
  }
@@ -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, { PureComponent } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -131,21 +133,21 @@ export default class DateField extends PureComponent {
131
133
  isLocked: isLocked,
132
134
  lockedInfoText: lockedInfoText,
133
135
  renderProps: renderLabelProps
134
- }, /*#__PURE__*/React.createElement(Label, {
136
+ }, /*#__PURE__*/React.createElement(Label, _extends({
135
137
  text: labelName,
136
138
  htmlFor: getAriaId,
137
139
  size: fieldSize === 'small' ? 'small' : 'medium',
138
140
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
139
141
  onClick: isDisabled || isReadOnly ? null : this.handleLabelClick,
140
142
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
141
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
142
- ...LabelProps,
143
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
144
+ }, LabelProps, {
143
145
  id: labelName
144
- })), /*#__PURE__*/React.createElement("div", {
146
+ }))), /*#__PURE__*/React.createElement("div", {
145
147
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
146
148
  }, isLocked && lockedValueText ? /*#__PURE__*/React.createElement("div", {
147
149
  className: style.lockText
148
- }, lockedValueText) : /*#__PURE__*/React.createElement(DateWidget, {
150
+ }, lockedValueText) : /*#__PURE__*/React.createElement(DateWidget, _extends({
149
151
  textBoxSize: fieldSize === 'medium' ? textBoxSize : 'xsmall',
150
152
  textBoxVariant: textBoxVariant,
151
153
  isDateTime: isDateTime,
@@ -163,26 +165,24 @@ export default class DateField extends PureComponent {
163
165
  isEditable: true,
164
166
  htmlId: getAriaId,
165
167
  i18nKeys: i18nKeys,
166
- iconOnHover: iconOnHover,
167
- ...DateWidgetProps,
168
+ iconOnHover: iconOnHover
169
+ }, DateWidgetProps, {
168
170
  a11y: {
169
171
  ariaLabelledby: labelName
170
172
  }
171
- }), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
173
+ })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
172
174
  text: validationMessage,
173
175
  palette: validationPalette,
174
176
  type: errorType,
175
177
  htmlFor: getAriaId,
176
- dataId: `${dataId}_ValidationMessage`,
177
- ...ValidationMessageProps1
178
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
178
+ dataId: `${dataId}_ValidationMessage`
179
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
179
180
  text: validationRuleMessage,
180
181
  palette: validationRulePalette,
181
182
  type: errorType,
182
183
  htmlFor: getAriaId,
183
- dataId: `${dataId}_ValidationRuleMessage`,
184
- ...ValidationMessageProps2
185
- })));
184
+ dataId: `${dataId}_ValidationRuleMessage`
185
+ }, ValidationMessageProps2))));
186
186
  }
187
187
 
188
188
  }
@@ -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, { PureComponent } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -143,7 +145,7 @@ export default class MultiSelectField extends PureComponent {
143
145
  isLocked: isLocked,
144
146
  lockedInfoText: lockedInfoText,
145
147
  renderProps: renderLabelProps
146
- }, /*#__PURE__*/React.createElement(Label, {
148
+ }, /*#__PURE__*/React.createElement(Label, _extends({
147
149
  text: labelName,
148
150
  id: id,
149
151
  size: fieldSize === 'small' ? 'small' : 'medium',
@@ -151,9 +153,8 @@ export default class MultiSelectField extends PureComponent {
151
153
  ,
152
154
  customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
153
155
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
154
- htmlFor: uniqueId,
155
- ...LabelProps
156
- })), /*#__PURE__*/React.createElement(MultiSelect, {
156
+ htmlFor: uniqueId
157
+ }, LabelProps))), /*#__PURE__*/React.createElement(MultiSelect, _extends({
157
158
  options: options,
158
159
  onChange: this.handleChange,
159
160
  selectedOptions: selectedOptions,
@@ -184,24 +185,22 @@ export default class MultiSelectField extends PureComponent {
184
185
  i18nKeys: i18nKeys,
185
186
  htmlId: uniqueId,
186
187
  customChildrenClass: customChildrenClass,
187
- onFocus: onFocus,
188
- ...MultiSelectProps,
188
+ onFocus: onFocus
189
+ }, MultiSelectProps, {
189
190
  ariaLabelledby: uniqueId
190
- }, children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
191
+ }), children ? children : null), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
191
192
  text: validationMessage,
192
193
  palette: validationPalette,
193
194
  type: errorType,
194
195
  dataId: `${dataId}_ValidationMessage`,
195
- htmlFor: uniqueId,
196
- ...ValidationMessageProps1
197
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
196
+ htmlFor: uniqueId
197
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
198
198
  text: validationRuleMessage,
199
199
  palette: validationRulePalette,
200
200
  type: errorType,
201
201
  dataId: `${dataId}_ValidationRuleMessage`,
202
- htmlFor: uniqueId,
203
- ...ValidationMessageProps2
204
- }));
202
+ htmlFor: uniqueId
203
+ }, ValidationMessageProps2)));
205
204
  }
206
205
 
207
206
  }
@@ -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, { PureComponent } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -131,7 +133,7 @@ export default class PhoneField extends PureComponent {
131
133
  dataSelectorId: dataSelectorId
132
134
  }, /*#__PURE__*/React.createElement(Box, {
133
135
  flexible: true
134
- }, /*#__PURE__*/React.createElement(TextBoxField, {
136
+ }, /*#__PURE__*/React.createElement(TextBoxField, _extends({
135
137
  labelName: labelName,
136
138
  id: id,
137
139
  palette: isMandatory ? 'mandatory' : 'default',
@@ -158,9 +160,8 @@ export default class PhoneField extends PureComponent {
158
160
  labelPalette: labelPalette,
159
161
  labelCustomClass: labelCustomClass,
160
162
  errorType: errorType,
161
- ePhiData: ePhiData,
162
- ...TextBoxFieldProps
163
- })), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, {
163
+ ePhiData: ePhiData
164
+ }, TextBoxFieldProps))), /*#__PURE__*/React.createElement(Box, null, isTelephony && value ? /*#__PURE__*/React.createElement(Link, _extends({
164
165
  className: style.phoneIcon,
165
166
  callfrom: "phone",
166
167
  pbxname: providerName,
@@ -171,9 +172,8 @@ export default class PhoneField extends PureComponent {
171
172
  callto: 'RequestPhoneNumber',
172
173
  href: true,
173
174
  onClick: onCall,
174
- type: type,
175
- ...LinkProps
176
- }, /*#__PURE__*/React.createElement(Icon, {
175
+ type: type
176
+ }, LinkProps), /*#__PURE__*/React.createElement(Icon, {
177
177
  name: "ZD-GN-phone",
178
178
  size: "14"
179
179
  })) : 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, { PureComponent } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -60,15 +62,14 @@ export default class RadioField extends PureComponent {
60
62
  className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
61
63
  "data-title": isDisabled ? title : null,
62
64
  "data-selector-id": dataSelectorId
63
- }, labelName && /*#__PURE__*/React.createElement(Label, {
65
+ }, labelName && /*#__PURE__*/React.createElement(Label, _extends({
64
66
  text: labelName,
65
67
  size: "medium",
66
68
  id: id,
67
69
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : 'default',
68
70
  customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
69
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
70
- ...LabelProps
71
- }), /*#__PURE__*/React.createElement("div", {
71
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
72
+ }, LabelProps)), /*#__PURE__*/React.createElement("div", {
72
73
  className: `${style.fieldContainer} ${labelName ? style.fieldMargin_medium : ''} ${style.radioContainer}`
73
74
  }, options.map((option, index) => {
74
75
  let {
@@ -81,7 +82,7 @@ export default class RadioField extends PureComponent {
81
82
  return /*#__PURE__*/React.createElement("span", {
82
83
  key: index,
83
84
  className: `${style.radio}`
84
- }, /*#__PURE__*/React.createElement(Radio, {
85
+ }, /*#__PURE__*/React.createElement(Radio, _extends({
85
86
  id: index,
86
87
  value: value,
87
88
  name: id,
@@ -97,28 +98,24 @@ export default class RadioField extends PureComponent {
97
98
  checked: selectedValue == value,
98
99
  dataId: dataId,
99
100
  isReadOnly: isReadOnly,
100
- variant: variant,
101
- ...RadioProps
102
- }, !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, {
101
+ variant: variant
102
+ }, RadioProps), !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, _extends({
103
103
  name: "ZD-GN-info",
104
104
  size: "16",
105
105
  title: infoTooltip,
106
- iconClass: style.infoIcon,
107
- ...InfoIconProps
108
- }) : null));
109
- })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
106
+ iconClass: style.infoIcon
107
+ }, InfoIconProps)) : null));
108
+ })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
110
109
  text: validationMessage,
111
110
  palette: validationPalette,
112
111
  type: errorType,
113
- dataId: `${dataId}_ValidationMessage`,
114
- ...ValidationMessageProps1
115
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
112
+ dataId: `${dataId}_ValidationMessage`
113
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
116
114
  text: validationRuleMessage,
117
115
  palette: validationRulePalette,
118
116
  type: errorType,
119
- dataId: `${dataId}_ValidationRuleMessage`,
120
- ...ValidationMessageProps2
121
- }));
117
+ dataId: `${dataId}_ValidationRuleMessage`
118
+ }, ValidationMessageProps2)));
122
119
  }
123
120
 
124
121
  }
@@ -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, { PureComponent } from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -113,18 +115,18 @@ export default class SelectField extends PureComponent {
113
115
  isLocked: isLocked,
114
116
  lockedInfoText: lockedInfoText,
115
117
  renderProps: renderLabelProps
116
- }, /*#__PURE__*/React.createElement(Label, {
118
+ }, /*#__PURE__*/React.createElement(Label, _extends({
117
119
  text: labelName,
118
120
  size: fieldSize === 'small' ? 'small' : 'medium',
119
121
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
120
122
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
121
123
  htmlFor: uniqueId,
122
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
123
- ...LabelProps,
124
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
125
+ }, LabelProps, {
124
126
  id: uniqueId
125
- })), /*#__PURE__*/React.createElement("div", {
127
+ }))), /*#__PURE__*/React.createElement("div", {
126
128
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
127
- }, /*#__PURE__*/React.createElement(Select, {
129
+ }, /*#__PURE__*/React.createElement(Select, _extends({
128
130
  options: options,
129
131
  selectedValue: selectedValue,
130
132
  onChange: this.handleChange,
@@ -153,24 +155,22 @@ export default class SelectField extends PureComponent {
153
155
  needLocalSearch: needLocalSearch,
154
156
  isDefaultSelectValue: isDefaultSelectValue,
155
157
  placeHolder: placeHolder,
156
- iconOnHover: iconOnHover,
157
- ...SelectProps,
158
+ iconOnHover: iconOnHover
159
+ }, SelectProps, {
158
160
  ariaLabelledby: uniqueId
159
- }, children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
161
+ }), children ? children : null)), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
160
162
  text: validationMessage,
161
163
  palette: validationPalette,
162
164
  type: errorType,
163
165
  htmlFor: uniqueId,
164
- dataId: `${dataId}_ValidationMessage`,
165
- ...ValidationMessageProps1
166
- }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
166
+ dataId: `${dataId}_ValidationMessage`
167
+ }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
167
168
  text: validationRuleMessage,
168
169
  palette: validationRulePalette,
169
170
  type: errorType,
170
171
  htmlFor: uniqueId,
171
- dataId: `${dataId}_ValidationRuleMessage`,
172
- ...ValidationMessageProps2
173
- }));
172
+ dataId: `${dataId}_ValidationRuleMessage`
173
+ }, ValidationMessageProps2)));
174
174
  }
175
175
 
176
176
  }
@@ -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 => {