@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, { Component } from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes } from './props/propTypes';
@@ -89,16 +87,17 @@ export default class FlipCard extends Component {
89
87
  }, !noNeedFlip ? /*#__PURE__*/React.createElement(Container, {
90
88
  align: "both",
91
89
  className: `${style.front} ${frontClass ? frontClass : ''}`
92
- }, /*#__PURE__*/React.createElement(CheckBox, _extends({
90
+ }, /*#__PURE__*/React.createElement(CheckBox, {
93
91
  isFilled: isFilledCheckbox,
94
92
  checked: isChecked,
95
93
  onChange: this.onChange,
96
94
  id: `checkbox_${id}`,
97
- dataId: `listViewCheckBox_${id}`
98
- }, CheckBoxProps))) : null, /*#__PURE__*/React.createElement(Container, {
95
+ dataId: `listViewCheckBox_${id}`,
96
+ ...CheckBoxProps
97
+ })) : null, /*#__PURE__*/React.createElement(Container, {
99
98
  align: "both",
100
99
  className: style.back
101
- }, channel && action ? /*#__PURE__*/React.createElement(ChannelIcon, _extends({
100
+ }, channel && action ? /*#__PURE__*/React.createElement(ChannelIcon, {
102
101
  name: channel,
103
102
  action: action,
104
103
  size: size,
@@ -111,8 +110,9 @@ export default class FlipCard extends Component {
111
110
  customTextClass: customTextClass,
112
111
  iconColor: iconColor,
113
112
  title: channelTitle,
114
- iconTitle: channelTitle
115
- }, ChannelIconProps)) : icon ? /*#__PURE__*/React.createElement(AvatarIcon, _extends({
113
+ iconTitle: channelTitle,
114
+ ...ChannelIconProps
115
+ }) : icon ? /*#__PURE__*/React.createElement(AvatarIcon, {
116
116
  name: icon,
117
117
  iconSize: iconSize,
118
118
  size: size,
@@ -120,8 +120,9 @@ export default class FlipCard extends Component {
120
120
  dataId: icon,
121
121
  className: className,
122
122
  iconColor: iconColor,
123
- title: needTitle ? name : ''
124
- }, AvatarIconProps)) : /*#__PURE__*/React.createElement(AvatarUser, _extends({
123
+ title: needTitle ? name : '',
124
+ ...AvatarIconProps
125
+ }) : /*#__PURE__*/React.createElement(AvatarUser, {
125
126
  name: name,
126
127
  initial: initial,
127
128
  size: size,
@@ -132,8 +133,9 @@ export default class FlipCard extends Component {
132
133
  needTitle: needTitle,
133
134
  palette: palette,
134
135
  textPalette: textPalette,
135
- customTextClass: customTextClass
136
- }, AvatarUserProps)))));
136
+ customTextClass: customTextClass,
137
+ ...AvatarUserProps
138
+ }))));
137
139
  }
138
140
 
139
141
  }
@@ -2,11 +2,13 @@
2
2
  --footerBg: var(--zdt_formAction_bg);
3
3
  --footerBorder: var(--zdt_formAction_border);
4
4
  }
5
+
5
6
  .wrapperDiv {
6
7
  position: relative;
7
8
  z-index: 1;
8
9
  composes: varClass;
9
10
  }
11
+
10
12
  .footerParent {
11
13
  position: relative;
12
14
  /* css:theme-validation:ignore */
@@ -14,14 +16,17 @@
14
16
  background-color: var(--footerBg);
15
17
  border-top: solid 1px var(--footerBorder);
16
18
  }
19
+
17
20
  .largeFooter {
18
21
  padding-top: var(--zd_size24) ;
19
22
  padding-bottom: var(--zd_size24) ;
20
23
  }
24
+
21
25
  .mediumFooter {
22
26
  padding-top: var(--zd_size20) ;
23
27
  padding-bottom: var(--zd_size20) ;
24
28
  }
