@zohodesk/dot 1.4.12 → 1.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +13 -0
  3. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  4. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  5. package/coverage/ExternalLink/index.html +1 -1
  6. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  7. package/coverage/ExternalLink/props/index.html +1 -1
  8. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  9. package/coverage/IconButton/IconButton.js.html +1 -1
  10. package/coverage/IconButton/IconButton.module.css.html +2 -5
  11. package/coverage/IconButton/index.html +1 -1
  12. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  13. package/coverage/IconButton/props/index.html +1 -1
  14. package/coverage/IconButton/props/propTypes.js.html +1 -1
  15. package/coverage/Image/Image.js.html +1 -1
  16. package/coverage/Image/Image.module.css.html +1 -1
  17. package/coverage/Image/index.html +1 -1
  18. package/coverage/Image/props/defaultProps.js.html +1 -1
  19. package/coverage/Image/props/index.html +1 -1
  20. package/coverage/Image/props/propTypes.js.html +1 -1
  21. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  22. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  23. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  24. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  27. package/coverage/index.html +1 -1
  28. package/es/ActionButton/ActionButton.module.css +51 -4
  29. package/es/AlphabeticList/AlphabeticList.module.css +0 -2
  30. package/es/AttachmentViewer/AttachmentViewer.module.css +0 -2
  31. package/es/ChannelIcon/ChannelIcon.module.css +9 -4
  32. package/es/Drawer/Drawer.js +4 -5
  33. package/es/ExternalLink/ExternalLink.js +4 -5
  34. package/es/FlipCard/FlipCard.js +14 -12
  35. package/es/FormAction/FormAction.module.css +18 -1
  36. package/es/FreezeLayer/FreezeLayer.js +1 -1
  37. package/es/IconButton/IconButton.js +4 -5
  38. package/es/IconButton/IconButton.module.css +0 -1
  39. package/es/Link/Link.js +8 -10
  40. package/es/Message/Message.js +4 -5
  41. package/es/TagWithIcon/TagWithIcon.module.css +0 -3
  42. package/es/ToastMessage/ToastMessage.js +2 -4
  43. package/es/actions/AutoClose.js +2 -1
  44. package/es/alert/AlertLookup/AlertLookup.js +14 -12
  45. package/es/avatar/AvatarClose/AvatarClose.js +7 -7
  46. package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
  47. package/es/avatar/AvatarIcon/AvatarIcon.js +4 -5
  48. package/es/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
  49. package/es/avatar/AvatarStatus/AvatarStatus.js +7 -8
  50. package/es/avatar/AvatarThread/AvatarThread.js +7 -7
  51. package/es/avatar/AvatarUser/AvatarUser.js +10 -9
  52. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  53. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +36 -24
  54. package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  55. package/es/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  56. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
  57. package/es/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  58. package/es/form/fields/CurrencyField/CurrencyField.js +14 -12
  59. package/es/form/fields/DateField/DateField.js +14 -14
  60. package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -12
  61. package/es/form/fields/PhoneField/PhoneField.js +7 -7
  62. package/es/form/fields/RadioField/RadioField.js +21 -15
  63. package/es/form/fields/SelectField/SelectField.js +14 -14
  64. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
  65. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  66. package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
  67. package/es/form/fields/TextEditorField/TextEditorField.js +11 -10
  68. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
  69. package/es/form/fields/TextareaField/TextareaField.js +16 -13
  70. package/es/form/fields/TextareaField/props/propTypes.js +1 -0
  71. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
  72. package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
  73. package/es/layout/SubtabLayout/SubtabLayout.module.css +0 -2
  74. package/es/list/Comment/Comment.module.css +0 -1
  75. package/es/list/Dot/Dot.module.css +0 -1
  76. package/es/list/ListLayout/ListLayout.js +4 -5
  77. package/es/list/ListLayout/ListLayout.module.css +0 -6
  78. package/es/list/SecondaryText/AccountName.js +12 -12
  79. package/es/list/SecondaryText/ContactName.js +8 -9
  80. package/es/list/SecondaryText/Email.js +8 -8
  81. package/es/list/SecondaryText/PhoneNumber.js +8 -8
  82. package/es/list/SecondaryText/SecondaryText.js +4 -5
  83. package/es/list/SecondaryText/TicketId.js +7 -7
  84. package/es/list/Subject/Subject.js +7 -7
  85. package/es/list/Subject/Subject.module.css +8 -1
  86. package/es/list/Thread/Thread.module.css +0 -1
  87. package/es/list/status/StatusListItem/StatusListItem.js +5 -5
  88. package/es/lookup/Lookup/Lookup.js +7 -7
  89. package/es/lookup/Lookup/Lookup.module.css +4 -1
  90. package/es/lookup/Lookup/props/propTypes.js +3 -2
  91. package/es/lookup/header/Search/Search.js +5 -3
  92. package/es/lookup/header/TicketHeader/TicketHeader.js +88 -73
  93. package/es/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  94. package/es/lookup/header/TicketHeader/props/propTypes.js +2 -1
  95. package/es/v1/ActionButton/ActionButton.js +1 -1
  96. package/es/v1/AttachmentViewer/AttachmentViewer.js +2 -2
  97. package/es/v1/Drawer/Drawer.js +6 -7
  98. package/es/v1/ExternalLink/ExternalLink.js +4 -5
  99. package/es/v1/FlipCard/FlipCard.js +15 -13
  100. package/es/v1/FreezeLayer/FreezeLayer.js +2 -2
  101. package/es/v1/GlobalNotification/GlobalNotification.js +6 -7
  102. package/es/v1/IconButton/IconButton.js +4 -5
  103. package/es/v1/Link/Link.js +8 -10
  104. package/es/v1/Loader/Loader.js +1 -1
  105. package/es/v1/Message/Message.js +4 -5
  106. package/es/v1/ToastMessage/ToastMessage.js +4 -6
  107. package/es/v1/actions/AutoClose.js +2 -1
  108. package/es/v1/alert/AlertLookup/AlertLookup.js +16 -16
  109. package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
  110. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
  111. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +5 -6
  112. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +7 -8
  113. package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
  114. package/es/v1/avatar/AvatarUser/AvatarUser.js +10 -9
  115. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  116. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +39 -27
  117. package/es/v1/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  118. package/es/v1/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  119. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  120. package/es/v1/form/fields/CurrencyField/CurrencyField.js +15 -13
  121. package/es/v1/form/fields/DateField/DateField.js +15 -15
  122. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +14 -13
  123. package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
  124. package/es/v1/form/fields/RadioField/RadioField.js +21 -16
  125. package/es/v1/form/fields/SelectField/SelectField.js +15 -15
  126. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +14 -11
  127. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  128. package/es/v1/form/fields/TextBoxField/TextBoxField.js +15 -15
  129. package/es/v1/form/fields/TextEditorField/TextEditorField.js +11 -10
  130. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
  131. package/es/v1/form/fields/TextareaField/TextareaField.js +17 -14
  132. package/es/v1/form/fields/TextareaField/props/propTypes.js +1 -0
  133. package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -6
  134. package/es/v1/list/ListLayout/ListLayout.js +4 -5
  135. package/es/v1/list/SecondaryText/AccountName.js +12 -12
  136. package/es/v1/list/SecondaryText/ContactName.js +8 -9
  137. package/es/v1/list/SecondaryText/Email.js +8 -8
  138. package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
  139. package/es/v1/list/SecondaryText/SecondaryText.js +4 -5
  140. package/es/v1/list/SecondaryText/TicketId.js +7 -7
  141. package/es/v1/list/Subject/Subject.js +7 -7
  142. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  143. package/es/v1/list/status/StatusListItem/StatusListItem.js +6 -6
  144. package/es/v1/lookup/Lookup/Lookup.js +7 -7
  145. package/es/v1/lookup/Lookup/props/propTypes.js +3 -2
  146. package/es/v1/lookup/header/Search/Search.js +5 -3
  147. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +30 -12
  148. package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  149. package/es/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
  150. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  151. package/es/v1/notification/DesktopNotification/DesktopNotification.js +7 -8
  152. package/es/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
  153. package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
  154. package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
  155. package/es/version2/GlobalNotification/GlobalNotification.module.css +0 -4
  156. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
  157. package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
  158. package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
  159. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
  160. package/lib/ActionButton/ActionButton.module.css +51 -4
  161. package/lib/AlphabeticList/AlphabeticList.module.css +0 -2
  162. package/lib/AttachmentViewer/AttachmentViewer.module.css +0 -2
  163. package/lib/ChannelIcon/ChannelIcon.module.css +9 -4
  164. package/lib/FormAction/FormAction.module.css +18 -1
  165. package/lib/FreezeLayer/FreezeLayer.js +1 -1
  166. package/lib/IconButton/IconButton.module.css +0 -1
  167. package/lib/TagWithIcon/TagWithIcon.module.css +0 -3
  168. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
  169. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +8 -0
  170. package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  171. package/lib/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  172. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
  173. package/lib/form/fields/RadioField/RadioField.js +3 -0
  174. package/lib/form/fields/TextareaField/TextareaField.js +2 -0
  175. package/lib/form/fields/TextareaField/props/propTypes.js +1 -0
  176. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
  177. package/lib/layout/SubtabLayout/SubtabLayout.module.css +0 -2
  178. package/lib/list/Comment/Comment.module.css +0 -1
  179. package/lib/list/Dot/Dot.module.css +0 -1
  180. package/lib/list/ListLayout/ListLayout.module.css +0 -6
  181. package/lib/list/Subject/Subject.module.css +8 -1
  182. package/lib/list/Thread/Thread.module.css +0 -1
  183. package/lib/lookup/Lookup/Lookup.js +3 -2
  184. package/lib/lookup/Lookup/Lookup.module.css +4 -1
  185. package/lib/lookup/Lookup/props/propTypes.js +3 -2
  186. package/lib/lookup/header/TicketHeader/TicketHeader.js +93 -106
  187. package/lib/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  188. package/lib/lookup/header/TicketHeader/props/propTypes.js +2 -1
  189. package/lib/v1/ActionButton/ActionButton.js +1 -1
  190. package/lib/v1/AttachmentViewer/AttachmentViewer.js +2 -2
  191. package/lib/v1/Drawer/Drawer.js +2 -2
  192. package/lib/v1/FlipCard/FlipCard.js +1 -1
  193. package/lib/v1/FreezeLayer/FreezeLayer.js +2 -2
  194. package/lib/v1/Loader/Loader.js +1 -1
  195. package/lib/v1/ToastMessage/ToastMessage.js +2 -2
  196. package/lib/v1/alert/AlertLookup/AlertLookup.js +1 -1
  197. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +1 -1
  198. package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +11 -3
  199. package/lib/v1/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  200. package/lib/v1/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  201. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +1 -1
  202. package/lib/v1/form/fields/DateField/DateField.js +1 -1
  203. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +1 -1
  204. package/lib/v1/form/fields/RadioField/RadioField.js +3 -0
  205. package/lib/v1/form/fields/SelectField/SelectField.js +1 -1
  206. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -1
  207. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +1 -1
  208. package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -1
  209. package/lib/v1/form/fields/TextareaField/props/propTypes.js +1 -0
  210. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  211. package/lib/v1/list/status/StatusListItem/StatusListItem.js +1 -1
  212. package/lib/v1/lookup/Lookup/Lookup.js +3 -2
  213. package/lib/v1/lookup/Lookup/props/propTypes.js +3 -2
  214. package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +37 -12
  215. package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  216. package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
  217. package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  218. package/lib/v1/notification/DesktopNotification/DesktopNotification.js +1 -1
  219. package/lib/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
  220. package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
  221. package/lib/version2/GlobalNotification/GlobalNotification.module.css +0 -4
  222. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
  223. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
  224. package/package.json +11 -11
  225. package/result.json +1 -1
  226. package/es/v1/Provider/Config.js +0 -20
  227. package/lib/v1/Provider/Config.js +0 -29
  228. /package/es/{FreezeLayer → Hooks}/useFreezeLayer.js +0 -0
  229. /package/lib/{FreezeLayer → Hooks}/useFreezeLayer.js +0 -0
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  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';
@@ -522,6 +520,10 @@ export class ToggleDropDown extends Component {
522
520
  getFooter,
523
521
  customProps,
524
522
  needMultiLineText,
523
+ isAbsolutePositioningNeeded,
524
+ positionsOffset,
525
+ targetOffset,
526
+ isRestrictScroll,
525
527
  customClass
526
528
  } = this.props;
