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

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 (116) hide show
  1. package/README.md +16 -0
  2. package/assets/Appearance/dark/mode/dotDarkMode.module.css +304 -303
  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 +299 -298
  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 +307 -306
  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/css_error.log +1 -0
  21. package/es/AttachmentViewer/AttachmentViewer.module.css +4 -5
  22. package/es/Drawer/Drawer.module.css +42 -3
  23. package/es/FreezeLayer/FreezeLayer.js +2 -7
  24. package/es/FreezeLayer/props/propTypes.js +2 -1
  25. package/es/FreezeLayer/useFreezeLayer.js +0 -2
  26. package/es/Message/Message.module.css +1 -1
  27. package/es/PlusIcon/PlusIcon.module.css +5 -2
  28. package/es/Provider/Config.js +1 -2
  29. package/es/TagWithIcon/TagWithIcon.js +41 -0
  30. package/es/TagWithIcon/TagWithIcon.module.css +56 -0
  31. package/es/TagWithIcon/props/defaultProps.js +8 -0
  32. package/es/TagWithIcon/props/propTypes.js +12 -0
  33. package/es/ToastMessage/ToastMessage.module.css +7 -6
  34. package/es/common/dot_boxShadow.module.css +38 -0
  35. package/es/common/dot_docStyle.module.css +35 -0
  36. package/es/form/fields/TextEditor/TextEditor.js +16 -10
  37. package/es/form/fields/TextEditor/TextEditor.module.css +161 -63
  38. package/es/layout/SubtabLayout/SubtabLayout.module.css +21 -2
  39. package/es/list/DotNew/DotNew.module.css +8 -5
  40. package/es/list/TagNew/TagNew.module.css +4 -2
  41. package/es/lookup/Section/LookupSection.module.css +2 -2
  42. package/es/lookup/Section/Section.js +0 -1
  43. package/es/version2/GlobalNotification/GlobalNotification.module.css +4 -1
  44. package/es/version2/lookup/AlertHeader/AlertHeader.js +1 -2
  45. package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +0 -1
  46. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +23 -2
  47. package/lib/AlphabeticList/AlphabeticList.js +1 -1
  48. package/lib/AttachmentViewer/AttachmentImage.js +1 -1
  49. package/lib/AttachmentViewer/AttachmentViewer.module.css +4 -5
  50. package/lib/Drawer/Drawer.module.css +42 -3
  51. package/lib/ExternalLink/ExternalLink.js +1 -1
  52. package/lib/FreezeLayer/FreezeLayer.js +2 -10
  53. package/lib/FreezeLayer/props/propTypes.js +4 -2
  54. package/lib/FreezeLayer/useFreezeLayer.js +0 -2
  55. package/lib/Message/Message.module.css +1 -1
  56. package/lib/PlusIcon/PlusIcon.module.css +5 -2
  57. package/lib/Provider/Config.js +1 -2
  58. package/lib/TagWithIcon/TagWithIcon.js +71 -0
  59. package/lib/TagWithIcon/TagWithIcon.module.css +56 -0
  60. package/lib/TagWithIcon/props/defaultProps.js +15 -0
  61. package/lib/TagWithIcon/props/propTypes.js +20 -0
  62. package/lib/ToastMessage/ToastMessage.js +2 -1
  63. package/lib/ToastMessage/ToastMessage.module.css +7 -6
  64. package/lib/alert/AlertLookup/AlertLookup.js +1 -1
  65. package/lib/avatar/AvatarUser/AvatarUser.js +1 -1
  66. package/lib/common/dot_boxShadow.module.css +38 -0
  67. package/lib/common/dot_docStyle.module.css +35 -0
  68. package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
  69. package/lib/form/fields/CurrencyField/CurrencyField.js +1 -1
  70. package/lib/form/fields/DateField/DateField.js +1 -1
  71. package/lib/form/fields/FieldContainer/FieldContainer.js +1 -1
  72. package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
  73. package/lib/form/fields/PhoneField/PhoneField.js +1 -1
  74. package/lib/form/fields/RadioField/RadioField.js +1 -1
  75. package/lib/form/fields/SelectField/SelectField.js +1 -1
  76. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +1 -1
  77. package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
  78. package/lib/form/fields/TextEditor/TextEditor.js +18 -11
  79. package/lib/form/fields/TextEditor/TextEditor.module.css +161 -63
  80. package/lib/form/fields/TextEditorField/TextEditorField.js +1 -1
  81. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
  82. package/lib/form/fields/TextareaField/TextareaField.js +1 -1
  83. package/lib/layout/SubtabLayout/SubtabLayout.module.css +21 -2
  84. package/lib/list/DotNew/DotNew.module.css +8 -5
  85. package/lib/list/ListStencils/ListStencils.js +1 -1
  86. package/lib/list/SecondaryText/AccountName.js +1 -1
  87. package/lib/list/SecondaryText/Email.js +1 -1
  88. package/lib/list/SecondaryText/HappinessRating.js +1 -1
  89. package/lib/list/SecondaryText/PhoneNumber.js +1 -1
  90. package/lib/list/SecondaryText/Website.js +1 -1
  91. package/lib/list/SecondryPanel/SecondryPanel.js +1 -1
  92. package/lib/list/TagNew/TagNew.module.css +4 -2
  93. package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
  94. package/lib/lookup/EmptyPage/EmptyPage.js +1 -1
  95. package/lib/lookup/Lookup/Lookup.js +1 -1
  96. package/lib/lookup/Section/LookupSection.module.css +2 -2
  97. package/lib/lookup/Section/Section.js +0 -1
  98. package/lib/lookup/header/Close/Close.js +1 -1
  99. package/lib/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
  100. package/lib/lookup/header/Search/Search.js +1 -1
  101. package/lib/lookup/header/TicketHeader/TicketHeader.js +1 -1
  102. package/lib/lookup/header/Title/Title.js +1 -1
  103. package/lib/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  104. package/lib/version2/AlertClose/AlertClose.js +1 -1
  105. package/lib/version2/GlobalNotification/GlobalNotification.module.css +4 -1
  106. package/lib/version2/lookup/AlertHeader/AlertHeader.js +1 -2
  107. package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +0 -1
  108. package/lib/version2/lookup/AlertLookup/AlertLookup.js +1 -1
  109. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +23 -2
  110. package/package.json +10 -18
  111. package/es/Hooks/Dragger/css/Dragger.module.css +0 -3
  112. package/es/Hooks/Dragger/useDragger.js +0 -74
  113. package/es/Hooks/Dragger/utils/DraggerUtil.js +0 -33
  114. package/lib/Hooks/Dragger/css/Dragger.module.css +0 -3
  115. package/lib/Hooks/Dragger/useDragger.js +0 -80
  116. package/lib/Hooks/Dragger/utils/DraggerUtil.js +0 -65
