@zohodesk/dot 1.0.0-temp-184.2 → 1.0.0-temp-185

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 (170) hide show
  1. package/.cli/PropUnificationExcludeFilesArray.js +344 -344
  2. package/.cli/PropValidationExcludeFilesArray.js +8 -8
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +8 -0
  5. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  6. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  7. package/coverage/ExternalLink/index.html +1 -1
  8. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  9. package/coverage/ExternalLink/props/index.html +1 -1
  10. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  11. package/coverage/IconButton/IconButton.js.html +1 -1
  12. package/coverage/IconButton/IconButton.module.css.html +1 -1
  13. package/coverage/IconButton/index.html +1 -1
  14. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  15. package/coverage/IconButton/props/index.html +1 -1
  16. package/coverage/IconButton/props/propTypes.js.html +1 -1
  17. package/coverage/Image/Image.js.html +1 -1
  18. package/coverage/Image/Image.module.css.html +1 -1
  19. package/coverage/Image/index.html +1 -1
  20. package/coverage/Image/props/defaultProps.js.html +1 -1
  21. package/coverage/Image/props/index.html +1 -1
  22. package/coverage/Image/props/propTypes.js.html +1 -1
  23. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  24. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  27. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  28. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  29. package/coverage/coverage-final.json +16 -16
  30. package/coverage/coverage-summary.json +16 -16
  31. package/coverage/index.html +1 -1
  32. package/css_error.log +1 -1
  33. package/es/AttachmentViewer/AttachmentViewer.module.css +1 -1
  34. package/es/Drawer/Drawer.js +4 -5
  35. package/es/Drawer/Drawer.module.css +2 -2
  36. package/es/ExternalLink/ExternalLink.js +4 -5
  37. package/es/FlipCard/FlipCard.js +14 -12
  38. package/es/IconButton/IconButton.js +4 -5
  39. package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -316
  40. package/es/Link/Link.js +8 -10
  41. package/es/Message/Message.js +4 -5
  42. package/es/Message/Message.module.css +1 -1
  43. package/es/PlusIcon/PlusIcon.module.css +1 -1
  44. package/es/ToastMessage/ToastMessage.js +2 -4
  45. package/es/ToastMessage/ToastMessage.module.css +1 -1
  46. package/es/actions/AutoClose.js +2 -1
  47. package/es/alert/AlertLookup/AlertLookup.js +14 -12
  48. package/es/avatar/AvatarClose/AvatarClose.js +7 -7
  49. package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
  50. package/es/avatar/AvatarIcon/AvatarIcon.js +4 -5
  51. package/es/avatar/AvatarStatus/AvatarStatus.js +7 -8
  52. package/es/avatar/AvatarThread/AvatarThread.js +7 -7
  53. package/es/avatar/AvatarUser/AvatarUser.js +10 -9
  54. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  55. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
  56. package/es/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  57. package/es/form/fields/CurrencyField/CurrencyField.js +14 -12
  58. package/es/form/fields/DateField/DateField.js +14 -14
  59. package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -12
  60. package/es/form/fields/PhoneField/PhoneField.js +7 -7
  61. package/es/form/fields/RadioField/RadioField.js +18 -15
  62. package/es/form/fields/SelectField/SelectField.js +14 -14
  63. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
  64. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  65. package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
  66. package/es/form/fields/TextEditor/TextEditor.module.css +49 -63
  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 +14 -13
  70. package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
  71. package/es/layout/SubtabLayout/SubtabLayout.module.css +1 -1
  72. package/es/list/DotNew/DotNew.module.css +2 -1
  73. package/es/list/ListLayout/ListLayout.js +4 -5
  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/TagNew/TagNew.module.css +1 -1
  82. package/es/list/status/StatusDropdown/StatusDropdown.js +30 -115
  83. package/es/list/status/StatusDropdown/StatusDropdown.module.css +1 -10
  84. package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
  85. package/es/list/status/StatusDropdown/props/propTypes.js +1 -1
  86. package/es/list/status/StatusListItem/StatusListItem.js +5 -5
  87. package/es/lookup/Lookup/Lookup.js +4 -5
  88. package/es/lookup/Section/LookupSection.module.css +1 -1
  89. package/es/lookup/header/Search/Search.js +5 -3
  90. package/es/v1/Drawer/Drawer.js +4 -5
  91. package/es/v1/ExternalLink/ExternalLink.js +4 -5
  92. package/es/v1/FlipCard/FlipCard.js +14 -12
  93. package/es/v1/GlobalNotification/GlobalNotification.js +6 -7
  94. package/es/v1/IconButton/IconButton.js +4 -5
  95. package/es/v1/Link/Link.js +8 -10
  96. package/es/v1/Message/Message.js +4 -5
  97. package/es/v1/ToastMessage/ToastMessage.js +2 -4
  98. package/es/v1/actions/AutoClose.js +2 -1
  99. package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
  100. package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
  101. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
  102. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +4 -5
  103. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +7 -8
  104. package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
  105. package/es/v1/avatar/AvatarUser/AvatarUser.js +10 -9
  106. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  107. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
  108. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  109. package/es/v1/form/fields/CurrencyField/CurrencyField.js +14 -12
  110. package/es/v1/form/fields/DateField/DateField.js +14 -14
  111. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +13 -12
  112. package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
  113. package/es/v1/form/fields/RadioField/RadioField.js +18 -16
  114. package/es/v1/form/fields/SelectField/SelectField.js +14 -14
  115. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
  116. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  117. package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
  118. package/es/v1/form/fields/TextEditorField/TextEditorField.js +11 -10
  119. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
  120. package/es/v1/form/fields/TextareaField/TextareaField.js +14 -13
  121. package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -6
  122. package/es/v1/list/ListLayout/ListLayout.js +4 -5
  123. package/es/v1/list/SecondaryText/AccountName.js +12 -12
  124. package/es/v1/list/SecondaryText/ContactName.js +8 -9
  125. package/es/v1/list/SecondaryText/Email.js +8 -8
  126. package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
  127. package/es/v1/list/SecondaryText/SecondaryText.js +4 -5
  128. package/es/v1/list/SecondaryText/TicketId.js +7 -7
  129. package/es/v1/list/Subject/Subject.js +7 -7
  130. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +32 -106
  131. package/es/v1/list/status/StatusDropdown/props/defaultProps.js +2 -1
  132. package/es/v1/list/status/StatusDropdown/props/propTypes.js +1 -1
  133. package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
  134. package/es/v1/lookup/Lookup/Lookup.js +4 -5
  135. package/es/v1/lookup/header/Search/Search.js +5 -3
  136. package/es/v1/notification/DesktopNotification/DesktopNotification.js +6 -7
  137. package/es/v1/svg/PlusIcon.js +1 -1
  138. package/es/v1/svg/SnippetIcon.js +2 -2
  139. package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
  140. package/es/version2/GlobalNotification/GlobalNotification.module.css +2 -2
  141. package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
  142. package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
  143. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -3
  144. package/lib/AttachmentViewer/AttachmentViewer.module.css +1 -1
  145. package/lib/Drawer/Drawer.module.css +2 -2
  146. package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -316
  147. package/lib/Message/Message.module.css +1 -1
  148. package/lib/PlusIcon/PlusIcon.module.css +1 -1
  149. package/lib/ToastMessage/ToastMessage.module.css +1 -1
  150. package/lib/form/fields/TextEditor/TextEditor.module.css +49 -63
  151. package/lib/layout/SubtabLayout/SubtabLayout.module.css +1 -1
  152. package/lib/list/DotNew/DotNew.module.css +2 -1
  153. package/lib/list/TagNew/TagNew.module.css +1 -1
  154. package/lib/list/status/StatusDropdown/StatusDropdown.js +77 -161
  155. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +1 -10
  156. package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
  157. package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
  158. package/lib/lookup/Section/LookupSection.module.css +1 -1
  159. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +31 -103
  160. package/lib/v1/list/status/StatusDropdown/props/defaultProps.js +2 -1
  161. package/lib/v1/list/status/StatusDropdown/props/propTypes.js +1 -1
  162. package/lib/v1/svg/PlusIcon.js +1 -1
  163. package/lib/v1/svg/SnippetIcon.js +2 -2
  164. package/lib/version2/GlobalNotification/GlobalNotification.module.css +2 -2
  165. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -3
  166. package/package.json +11 -7
  167. package/propValidationArg.json +11 -11
  168. package/result.json +1 -1
  169. /package/es/{common → deprecated}/dot_boxShadow.module.css +0 -0
  170. /package/lib/{common → deprecated}/dot_boxShadow.module.css +0 -0