527
529
  let {
@@ -546,21 +548,22 @@ export class ToggleDropDown extends Component {
546
548
  let listIndex = -1;
547
549
  const ariaTitleId = this.getAriaId(); // const allyOptionsArr = this.getOptionsArray();
548
550
 
549
- return /*#__PURE__*/React.createElement("div", _extends({
551
+ return /*#__PURE__*/React.createElement("div", {
550
552
  className: style.wrapper,
551
553
  onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.showTogglePopup : undefined,
552
554
  onMouseLeave: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.hideTogglePopup : undefined,
553
- "data-selector-id": dataSelectorId
554
- }, ToggleDropDownProps), /*#__PURE__*/React.createElement(Container, {
555
+ "data-selector-id": dataSelectorId,
556
+ ...ToggleDropDownProps
557
+ }, /*#__PURE__*/React.createElement(Container, {
555
558
  alignBox: "row",
556
559
  onClick: !showOnHover && !isDisabled && !isReadOnly && isEditable && this.handleTogglePopup,
557
560
  eleRef: getTargetRef,
558
561
  align: "vertical",
559
562
  isCover: false,
560
563
  dataId: dataId
561
- }, children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component, _extends({}, componentProps, {
564
+ }, children ? isToggleStateNeeded ? /*#__PURE__*/React.createElement(Component, { ...componentProps,
562
565
  isActive: isPopupOpen
563
- })) : children : /*#__PURE__*/React.createElement(RippleEffect, {
566
+ }) : children : /*#__PURE__*/React.createElement(RippleEffect, {
564
567
  hoverType: hoverType,
565
568
  isActive: isPopupOpen,
566
569
  isNeedEffect: isEditable && isNeedEffect
@@ -598,7 +601,7 @@ export class ToggleDropDown extends Component {
598
601
  let {
599
602
  tabletMode
600
603
  } = _ref4;
601
- return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
604
+ return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
602
605
  boxPosition: position,
603
606
  isActive: isPopupReady,
604
607
  onClick: removeClose,
@@ -624,18 +627,22 @@ export class ToggleDropDown extends Component {
624
627
  palette: palette,
625
628
  isResponsivePadding: true,
626
629
  needFocusScope: true,
630
+ isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
631
+ positionsOffset: positionsOffset,
632
+ targetOffset: targetOffset,
633
+ isRestrictScroll: isRestrictScroll,
627
634
  customProps: {
628
635
  focusScopeProps: {
629
636
  loadNextOptions: this.handleGetNextOptions,
630
637
  searchValue: searchValue,
631
638
  isFetchingOptions: isFetchingOptions
632
639
  }
633
- }
634
- }, DropBoxProps, {
640
+ },
641
+ ...DropBoxProps,
635
642
  onClose: this.handleTogglePopup
636
- }), /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
643
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
637
644
  className: style.search
638
- }, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
645
+ }, /*#__PURE__*/React.createElement(TextBoxIcon, {
639
646
  placeHolder: placeHolderText,
640
647
  onChange: this.handleChange,
641
648
  value: searchValue,
@@ -656,8 +663,9 @@ export class ToggleDropDown extends Component {
656
663
  ariaAutocomplete: 'list',
657
664
  ariaHaspopup: true,
658
665
  ariaExpanded: true
659
- }
660
- }, TextBoxIconProps))) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
666
+ },
667
+ ...TextBoxIconProps
668
+ })) : null, title && options.length != 0 && /*#__PURE__*/React.createElement(Box, {
661
669
  className: style.title
662
670
  }, /*#__PURE__*/React.createElement(DropDownHeading, {
663
671
  text: title,
@@ -708,7 +716,7 @@ export class ToggleDropDown extends Component {
708
716
  isDisabled = false
709
717
  } = item;
710
718
  listIndex += 1;
711
- return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
719
+ return iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
712
720
  key: listIndex,
713
721
  dataId: item[keyName],
714
722
  value: item[keyName],
@@ -734,8 +742,9 @@ export class ToggleDropDown extends Component {
734
742
  role: isSearch ? 'option' : 'menuitem',
735
743
  ariaSelected: selectedId === item[idName],
736
744
  ariaLabel: item[keyName]
737
- }
738
- }, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
745
+ },
746
+ ...ListItemWithIconProps
747
+ }) : /*#__PURE__*/React.createElement(ListItem, {
739
748
  key: listIndex,
740
749
  dataId: item[keyName],
741
750
  value: item[keyName],
@@ -758,8 +767,9 @@ export class ToggleDropDown extends Component {
758
767
  role: isSearch ? 'option' : 'menuitem',
759
768
  ariaSelected: selectedId === item[idName],
760
769
  ariaLabel: item[keyName]
761
- }
762
- }, ListItemProps));
770
+ },
771
+ ...ListItemProps
772
+ });
763
773
  }));
