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

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 (217) hide show
  1. package/README.md +18 -0
  2. package/assets/Appearance/dark/mode/dotDarkMode.module.css +1 -1
  3. package/assets/Appearance/default/mode/dotDefaultMode.module.css +1 -1
  4. package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +1 -1
  5. package/es/ActionButton/ActionButton.module.css +14 -14
  6. package/es/AlphabeticList/AlphabeticList.module.css +10 -10
  7. package/es/Attachment/Attachment.module.css +26 -24
  8. package/es/AttachmentViewer/AttachmentViewer.module.css +41 -41
  9. package/es/ChannelIcon/ChannelIcon.module.css +22 -22
  10. package/es/Drawer/Drawer.module.css +41 -40
  11. package/es/FormAction/FormAction.module.css +20 -20
  12. package/es/FreezeLayer/FreezeLayer.js +5 -13
  13. package/es/Hooks/Dragger/useDragger.js +7 -2
  14. package/es/IconButton/IconButton.module.css +2 -2
  15. package/es/Image/Image.module.css +1 -0
  16. package/es/ImportantNotes/ImportantNotes.module.css +5 -5
  17. package/es/Loader/Loader.module.css +1 -0
  18. package/es/Message/Message.module.css +9 -9
  19. package/es/MessageBanner/MessageBanner.module.css +7 -7
  20. package/es/NewStar/NewStar.module.css +18 -10
  21. package/es/Separator/Separator.module.css +6 -6
  22. package/es/TagWithIcon/TagWithIcon.module.css +6 -6
  23. package/es/ToastMessage/ToastMessage.module.css +23 -23
  24. package/es/Upload/Upload.module.css +15 -15
  25. package/es/alert/AlertHeader/AlertHeader.module.css +12 -12
  26. package/es/alert/AlertLookup/AlertLookup.module.css +6 -6
  27. package/es/avatar/AvatarClose/AvatarClose.module.css +1 -1
  28. package/es/avatar/AvatarCollision/AvatarCollision.module.css +7 -7
  29. package/es/avatar/AvatarStatus/AvatarStatus.module.css +32 -32
  30. package/es/avatar/AvatarThread/AvatarThread.module.css +24 -24
  31. package/es/avatar/AvatarUser/AvatarUser.module.css +40 -40
  32. package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +4 -4
  33. package/es/deprecated/SelectDropdown/SelectDropdown.module.css +11 -11
  34. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +13 -13
  35. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +11 -11
  36. package/es/emptystate/EditionPage/EditionPage.css +13 -13
  37. package/es/errorstate/EmptyStates.module.css +18 -18
  38. package/es/errorstate/Inconvenience/Inconvenience.module.css +3 -3
  39. package/es/errorstate/LinkText/LinkText.module.css +1 -1
  40. package/es/errorstate/NoRequestFound/NoRequestFound.module.css +1 -1
  41. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +8 -8
  42. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +1 -1
  43. package/es/errorstate/UnableToProcess/UnableToProcess.module.css +1 -1
  44. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +1 -1
  45. package/es/errorstate/WillBack/WillBack.module.css +10 -10
  46. package/es/form/fields/Fields.module.css +26 -26
  47. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +13 -13
  48. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +3 -3
  49. package/es/form/fields/TextEditor/TextEditor.js +10 -11
  50. package/es/form/fields/TextEditor/TextEditor.module.css +84 -77
  51. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +3 -2
  52. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +3 -3
  53. package/es/layout/SetupDetailLayout/SetupDetailLayout.js +18 -3
  54. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +31 -31
  55. package/es/layout/SetupDetailLayout/props/defaultProps.js +4 -2
  56. package/es/layout/SetupDetailLayout/props/propTypes.js +10 -2
  57. package/es/layout/SubtabLayout/SubtabLayout.module.css +32 -32
  58. package/es/list/BluePrintStatus/BluePrintStatus.module.css +3 -3
  59. package/es/list/Comment/Comment.module.css +4 -4
  60. package/es/list/Dot/Dot.module.css +3 -3
  61. package/es/list/DotNew/DotNew.module.css +4 -4
  62. package/es/list/GridStencils/GridStencils.module.css +24 -24
  63. package/es/list/Icons/AddNewIcon.js +2 -3
  64. package/es/list/Icons/CompleteIcon.js +2 -2
  65. package/es/list/Icons/DeleteIcon.js +3 -4
  66. package/es/list/Icons/EditIcon.js +3 -5
  67. package/es/list/Icons/Icons.module.css +2 -2
  68. package/es/list/Icons/ReadUnreadIcon.js +3 -5
  69. package/es/list/Icons/SmartIcon.js +3 -5
  70. package/es/list/ListLayout/ListLayout.module.css +14 -30
  71. package/es/list/ListStencils/ListStencils.module.css +12 -12
  72. package/es/list/SecondaryText/SecondaryText.module.css +11 -11
  73. package/es/list/SentimentStatus/SentimentStatus.module.css +3 -3
  74. package/es/list/TagNew/TagNew.module.css +4 -4
  75. package/es/list/Thread/Thread.module.css +7 -7
  76. package/es/list/UserTime/UserTime.module.css +8 -8
  77. package/es/list/listCommon.module.css +9 -31
  78. package/es/list/status/StatusDropdown/StatusDropdown.js +2 -9
  79. package/es/list/status/StatusDropdown/StatusDropdown.module.css +13 -13
  80. package/es/list/status/StatusListItem/StatusListItem.module.css +16 -16
  81. package/es/lookup/EmptyPage/LookupEmptyPage.module.css +3 -3
  82. package/es/lookup/Lookup/Lookup.module.css +5 -5
  83. package/es/lookup/Section/LookupSection.module.css +1 -1
  84. package/es/lookup/header/Close/LookupClose.module.css +3 -3
  85. package/es/lookup/header/Search/LookupSearch.module.css +14 -14
  86. package/es/lookup/header/TicketHeader/TicketHeader.module.css +2 -2
  87. package/es/lookup/header/Title/LookupTitle.module.css +1 -1
  88. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +11 -11
  89. package/es/lookup/header/lookupHeaderCommon.module.css +8 -8
  90. package/es/lookup/header/lookupHeaderCommonResponsive.module.css +3 -3
  91. package/es/setup/header/Button/HeaderButton.module.css +2 -2
  92. package/es/setup/header/Link/HeaderLink.module.css +5 -5
  93. package/es/setup/header/Search/Search.module.css +8 -8
  94. package/es/setup/header/Views/Views.module.css +4 -4
  95. package/es/setup/helptips/Description/HelpTipsDescription.module.css +2 -2
  96. package/es/setup/helptips/Link/HelpTipsLink.module.css +2 -2
  97. package/es/setup/helptips/ListGroup/ListGroup.module.css +3 -3
  98. package/es/setup/helptips/Title/HelpTipsTitle.module.css +1 -1
  99. package/es/setup/table/TableData/SetupTableData.module.css +6 -6
  100. package/es/setup/table/TableHead/SetupTableHead.module.css +5 -5
  101. package/es/setup/table/TableRow/SetupTableRow.module.css +5 -5
  102. package/es/setup/table/Text/TableText.module.css +2 -2
  103. package/es/version2/AlertClose/AlertClose.module.css +2 -2
  104. package/es/version2/GlobalNotification/GlobalNotification.module.css +13 -13
  105. package/es/version2/errorstate/V2_ErrorStates.module.css +17 -17
  106. package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +13 -13
  107. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +6 -6
  108. package/es/version2/lookup/alertLookupCommonNew.module.css +5 -5
  109. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +14 -14
  110. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +23 -23
  111. package/lib/ActionButton/ActionButton.module.css +14 -14
  112. package/lib/AlphabeticList/AlphabeticList.module.css +10 -10
  113. package/lib/Attachment/Attachment.module.css +26 -24
  114. package/lib/AttachmentViewer/AttachmentViewer.module.css +41 -41
  115. package/lib/ChannelIcon/ChannelIcon.module.css +22 -22
  116. package/lib/Drawer/Drawer.module.css +41 -40
  117. package/lib/FormAction/FormAction.module.css +20 -20
  118. package/lib/FreezeLayer/FreezeLayer.js +5 -13
  119. package/lib/Hooks/Dragger/useDragger.js +7 -2
  120. package/lib/IconButton/IconButton.module.css +2 -2
  121. package/lib/Image/Image.module.css +1 -0
  122. package/lib/ImportantNotes/ImportantNotes.module.css +5 -5
  123. package/lib/Loader/Loader.module.css +1 -0
  124. package/lib/Message/Message.module.css +9 -9
  125. package/lib/MessageBanner/MessageBanner.module.css +7 -7
  126. package/lib/NewStar/NewStar.module.css +18 -10
  127. package/lib/Separator/Separator.module.css +6 -6
  128. package/lib/TagWithIcon/TagWithIcon.module.css +6 -6
  129. package/lib/ToastMessage/ToastMessage.module.css +23 -23
  130. package/lib/Upload/Upload.module.css +15 -15
  131. package/lib/alert/AlertHeader/AlertHeader.module.css +12 -12
  132. package/lib/alert/AlertLookup/AlertLookup.module.css +6 -6
  133. package/lib/avatar/AvatarClose/AvatarClose.module.css +1 -1
  134. package/lib/avatar/AvatarCollision/AvatarCollision.module.css +7 -7
  135. package/lib/avatar/AvatarStatus/AvatarStatus.module.css +32 -32
  136. package/lib/avatar/AvatarThread/AvatarThread.module.css +24 -24
  137. package/lib/avatar/AvatarUser/AvatarUser.module.css +40 -40
  138. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +4 -4
  139. package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +11 -11
  140. package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +13 -13
  141. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +11 -11
  142. package/lib/emptystate/EditionPage/EditionPage.css +13 -13
  143. package/lib/errorstate/EmptyStates.module.css +18 -18
  144. package/lib/errorstate/Inconvenience/Inconvenience.module.css +3 -3
  145. package/lib/errorstate/LinkText/LinkText.module.css +1 -1
  146. package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +1 -1
  147. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +8 -8
  148. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +1 -1
  149. package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +1 -1
  150. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +1 -1
  151. package/lib/errorstate/WillBack/WillBack.module.css +10 -10
  152. package/lib/form/fields/Fields.module.css +26 -26
  153. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +13 -13
  154. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +3 -3
  155. package/lib/form/fields/TextEditor/TextEditor.js +10 -11
  156. package/lib/form/fields/TextEditor/TextEditor.module.css +84 -77
  157. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +3 -2
  158. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +3 -3
  159. package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +18 -3
  160. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +31 -31
  161. package/lib/layout/SetupDetailLayout/props/defaultProps.js +4 -2
  162. package/lib/layout/SetupDetailLayout/props/propTypes.js +10 -2
  163. package/lib/layout/SubtabLayout/SubtabLayout.module.css +32 -32
  164. package/lib/list/BluePrintStatus/BluePrintStatus.module.css +3 -3
  165. package/lib/list/Comment/Comment.module.css +4 -4
  166. package/lib/list/Dot/Dot.module.css +3 -3
  167. package/lib/list/DotNew/DotNew.module.css +4 -4
  168. package/lib/list/GridStencils/GridStencils.module.css +24 -24
  169. package/lib/list/Icons/AddNewIcon.js +2 -3
  170. package/lib/list/Icons/CompleteIcon.js +2 -2
  171. package/lib/list/Icons/DeleteIcon.js +3 -4
  172. package/lib/list/Icons/EditIcon.js +3 -5
  173. package/lib/list/Icons/Icons.module.css +2 -2
  174. package/lib/list/Icons/ReadUnreadIcon.js +3 -5
  175. package/lib/list/Icons/SmartIcon.js +3 -5
  176. package/lib/list/ListLayout/ListLayout.module.css +14 -30
  177. package/lib/list/ListStencils/ListStencils.module.css +12 -12
  178. package/lib/list/SecondaryText/SecondaryText.module.css +11 -11
  179. package/lib/list/SentimentStatus/SentimentStatus.module.css +3 -3
  180. package/lib/list/TagNew/TagNew.module.css +4 -4
  181. package/lib/list/Thread/Thread.module.css +7 -7
  182. package/lib/list/UserTime/UserTime.module.css +8 -8
  183. package/lib/list/listCommon.module.css +9 -31
  184. package/lib/list/status/StatusDropdown/StatusDropdown.js +2 -9
  185. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +13 -13
  186. package/lib/list/status/StatusListItem/StatusListItem.module.css +16 -16
  187. package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +3 -3
  188. package/lib/lookup/Lookup/Lookup.module.css +5 -5
  189. package/lib/lookup/Section/LookupSection.module.css +1 -1
  190. package/lib/lookup/header/Close/LookupClose.module.css +3 -3
  191. package/lib/lookup/header/Search/LookupSearch.module.css +14 -14
  192. package/lib/lookup/header/TicketHeader/TicketHeader.module.css +2 -2
  193. package/lib/lookup/header/Title/LookupTitle.module.css +1 -1
  194. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +11 -11
  195. package/lib/lookup/header/lookupHeaderCommon.module.css +8 -8
  196. package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +3 -3
  197. package/lib/setup/header/Button/HeaderButton.module.css +2 -2
  198. package/lib/setup/header/Link/HeaderLink.module.css +5 -5
  199. package/lib/setup/header/Search/Search.module.css +8 -8
  200. package/lib/setup/header/Views/Views.module.css +4 -4
  201. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +2 -2
  202. package/lib/setup/helptips/Link/HelpTipsLink.module.css +2 -2
  203. package/lib/setup/helptips/ListGroup/ListGroup.module.css +3 -3
  204. package/lib/setup/helptips/Title/HelpTipsTitle.module.css +1 -1
  205. package/lib/setup/table/TableData/SetupTableData.module.css +6 -6
  206. package/lib/setup/table/TableHead/SetupTableHead.module.css +5 -5
  207. package/lib/setup/table/TableRow/SetupTableRow.module.css +5 -5
  208. package/lib/setup/table/Text/TableText.module.css +2 -2
  209. package/lib/version2/AlertClose/AlertClose.module.css +2 -2
  210. package/lib/version2/GlobalNotification/GlobalNotification.module.css +13 -13
  211. package/lib/version2/errorstate/V2_ErrorStates.module.css +17 -17
  212. package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +13 -13
  213. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +6 -6
  214. package/lib/version2/lookup/alertLookupCommonNew.module.css +5 -5
  215. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +14 -14
  216. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +23 -23
  217. package/package.json +23 -9
