@zohodesk/dot 1.0.0-temp-131 → 1.0.0-temp-133

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 (153) hide show
  1. package/README.md +20 -0
  2. package/assets/Appearance/dark/mode/dotDarkMode.module.css +289 -289
  3. package/assets/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
  4. package/assets/Appearance/dark/themes/green/greenDarkDotTheme.module.css +9 -9
  5. package/assets/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +9 -9
  6. package/assets/Appearance/dark/themes/red/redDarkDotTheme.module.css +9 -9
  7. package/assets/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +9 -9
  8. package/assets/Appearance/default/mode/dotDefaultMode.module.css +283 -283
  9. package/assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
  10. package/assets/Appearance/default/themes/green/greenDefaultDotTheme.module.css +9 -9
  11. package/assets/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +9 -9
  12. package/assets/Appearance/default/themes/red/redDefaultDotTheme.module.css +9 -9
  13. package/assets/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +9 -9
  14. package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +291 -291
  15. package/assets/Appearance/pureDark/themes/blue/bluePureDarkDotTheme.module.css +9 -9
  16. package/assets/Appearance/pureDark/themes/green/greenPureDarkDotTheme.module.css +9 -9
  17. package/assets/Appearance/pureDark/themes/orange/orangePureDarkDotTheme.module.css +9 -9
  18. package/assets/Appearance/pureDark/themes/red/redPureDarkDotTheme.module.css +9 -9
  19. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkDotTheme.module.css +9 -9
  20. package/es/ActionButton/ActionButton.js +1 -1
  21. package/es/Attachment/Attachment.js +1 -1
  22. package/es/AttachmentViewer/AttachmentViewer.js +1 -1
  23. package/es/ChannelIcon/ChannelIcon.js +1 -1
  24. package/es/Drawer/Drawer.js +1 -1
  25. package/es/FreezeLayer/FreezeLayer.js +61 -114
  26. package/es/FreezeLayer/css/cssJSLogic.js +23 -0
  27. package/es/FreezeLayer/index.js +2 -0
  28. package/es/FreezeLayer/props/defaultProps.js +1 -0
  29. package/es/FreezeLayer/props/propTypes.js +1 -0
  30. package/es/FreezeLayer/useFreezeLayer.js +50 -0
  31. package/es/IconButton/IconButton.js +1 -1
  32. package/es/ImportantNotes/ImportantNotes.js +1 -1
  33. package/es/Message/Message.js +1 -1
  34. package/es/MessageBanner/MessageBanner.js +1 -1
  35. package/es/NewStar/NewStar.js +1 -1
  36. package/es/ToastMessage/ToastMessage.js +1 -1
  37. package/es/Upload/Upload.js +1 -1
  38. package/es/alert/AlertHeader/AlertHeader.js +1 -1
  39. package/es/avatar/AvatarClose/AvatarClose.js +1 -1
  40. package/es/avatar/AvatarCollision/AvatarCollision.js +1 -1
  41. package/es/avatar/AvatarIcon/AvatarIcon.js +1 -1
  42. package/es/avatar/AvatarStatus/AvatarStatus.js +3 -1
  43. package/es/avatar/AvatarStatus/props/defaultProps.js +3 -1
  44. package/es/avatar/AvatarStatus/props/propTypes.js +2 -0
  45. package/es/avatar/AvatarThread/AvatarThread.js +1 -1
  46. package/es/avatar/AvatarUser/AvatarUser.js +1 -1
  47. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -2
  48. package/es/avatar/AvatarWithTeam/props/defaultProps.js +2 -1
  49. package/es/avatar/AvatarWithTeam/props/propTypes.js +1 -0
  50. package/es/deprecated/FreezeLayer/FreezeLayer.js +128 -0
  51. package/es/deprecated/FreezeLayer/props/defaultProps.js +8 -0
  52. package/es/deprecated/FreezeLayer/props/propTypes.js +17 -0
  53. package/es/deprecated/SelectDropdown/SelectDropdown.js +1 -1
  54. package/es/docs/formDocs.js +1 -16
  55. package/es/docs/generalDocs.js +1 -107
  56. package/es/docs/lookupDocs.js +1 -35
  57. package/es/docs/setupDocs.js +1 -15
  58. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +1 -1
  59. package/es/form/fields/FieldContainer/FieldContainer.js +1 -1
  60. package/es/form/fields/PhoneField/PhoneField.js +1 -1
  61. package/es/form/fields/ValidationMessage/ValidationMessage.js +1 -1
  62. package/es/index.js +0 -3
  63. package/es/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
  64. package/es/list/AvatarFlip/AvatarFlip.js +4 -2
  65. package/es/list/AvatarFlip/props/defaultProps.js +2 -1
  66. package/es/list/AvatarFlip/props/propTypes.js +2 -1
  67. package/es/list/BluePrintStatus/BluePrintStatus.js +1 -1
  68. package/es/list/Comment/Comment.js +1 -1
  69. package/es/list/Icons/AddNewIcon.js +1 -1
  70. package/es/list/Icons/CompleteIcon.js +1 -1
  71. package/es/list/Icons/DeleteIcon.js +1 -1
  72. package/es/list/Icons/EditIcon.js +1 -1
  73. package/es/list/Icons/ReadUnreadIcon.js +1 -1
  74. package/es/list/Icons/SmartIcon.js +1 -1
  75. package/es/list/SecondaryText/ContactName.js +1 -1
  76. package/es/list/SentimentStatus/SentimentStatus.js +1 -1
  77. package/es/list/Thread/Thread.js +1 -1
  78. package/es/list/UserTime/UserTime.js +1 -1
  79. package/es/list/status/StatusDropdown/StatusDropdown.js +1 -1
  80. package/es/list/status/StatusListItem/StatusListItem.js +1 -1
  81. package/es/lookup/header/Search/Search.js +1 -1
  82. package/es/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  83. package/es/setup/header/Link/Link.js +1 -1
  84. package/es/setup/header/Search/Search.js +1 -1
  85. package/es/setup/header/Views/Views.js +1 -1
  86. package/es/version2/AlertClose/AlertClose.js +1 -1
  87. package/lib/ActionButton/ActionButton.js +3 -3
  88. package/lib/Attachment/Attachment.js +3 -3
  89. package/lib/AttachmentViewer/AttachmentViewer.js +3 -3
  90. package/lib/ChannelIcon/ChannelIcon.js +3 -3
  91. package/lib/Drawer/Drawer.js +2 -2
  92. package/lib/FreezeLayer/FreezeLayer.js +58 -141
  93. package/lib/FreezeLayer/css/FreezeLayer.module.css +42 -0
  94. package/lib/FreezeLayer/css/cssJSLogic.js +22 -0
  95. package/lib/FreezeLayer/index.js +20 -0
  96. package/lib/FreezeLayer/props/defaultProps.js +1 -0
  97. package/lib/FreezeLayer/props/propTypes.js +1 -0
  98. package/lib/FreezeLayer/useFreezeLayer.js +73 -0
  99. package/lib/IconButton/IconButton.js +2 -2
  100. package/lib/ImportantNotes/ImportantNotes.js +2 -2
  101. package/lib/Message/Message.js +3 -3
  102. package/lib/MessageBanner/MessageBanner.js +2 -2
  103. package/lib/NewStar/NewStar.js +4 -4
  104. package/lib/ToastMessage/ToastMessage.js +5 -5
  105. package/lib/Upload/Upload.js +3 -3
  106. package/lib/alert/AlertHeader/AlertHeader.js +2 -2
  107. package/lib/avatar/AvatarClose/AvatarClose.js +2 -2
  108. package/lib/avatar/AvatarCollision/AvatarCollision.js +2 -2
  109. package/lib/avatar/AvatarIcon/AvatarIcon.js +2 -2
  110. package/lib/avatar/AvatarStatus/AvatarStatus.js +3 -1
  111. package/lib/avatar/AvatarStatus/props/defaultProps.js +3 -1
  112. package/lib/avatar/AvatarStatus/props/propTypes.js +22 -24
  113. package/lib/avatar/AvatarThread/AvatarThread.js +2 -2
  114. package/lib/avatar/AvatarUser/AvatarUser.js +5 -5
  115. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -2
  116. package/lib/avatar/AvatarWithTeam/props/defaultProps.js +2 -1
  117. package/lib/avatar/AvatarWithTeam/props/propTypes.js +1 -0
  118. package/lib/deprecated/FreezeLayer/FreezeLayer.js +161 -0
  119. package/lib/deprecated/FreezeLayer/FreezeLayer.module.css +42 -0
  120. package/lib/deprecated/FreezeLayer/props/defaultProps.js +15 -0
  121. package/lib/deprecated/FreezeLayer/props/propTypes.js +25 -0
  122. package/lib/deprecated/SelectDropdown/SelectDropdown.js +2 -2
  123. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +3 -3
  124. package/lib/form/fields/FieldContainer/FieldContainer.js +3 -3
  125. package/lib/form/fields/PhoneField/PhoneField.js +2 -2
  126. package/lib/form/fields/ValidationMessage/ValidationMessage.js +2 -2
  127. package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +6 -6
  128. package/lib/list/AvatarFlip/AvatarFlip.js +4 -2
  129. package/lib/list/AvatarFlip/props/defaultProps.js +2 -1
  130. package/lib/list/AvatarFlip/props/propTypes.js +2 -1
  131. package/lib/list/BluePrintStatus/BluePrintStatus.js +2 -2
  132. package/lib/list/Comment/Comment.js +2 -2
  133. package/lib/list/Icons/AddNewIcon.js +2 -2
  134. package/lib/list/Icons/CompleteIcon.js +2 -2
  135. package/lib/list/Icons/DeleteIcon.js +2 -2
  136. package/lib/list/Icons/EditIcon.js +2 -2
  137. package/lib/list/Icons/ReadUnreadIcon.js +2 -2
  138. package/lib/list/Icons/SmartIcon.js +2 -2
  139. package/lib/list/SecondaryText/ContactName.js +2 -2
  140. package/lib/list/SentimentStatus/SentimentStatus.js +2 -2
  141. package/lib/list/Thread/Thread.js +2 -2
  142. package/lib/list/UserTime/UserTime.js +8 -8
  143. package/lib/list/status/StatusDropdown/StatusDropdown.js +2 -2
  144. package/lib/list/status/StatusListItem/StatusListItem.js +2 -2
  145. package/lib/lookup/header/Search/Search.js +4 -4
  146. package/lib/lookup/header/ViewDropDown/ViewDropDown.js +2 -2
  147. package/lib/setup/header/Link/Link.js +2 -2
  148. package/lib/setup/header/Search/Search.js +2 -2
  149. package/lib/setup/header/Views/Views.js +3 -3
  150. package/lib/version2/AlertClose/AlertClose.js +2 -2
  151. package/package.json +7 -7
  152. /package/es/FreezeLayer/{FreezeLayer.module.css → css/FreezeLayer.module.css} +0 -0
  153. /package/{lib → es/deprecated}/FreezeLayer/FreezeLayer.module.css +0 -0
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { AddNewIcon_propTypes } from './props/propTypes';
3
- import Icon from '@zohodesk/icons/lib/Icon';
3
+ import { Icon } from '@zohodesk/icons';
4
4
  import style from './Icons.module.css';