29
+
25
30
  .smallFooter {
26
31
  padding-top: var(--zd_size10) ;
27
32
  padding-bottom: var(--zd_size10) ;
@@ -34,27 +39,35 @@
34
39
  [dir=rtl] .largePadding {
35
40
  padding-right: var(--zd_size60) ;
36
41
  }
42
+
37
43
  [dir=ltr] .mediumPadding {
38
44
  padding-left: var(--zd_size50) ;
39
45
  }
46
+
40
47
  [dir=rtl] .mediumPadding {
41
48
  padding-right: var(--zd_size50) ;
42
49
  }
50
+
43
51
  [dir=ltr] .xmediumPadding {
44
52
  padding-left: var(--zd_size30) ;
45
53
  }
54
+
46
55
  [dir=rtl] .xmediumPadding {
47
56
  padding-right: var(--zd_size30) ;
48
57
  }
58
+
49
59
  [dir=ltr] .smallPadding {
50
60
  padding-left: var(--zd_size25) ;
51
61
  }
62
+
52
63
  [dir=rtl] .smallPadding {
53
64
  padding-right: var(--zd_size25) ;
54
65
  }
66
+
55
67
  [dir=ltr] .xsmallPadding {
56
68
  padding-left: var(--zd_size20) ;
57
69
  }
70
+
58
71
  [dir=rtl] .xsmallPadding {
59
72
  padding-right: var(--zd_size20) ;
60
73
  }
@@ -62,15 +75,19 @@
62
75
  .marginRight {
63
76
  composes: dinblk from '~@zohodesk/components/lib/common/common.module.css';
64
77
  }
78
+
65
79
  [dir=ltr] .largeFooter .marginRight, [dir=ltr] .mediumFooter .marginRight {
66
80
  margin-right: var(--zd_size15) ;
67
81
  }
82
+
68
83
  [dir=rtl] .largeFooter .marginRight, [dir=rtl] .mediumFooter .marginRight {
69
84
  margin-left: var(--zd_size15) ;
70
85
  }
86
+
71
87
  [dir=ltr] .smallFooter .marginRight {
72
88
  margin-right: var(--zd_size12) ;
73
89
  }
90
+
74
91
  [dir=rtl] .smallFooter .marginRight {
75
92
  margin-left: var(--zd_size12) ;
76
93
  }
@@ -81,4 +98,4 @@
81
98
 
82
99
  [dir=rtl] .marginRight:last-child {
83
100
  margin-left: 0 ;
84
- }
101
+ }
@@ -6,7 +6,7 @@ import { mergeStyle } from '@zohodesk/utils';
6
6
  import VelocityAnimationGroup from '@zohodesk/components/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
