@zohodesk/dot 1.0.0-temp-148 → 1.0.0-temp-150

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 (249) hide show
  1. package/README.md +26 -1
  2. package/assets/Appearance/dark/mode/dotDarkMode.module.css +1 -1
  3. package/assets/Appearance/default/mode/dotDefaultMode.module.css +1 -1
  4. package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +1 -1
  5. package/es/ActionButton/ActionButton.module.css +14 -14
  6. package/es/AlphabeticList/AlphabeticList.module.css +10 -10
  7. package/es/Attachment/Attachment.module.css +26 -24
  8. package/es/AttachmentViewer/AttachmentViewer.module.css +41 -41
  9. package/es/ChannelIcon/ChannelIcon.module.css +22 -22
  10. package/es/Drawer/Drawer.js +2 -3
  11. package/es/Drawer/Drawer.module.css +41 -40
  12. package/es/FormAction/FormAction.module.css +20 -20
  13. package/es/FreezeLayer/FreezeLayer.js +14 -2
  14. package/es/Hooks/Dragger/css/Dragger.module.css +3 -0
  15. package/es/Hooks/Dragger/useDragger.js +82 -0
  16. package/es/Hooks/Dragger/utils/DraggerUtil.js +66 -0
  17. package/es/IconButton/IconButton.module.css +2 -2
  18. package/es/Image/Image.module.css +1 -0
  19. package/es/ImportantNotes/ImportantNotes.module.css +5 -5
  20. package/es/Loader/Loader.module.css +1 -0
  21. package/es/Message/Message.module.css +9 -9
  22. package/es/MessageBanner/MessageBanner.module.css +7 -7
  23. package/es/NewStar/NewStar.module.css +18 -10
  24. package/es/Provider/Config.js +7 -0
  25. package/es/Separator/Separator.module.css +6 -6
  26. package/es/TagWithIcon/TagWithIcon.module.css +6 -6
  27. package/es/ToastMessage/ToastMessage.module.css +23 -23
  28. package/es/Upload/Upload.module.css +15 -15
  29. package/es/alert/AlertHeader/AlertHeader.module.css +12 -12
  30. package/es/alert/AlertLookup/AlertLookup.module.css +6 -6
  31. package/es/avatar/AvatarClose/AvatarClose.module.css +1 -1
  32. package/es/avatar/AvatarCollision/AvatarCollision.module.css +7 -7
  33. package/es/avatar/AvatarStatus/AvatarStatus.module.css +32 -32
  34. package/es/avatar/AvatarThread/AvatarThread.module.css +24 -24
  35. package/es/avatar/AvatarUser/AvatarUser.module.css +40 -40
  36. package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +4 -4
  37. package/es/deprecated/SelectDropdown/SelectDropdown.module.css +11 -11
  38. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +3 -3
  39. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +13 -13
  40. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +11 -11
  41. package/es/emptystate/EditionPage/EditionPage.css +13 -13
  42. package/es/errorstate/EmptyStates.module.css +18 -18
  43. package/es/errorstate/Inconvenience/Inconvenience.module.css +3 -3
  44. package/es/errorstate/LinkText/LinkText.module.css +1 -1
  45. package/es/errorstate/NoRequestFound/NoRequestFound.module.css +1 -1
  46. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +8 -8
  47. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +1 -1
  48. package/es/errorstate/UnableToProcess/UnableToProcess.module.css +1 -1
  49. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +1 -1
  50. package/es/errorstate/WillBack/WillBack.module.css +10 -10
  51. package/es/form/fields/Fields.module.css +26 -26
  52. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +13 -13
  53. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +3 -3
  54. package/es/form/fields/TextEditor/TextEditor.js +1 -1
  55. package/es/form/fields/TextEditor/TextEditor.module.css +84 -77
  56. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +3 -2
  57. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +3 -3
  58. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +31 -31
  59. package/es/layout/SubtabLayout/SubtabLayout.module.css +32 -32
  60. package/es/list/BluePrintStatus/BluePrintStatus.module.css +3 -3
  61. package/es/list/Comment/Comment.module.css +4 -4
  62. package/es/list/Dot/Dot.module.css +3 -3
  63. package/es/list/DotNew/DotNew.module.css +4 -4
  64. package/es/list/GridStencils/GridStencils.module.css +24 -24
  65. package/es/list/Icons/Icons.module.css +2 -2
  66. package/es/list/ListLayout/ListLayout.module.css +6 -6
  67. package/es/list/ListStencils/ListStencils.module.css +12 -12
  68. package/es/list/SecondaryText/SecondaryText.module.css +11 -11
  69. package/es/list/SentimentStatus/SentimentStatus.module.css +3 -3
  70. package/es/list/TagNew/TagNew.module.css +4 -4
  71. package/es/list/Thread/Thread.module.css +7 -7
  72. package/es/list/UserTime/UserTime.module.css +8 -8
  73. package/es/list/listCommon.module.css +4 -4
  74. package/es/list/status/StatusDropdown/StatusDropdown.module.css +13 -13
  75. package/es/list/status/StatusListItem/StatusListItem.module.css +16 -16
  76. package/es/lookup/EmptyPage/LookupEmptyPage.module.css +3 -3
  77. package/es/lookup/Lookup/Lookup.module.css +5 -5
  78. package/es/lookup/Section/LookupSection.module.css +1 -1
  79. package/es/lookup/Section/Section.js +1 -0
  80. package/es/lookup/header/Close/LookupClose.module.css +3 -3
  81. package/es/lookup/header/Search/LookupSearch.module.css +14 -14
  82. package/es/lookup/header/TicketHeader/TicketHeader.module.css +2 -2
  83. package/es/lookup/header/Title/LookupTitle.module.css +1 -1
  84. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +11 -11
  85. package/es/lookup/header/lookupHeaderCommon.module.css +8 -8
  86. package/es/lookup/header/lookupHeaderCommonResponsive.module.css +3 -3
  87. package/es/setup/header/Button/HeaderButton.module.css +2 -2
  88. package/es/setup/header/Link/HeaderLink.module.css +5 -5
  89. package/es/setup/header/Search/Search.module.css +8 -8
  90. package/es/setup/header/Views/Views.module.css +4 -4
  91. package/es/setup/helptips/Description/HelpTipsDescription.module.css +2 -2
  92. package/es/setup/helptips/Link/HelpTipsLink.module.css +2 -2
  93. package/es/setup/helptips/ListGroup/ListGroup.module.css +3 -3
  94. package/es/setup/helptips/Title/HelpTipsTitle.module.css +1 -1
  95. package/es/setup/table/TableData/SetupTableData.module.css +6 -6
  96. package/es/setup/table/TableHead/SetupTableHead.module.css +5 -5
  97. package/es/setup/table/TableRow/SetupTableRow.module.css +5 -5
  98. package/es/setup/table/Text/TableText.module.css +2 -2
  99. package/es/version2/AlertClose/AlertClose.module.css +2 -2
  100. package/es/version2/GlobalNotification/GlobalNotification.module.css +13 -13
  101. package/es/version2/errorstate/V2_ErrorStates.module.css +17 -17
  102. package/es/version2/lookup/AlertHeader/AlertHeader.js +2 -2
  103. package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +14 -13
  104. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +6 -6
  105. package/es/version2/lookup/alertLookupCommonNew.module.css +5 -5
  106. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +14 -14
  107. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +23 -23
  108. package/lib/ActionButton/ActionButton.module.css +14 -14
  109. package/lib/AlphabeticList/AlphabeticList.js +1 -1
  110. package/lib/AlphabeticList/AlphabeticList.module.css +10 -10
  111. package/lib/Attachment/Attachment.module.css +26 -24
  112. package/lib/AttachmentViewer/AttachmentImage.js +1 -1
  113. package/lib/AttachmentViewer/AttachmentViewer.module.css +41 -41
  114. package/lib/ChannelIcon/ChannelIcon.module.css +22 -22
  115. package/lib/Drawer/Drawer.js +2 -3
  116. package/lib/Drawer/Drawer.module.css +41 -40
  117. package/lib/ExternalLink/ExternalLink.js +1 -1
  118. package/lib/FormAction/FormAction.module.css +20 -20
  119. package/lib/FreezeLayer/FreezeLayer.js +17 -2
  120. package/lib/Hooks/Dragger/css/Dragger.module.css +3 -0
  121. package/lib/Hooks/Dragger/useDragger.js +88 -0
  122. package/lib/Hooks/Dragger/utils/DraggerUtil.js +70 -0
  123. package/lib/IconButton/IconButton.module.css +2 -2
  124. package/lib/Image/Image.module.css +1 -0
  125. package/lib/ImportantNotes/ImportantNotes.module.css +5 -5
  126. package/lib/Loader/Loader.module.css +1 -0
  127. package/lib/Message/Message.module.css +9 -9
  128. package/lib/MessageBanner/MessageBanner.module.css +7 -7
  129. package/lib/NewStar/NewStar.module.css +18 -10
  130. package/lib/Provider/Config.js +7 -0
  131. package/lib/Separator/Separator.module.css +6 -6
  132. package/lib/TagWithIcon/TagWithIcon.module.css +6 -6
  133. package/lib/ToastMessage/ToastMessage.js +1 -2
  134. package/lib/ToastMessage/ToastMessage.module.css +23 -23
  135. package/lib/Upload/Upload.module.css +15 -15
  136. package/lib/alert/AlertHeader/AlertHeader.module.css +12 -12
  137. package/lib/alert/AlertLookup/AlertLookup.js +1 -1
  138. package/lib/alert/AlertLookup/AlertLookup.module.css +6 -6
  139. package/lib/avatar/AvatarClose/AvatarClose.module.css +1 -1
  140. package/lib/avatar/AvatarCollision/AvatarCollision.module.css +7 -7
  141. package/lib/avatar/AvatarStatus/AvatarStatus.module.css +32 -32
  142. package/lib/avatar/AvatarThread/AvatarThread.module.css +24 -24
  143. package/lib/avatar/AvatarUser/AvatarUser.js +1 -1
  144. package/lib/avatar/AvatarUser/AvatarUser.module.css +40 -40
  145. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +4 -4
  146. package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +11 -11
  147. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +3 -3
  148. package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +13 -13
  149. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +11 -11
  150. package/lib/emptystate/EditionPage/EditionPage.css +13 -13
  151. package/lib/errorstate/EmptyStates.module.css +18 -18
  152. package/lib/errorstate/Inconvenience/Inconvenience.module.css +3 -3
  153. package/lib/errorstate/LinkText/LinkText.module.css +1 -1
  154. package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +1 -1
  155. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +8 -8
  156. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +1 -1
  157. package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +1 -1
  158. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +1 -1
  159. package/lib/errorstate/WillBack/WillBack.module.css +10 -10
  160. package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
  161. package/lib/form/fields/CurrencyField/CurrencyField.js +1 -1
  162. package/lib/form/fields/DateField/DateField.js +1 -1
  163. package/lib/form/fields/FieldContainer/FieldContainer.js +1 -1
  164. package/lib/form/fields/Fields.module.css +26 -26
  165. package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
  166. package/lib/form/fields/PhoneField/PhoneField.js +1 -1
  167. package/lib/form/fields/RadioField/RadioField.js +1 -1
  168. package/lib/form/fields/SelectField/SelectField.js +1 -1
  169. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +13 -13
  170. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +1 -1
  171. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +3 -3
  172. package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
  173. package/lib/form/fields/TextEditor/TextEditor.js +2 -3
  174. package/lib/form/fields/TextEditor/TextEditor.module.css +84 -77
  175. package/lib/form/fields/TextEditorField/TextEditorField.js +1 -1
  176. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
  177. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +3 -2
  178. package/lib/form/fields/TextareaField/TextareaField.js +1 -1
  179. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +3 -3
  180. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +31 -31
  181. package/lib/layout/SubtabLayout/SubtabLayout.module.css +32 -32
  182. package/lib/list/BluePrintStatus/BluePrintStatus.module.css +3 -3
  183. package/lib/list/Comment/Comment.module.css +4 -4
  184. package/lib/list/Dot/Dot.module.css +3 -3
  185. package/lib/list/DotNew/DotNew.module.css +4 -4
  186. package/lib/list/GridStencils/GridStencils.module.css +24 -24
  187. package/lib/list/Icons/Icons.module.css +2 -2
  188. package/lib/list/ListLayout/ListLayout.module.css +6 -6
  189. package/lib/list/ListStencils/ListStencils.js +1 -1
  190. package/lib/list/ListStencils/ListStencils.module.css +12 -12
  191. package/lib/list/SecondaryText/AccountName.js +1 -1
  192. package/lib/list/SecondaryText/Email.js +1 -1
  193. package/lib/list/SecondaryText/HappinessRating.js +1 -1
  194. package/lib/list/SecondaryText/PhoneNumber.js +1 -1
  195. package/lib/list/SecondaryText/SecondaryText.module.css +11 -11
  196. package/lib/list/SecondaryText/Website.js +1 -1
  197. package/lib/list/SecondryPanel/SecondryPanel.js +1 -1
  198. package/lib/list/SentimentStatus/SentimentStatus.module.css +3 -3
  199. package/lib/list/TagNew/TagNew.module.css +4 -4
  200. package/lib/list/Thread/Thread.module.css +7 -7
  201. package/lib/list/UserTime/UserTime.module.css +8 -8
  202. package/lib/list/listCommon.module.css +4 -4
  203. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +13 -13
  204. package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
  205. package/lib/list/status/StatusListItem/StatusListItem.module.css +16 -16
  206. package/lib/lookup/EmptyPage/EmptyPage.js +1 -1
  207. package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +3 -3
  208. package/lib/lookup/Lookup/Lookup.js +1 -1
  209. package/lib/lookup/Lookup/Lookup.module.css +5 -5
  210. package/lib/lookup/Section/LookupSection.module.css +1 -1
  211. package/lib/lookup/Section/Section.js +1 -0
  212. package/lib/lookup/header/Close/Close.js +1 -1
  213. package/lib/lookup/header/Close/LookupClose.module.css +3 -3
  214. package/lib/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
  215. package/lib/lookup/header/Search/LookupSearch.module.css +14 -14
  216. package/lib/lookup/header/Search/Search.js +1 -1
  217. package/lib/lookup/header/TicketHeader/TicketHeader.js +1 -1
  218. package/lib/lookup/header/TicketHeader/TicketHeader.module.css +2 -2
  219. package/lib/lookup/header/Title/LookupTitle.module.css +1 -1
  220. package/lib/lookup/header/Title/Title.js +1 -1
  221. package/lib/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  222. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +11 -11
  223. package/lib/lookup/header/lookupHeaderCommon.module.css +8 -8
  224. package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +3 -3
  225. package/lib/setup/header/Button/HeaderButton.module.css +2 -2
  226. package/lib/setup/header/Link/HeaderLink.module.css +5 -5
  227. package/lib/setup/header/Search/Search.module.css +8 -8
  228. package/lib/setup/header/Views/Views.module.css +4 -4
  229. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +2 -2
  230. package/lib/setup/helptips/Link/HelpTipsLink.module.css +2 -2
  231. package/lib/setup/helptips/ListGroup/ListGroup.module.css +3 -3
  232. package/lib/setup/helptips/Title/HelpTipsTitle.module.css +1 -1
  233. package/lib/setup/table/TableData/SetupTableData.module.css +6 -6
  234. package/lib/setup/table/TableHead/SetupTableHead.module.css +5 -5
  235. package/lib/setup/table/TableRow/SetupTableRow.module.css +5 -5
  236. package/lib/setup/table/Text/TableText.module.css +2 -2
  237. package/lib/version2/AlertClose/AlertClose.js +1 -1
  238. package/lib/version2/AlertClose/AlertClose.module.css +2 -2
  239. package/lib/version2/GlobalNotification/GlobalNotification.module.css +13 -13
  240. package/lib/version2/errorstate/V2_ErrorStates.module.css +17 -17
  241. package/lib/version2/lookup/AlertHeader/AlertHeader.js +2 -2
  242. package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +14 -13
  243. package/lib/version2/lookup/AlertLookup/AlertLookup.js +1 -1
  244. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +6 -6
  245. package/lib/version2/lookup/alertLookupCommonNew.module.css +5 -5
  246. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +14 -14
  247. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +23 -23
  248. package/package.json +25 -10
  249. package/dubFinder.js +0 -96
