@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,16 +1,16 @@
1
1
  [data-mode='pureDark'][data-theme='blue'] {
2
2
  /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: hsl(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( 0.9 + var(--zd_bg_alpha)));
3
+ --zdt_freezelayer_darklight_bg: hsla(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( 0.9 + var(--zd_bg_alpha)));
4
4
 
5
5
  /* common empty state */
6
- --zdt_commonEmptyState_dark_title: hsl(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
7
- --zdt_commonEmptyState_dark_description: hsl(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
8
- --zdt_commonEmptyState_dark_link: hsl(212, 100%, calc(64% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
9
- --zdt_commonEmptyState_dark_link_hover: hsl(221, 100%, calc(57% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
6
+ --zdt_commonEmptyState_dark_title: hsla(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
7
+ --zdt_commonEmptyState_dark_description: hsla(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
8
+ --zdt_commonEmptyState_dark_link: hsla(212, 100%, calc(64% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
9
+ --zdt_commonEmptyState_dark_link_hover: hsla(221, 100%, calc(57% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
10
10
 
11
11
  /* attachment viewer */
12
- --zdt_attachmentviewer_header_bg: hsl(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
13
- --zdt_attachmentviewer_header_border: hsl(0, 0%, calc(13% + var(--zd_pureDark_border_lValue)), calc(1 + var(--zd_alpha)));
14
- --zdt_attachmentviewer_footer_bg: hsl(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
15
- --zdt_attachmentviewer_arrow_bg_hover: hsl(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( + var(--zd_bg_alpha)));
12
+ --zdt_attachmentviewer_header_bg: hsla(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
13
+ --zdt_attachmentviewer_header_border: hsla(0, 0%, calc(13% + var(--zd_pureDark_border_lValue)), calc(1 + var(--zd_alpha)));
14
+ --zdt_attachmentviewer_footer_bg: hsla(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
15
+ --zdt_attachmentviewer_arrow_bg_hover: hsla(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( + var(--zd_bg_alpha)));
16
16
  }
@@ -1,16 +1,16 @@
1
1
  [data-mode='pureDark'][data-theme='green'] {
2
2
  /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: hsl(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( 0.9 + var(--zd_bg_alpha)));
3
+ --zdt_freezelayer_darklight_bg: hsla(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( 0.9 + var(--zd_bg_alpha)));
4
4
 
5
5
  /* common empty state */
6
- --zdt_commonEmptyState_dark_title: hsl(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
7
- --zdt_commonEmptyState_dark_description: hsl(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
8
- --zdt_commonEmptyState_dark_link: hsl(133, 40%, calc(45% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
9
- --zdt_commonEmptyState_dark_link_hover: hsl(128, 80%, calc(27% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
6
+ --zdt_commonEmptyState_dark_title: hsla(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
7
+ --zdt_commonEmptyState_dark_description: hsla(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
8
+ --zdt_commonEmptyState_dark_link: hsla(133, 40%, calc(45% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
9
+ --zdt_commonEmptyState_dark_link_hover: hsla(128, 80%, calc(27% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
10
10
 
11
11
  /* attachment viewer */
12
- --zdt_attachmentviewer_header_bg: hsl(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
13
- --zdt_attachmentviewer_header_border: hsl(0, 0%, calc(13% + var(--zd_pureDark_border_lValue)), calc(1 + var(--zd_alpha)));
14
- --zdt_attachmentviewer_footer_bg: hsl(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
15
- --zdt_attachmentviewer_arrow_bg_hover: hsl(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( + var(--zd_bg_alpha)));
12
+ --zdt_attachmentviewer_header_bg: hsla(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
13
+ --zdt_attachmentviewer_header_border: hsla(0, 0%, calc(13% + var(--zd_pureDark_border_lValue)), calc(1 + var(--zd_alpha)));
14
+ --zdt_attachmentviewer_footer_bg: hsla(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
15
+ --zdt_attachmentviewer_arrow_bg_hover: hsla(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( + var(--zd_bg_alpha)));
16
16
  }
@@ -1,16 +1,16 @@
1
1
  [data-mode='pureDark'][data-theme='orange'] {
2
2
  /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: hsl(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( 0.9 + var(--zd_bg_alpha)));
3
+ --zdt_freezelayer_darklight_bg: hsla(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( 0.9 + var(--zd_bg_alpha)));
4
4
 
5
5
  /* common empty state */
6
- --zdt_commonEmptyState_dark_title: hsl(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
7
- --zdt_commonEmptyState_dark_description: hsl(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
8
- --zdt_commonEmptyState_dark_link: hsl(26, 100%, calc(56% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
9
- --zdt_commonEmptyState_dark_link_hover: hsl(29, 100%, calc(33% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
6
+ --zdt_commonEmptyState_dark_title: hsla(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
7
+ --zdt_commonEmptyState_dark_description: hsla(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
8
+ --zdt_commonEmptyState_dark_link: hsla(26, 100%, calc(56% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
9
+ --zdt_commonEmptyState_dark_link_hover: hsla(29, 100%, calc(33% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
10
10
 
11
11
  /* attachment viewer */
12
- --zdt_attachmentviewer_header_bg: hsl(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
13
- --zdt_attachmentviewer_header_border: hsl(0, 0%, calc(13% + var(--zd_pureDark_border_lValue)), calc(1 + var(--zd_alpha)));
14
- --zdt_attachmentviewer_footer_bg: hsl(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
15
- --zdt_attachmentviewer_arrow_bg_hover: hsl(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( + var(--zd_bg_alpha)));
12
+ --zdt_attachmentviewer_header_bg: hsla(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
13
+ --zdt_attachmentviewer_header_border: hsla(0, 0%, calc(13% + var(--zd_pureDark_border_lValue)), calc(1 + var(--zd_alpha)));
14
+ --zdt_attachmentviewer_footer_bg: hsla(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
15
+ --zdt_attachmentviewer_arrow_bg_hover: hsla(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( + var(--zd_bg_alpha)));
16
16
  }
@@ -1,16 +1,16 @@
1
1
  [data-mode='pureDark'][data-theme='red'] {
2
2
  /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: hsl(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( 0.9 + var(--zd_bg_alpha)));
3
+ --zdt_freezelayer_darklight_bg: hsla(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( 0.9 + var(--zd_bg_alpha)));
4
4
 
5
5
  /* common empty state */
6
- --zdt_commonEmptyState_dark_title: hsl(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
7
- --zdt_commonEmptyState_dark_description: hsl(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
8
- --zdt_commonEmptyState_dark_link: hsl(0, 78%, calc(61% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
9
- --zdt_commonEmptyState_dark_link_hover: hsl(0, 82%, calc(36% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
6
+ --zdt_commonEmptyState_dark_title: hsla(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
7
+ --zdt_commonEmptyState_dark_description: hsla(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
8
+ --zdt_commonEmptyState_dark_link: hsla(0, 78%, calc(61% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
9
+ --zdt_commonEmptyState_dark_link_hover: hsla(0, 82%, calc(36% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
10
10
 
11
11
  /* attachment viewer */
12
- --zdt_attachmentviewer_header_bg: hsl(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
13
- --zdt_attachmentviewer_header_border: hsl(0, 0%, calc(13% + var(--zd_pureDark_border_lValue)), calc(1 + var(--zd_alpha)));
14
- --zdt_attachmentviewer_footer_bg: hsl(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
15
- --zdt_attachmentviewer_arrow_bg_hover: hsl(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( + var(--zd_bg_alpha)));
12
+ --zdt_attachmentviewer_header_bg: hsla(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
13
+ --zdt_attachmentviewer_header_border: hsla(0, 0%, calc(13% + var(--zd_pureDark_border_lValue)), calc(1 + var(--zd_alpha)));
14
+ --zdt_attachmentviewer_footer_bg: hsla(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
15
+ --zdt_attachmentviewer_arrow_bg_hover: hsla(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( + var(--zd_bg_alpha)));
16
16
  }
@@ -1,16 +1,16 @@
1
1
  [data-mode='pureDark'][data-theme='yellow'] {
2
2
  /* freezelayer */
3
- --zdt_freezelayer_darklight_bg: hsl(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( 0.9 + var(--zd_bg_alpha)));
3
+ --zdt_freezelayer_darklight_bg: hsla(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( 0.9 + var(--zd_bg_alpha)));
4
4
 
5
5
  /* common empty state */
6
- --zdt_commonEmptyState_dark_title: hsl(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
7
- --zdt_commonEmptyState_dark_description: hsl(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
8
- --zdt_commonEmptyState_dark_link: hsl(37, 67%, calc(53% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
9
- --zdt_commonEmptyState_dark_link_hover: hsl(39, 90%, calc(32% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
6
+ --zdt_commonEmptyState_dark_title: hsla(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
7
+ --zdt_commonEmptyState_dark_description: hsla(0, 0%, calc(100% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
8
+ --zdt_commonEmptyState_dark_link: hsla(37, 67%, calc(53% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
9
+ --zdt_commonEmptyState_dark_link_hover: hsla(39, 90%, calc(32% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
10
10
 
11
11
  /* attachment viewer */
12
- --zdt_attachmentviewer_header_bg: hsl(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
13
- --zdt_attachmentviewer_header_border: hsl(0, 0%, calc(13% + var(--zd_pureDark_border_lValue)), calc(1 + var(--zd_alpha)));
14
- --zdt_attachmentviewer_footer_bg: hsl(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
15
- --zdt_attachmentviewer_arrow_bg_hover: hsl(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( + var(--zd_bg_alpha)));
12
+ --zdt_attachmentviewer_header_bg: hsla(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
13
+ --zdt_attachmentviewer_header_border: hsla(0, 0%, calc(13% + var(--zd_pureDark_border_lValue)), calc(1 + var(--zd_alpha)));
14
+ --zdt_attachmentviewer_footer_bg: hsla(0, 0%, calc(9% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
15
+ --zdt_attachmentviewer_arrow_bg_hover: hsla(0, 0%, calc(6% + var(--zd_pureDark_bg_lValue)), calc( + var(--zd_bg_alpha)));
16
16
  }
@@ -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 Popup from '@zohodesk/components/lib/Popup/Popup';
5
- import Icon from '@zohodesk/icons/lib/Icon';
5
+ import { Icon } from '@zohodesk/icons';
6
6
  import Button from '@zohodesk/components/lib/Button/Button';
7
7
  import { Container, Box } from '@zohodesk/components/lib/Layout';
8
8
  import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox';
@@ -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 { Container, Box } from '@zohodesk/components/lib/Layout';
6
6
  import Link from '../Link/Link';
7
7
  import style from './Attachment.module.css';
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
2
2
  import { AttachmentViewer_defaultProps } from './props/defaultProps';
3
3
  import { AttachmentViewer_propTypes } from './props/propTypes';
4
4
  import { Container, Box } from '@zohodesk/components/lib/Layout';
5
- import Icon from '@zohodesk/icons/lib/Icon';
5
+ import { Icon } from '@zohodesk/icons';
6
6
  import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
7
7
  import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
8
8
  import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
@@ -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 Avatar from '@zohodesk/components/lib/Avatar/Avatar';
6
6
  import AvatarIcon from '../avatar/AvatarIcon/AvatarIcon';
7
7
  import { getChannelMappingObj } from '../utils/ChannelIconMapping';
@@ -9,7 +9,7 @@ import VelocityAnimationGroup from '@zohodesk/components/lib/VelocityAnimation/V
9
9
  import { ResponsiveSender, ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
10
10
  import Heading from '@zohodesk/components/lib/Heading/Heading';
11
11
  import IconButton from '../IconButton/IconButton';
12
- import Icon from '@zohodesk/icons/lib/Icon';
12
+ import { Icon } from '@zohodesk/icons';
13
13
  import { getZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
14
14
  import style from './Drawer.module.css';
15
15
  import FocusScope from '@zohodesk/a11y/es/FocusScope/FocusScope';
@@ -1,121 +1,68 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
2
  import { defaultProps } from './props/defaultProps';
3
3
  import { propTypes } from './props/propTypes';
4
4
  import { Container } from '@zohodesk/components/lib/Layout';
5
+ import { mergeStyle } from '@zohodesk/components/es/utils/';
5
6
  import VelocityAnimationGroup from '@zohodesk/components/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
6
- import style from './FreezeLayer.module.css';
7
- import { getZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
8
- import { getDotLibraryConfig } from '../Provider/Config';
9
- export default class FreezeLayer extends Component {
10
- constructor(props) {
11
- super(props);
12
- this.state = {
13
- isActive: props.isActive,
14
- isChildActive: false
15
- };
16
- this.getNextIndex = getZIndex(this);
17
- this.isFreezeLayerEnabled = false;
18
- }
19
- enableFreeze() {
20
- if (!this.isFreezeLayerEnabled) {
21
- this.isFreezeLayerEnabled = true;
22
- const freezeLayerEnable = (getDotLibraryConfig('freezeLayer') || {}).enable;
23
- freezeLayerEnable && freezeLayerEnable();
24
- }
25
- }
26
- disableFreeze() {
27
- if (this.isFreezeLayerEnabled) {
28
- this.isFreezeLayerEnabled = false;
29
- const freezeLayerDisable = (getDotLibraryConfig('freezeLayer') || {}).disable;
30
- freezeLayerDisable && freezeLayerDisable();
31
- }
32
- }
33
- componentDidMount() {
34
- let {
35
- isActive
36
- } = this.props;
37
- if (isActive) {
38
- this.setState({
39
- isChildActive: true
40
- });
41
- this.enableFreeze();
42
- }
43
- }
44
- componentDidUpdate(prevProps) {
45
- let {
46
- isActive
47
- } = this.props;
48
- if (isActive != prevProps.isActive) {
49
- if (isActive) {
50
- this.enableFreeze();
51
- this.setState({
52
- isActive: true
53
- }, () => {
54
- this.setState({
55
- isChildActive: true
56
- });
57
- });
58
- } else {
59
- this.disableFreeze();
60
- this.setState({
61
- isChildActive: false
62
- }, () => {
63
- this.setState({
64
- isActive: false
65
- });
66
- });
67
- }
68
- }
69
- }
70
- componentWillUnmount() {
71
- this.disableFreeze();
72
- }
73
- render() {
74
- let {
75
- children,
76
- align,
77
- childAnimationName,
78
- palette,
79
- onClick,
80
- animationName,
81
- zIndex,
82
- runOnMount,
83
- forwardRef,
84
- isSvgMask,
85
- customClass,
86
- needAutoZindex
87
- } = this.props;
88
- let {
89
- isActive,
90
- isChildActive
91
- } = this.state;
92
- return /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
93
- name: animationName && animationName,
94
- isActive: isActive,
95
- runOnMount: runOnMount
96
- }, /*#__PURE__*/React.createElement("div", {
97
- style: isActive && needAutoZindex ? {
98
- zIndex: `${this.getNextIndex()}`
99
- } : {},
100
- className: `
101
- ${style.container} ${customClass} ${style[`index${zIndex}`]} ${!isSvgMask ? style[palette] : ''}
102
- `,
103
- onClick: onClick ? onClick : null,
104
- ref: forwardRef
105
- }, children && /*#__PURE__*/React.createElement(React.Fragment, null, childAnimationName ? /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
106
- name: childAnimationName,
107
- isActive: isChildActive,
108
- enterDelay: palette === 'plain' ? 0 : 300,
109
- component: Container,
110
- alignBox: "row",
111
- align: align,
112
- dataId: "reactFreezeLayer"
113
- }, children) : isSvgMask ? /*#__PURE__*/React.createElement(React.Fragment, null, children) : /*#__PURE__*/React.createElement(Container, {
114
- alignBox: "row",
115
- align: align,
116
- dataId: "reactFreezeLayer"
117
- }, children))));
118
- }
7
+ import { useZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
8
+ import cssJSLogic from './css/cssJSLogic';
9
+ import useFreezeLayer from './useFreezeLayer';
10
+ import style from './css/FreezeLayer.module.css';
11
+ export default function FreezeLayer(props) {
12
+ let {
13
+ isActive: propsActive,
14
+ children,
15
+ align,
16
+ childAnimationName,
17
+ palette,
18
+ onClick,
19
+ animationName,
20
+ runOnMount,
21
+ forwardRef,
22
+ isSvgMask,
23
+ needAutoZindex,
24
+ customStyle
25
+ } = props;
26
+ const finalStyle = mergeStyle(style, customStyle);
27
+ const {
28
+ freezeClass
29
+ } = cssJSLogic({
30
+ props,
31
+ style: finalStyle
32
+ });
33
+ const getNextIndex = useZIndex();
34
+ const {
35
+ isActive,
36
+ isChildActive,
37
+ handleClick
38
+ } = useFreezeLayer({
39
+ isActive: propsActive,
40
+ onClick
41
+ });
42
+ return /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
43
+ name: animationName && animationName,
44
+ isActive: isActive,
45
+ runOnMount: runOnMount
46
+ }, /*#__PURE__*/React.createElement("div", {
47
+ style: isActive && needAutoZindex ? {
48
+ zIndex: `${getNextIndex()}`
49
+ } : {},
50
+ className: freezeClass,
51
+ onClick: handleClick,
52
+ ref: forwardRef
53
+ }, children && /*#__PURE__*/React.createElement(React.Fragment, null, childAnimationName ? /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
54
+ name: childAnimationName,
55
+ isActive: isChildActive,
56
+ enterDelay: palette === 'plain' ? 0 : 300,
57
+ component: Container,
58
+ alignBox: "row",
59
+ align: align,
60
+ dataId: "reactFreezeLayer"
61
+ }, children) : isSvgMask ? /*#__PURE__*/React.createElement(React.Fragment, null, children) : /*#__PURE__*/React.createElement(Container, {
62
+ alignBox: "row",
63
+ align: align,
64
+ dataId: "reactFreezeLayer"
65
+ }, children))));
119
66
  }
120
67
  FreezeLayer.propTypes = propTypes;
121
68
  FreezeLayer.defaultProps = defaultProps;
@@ -0,0 +1,23 @@
1
+ import { compileClassNames } from '@zohodesk/components/es/utils';
2
+ export default function cssJSLogic(_ref) {
3
+ let {
4
+ props,
5
+ style
6
+ } = _ref;
7
+ let {
8
+ zIndex,
9
+ palette,
10
+ isSvgMask,
11
+ customClass
12
+ } = props;
13
+ let zIndexClass = `index${zIndex}`;
14
+ let freezeClass = compileClassNames({
15
+ [style.container]: true,
16
+ [customClass]: !!customClass,
17
+ [style[zIndexClass]]: !!zIndex,
18
+ [style[palette]]: !isSvgMask && !!palette
19
+ });
20
+ return {
21
+ freezeClass
22
+ };
23
+ }
@@ -0,0 +1,2 @@
1
+ export { default as FreezeLayer } from './FreezeLayer';
2
+ export { default as FreezeLayerPropTypes } from './props/propTypes';
@@ -4,5 +4,6 @@ export const defaultProps = {
4
4
  zIndex: '5',
5
5
  isSvgMask: false,
6
6
  customClass: '',
7
+ customStyle: {},
7
8
  needAutoZindex: true
8
9
  };
@@ -13,5 +13,6 @@ export const propTypes = {
13
13
  onClick: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
14
14
  palette: PropTypes.oneOf(['dark', 'default', 'darkLight', 'plain', 'snow']),
15
15
  runOnMount: PropTypes.bool,
16
+ customStyle: PropTypes.object,
16
17
  zIndex: PropTypes.oneOf(['3', '5', '7', '10'])
17
18
  };
@@ -0,0 +1,50 @@
1
+ import React, { useRef, useState, useEffect } from 'react';
2
+ import { isTextSelected } from '@zohodesk/components/es/utils/Common';
3
+ import { getDotLibraryConfig } from '../Provider/Config';
4
+ export default function useFreezeLayer(_ref) {
5
+ let {
6
+ isActive: propsActive,
7
+ onClick
8
+ } = _ref;
9
+ const [isActive, setActive] = useState(propsActive);
10
+ const [isChildActive, setChildActive] = useState(false);
11
+ let isFreezeLayerEnabled = useRef(false);
12
+ function handleClick() {
13
+ if (onClick && !isTextSelected()) {
14
+ onClick();
15
+ }
16
+ }
17
+ function enableFreeze() {
18
+ if (!isFreezeLayerEnabled.current) {
19
+ isFreezeLayerEnabled.current = true;
20
+ const freezeLayerEnable = (getDotLibraryConfig('freezeLayer') || {}).enable;
21
+ freezeLayerEnable && freezeLayerEnable();
22
+ }
23
+ }
24
+ function disableFreeze() {
25
+ if (isFreezeLayerEnabled.current) {
26
+ isFreezeLayerEnabled.current = false;
27
+ const freezeLayerDisable = (getDotLibraryConfig('freezeLayer') || {}).disable;
28
+ freezeLayerDisable && freezeLayerDisable();
29
+ }
30
+ }
31
+ useEffect(() => {
32
+ if (propsActive) {
33
+ enableFreeze();
34
+ setActive(true);
35
+ setTimeout(() => setChildActive(true));
36
+ } else {
37
+ disableFreeze();
38
+ setChildActive(false);
39
+ setTimeout(() => setActive(false));
40
+ }
41
+ return () => {
42
+ disableFreeze();
43
+ };
44
+ }, [propsActive]);
45
+ return {
46
+ isActive,
47
+ isChildActive,
48
+ handleClick
49
+ };
50
+ }
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
  import React from 'react';
3
3
  import { defaultProps } from './props/defaultProps';
4
4
  import { propTypes } from './props/propTypes';
5
- import Icon from '@zohodesk/icons/lib/Icon';
5
+ import { Icon } from '@zohodesk/icons';
6
6
  import { Container } from '@zohodesk/components/lib/Layout';
7
7
  import btnStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
8
8
  import RippleEffect from '@zohodesk/components/lib/RippleEffect/RippleEffect';
@@ -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 { Container, Box } from '@zohodesk/components/lib/Layout';
5
- import Icon from '@zohodesk/icons/lib/Icon';
5
+ import { Icon } from '@zohodesk/icons';
6
6
  import style from './ImportantNotes.module.css';
7
7
  export default class ImportantNotes extends React.Component {
8
8
  constructor(props) {
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
  import React from 'react';
3
3
  import { defaultProps } from './props/defaultProps';
4
4
  import { propTypes } from './props/propTypes';
5
- import Icon from '@zohodesk/icons/lib/Icon';
5
+ import { Icon } from '@zohodesk/icons';
6
6
  import AutoClose from '../actions/AutoClose';
7
7
  import style from './Message.module.css';
8
8
  export default class Message 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 Link from '../Link/Link';
5
- import Icon from '@zohodesk/icons/lib/Icon';
5
+ import { Icon } from '@zohodesk/icons';
6
6
  import { Container, Box } from '@zohodesk/components/lib/Layout';
7
7
  import style from './MessageBanner.module.css';
8
8
  export default class MessageBanner extends React.Component {
@@ -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 { Container } from '@zohodesk/components/lib/Layout';
6
6
  import style from './NewStar.module.css';
7
7
  export default class NewStar extends React.Component {
@@ -3,7 +3,7 @@ import React, { useState } from 'react';
3
3
  import { defaultProps } from './props/defaultProps';
4
4
  import { propTypes } from './props/propTypes';
5
5
  //components
6
- import Icon from '@zohodesk/icons/lib/Icon';
6
+ import { Icon } from '@zohodesk/icons';
7
7
  import { Container, Box } from '@zohodesk/components/lib/Layout';
8
8
  import { useZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
9
9
  import { useUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
@@ -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 { Container, Box } from '@zohodesk/components/lib/Layout';
6
6
  import Image from '../Image/Image';
7
7
  import style from './Upload.module.css';
@@ -3,7 +3,7 @@ import { defaultProps } from './props/defaultProps';
3
3
  import { propTypes } from './props/propTypes';
4
4
  import Title from '../../lookup/header/Title/Title';
5
5
  import { Container, Box } from '@zohodesk/components/lib/Layout';
6
- import Icon from '@zohodesk/icons/lib/Icon';
6
+ import { Icon } from '@zohodesk/icons';
7
7
  import Close from '../../lookup/header/Close/Close';
8
8
  import style from './AlertHeader.module.css';
9
9
  export default class AlertHeader extends Component {
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { defaultProps } from './props/defaultProps';
4
4
  import { propTypes } from './props/propTypes';
5
5
  import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
6
- import Icon from '@zohodesk/icons/lib/Icon';
6
+ import { Icon } from '@zohodesk/icons';
7
7
  import style from './AvatarClose.module.css';
8
8
  export default class AvatarClose extends React.Component {
9
9
  constructor(props) {
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { defaultProps } from './props/defaultProps';
4
4
  import { propTypes } from './props/propTypes';
5
5
  import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
6
- import Icon from '@zohodesk/icons/lib/Icon';
6
+ import { Icon } from '@zohodesk/icons';
7
7
  import style from './AvatarCollision.module.css';
8
8
  export default class AvatarCollision extends React.Component {
9
9
  constructor(props) {
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
  import React from 'react';
3
3
  import { defaultProps } from './props/defaultProps';
4
4
  import { propTypes } from './props/propTypes';
5
- import Icon from '@zohodesk/icons/lib/Icon';
5
+ import { Icon } from '@zohodesk/icons';
6
6
  import { Container } from '@zohodesk/components/lib/Layout';
7
7
  import AvatarSize from '@zohodesk/components/lib/Provider/AvatarSize';
8
8
  import style from './AvatarIcon.module.css';
@@ -27,7 +27,8 @@ export default class AvatarStatus extends React.Component {
27
27
  customTextClass,
28
28
  statusTitle,
29
29
  customProps,
30
- dataSelectorId
30
+ dataSelectorId,
31
+ needDefaultBorder
31
32
  } = this.props;
32
33
  let {
33
34
  AvatarStatusProps = {},
@@ -52,6 +53,7 @@ export default class AvatarStatus extends React.Component {
52
53
  initial: initial,
53
54
  shape: shape,
54
55
  needTitle: needTitle,
56
+ needDefaultBorder: needDefaultBorder,
55
57
  needBorder: needBorder
56
58
  }, AvatarProps)), /*#__PURE__*/React.createElement("span", {
57
59
  "data-title": statusTitle,
@@ -6,5 +6,7 @@ export const defaultProps = {
6
6
  palette: 'info',
7
7
  statusTitle: '',
8
8
  customProps: {},
9
- dataSelectorId: 'avatarStatus'
9
+ dataSelectorId: 'avatarStatus',
10
+ needDefaultBorder: false,
11
+ needBorder: false
10
12
  };
@@ -13,6 +13,8 @@ export const propTypes = {
13
13
  size: PropTypes.string,
14
14
  src: PropTypes.string,
15
15
  state: PropTypes.string,
16
+ needDefaultBorder: PropTypes.bool,
17
+ needBorder: PropTypes.bool,
16
18
  statusTitle: PropTypes.string,
17
19
  textPalette: PropTypes.oneOf(['white', 'black']),
18
20
  title: PropTypes.string,
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { defaultProps } from './props/defaultProps';
4
4
  import { propTypes } from './props/propTypes';
5
5
  import Avatar from '@zohodesk/components/lib/Avatar/Avatar';
6
- import Icon from '@zohodesk/icons/lib/Icon';
6
+ import { Icon } from '@zohodesk/icons';
7
7
  import style from './AvatarThread.module.css';
8
8
  export default class AvatarThread extends React.Component {
9
9
  render() {