7
7
  import { useZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
8
8
  import cssJSLogic from './css/cssJSLogic';
9
- import useFreezeLayer from './useFreezeLayer';
9
+ import useFreezeLayer from '../Hooks/useFreezeLayer';
10
10
  import style from './css/FreezeLayer.module.css';
11
11
  export default function FreezeLayer(props) {
12
12
  let {
@@ -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';
@@ -107,7 +105,7 @@ export default class IconButton extends React.Component {
107
105
  hoverType: hoverType,
108
106
  isDisabled: isDisabled,
109
107
  isNeedEffect: isNeedEffect
110
- }, /*#__PURE__*/React.createElement(Container, _extends({
108
+ }, /*#__PURE__*/React.createElement(Container, {
111
109
  "aria-label": ariaLabel,
112
110
  "aria-haspopup": ariaHaspopup,
113
111
  "aria-expanded": ariaExpanded,
@@ -131,8 +129,9 @@ export default class IconButton extends React.Component {
131
129
  onKeyDown: this.handleToggle,
132
130
  onFocus: this.triggerMouseOver,
133
131
  onBlur: this.onBlur,
134
- disabled: isDisabled
135
- }, customProps), iconName ? /*#__PURE__*/React.createElement(Icon, {
132
+ disabled: isDisabled,
133
+ ...customProps
134
+ }, iconName ? /*#__PURE__*/React.createElement(Icon, {
136
135
  isBold: isBold,
137
136
  size: iconSize,
138
137
  name: iconName,
@@ -6,7 +6,6 @@
6
6
  width: var(--zd_size28) ;
7
7
  composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
8
8
  composes: varClass;
9
- /* css:theme-validation:ignore */
10
9
  color: var(--iconColor);
11
10
  cursor: pointer;
12
11
  }
package/es/Link/Link.js CHANGED
@@ -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';
@@ -80,20 +78,20 @@ export default class Link extends React.Component {
80
78
  return res;
81
79
  }, {}); //urlOutput = this.addHttp(urlOutput);
82
80
 
83
- return /*#__PURE__*/React.createElement("a", _extends({
81
+ return /*#__PURE__*/React.createElement("a", {
84
82
  href: isLink && urlOutput ? urlOutput : 'javascript:void(0);',
85
83
  target: target,
86
84
  "data-title": title,
87
- className: `${style.container} ${className ? className : ''}`
88
- }, option, {
85
+ className: `${style.container} ${className ? className : ''}`,
86
+ ...option,
89
87
  rel: rel,
90
88
  "data-id": dataId,
91
- "data-test-id": dataId
92
- }, others, {
93
- onClick: this.onCallBack.bind(this, urlOutput, href)
94
- }, customProps, {
89
+ "data-test-id": dataId,
90
+ ...others,
91
+ onClick: this.onCallBack.bind(this, urlOutput, href),
92
+ ...customProps,
95
93
  "aria-label": ariaLabel
96
- }), children);
94
+ }, children);
97
95
  }
98
96
 
99
97
  }
@@ -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, MessageUI_propTypes, MessageNew_propTypes } from './props/propTypes';
@@ -43,7 +41,8 @@ export default class Message extends React.Component {
43
41
  }
44
42
 
45
43
  render() {
46
- return /*#__PURE__*/React.createElement(MessageUI, this.props);
44
+ return /*#__PURE__*/React.createElement(MessageUI, { ...this.props
45
+ });
47
46
  }
48
47
 
49
48
  }
@@ -111,8 +110,8 @@ export function MessageUI(props) {
111
110
  }
112
111
  MessageUI.propTypes = MessageUI_propTypes;
113
112
  export function MessageNew(props) {
114
- return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
113
+ return /*#__PURE__*/React.createElement(AutoClose, { ...props,
115
114
  Element: MessageUI
116
- }));
115
+ });
117
116
  }
118
117
  MessageNew.propTypes = MessageNew_propTypes;
@@ -8,15 +8,12 @@
8
8
 
9
9
  .wrapper {
10
10
  composes: varClass;
11
- /* css:theme-validation:ignore */
12
- /* css:theme-validation:ignore */
13
11
  color: var(--tag_text_color);
14
12
  background-color: var(--tag_bg_color);
15
13
  }
16
14
 
17
15
  .small,
18
16
  .large {
19
- /* css:theme-validation:ignore */
20
17
  max-width: 100% ;
21
18
  height: var(--zd_size18) ;
22
19
  }
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React, { useState } from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes } from './props/propTypes'; //components
@@ -191,9 +189,9 @@ function ToastMessageUI(props) {
191
189
  }
192
190
 
193
191
  export default function ToastMessage(props) {
194
- return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
192
+ return /*#__PURE__*/React.createElement(AutoClose, { ...props,
195
193
  Element: ToastMessageUI
196
- }));
194
+ });
197
195
  }
198
196
  ToastMessage.propTypes = propTypes;
199
197
  ToastMessage.defaultProps = defaultProps; // if (__DOCS__) {
@@ -37,7 +37,8 @@ export default function AutoClose(props) {
37
37
  isClose,
38
38
  onClose
39
39
  });
40
- return /*#__PURE__*/React.createElement(Element, newProps);
40
+ return /*#__PURE__*/React.createElement(Element, { ...newProps
41
+ });
41
42
  }
42
43
  AutoClose.propTypes = propTypes;
43
44
  AutoClose.defaultProps = defaultProps;
@@ -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, { Component } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -51,7 +49,7 @@ export default class AlertLookup extends Component {
51
49
  PrimaryButtonProps = {},
52
50
  SecondaryButtonProps = {}
53
51
  } = customProps;