5
5
  export default class AddNewIcon extends React.Component {
6
6
  render() {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { CompleteIcon_propTypes } from './props/propTypes';
3
- import Icon from '@zohodesk/icons/lib/Icon';
3
+ import { Icon } from '@zohodesk/icons';
4
4
  import style from './Icons.module.css';
5
5
  export default class CompleteIcon extends React.Component {
6
6
  render() {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { DeleteComponent_propTypes } from './props/propTypes';
3
3
  import style from './Icons.module.css';
4
- import Icon from '@zohodesk/icons/lib/Icon';
4
+ import { Icon } from '@zohodesk/icons';
5
5
  export default class DeleteComponent extends React.Component {
6
6
  render() {
7
7
  let {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { EditIcon_propTypes } from './props/propTypes';
3
3
  import style from './Icons.module.css';
4
- import Icon from '@zohodesk/icons/lib/Icon';
4
+ import { Icon } from '@zohodesk/icons';
5
5
  export default class EditIcon extends React.Component {
6
6
  render() {
7
7
  let {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ReadUnreadIcon_defaultProps } from './props/defaultProps';
3
3
  import { ReadUnreadIcon_propTypes } from './props/propTypes';
4
- import Icon from '@zohodesk/icons/lib/Icon';
4
+ import { Icon } from '@zohodesk/icons';
5
5
  import style from './Icons.module.css';
6
6
  export default class ReadUnreadIcon extends React.Component {
7
7
  render() {
@@ -1,7 +1,7 @@
1
1
  import React, { Component } from 'react';
2
2
  import { SmartIcon_propTypes } from './props/propTypes';
3
3
  import style from './Icons.module.css';
4
- import Icon from '@zohodesk/icons/lib/Icon';
4
+ import { Icon } from '@zohodesk/icons';
5
5
  export default class SmartIcon extends Component {
6
6
  render() {
7
7
  let {
@@ -5,7 +5,7 @@ import { ContactName_propTypes } from './props/propTypes';
5
5
  import { Container, Box } from '@zohodesk/components/lib/Layout';
6
6
  import Link from '../../Link/Link';
7
7
  import SentimentStatus from '../SentimentStatus/SentimentStatus';
8
- import Icon from '@zohodesk/icons/lib/Icon';
8
+ import { Icon } from '@zohodesk/icons';
9
9
  import style from './SecondaryText.module.css';
10
10
  export default class ContactName extends Component {
11
11
  render() {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { propTypes } from './props/propTypes';
3
3
  import style from './SentimentStatus.module.css';
4
- import Icon from '@zohodesk/icons/lib/Icon';
4
+ import { Icon } from '@zohodesk/icons';
5
5
  export default class SentimentStatus extends React.Component {
6
6
  constructor(props) {
7
7
  super(props);
@@ -1,7 +1,7 @@
1
1
  import React, { Component } from 'react';
2
2
  import { defaultProps } from './props/defaultProps';
3
3
  import { propTypes } from './props/propTypes';
4
- import Icon from '@zohodesk/icons/lib/Icon';
4
+ import { Icon } from '@zohodesk/icons';
5
5
  import Button from '@zohodesk/components/lib/semantic/Button/Button';
6
6
  import style from './Thread.module.css';
7
7
  export default class Thread extends Component {
@@ -1,7 +1,7 @@
1
1
  import React, { Component } from 'react';
2
2
  import { defaultProps } from './props/defaultProps';
3
3
  import { propTypes } from './props/propTypes';
4
- import Icon from '@zohodesk/icons/lib/Icon';
4
+ import { Icon } from '@zohodesk/icons';
5
5
  import { Box } from '@zohodesk/components/lib/Layout';
6
6
  import { UserTimeDiffFormat } from '@zohodesk/i18n';
7
7
  import style from './UserTime.module.css';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { defaultProps } from './props/defaultProps';
3
3
  import { propTypes } from './props/propTypes';
4
- import Icon from '@zohodesk/icons/lib/Icon';
4
+ import { Icon } from '@zohodesk/icons';
5
5
  import Popup from '@zohodesk/components/lib/Popup/Popup';
6
6
  import { Box, Container } from '@zohodesk/components/lib/Layout';
7
7
  import DropDownHeading from '@zohodesk/components/lib/DropDown/DropDownHeading';
@@ -5,7 +5,7 @@ import { defaultProps } from './props/defaultProps';
5
5
  import { propTypes } from './props/propTypes';
6
6
  import { Container, Box } from '@zohodesk/components/lib/Layout';
7
7
  /**** Components ****/
8
- import Icon from '@zohodesk/icons/lib/Icon';
8
+ import { Icon } from '@zohodesk/icons';
9
9
  import CssProvider from '@zohodesk/components/lib/Provider/CssProvider';
10
10
  /**** CSS ****/
11
11
  import style from './StatusListItem.module.css';
@@ -9,7 +9,7 @@ import { Search_propTypes, SearchUI_propTypes } from './props/propTypes';
9
9
  /** * Components ** */
10
10
  import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
11
11
  import { Container, Box } from '@zohodesk/components/lib/Layout';
12
- import Icon from '@zohodesk/icons/lib/Icon';
12
+ import { Icon } from '@zohodesk/icons';
13
13
  import ToggleDropDown from '../../../dropdown/ToggleDropDown/ToggleDropDown';
14
14
 
15
15
  /** * Methods ** */
@@ -13,7 +13,7 @@ import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/Respon
13
13
  import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
14
14
 
15
15
  /**** Icons ****/
16
- import Icon from '@zohodesk/icons/lib/Icon';
16
+ import { Icon } from '@zohodesk/icons';
17
17
  import { Container, Box } from '@zohodesk/components/lib/Layout';
18
18
  import Loader from '@zohodesk/svg/lib/Loader/Loader';
19
19
  import style from './ViewDropDown.module.css';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { defaultProps } from './props/defaultProps';
3
3
  import { propTypes } from './props/propTypes';
4
- import Icon from '@zohodesk/icons/lib/Icon';
4
+ import { Icon } from '@zohodesk/icons';
5
5
  import { Box } from '@zohodesk/components/lib/Layout';
6
6
  import ExternalLink from '../../../ExternalLink/ExternalLink';
7
7
  import style from './HeaderLink.module.css';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { defaultProps } from './props/defaultProps';
3
3
  import { propTypes } from './props/propTypes';
4
- import Icon from '@zohodesk/icons/lib/Icon';
4
+ import { Icon } from '@zohodesk/icons';
5
5
  import TextBox from '@zohodesk/components/lib/TextBox/TextBox';
6
6
  import style from './Search.module.css';
7
7
  export default class Search extends React.Component {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { defaultProps } from './props/defaultProps';
3
3
  import { propTypes } from './props/propTypes';
4
4
  import style from './Views.module.css';
5
- import Icon from '@zohodesk/icons/lib/Icon';
5
+ import { Icon } from '@zohodesk/icons';
6
6
  export default class Views extends React.Component {
7
7
  constructor(props) {
8
8
  super(props);
@@ -1,7 +1,7 @@
1
1
  /*** Libraries ***/
2
2
  import React, { PureComponent } from 'react';
3
3
  import { propTypes } from './props/propTypes';
4
- import Icon from '@zohodesk/icons/lib/Icon';
4
+ import { Icon } from '@zohodesk/icons';
5
5
  import { Container, Box } from '@zohodesk/components/lib/Layout';
6
6
  import style from './AlertClose.module.css';
7
7
  export default class AlertClose extends PureComponent {
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _defaultProps = require("./props/defaultProps");
10
10
  var _propTypes = require("./props/propTypes");
11
11
  var _Popup = _interopRequireDefault(require("@zohodesk/components/lib/Popup/Popup"));
12
- var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
12
+ var _icons = require("@zohodesk/icons");
13
13
  var _Button = _interopRequireDefault(require("@zohodesk/components/lib/Button/Button"));
14
14
  var _Layout = require("@zohodesk/components/lib/Layout");
15
15
  var _ResponsiveDropBox = _interopRequireDefault(require("@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox"));
@@ -111,7 +111,7 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
111
111
  isCover: false,
112
112
  alignBox: "row",
113
113
  align: "vertical"
114
- }, iconName ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
114
+ }, iconName ? /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
115
115
  name: iconName,
116
116
  size: iconSize,
117
117
  iconClass: "".concat(_ActionButtonModule["default"].iconClr, " ").concat(text ? _ActionButtonModule["default"].iconMrgn : '')
@@ -133,7 +133,7 @@ var ActionButton = /*#__PURE__*/function (_React$Component) {
133
133
  dataSelectorId: "".concat(dataSelectorId, "_arrowButton")
134
134
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
135
135
  align: "both"
136
- }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
136
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
137
137
  name: "ZD-down",
138
138
  size: "6",
139
139
  iconClass: _ActionButtonModule["default"].arrow
@@ -8,7 +8,7 @@ exports["default"] = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _defaultProps = require("./props/defaultProps");
10
10
  var _propTypes = require("./props/propTypes");
11
- var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
11
+ var _icons = require("@zohodesk/icons");
12
12
  var _Layout = require("@zohodesk/components/lib/Layout");
13
13
  var _Link = _interopRequireDefault(require("../Link/Link"));
14
14
  var _AttachmentModule = _interopRequireDefault(require("./Attachment.module.css"));
@@ -61,7 +61,7 @@ var Attachment = /*#__PURE__*/function (_React$Component) {
61
61
  className: _AttachmentModule["default"].attachleft
62
62
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
63
63
  align: "both"
64
- }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
64
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
65
65
  name: iconName,
66
66
  iconClass: _AttachmentModule["default"].attachIcon
67
67
  }))) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
@@ -96,7 +96,7 @@ var Attachment = /*#__PURE__*/function (_React$Component) {
96
96
  className: _AttachmentModule["default"].attachDownload,
97
97
  title: downloadTitle,
98
98
  hasReload: true
99
- }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
99
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
100
100
  name: "ZD-downloadNew",
101
101
  iconClass: _AttachmentModule["default"].downIcon
102
102
  })) : null);
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
9
9
  var _defaultProps = require("./props/defaultProps");
10
10
  var _propTypes = require("./props/propTypes");
11
11
  var _Layout = require("@zohodesk/components/lib/Layout");
12
- var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
12
+ var _icons = require("@zohodesk/icons");
13
13
  var _Avatar = _interopRequireDefault(require("@zohodesk/components/lib/Avatar/Avatar"));
14
14
  var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
15
15
  var _IdProvider = require("@zohodesk/components/lib/Provider/IdProvider");
@@ -450,7 +450,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
450
450
  }, /*#__PURE__*/_react["default"].createElement("button", {
451
451
  className: _AttachmentViewerModule["default"].btn,
452
452
  "aria-label": i18nKeys.previousText
453
- }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
453
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
454
454
  name: "ZD-arrowLeft3",
455
455
  iconClass: _AttachmentViewerModule["default"].arrow,
456
456
  dataId: "leftAttachNav",
@@ -472,7 +472,7 @@ var AttachmentViewer = /*#__PURE__*/function (_Component) {
472
472
  }, /*#__PURE__*/_react["default"].createElement("button", {
473
473
  className: _AttachmentViewerModule["default"].btn,
474
474
  "aria-label": i18nKeys.nextText
475
- }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
475
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
476
476
  name: "ZD-arrowRight3",
477
477
  iconClass: _AttachmentViewerModule["default"].arrow,
478
478
  dataId: "rightAttachNav",
@@ -8,7 +8,7 @@ exports["default"] = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _defaultProps = require("./props/defaultProps");
10
10
  var _propTypes = require("./props/propTypes");
11
- var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
11
+ var _icons = require("@zohodesk/icons");
12
12
  var _Avatar = _interopRequireDefault(require("@zohodesk/components/lib/Avatar/Avatar"));
13
13
  var _AvatarIcon = _interopRequireDefault(require("../avatar/AvatarIcon/AvatarIcon"));
14
14
  var _ChannelIconMapping = require("../utils/ChannelIconMapping");
@@ -95,7 +95,7 @@ var ChannelIcon = /*#__PURE__*/function (_Component) {
95
95
  customClass: customTextClass,
96
96
  needTitle: title,
97
97
  title: title
98
- }) : /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
98
+ }) : /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
99
99
  name: iconName,
100
100
  size: iconSize,
101
101
  iconClass: "".concat(iconClass ? iconClass : '', " ").concat(_ChannelIconModule["default"].iconStyle, " ").concat(name && action ? _ChannelIconModule["default"]["".concat(name.toLowerCase(), "_").concat(action.toLowerCase())] : ''),
@@ -104,7 +104,7 @@ var ChannelIcon = /*#__PURE__*/function (_Component) {
104
104
  }), topicIcon ? /*#__PURE__*/_react["default"].createElement("span", {
105
105
  className: "".concat(_ChannelIconModule["default"].thread, " ").concat(needTopicBorder ? _ChannelIconModule["default"].threadBorder : '', " ").concat(topicClass ? topicClass : ''),
106
106
  "data-title": topicIconTitle
107
- }, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
107
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
108
108
  name: topicIcon,
109
109
  size: topicIconSize,
110
110
  iconClass: _ChannelIconModule["default"]["topic_".concat(topicIconColor)] ? "".concat(_ChannelIconModule["default"].topicIcon, " ").concat(_ChannelIconModule["default"]["topic_".concat(topicIconColor)]) : '',
@@ -16,7 +16,7 @@ var _VelocityAnimationGroup = _interopRequireDefault(require("@zohodesk/componen
16
16
  var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
17
17
  var _Heading = _interopRequireDefault(require("@zohodesk/components/lib/Heading/Heading"));
18
18
  var _IconButton = _interopRequireDefault(require("../IconButton/IconButton"));
19
- var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
19
+ var _icons = require("@zohodesk/icons");
20
20
  var _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider");
21
21
  var _DrawerModule = _interopRequireDefault(require("./Drawer.module.css"));
22
22
  var _FocusScope = _interopRequireDefault(require("@zohodesk/a11y/es/FocusScope/FocusScope"));
@@ -82,7 +82,7 @@ var Header = /*#__PURE__*/function (_React$Component) {
82
82
  hoverType: "border",
83
83
  isBold: isIconBold,
84
84
  title: iconTitle
85
- }) : /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
85
+ }) : /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
86
86
  name: iconName,
87
87
  size: iconSize,
88
88
  onClick: onIconClick,
@@ -1,155 +1,72 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
- exports["default"] = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
6
+ exports["default"] = FreezeLayer;
7
+ var _react = _interopRequireDefault(require("react"));
9
8
  var _defaultProps = require("./props/defaultProps");
10
9
  var _propTypes = require("./props/propTypes");
11
10
  var _Layout = require("@zohodesk/components/lib/Layout");
11
+ var _utils = require("@zohodesk/components/es/utils/");
12
12
  var _VelocityAnimationGroup = _interopRequireDefault(require("@zohodesk/components/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup"));
13
- var _FreezeLayerModule = _interopRequireDefault(require("./FreezeLayer.module.css"));
14
13
  var _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider");
15
- var _Config = require("../Provider/Config");
14
+ var _cssJSLogic2 = _interopRequireDefault(require("./css/cssJSLogic"));
15
+ var _useFreezeLayer2 = _interopRequireDefault(require("./useFreezeLayer"));
16
+ var _FreezeLayerModule = _interopRequireDefault(require("./css/FreezeLayer.module.css"));
16
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
21
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
22
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
23
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
24
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
26
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
27
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
28
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
29
- var FreezeLayer = /*#__PURE__*/function (_Component) {
30
- _inherits(FreezeLayer, _Component);
31
- var _super = _createSuper(FreezeLayer);
32
- function FreezeLayer(props) {
33
- var _this;
34
- _classCallCheck(this, FreezeLayer);
35
- _this = _super.call(this, props);
36
- _this.state = {
37
- isActive: props.isActive,
38
- isChildActive: false
39
- };
40
- _this.getNextIndex = (0, _ZindexProvider.getZIndex)(_assertThisInitialized(_this));
41
- _this.isFreezeLayerEnabled = false;
42
- return _this;
43
- }
44
- _createClass(FreezeLayer, [{
45
- key: "enableFreeze",
46
- value: function enableFreeze() {
47
- if (!this.isFreezeLayerEnabled) {
48
- this.isFreezeLayerEnabled = true;
49
- var freezeLayerEnable = ((0, _Config.getDotLibraryConfig)('freezeLayer') || {}).enable;
50
- freezeLayerEnable && freezeLayerEnable();
51
- }
52
- }
53
- }, {
54
- key: "disableFreeze",
55
- value: function disableFreeze() {
56
- if (this.isFreezeLayerEnabled) {
57
- this.isFreezeLayerEnabled = false;
58
- var freezeLayerDisable = ((0, _Config.getDotLibraryConfig)('freezeLayer') || {}).disable;
59
- freezeLayerDisable && freezeLayerDisable();
60
- }
61
- }
62
- }, {
63
- key: "componentDidMount",
64
- value: function componentDidMount() {
65
- var isActive = this.props.isActive;
66
- if (isActive) {
67
- this.setState({
68
- isChildActive: true
69
- });
70
- this.enableFreeze();
71
- }
72
- }
73
- }, {
74
- key: "componentDidUpdate",
75
- value: function componentDidUpdate(prevProps) {
76
- var _this2 = this;
77
- var isActive = this.props.isActive;
78
- if (isActive != prevProps.isActive) {
79
- if (isActive) {
80
- this.enableFreeze();
81
- this.setState({
82
- isActive: true
83
- }, function () {
84
- _this2.setState({
85
- isChildActive: true
86
- });
87
- });
88
- } else {
89
- this.disableFreeze();
90
- this.setState({
91
- isChildActive: false
92
- }, function () {
93
- _this2.setState({
94
- isActive: false
95
- });
96
- });
97
- }
98
- }
99
- }
100
- }, {
101
- key: "componentWillUnmount",
102
- value: function componentWillUnmount() {
103
- this.disableFreeze();
104
- }
105
- }, {
106
- key: "render",
107
- value: function render() {
108
- var _this$props = this.props,
109
- children = _this$props.children,
110
- align = _this$props.align,
111
- childAnimationName = _this$props.childAnimationName,
112
- palette = _this$props.palette,
113
- onClick = _this$props.onClick,
114
- animationName = _this$props.animationName,
115
- zIndex = _this$props.zIndex,
116
- runOnMount = _this$props.runOnMount,
117
- forwardRef = _this$props.forwardRef,
118
- isSvgMask = _this$props.isSvgMask,
119
- customClass = _this$props.customClass,
120
- needAutoZindex = _this$props.needAutoZindex;
121
- var _this$state = this.state,
122
- isActive = _this$state.isActive,
123
- isChildActive = _this$state.isChildActive;
124
- return /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
125
- name: animationName && animationName,
126
- isActive: isActive,
127
- runOnMount: runOnMount
128
- }, /*#__PURE__*/_react["default"].createElement("div", {
129
- style: isActive && needAutoZindex ? {
130
- zIndex: "".concat(this.getNextIndex())
131
- } : {},
132
- className: "\n ".concat(_FreezeLayerModule["default"].container, " ").concat(customClass, " ").concat(_FreezeLayerModule["default"]["index".concat(zIndex)], " ").concat(!isSvgMask ? _FreezeLayerModule["default"][palette] : '', "\n "),
133
- onClick: onClick ? onClick : null,
134
- ref: forwardRef
135
- }, children && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, childAnimationName ? /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
136
- name: childAnimationName,
137
- isActive: isChildActive,
138
- enterDelay: palette === 'plain' ? 0 : 300,
139
- component: _Layout.Container,
140
- alignBox: "row",
141
- align: align,
142
- dataId: "reactFreezeLayer"
143
- }, children) : isSvgMask ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, children) : /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
144
- alignBox: "row",
145
- align: align,
146
- dataId: "reactFreezeLayer"
147
- }, children))));
148
- }
149
- }]);
150
- return FreezeLayer;
151
- }(_react.Component);
152
- exports["default"] = FreezeLayer;
18
+ function FreezeLayer(props) {
19
+ var propsActive = props.isActive,
20
+ children = props.children,
21
+ align = props.align,
22
+ childAnimationName = props.childAnimationName,
23
+ palette = props.palette,
24
+ onClick = props.onClick,
25
+ animationName = props.animationName,
26
+ runOnMount = props.runOnMount,
27
+ forwardRef = props.forwardRef,
28
+ isSvgMask = props.isSvgMask,
29
+ needAutoZindex = props.needAutoZindex,
30
+ customStyle = props.customStyle;
31
+ var finalStyle = (0, _utils.mergeStyle)(_FreezeLayerModule["default"], customStyle);
32
+ var _cssJSLogic = (0, _cssJSLogic2["default"])({
33
+ props: props,
34
+ style: finalStyle
35
+ }),
36
+ freezeClass = _cssJSLogic.freezeClass;
37
+ var getNextIndex = (0, _ZindexProvider.useZIndex)();
38
+ var _useFreezeLayer = (0, _useFreezeLayer2["default"])({
39
+ isActive: propsActive,
40
+ onClick: onClick
41
+ }),
42
+ isActive = _useFreezeLayer.isActive,
43
+ isChildActive = _useFreezeLayer.isChildActive,
44
+ handleClick = _useFreezeLayer.handleClick;
45
+ return /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
46
+ name: animationName && animationName,
47
+ isActive: isActive,
48
+ runOnMount: runOnMount
49
+ }, /*#__PURE__*/_react["default"].createElement("div", {
50
+ style: isActive && needAutoZindex ? {
51
+ zIndex: "".concat(getNextIndex())
52
+ } : {},
53
+ className: freezeClass,
54
+ onClick: handleClick,
55
+ ref: forwardRef
56
+ }, children && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, childAnimationName ? /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
57
+ name: childAnimationName,
58
+ isActive: isChildActive,
59
+ enterDelay: palette === 'plain' ? 0 : 300,
60
+ component: _Layout.Container,
61
+ alignBox: "row",
62
+ align: align,
63
+ dataId: "reactFreezeLayer"
64
+ }, children) : isSvgMask ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, children) : /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
65
+ alignBox: "row",
66
+ align: align,
67
+ dataId: "reactFreezeLayer"
68
+ }, children))));
69
+ }
153
70
  FreezeLayer.propTypes = _propTypes.propTypes;
