@zohodesk/dot 1.0.0-temp-143 → 1.0.0-temp-145

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 (311) hide show
  1. package/README.md +1233 -1232
  2. package/assets/Appearance/dark/mode/dotDarkMode.module.css +303 -293
  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 +298 -288
  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 +306 -296
  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/dubFinder.js +96 -96
  21. package/es/ActionButton/ActionButton.module.css +139 -139
  22. package/es/AlphabeticList/AlphabeticList.module.css +57 -57
  23. package/es/Attachment/Attachment.module.css +157 -157
  24. package/es/AttachmentViewer/AttachmentViewer.module.css +354 -353
  25. package/es/ChannelIcon/ChannelIcon.module.css +217 -217
  26. package/es/Drawer/Drawer.js +3 -2
  27. package/es/Drawer/Drawer.module.css +150 -189
  28. package/es/ExternalLink/ExternalLink.js +0 -0
  29. package/es/ExternalLink/ExternalLink.module.css +3 -3
  30. package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
  31. package/es/FlipCard/FlipCard.module.css +44 -44
  32. package/es/FormAction/FormAction.module.css +82 -82
  33. package/es/FreezeLayer/FreezeLayer.js +7 -2
  34. package/es/FreezeLayer/css/FreezeLayer.module.css +42 -42
  35. package/es/FreezeLayer/useFreezeLayer.js +5 -3
  36. package/es/Hooks/Dragger/css/Dragger.module.css +3 -0
  37. package/es/Hooks/Dragger/useDragger.js +74 -0
  38. package/es/Hooks/Dragger/utils/DraggerUtil.js +33 -0
  39. package/es/IconButton/IconButton.module.css +22 -22
  40. package/es/Image/Image.module.css +10 -10
  41. package/es/ImportantNotes/ImportantNotes.module.css +20 -20
  42. package/es/Link/Link.js +3 -2
  43. package/es/Link/Link.module.css +3 -3
  44. package/es/Loader/Loader.module.css +46 -46
  45. package/es/Message/Message.module.css +102 -102
  46. package/es/MessageBanner/MessageBanner.module.css +46 -46
  47. package/es/NewStar/NewStar.module.css +175 -175
  48. package/es/PlusIcon/PlusIcon.js +0 -0
  49. package/es/PlusIcon/PlusIcon.module.css +16 -19
  50. package/es/Provider/Config.js +2 -1
  51. package/es/Separator/Separator.module.css +34 -34
  52. package/es/ToastMessage/ToastMessage.js +2 -5
  53. package/es/ToastMessage/ToastMessage.module.css +328 -329
  54. package/es/Upload/Upload.module.css +125 -125
  55. package/es/actions/AutoClose.js +2 -5
  56. package/es/alert/AlertHeader/AlertHeader.module.css +80 -80
  57. package/es/alert/AlertLookup/AlertLookup.module.css +26 -26
  58. package/es/avatar/AvatarClose/AvatarClose.module.css +37 -37
  59. package/es/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
  60. package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
  61. package/es/avatar/AvatarStatus/AvatarStatus.js +0 -0
  62. package/es/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
  63. package/es/avatar/AvatarThread/AvatarThread.module.css +166 -166
  64. package/es/avatar/AvatarUser/AvatarUser.js +0 -0
  65. package/es/avatar/AvatarUser/AvatarUser.module.css +171 -171
  66. package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
  67. package/es/common/dot_animation.module.css +26 -26
  68. package/es/common/dot_common.module.css +3 -3
  69. package/es/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -42
  70. package/es/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
  71. package/es/deprecated/utils/KeyboardApi.js +25 -25
  72. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +100 -100
  73. package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
  74. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
  75. package/es/emptystate/EditionPage/EditionPage.css +43 -43
  76. package/es/errorstate/EmptyStates.module.css +87 -87
  77. package/es/errorstate/Inconvenience/Inconvenience.module.css +7 -7
  78. package/es/errorstate/LinkText/LinkText.module.css +6 -6
  79. package/es/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
  80. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
  81. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
  82. package/es/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
  83. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
  84. package/es/errorstate/WillBack/WillBack.module.css +34 -34
  85. package/es/form/fields/CheckBoxField/CheckBoxField.js +0 -0
  86. package/es/form/fields/Fields.module.css +183 -183
  87. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
  88. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
  89. package/es/form/fields/TextEditor/TextEditor.module.css +666 -764
  90. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +36 -36
  91. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
  92. package/es/form/layout/Field/Field.js +0 -0
  93. package/es/form/layout/Field/Field.module.css +22 -22
  94. package/es/form/layout/Section/ModuleFormSection.module.css +3 -3
  95. package/es/form/layout/Section/Section.js +0 -0
  96. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
  97. package/es/layout/SubtabLayout/SubtabLayout.module.css +146 -165
  98. package/es/list/AvatarFlip/AvatarFlip.module.css +3 -3
  99. package/es/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
  100. package/es/list/Comment/Comment.module.css +29 -29
  101. package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
  102. package/es/list/Dot/Dot.module.css +15 -15
  103. package/es/list/DotNew/DotNew.module.css +22 -25
  104. package/es/list/GridStencils/GridStencils.module.css +146 -146
  105. package/es/list/Icons/Icons.module.css +16 -16
  106. package/es/list/ListLayout/ListLayout.module.css +57 -57
  107. package/es/list/ListStencils/ListStencils.module.css +67 -67
  108. package/es/list/SecondaryText/SecondaryText.module.css +136 -136
  109. package/es/list/SecondaryText/Website.js +0 -0
  110. package/es/list/SecondryPanel/SecondryPanel.js +0 -0
  111. package/es/list/SecondryPanel/SecondryPanel.module.css +5 -5
  112. package/es/list/SentimentStatus/SentimentStatus.module.css +12 -12
  113. package/es/list/Subject/Subject.module.css +27 -27
  114. package/es/list/TagNew/TagNew.module.css +115 -117
  115. package/es/list/Thread/Thread.module.css +42 -42
  116. package/es/list/UserTime/UserTime.module.css +58 -58
  117. package/es/list/listCommon.module.css +60 -60
  118. package/es/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
  119. package/es/list/status/StatusListItem/StatusListItem.js +0 -0
  120. package/es/list/status/StatusListItem/StatusListItem.module.css +109 -109
  121. package/es/lookup/EmptyPage/EmptyPage.js +0 -0
  122. package/es/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
  123. package/es/lookup/Lookup/Lookup.js +0 -0
  124. package/es/lookup/Lookup/Lookup.module.css +26 -26
  125. package/es/lookup/Section/LookupSection.module.css +8 -8
  126. package/es/lookup/Section/Section.js +1 -0
  127. package/es/lookup/header/Close/LookupClose.module.css +15 -15
  128. package/es/lookup/header/Search/LookupSearch.module.css +57 -57
  129. package/es/lookup/header/Search/Search.js +5 -8
  130. package/es/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
  131. package/es/lookup/header/Title/LookupTitle.module.css +20 -20
  132. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
  133. package/es/lookup/header/lookupHeaderCommon.module.css +41 -41
  134. package/es/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
  135. package/es/setup/header/Button/HeaderButton.module.css +5 -5
  136. package/es/setup/header/Link/HeaderLink.module.css +21 -21
  137. package/es/setup/header/Search/Search.module.css +68 -68
  138. package/es/setup/header/Views/Views.module.css +37 -37
  139. package/es/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
  140. package/es/setup/helptips/Link/HelpTipsLink.module.css +7 -7
  141. package/es/setup/helptips/Link/Link.js +0 -0
  142. package/es/setup/helptips/ListGroup/ListGroup.module.css +22 -22
  143. package/es/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
  144. package/es/setup/helptips/Title/Title.js +0 -0
  145. package/es/setup/table/TableData/SetupTableData.module.css +44 -44
  146. package/es/setup/table/TableData/Tablehover.module.css +6 -6
  147. package/es/setup/table/TableHead/SetupTableHead.module.css +12 -12
  148. package/es/setup/table/TableRow/SetupTableRow.module.css +14 -14
  149. package/es/setup/table/Text/TableText.module.css +37 -37
  150. package/es/setup/table/Text/Text.js +0 -0
  151. package/es/svg/PlusIcon.js +1 -1
  152. package/es/svg/SnippetIcon.js +2 -2
  153. package/es/version2/AlertClose/AlertClose.module.css +42 -42
  154. package/es/version2/GlobalNotification/GlobalNotification.module.css +124 -127
  155. package/es/version2/alertIcons/AlertIcons.module.css +67 -67
  156. package/es/version2/errorstate/V2_ErrorStates.module.css +46 -46
  157. package/es/version2/lookup/AlertHeader/AlertHeader.js +2 -1
  158. package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +87 -86
  159. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
  160. package/es/version2/lookup/alertLookupCommonNew.module.css +32 -32
  161. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +106 -127
  162. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
  163. package/install.md +12 -12
  164. package/lib/ActionButton/ActionButton.module.css +139 -139
  165. package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
  166. package/lib/Attachment/Attachment.module.css +157 -157
  167. package/lib/AttachmentViewer/AttachmentViewer.module.css +354 -353
  168. package/lib/ChannelIcon/ChannelIcon.module.css +217 -217
  169. package/lib/Drawer/Drawer.js +3 -2
  170. package/lib/Drawer/Drawer.module.css +150 -189
  171. package/lib/ExternalLink/ExternalLink.js +0 -0
  172. package/lib/ExternalLink/ExternalLink.module.css +3 -3
  173. package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
  174. package/lib/FlipCard/FlipCard.module.css +44 -44
  175. package/lib/FormAction/FormAction.module.css +82 -82
  176. package/lib/FreezeLayer/FreezeLayer.js +10 -2
  177. package/lib/FreezeLayer/css/FreezeLayer.module.css +42 -42
  178. package/lib/FreezeLayer/useFreezeLayer.js +4 -2
  179. package/lib/Hooks/Dragger/css/Dragger.module.css +3 -0
  180. package/lib/Hooks/Dragger/useDragger.js +80 -0
  181. package/lib/Hooks/Dragger/utils/DraggerUtil.js +65 -0
  182. package/lib/IconButton/IconButton.module.css +22 -22
  183. package/lib/Image/Image.module.css +10 -10
  184. package/lib/ImportantNotes/ImportantNotes.module.css +20 -20
  185. package/lib/Link/Link.js +3 -2
  186. package/lib/Link/Link.module.css +3 -3
  187. package/lib/Loader/Loader.module.css +46 -46
  188. package/lib/Message/Message.module.css +102 -102
  189. package/lib/MessageBanner/MessageBanner.module.css +46 -46
  190. package/lib/NewStar/NewStar.module.css +175 -175
  191. package/lib/PlusIcon/PlusIcon.js +0 -0
  192. package/lib/PlusIcon/PlusIcon.module.css +16 -19
  193. package/lib/Provider/Config.js +2 -1
  194. package/lib/Separator/Separator.module.css +34 -34
  195. package/lib/ToastMessage/ToastMessage.js +2 -5
  196. package/lib/ToastMessage/ToastMessage.module.css +328 -329
  197. package/lib/Upload/Upload.module.css +125 -125
  198. package/lib/actions/AutoClose.js +2 -5
  199. package/lib/alert/AlertHeader/AlertHeader.module.css +80 -80
  200. package/lib/alert/AlertLookup/AlertLookup.module.css +26 -26
  201. package/lib/avatar/AvatarClose/AvatarClose.module.css +37 -37
  202. package/lib/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
  203. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
  204. package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -0
  205. package/lib/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
  206. package/lib/avatar/AvatarThread/AvatarThread.module.css +166 -166
  207. package/lib/avatar/AvatarUser/AvatarUser.js +0 -0
  208. package/lib/avatar/AvatarUser/AvatarUser.module.css +171 -171
  209. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
  210. package/lib/common/dot_animation.module.css +26 -26
  211. package/lib/common/dot_common.module.css +3 -3
  212. package/lib/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -42
  213. package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
  214. package/lib/deprecated/utils/KeyboardApi.js +25 -25
  215. package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +100 -100
  216. package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
  217. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
  218. package/lib/emptystate/EditionPage/EditionPage.css +43 -43
  219. package/lib/errorstate/EmptyStates.module.css +87 -87
  220. package/lib/errorstate/Inconvenience/Inconvenience.module.css +7 -7
  221. package/lib/errorstate/LinkText/LinkText.module.css +6 -6
  222. package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
  223. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
  224. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
  225. package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
  226. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
  227. package/lib/errorstate/WillBack/WillBack.module.css +34 -34
  228. package/lib/form/fields/CheckBoxField/CheckBoxField.js +0 -0
  229. package/lib/form/fields/Fields.module.css +183 -183
  230. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
  231. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
  232. package/lib/form/fields/TextEditor/TextEditor.module.css +666 -764
  233. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +36 -36
  234. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
  235. package/lib/form/layout/Field/Field.js +0 -0
  236. package/lib/form/layout/Field/Field.module.css +22 -22
  237. package/lib/form/layout/Section/ModuleFormSection.module.css +3 -3
  238. package/lib/form/layout/Section/Section.js +0 -0
  239. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
  240. package/lib/layout/SubtabLayout/SubtabLayout.module.css +146 -165
  241. package/lib/list/AvatarFlip/AvatarFlip.module.css +3 -3
  242. package/lib/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
  243. package/lib/list/Comment/Comment.module.css +29 -29
  244. package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
  245. package/lib/list/Dot/Dot.module.css +15 -15
  246. package/lib/list/DotNew/DotNew.module.css +22 -25
  247. package/lib/list/GridStencils/GridStencils.module.css +146 -146
  248. package/lib/list/Icons/Icons.module.css +16 -16
  249. package/lib/list/ListLayout/ListLayout.module.css +57 -57
  250. package/lib/list/ListStencils/ListStencils.module.css +67 -67
  251. package/lib/list/SecondaryText/SecondaryText.module.css +136 -136
  252. package/lib/list/SecondaryText/Website.js +0 -0
  253. package/lib/list/SecondryPanel/SecondryPanel.js +0 -0
  254. package/lib/list/SecondryPanel/SecondryPanel.module.css +5 -5
  255. package/lib/list/SentimentStatus/SentimentStatus.module.css +12 -12
  256. package/lib/list/Subject/Subject.module.css +27 -27
  257. package/lib/list/TagNew/TagNew.module.css +115 -117
  258. package/lib/list/Thread/Thread.module.css +42 -42
  259. package/lib/list/UserTime/UserTime.module.css +58 -58
  260. package/lib/list/listCommon.module.css +60 -60
  261. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
  262. package/lib/list/status/StatusListItem/StatusListItem.js +0 -0
  263. package/lib/list/status/StatusListItem/StatusListItem.module.css +109 -109
  264. package/lib/lookup/EmptyPage/EmptyPage.js +0 -0
  265. package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
  266. package/lib/lookup/Lookup/Lookup.js +0 -0
  267. package/lib/lookup/Lookup/Lookup.module.css +26 -26
  268. package/lib/lookup/Section/LookupSection.module.css +8 -8
  269. package/lib/lookup/Section/Section.js +1 -0
  270. package/lib/lookup/header/Close/LookupClose.module.css +15 -15
  271. package/lib/lookup/header/Search/LookupSearch.module.css +57 -57
  272. package/lib/lookup/header/Search/Search.js +5 -10
  273. package/lib/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
  274. package/lib/lookup/header/Title/LookupTitle.module.css +20 -20
  275. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
  276. package/lib/lookup/header/lookupHeaderCommon.module.css +41 -41
  277. package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
  278. package/lib/setup/header/Button/HeaderButton.module.css +5 -5
  279. package/lib/setup/header/Link/HeaderLink.module.css +21 -21
  280. package/lib/setup/header/Search/Search.module.css +68 -68
  281. package/lib/setup/header/Views/Views.module.css +37 -37
  282. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
  283. package/lib/setup/helptips/Link/HelpTipsLink.module.css +7 -7
  284. package/lib/setup/helptips/Link/Link.js +0 -0
  285. package/lib/setup/helptips/ListGroup/ListGroup.module.css +22 -22
  286. package/lib/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
  287. package/lib/setup/helptips/Title/Title.js +0 -0
  288. package/lib/setup/table/TableData/SetupTableData.module.css +44 -44
  289. package/lib/setup/table/TableData/Tablehover.module.css +6 -6
  290. package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -12
  291. package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -14
  292. package/lib/setup/table/Text/TableText.module.css +37 -37
  293. package/lib/setup/table/Text/Text.js +0 -0
  294. package/lib/svg/PlusIcon.js +1 -1
  295. package/lib/svg/SnippetIcon.js +2 -2
  296. package/lib/version2/AlertClose/AlertClose.module.css +42 -42
  297. package/lib/version2/GlobalNotification/GlobalNotification.module.css +124 -127
  298. package/lib/version2/alertIcons/AlertIcons.module.css +67 -67
  299. package/lib/version2/errorstate/V2_ErrorStates.module.css +46 -46
  300. package/lib/version2/lookup/AlertHeader/AlertHeader.js +2 -1
  301. package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +87 -86
  302. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
  303. package/lib/version2/lookup/alertLookupCommonNew.module.css +32 -32
  304. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +106 -127
  305. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
  306. package/package.json +106 -98
  307. package/css_error.log +0 -1
  308. package/es/common/dot_boxShadow.module.css +0 -38
  309. package/es/common/dot_docStyle.module.css +0 -35
  310. package/lib/common/dot_boxShadow.module.css +0 -38
  311. package/lib/common/dot_docStyle.module.css +0 -35
