@zohodesk/dot 1.0.0-beta.252 → 1.0.0-beta.254

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 (63) hide show
  1. package/README.md +10 -0
  2. package/assets/Appearance/dark/mode/dotDarkMode.module.css +293 -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 +288 -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 +296 -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.js +3 -2
  23. package/es/Drawer/Drawer.module.css +42 -3
  24. package/es/FreezeLayer/props/propTypes.js +2 -1
  25. package/es/FreezeLayer/useFreezeLayer.js +5 -3
  26. package/es/Link/Link.js +3 -2
  27. package/es/Message/Message.module.css +1 -1
  28. package/es/PlusIcon/PlusIcon.module.css +5 -2
  29. package/es/ToastMessage/ToastMessage.js +2 -5
  30. package/es/ToastMessage/ToastMessage.module.css +7 -6
  31. package/es/actions/AutoClose.js +2 -5
  32. package/es/common/dot_boxShadow.module.css +38 -0
  33. package/es/common/dot_docStyle.module.css +35 -0
  34. package/es/form/fields/TextEditor/TextEditor.module.css +161 -63
  35. package/es/layout/SubtabLayout/SubtabLayout.module.css +21 -2
  36. package/es/list/DotNew/DotNew.module.css +8 -5
  37. package/es/list/TagNew/TagNew.module.css +4 -2
  38. package/es/lookup/Section/LookupSection.module.css +2 -2
  39. package/es/lookup/header/Search/Search.js +5 -8
  40. package/es/version2/GlobalNotification/GlobalNotification.module.css +4 -1
  41. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +23 -2
  42. package/lib/AttachmentViewer/AttachmentViewer.module.css +4 -5
  43. package/lib/Drawer/Drawer.js +3 -2
  44. package/lib/Drawer/Drawer.module.css +42 -3
  45. package/lib/FreezeLayer/props/propTypes.js +4 -2
  46. package/lib/FreezeLayer/useFreezeLayer.js +4 -2
  47. package/lib/Link/Link.js +3 -2
  48. package/lib/Message/Message.module.css +1 -1
  49. package/lib/PlusIcon/PlusIcon.module.css +5 -2
  50. package/lib/ToastMessage/ToastMessage.js +2 -5
  51. package/lib/ToastMessage/ToastMessage.module.css +7 -6
  52. package/lib/actions/AutoClose.js +2 -5
  53. package/lib/common/dot_boxShadow.module.css +38 -0
  54. package/lib/common/dot_docStyle.module.css +35 -0
  55. package/lib/form/fields/TextEditor/TextEditor.module.css +161 -63
  56. package/lib/layout/SubtabLayout/SubtabLayout.module.css +21 -2
  57. package/lib/list/DotNew/DotNew.module.css +8 -5
  58. package/lib/list/TagNew/TagNew.module.css +4 -2
  59. package/lib/lookup/Section/LookupSection.module.css +2 -2
  60. package/lib/lookup/header/Search/Search.js +5 -10
  61. package/lib/version2/GlobalNotification/GlobalNotification.module.css +4 -1
  62. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +23 -2
  63. package/package.json +10 -18
@@ -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
+ }
@@ -14,6 +14,7 @@ import ToggleDropDown from '../../../dropdown/ToggleDropDown/ToggleDropDown';
14
14
 
15
15
  /** * Methods ** */
16
16
  import { debounce } from '@zohodesk/components/lib/utils/debounce';
17
+ import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
17
18
 
18
19
  /** * CSS ** */
19
20
  import style from './LookupSearch.module.css';
@@ -104,10 +105,6 @@ class SearchUI extends Component {
104
105
  this.handleKeyDown = this.handleKeyDown.bind(this);
105
106
  this.handleSearch = debounce(this.handleSearch.bind(this), 500);
106
107
  }
