@zohodesk/dot 1.0.0-temp-151 → 1.0.0-temp-153

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 (364) hide show
  1. package/README.md +1300 -1261
  2. package/assets/Appearance/dark/mode/{dotDarkMode.module.css → Dot_DarkMode.module.css} +7 -7
  3. package/assets/Appearance/{default/mode/dotDefaultMode.module.css → light/mode/Dot_LightMode.module.css} +281 -281
  4. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +16 -0
  5. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +16 -0
  6. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +16 -0
  7. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +16 -0
  8. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +16 -0
  9. package/assets/Appearance/pureDark/mode/{dotPureDarkMode.module.css → Dot_PureDarkMode.module.css} +5 -5
  10. package/es/ActionButton/ActionButton.module.css +139 -139
  11. package/es/AlphabeticList/AlphabeticList.module.css +57 -57
  12. package/es/Attachment/Attachment.module.css +159 -157
  13. package/es/AttachmentViewer/AttachmentViewer.module.css +352 -352
  14. package/es/ChannelIcon/ChannelIcon.module.css +217 -217
  15. package/es/Drawer/Drawer.js +0 -0
  16. package/es/Drawer/Drawer.module.css +190 -189
  17. package/es/ExternalLink/ExternalLink.js +0 -0
  18. package/es/ExternalLink/ExternalLink.module.css +3 -3
  19. package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
  20. package/es/FlipCard/FlipCard.module.css +44 -44
  21. package/es/FormAction/FormAction.module.css +82 -82
  22. package/es/FreezeLayer/FreezeLayer.js +3 -14
  23. package/es/FreezeLayer/css/FreezeLayer.module.css +42 -42
  24. package/es/Hooks/Dragger/css/Dragger.module.css +2 -2
  25. package/es/Hooks/Dragger/props/defaultProps.js +10 -0
  26. package/es/Hooks/Dragger/props/propTypes.js +11 -0
  27. package/es/Hooks/Dragger/useDragger.js +93 -61
  28. package/es/Hooks/Dragger/utils/DraggerUtil.js +3 -42
  29. package/es/IconButton/IconButton.module.css +22 -22
  30. package/es/Image/Image.module.css +11 -10
  31. package/es/ImportantNotes/ImportantNotes.module.css +20 -20
  32. package/es/Link/Link.js +0 -0
  33. package/es/Link/Link.module.css +3 -3
  34. package/es/Loader/Loader.module.css +47 -46
  35. package/es/Message/Message.module.css +102 -102
  36. package/es/MessageBanner/MessageBanner.module.css +46 -46
  37. package/es/NewStar/NewStar.module.css +183 -175
  38. package/es/PlusIcon/PlusIcon.js +0 -0
  39. package/es/PlusIcon/PlusIcon.module.css +18 -18
  40. package/es/Separator/Separator.module.css +34 -34
  41. package/es/TagWithIcon/TagWithIcon.module.css +56 -56
  42. package/es/ToastMessage/ToastMessage.js +0 -0
  43. package/es/ToastMessage/ToastMessage.module.css +328 -328
  44. package/es/Upload/Upload.module.css +125 -125
  45. package/es/alert/AlertHeader/AlertHeader.module.css +80 -80
  46. package/es/alert/AlertLookup/AlertLookup.module.css +26 -26
  47. package/es/avatar/AvatarClose/AvatarClose.module.css +37 -37
  48. package/es/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
  49. package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
  50. package/es/avatar/AvatarStatus/AvatarStatus.js +0 -0
  51. package/es/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
  52. package/es/avatar/AvatarThread/AvatarThread.module.css +166 -166
  53. package/es/avatar/AvatarUser/AvatarUser.js +0 -0
  54. package/es/avatar/AvatarUser/AvatarUser.module.css +171 -171
  55. package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
  56. package/es/common/dot_animation.module.css +26 -26
  57. package/es/common/dot_boxShadow.module.css +37 -37
  58. package/es/common/dot_common.module.css +3 -3
  59. package/es/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -42
  60. package/es/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
  61. package/es/deprecated/utils/KeyboardApi.js +25 -25
  62. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +100 -100
  63. package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
  64. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
  65. package/es/emptystate/EditionPage/EditionPage.css +43 -43
  66. package/es/errorstate/EmptyStates.module.css +87 -87
  67. package/es/errorstate/Inconvenience/Inconvenience.module.css +7 -7
  68. package/es/errorstate/LinkText/LinkText.module.css +6 -6
  69. package/es/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
  70. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
  71. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
  72. package/es/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
  73. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
  74. package/es/errorstate/WillBack/WillBack.module.css +34 -34
  75. package/es/form/fields/CheckBoxField/CheckBoxField.js +0 -0
  76. package/es/form/fields/Fields.module.css +183 -183
  77. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
  78. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
  79. package/es/form/fields/TextEditor/TextEditor.js +10 -11
  80. package/es/form/fields/TextEditor/TextEditor.module.css +770 -763
  81. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -36
  82. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
  83. package/es/form/layout/Field/Field.js +0 -0
  84. package/es/form/layout/Field/Field.module.css +22 -22
  85. package/es/form/layout/Section/ModuleFormSection.module.css +3 -3
  86. package/es/form/layout/Section/Section.js +0 -0
  87. package/es/layout/SetupDetailLayout/SetupDetailLayout.js +15 -2
  88. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
  89. package/es/layout/SetupDetailLayout/props/defaultProps.js +4 -2
  90. package/es/layout/SetupDetailLayout/props/propTypes.js +9 -2
  91. package/es/layout/SubtabLayout/SubtabLayout.module.css +164 -164
  92. package/es/list/AvatarFlip/AvatarFlip.module.css +3 -3
  93. package/es/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
  94. package/es/list/Comment/Comment.module.css +29 -29
  95. package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
  96. package/es/list/Dot/Dot.module.css +15 -15
  97. package/es/list/DotNew/DotNew.module.css +24 -24
  98. package/es/list/GridStencils/GridStencils.module.css +146 -146
  99. package/es/list/Icons/AddNewIcon.js +2 -3
  100. package/es/list/Icons/CompleteIcon.js +2 -2
  101. package/es/list/Icons/DeleteIcon.js +3 -4
  102. package/es/list/Icons/EditIcon.js +3 -5
  103. package/es/list/Icons/Icons.module.css +16 -16
  104. package/es/list/Icons/ReadUnreadIcon.js +3 -5
  105. package/es/list/Icons/SmartIcon.js +3 -5
  106. package/es/list/ListLayout/ListLayout.module.css +57 -73
  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 +116 -116
  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 -82
  118. package/es/list/status/StatusDropdown/StatusDropdown.js +2 -9
  119. package/es/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
  120. package/es/list/status/StatusListItem/StatusListItem.js +0 -0
  121. package/es/list/status/StatusListItem/StatusListItem.module.css +109 -109
  122. package/es/lookup/EmptyPage/EmptyPage.js +0 -0
  123. package/es/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
  124. package/es/lookup/Lookup/Lookup.js +0 -0
  125. package/es/lookup/Lookup/Lookup.module.css +26 -26
  126. package/es/lookup/Section/LookupSection.module.css +7 -7
  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/TicketHeader/TicketHeader.module.css +22 -22
  130. package/es/lookup/header/Title/LookupTitle.module.css +20 -20
  131. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
  132. package/es/lookup/header/lookupHeaderCommon.module.css +41 -41
  133. package/es/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
  134. package/es/setup/header/Button/HeaderButton.module.css +5 -5
  135. package/es/setup/header/Link/HeaderLink.module.css +21 -21
  136. package/es/setup/header/Search/Search.module.css +68 -68
  137. package/es/setup/header/Views/Views.module.css +37 -37
  138. package/es/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
  139. package/es/setup/helptips/Link/HelpTipsLink.module.css +7 -7
  140. package/es/setup/helptips/Link/Link.js +0 -0
  141. package/es/setup/helptips/ListGroup/ListGroup.module.css +22 -22
  142. package/es/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
  143. package/es/setup/helptips/Title/Title.js +0 -0
  144. package/es/setup/table/TableData/SetupTableData.module.css +44 -44
  145. package/es/setup/table/TableData/Tablehover.module.css +6 -6
  146. package/es/setup/table/TableHead/SetupTableHead.module.css +12 -12
  147. package/es/setup/table/TableRow/SetupTableRow.module.css +14 -14
  148. package/es/setup/table/Text/TableText.module.css +37 -37
  149. package/es/setup/table/Text/Text.js +0 -0
  150. package/es/svg/PlusIcon.js +1 -1
  151. package/es/svg/SnippetIcon.js +2 -2
  152. package/es/version2/AlertClose/AlertClose.module.css +42 -42
  153. package/es/version2/GlobalNotification/GlobalNotification.module.css +127 -127
  154. package/es/version2/alertIcons/AlertIcons.module.css +67 -67
  155. package/es/version2/errorstate/V2_ErrorStates.module.css +46 -46
  156. package/es/version2/lookup/AlertHeader/AlertHeader.js +75 -58
  157. package/{lib/version2/lookup/AlertHeader → es/version2/lookup/AlertHeader/css}/AlertHeaderNew.module.css +87 -87
  158. package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +20 -0
  159. package/es/version2/lookup/AlertHeader/props/defaultProps.js +8 -2
  160. package/es/version2/lookup/AlertHeader/props/propTypes.js +9 -2
  161. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
  162. package/es/version2/lookup/alertLookupCommonNew.module.css +32 -32
  163. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +126 -126
  164. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
  165. package/install.md +12 -12
  166. package/lib/ActionButton/ActionButton.module.css +139 -139
  167. package/lib/AlphabeticList/AlphabeticList.js +1 -1
  168. package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
  169. package/lib/Attachment/Attachment.module.css +159 -157
  170. package/lib/AttachmentViewer/AttachmentImage.js +1 -1
  171. package/lib/AttachmentViewer/AttachmentViewer.module.css +352 -352
  172. package/lib/ChannelIcon/ChannelIcon.module.css +217 -217
  173. package/lib/Drawer/Drawer.js +0 -0
  174. package/lib/Drawer/Drawer.module.css +190 -189
  175. package/lib/ExternalLink/ExternalLink.js +1 -1
  176. package/lib/ExternalLink/ExternalLink.module.css +3 -3
  177. package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
  178. package/lib/FlipCard/FlipCard.module.css +44 -44
  179. package/lib/FormAction/FormAction.module.css +82 -82
  180. package/lib/FreezeLayer/FreezeLayer.js +3 -17
  181. package/lib/FreezeLayer/css/FreezeLayer.module.css +42 -42
  182. package/lib/Hooks/Dragger/css/Dragger.module.css +2 -2
  183. package/lib/Hooks/Dragger/props/defaultProps.js +17 -0
  184. package/lib/Hooks/Dragger/props/propTypes.js +19 -0
  185. package/lib/Hooks/Dragger/useDragger.js +91 -57
  186. package/lib/Hooks/Dragger/utils/DraggerUtil.js +3 -44
  187. package/lib/IconButton/IconButton.module.css +22 -22
  188. package/lib/Image/Image.module.css +11 -10
  189. package/lib/ImportantNotes/ImportantNotes.module.css +20 -20
  190. package/lib/Link/Link.js +0 -0
  191. package/lib/Link/Link.module.css +3 -3
  192. package/lib/Loader/Loader.module.css +47 -46
  193. package/lib/Message/Message.module.css +102 -102
  194. package/lib/MessageBanner/MessageBanner.module.css +46 -46
  195. package/lib/NewStar/NewStar.module.css +183 -175
  196. package/lib/PlusIcon/PlusIcon.js +0 -0
  197. package/lib/PlusIcon/PlusIcon.module.css +18 -18
  198. package/lib/Separator/Separator.module.css +34 -34
  199. package/lib/TagWithIcon/TagWithIcon.module.css +56 -56
  200. package/lib/ToastMessage/ToastMessage.js +1 -2
  201. package/lib/ToastMessage/ToastMessage.module.css +328 -328
  202. package/lib/Upload/Upload.module.css +125 -125
  203. package/lib/alert/AlertHeader/AlertHeader.module.css +80 -80
  204. package/lib/alert/AlertLookup/AlertLookup.js +1 -1
  205. package/lib/alert/AlertLookup/AlertLookup.module.css +26 -26
  206. package/lib/avatar/AvatarClose/AvatarClose.module.css +37 -37
  207. package/lib/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
  208. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
  209. package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -0
  210. package/lib/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
  211. package/lib/avatar/AvatarThread/AvatarThread.module.css +166 -166
  212. package/lib/avatar/AvatarUser/AvatarUser.js +1 -1
  213. package/lib/avatar/AvatarUser/AvatarUser.module.css +171 -171
  214. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
  215. package/lib/common/dot_animation.module.css +26 -26
  216. package/lib/common/dot_boxShadow.module.css +37 -37
  217. package/lib/common/dot_common.module.css +3 -3
  218. package/lib/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -42
  219. package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
  220. package/lib/deprecated/utils/KeyboardApi.js +25 -25
  221. package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +100 -100
  222. package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
  223. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
  224. package/lib/emptystate/EditionPage/EditionPage.css +43 -43
  225. package/lib/errorstate/EmptyStates.module.css +87 -87
  226. package/lib/errorstate/Inconvenience/Inconvenience.module.css +7 -7
  227. package/lib/errorstate/LinkText/LinkText.module.css +6 -6
  228. package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
  229. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
  230. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
  231. package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
  232. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
  233. package/lib/errorstate/WillBack/WillBack.module.css +34 -34
  234. package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
  235. package/lib/form/fields/CurrencyField/CurrencyField.js +1 -1
  236. package/lib/form/fields/DateField/DateField.js +1 -1
  237. package/lib/form/fields/FieldContainer/FieldContainer.js +1 -1
  238. package/lib/form/fields/Fields.module.css +183 -183
  239. package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
  240. package/lib/form/fields/PhoneField/PhoneField.js +1 -1
  241. package/lib/form/fields/RadioField/RadioField.js +1 -1
  242. package/lib/form/fields/SelectField/SelectField.js +1 -1
  243. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
  244. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +1 -1
  245. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
  246. package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
  247. package/lib/form/fields/TextEditor/TextEditor.js +11 -13
  248. package/lib/form/fields/TextEditor/TextEditor.module.css +770 -763
  249. package/lib/form/fields/TextEditorField/TextEditorField.js +1 -1
  250. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
  251. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -36
  252. package/lib/form/fields/TextareaField/TextareaField.js +1 -1
  253. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
  254. package/lib/form/layout/Field/Field.js +0 -0
  255. package/lib/form/layout/Field/Field.module.css +22 -22
  256. package/lib/form/layout/Section/ModuleFormSection.module.css +3 -3
  257. package/lib/form/layout/Section/Section.js +0 -0
  258. package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +14 -2
  259. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
  260. package/lib/layout/SetupDetailLayout/props/defaultProps.js +4 -2
  261. package/lib/layout/SetupDetailLayout/props/propTypes.js +9 -2
  262. package/lib/layout/SubtabLayout/SubtabLayout.module.css +164 -164
  263. package/lib/list/AvatarFlip/AvatarFlip.module.css +3 -3
  264. package/lib/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
  265. package/lib/list/Comment/Comment.module.css +29 -29
  266. package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
  267. package/lib/list/Dot/Dot.module.css +15 -15
  268. package/lib/list/DotNew/DotNew.module.css +24 -24
  269. package/lib/list/GridStencils/GridStencils.module.css +146 -146
  270. package/lib/list/Icons/AddNewIcon.js +2 -3
  271. package/lib/list/Icons/CompleteIcon.js +2 -2
  272. package/lib/list/Icons/DeleteIcon.js +3 -4
  273. package/lib/list/Icons/EditIcon.js +3 -5
  274. package/lib/list/Icons/Icons.module.css +16 -16
  275. package/lib/list/Icons/ReadUnreadIcon.js +3 -5
  276. package/lib/list/Icons/SmartIcon.js +3 -5
  277. package/lib/list/ListLayout/ListLayout.module.css +57 -73
  278. package/lib/list/ListStencils/ListStencils.js +1 -1
  279. package/lib/list/ListStencils/ListStencils.module.css +67 -67
  280. package/lib/list/SecondaryText/AccountName.js +1 -1
  281. package/lib/list/SecondaryText/Email.js +1 -1
  282. package/lib/list/SecondaryText/HappinessRating.js +1 -1
  283. package/lib/list/SecondaryText/PhoneNumber.js +1 -1
  284. package/lib/list/SecondaryText/SecondaryText.module.css +136 -136
  285. package/lib/list/SecondaryText/Website.js +1 -1
  286. package/lib/list/SecondryPanel/SecondryPanel.js +1 -1
  287. package/lib/list/SecondryPanel/SecondryPanel.module.css +5 -5
  288. package/lib/list/SentimentStatus/SentimentStatus.module.css +12 -12
  289. package/lib/list/Subject/Subject.module.css +27 -27
  290. package/lib/list/TagNew/TagNew.module.css +116 -116
  291. package/lib/list/Thread/Thread.module.css +42 -42
  292. package/lib/list/UserTime/UserTime.module.css +58 -58
  293. package/lib/list/listCommon.module.css +60 -82
  294. package/lib/list/status/StatusDropdown/StatusDropdown.js +2 -9
  295. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
  296. package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
  297. package/lib/list/status/StatusListItem/StatusListItem.module.css +109 -109
  298. package/lib/lookup/EmptyPage/EmptyPage.js +1 -1
  299. package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
  300. package/lib/lookup/Lookup/Lookup.js +1 -1
  301. package/lib/lookup/Lookup/Lookup.module.css +26 -26
  302. package/lib/lookup/Section/LookupSection.module.css +7 -7
  303. package/lib/lookup/header/Close/Close.js +1 -1
  304. package/lib/lookup/header/Close/LookupClose.module.css +15 -15
  305. package/lib/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
  306. package/lib/lookup/header/Search/LookupSearch.module.css +57 -57
  307. package/lib/lookup/header/Search/Search.js +1 -1
  308. package/lib/lookup/header/TicketHeader/TicketHeader.js +1 -1
  309. package/lib/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
  310. package/lib/lookup/header/Title/LookupTitle.module.css +20 -20
  311. package/lib/lookup/header/Title/Title.js +1 -1
  312. package/lib/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  313. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
  314. package/lib/lookup/header/lookupHeaderCommon.module.css +41 -41
  315. package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
  316. package/lib/setup/header/Button/HeaderButton.module.css +5 -5
  317. package/lib/setup/header/Link/HeaderLink.module.css +21 -21
  318. package/lib/setup/header/Search/Search.module.css +68 -68
  319. package/lib/setup/header/Views/Views.module.css +37 -37
  320. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
  321. package/lib/setup/helptips/Link/HelpTipsLink.module.css +7 -7
  322. package/lib/setup/helptips/Link/Link.js +0 -0
  323. package/lib/setup/helptips/ListGroup/ListGroup.module.css +22 -22
  324. package/lib/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
  325. package/lib/setup/helptips/Title/Title.js +0 -0
  326. package/lib/setup/table/TableData/SetupTableData.module.css +44 -44
  327. package/lib/setup/table/TableData/Tablehover.module.css +6 -6
  328. package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -12
  329. package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -14
  330. package/lib/setup/table/Text/TableText.module.css +37 -37
  331. package/lib/setup/table/Text/Text.js +0 -0
  332. package/lib/svg/PlusIcon.js +1 -1
  333. package/lib/svg/SnippetIcon.js +2 -2
  334. package/lib/version2/AlertClose/AlertClose.js +1 -1
  335. package/lib/version2/AlertClose/AlertClose.module.css +42 -42
  336. package/lib/version2/GlobalNotification/GlobalNotification.module.css +127 -127
  337. package/lib/version2/alertIcons/AlertIcons.module.css +67 -67
  338. package/lib/version2/errorstate/V2_ErrorStates.module.css +46 -46
  339. package/lib/version2/lookup/AlertHeader/AlertHeader.js +77 -81
  340. package/{es/version2/lookup/AlertHeader → lib/version2/lookup/AlertHeader/css}/AlertHeaderNew.module.css +87 -87
  341. package/lib/version2/lookup/AlertHeader/css/cssJSLogic.js +23 -0
  342. package/lib/version2/lookup/AlertHeader/props/defaultProps.js +10 -4
  343. package/lib/version2/lookup/AlertHeader/props/propTypes.js +11 -4
  344. package/lib/version2/lookup/AlertLookup/AlertLookup.js +1 -1
  345. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
  346. package/lib/version2/lookup/alertLookupCommonNew.module.css +32 -32
  347. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +126 -126
  348. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
  349. package/package.json +114 -99
  350. package/assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +0 -16
  351. package/assets/Appearance/default/themes/green/greenDefaultDotTheme.module.css +0 -16
  352. package/assets/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +0 -16
  353. package/assets/Appearance/default/themes/red/redDefaultDotTheme.module.css +0 -16
  354. package/assets/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +0 -16
  355. /package/assets/Appearance/dark/themes/blue/{blueDarkDotTheme.module.css → blue_DotTheme_DarkTheme.module.css} +0 -0
  356. /package/assets/Appearance/dark/themes/green/{greenDarkDotTheme.module.css → green_DotTheme_DarkTheme.module.css} +0 -0
  357. /package/assets/Appearance/dark/themes/orange/{orangeDarkDotTheme.module.css → orange_DotTheme_DarkTheme.module.css} +0 -0
  358. /package/assets/Appearance/dark/themes/red/{redDarkDotTheme.module.css → red_DotTheme_DarkTheme.module.css} +0 -0
  359. /package/assets/Appearance/dark/themes/yellow/{yellowDarkDotTheme.module.css → yellow_DotTheme_DarkTheme.module.css} +0 -0
  360. /package/assets/Appearance/pureDark/themes/blue/{bluePureDarkDotTheme.module.css → blue_DotTheme_PureDarkTheme.module.css} +0 -0
  361. /package/assets/Appearance/pureDark/themes/green/{greenPureDarkDotTheme.module.css → green_DotTheme_PureDarkTheme.module.css} +0 -0
  362. /package/assets/Appearance/pureDark/themes/orange/{orangePureDarkDotTheme.module.css → orange_DotTheme_PureDarkTheme.module.css} +0 -0
  363. /package/assets/Appearance/pureDark/themes/red/{redPureDarkDotTheme.module.css → red_DotTheme_PureDarkTheme.module.css} +0 -0
  364. /package/assets/Appearance/pureDark/themes/yellow/{yellowPureDarkDotTheme.module.css → yellow_DotTheme_PureDarkTheme.module.css} +0 -0