@@ -1,42 +1,42 @@
1
- .container {
2
- top: 0;
3
- bottom: 0;
4
- position: absolute;
5
- overflow: hidden;
6
- }[dir=ltr] .container {
7
- left: 0;
8
- right: 0;
9
- }[dir=rtl] .container {
10
- right: 0;
11
- left: 0;
12
- }
13
- .default {
14
- background-color: var(--zdt_freezelayer_default_bg);
15
- }
16
- .dark {
17
- background-color: var(--zdt_freezelayer_dark_bg);
18
- }
19
- .darkLight {
20
- background-color: var(--zdt_freezelayer_darklight_bg);
21
- }
22
- .plain {
23
- background-color: var(--zdt_freezelayer_plain_bg);
24
- }
25
- .snow {
26
- background-color: var(--zdt_freezelayer_snow_bg);
27
- }
28
- .index3 {
29
- z-index: 3;
30
- }
31
- .index5 {
32
- z-index: 5;
33
- }
34
- .index7 {
35
- z-index: 7;
36
- }
37
- .index10 {
38
- z-index: 10;
39
- }
40
- .delay {
41
- transition-delay: var(--zd_transition2);
42
- }
1
+ .container {
2
+ top: 0;
3
+ bottom: 0;
4
+ position: absolute;
5
+ overflow: hidden;
6
+ }[dir=ltr] .container {
7
+ left: 0;
8
+ right: 0;
9
+ }[dir=rtl] .container {
10
+ right: 0;
11
+ left: 0;
12
+ }
13
+ .default {
14
+ background-color: var(--zdt_freezelayer_default_bg);
15
+ }
16
+ .dark {
17
+ background-color: var(--zdt_freezelayer_dark_bg);
18
+ }
19
+ .darkLight {
20
+ background-color: var(--zdt_freezelayer_darklight_bg);
21
+ }
22
+ .plain {
23
+ background-color: var(--zdt_freezelayer_plain_bg);
24
+ }
25
+ .snow {
26
+ background-color: var(--zdt_freezelayer_snow_bg);
27
+ }
28
+ .index3 {
29
+ z-index: 3;
30
+ }
31
+ .index5 {
32
+ z-index: 5;
33
+ }
34
+ .index7 {
35
+ z-index: 7;
36
+ }
37
+ .index10 {
38
+ z-index: 10;
39
+ }
40
+ .delay {
41
+ transition-delay: var(--zd_transition2);
42
+ }
@@ -1,5 +1,5 @@
1
1
  import React, { useRef, useState, useEffect } from 'react';