@@ -13,64 +13,64 @@
13
13
  border-top: solid 1px var(--footerBorder);
14
14
  }
15
15
  .largeFooter {
16
- padding-top: var(--zd_size24);
17
- padding-bottom: var(--zd_size24);
16
+ padding-top: 24px;
17
+ padding-bottom: 24px;
18
18
  }
19
19
  .mediumFooter {
20
- padding-top: var(--zd_size20);
21
- padding-bottom: var(--zd_size20);
20
+ padding-top: 20px;
21
+ padding-bottom: 20px;
22
22
  }
23
23
  .smallFooter {
24
- padding-top: var(--zd_size10);
25
- padding-bottom: var(--zd_size10);
24
+ padding-top: 10px;
25
+ padding-bottom: 10px;
26
26
  }
27
27
 
28
28
  [dir=ltr] .largePadding {
29
- padding-left: var(--zd_size60);
29
+ padding-left: 60px;
30
30
  }
31
31
 
32
32
  [dir=rtl] .largePadding {
33
- padding-right: var(--zd_size60);
33
+ padding-right: 60px;
34
34
  }
35
35
  [dir=ltr] .mediumPadding {
36
- padding-left: var(--zd_size50);
36
+ padding-left: 50px;
37
37
  }
38
38
  [dir=rtl] .mediumPadding {
39
- padding-right: var(--zd_size50);
39
+ padding-right: 50px;
40
40
  }