@@ -1,11 +1,13 @@
1
1
  .varClass {
2
2
  --borderColor: var(--zdt_subtablayout_border);
3
3
  }
4
+
4
5
  .tabHead,
5
6
  .shadowStyle {
6
7
  position: relative;
7
8
  composes: varClass;
8
9
  }
10
+
9
11
  .tabHead, .shadowStyle {
10
12
  background: var(--zdt_subtablayout_tabhead_bg);
11
13
  }
@@ -44,6 +46,7 @@
44
46
  .primary_borderStyle, .secondary_borderStyle {
45
47
  border-bottom: 1px solid var(--zdt_subtablayout_primary_border);
46
48
  }
49
+
47
50
  .tertiary_borderStyle {
48
51
  border-bottom: 1px solid var(--borderColor);
49
52
  }
@@ -54,7 +57,7 @@
54
57
  position: absolute;
55
58
  top: var(--zd_size20);
56
59
  z-index: -1;
57
- box-shadow: 0 0 6px var(--zdt_subtablayout_shadowstyle_box_shadow);
60
+ box-shadow: var(--zd_bs_subtablayout_shadow);
58
61
  border-radius: 100px/10px;
59
62
  }
60
63
 
@@ -94,53 +97,69 @@
94
97
  [dir=rtl] .primary, [dir=rtl] .primary_peek, [dir=rtl] .secondary, [dir=rtl] .secondary_peek, [dir=rtl] .primary_detailFooter, [dir=rtl] .primary_peekFooter, [dir=rtl] .secondary_detailFooter, [dir=rtl] .secondary_peekFooter {
95
98
  padding-right: var(--zd_size25);
96
99
  }