@@ -1,6 +1,6 @@
1
1
  .container {
2
2
  transition: width var(--zd_transition3);
3
- box-shadow: var(--zd_bs_drawer_shadow);
3
+ box-shadow: var(--zd_bs_contrast_outline, 0 6px 12px var(--zdt_drawer_default_box_shadow));
4
4
  background-color: var(--zdt_drawer_default_bg);
5
5
  }
6
6
 
@@ -29,7 +29,7 @@
29
29
 
30
30
  .secondDrawer {
31
31
  background-color: var(--zdt_drawer_default_bg);
32
- box-shadow: var(--zd_bs_drawer_shadow);
32
+ box-shadow: var(--zd_bs_contrast_outline, 0 6px 12px var(--zdt_drawer_default_box_shadow));
33
33
  }
34
34
 
35
35
  .secondMobDrawer {
@@ -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';
@@ -31,7 +29,7 @@ export default class ExternalLink extends React.Component {
31
29
  customProps
32
30
  } = this.props;
33
31
  const urlOutput = href && typeof href !== 'boolean' ? this.addHttp(String(href)) : 'javascript:void(0);';
34
- return /*#__PURE__*/React.createElement("a", _extends({
32
+ return /*#__PURE__*/React.createElement("a", {
35
33
  href: urlOutput,
36
34
  target: target,
37
35
  className: `${style.link} ${className ? className : ''}`,
@@ -39,8 +37,9 @@ export default class ExternalLink extends React.Component {
39
37
  rel: rel,
40
38
  "data-id": dataId,
41
39
  "data-test-id": dataId,
42
- onClick: onClick
43
- }, customProps), children);
40
+ onClick: onClick,
41
+ ...customProps
42
+ }, children);
44
43
  }
45
44
 
46
45
  }
@@ -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
  }
@@ -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,