154
71
  FreezeLayer.defaultProps = _defaultProps.defaultProps;
155
72
 
@@ -0,0 +1,42 @@
1
+ .container {
2
+ top: 0;
3
+ bottom: 0;
4
+ position: absolute;
5
+ overflow: hidden;
6
+ }[dir=ltr] .container {
7
+ left: 0;
8
+ right: 0;
9
+ }[dir=rtl] .container {
10
+ right: 0;
11
+ left: 0;
12
+ }
13
+ .default {
14
+ background-color: var(--zdt_freezelayer_default_bg);
15
+ }
16
+ .dark {
17
+ background-color: var(--zdt_freezelayer_dark_bg);
18
+ }
19
+ .darkLight {
20
+ background-color: var(--zdt_freezelayer_darklight_bg);
21
+ }
22
+ .plain {
23
+ background-color: var(--zdt_freezelayer_plain_bg);
24
+ }
25
+ .snow {
26
+ background-color: var(--zdt_freezelayer_snow_bg);
27
+ }
28
+ .index3 {
29
+ z-index: 3;
30
+ }
31
+ .index5 {
32
+ z-index: 5;
33
+ }
34
+ .index7 {
35
+ z-index: 7;
36
+ }
37
+ .index10 {
38
+ z-index: 10;
39
+ }
40
+ .delay {
41
+ transition-delay: var(--zd_transition2);
42
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = cssJSLogic;
7
+ var _utils = require("@zohodesk/components/es/utils");
8
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
+ function cssJSLogic(_ref) {
10
+ var _compileClassNames;
11
+ var props = _ref.props,
12
+ style = _ref.style;
13
+ var zIndex = props.zIndex,
14
+ palette = props.palette,
15
+ isSvgMask = props.isSvgMask,
16
+ customClass = props.customClass;
17
+ var zIndexClass = "index".concat(zIndex);
18
+ var freezeClass = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, style.container, true), _defineProperty(_compileClassNames, customClass, !!customClass), _defineProperty(_compileClassNames, style[zIndexClass], !!zIndex), _defineProperty(_compileClassNames, style[palette], !isSvgMask && !!palette), _compileClassNames));
19
+ return {
20
+ freezeClass: freezeClass
21
+ };
22
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "FreezeLayer", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _FreezeLayer["default"];
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "FreezeLayerPropTypes", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _propTypes["default"];
16
+ }
17
+ });
18
+ var _FreezeLayer = _interopRequireDefault(require("./FreezeLayer"));
19
+ var _propTypes = _interopRequireDefault(require("./props/propTypes"));
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -10,6 +10,7 @@ var defaultProps = {
10
10
  zIndex: '5',
11
11
  isSvgMask: false,
12
12
  customClass: '',
13
+ customStyle: {},
13
14
  needAutoZindex: true
14
15
  };
15
16
  exports.defaultProps = defaultProps;