100
+
97
101
  [dir=ltr] .primary, [dir=ltr] .primary_peek {
98
102
  padding-right: var(--zd_size25);
99
103
  }
104
+
100
105
  [dir=rtl] .primary, [dir=rtl] .primary_peek {
101
106
  padding-left: var(--zd_size25);
102
107
  }
108
+
103
109
  [dir=ltr] .secondary, [dir=ltr] .secondary_peek {
104
110
  padding-right: var(--zd_size115);
105
111
  }
112
+
106
113
  [dir=rtl] .secondary, [dir=rtl] .secondary_peek {
107
114
  padding-left: var(--zd_size115);
108
115
  }
116
+
109
117
  [dir=ltr] .primary_detailFooter, [dir=ltr] .primary_peekFooter {
110
118
  padding-right: var(--zd_size25);
111
119
  }
120
+
112
121
  [dir=rtl] .primary_detailFooter, [dir=rtl] .primary_peekFooter {
113
122
  padding-left: var(--zd_size25);
114
123
  }
124
+
115
125
  [dir=ltr] .secondary_detailFooter, [dir=ltr] .secondary_peekFooter {
116
126
  padding-right: var(--zd_size115);
117
127
  }
128
+
118
129
  [dir=rtl] .secondary_detailFooter, [dir=rtl] .secondary_peekFooter {
119
130
  padding-left: var(--zd_size115);
120
131
  }
132
+
121
133
  .tertiary,
122
134
  .tertiary_peek {
123
135
  height: var(--zd_size50);
124
136
  }
137
+
125
138
  .tertiary, .tertiary_detailFooter {
126
139
  padding: 0 var(--zd_size65);
127
140
  }
141
+
128
142
  .tertiary_peek, .tertiary_peekFooter {
129
143
  padding: 0 var(--zd_size42);
130
144
  }
145
+
131
146
  .cursor {
132
147
  cursor: pointer;
133
148
  }
149
+
134
150
  .footer {
135
151
  composes: varClass;
136
152
  border-top: 1px solid var(--borderColor);
137
153
  }
154
+
138
155
  .medium {
139
156
  height: var(--zd_size40);
140
157
  }
158
+
141
159
  .large {
142
160
  height: var(--zd_size45);
143
161
  }
162
+
144
163
  .xlarge {
145
164
  height: var(--zd_size50);
146
- }
165
+ }
@@ -2,21 +2,24 @@
2
2
  width: var(--zd_size6);
3
3
  height: var(--zd_size6);
4
4
  }
5
- .small{
5
+
6
+ .small {
6
7
  width: var(--zd_size5);
7
8
  height: var(--zd_size5);
8
9
  }
9
- .container{
10
+
11
+ .container {
10
12
  composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
11
- /* animation: dotAnimation 1.25s infinite cubic-bezier(0.66, 0.33, 0, 1);
13
+ /* animation: dotAnimation 1.25s infinite cubic-bezier(0.66, 0.33, 0, 1);
12
14
  box-shadow: 0 0 0 0 var(--dot_catskillWhite),
13
15
  0 0 0 0 rgba(10, 115, 235, 0.6); */
14
16
  border-radius: 50%;
15
17
  background-color: var(--zdt_dotnew_default_bg);
16
- box-shadow: 0 0 15px 1px var(--zdt_dotnew_default_box_shadow);
18
+ box-shadow: var(--zd_bs_dotnew_shadow);
17
19
  }
20
+
18
21
  @keyframes dotAnimation {
19
22
  to {
20
23
  box-shadow: 0 0 0 12px var(--zdt_dotnew_animate_box_shadow), 0 0 0 8px var(--zdt_dotnew_animate_to_box_shadow);
21
24
  }
22
- }
25
+ }
@@ -10,7 +10,7 @@
10
10
  visibility: hidden;
11
11
  border-radius: var(--zd_size14);
12
12
  background-color: var(--zdt_tagnew_default_bg);
13
- box-shadow: 0 8px 30px 0 var(--zdt_tagnew_default_box_shadow);
13
+ box-shadow: var(--zd_bs_tagnew_shadow);
14
14
  padding: 0 var(--zd_size15);
15
15
  transform: scale(0);
16
16
  cursor: pointer;
@@ -31,6 +31,7 @@
31
31
  }