@@ -13,16 +13,16 @@
13
13
  .thread {
14
14
  composes: dflex alignVertical alignHorizontal rounded from '~@zohodesk/components/lib/common/common.module.css';
15
15
  position: absolute;
16
- top: calc(var(--zd_size4) * -1);
17
- height: var(--zd_size15);
18
- width: var(--zd_size15);
16
+ top: -4px;
17
+ height: 15px;
18
+ width: 15px;
19
19
  background-color: var(--topIconBg);
20
20
  }
21
21
  [dir=ltr] .thread {
22
- right: calc(var(--zd_size1) * -1);
22
+ right: -1px;
23
23
  }
24
24
  [dir=rtl] .thread {
25
- left: calc(var(--zd_size1) * -1);
25
+ left: -1px;
26
26
  }
27
27
  .threadBorder {
28
28
  border: 1px solid var(--topIconBorderColor);
@@ -103,22 +103,22 @@
103
103
  .email_incoming,
104
104
  .email_missed,
105
105
  .email_outgoing {
106
- bottom: var(--zd_size2);
106
+ bottom: 2px;
107
107
  }
108
108
 
109
109
  /* twitter */
110
110
  .twitter_incoming,
111
111
  .twitter_outgoing,
112
112
  .twitter_missed {
113
- bottom: var(--zd_size1);
113
+ bottom: 1px;
114
114
  }
115
115
 
116
116
  /* facebook */
117
117
  [dir=ltr] .facebook_incoming, [dir=ltr] .facebook_missed, [dir=ltr] .facebook_outgoing {
118
- right: var(--zd_size2);
118
+ right: 2px;
119
119
  }
120
120
  [dir=rtl] .facebook_incoming, [dir=rtl] .facebook_missed, [dir=rtl] .facebook_outgoing {
121
- left: var(--zd_size2);
121
+ left: 2px;
122
122
  }
123
123
 
124
124
  /* chat */
@@ -131,33 +131,33 @@
131
131
  .chat_outgoing,
132
132
  .offline_chat_outgoing,
133
133
  .online_chat_outgoing {
134
- bottom: var(--zd_size1);
134
+ bottom: 1px;
135
135
  }
136
136
 
137
137
  /* forums */
138
138
  .forums_default {
139
- top: var(--zd_size1);
139
+ top: 1px;
140
140
  }
141
141
 
142
142
  /* feedback */
143
143
  .feedback_incoming,
144
144
  .feedback_missed,
145
145
  .feedback_out {
146
- top: var(--zd_size1);
146
+ top: 1px;
147
147
  }
148
148
  [dir=ltr] .feedback_incoming, [dir=ltr] .feedback_missed, [dir=ltr] .feedback_out {
149
- right: var(--zd_size1);
149
+ right: 1px;
150
150
  }
151
151
  [dir=rtl] .feedback_incoming, [dir=rtl] .feedback_missed, [dir=rtl] .feedback_out {
152
- left: var(--zd_size1);
152
+ left: 1px;
153
153
  }
154
154
 
155
155
  /* draft */
156
156
  [dir=ltr] .email_draft, [dir=ltr] .facebook_draft, [dir=ltr] .twitter_draft, [dir=ltr] .forums_draft, [dir=ltr] .chat_draft, [dir=ltr] .offline_chat_draft, [dir=ltr] .online_chat_draft, [dir=ltr] .phone_draft, [dir=ltr] .web_draft, [dir=ltr] .customerportal_draft, [dir=ltr] .feedback_draft {
157
- left: var(--zd_size1);
157
+ left: 1px;
158
158
  }
159
159
  [dir=rtl] .email_draft, [dir=rtl] .facebook_draft, [dir=rtl] .twitter_draft, [dir=rtl] .forums_draft, [dir=rtl] .chat_draft, [dir=rtl] .offline_chat_draft, [dir=rtl] .online_chat_draft, [dir=rtl] .phone_draft, [dir=rtl] .web_draft, [dir=rtl] .customerportal_draft, [dir=rtl] .feedback_draft {
160
- right: var(--zd_size1);
160
+ right: 1px;
161
161
  }
162
162
 
163
163
  /* forward */
@@ -173,7 +173,7 @@
173
173
  .web_forward,
174
174
  .customerportal_forward,
175
175
  .feedback_forward {
176
- bottom: var(--zd_size1);
176
+ bottom: 1px;
177
177
  }
178
178
 
179
179
  /* forwarddraft */
@@ -188,21 +188,21 @@
188
188
  .web_forwarddraft,
189
189
  .customerportal_forwarddraft,
190
190
  .feedback_forwarddraft {
191
- bottom: var(--zd_size1);
191
+ bottom: 1px;
192
192
  }
193
193
  [dir=ltr] .email_forwarddraft, [dir=ltr] .facebook_forwarddraft, [dir=ltr] .twitter_forwarddraft, [dir=ltr] .forums_forwarddraft, [dir=ltr] .chat_forwarddraft, [dir=ltr] .offline_chat_forwarddraft, [dir=ltr] .online_chat_forwarddraft, [dir=ltr] .phone_forwarddraft, [dir=ltr] .web_forwarddraft, [dir=ltr] .customerportal_forwarddraft, [dir=ltr] .feedback_forwarddraft {
194
- left: var(--zd_size1);
194
+ left: 1px;
195
195
  }
196
196
  [dir=rtl] .email_forwarddraft, [dir=rtl] .facebook_forwarddraft, [dir=rtl] .twitter_forwarddraft, [dir=rtl] .forums_forwarddraft, [dir=rtl] .chat_forwarddraft, [dir=rtl] .offline_chat_forwarddraft, [dir=rtl] .online_chat_forwarddraft, [dir=rtl] .phone_forwarddraft, [dir=rtl] .web_forwarddraft, [dir=rtl] .customerportal_forwarddraft, [dir=rtl] .feedback_forwarddraft {
197
- right: var(--zd_size1);
197
+ right: 1px;
198
198
  }
199
199
 
200
200
  /* facebook_dm */
201
201
  [dir=ltr] .facebook_dm_default, [dir=ltr] .facebook_dm_incoming, [dir=ltr] .facebook_dm_outgoing, [dir=ltr] .facebook_dm_missed {
202
- right: var(--zd_size2);
202
+ right: 2px;
203
203
  }
204
204
  [dir=rtl] .facebook_dm_default, [dir=rtl] .facebook_dm_incoming, [dir=rtl] .facebook_dm_outgoing, [dir=rtl] .facebook_dm_missed {
205
- left: var(--zd_size2);
205
+ left: 2px;
206
206
  }
207
207
 
208
208
  /*Topic Icon colors*/
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { Header_defaultProps, Footer_defaultProps, Drawer_defaultProps } from './props/defaultProps';
3
3
  import { Header_propTypes, Content_propTypes, Footer_propTypes, Drawer_propTypes } from './props/propTypes';
4
4
  import FreezeLayer from '../FreezeLayer/FreezeLayer';
5
- import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
6
5
  import { Container, Box } from '@zohodesk/components/lib/Layout';
7
6
  import { Card, CardHeader, CardContent } from '@zohodesk/components/lib/Card';
8
7
  import FormAction from '../FormAction/FormAction';
@@ -167,7 +166,7 @@ export default class Drawer extends React.Component {
167
166
  eleRef: this.createRef
168
167
  }, /*#__PURE__*/React.createElement(Card, {
169
168
  onClick: e => {
170
- cancelBubblingEffect(e);
169
+ e && e.stopPropagation && e.stopPropagation();
171
170
  onBodyClick(e);
172
171
  }
173
172
  }, childrenWithProps));
