@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
+ }
@@ -28,9 +28,11 @@ function useFreezeLayer(_ref) {
28
28
  isChildActive = _useState4[0],
29
29
  setChildActive = _useState4[1];
30
30
  var isFreezeLayerEnabled = (0, _react.useRef)(false);
31
- function handleClick() {
31
+ function handleClick(e) {
32
32
  if (onClick && !(0, _Common.isTextSelected)()) {
33
- onClick();
33
+ onClick(e);
34
+ } else {
35
+ (0, _Common.cancelBubblingEffect)(e);
34
36
  }
35
37
  }
36
38
  function enableFreeze() {
@@ -0,0 +1,3 @@
1
+ .dragCursor{
2
+ cursor: move !important;
3
+ }
@@ -0,0 +1,80 @@
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$customInside = _ref.customInside,
15
+ customInside = _ref$customInside === void 0 ? false : _ref$customInside;
16
+ var dragableEle = (0, _react.useRef)(null); //To set the Dragable Element
17
+ var parentEle = (0, _react.useRef)(null); // Eo 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 dragable = (0, _react.useRef)(false); // To get track of dragable
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 (dragable.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
+ dragwrpper: parentEle.current,
38
+ elmnt: dragableEle.current,
39
+ customInside: customInside
40
+ });
41
+ dragableEle.current.style.left = calcValue.x + "px";
42
+ dragableEle.current.style.top = calcValue.y + "px";
43
+ } else {
44
+ dragableEle.current.style.left = left + "px";
45
+ dragableEle.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 dragableEleRect = dragableEle.current.getBoundingClientRect();
57
+ e = e || window.event;
58
+ e.preventDefault();
59
+ dragableEle.current.style.top = dragableEleRect.top + "px";
60
+ dragableEle.current.style.left = dragableEleRect.left + "px";
61
+ dragableEle.current.style.width = dragableEleRect.width + "px";
62
+ dragableEle.current.style.position = "fixed";
63
+ offset.current.x = dragableEle.current.offsetLeft - e.clientX;
64
+ offset.current.y = dragableEle.current.offsetTop - e.clientY;
65
+ dragable.current = true;
66
+ document.addEventListener("mouseup", closeDragElement);
67
+ document.addEventListener("mousemove", elementDrag);
68
+ });
69
+ };
70
+ (0, _react.useEffect)(function () {
71
+ (0, _DraggerUtil.elementFinder)(parentEle.current, "[data-drag-container=true]").then(function (dragableElement) {
72
+ dragableEle.current = dragableElement;
73
+ var dragController = dragableEle.current && dragableEle.current.querySelector("[data-drag-hook=true]");
74
+ // ? dragableEle.current.querySelector("[data-drag-hook=true]")
75
+ // : dragableEle.current;
76
+ dragController && dragController.addEventListener("mousedown", dragMouseDown);
77
+ dragController && dragController.classList.add(_DraggerModule["default"].dragCursor);
78
+ });
79
+ }, [parentEle.current]);
80
+ }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.DragPosCalc = DragPosCalc;
8
+ exports.elementFinder = void 0;
9
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
10
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
11
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
12
+ function DragPosCalc(_ref) {
13
+ var x = _ref.x,
14
+ y = _ref.y,
15
+ elmnt = _ref.elmnt,
16
+ dragwrpper = _ref.dragwrpper,
17
+ customInside = _ref.customInside;
18
+ var customInsideWidth = customInside ? elmnt.offsetWidth / 2 : 0;
19
+ var customInsideHeight = customInside ? elmnt.offsetHeight / 2 : 0;
20
+ if (x < -customInsideWidth) {
21
+ x = -customInsideWidth;
22
+ }
23
+ if (x > dragwrpper.offsetWidth - elmnt.offsetWidth + customInsideWidth) {
24
+ x = dragwrpper.offsetWidth - elmnt.offsetWidth + customInsideWidth;
25
+ }
26
+ if (y < -customInsideHeight) {
27
+ y = -customInsideHeight;
28
+ }
29
+ if (y > dragwrpper.offsetHeight - elmnt.offsetHeight + customInsideHeight) {
30
+ y = dragwrpper.offsetHeight - elmnt.offsetHeight + customInsideHeight;
31
+ }
32
+ return {
33
+ x: x,
34
+ y: y
35
+ };
36
+ }
37
+ var elementFinder = /*#__PURE__*/function () {
38
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(Parent, selector) {
39
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
40
+ while (1) switch (_context.prev = _context.next) {
41
+ case 0:
42
+ if (!(Parent && Parent.querySelector(selector) === null)) {
43
+ _context.next = 5;
44
+ break;
45
+ }
46
+ _context.next = 3;
47
+ return new Promise(function (resolve) {
48
+ return requestAnimationFrame(resolve);
49
+ });
50
+ case 3:
51
+ _context.next = 0;
52
+ break;
53
+ case 5:
54
+ return _context.abrupt("return", Parent && Parent.querySelector(selector));
55
+ case 6:
56
+ case "end":
57
+ return _context.stop();
58
+ }
59
+ }, _callee);
60
+ }));
61
+ return function elementFinder(_x, _x2) {
62
+ return _ref2.apply(this, arguments);
63
+ };
64
+ }();
65
+ exports.elementFinder = elementFinder;
@@ -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/lib/Link/Link.js CHANGED
@@ -8,6 +8,7 @@ exports["default"] = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _defaultProps = require("./props/defaultProps");
10
10
  var _propTypes = require("./props/propTypes");
11
+ var _Common = require("@zohodesk/components/es/utils/Common");
11
12
  var _LinkModule = _interopRequireDefault(require("./Link.module.css"));
12
13
  var _LinkContext = _interopRequireDefault(require("./LinkContext"));
13
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -43,14 +44,14 @@ var Link = /*#__PURE__*/function (_React$Component) {
43
44
  target = _this$props.target;
44
45
  var onCallBack = this.context.options.onCallBack;
45
46
  if (e && (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)) {
46
- e && e.stopPropagation();
47
+ (0, _Common.cancelBubblingEffect)(e);
47
48
  return;
48
49
  }
49
50
  onClick && onClick(e);
50
51
  if (!hasReload && target != '_blank') {
51
52
  e && e.preventDefault();
52
53
  }
53
- e && e.stopPropagation();
54
+ (0, _Common.cancelBubblingEffect)(e);
54
55
  !onClick && onCallBack && onCallBack(urlOutput, href, e);
55
56
  }
56
57
  }, {
@@ -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
+ }