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