@@ -179,7 +178,7 @@ export default class Drawer extends React.Component {
179
178
  }, /*#__PURE__*/React.createElement(ResponsiveSender, null, /*#__PURE__*/React.createElement(Container, {
180
179
  className: styleByResolutions,
181
180
  onClick: e => {
182
- cancelBubblingEffect(e);
181
+ e && e.stopPropagation && e.stopPropagation();
183
182
  }
184
183
  }, /*#__PURE__*/React.createElement(Box, {
185
184
  flexible: true
@@ -63,31 +63,31 @@
63
63
  }
64
64
 
65
65
  .xsmall {
66
- width: var(--zd_size360);
66
+ width: 360px;
67
67
  }
68
68
 
69
69
  .small {
70
- width: var(--zd_size410);
70
+ width: 410px;
71
71
  }
72
72
 
73
73
  .medium {
74
- width: var(--zd_size660);
74
+ width: 660px;
75
75
  }
76
76
 
77
77
  .xmedium {
78
- width: var(--zd_size730);
78
+ width: 730px;
79
79
  }
80
80
 
81
81
  .large {
82
- width: var(--zd_size936);
82
+ width: 936px;
83
83
  }
84
84
 
85
85
  .xlarge {
86
- width: var(--zd_size840);
86
+ width: 840px;
87
87
  }
88
88
 
89
89
  .xxlarge {
90
- width: var(--zd_size1142);
90
+ width: 1142px;
91
91
  }
92
92
 
93
93
  .mbleSize,
@@ -96,95 +96,96 @@
96
96
  }
97
97
 
98
98
  .header {
99
- min-height: var(--zd_size50);
99
+ min-height: 50px;
100
100
  background-color: var(--zdt_drawer_header_bg);
101
101
  border-bottom: solid 1px var(--zdt_drawer_header_border);
102
- padding-top: var(--zd_size10);
103
- padding-bottom: var(--zd_size10);
102
+ padding-top: 10px;
103
+ padding-bottom: 10px;
104
104
  }
105
105
 
106
106
  .subheader {
107
- min-height: var(--zd_size28);
107
+ min-height: 28px;
108
108
  }
109
109
 
110
110
  .title {
111
111
  color: var(--zdt_drawer_title_text);
112
- font: var(--zd_font_size16) var(--zd_semibold);
112
+ font-family: var(--zd_semibold);
113
113
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
114
+ font-size: 16px;
114
115
  }
115
116
 
116
117
  [dir=ltr] .title {
117
- padding: 0 var(--zd_size10) 0 0;
118
+ padding: 0 10px 0 0;
118
119
  }
119
120
 
120
121
  [dir=rtl] .title {
121
- padding: 0 0 0 var(--zd_size10);
122
+ padding: 0 0 0 10px;
122
123
  }
123
124
 
124
125
  [dir=ltr] .smallHeaderPadding {
125
- padding-right: var(--zd_size11);
126
- padding-left: var(--zd_size30);
126
+ padding-right: 11px;
127
+ padding-left: 30px;
127
128
  }
128
129
 
129
130
  [dir=rtl] .smallHeaderPadding {
130
- padding-left: var(--zd_size11);
131
- padding-right: var(--zd_size30);
131
+ padding-left: 11px;
132
+ padding-right: 30px;
132
133
  }
133
134
 
134
135
  [dir=ltr] .smallContentPadding {
135
- padding-left: var(--zd_size30);
136
- padding-right: var(--zd_size30);
136
+ padding-left: 30px;
137
+ padding-right: 30px;
137
138
  }
138
139
 
139
140
  [dir=rtl] .smallContentPadding {
140
- padding-right: var(--zd_size30);
141
- padding-left: var(--zd_size30);
141
+ padding-right: 30px;
142
+ padding-left: 30px;
142
143
  }
143
144
 
144
145
  [dir=ltr] .mediumHeaderPadding {
145
- padding-right: var(--zd_size15);
146
- padding-left: var(--zd_size30);
146
+ padding-right: 15px;
147
+ padding-left: 30px;
147
148
  }
148
149
 
149
150
  [dir=rtl] .mediumHeaderPadding {
150
- padding-left: var(--zd_size15);
151
- padding-right: var(--zd_size30);
151
+ padding-left: 15px;
152
+ padding-right: 30px;
152
153
  }
153
154
 
154
155
  [dir=ltr] .mediumContentPadding {
155
- padding-left: var(--zd_size30);
156
- padding-right: var(--zd_size30);
156
+ padding-left: 30px;
157
+ padding-right: 30px;
157
158
  }
158
159
 
159
160
  [dir=rtl] .mediumContentPadding {
160
- padding-right: var(--zd_size30);
161
- padding-left: var(--zd_size30);
161
+ padding-right: 30px;
162
+ padding-left: 30px;
162
163
  }
163
164
 
164
165
  [dir=ltr] .largeHeaderPadding {
165
- padding-right: var(--zd_size15);
166
- padding-left: var(--zd_size50);
166
+ padding-right: 15px;
167
+ padding-left: 50px;
167
168
  }
168
169
 
169
170
  [dir=rtl] .largeHeaderPadding {
170
- padding-left: var(--zd_size15);
171
- padding-right: var(--zd_size50);
171
+ padding-left: 15px;
172
+ padding-right: 50px;
172
173
  }
173
174
 
174
175
  [dir=ltr] .largeContentPadding {
175
- padding-left: var(--zd_size50);
176
- padding-right: var(--zd_size50);
176
+ padding-left: 50px;
177
+ padding-right: 50px;
177
178
  }
178
179
 
179
180
  [dir=rtl] .largeContentPadding {
180
- padding-right: var(--zd_size50);
181
- padding-left: var(--zd_size50);
181
+ padding-right: 50px;
182
+ padding-left: 50px;
182
183
  }
183
184
 
184
185
  [dir=ltr] .iconWrapper {
185
- margin-right: var(--zd_size10);
186
+ margin-right: 10px;
186
187
  }
187
188
 
188
189
  [dir=rtl] .iconWrapper {
189
- margin-left: var(--zd_size10);
190
+ margin-left: 10px;
190
191
  }
@@ -13,64 +13,64 @@
13
13
  border-top: solid 1px var(--footerBorder);
14
14
  }
15
15
  .largeFooter {
16
- padding-top: var(--zd_size24);
17
- padding-bottom: var(--zd_size24);
16
+ padding-top: 24px;
17
+ padding-bottom: 24px;
18
18
  }
19
19
  .mediumFooter {
20
- padding-top: var(--zd_size20);
21
- padding-bottom: var(--zd_size20);
20
+ padding-top: 20px;
21
+ padding-bottom: 20px;
22
22
  }
23
23
  .smallFooter {
24
- padding-top: var(--zd_size10);
25
- padding-bottom: var(--zd_size10);
24
+ padding-top: 10px;
25
+ padding-bottom: 10px;
26
26
  }
27
27
 
28
28
  [dir=ltr] .largePadding {
29
- padding-left: var(--zd_size60);
29
+ padding-left: 60px;
30
30
  }
31
31
 
32
32
  [dir=rtl] .largePadding {
33
- padding-right: var(--zd_size60);
33
+ padding-right: 60px;
34
34
  }
35
35
  [dir=ltr] .mediumPadding {
36
- padding-left: var(--zd_size50);
36
+ padding-left: 50px;
37
37
  }
38
38
  [dir=rtl] .mediumPadding {
39
- padding-right: var(--zd_size50);
39
+ padding-right: 50px;
40
40
  }
41
41
  [dir=ltr] .xmediumPadding {
42
- padding-left: var(--zd_size30);
42
+ padding-left: 30px;
43
43
  }
44
44
  [dir=rtl] .xmediumPadding {
45
- padding-right: var(--zd_size30);
45
+ padding-right: 30px;
46
46
  }
47
47
  [dir=ltr] .smallPadding {
48
- padding-left: var(--zd_size25);
48
+ padding-left: 25px;
49
49
  }
50
50
  [dir=rtl] .smallPadding {
51
- padding-right: var(--zd_size25);
51
+ padding-right: 25px;
52
52
  }
53
53
  [dir=ltr] .xsmallPadding {
54
- padding-left: var(--zd_size20);
54
+ padding-left: 20px;
55
55
  }
56
56
  [dir=rtl] .xsmallPadding {
57
- padding-right: var(--zd_size20);
57
+ padding-right: 20px;
58
58
  }
59
59
 
60
60
  .marginRight {
61
61
  composes: dinblk from '~@zohodesk/components/lib/common/common.module.css';
62
62
  }
63
63
  [dir=ltr] .largeFooter .marginRight, [dir=ltr] .mediumFooter .marginRight {
64
- margin-right: var(--zd_size15);
64
+ margin-right: 15px;
65
65
  }
66
66
  [dir=rtl] .largeFooter .marginRight, [dir=rtl] .mediumFooter .marginRight {
67
- margin-left: var(--zd_size15);
67
+ margin-left: 15px;
68
68
  }
69
69
  [dir=ltr] .smallFooter .marginRight {
70
- margin-right: var(--zd_size12);
70
+ margin-right: 12px;
71
71
  }
72
72
  [dir=rtl] .smallFooter .marginRight {
73
- margin-left: var(--zd_size12);
73
+ margin-left: 12px;
74
74
  }
75
75
 
76
76
  [dir=ltr] .marginRight:last-child {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { useRef } 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';
@@ -8,6 +8,7 @@ import { useZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
8
8
  import cssJSLogic from './css/cssJSLogic';
9
9
  import useFreezeLayer from './useFreezeLayer';
10
10
  import style from './css/FreezeLayer.module.css';
11
+ import useDragger from '../Hooks/Dragger/useDragger';
11
12
  export default function FreezeLayer(props) {
12
13
  let {
13
14
  isActive: propsActive,
@@ -24,6 +25,7 @@ export default function FreezeLayer(props) {
24
25
  customStyle
25
26
  } = props;
26
27
  const finalStyle = mergeStyle(style, customStyle);
28
+ const dragRef = useRef(null);
27
29
  const {
28
30
  freezeClass
29
31
  } = cssJSLogic({
@@ -39,6 +41,16 @@ export default function FreezeLayer(props) {
39
41
  isActive: propsActive,
40
42
  onClick
41
43
  });
44
+ let refEle = forwardRef || dragRef;
45
+ useDragger({
46
+ ParentRef: refEle,
47
+ boundaryLimit: {
48
+ top: 0,
49
+ left: 50,
50
+ right: 50,
51
+ bottom: 50
52
+ }
53
+ });
42
54
  return /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
43
55
  name: animationName && animationName,
44
56
  isActive: isActive,
@@ -49,7 +61,7 @@ export default function FreezeLayer(props) {
49
61
  } : {},
50
62
  className: freezeClass,
51
63
  onClick: handleClick,
52
- ref: forwardRef
64
+ ref: refEle
53
65
  }, children && /*#__PURE__*/React.createElement(React.Fragment, null, childAnimationName ? /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
54
66
  name: childAnimationName,
55
67
  isActive: isChildActive,
@@ -0,0 +1,3 @@
1
+ .dragCursor{
2
+ cursor: move !important;
3
+ }
@@ -0,0 +1,82 @@
1
+ import { useEffect, useRef } from 'react';
2
+ import { getDotLibraryConfig } from '../../Provider/Config';
3
+ import { elementFinder, DragPosCalc } from './utils/DraggerUtil';
4
+ import style from './css/Dragger.module.css';
5
+ export default function useDragger(_ref) {
6
+ let {
7
+ ParentRef,
8
+ boundaryLimit = getDotLibraryConfig('boundaryLimit')
9
+ } = _ref;
10
+ let draggableEle = useRef(null); //To set the Draggable Element
11
+ let parentEle = useRef(null); // To set the Parent Boundary Element
12
+ let offset = useRef({
13
+ x: 0,
14
+ y: 0
15
+ }); //To set the x and y Positions
16
+ let draggable = useRef(false); // To get track of draggable
17
+
18
+ useEffect(() => {
19
+ parentEle.current = ParentRef.current || getDotLibraryConfig('draggerBoundary') || document.body;
20
+ }, [ParentRef.current]);
21
+ const elementDrag = e => {
22
+ e = e || window.event;
23
+ e.preventDefault();
24
+ if (draggable.current) {
25
+ const left = offset.current.x + e.clientX;
26
+ const top = offset.current.y + e.clientY;
27
+ if (parentEle.current) {
28
+ const calcValue = DragPosCalc({
29
+ x: left,
30
+ y: top,
31
+ dragWrapper: parentEle.current,
32
+ element: draggableEle.current,
33
+ boundaryLimit
34
+ });
35
+ draggableEle.current.style.left = calcValue.x + 'px';
36
+ draggableEle.current.style.top = calcValue.y + 'px';
37
+ } else {
38
+ draggableEle.current.style.left = left + 'px';
39
+ draggableEle.current.style.top = top + 'px';
40
+ }
41
+ }
42
+ };
43
+ const closeDragElement = () => {
44
+ document.removeEventListener('mouseup', closeDragElement);
45
+ document.removeEventListener('mousemove', elementDrag);
46
+ };
47
+ const dragMouseDown = e => {
48
+ //Initial position
49
+ requestAnimationFrame(() => {
50
+ let draggableEleRect = draggableEle.current.getBoundingClientRect();
51
+ let parentEleRect = parentEle.current.getBoundingClientRect();
52
+ const relativeRect = {
53
+ left: draggableEleRect.left - parentEleRect.left,
54
+ top: draggableEleRect.top - parentEleRect.top
55
+ };
56
+ e = e || window.event;
57
+ e.preventDefault();
58
+ draggableEle.current.style.top = relativeRect.top + 'px';
59
+ draggableEle.current.style.left = relativeRect.left + 'px';
60
+ draggableEle.current.style.width = draggableEleRect.width + 'px';
61
+ draggableEle.current.style.position = 'fixed';
62
+ offset.current.x = draggableEle.current.offsetLeft - e.clientX;
63
+ offset.current.y = draggableEle.current.offsetTop - e.clientY;
64
+ draggable.current = true;
65
+ document.addEventListener('mouseup', closeDragElement);
66
+ document.addEventListener('mousemove', elementDrag);
67
+ });
68
+ };
69
+ useEffect(() => {
70
+ elementFinder(parentEle.current, '[data-drag-container=true]').then(draggableElement => {
71
+ draggableEle.current = draggableElement;
72
+ let dragController = draggableEle.current && draggableEle.current.querySelector('[data-drag-hook=true]');
73
+ // ? draggableEle.current.querySelector("[data-drag-hook=true]")
74
+ // : draggableEle.current;
75
+ dragController && dragController.addEventListener('mousedown', dragMouseDown);
76
+ dragController && dragController.classList.add(style.dragCursor);
77
+ });
78
+ }, [parentEle.current]);
79
+ }
80
+
81
+ //data-drag-container => To Mention Draggable Element
82
+ //data-drag-hook =>To Mention Draggable target element
@@ -0,0 +1,66 @@
1
+ export function DragPosCalc(_ref) {
2
+ let {
3
+ x,
4
+ y,
5
+ element,
6
+ dragWrapper,
7
+ boundaryLimit
8
+ } = _ref;
9
+ //percent = 50%
10
+ // const percentobj = { top: 0, left: 10, right: 2, bottom: 90 };
11
+ let {
12
+ top,
13
+ left,
14
+ right,
15
+ bottom
16
+ } = boundaryLimit;
17
+ const offsetWidth = element ? element.offsetWidth : 0;
18
+ const offsetHeight = element ? element.offsetHeight : 0;
19
+ const topOffset = top ? offsetHeight - top : 0;
20
+ const leftOffset = left ? offsetWidth - left : 0;
21
+ const rightOffset = right ? offsetWidth - right : 0;
22
+ const bottomOffset = bottom ? offsetHeight - bottom : 0;
23
+ if (x < -leftOffset) {
24
+ //LEFT
25
+ x = -leftOffset;
26
+ }
27
+ if (x > dragWrapper.offsetWidth - element.offsetWidth + rightOffset) {
28
+ //RIGHT
29
+ x = dragWrapper.offsetWidth - element.offsetWidth + rightOffset;
30
+ }
31
+ if (y < -topOffset) {
32
+ //TOP
33
+ y = -topOffset;
34
+ }
35
+ if (y > dragWrapper.offsetHeight - element.offsetHeight + bottomOffset) {
36
+ //BOTTOM
37
+ y = dragWrapper.offsetHeight - element.offsetHeight + bottomOffset;
38
+ }
39
+ return {
40
+ x,
41
+ y
42
+ };
43
+ }
44
+
45
+ // export const elementFinder = async (Parent, selector) => {
46
+ // while (Parent && Parent.querySelector(selector) === null) {
47
+ // await new Promise((resolve) => requestAnimationFrame(resolve));
48
+ // }
49
+ // return Parent && Parent.querySelector(selector);
50
+ // };
51
+
52
+ export const elementFinder = (Parent, selector) => {
53
+ return new Promise(resolve => {
54
+ const observer = new MutationObserver(mutations => {
55
+ const element = Parent.querySelector(selector);
56
+ if (element) {
57
+ observer.disconnect();
58
+ resolve(element);
59
+ }
60
+ });
61
+ observer.observe(Parent, {
62
+ childList: true,
63
+ subtree: true
64
+ });
65
+ });
66
+ };
@@ -2,8 +2,8 @@
2
2
  --iconColor: var(--zdt_iconButton_icon_black);
3
3
  }
4
4
  .wrapper {
5
- height: var(--zd_size28);
6
- width: var(--zd_size28);
5
+ height: 28px;
6
+ width: 28px;
7
7
  composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
8
8
  composes: varClass;
9
9
  color: var(--iconColor);
@@ -7,5 +7,6 @@
7
7
  max-width:100%
8
8
  }
9
9
  .imgFullSize, .imgMaxFullSize{
10
+ /* Variable:Ignore */
10
11
  font-size: 12px
11
12
  }
@@ -1,20 +1,20 @@
1
1
  .section {
2
2
  background: var(--zdt_importantnotes_bg);
3
- padding: var(--zd_size5) var(--zd_size10);
3
+ padding: 5px 10px;
4
4
  }
5
5
  .title {
6
- font-size: var(--zd_font_size13);
6
+ font-size: 13px;
7
7
  line-height: var(--zd_font_size18);
8
8
  color: var(--zdt_importantnotes_title_text);
9
9
  }
10
10
  .icon {
11
11
  color: var(--zdt_importantnotes_icon);
12
12
  font-size: 0;
13
- margin-top: var(--zd_size1);
13
+ margin-top: 1px;
14
14
  }
15
15
  [dir=ltr] .icon {
16
- margin-right: var(--zd_size5);
16
+ margin-right: 5px;
17
17
  }
18
18
  [dir=rtl] .icon {
19
- margin-left: var(--zd_size5);
19
+ margin-left: 5px;
20
20
  }
@@ -10,6 +10,7 @@
10
10
  }
11
11
  .loader {
12
12
  width: 100%;
13
+ /* Variable:Ignore */
13
14
  height: 3px;
14
15
  background-image: var(--zdt_loader_gradient_bg);
15
16
  background-size: 200% auto;