32
32
 
33
33
  @keyframes bounceIn {
34
+
34
35
  0%,
35
36
  20%,
36
37
  40%,
@@ -73,6 +74,7 @@
73
74
  }
74
75
 
75
76
  @-webkit-keyframes bounceIn {
77
+
76
78
  0%,
77
79
  20%,
78
80
  40%,
@@ -112,4 +114,4 @@
112
114
  -webkit-transform: scale3d(1, 1, 1);
113
115
  transform: scale3d(1, 1, 1);
114
116
  }
115
- }
117
+ }
@@ -4,5 +4,5 @@
4
4
  height: auto;
5
5
  border-radius: 0 0 var(--zd_size10) var(--zd_size10);
6
6
  background-color: var(--zdt_lookupsection_bg);
7
- box-shadow: 0px 4px 20px var(--zdt_lookupsection_box_shadow);
8
- }
7
+ box-shadow: var(--zd_bs_lookupsection_shadow);
8
+ }
@@ -12,7 +12,6 @@ export default class Section extends Component {
12
12
  className
13
13
  } = this.props;
14
14
  return /*#__PURE__*/React.createElement(Container, {
15
- "data-drag-container": "true",
16
15
  alignBox: alignBox,
17
16
  className: `${style.section} ${className ? className : ''}`
18
17
  }, /*#__PURE__*/React.createElement(Box, {
@@ -5,6 +5,7 @@
5
5
  --globalnotification_text_color: var(--zdt_globalnotification_default_text);
6
6
  --globalnotification_box_shadow: var(--zdt_globalnotification_default_box_shadow);
7
7
  }
8
+
8
9
  .message {
9
10
  composes: varClass;
10
11
  position: absolute;
@@ -14,10 +15,12 @@
14
15
  pointer-events: none;
15
16
  text-align: center;
16
17
  }
18
+
17
19
  [dir=ltr] .message {
18
20
  right: 0;
19
21
  left: 0;
20
22
  }
23
+
21
24
  [dir=rtl] .message {
22
25
  left: 0;
23
26
  right: 0;
@@ -29,7 +32,7 @@
29
32
  color: var(--globalnotification_text_color);
30
33
  max-width: var(--zd_size490);
31
34
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
32
- box-shadow: 0 4px 20px var(--globalnotification_box_shadow);
35
+ box-shadow: var(--zd_bs_globalnotification_container);
33
36
  border-radius: 0 0 var(--zd_size10) var(--zd_size10);
34
37
  background-color: var(--globalnotification_bg_color);
35
38
  border-style: solid;
@@ -24,8 +24,7 @@ export default class AlertHeader extends Component {
24
24
  alignBox: "row",
25
25
  className: `${style.container} ${headerElement ? style.headerLayout : ''} ${style[type]}`,
26
26
  isCover: false,
27
- wrap: "wrap",
28
- "data-drag-hook": "true"
27
+ wrap: "wrap"
29
28
  }, needIcon ? /*#__PURE__*/React.createElement("div", {
30
29
  className: style.iconContainer
31
30
  }, /*#__PURE__*/React.createElement(AlertIcons, {
@@ -59,7 +59,6 @@
59
59
  font-family: var(--zd_bold);
60
60
  composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
61
61
  vertical-align: middle;
62
- cursor: default;
63
62
  }
64
63
 
65
64
  [dir=ltr] .title {
@@ -2,6 +2,7 @@
2
2
  position: relative;
3
3
  margin-bottom: var(--zd_size7);
4
4
  }
5
+
5
6
  .container {
6
7
  color: var(--zdt_desktopnotification_text);
7
8
  transition: all var(--zd_transition4);
@@ -9,56 +10,69 @@
9
10
  max-height: 100%;
10
11
  pointer-events: auto;
11
12
  background-color: var(--zdt_desktopnotification_bg);
12
- box-shadow: 0 4px 20px var(--zdt_desktopnotification_box_shadow);
13
+ box-shadow: var(--zd_bs_desktopnotification_container);
13
14
  border-radius: 0 0 var(--zd_size10) var(--zd_size10);
14
15
  }
16
+
15
17
  [dir=ltr] .container {
16
18
  transform-origin: right center;
17
19
  }
20
+
18
21
  [dir=rtl] .container {
19
22
  transform-origin: left center;
20
23
  }
24
+
21
25
  .globalNotify {
22
26
  max-width: var(--zd_size490);
23
27
  min-width: var(--zd_size394);
24
28
  }
29
+
25
30
  /* Size */
26
31
  .medium {
27
32
  width: var(--zd_size452);
28
33
  }
34
+
29
35
  .large {
30
36
  width: var(--zd_size580);
31
37
  }
38
+
32
39
  /* Animation Style */
33
40
  .closeAnimation {
34
41
  max-height: 0;
35
42
  transition: all var(--zd_transition3) 0.4s;
36
43
  margin-bottom: 0;
37
44
  }
45
+
38
46
  .animation {
39
47
  composes: modeForward from '~@zohodesk/components/lib/common/animation.module.css';
40
48
  }
49
+
41
50
  [dir=ltr] .animation {
42
51
  animation-duration: var(--zd_transition4);
43
52
  -webkit-animation-duration: var(--zd_transition4);
44
53
  }
54
+
45
55
  [dir=rtl] .animation {
46
56
  animation-duration: var(--zd_transition4);
47
57
  -webkit-animation-duration: var(--zd_transition4);
48
58
  }
59
+
49
60
  .leftanimate {
50
61
  composes: slideLeft from '~@zohodesk/components/lib/common/animation.module.css';
51
62
  composes: animation;
52
63
  }
64
+
53
65
  .leftnoanimate {
54
66
  opacity: 1;
55
67
  transform: translateX(0) scale(1);
56
68
  }
69
+
57
70
  .rightanimate {
58
71
  composes: slideRight from '~@zohodesk/components/lib/common/animation.module.css';
59
72
  composes: animation;
60
73
  composes: closeAnimation;
61
74
  }
75
+
62
76
  /* Container Style */
63
77
  .message {
64
78
  position: relative;
@@ -76,31 +90,38 @@
76
90
  [dir=rtl] .message {
77
91
  padding: var(--zd_size10) var(--zd_size76) var(--zd_size10) var(--zd_size20);
78
92
  }
93
+
79
94
  .message:hover {
80
95
  background: var(--zd_alabaster);
81
96
  }
97
+
82
98
  /* Section */
83
99
  .section {
84
100
  padding: var(--zd_size15) var(--zd_size30) var(--zd_size30);
85
101
  }
102
+
86
103
  .subTitle {
87
104
  font-size: var(--zd_font_size15);
88
105
  line-height: var(--zd_size20);
89
106
  font-family: var(--zd_semibold);
90
107
  composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
91
108
  }
109
+
92
110
  .subTitleMargin {
93
111
  margin-bottom: var(--zd_size17);
94
112
  }
113
+
95
114
  .infoText {
96
115
  font-size: var(--zd_font_size14);
97
116
  line-height: var(--zd_size18);
98
117
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
99
118
  }
119
+
100
120
  .secondaryInfo {
101
121
  margin-top: var(--zd_size20);
102
122
  }
123
+
103
124
  .footer {
104
125
  overflow: hidden;
105
126
  border-radius: 0 0 var(--zd_size10) var(--zd_size10);
106
- }
127
+ }
@@ -22,7 +22,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
22
22
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
23
23
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
24
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
25
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /*** Libraries ***/ /*** CSS ***/
26
26
  var AlphabeticList = /*#__PURE__*/function (_React$PureComponent) {
27
27
  _inherits(AlphabeticList, _React$PureComponent);
28
28
  var _super = _createSuper(AlphabeticList);
@@ -24,7 +24,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
24
24
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
25
25
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
26
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
27
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
27
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /* eslint-disable css-modules/no-unused-class */ /** * Libraries ** */ /** * CSS ** */
28
28
  var AttachmentImage = /*#__PURE__*/function (_Component) {
29
29
  _inherits(AttachmentImage, _Component);
30
30
  var _super = _createSuper(AttachmentImage);
@@ -132,11 +132,11 @@
132
132
  }
133
133
 
134
134
  [dir=ltr] .footer {
135
- padding-right:var(--zd_size68)
135
+ padding-right: var(--zd_size68)
136
136
  }
137
137
 
138
138
  [dir=rtl] .footer {
139
- padding-left:var(--zd_size68)
139
+ padding-left: var(--zd_size68)
140
140
  }
141
141
 
142
142
  .footerHeight {
@@ -191,7 +191,7 @@
191
191
  height: 100%;
192
192
  opacity: 0.3;
193
193
  background-color: var(--zdt_attachmentviewer_selected_after_bg);
194
- box-shadow: 0 0 4px 2px var(--zdt_attachmentviewer_selected_box_shadow) inset;
194
+ box-shadow: var(--zd_bs_attachmentviewer_selected);
195
195
  }
196
196
 
197
197
  [dir=ltr] .selected::after {
@@ -350,5 +350,4 @@
350
350
  background-color: var(--dot_mirror);
351
351
  border: 0;
352
352
  cursor: pointer;
353
- }
354
-
353
+ }
@@ -1,79 +1,100 @@
1
1
  .container {
2
2
  transition: width var(--zd_transition3);
3
- box-shadow: 0 6px 12px var(--zdt_drawer_default_box_shadow);
3
+ box-shadow: var(--zd_bs_drawer_shadow);
4
4
  background-color: var(--zdt_drawer_default_bg);
5
5
  }
6
+
6
7
  .isOverlay {
7
8
  top: 0;
8
9
  bottom: 0;
9
10
  position: absolute;
10
11
  pointer-events: none;
11
12
  }
13
+
12
14
  [dir=ltr] .isOverlay {
13
15
  right: 0;
14
16
  }
17
+
15
18
  [dir=rtl] .isOverlay {
16
19
  left: 0;
17
20
  }
21
+
18
22
  .columns {
19
23
  pointer-events: initial;
20
24
  }
25
+
21
26
  .drawerModal {
22
27
  position: relative;
23
28
  }
29
+
24
30
  .secondDrawer {
25
31
  background-color: var(--zdt_drawer_default_bg);
26
- box-shadow: 0 6px 12px var(--zdt_drawer_default_box_shadow);
32
+ box-shadow: var(--zd_bs_drawer_shadow);
27
33
  }
34
+
28
35
  .secondMobDrawer {
29
36
  position: absolute;
30
37
  top: 0;
31
38
  z-index: 1;
32
39
  }
40
+
33
41
  [dir=ltr] .secondMobDrawer {
34
42
  right: 0;
35
43
  }
44
+
36
45
  [dir=rtl] .secondMobDrawer {
37
46
  left: 0;
38
47
  }
48
+
39
49
  .mobModal {
40
50
  position: absolute;
41
51
  top: 0;
42
52
  bottom: 0;
43
53
  }
54
+
44
55
  [dir=ltr] .mobModal {
45
56
  right: 0;
46
57
  left: 0;
47
58
  }
59
+
48
60
  [dir=rtl] .mobModal {
49
61
  left: 0;
50
62
  right: 0;
51
63
  }
64
+
52
65
  .xsmall {
53
66
  width: var(--zd_size360);
54
67
  }
68
+
55
69
  .small {
56
70
  width: var(--zd_size410);
57
71
  }
72
+
58
73
  .medium {
59
74
  width: var(--zd_size660);
60
75
  }
76
+
61
77
  .xmedium {
62
78
  width: var(--zd_size730);
63
79
  }
80
+
64
81
  .large {
65
82
  width: var(--zd_size936);
66
83
  }
84
+
67
85
  .xlarge {
68
86
  width: var(--zd_size840);
69
87
  }
88
+
70
89
  .xxlarge {
71
90
  width: var(--zd_size1142);
72
91
  }
92
+
73
93
  .mbleSize,
74
94
  .default {
75
95
  width: 100%;
76
96
  }
97
+
77
98
  .header {
78
99
  min-height: var(--zd_size50);
79
100
  background-color: var(--zdt_drawer_header_bg);
@@ -81,71 +102,89 @@
81
102
  padding-top: var(--zd_size10);
82
103
  padding-bottom: var(--zd_size10);
83
104
  }
105
+
84
106
  .subheader {
85
107
  min-height: var(--zd_size28);
86
108
  }
109
+
87
110
  .title {
88
- color: var( --zdt_drawer_title_text);
111
+ color: var(--zdt_drawer_title_text);
89
112
  font: var(--zd_font_size16) var(--zd_semibold);
90
113
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
91
114
  }
115
+
92
116
  [dir=ltr] .title {
93
117
  padding: 0 var(--zd_size10) 0 0;
94
118
  }
119
+
95
120
  [dir=rtl] .title {
96
121
  padding: 0 0 0 var(--zd_size10);
97
122
  }
123
+
98
124
  [dir=ltr] .smallHeaderPadding {
99
125
  padding-right: var(--zd_size11);
100
126
  padding-left: var(--zd_size30);
101
127
  }
128
+
102
129
  [dir=rtl] .smallHeaderPadding {
103
130
  padding-left: var(--zd_size11);
104
131
  padding-right: var(--zd_size30);
105
132
  }
133
+
106
134
  [dir=ltr] .smallContentPadding {
107
135
  padding-left: var(--zd_size30);
108
136
  padding-right: var(--zd_size30);
109
137
  }
138
+
110
139
  [dir=rtl] .smallContentPadding {
111
140
  padding-right: var(--zd_size30);
112
141
  padding-left: var(--zd_size30);
113
142
  }
143
+
114
144
  [dir=ltr] .mediumHeaderPadding {
115
145
  padding-right: var(--zd_size15);
116
146
  padding-left: var(--zd_size30);
117
147
  }
148
+
118
149
  [dir=rtl] .mediumHeaderPadding {
119
150
  padding-left: var(--zd_size15);
120
151
  padding-right: var(--zd_size30);
121
152
  }
153
+
122
154
  [dir=ltr] .mediumContentPadding {
123
155
  padding-left: var(--zd_size30);
124
156
  padding-right: var(--zd_size30);
125
157
  }
158
+
126
159
  [dir=rtl] .mediumContentPadding {
127
160
  padding-right: var(--zd_size30);
128
161
  padding-left: var(--zd_size30);
129
162
  }
163
+
130
164
  [dir=ltr] .largeHeaderPadding {
131
165
  padding-right: var(--zd_size15);
132
166
  padding-left: var(--zd_size50);
133
167
  }
168
+
134
169
  [dir=rtl] .largeHeaderPadding {
135
170
  padding-left: var(--zd_size15);
136
171
  padding-right: var(--zd_size50);
137
172
  }
173
+
138
174
  [dir=ltr] .largeContentPadding {
139
175
  padding-left: var(--zd_size50);
140
176
  padding-right: var(--zd_size50);
141
177
  }
178
+
142
179
  [dir=rtl] .largeContentPadding {
143
180
  padding-right: var(--zd_size50);
144
181
  padding-left: var(--zd_size50);
145
182
  }
183
+
146
184
  [dir=ltr] .iconWrapper {
147
185
  margin-right: var(--zd_size10);
148
186
  }
187
+
149
188
  [dir=rtl] .iconWrapper {
150
189
  margin-left: var(--zd_size10);
151
190
  }
@@ -22,7 +22,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
22
22
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
23
23
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
24
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
25
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** CSS ****/
26
26
  var ExternalLink = /*#__PURE__*/function (_React$Component) {
27
27
  _inherits(ExternalLink, _React$Component);
28
28
  var _super = _createSuper(ExternalLink);
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports["default"] = FreezeLayer;
8
- var _react = _interopRequireWildcard(require("react"));
7
+ var _react = _interopRequireDefault(require("react"));
9
8
  var _defaultProps = require("./props/defaultProps");
10
9
  var _propTypes = require("./props/propTypes");
11
10
  var _Layout = require("@zohodesk/components/lib/Layout");
@@ -15,10 +14,7 @@ var _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider"
15
14
  var _cssJSLogic2 = _interopRequireDefault(require("./css/cssJSLogic"));
16
15
  var _useFreezeLayer2 = _interopRequireDefault(require("./useFreezeLayer"));
17
16
  var _FreezeLayerModule = _interopRequireDefault(require("./css/FreezeLayer.module.css"));
18
- var _useDragger = _interopRequireDefault(require("../Hooks/Dragger/useDragger"));
19
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
20
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
22
18
  function FreezeLayer(props) {
23
19
  var propsActive = props.isActive,
24
20
  children = props.children,
@@ -33,7 +29,6 @@ function FreezeLayer(props) {
33
29
  needAutoZindex = props.needAutoZindex,
34
30
  customStyle = props.customStyle;
35
31
  var finalStyle = (0, _utils.mergeStyle)(_FreezeLayerModule["default"], customStyle);
36
- var dragRef = (0, _react.useRef)(null);
37
32
  var _cssJSLogic = (0, _cssJSLogic2["default"])({
38
33
  props: props,
39
34
  style: finalStyle
@@ -47,9 +42,6 @@ function FreezeLayer(props) {
47
42
  isActive = _useFreezeLayer.isActive,
48
43
  isChildActive = _useFreezeLayer.isChildActive,
49
44
  handleClick = _useFreezeLayer.handleClick;
50
- (0, _useDragger["default"])({
51
- ParentRef: dragRef
52
- });
53
45
  return /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
54
46
  name: animationName && animationName,
55
47
  isActive: isActive,
@@ -60,7 +52,7 @@ function FreezeLayer(props) {
60
52
  } : {},
61
53
  className: freezeClass,
62
54
  onClick: handleClick,
63
- ref: dragRef
55
+ ref: forwardRef
64
56
  }, children && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, childAnimationName ? /*#__PURE__*/_react["default"].createElement(_VelocityAnimationGroup["default"], {
65
57
  name: childAnimationName,
66
58
  isActive: isChildActive,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.propTypes = void 0;
6
+ exports.propTypes = exports["default"] = void 0;
7
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
9
  var animationValues = ['fade', 'shrink', 'expand', 'slideRight', 'slideDown', 'flyDown'];
@@ -23,4 +23,6 @@ var propTypes = {
23
23
  customStyle: _propTypes["default"].object,
24
24
  zIndex: _propTypes["default"].oneOf(['3', '5', '7', '10'])
25
25
  };
26
- exports.propTypes = propTypes;
26
+ exports.propTypes = propTypes;
27
+ var _default = propTypes;
28
+ exports["default"] = _default;
@@ -31,8 +31,6 @@ function useFreezeLayer(_ref) {
31
31
  function handleClick(e) {
32
32
  if (onClick && !(0, _Common.isTextSelected)()) {
33
33
  onClick(e);
34
- } else {
35
- (0, _Common.cancelBubblingEffect)(e);
36
34
  }
37
35
  }
38
36
  function enableFreeze() {