54
- return /*#__PURE__*/React.createElement(Lookup, _extends({
52
+ return /*#__PURE__*/React.createElement(Lookup, {
55
53
  needFocusScope: true,
56
54
  onClose: onEsc == 'close' ? onClose : onCancelClick,
57
55
  isActive: isActive,
@@ -59,8 +57,9 @@ export default class AlertLookup extends Component {
59
57
  dataId: dataId,
60
58
  forwardRef: forwardRef,
61
59
  onClick: onLookupClick,
62
- customClass: customClass
63
- }, LookupProps), /*#__PURE__*/React.createElement(AlertHeader, _extends({
60
+ customClass: customClass,
61
+ ...LookupProps
62
+ }, /*#__PURE__*/React.createElement(AlertHeader, {
64
63
  title: title,
65
64
  palette: palette,
66
65
  iconType: type,
@@ -69,8 +68,9 @@ export default class AlertLookup extends Component {
69
68
  breakChildren: wrapHeader,
70
69
  iconName: iconName,
71
70
  iconClass: iconClass,
72
- iconSize: iconSize
73
- }, AlertHeaderProps), headerChildren ? headerChildren() : null), /*#__PURE__*/React.createElement(Section, {
71
+ iconSize: iconSize,
72
+ ...AlertHeaderProps
73
+ }, headerChildren ? headerChildren() : null), /*#__PURE__*/React.createElement(Section, {
74
74
  alignBox: "row",
75
75
  className: style.section
76
76
  }, /*#__PURE__*/React.createElement("div", {
@@ -84,17 +84,19 @@ export default class AlertLookup extends Component {
84
84
  }, confirmationMessage))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/React.createElement(FormAction, {
85
85
  size: "small",
86
86
  paddingLeftSize: "xsmall"
87
- }, /*#__PURE__*/React.createElement(Button, _extends({
87
+ }, /*#__PURE__*/React.createElement(Button, {
88
88
  text: submitText,
89
89
  dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : `${dataId}_confirmButton`,
90
90
  onClick: onSubmitClick,
91
- palette: palette === 'primary' ? 'primaryFilled' : 'dangerFilled'
92
- }, PrimaryButtonProps)), cancelText && /*#__PURE__*/React.createElement(Button, _extends({
91
+ palette: palette === 'primary' ? 'primaryFilled' : 'dangerFilled',
92
+ ...PrimaryButtonProps
93
+ }), cancelText && /*#__PURE__*/React.createElement(Button, {
93
94
  dataId: dataId === 'alertPopup' ? 'alertCancelButton' : `${dataId}_cancelButton`,
94
95
  text: cancelText,
95
96
  onClick: onCancelClick,
96
- palette: "secondary"
97
- }, SecondaryButtonProps))) : null));
97
+ palette: "secondary",
98
+ ...SecondaryButtonProps
99
+ })) : null));
98
100
  }
99
101
 
100
102
  }
@@ -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';
@@ -26,15 +24,17 @@ export default class AvatarClose extends React.Component {
26
24
  AvatarCloseProps = {},
27
25
  AvatarProps = {}
28
26
  } = customProps;