41
41
  [dir=ltr] .xmediumPadding {
42
- padding-left: var(--zd_size30);
42
+ padding-left: 30px;
43
43
  }
44
44
  [dir=rtl] .xmediumPadding {
45
- padding-right: var(--zd_size30);
45
+ padding-right: 30px;
46
46
  }
47
47
  [dir=ltr] .smallPadding {
48
- padding-left: var(--zd_size25);
48
+ padding-left: 25px;
49
49
  }
50
50
  [dir=rtl] .smallPadding {
51
- padding-right: var(--zd_size25);
51
+ padding-right: 25px;
52
52
  }
53
53
  [dir=ltr] .xsmallPadding {
54
- padding-left: var(--zd_size20);
54
+ padding-left: 20px;
55
55
  }
56
56
  [dir=rtl] .xsmallPadding {
57
- padding-right: var(--zd_size20);
57
+ padding-right: 20px;
58
58
  }
59
59
 
60
60
  .marginRight {
61
61
  composes: dinblk from '~@zohodesk/components/lib/common/common.module.css';
62
62
  }
63
63
  [dir=ltr] .largeFooter .marginRight, [dir=ltr] .mediumFooter .marginRight {
64
- margin-right: var(--zd_size15);
64
+ margin-right: 15px;
65
65
  }