@@ -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,3 +1,3 @@
1
- .dragCursor{
2
- cursor: move !important;
1
+ .dragCursor{
2
+ cursor: move !important;
3
3
  }
@@ -0,0 +1,10 @@
1
+ export default {
2
+ isActive: false,
3
+ childRef: null,
4
+ boundaryLimit: {
5
+ top: 0,
6
+ left: 50,
7
+ right: 50,
8
+ bottom: 50
9
+ }
10
+ };
@@ -0,0 +1,11 @@
1
+ import PropTypes from 'prop-types';
2
+ export default {
3
+ isActive: PropTypes.bool,
4
+ childRef: PropTypes.object,
5
+ boundaryLimit: PropTypes.shape({
6
+ top: PropTypes.number,
7
+ left: PropTypes.number,
8
+ right: PropTypes.number,
9
+ bottom: PropTypes.number
10
+ })
11
+ };
@@ -1,77 +1,109 @@
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';
1
+ //Hooks from React
2
+ import { useEffect, useRef, useCallback } from "react";
3
+ //CustomFunction
4
+ import { DragPosCalc } from "./utils/DraggerUtil";
5
+ //GlobalConfig
6
+ import { getDotLibraryConfig } from "../../Provider/Config";
7
+ //Props
8
+ import defaultProps from "./props/defaultProps";
9
+ import propTypes from "./props/propTypes";
10
+ //CSS
11
+ import style from "./css/Dragger.module.css";
5
12
  export default function useDragger(_ref) {
6
13
  let {
7
- ParentRef,
8
- boundaryLimit = getDotLibraryConfig('boundaryLimit')
14
+ isActive,
15
+ ChildRef,
16
+ boundaryLimit = getDotLibraryConfig("boundaryLimit")
9
17
  } = _ref;
10
- let draggableEle = useRef(null); //To set the Draggable Element
11
- let parentEle = useRef(null); // To set the Parent Boundary Element
12
- let offset = useRef({
18
+ const draggableEle = useRef(null);
19
+ const parentEle = useRef(null);
20
+ const offset = useRef({
13
21
  x: 0,
14
22
  y: 0
15
- }); //To set the x and y Positions
16
- let draggable = useRef(false); // To get track of draggable
17
-
23
+ });
24
+ const draggable = useRef(false);
18
25
  useEffect(() => {
19
- parentEle.current = ParentRef.current || getDotLibraryConfig('draggerBoundary') || document.body;
20
- }, [ParentRef.current]);
21
- const elementDrag = e => {
26
+ parentEle.current = ChildRef.current.closest("[data-dragParent=true]") || getDotLibraryConfig("draggerBoundary") || document.body;
27
+ }, []); //did Mount
28
+
29
+ //calculateDragPosition --> To sperate Dom action
30
+ const calculateDragPosition = useCallback((x, y) => {
31
+ if (parentEle.current) {
32
+ return DragPosCalc({
33
+ x,
34
+ y,
35
+ dragWrapper: parentEle.current,
36
+ element: draggableEle.current,
37
+ boundaryLimit
38
+ });
39
+ } else {
40
+ return {
41
+ x,
42
+ y
43
+ };
44
+ }
45
+ }, []);
46
+ const elementDrag = useCallback(e => {
22
47
  e = e || window.event;
23
48
  e.preventDefault();
24
49
  if (draggable.current) {
25
50
  const left = offset.current.x + e.clientX;
26
51
  const top = offset.current.y + e.clientY;
27
- if (parentEle.current) {
28
- const calcValue = DragPosCalc({
29
- x: left,
30
- y: top,
31
- dragWrapper: parentEle.current,
32
- element: draggableEle.current,
33
- boundaryLimit
34
- });
35
- draggableEle.current.style.left = calcValue.x + 'px';
36
- draggableEle.current.style.top = calcValue.y + 'px';
37
- } else {
38
- draggableEle.current.style.left = left + 'px';
39
- draggableEle.current.style.top = top + 'px';
40
- }
52
+ const {
53
+ x,
54
+ y
55
+ } = calculateDragPosition(left, top);
56
+ draggableEle.current.style.left = x + "px";
57
+ draggableEle.current.style.top = y + "px";
41
58
  }
42
- };
43
- const closeDragElement = () => {
44
- document.removeEventListener('mouseup', closeDragElement);
45
- document.removeEventListener('mousemove', elementDrag);
46
- };
47
- const dragMouseDown = e => {
48
- //Initial position
49
- requestAnimationFrame(() => {
50
- let draggableEleRect = draggableEle.current.getBoundingClientRect();
51
- e = e || window.event;
52
- e.preventDefault();
53
- draggableEle.current.style.top = draggableEleRect.top + 'px';
54
- draggableEle.current.style.left = draggableEleRect.left + 'px';
55
- draggableEle.current.style.width = draggableEleRect.width + 'px';
56
- draggableEle.current.style.position = 'fixed';
57
- offset.current.x = draggableEle.current.offsetLeft - e.clientX;
58
- offset.current.y = draggableEle.current.offsetTop - e.clientY;
59
- draggable.current = true;
60
- document.addEventListener('mouseup', closeDragElement);
61
- document.addEventListener('mousemove', elementDrag);
62
- });
63
- };
59
+ }, [calculateDragPosition]);
60
+ const closeDragElement = useCallback(() => {
61
+ document.removeEventListener("mouseup", closeDragElement);
62
+ document.removeEventListener("mousemove", elementDrag);
63
+ }, []);
64
+ const dragMouseDown = useCallback(e => {
65
+ e = e || window.event;
66
+ e.preventDefault();
67
+ const draggableEleRect = draggableEle.current.getBoundingClientRect();
68
+ const style = draggableEle.current.style;
69
+ const {
70
+ top,
71
+ left,
72
+ width
73
+ } = draggableEleRect;
74
+ style.top = `${top}px`;
75
+ style.left = `${left}px`;
76
+ style.width = `${width}px`;
77
+ style.position = "fixed";
78
+ offset.current.x = draggableEle.current.offsetLeft - e.clientX;
79
+ offset.current.y = draggableEle.current.offsetTop - e.clientY;
80
+ draggable.current = true;
81
+ document.addEventListener("mouseup", closeDragElement);
82
+ document.addEventListener("mousemove", elementDrag);
83
+ }, []);
84
+ const removeListener = useCallback(draggableEle => {
85
+ let dragController = draggableEle.current.querySelector("[data-drag-hook=true]");
86
+ if (dragController) {
87
+ dragController.removeEventListener("mousedown", dragMouseDown);
88
+ draggableEle.current = null;
89
+ }
90
+ }, []);
64
91
  useEffect(() => {
65
- elementFinder(parentEle.current, '[data-drag-container=true]').then(draggableElement => {
66
- draggableEle.current = draggableElement;
67
- let dragController = draggableEle.current && draggableEle.current.querySelector('[data-drag-hook=true]');
68
- // ? draggableEle.current.querySelector("[data-drag-hook=true]")
69
- // : draggableEle.current;
70
- dragController && dragController.addEventListener('mousedown', dragMouseDown);
92
+ if (isActive) {
93
+ draggableEle.current = ChildRef.current.closest("[data-drag-container=true]");
94
+ let dragController = draggableEle.current && draggableEle.current.querySelector("[data-drag-hook=true]");
95
+ dragController && dragController.addEventListener("mousedown", dragMouseDown);
71
96
  dragController && dragController.classList.add(style.dragCursor);
72
- });
73
- }, [parentEle.current]);
97
+ } else {
98
+ removeListener(draggableEle);
99
+ }
100
+ return () => {
101
+ removeListener(draggableEle);
102
+ };
103
+ }, [ChildRef.current, isActive]);
104
+ return null;
74
105
  }