107
- cancelBubblingEffect(e) {
108
- e && e.stopPropagation && e.stopPropagation();
109
- e && e.nativeEvent && e.nativeEvent.stopImmediatePropagation && e.nativeEvent.stopImmediatePropagation();
110
- }
111
108
  handleSearch() {
112
109
  const {
113
110
  onSearch
@@ -140,7 +137,7 @@ class SearchUI extends Component {
140
137
  const {
141
138
  onChange
142
139
  } = this.props;
143
- this.cancelBubblingEffect(e);
140
+ cancelBubblingEffect(e);
144
141
  onChange && onChange('');
145
142
  this.handleSearch();
146
143
  }
@@ -196,16 +193,16 @@ class SearchUI extends Component {
196
193
  placeHolder: placeHolder,
197
194
  value: searchStr,
198
195
  onChange: this.handleChange,
199
- onClick: this.cancelBubblingEffect,
196
+ onClick: cancelBubblingEffect,
200
197
  onFocus: onFocus,
201
198
  onBlur: onBlur,
202
199
  onKeyDown: this.handleKeyDown,
203
- onMouseDown: this.cancelBubblingEffect,
200
+ onMouseDown: cancelBubblingEffect,
204
201
  dataId: dataId,
205
202
  size: "small",
206
203
  inputRef: getRef,
207
204
  onClear: this.handleClear,
208
- onClearMouseDown: this.cancelBubblingEffect
205
+ onClearMouseDown: cancelBubblingEffect
209
206
  })));
210
207
  }
211
208
  }
@@ -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;
@@ -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
+ }
@@ -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
+ }
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _defaultProps = require("./props/defaultProps");
10
10
  var _propTypes = require("./props/propTypes");
11
11
  var _FreezeLayer = _interopRequireDefault(require("../FreezeLayer/FreezeLayer"));
12
+ var _Common = require("@zohodesk/components/es/utils/Common");
12
13
  var _Layout = require("@zohodesk/components/lib/Layout");
13
14
  var _Card = require("@zohodesk/components/lib/Card");
14
15
  var _FormAction = _interopRequireDefault(require("../FormAction/FormAction"));
@@ -221,7 +222,7 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
221
222
  eleRef: this.createRef
222
223
  }, /*#__PURE__*/_react["default"].createElement(_Card.Card, {
223
224
  onClick: function onClick(e) {
224
- e && e.stopPropagation && e.stopPropagation();
225
+ (0, _Common.cancelBubblingEffect)(e);
225
226
  onBodyClick(e);
226
227
  }
227
228
  }, childrenWithProps));
@@ -233,7 +234,7 @@ var Drawer = /*#__PURE__*/function (_React$Component4) {
233
234
  }, /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveSender, null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
234
235
  className: styleByResolutions,
235
236
  onClick: function onClick(e) {
236
- e && e.stopPropagation && e.stopPropagation();
237
+ (0, _Common.cancelBubblingEffect)(e);
237
238
  }
238
239
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
239
240
  flexible: true
@@ -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
  }
@@ -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;
@@ -28,9 +28,11 @@ function useFreezeLayer(_ref) {
28
28
  isChildActive = _useState4[0],
29
29
  setChildActive = _useState4[1];
30
30
  var isFreezeLayerEnabled = (0, _react.useRef)(false);
31
- function handleClick() {
31
+ function handleClick(e) {
32
32
  if (onClick && !(0, _Common.isTextSelected)()) {
33
- onClick();
33
+ onClick(e);
34
+ } else {
35
+ (0, _Common.cancelBubblingEffect)(e);
34
36
  }
35
37
  }
36
38
  function enableFreeze() {
package/lib/Link/Link.js CHANGED
@@ -8,6 +8,7 @@ exports["default"] = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _defaultProps = require("./props/defaultProps");
10
10
  var _propTypes = require("./props/propTypes");
11
+ var _Common = require("@zohodesk/components/es/utils/Common");
11
12
  var _LinkModule = _interopRequireDefault(require("./Link.module.css"));
12
13
  var _LinkContext = _interopRequireDefault(require("./LinkContext"));
13
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -43,14 +44,14 @@ var Link = /*#__PURE__*/function (_React$Component) {
43
44
  target = _this$props.target;
44
45
  var onCallBack = this.context.options.onCallBack;
45
46
  if (e && (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)) {
46
- e && e.stopPropagation();
47
+ (0, _Common.cancelBubblingEffect)(e);
47
48
  return;
48
49
  }
49
50
  onClick && onClick(e);
50
51
  if (!hasReload && target != '_blank') {
51
52
  e && e.preventDefault();
52
53
  }
53
- e && e.stopPropagation();
54
+ (0, _Common.cancelBubblingEffect)(e);
54
55
  !onClick && onCallBack && onCallBack(urlOutput, href, e);
55
56
  }
56
57
  }, {
@@ -17,7 +17,7 @@
17
17
  position: relative;
18
18
  display: inline-block;
19
19
  pointer-events: initial;
20
- box-shadow: 0 0 19px 1px var(--zdt_message_default_box_shadow);
20
+ box-shadow: var(--zd_bs_message_container);
21
21
  border-radius: 0 0 5px 5px;
22
22
  background: var(--zdt_message_default_bg);
23
23
  }