@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
@@ -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
  }
@@ -22,7 +22,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
22
22
  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); }
23
23
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
24
  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; } }
25
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** CSS ****/
25
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26
26
  var ExternalLink = /*#__PURE__*/function (_React$Component) {
27
27
  _inherits(ExternalLink, _React$Component);
28
28
  var _super = _createSuper(ExternalLink);
@@ -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,10 +1,11 @@
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); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports["default"] = FreezeLayer;
7
- var _react = _interopRequireDefault(require("react"));
8
+ var _react = _interopRequireWildcard(require("react"));
8
9
  var _defaultProps = require("./props/defaultProps");
9
10
  var _propTypes = require("./props/propTypes");
10
11
  var _Layout = require("@zohodesk/components/lib/Layout");
@@ -14,7 +15,10 @@ var _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider"
14
15
  var _cssJSLogic2 = _interopRequireDefault(require("./css/cssJSLogic"));
15
16
  var _useFreezeLayer2 = _interopRequireDefault(require("./useFreezeLayer"));
16
17
  var _FreezeLayerModule = _interopRequireDefault(require("./css/FreezeLayer.module.css"));
18
+ var _useDragger = _interopRequireDefault(require("../Hooks/Dragger/useDragger"));
17
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
20
+ 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); }
21
+ 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; }
18
22
  function FreezeLayer(props) {
19
23
  var propsActive = props.isActive,
20
24
  children = props.children,
@@ -29,6 +33,7 @@ function FreezeLayer(props) {
29
33
  needAutoZindex = props.needAutoZindex,
30
34
  customStyle = props.customStyle;
31
35
  var finalStyle = (0, _utils.mergeStyle)(_FreezeLayerModule["default"], customStyle);
36
+ var dragRef = (0, _react.useRef)(null);
32
37
  var _cssJSLogic = (0, _cssJSLogic2["default"])({
33
38
  props: props,
34
39
  style: finalStyle
@@ -42,6 +47,16 @@ function FreezeLayer(props) {
42
47
  isActive = _useFreezeLayer.isActive,
43
48
  isChildActive = _useFreezeLayer.isChildActive,
44
49
  handleClick = _useFreezeLayer.handleClick;
50
+ var refEle = forwardRef || dragRef;
51
+ (0, _useDragger["default"])({
52
+ ParentRef: refEle,
53
+ boundaryLimit: {
54
+ top: 0,
55
+ left: 50,
56
+ right: 50,
57
+ bottom: 50
58
+ }
59
+ });
45
60
  return /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
46
61
  name: animationName && animationName,
47
62
  isActive: isActive,
@@ -52,7 +67,7 @@ function FreezeLayer(props) {
52
67
  } : {},
53
68
  className: freezeClass,
54
69
  onClick: handleClick,
55
- ref: forwardRef
70
+ ref: refEle
56
71
  }, children && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, childAnimationName ? /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
57
72
  name: childAnimationName,
58
73
  isActive: isChildActive,
@@ -0,0 +1,3 @@
1
+ .dragCursor{
2
+ cursor: move !important;
3
+ }
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = useDragger;
7
+ var _react = require("react");
8
+ var _Config = require("../../Provider/Config");
9
+ var _DraggerUtil = require("./utils/DraggerUtil");
10
+ var _DraggerModule = _interopRequireDefault(require("./css/Dragger.module.css"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ function useDragger(_ref) {
13
+ var ParentRef = _ref.ParentRef,
14
+ _ref$boundaryLimit = _ref.boundaryLimit,
15
+ boundaryLimit = _ref$boundaryLimit === void 0 ? (0, _Config.getDotLibraryConfig)('boundaryLimit') : _ref$boundaryLimit;
16
+ var draggableEle = (0, _react.useRef)(null); //To set the Draggable Element
17
+ var parentEle = (0, _react.useRef)(null); // To set the Parent Boundary Element
18
+ var offset = (0, _react.useRef)({
19
+ x: 0,
20
+ y: 0
21
+ }); //To set the x and y Positions
22
+ var draggable = (0, _react.useRef)(false); // To get track of draggable
23
+
24
+ (0, _react.useEffect)(function () {
25
+ parentEle.current = ParentRef.current || (0, _Config.getDotLibraryConfig)('draggerBoundary') || document.body;
26
+ }, [ParentRef.current]);
27
+ var elementDrag = function elementDrag(e) {
28
+ e = e || window.event;
29
+ e.preventDefault();
30
+ if (draggable.current) {
31
+ var left = offset.current.x + e.clientX;
32
+ var top = offset.current.y + e.clientY;
33
+ if (parentEle.current) {
34
+ var calcValue = (0, _DraggerUtil.DragPosCalc)({
35
+ x: left,
36
+ y: top,
37
+ dragWrapper: parentEle.current,
38
+ element: draggableEle.current,
39
+ boundaryLimit: boundaryLimit
40
+ });
41
+ draggableEle.current.style.left = calcValue.x + 'px';
42
+ draggableEle.current.style.top = calcValue.y + 'px';
43
+ } else {
44
+ draggableEle.current.style.left = left + 'px';
45
+ draggableEle.current.style.top = top + 'px';
46
+ }
47
+ }
48
+ };
49
+ var closeDragElement = function closeDragElement() {
50
+ document.removeEventListener('mouseup', closeDragElement);
51
+ document.removeEventListener('mousemove', elementDrag);
52
+ };
53
+ var dragMouseDown = function dragMouseDown(e) {
54
+ //Initial position
55
+ requestAnimationFrame(function () {
56
+ var draggableEleRect = draggableEle.current.getBoundingClientRect();
57
+ var parentEleRect = parentEle.current.getBoundingClientRect();
58
+ var relativeRect = {
59
+ left: draggableEleRect.left - parentEleRect.left,
60
+ top: draggableEleRect.top - parentEleRect.top
61
+ };
62
+ e = e || window.event;
63
+ e.preventDefault();
64
+ draggableEle.current.style.top = relativeRect.top + 'px';
65
+ draggableEle.current.style.left = relativeRect.left + 'px';
66
+ draggableEle.current.style.width = draggableEleRect.width + 'px';
67
+ draggableEle.current.style.position = 'fixed';
68
+ offset.current.x = draggableEle.current.offsetLeft - e.clientX;
69
+ offset.current.y = draggableEle.current.offsetTop - e.clientY;
70
+ draggable.current = true;
71
+ document.addEventListener('mouseup', closeDragElement);
72
+ document.addEventListener('mousemove', elementDrag);
73
+ });
74
+ };
75
+ (0, _react.useEffect)(function () {
76
+ (0, _DraggerUtil.elementFinder)(parentEle.current, '[data-drag-container=true]').then(function (draggableElement) {
77
+ draggableEle.current = draggableElement;
78
+ var dragController = draggableEle.current && draggableEle.current.querySelector('[data-drag-hook=true]');
79
+ // ? draggableEle.current.querySelector("[data-drag-hook=true]")
80
+ // : draggableEle.current;
81
+ dragController && dragController.addEventListener('mousedown', dragMouseDown);
82
+ dragController && dragController.classList.add(_DraggerModule["default"].dragCursor);
83
+ });
84
+ }, [parentEle.current]);
85
+ }
86
+
87
+ //data-drag-container => To Mention Draggable Element
88
+ //data-drag-hook =>To Mention Draggable target element
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DragPosCalc = DragPosCalc;
7
+ exports.elementFinder = void 0;
8
+ function DragPosCalc(_ref) {
9
+ var x = _ref.x,
10
+ y = _ref.y,
11
+ element = _ref.element,
12
+ dragWrapper = _ref.dragWrapper,
13
+ boundaryLimit = _ref.boundaryLimit;
14
+ //percent = 50%
15
+ // const percentobj = { top: 0, left: 10, right: 2, bottom: 90 };
16
+ var top = boundaryLimit.top,
17
+ left = boundaryLimit.left,
18
+ right = boundaryLimit.right,
19
+ bottom = boundaryLimit.bottom;
20
+ var offsetWidth = element ? element.offsetWidth : 0;
21
+ var offsetHeight = element ? element.offsetHeight : 0;
22
+ var topOffset = top ? offsetHeight - top : 0;
23
+ var leftOffset = left ? offsetWidth - left : 0;
24
+ var rightOffset = right ? offsetWidth - right : 0;
25
+ var bottomOffset = bottom ? offsetHeight - bottom : 0;
26
+ if (x < -leftOffset) {
27
+ //LEFT
28
+ x = -leftOffset;
29
+ }
30
+ if (x > dragWrapper.offsetWidth - element.offsetWidth + rightOffset) {
31
+ //RIGHT
32
+ x = dragWrapper.offsetWidth - element.offsetWidth + rightOffset;
33
+ }
34
+ if (y < -topOffset) {
35
+ //TOP
36
+ y = -topOffset;
37
+ }
38
+ if (y > dragWrapper.offsetHeight - element.offsetHeight + bottomOffset) {
39
+ //BOTTOM
40
+ y = dragWrapper.offsetHeight - element.offsetHeight + bottomOffset;
41
+ }
42
+ return {
43
+ x: x,
44
+ y: y
45
+ };
46
+ }
47
+
48
+ // export const elementFinder = async (Parent, selector) => {
49
+ // while (Parent && Parent.querySelector(selector) === null) {
50
+ // await new Promise((resolve) => requestAnimationFrame(resolve));
51
+ // }
52
+ // return Parent && Parent.querySelector(selector);
53
+ // };
54
+
55
+ var elementFinder = function elementFinder(Parent, selector) {
56
+ return new Promise(function (resolve) {
57
+ var observer = new MutationObserver(function (mutations) {
58
+ var element = Parent.querySelector(selector);
59
+ if (element) {
60
+ observer.disconnect();
61
+ resolve(element);
62
+ }
63
+ });
64
+ observer.observe(Parent, {
65
+ childList: true,
66
+ subtree: true
67
+ });
68
+ });
69
+ };
70
+ exports.elementFinder = elementFinder;
@@ -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;
@@ -23,18 +23,18 @@
23
23
  }
24
24
 
25
25
  [dir=ltr] .container {
26
- padding: var(--zd_size13) var(--zd_size10) var(--zd_size13) var(--zd_size50);
26
+ padding: 13px 10px 13px 50px;
27
27
  }
28
28
 
29
29
  [dir=rtl] .container {
30
- padding: var(--zd_size13) var(--zd_size50) var(--zd_size13) var(--zd_size10);
30
+ padding: 13px 50px 13px 10px;
31
31
  }
32
32
 
33
33
  .text {
34
- max-width: var(--zd_size480);
34
+ max-width: 480px;
35
35
  display: inline-block;
36
36
  word-break: break-word;
37
- font-size: var(--zd_font_size14);
37
+ font-size: 14px;
38
38
  vertical-align: middle;
39
39
  }
40
40
 
@@ -49,7 +49,7 @@
49
49
  .icon {
50
50
  position: absolute;
51
51
  top: 0;
52
- width: var(--zd_size40);
52
+ width: 40px;
53
53
  display: inline-block;
54
54
  height: 100%;
55
55
  }
@@ -81,23 +81,23 @@
81
81
 
82
82
  .tickIcn {
83
83
  color: var(--zdt_message_tickicon);
84
- font-size: var(--zd_font_size16);
84
+ font-size: 16px;
85
85
  position: absolute;
86
86
  composes: middleBoth from '~@zohodesk/components/lib/common/common.module.css';
87
87
  }
88
88
 
89
89
  .close {
90
90
  color: var(--zdt_message_close_text);
91
- font-size: var(--zd_font_size16);
91
+ font-size: 16px;
92
92
  display: inline-block;
93
93
  vertical-align: middle;
94
94
  cursor: pointer;
95
95
  }
96
96
 
97
97
  [dir=ltr] .close {
98
- margin-left: var(--zd_size10);
98
+ margin-left: 10px;
99
99
  }
100
100
 
101
101
  [dir=rtl] .close {
102
- margin-right: var(--zd_size10);
102
+ margin-right: 10px;
103
103
  }
@@ -1,29 +1,29 @@
1
1
  .type_secondary {
2
- max-width: var(--zd_size468);
2
+ max-width: 468px;
3
3
  border-radius: 3px;
4
4
  margin: 0 auto;
5
5
  }
6
6
  .message {
7
7
  color: var(--zdt_messagebanner_text);
8
8
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
9
- padding: var(--zd_size10) 0;
9
+ padding: 10px 0;
10
10
  }
11
11
  [dir=ltr] .message {
12
- margin-left: var(--zd_size10);
12
+ margin-left: 10px;
13
13
  }
14
14
  [dir=rtl] .message {
15
- margin-right: var(--zd_size10);
15
+ margin-right: 10px;
16
16
  }
17
17
  .link {
18
18
  color: var(--zdt_messagebanner_link_text);
19
19
  }
20
20
  [dir=ltr] .link {
21
- margin-left: var(--zd_size5);
21
+ margin-left: 5px;
22
22
  }
23
23
  [dir=rtl] .link {
24
- margin-right: var(--zd_size5);
24
+ margin-right: 5px;
25
25
  }
26
- .message,.link{font-size: var(--zd_font_size14);}
26
+ .message,.link{font-size: 14px;}
27
27
  .close {
28
28
  color: var(--zdt_messagebanner_close_text);
29
29
  cursor: pointer;