75
106
 
76
- //data-drag-container => To Mention Draggable Element
77
- //data-drag-hook =>To Mention Draggable target element
107
+ //Props
108
+ useDragger.propTypes = propTypes;
109
+ useDragger.defaultProps = defaultProps;
@@ -6,8 +6,6 @@ export function DragPosCalc(_ref) {
6
6
  dragWrapper,
7
7
  boundaryLimit
8
8
  } = _ref;
9
- //percent = 50%
10
- // const percentobj = { top: 0, left: 10, right: 2, bottom: 90 };
11
9
  let {
12
10
  top,
13
11
  left,
@@ -20,47 +18,10 @@ export function DragPosCalc(_ref) {
20
18
  const leftOffset = left ? offsetWidth - left : 0;
21
19
  const rightOffset = right ? offsetWidth - right : 0;
22
20
  const bottomOffset = bottom ? offsetHeight - bottom : 0;
23
- if (x < -leftOffset) {
24
- //LEFT
25
- x = -leftOffset;
26
- }
27
- if (x > dragWrapper.offsetWidth - element.offsetWidth + rightOffset) {
28
- //RIGHT
29
- x = dragWrapper.offsetWidth - element.offsetWidth + rightOffset;
30
- }
31
- if (y < -topOffset) {
32
- //TOP
33
- y = -topOffset;
34
- }
35
- if (y > dragWrapper.offsetHeight - element.offsetHeight + bottomOffset) {
36
- //BOTTOM
37
- y = dragWrapper.offsetHeight - element.offsetHeight + bottomOffset;
38
- }
21
+ x = Math.max(-leftOffset, Math.min(x, dragWrapper.offsetWidth - element.offsetWidth + rightOffset));
22
+ y = Math.max(-topOffset, Math.min(y, dragWrapper.offsetHeight - element.offsetHeight + bottomOffset));
39
23
  return {
40
24
  x,
41
25
  y
42
26
  };
43
- }
44
-
45
- // export const elementFinder = async (Parent, selector) => {
46
- // while (Parent && Parent.querySelector(selector) === null) {
47
- // await new Promise((resolve) => requestAnimationFrame(resolve));
48
- // }
49
- // return Parent && Parent.querySelector(selector);
50
- // };
51
-
52
- export const elementFinder = (Parent, selector) => {
53
- return new Promise(resolve => {
54
- const observer = new MutationObserver(mutations => {
55
- const element = Parent.querySelector(selector);
56
- if (element) {
57
- observer.disconnect();
58
- resolve(element);
59
- }
60
- });
61
- observer.observe(Parent, {
62
- childList: true,
63
- subtree: true
64
- });
65
- });
66
- };
27
+ }
@@ -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: 28px;
6
+ width: 28px;
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,12 @@
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
+ /* Variable:Ignore */
11
+ font-size: 12px
11
12
  }