764
774
  }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
765
775
  isCover: false,
@@ -783,7 +793,7 @@ export class ToggleDropDown extends Component {
783
793
  key: i
784
794
  }, needDivider ? /*#__PURE__*/React.createElement("div", {
785
795
  className: style.seperatedLine
786
- }) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
796
+ }) : iconName ? /*#__PURE__*/React.createElement(ListItemWithIcon, {
787
797
  dataId: item[keyName],
788
798
  value: item[keyName],
789
799
  id: item[idName],
@@ -809,8 +819,9 @@ export class ToggleDropDown extends Component {
809
819
  role: isSearch ? 'option' : 'menuitem',
810
820
  ariaSelected: selectedId === item[idName],
811
821
  ariaLabel: item[keyName]
812
- }
813
- }, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
822
+ },
823
+ ...ListItemWithIconProps
824
+ }) : /*#__PURE__*/React.createElement(ListItem, {
814
825
  key: listIndex,
815
826
  dataId: item[keyName],
816
827
  value: item[keyName],
@@ -833,8 +844,9 @@ export class ToggleDropDown extends Component {
833
844
  role: isSearch ? 'option' : 'menuitem',
834
845
  ariaSelected: selectedId === item[idName],
835
846
  ariaLabel: item[keyName]
836
- }
837
- }, ListItemProps)));
847
+ },
848
+ ...ListItemProps
849
+ }));
838
850
  }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