2
- import { isTextSelected } from '@zohodesk/components/es/utils/Common';
2
+ import { isTextSelected, cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
3
3
  import { getDotLibraryConfig } from '../Provider/Config';
4
4
  export default function useFreezeLayer(_ref) {
5
5
  let {
@@ -9,9 +9,11 @@ export default function useFreezeLayer(_ref) {
9
9
  const [isActive, setActive] = useState(propsActive);
10
10
  const [isChildActive, setChildActive] = useState(false);
11
11
  let isFreezeLayerEnabled = useRef(false);
12
- function handleClick() {
12
+ function handleClick(e) {
13
13
  if (onClick && !isTextSelected()) {
14
- onClick();
14
+ onClick(e);
15
+ } else {
16
+ cancelBubblingEffect(e);
15
17
  }
16
18
  }
17
19
  function enableFreeze() {
@@ -0,0 +1,3 @@
1
+ .dragCursor{
2
+ cursor: move !important;
3
+ }
@@ -0,0 +1,74 @@
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
+ customInside = false
9
+ } = _ref;
10
+ let dragableEle = useRef(null); //To set the Dragable Element
11
+ let parentEle = useRef(null); // Eo 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 dragable = useRef(false); // To get track of dragable
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 (dragable.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
+ dragwrpper: parentEle.current,
32
+ elmnt: dragableEle.current,
33
+ customInside
34
+ });
35
+ dragableEle.current.style.left = calcValue.x + "px";
36
+ dragableEle.current.style.top = calcValue.y + "px";
37
+ } else {
38
+ dragableEle.current.style.left = left + "px";
39
+ dragableEle.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 dragableEleRect = dragableEle.current.getBoundingClientRect();
51
+ e = e || window.event;
52
+ e.preventDefault();
53
+ dragableEle.current.style.top = dragableEleRect.top + "px";
54
+ dragableEle.current.style.left = dragableEleRect.left + "px";
55
+ dragableEle.current.style.width = dragableEleRect.width + "px";
56
+ dragableEle.current.style.position = "fixed";
57
+ offset.current.x = dragableEle.current.offsetLeft - e.clientX;
58
+ offset.current.y = dragableEle.current.offsetTop - e.clientY;
59
+ dragable.current = true;
60
+ document.addEventListener("mouseup", closeDragElement);
61
+ document.addEventListener("mousemove", elementDrag);
62
+ });
63
+ };
64
+ useEffect(() => {
65
+ elementFinder(parentEle.current, "[data-drag-container=true]").then(dragableElement => {
66
+ dragableEle.current = dragableElement;
67
+ let dragController = dragableEle.current && dragableEle.current.querySelector("[data-drag-hook=true]");
68
+ // ? dragableEle.current.querySelector("[data-drag-hook=true]")
69
+ // : dragableEle.current;
70
+ dragController && dragController.addEventListener("mousedown", dragMouseDown);
71
+ dragController && dragController.classList.add(style.dragCursor);
72
+ });
73
+ }, [parentEle.current]);
74
+ }
@@ -0,0 +1,33 @@
1
+ export function DragPosCalc(_ref) {
2
+ let {
3
+ x,
4
+ y,
5
+ elmnt,
6
+ dragwrpper,
7
+ customInside
8
+ } = _ref;
9
+ let customInsideWidth = customInside ? elmnt.offsetWidth / 2 : 0;
10
+ let customInsideHeight = customInside ? elmnt.offsetHeight / 2 : 0;
11
+ if (x < -customInsideWidth) {
12
+ x = -customInsideWidth;
13
+ }
14
+ if (x > dragwrpper.offsetWidth - elmnt.offsetWidth + customInsideWidth) {
15
+ x = dragwrpper.offsetWidth - elmnt.offsetWidth + customInsideWidth;
16
+ }
17
+ if (y < -customInsideHeight) {
18
+ y = -customInsideHeight;
19
+ }
20
+ if (y > dragwrpper.offsetHeight - elmnt.offsetHeight + customInsideHeight) {
21
+ y = dragwrpper.offsetHeight - elmnt.offsetHeight + customInsideHeight;
22
+ }
23
+ return {
24
+ x,
25
+ y
26
+ };
27
+ }
28
+ export const elementFinder = async (Parent, selector) => {
29
+ while (Parent && Parent.querySelector(selector) === null) {
30
+ await new Promise(resolve => requestAnimationFrame(resolve));
31
+ }
32
+ return Parent && Parent.querySelector(selector);
33
+ };
@@ -1,22 +1,22 @@
1
- .varClass {
2
- --iconColor: var(--zdt_iconButton_icon_black);
3
- }
4
- .wrapper {
5
- height: var(--zd_size28);
6
- width: var(--zd_size28);
7
- composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
8
- composes: varClass;
9
- color: var(--iconColor);
10
- cursor: pointer;
11
- }
12
- .primary {
13
- --iconColor: var(--zdt_iconButton_icon_primary);
14
- }
15
- .primary:hover {
16
- --iconColor: var(--zdt_iconButton_icon_primaryHover);
17
- }
18
- .primary_active,
19
- .primaryFilled,
20
- .primaryFilled_active {
21
- --iconColor: var(--zdt_iconButton_icon_primaryActive);
22
- }
1
+ .varClass {
2
+ --iconColor: var(--zdt_iconButton_icon_black);
3
+ }
4
+ .wrapper {
5
+ height: var(--zd_size28);
6
+ width: var(--zd_size28);
7
+ composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
8
+ composes: varClass;
9
+ color: var(--iconColor);
10
+ cursor: pointer;
11
+ }
12
+ .primary {
13
+ --iconColor: var(--zdt_iconButton_icon_primary);
14
+ }
15
+ .primary:hover {
16
+ --iconColor: var(--zdt_iconButton_icon_primaryHover);
17
+ }
18
+ .primary_active,
19
+ .primaryFilled,
20
+ .primaryFilled_active {
21
+ --iconColor: var(--zdt_iconButton_icon_primaryActive);
22
+ }
@@ -1,11 +1,11 @@
1
- .imgFullSize{
2
- height:100%;
3
- width:100%
4
- }
5
- .imgMaxFullSize{
6
- max-height:100%;
7
- max-width:100%
8
- }
9
- .imgFullSize, .imgMaxFullSize{
10
- font-size: 12px
1
+ .imgFullSize{
2
+ height:100%;
3
+ width:100%
4
+ }
5
+ .imgMaxFullSize{
6
+ max-height:100%;
7
+ max-width:100%
8
+ }
9
+ .imgFullSize, .imgMaxFullSize{
10
+ font-size: 12px
11
11
  }
@@ -1,20 +1,20 @@
1
- .section {
2
- background: var(--zdt_importantnotes_bg);
3
- padding: var(--zd_size5) var(--zd_size10);
4
- }
5
- .title {
6
- font-size: var(--zd_font_size13);
7
- line-height: var(--zd_font_size18);
8
- color: var(--zdt_importantnotes_title_text);
9
- }
10
- .icon {
11
- color: var(--zdt_importantnotes_icon);
12
- font-size: 0;
13
- margin-top: var(--zd_size1);
14
- }
15
- [dir=ltr] .icon {
16
- margin-right: var(--zd_size5);
17
- }
18
- [dir=rtl] .icon {
19
- margin-left: var(--zd_size5);
20
- }
1
+ .section {
2
+ background: var(--zdt_importantnotes_bg);
3
+ padding: var(--zd_size5) var(--zd_size10);
4
+ }
5
+ .title {
6
+ font-size: var(--zd_font_size13);
7
+ line-height: var(--zd_font_size18);
8
+ color: var(--zdt_importantnotes_title_text);
9
+ }
10
+ .icon {
11
+ color: var(--zdt_importantnotes_icon);
12
+ font-size: 0;
13
+ margin-top: var(--zd_size1);
14
+ }
15
+ [dir=ltr] .icon {
16
+ margin-right: var(--zd_size5);
17
+ }
18
+ [dir=rtl] .icon {
19
+ margin-left: var(--zd_size5);
20
+ }
package/es/Link/Link.js CHANGED
@@ -2,6 +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 { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
5
6
  import style from './Link.module.css';
6
7
  import LinkContext from './LinkContext';
7
8
  export default class Link extends React.Component {
@@ -19,14 +20,14 @@ export default class Link extends React.Component {
19
20
  onCallBack
20
21
  } = this.context.options;
21
22
  if (e && (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)) {
22
- e && e.stopPropagation();
23
+ cancelBubblingEffect(e);
23
24
  return;
24
25
  }
25
26
  onClick && onClick(e);
26
27
  if (!hasReload && target != '_blank') {
27
28
  e && e.preventDefault();
28
29
  }
29
- e && e.stopPropagation();
30
+ cancelBubblingEffect(e);
30
31
  !onClick && onCallBack && onCallBack(urlOutput, href, e);
31
32
  }
32
33
  addHttp(url) {
@@ -1,4 +1,4 @@
1
- .container {
2
- text-decoration: none;
3
- color: inherit;
1
+ .container {
2
+ text-decoration: none;
3
+ color: inherit;
4
4
  }
@@ -1,46 +1,46 @@
1
- .ajaxLoader {
2
- position: absolute;
3
- top: 0;
4
- }[dir=ltr] .ajaxLoader {
5
- left: 0;
6
- right: 0;
7
- }[dir=rtl] .ajaxLoader {
8
- right: 0;
9
- left: 0;
10
- }
11
- .loader {
12
- width: 100%;
13
- height: 3px;
14
- background-image: var(--zdt_loader_gradient_bg);
15
- background-size: 200% auto;
16
- }
17
- [dir=ltr] .loader {
18
- background-position: 0 100%;
19
- animation: loading-ltr 3s infinite;
20
- animation-fill-mode: forwards;
21
- animation-timing-function: linear;
22
- }
23
- [dir=rtl] .loader {
24
- background-position: 100% 100%;
25
- animation: loading-rtl 3s infinite;
26
- animation-fill-mode: forwards;
27
- animation-timing-function: linear;
28
- }
29
-
30
- @keyframes loading-ltr {
31
- 0% {
32
- background-position: 0 0;
33
- }
34
- 100% {
35
- background-position: -200% 0;
36
- }
37
- }
38
-
39
- @keyframes loading-rtl {
40
- 0% {
41
- background-position: 100% 0;
42
- }
43
- 100% {
44
- background-position: 300% 0;
45
- }
46
- }
1
+ .ajaxLoader {
2
+ position: absolute;
3
+ top: 0;
4
+ }[dir=ltr] .ajaxLoader {
5
+ left: 0;
6
+ right: 0;
7
+ }[dir=rtl] .ajaxLoader {
8
+ right: 0;
9
+ left: 0;
10
+ }
11
+ .loader {
12
+ width: 100%;
13
+ height: 3px;
14
+ background-image: var(--zdt_loader_gradient_bg);
15
+ background-size: 200% auto;
16
+ }
17
+ [dir=ltr] .loader {
18
+ background-position: 0 100%;
19
+ animation: loading-ltr 3s infinite;
20
+ animation-fill-mode: forwards;
21
+ animation-timing-function: linear;
22
+ }
23
+ [dir=rtl] .loader {
24
+ background-position: 100% 100%;
25
+ animation: loading-rtl 3s infinite;
26
+ animation-fill-mode: forwards;
27
+ animation-timing-function: linear;
28
+ }
29
+
30
+ @keyframes loading-ltr {
31
+ 0% {
32
+ background-position: 0 0;
33
+ }
34
+ 100% {
35
+ background-position: -200% 0;
36
+ }
37
+ }
38
+
39
+ @keyframes loading-rtl {
40
+ 0% {
41
+ background-position: 100% 0;
42
+ }
43
+ 100% {
44
+ background-position: 300% 0;
45
+ }
46
+ }
@@ -1,103 +1,103 @@
1
- .message {
2
- position: absolute;
3
- top: 0;
4
- z-index: 1000;
5
- /*Hook for editor alert*/
6
- pointer-events: none;
7
- text-align: center;
8
- }[dir=ltr] .message {
9
- right: 0;
10
- left: 0;
11
- }[dir=rtl] .message {
12
- left: 0;
13
- right: 0;
14
- }
15
-
16
- .container {
17
- position: relative;
18
- display: inline-block;
19
- pointer-events: initial;
20
- box-shadow: var(--zd_bs_message_container);
21
- border-radius: 0 0 5px 5px;
22
- background: var(--zdt_message_default_bg);
23
- }
24
-
25
- [dir=ltr] .container {
26
- padding: var(--zd_size13) var(--zd_size10) var(--zd_size13) var(--zd_size50);
27
- }
28
-
29
- [dir=rtl] .container {
30
- padding: var(--zd_size13) var(--zd_size50) var(--zd_size13) var(--zd_size10);
31
- }
32
-
33
- .text {
34
- max-width: var(--zd_size480);
35
- display: inline-block;
36
- word-break: break-word;
37
- font-size: var(--zd_font_size14);
38
- vertical-align: middle;
39
- }
40
-
41
- [dir=ltr] .text {
42
- text-align: left;
43
- }
44
-
45
- [dir=rtl] .text {
46
- text-align: right;
47
- }
48
-
49
- .icon {
50
- position: absolute;
51
- top: 0;
52
- width: var(--zd_size40);
53
- display: inline-block;
54
- height: 100%;
55
- }
56
-
57
- [dir=ltr] .icon {
58
- left: 0;
59
- border-bottom-left-radius: 5px;
60
- }
61
-
62
- [dir=rtl] .icon {
63
- right: 0;
64
- border-bottom-right-radius: 5px;
65
- }
66
-
67
- .success {
68
- composes: icon;
69
- background: var(--zdt_message_success_bg);
70
- }
71
-
72
- .alert {
73
- composes: icon;
74
- background: var(--zdt_message_alert_bg);
75
- }
76
-
77
- .info {
78
- composes: icon;
79
- background: var(--zdt_message_info_bg);
80
- }
81
-
82
- .tickIcn {
83
- color: var(--zdt_message_tickicon);
84
- font-size: var(--zd_font_size16);
85
- position: absolute;
86
- composes: middleBoth from '~@zohodesk/components/lib/common/common.module.css';
87
- }
88
-
89
- .close {
90
- color: var(--zdt_message_close_text);
91
- font-size: var(--zd_font_size16);
92
- display: inline-block;
93
- vertical-align: middle;
94
- cursor: pointer;
95
- }
96
-
97
- [dir=ltr] .close {
98
- margin-left: var(--zd_size10);
99
- }
100
-
101
- [dir=rtl] .close {
102
- margin-right: var(--zd_size10);
1
+ .message {
2
+ position: absolute;
3
+ top: 0;
4
+ z-index: 1000;
5
+ /*Hook for editor alert*/
6
+ pointer-events: none;
7
+ text-align: center;
8
+ }[dir=ltr] .message {
9
+ right: 0;
10
+ left: 0;
11
+ }[dir=rtl] .message {
12
+ left: 0;
13
+ right: 0;
14
+ }
15
+
16
+ .container {
17
+ position: relative;
18
+ display: inline-block;
19
+ pointer-events: initial;
20
+ box-shadow: 0 0 19px 1px var(--zdt_message_default_box_shadow);
21
+ border-radius: 0 0 5px 5px;
22
+ background: var(--zdt_message_default_bg);
23
+ }
24
+
25
+ [dir=ltr] .container {
26
+ padding: var(--zd_size13) var(--zd_size10) var(--zd_size13) var(--zd_size50);
27
+ }
28
+
29
+ [dir=rtl] .container {
30
+ padding: var(--zd_size13) var(--zd_size50) var(--zd_size13) var(--zd_size10);
31
+ }
32
+
33
+ .text {
34
+ max-width: var(--zd_size480);
35
+ display: inline-block;
36
+ word-break: break-word;
37
+ font-size: var(--zd_font_size14);
38
+ vertical-align: middle;
39
+ }
40
+
41
+ [dir=ltr] .text {
42
+ text-align: left;
43
+ }
44
+
45
+ [dir=rtl] .text {
46
+ text-align: right;
47
+ }
48
+
49
+ .icon {
50
+ position: absolute;
51
+ top: 0;
52
+ width: var(--zd_size40);
53
+ display: inline-block;
54
+ height: 100%;
55
+ }
56
+
57
+ [dir=ltr] .icon {
58
+ left: 0;
59
+ border-bottom-left-radius: 5px;
60
+ }
61
+
62
+ [dir=rtl] .icon {
63
+ right: 0;
64
+ border-bottom-right-radius: 5px;
65
+ }
66
+
67
+ .success {
68
+ composes: icon;
69
+ background: var(--zdt_message_success_bg);
70
+ }
71
+
72
+ .alert {
73
+ composes: icon;
74
+ background: var(--zdt_message_alert_bg);
75
+ }
76
+
77
+ .info {
78
+ composes: icon;
79
+ background: var(--zdt_message_info_bg);
80
+ }
81
+
82
+ .tickIcn {
83
+ color: var(--zdt_message_tickicon);
84
+ font-size: var(--zd_font_size16);
85
+ position: absolute;
86
+ composes: middleBoth from '~@zohodesk/components/lib/common/common.module.css';
87
+ }
88
+
89
+ .close {
90
+ color: var(--zdt_message_close_text);
91
+ font-size: var(--zd_font_size16);
92
+ display: inline-block;
93
+ vertical-align: middle;
94
+ cursor: pointer;
95
+ }
96
+
97
+ [dir=ltr] .close {
98
+ margin-left: var(--zd_size10);
99
+ }
100
+
101
+ [dir=rtl] .close {
102
+ margin-right: var(--zd_size10);
103
103
  }