@@ -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: 5px 10px;
4
+ }
5
+ .title {
6
+ font-size: 13px;
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: 1px;
14
+ }
15
+ [dir=ltr] .icon {
16
+ margin-right: 5px;
17
+ }
18
+ [dir=rtl] .icon {
19
+ margin-left: 5px;
20
+ }
package/es/Link/Link.js CHANGED
File without changes
@@ -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,47 @@
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
+ /* Variable:Ignore */
14
+ height: 3px;
15
+ background-image: var(--zdt_loader_gradient_bg);
16
+ background-size: 200% auto;
17
+ }
18
+ [dir=ltr] .loader {
19
+ background-position: 0 100%;
20
+ animation: loading-ltr 3s infinite;
21
+ animation-fill-mode: forwards;
22
+ animation-timing-function: linear;
23
+ }
24
+ [dir=rtl] .loader {
25
+ background-position: 100% 100%;
26
+ animation: loading-rtl 3s infinite;
27
+ animation-fill-mode: forwards;
28
+ animation-timing-function: linear;
29
+ }
30
+
31
+ @keyframes loading-ltr {
32
+ 0% {
33
+ background-position: 0 0;
34
+ }
35
+ 100% {
36
+ background-position: -200% 0;
37
+ }
38
+ }
39
+
40
+ @keyframes loading-rtl {
41
+ 0% {
42
+ background-position: 100% 0;
43
+ }
44
+ 100% {
45
+ background-position: 300% 0;
46
+ }
47
+ }