839
851
  isCover: false,
840
852
  align: "both"
@@ -23,5 +23,7 @@ export const defaultProps = {
23
23
  preventPopupClose: false,
24
24
  dataSelectorId: 'toggleDropdown',
25
25
  needMultiLineText: false,
26
+ isAbsolutePositioningNeeded: true,
27
+ isRestrictScroll: false,
26
28
  customClass: {}
27
29
  };
@@ -74,6 +74,10 @@ export const propTypes = {
74
74
  customListBox: PropTypes.string
75
75
  }),
76
76
  onSelectLabel: PropTypes.func,
77
+ isAbsolutePositioningNeeded: PropTypes.bool,
78
+ isRestrictScroll: PropTypes.bool,
79
+ positionsOffset: PropTypes.object,
80
+ targetOffset: PropTypes.object,
77
81
  from: PropTypes.string,
78
82
  top: PropTypes.number
79
83
  };
@@ -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,26 +60,28 @@ 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 {
76
75
  text,
77
76
  value,
78
77
  disabled = false,
78
+ tooltip,
79
79
  infoTooltip
80
80
  } = option;
81
81
  return /*#__PURE__*/React.createElement("span", {
82
82
  key: index,
83
83
  className: `${style.radio}`
84
- }, /*#__PURE__*/React.createElement(Radio, _extends({
84
+ }, /*#__PURE__*/React.createElement(Radio, {
85
85
  id: index,
86
86
  value: value,
87
87
  name: id,
@@ -90,29 +90,35 @@ export default class RadioField extends PureComponent {
90
90
  labelSize: labelSize,
91
91
  active: isActive,
92
92
  disabled: disabled || isDisabled,
93
+ disabledTitle: tooltip,
94
+ title: tooltip,
93
95
  onChange: this.handleChange,
94
96
  size: size,
95
97
  checked: selectedValue == value,
96
98
  dataId: dataId,
97
99
  isReadOnly: isReadOnly,
98
- variant: variant
99
- }, RadioProps), !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, _extends({
100
+ variant: variant,
101
+ ...RadioProps
102
+ }, !!infoTooltip ? /*#__PURE__*/React.createElement(Icon, {
100
103
  name: "ZD-GN-info",
101
104
  size: "16",
102
105
  title: infoTooltip,
103
- iconClass: style.infoIcon
104
- }, InfoIconProps)) : null));
105
- })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
106
+ iconClass: style.infoIcon,
107
+ ...InfoIconProps
108
+ }) : null));
109
+ })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
106
110
  text: validationMessage,
107
111
  palette: validationPalette,
108
112
  type: errorType,
109
- dataId: `${dataId}_ValidationMessage`
110
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
113
+ dataId: `${dataId}_ValidationMessage`,
114
+ ...ValidationMessageProps1
115
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
111
116
  text: validationRuleMessage,
112
117
  palette: validationRulePalette,
113
118
  type: errorType,
114
- dataId: `${dataId}_ValidationRuleMessage`
115
- }, ValidationMessageProps2)));
119
+ dataId: `${dataId}_ValidationRuleMessage`,
120
+ ...ValidationMessageProps2
121
+ }));
116
122
  }
117
123
 
118
124
  }