29
- return /*#__PURE__*/React.createElement("div", _extends({
27
+ return /*#__PURE__*/React.createElement("div", {
30
28
  className: style.container,
31
- "data-selector-id": dataSelectorId
32
- }, AvatarCloseProps), /*#__PURE__*/React.createElement(Avatar, _extends({
29
+ "data-selector-id": dataSelectorId,
30
+ ...AvatarCloseProps
31
+ }, /*#__PURE__*/React.createElement(Avatar, {
33
32
  src: src,
34
33
  name: name,
35
34
  title: title,
36
- size: size
37
- }, AvatarProps)), isClose && /*#__PURE__*/React.createElement("span", {
35
+ size: size,
36
+ ...AvatarProps
37
+ }), isClose && /*#__PURE__*/React.createElement("span", {
38
38
  className: style.pop,
39
39
  onClick: onClick
40
40
  }, /*#__PURE__*/React.createElement("span", {
@@ -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';
@@ -29,21 +27,23 @@ export default class AvatarCollision extends React.Component {
29
27
  AvatarCollisionProps = {},
30
28
  AvatarProps = {}
31
29
  } = customProps;
32
- return /*#__PURE__*/React.createElement("div", _extends({
30
+ return /*#__PURE__*/React.createElement("div", {
33
31
  className: `${style.container} ${isLeft ? style.off : isIdle ? style.idle : style.on}`,
34
32
  onClick: onClick,
35
33
  "data-id": "collsionPop",
36
34
  "data-test-id": "collsionPop",
37
35
  "data-title": title,
38
- "data-selector-id": dataSelectorId
39
- }, AvatarCollisionProps), /*#__PURE__*/React.createElement(Avatar, _extends({
36
+ "data-selector-id": dataSelectorId,
37
+ ...AvatarCollisionProps
38
+ }, /*#__PURE__*/React.createElement(Avatar, {
40
39
  src: src,
41
40
  name: name,
42
41
  size: size,
43
42
  palette: "default",
44
43
  needTitle: false,
45
- initial: initial
46
- }, AvatarProps)), needCreateChat && !isLeft && /*#__PURE__*/React.createElement("span", {
44
+ initial: initial,
45
+ ...AvatarProps
46
+ }), needCreateChat && !isLeft && /*#__PURE__*/React.createElement("span", {
47
47
  className: style.pop,
48
48
  "data-title": title
49
49
  }, /*#__PURE__*/React.createElement("span", {
@@ -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';
@@ -30,7 +28,7 @@ export default class AvatarIcon extends React.Component {
30
28
  AvatarIconProps = {}
31
29
  } = customProps;
32
30
  let border = borderOnHover || onClick;
33
- return /*#__PURE__*/React.createElement(Container, _extends({
31
+ return /*#__PURE__*/React.createElement(Container, {
34
32
  className: `${style.container} ${borderOnActive ? style.borderOnActive : border ? style.borderOnHover : ''} ${AvatarSize(size)} ${style[palette]} ${className}`,
35
33
  onClick: onClick,
36
34
  dataId: dataId,
@@ -38,8 +36,9 @@ export default class AvatarIcon extends React.Component {
38
36
  isInline: true,
39
37
  align: "both",
40
38
  isCover: false,
41
- dataSelectorId: dataSelectorId
42
- }, AvatarIconProps), /*#__PURE__*/React.createElement(Icon, {
39
+ dataSelectorId: dataSelectorId,
40
+ ...AvatarIconProps
41
+ }, /*#__PURE__*/React.createElement(Icon, {
43
42
  name: name,
44
43
  size: iconSize,
45
44
  iconClass: ` ${iconClass} ${style.iconColor} ${iconColor ? ` ${style[`icon_${iconColor}`]}` : ''} `,
@@ -6,16 +6,11 @@
6
6
  .container {
7
7
  vertical-align: middle;
8
8
  composes: varClass;
9
- /* css:theme-validation:ignore */
10
9
  border-width: 1px;
11
10
  border-style: solid;
12
11
  border-radius: 50%;
13
12
  border-color: var(--border_color)
14
13
  }
15
- .borderOnHover:hover,
16
- .borderOnActive {
17
- /* css:theme-validation:ignore */
18
- }
19
14
  .borderOnHover:hover, .borderOnActive {
20
15
  border-color: var(--border_hoverColor)
21
16
  }
@@ -40,7 +35,6 @@
40
35
  --border_hoverColor: var(--zdt_avatarIcon_danger_hover_border);
41
36
  }
42
37
  .iconColor {
43
- /* css:theme-validation:ignore */
44
38
  color: var(--icon_color);
45
39
  }
46
40
  .icon_danger {
@@ -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';
@@ -36,12 +34,12 @@ export default class AvatarStatus extends React.Component {
36
34
  AvatarStatusProps = {},
37
35
  AvatarProps = {}
38
36
  } = customProps;
39
- return /*#__PURE__*/React.createElement("div", _extends({
40
- className: `${style.container} ${className} `
41
- }, AvatarStatusProps, {
37
+ return /*#__PURE__*/React.createElement("div", {
38
+ className: `${style.container} ${className} `,
39
+ ...AvatarStatusProps,
42
40
  "aria-label": `${title}, ${name}, ${statusTitle}`,
43
41
  "data-selector-id": dataSelectorId
44
- }), /*#__PURE__*/React.createElement(Avatar, _extends({
42
+ }, /*#__PURE__*/React.createElement(Avatar, {
45
43
  src: src,
46
44
  name: name,
47
45
  palette: palette,
@@ -55,8 +53,9 @@ export default class AvatarStatus extends React.Component {
55
53
  shape: shape,
56
54
  needTitle: needTitle,
57
55
  needDefaultBorder: needDefaultBorder,
58
- needBorder: needBorder
59
- }, AvatarProps)), /*#__PURE__*/React.createElement("span", {
56
+ needBorder: needBorder,
57
+ ...AvatarProps
58
+ }), /*#__PURE__*/React.createElement("span", {
60
59
  "data-title": statusTitle,
61
60
  className: `${style.state} ${style[state]} ${style[size]} ${style[shape]}`
62
61
  }));
@@ -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';
@@ -39,10 +37,11 @@ export default class AvatarThread extends React.Component {
39
37
  AvatarProps = {}
40
38
  } = customProps;
41
39
  let hoverEffect = showOnHover ? style.hover : '';
42
- return /*#__PURE__*/React.createElement("div", _extends({
40
+ return /*#__PURE__*/React.createElement("div", {
43
41
  className: `${style.container} ${onClick ? style.pointer : ''} ${hoverEffect}`,
44
- "data-selector-id": dataSelectorId
45
- }, AvatarThreadProps), /*#__PURE__*/React.createElement(Avatar, _extends({
42
+ "data-selector-id": dataSelectorId,
43
+ ...AvatarThreadProps
44
+ }, /*#__PURE__*/React.createElement(Avatar, {
46
45
  initial: initial,
47
46
  src: src,
48
47
  name: name,
@@ -53,8 +52,9 @@ export default class AvatarThread extends React.Component {
53
52
  palette: palette,
54
53
  textPalette: textPalette,
55
54
  customClass: customTextClass,
56
- needTitle: needTitle
57
- }, AvatarProps)), (iconName || getCustomThread) && /*#__PURE__*/React.createElement("span", {
55
+ needTitle: needTitle,
56
+ ...AvatarProps
57
+ }), (iconName || getCustomThread) && /*#__PURE__*/React.createElement("span", {
58
58
  className: `${style.thread} ${onIconClick ? style.pointer : style.defaultCursor} ${needBackground ? style.threadBg : ''} ${style[`thread_${size}_pos`]} ${needBorder ? style[`border_${borderPalette}`] : ''}`,
59
59
  "data-title": iconTitle,
60
60
  "data-id": iconTitle === 'Remove Follower' && 'removeFollower',
@@ -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 from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -50,20 +48,22 @@ export default class AvatarUser extends React.Component {
50
48
  portalTitle = 'End User',
51
49
  lockTitle = 'Locked'
52
50
  } = i18nKeys;
53
- return /*#__PURE__*/React.createElement("div", _extends({
51
+ return /*#__PURE__*/React.createElement("div", {
54
52
  className: `${style.container} ${style[size]}`,
55
53
  "data-id": dataId || name || iconName,
56
54
  "data-test-id": dataId || name || iconName,
57
- "data-selector-id": dataSelectorId
58
- }, AvatarUserProps), iconName ? /*#__PURE__*/React.createElement(AvatarIcon, _extends({
55
+ "data-selector-id": dataSelectorId,
56
+ ...AvatarUserProps
57
+ }, iconName ? /*#__PURE__*/React.createElement(AvatarIcon, {
59
58
  name: iconName,
60
59
  iconSize: iconSize,
61
60
  size: size,
62
61
  iconClass: iconClass,
63
62
  dataId: iconName,
64
63
  iconColor: iconColor,
65
- title: title
66
- }, AvatarIconProps)) : /*#__PURE__*/React.createElement(Avatar, _extends({
64
+ title: title,
65
+ ...AvatarIconProps
66
+ }) : /*#__PURE__*/React.createElement(Avatar, {
67
67
  src: src,
68
68
  name: name,
69
69
  initial: initial,
@@ -74,8 +74,9 @@ export default class AvatarUser extends React.Component {
74
74
  palette: palette,
75
75
  textPalette: textPalette,
76
76
  customClass: customTextClass,
77
- alternateSrc: alternateSrc
78
- }, AvatarProps)), isPaid ? /*#__PURE__*/React.createElement("span", {
77
+ alternateSrc: alternateSrc,
78
+ ...AvatarProps
79
+ }), isPaid ? /*#__PURE__*/React.createElement("span", {
79
80
  "data-title": paidTitle,
80
81
  className: style.paid,
81
82
  "data-id": "paidUser",