66
66
  [dir=rtl] .largeFooter .marginRight, [dir=rtl] .mediumFooter .marginRight {
67
- margin-left: var(--zd_size15);
67
+ margin-left: 15px;
68
68
  }
69
69
  [dir=ltr] .smallFooter .marginRight {
70
- margin-right: var(--zd_size12);
70
+ margin-right: 12px;
71
71
  }
72
72
  [dir=rtl] .smallFooter .marginRight {
73
- margin-left: var(--zd_size12);
73
+ margin-left: 12px;
74
74
  }
75
75
 
76
76
  [dir=ltr] .marginRight:last-child {
@@ -15,10 +15,10 @@ var _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider"
15
15
  var _cssJSLogic2 = _interopRequireDefault(require("./css/cssJSLogic"));
16
16
  var _useFreezeLayer2 = _interopRequireDefault(require("./useFreezeLayer"));
17
17
  var _FreezeLayerModule = _interopRequireDefault(require("./css/FreezeLayer.module.css"));
18
- var _useDragger = _interopRequireDefault(require("../Hooks/Dragger/useDragger"));
19
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
20
19
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
20
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+ // import useDragger from '../Hooks/Dragger/useDragger';
22
22
  function FreezeLayer(props) {
23
23
  var propsActive = props.isActive,
24
24
  children = props.children,
@@ -33,7 +33,7 @@ function FreezeLayer(props) {
33
33
  needAutoZindex = props.needAutoZindex,
34
34
  customStyle = props.customStyle;
35
35
  var finalStyle = (0, _utils.mergeStyle)(_FreezeLayerModule["default"], customStyle);
36
- var dragRef = (0, _react.useRef)(null);
36
+ // const dragRef = useRef(null);
37
37
  var _cssJSLogic = (0, _cssJSLogic2["default"])({
38
38
  props: props,
39
39
  style: finalStyle
@@ -47,16 +47,8 @@ function FreezeLayer(props) {
47
47
  isActive = _useFreezeLayer.isActive,
48
48
  isChildActive = _useFreezeLayer.isChildActive,
49
49
  handleClick = _useFreezeLayer.handleClick;
50
- var refEle = forwardRef || dragRef;
51
- (0, _useDragger["default"])({
52
- ParentRef: refEle,
53
- boundaryLimit: {
54
- top: 0,
55
- left: 50,
56
- right: 50,
57
- bottom: 50
58
- }
59
- });
50
+ // let refEle = forwardRef || dragRef;
51
+ // useDragger({ ParentRef: refEle, boundaryLimit: { top: 0, left: 50, right: 50, bottom: 50 } });
60
52
  return /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
61
53
  name: animationName && animationName,
62
54
  isActive: isActive,
@@ -67,7 +59,7 @@ function FreezeLayer(props) {
67
59
  } : {},
68
60
  className: freezeClass,
69
61
  onClick: handleClick,
70
- ref: refEle
62
+ ref: forwardRef
71
63
  }, children && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, childAnimationName ? /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
72
64
  name: childAnimationName,
73
65
  isActive: isChildActive,
@@ -54,10 +54,15 @@ function useDragger(_ref) {
54
54
  //Initial position
55
55
  requestAnimationFrame(function () {
56
56
  var draggableEleRect = draggableEle.current.getBoundingClientRect();
57
+ var parentEleRect = parentEle.current.getBoundingClientRect();
58
+ var relativeRect = {
59
+ left: draggableEleRect.left - parentEleRect.left,
60
+ top: draggableEleRect.top - parentEleRect.top
61
+ };
57
62
  e = e || window.event;
58
63
  e.preventDefault();
59
- draggableEle.current.style.top = draggableEleRect.top + 'px';
60
- draggableEle.current.style.left = draggableEleRect.left + 'px';
64
+ draggableEle.current.style.top = relativeRect.top + 'px';
65
+ draggableEle.current.style.left = relativeRect.left + 'px';
61
66
  draggableEle.current.style.width = draggableEleRect.width + 'px';
62
67
  draggableEle.current.style.position = 'fixed';
63
68
  offset.current.x = draggableEle.current.offsetLeft - e.clientX;
@@ -2,8 +2,8 @@
2
2
  --iconColor: var(--zdt_iconButton_icon_black);
3
3
  }
4
4
  .wrapper {
5
- height: var(--zd_size28);
6
- width: var(--zd_size28);
5
+ height: 28px;
6
+ width: 28px;
7
7
  composes: offSelection from '~@zohodesk/components/lib/common/common.module.css';
8
8
  composes: varClass;
9
9
  color: var(--iconColor);
@@ -7,5 +7,6 @@
7
7
  max-width:100%
8
8
  }
9
9
  .imgFullSize, .imgMaxFullSize{
10
+ /* Variable:Ignore */
10
11
  font-size: 12px
11
12
  }
@@ -1,20 +1,20 @@
1
1
  .section {
2
2
  background: var(--zdt_importantnotes_bg);
3
- padding: var(--zd_size5) var(--zd_size10);
3
+ padding: 5px 10px;
4
4
  }
5
5
  .title {
6
- font-size: var(--zd_font_size13);
6
+ font-size: 13px;
7
7
  line-height: var(--zd_font_size18);
8
8
  color: var(--zdt_importantnotes_title_text);
9
9
  }
10
10
  .icon {
11
11
  color: var(--zdt_importantnotes_icon);
12
12
  font-size: 0;
13
- margin-top: var(--zd_size1);
13
+ margin-top: 1px;
14
14
  }
15
15
  [dir=ltr] .icon {
16
- margin-right: var(--zd_size5);
16
+ margin-right: 5px;
17
17
  }
18
18
  [dir=rtl] .icon {
19
- margin-left: var(--zd_size5);
19
+ margin-left: 5px;
20
20
  }
@@ -10,6 +10,7 @@
10
10
  }
11
11
  .loader {
12
12
  width: 100%;
13
+ /* Variable:Ignore */
13
14
  height: 3px;
14
15
  background-image: var(--zdt_loader_gradient_bg);
15
16
  background-size: 200% auto;
@@ -23,18 +23,18 @@
23
23
  }
24
24
 
25
25
  [dir=ltr] .container {
26
- padding: var(--zd_size13) var(--zd_size10) var(--zd_size13) var(--zd_size50);
26
+ padding: 13px 10px 13px 50px;
27
27
  }
28
28
 
29
29
  [dir=rtl] .container {
30
- padding: var(--zd_size13) var(--zd_size50) var(--zd_size13) var(--zd_size10);
30
+ padding: 13px 50px 13px 10px;
31
31
  }
32
32
 
33
33
  .text {
34
- max-width: var(--zd_size480);
34
+ max-width: 480px;
35
35
  display: inline-block;
36
36
  word-break: break-word;
37
- font-size: var(--zd_font_size14);
37
+ font-size: 14px;
38
38
  vertical-align: middle;
39
39
  }
40
40
 
@@ -49,7 +49,7 @@
49
49
  .icon {
50
50
  position: absolute;
51
51
  top: 0;
52
- width: var(--zd_size40);
52
+ width: 40px;
53
53
  display: inline-block;
54
54
  height: 100%;
55
55
  }
@@ -81,23 +81,23 @@
81
81
 
82
82
  .tickIcn {
83
83
  color: var(--zdt_message_tickicon);
84
- font-size: var(--zd_font_size16);
84
+ font-size: 16px;
85
85
  position: absolute;
86
86
  composes: middleBoth from '~@zohodesk/components/lib/common/common.module.css';
87
87
  }
88
88
 
89
89
  .close {
90
90
  color: var(--zdt_message_close_text);
91
- font-size: var(--zd_font_size16);
91
+ font-size: 16px;
92
92
  display: inline-block;
93
93
  vertical-align: middle;
94
94
  cursor: pointer;
95
95
  }
96
96
 
97
97
  [dir=ltr] .close {
98
- margin-left: var(--zd_size10);
98
+ margin-left: 10px;
99
99
  }
100
100
 
101
101
  [dir=rtl] .close {
102
- margin-right: var(--zd_size10);
102
+ margin-right: 10px;
103
103
  }
@@ -1,29 +1,29 @@
1
1
  .type_secondary {
2
- max-width: var(--zd_size468);
2
+ max-width: 468px;
3
3
  border-radius: 3px;
4
4
  margin: 0 auto;
5
5
  }
6
6
  .message {
7
7
  color: var(--zdt_messagebanner_text);
8
8
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
9
- padding: var(--zd_size10) 0;
9
+ padding: 10px 0;
10
10
  }
11
11
  [dir=ltr] .message {
12
- margin-left: var(--zd_size10);
12
+ margin-left: 10px;
13
13
  }
14
14
  [dir=rtl] .message {
15
- margin-right: var(--zd_size10);
15
+ margin-right: 10px;
16
16
  }
17
17
  .link {
18
18
  color: var(--zdt_messagebanner_link_text);
19
19
  }
20
20
  [dir=ltr] .link {
21
- margin-left: var(--zd_size5);
21
+ margin-left: 5px;
22
22
  }
23
23
  [dir=rtl] .link {
24
- margin-right: var(--zd_size5);
24
+ margin-right: 5px;
25
25
  }
26
- .message,.link{font-size: var(--zd_font_size14);}
26
+ .message,.link{font-size: 14px;}
27
27
  .close {
28
28
  color: var(--zdt_messagebanner_close_text);
29
29
  cursor: pointer;
@@ -1,7 +1,7 @@
1
1
  .star {
2
2
  position: absolute;
3
- height: var(--zd_size20);
4
- width: var(--zd_size21);
3
+ height: 20px;
4
+ width: 21px;
5
5
  }
6
6
  .topLeft {
7
7
  top: 0;
@@ -96,11 +96,13 @@
96
96
  left:0}
97
97
 
98
98
  [dir=rtl] .topLeft .starOne{right:0}
99
- .topLeft .starTwo{top:0}
99
+ .topLeft .starTwo{top:0
100
+ /* Variable:Ignore */}
100
101
  [dir=ltr] .topLeft .starTwo{
101
102
  left:10px}
102
103
  [dir=rtl] .topLeft .starTwo{right:10px}
103
- .topLeft .starThree{top:10px}
104
+ .topLeft .starThree{
105
+ /* Variable:Ignore */top:10px}
104
106
  [dir=ltr] .topLeft .starThree{
105
107
  left:0}
106
108
  [dir=rtl] .topLeft .starThree{right:0}
@@ -111,11 +113,13 @@
111
113
  right:0}
112
114
 
113
115
  [dir=rtl] .topRight .starOne{left:0}
114
- .topRight .starTwo{top:0}
116
+ .topRight .starTwo{top:0
117
+ /* Variable:Ignore */}
115
118
  [dir=ltr] .topRight .starTwo{
116
119
  right:10px}
117
120
  [dir=rtl] .topRight .starTwo{left:10px}
118
- .topRight .starThree{top:10px}
121
+ .topRight .starThree{
122
+ /* Variable:Ignore */top:10px}
119
123
  [dir=ltr] .topRight .starThree{
120
124
  right:0}
121
125
  [dir=rtl] .topRight .starThree{left:0}
@@ -126,11 +130,13 @@
126
130
  left:0}
127
131
 
128
132
  [dir=rtl] .bottomLeft .starOne{right:0}
129
- .bottomLeft .starTwo{bottom:0}
133
+ .bottomLeft .starTwo{bottom:0
134
+ /* Variable:Ignore */}
130
135
  [dir=ltr] .bottomLeft .starTwo{
131
136
  left:10px}
132
137
  [dir=rtl] .bottomLeft .starTwo{right:10px}
133
- .bottomLeft .starThree{bottom:10px}
138
+ .bottomLeft .starThree{
139
+ /* Variable:Ignore */bottom:10px}
134
140
  [dir=ltr] .bottomLeft .starThree{
135
141
  left:0}
136
142
  [dir=rtl] .bottomLeft .starThree{right:0}
@@ -141,11 +147,13 @@
141
147
  right:0}
142
148
 
143
149
  [dir=rtl] .bottomRight .starOne{left:0}
144
- .bottomRight .starTwo{bottom:0}
150
+ .bottomRight .starTwo{bottom:0
151
+ /* Variable:Ignore */}
145
152
  [dir=ltr] .bottomRight .starTwo{
146
153
  right:10px}
147
154
  [dir=rtl] .bottomRight .starTwo{left:10px}
148
- .bottomRight .starThree{bottom:10px}
155
+ .bottomRight .starThree{
156
+ /* Variable:Ignore */bottom:10px}
149
157
  [dir=ltr] .bottomRight .starThree{
150
158
  right:0}
151
159
  [dir=rtl] .bottomRight .starThree{left:0}
@@ -1,23 +1,23 @@
1
1
  .varClass {
2
- --separator_fontSize: var(--zd_font_size15);
2
+ --separator_fontSize: 15px;
3
3
  }
4
4
  .separator {
5
5
  font-size: var(--separator_fontSize);
6
- margin: 0 var(--zd_size5);
6
+ margin: 0 5px;
7
7
  }
8
8
  .dot {
9
- --separator_fontSize: var(--zd_font_size8);
9
+ --separator_fontSize: 8px;
10
10
  }
11
11
  .slash {
12
- --separator_fontSize: var(--zd_font_size10);
12
+ --separator_fontSize: 10px;
13
13
  /* line-height: var(--zd_size10); */
14
14
  }
15
15
  .arrow {
16
- --separator_fontSize: var(--zd_font_size8);
16
+ --separator_fontSize: 8px;
17
17
  /* line-height: var(--zd_size7); */
18
18
  }
19
19
  .comma {
20
- --separator_fontSize: var(--zd_font_size15);
20
+ --separator_fontSize: 15px;
21
21
  /* line-height: var(--zd_size13); */
22
22
  }
23
23
  .none {
@@ -2,8 +2,8 @@
2
2
  --tag_bg_color: var(--zdt_tagWithIconGrey_bg);
3
3
  --tag_text_color: var(--zdt_tagWithIconGrey_text);
4
4
  --tag_border_color: var(--zdt_tagWithIconGrey_border);
5
- --tag_small_fontSize: var(--zd_font_size10);
6
- --tag_large_fontSize: var(--zd_font_size12);
5
+ --tag_small_fontSize: 10px;
6
+ --tag_large_fontSize: 12px;
7
7
  }
8
8
  .wrapper {
9
9
  composes: varClass;
@@ -13,13 +13,13 @@
13
13
  .small,
14
14
  .large {
15
15
  max-width: 100%;
16
- height: var(--zd_size18);
16
+ height: 18px;
17
17
  }
18
18
  .small, .large {
19
19
  border: 1px solid;
20
20
  border-color: var(--tag_border_color);
21
21
  border-radius: var(--zd_size4);
22
- padding: 0 var(--zd_size6);
22
+ padding: 0 6px;
23
23
  }
24
24
  .bold {
25
25
  composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
@@ -34,10 +34,10 @@
34
34
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
35
35
  }
36
36
  [dir=ltr] .iconSpace{
37
- margin-right: var(--zd_size4);
37
+ margin-right: 4px;
38
38
  }
39
39
  [dir=rtl] .iconSpace{
40
- margin-left: var(--zd_size4);
40
+ margin-left: 4px;
41
41
  }
42
42
  .yellow {
43
43
  --tag_bg_color: var(--zdt_tagWithIconYellow_bg);
@@ -5,7 +5,7 @@
5
5
  border-radius: 5px;
6
6
  box-shadow: var(--zd_bs_toastmessage_container);
7
7
  background-color: var(--zdt_toastmessage_default_bg);
8
- margin-bottom: var(--zd_size7);
8
+ margin-bottom: 7px;
9
9
  }[dir=ltr] .container {
10
10
  transform-origin: right center;
11
11
  }[dir=rtl] .container {
@@ -65,7 +65,7 @@
65
65
  }
66
66
 
67
67
  .alertright {
68
- width: var(--zd_size105);
68
+ width: 105px;
69
69
  }
70
70
 
71
71
  [dir=ltr] .alertright {
@@ -77,7 +77,7 @@
77
77
  }
78
78
 
79
79
  .popbutton {
80
- font-size: var(--zd_font_size10);
80
+ font-size: 10px;
81
81
  color: var(--zdt_toastmessage_popbutton_text);
82
82
  composes: wbreak textCap from '~@zohodesk/components/lib/common/common.module.css';
83
83
  transition: all var(--zd_transition3);
@@ -87,7 +87,7 @@
87
87
 
88
88
  .mainbutton {
89
89
  composes: popbutton;
90
- font-size: var(--zd_font_size11);
90
+ font-size: 11px;
91
91
  }
92
92
 
93
93
  .sumbitBorder {
@@ -147,11 +147,11 @@
147
147
  }
148
148
 
149
149
  .alertleft {
150
- padding: var(--zd_size15) var(--zd_size25);
150
+ padding: 15px 25px;
151
151
  }
152
152
 
153
153
  .alertico {
154
- min-width: var(--zd_size50);
154
+ min-width: 50px;
155
155
  }
156
156
 
157
157
  .alertsecondary .alertico {
@@ -162,31 +162,31 @@
162
162
 
163
163
  .alertTitle {
164
164
  composes: semibold wbreak dotted from '~@zohodesk/components/lib/common/common.module.css';
165
- font-size: var(--zd_font_size14);
165
+ font-size: 14px;
166
166
  color: var(--zdt_toastmessage_alerttitle_text);
167
167
  }
168
168
 
169
169
  [dir=ltr] .alertTitleLeft {
170
- margin-right: var(--zd_size10);
170
+ margin-right: 10px;
171
171
  }
172
172
 
173
173
  [dir=rtl] .alertTitleLeft {
174
- margin-left: var(--zd_size10);
174
+ margin-left: 10px;
175
175
  }
176
176
 
177
177
  .alertMessage {
178
- font-size: var(--zd_font_size12);
178
+ font-size: 12px;
179
179
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
180
180
  line-height: var(--zd_size16);
181
181
  color: var(--zdt_toastmessage_alert_text);
182
- margin-top: var(--zd_size5);
182
+ margin-top: 5px;
183
183
  }
184
184
 
185
185
  .buttonText {
186
186
  font-size: inherit;
187
187
  line-height: var(--zd_size14);
188
188
  text-align: center;
189
- padding: 0 var(--zd_size7);
189
+ padding: 0 7px;
190
190
  cursor: pointer;
191
191
  }
192
192
 
@@ -199,7 +199,7 @@
199
199
  }
200
200
 
201
201
  .closeIcon, .closeIconPrimary {
202
- padding: var(--zd_size2);
202
+ padding: 2px;
203
203
  cursor: pointer;
204
204
  }
205
205
 
@@ -226,7 +226,7 @@
226
226
  }
227
227
 
228
228
  .dropdown {
229
- width: var(--zd_size23);
229
+ width: 23px;
230
230
  position: relative;
231
231
  height: 100%;
232
232
  color: var(--zdt_toastmessage_dropdown_text);
@@ -255,9 +255,9 @@
255
255
  .message {
256
256
  position: relative;
257
257
  color: var(--zdt_toastmessage_popbutton_text);
258
- font-size: var(--zd_font_size11);
258
+ font-size: 11px;
259
259
  composes: dotted textCap from '~@zohodesk/components/lib/common/common.module.css';
260
- height: var(--zd_size33);
260
+ height: 33px;
261
261
  transition: padding var(--zd_transition3), height var(--zd_transition3);
262
262
  border-top: 1px solid var(--zdt_toastmessage_message_border);
263
263
  cursor: pointer;
@@ -265,11 +265,11 @@
265
265
  }
266
266
 
267
267
  [dir=ltr] .message {
268
- padding: var(--zd_size10) var(--zd_size20) var(--zd_size10) var(--zd_size76);
268
+ padding: 10px 20px 10px 76px;
269
269
  }
270
270
 
271
271
  [dir=rtl] .message {
272
- padding: var(--zd_size10) var(--zd_size76) var(--zd_size10) var(--zd_size20);
272
+ padding: 10px 76px 10px 20px;
273
273
  }
274
274
 
275
275
  .messageOff {
@@ -279,11 +279,11 @@
279
279
  }
280
280
 
281
281
  [dir=ltr] .messageOff {
282
- padding: 0 var(--zd_size20) 0 var(--zd_size76);
282
+ padding: 0 20px 0 76px;
283
283
  }
284
284
 
285
285
  [dir=rtl] .messageOff {
286
- padding: 0 var(--zd_size76) 0 var(--zd_size20);
286
+ padding: 0 76px 0 20px;
287
287
  }
288
288
 
289
289
  .message:hover {
@@ -291,8 +291,8 @@
291
291
  }
292
292
 
293
293
  .fill {
294
- width: var(--zd_size29);
295
- height: var(--zd_size29);
294
+ width: 29px;
295
+ height: 29px;
296
296
  line-height: var(--zd_size29);
297
297
  composes: rounded from '~@zohodesk/components/lib/common/common.module.css';
298
298
  text-align: center;
@@ -313,7 +313,7 @@
313
313
  .dangerShadow {
314
314
  color: var(--zdt_toastmessage_danger_text);
315
315
  text-shadow: 0 4px 22px var(--zdt_toastmessage_danger_text_shadow);
316
- margin-top: var(--zd_size5);
316
+ margin-top: 5px;
317
317
  }
318
318
 
319
319
  .successPlain {
@@ -3,7 +3,7 @@
3
3
  transition: all var(--zd_transition3);
4
4
  vertical-align: middle;
5
5
  cursor: pointer;
6
- padding: var(--zd_size5);
6
+ padding: 5px;
7
7
  border-radius: var(--zd_size2);
8
8
  }
9
9
  .light {
@@ -27,12 +27,12 @@
27
27
  left: 0;
28
28
  }
29
29
  .small {
30
- width: var(--zd_size50);
31
- height: var(--zd_size40);
30
+ width: 50px;
31
+ height: 40px;
32
32
  }
33
33
  .medium {
34
- height: var(--zd_size49);
35
- width: var(--zd_size65);
34
+ height: 49px;
35
+ width: 65px;
36
36
  }
37
37
  .preview {
38
38
  opacity: 0.4;
@@ -40,8 +40,8 @@
40
40
  }
41
41
  .loader {
42
42
  position: absolute;
43
- bottom: calc(var(--zd_size1) * -1);
44
- height: var(--zd_size2);
43
+ bottom: -1px;
44
+ height: 2px;
45
45
  width: 0%;
46
46
  transition: width var(--zd_transition6) ease;
47
47
  }
@@ -62,20 +62,20 @@
62
62
  height: 100%;
63
63
  }
64
64
  [dir=ltr] .attachInfo {
65
- padding: var(--zd_size4) 0 0 var(--zd_size8);
65
+ padding: 4px 0 0 8px;
66
66
  }
67
67
  [dir=rtl] .attachInfo {
68
- padding: var(--zd_size4) var(--zd_size8) 0 0;
68
+ padding: 4px 8px 0 0;
69
69
  }
70
70
  .fileIcon {
71
- font-size: var(--zd_font_size14);
71
+ font-size: 14px;
72
72
  }
73
73
  .attachsize {
74
- font-size: var(--zd_font_size10);
74
+ font-size: 10px;
75
75
  letter-spacing: 1px;
76
76
  composes: dotted from "~@zohodesk/components/lib/common/common.module.css";
77
77
  text-transform: uppercase;
78
- padding: var(--zd_size4) 0 var(--zd_size2);
78
+ padding: 4px 0 2px;
79
79
  }
80
80
  .light .attachsize {
81
81
  color: var(--zdt_upload_attachsize_default_text);
@@ -84,12 +84,12 @@
84
84
  color: var(--zdt_upload_attachsize_night_text);
85
85
  }
86
86
  .uploadclose {
87
- height: var(--zd_size12);
88
- width: var(--zd_size12);
87
+ height: 12px;
88
+ width: 12px;
89
89
  top: 0;
90
90
  position: absolute;
91
91
  line-height: var(--zd_size10);
92
- font-size: var(--zd_font_size12);
92
+ font-size: 12px;
93
93
  text-align: center;
94
94
  }
95
95
  [dir=ltr] .uploadclose {