@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.
- package/README.md +10 -0
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +293 -303
- package/assets/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
- package/assets/Appearance/dark/themes/green/greenDarkDotTheme.module.css +9 -9
- package/assets/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +9 -9
- package/assets/Appearance/dark/themes/red/redDarkDotTheme.module.css +9 -9
- package/assets/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +9 -9
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +288 -298
- package/assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/default/themes/green/greenDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/default/themes/red/redDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +296 -306
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/themes/green/greenPureDarkDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/themes/red/redPureDarkDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkDotTheme.module.css +9 -9
- package/css_error.log +1 -0
- package/es/AttachmentViewer/AttachmentViewer.module.css +4 -5
- package/es/Drawer/Drawer.js +3 -2
- package/es/Drawer/Drawer.module.css +42 -3
- package/es/FreezeLayer/props/propTypes.js +2 -1
- package/es/FreezeLayer/useFreezeLayer.js +5 -3
- package/es/Link/Link.js +3 -2
- package/es/Message/Message.module.css +1 -1
- package/es/PlusIcon/PlusIcon.module.css +5 -2
- package/es/ToastMessage/ToastMessage.js +2 -5
- package/es/ToastMessage/ToastMessage.module.css +7 -6
- package/es/actions/AutoClose.js +2 -5
- package/es/common/dot_boxShadow.module.css +38 -0
- package/es/common/dot_docStyle.module.css +35 -0
- package/es/form/fields/TextEditor/TextEditor.module.css +161 -63
- package/es/layout/SubtabLayout/SubtabLayout.module.css +21 -2
- package/es/list/DotNew/DotNew.module.css +8 -5
- package/es/list/TagNew/TagNew.module.css +4 -2
- package/es/lookup/Section/LookupSection.module.css +2 -2
- package/es/lookup/header/Search/Search.js +5 -8
- package/es/version2/GlobalNotification/GlobalNotification.module.css +4 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +23 -2
- package/lib/AttachmentViewer/AttachmentViewer.module.css +4 -5
- package/lib/Drawer/Drawer.js +3 -2
- package/lib/Drawer/Drawer.module.css +42 -3
- package/lib/FreezeLayer/props/propTypes.js +4 -2
- package/lib/FreezeLayer/useFreezeLayer.js +4 -2
- package/lib/Link/Link.js +3 -2
- package/lib/Message/Message.module.css +1 -1
- package/lib/PlusIcon/PlusIcon.module.css +5 -2
- package/lib/ToastMessage/ToastMessage.js +2 -5
- package/lib/ToastMessage/ToastMessage.module.css +7 -6
- package/lib/actions/AutoClose.js +2 -5
- package/lib/common/dot_boxShadow.module.css +38 -0
- package/lib/common/dot_docStyle.module.css +35 -0
- package/lib/form/fields/TextEditor/TextEditor.module.css +161 -63
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +21 -2
- package/lib/list/DotNew/DotNew.module.css +8 -5
- package/lib/list/TagNew/TagNew.module.css +4 -2
- package/lib/lookup/Section/LookupSection.module.css +2 -2
- package/lib/lookup/header/Search/Search.js +5 -10
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +4 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +23 -2
- package/package.json +10 -18
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='blue'] {
|
|
2
2
|
/* freezelayer */
|
|
3
|
-
--zdt_freezelayer_darklight_bg:
|
|
3
|
+
--zdt_freezelayer_darklight_bg: hsla(0, calc(0 * 1%), calc(6% + var(--zd_pureDark_default_lValue)), calc( 0.9 + var(--zd_alpha_high)));
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
-
--zdt_commonEmptyState_dark_title: var(--
|
|
7
|
-
--zdt_commonEmptyState_dark_description: var(--
|
|
8
|
-
--zdt_commonEmptyState_dark_link: var(--
|
|
9
|
-
--zdt_commonEmptyState_dark_link_hover:
|
|
6
|
+
--zdt_commonEmptyState_dark_title: hsla(0, calc(0 * 1%), calc(100% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
7
|
+
--zdt_commonEmptyState_dark_description: hsla(0, calc(0 * 1%), calc(100% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
8
|
+
--zdt_commonEmptyState_dark_link: hsla(212, 100%, calc(64% + var(--zd_pureDark_default_inverse_low_lValue)), calc(1 + var(--zd_alpha_low)));
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: hsla(221, 100%, calc(57% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
10
10
|
|
|
11
11
|
/* attachment viewer */
|
|
12
|
-
--zdt_attachmentviewer_header_bg:
|
|
13
|
-
--zdt_attachmentviewer_header_border:
|
|
14
|
-
--zdt_attachmentviewer_footer_bg:
|
|
15
|
-
--zdt_attachmentviewer_arrow_bg_hover:
|
|
12
|
+
--zdt_attachmentviewer_header_bg: hsla(0, calc(0 * 1%), calc(9% + var(--zd_pureDark_darker_lower_lValue)), calc(1 + var(--zd_alpha_low)));
|
|
13
|
+
--zdt_attachmentviewer_header_border: hsla(0, calc(0 * 1%), calc(13% + var(--zd_pureDark_lighter_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
14
|
+
--zdt_attachmentviewer_footer_bg: hsla(0, calc(0 * 1%), calc(9% + var(--zd_pureDark_default_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
15
|
+
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, calc(0 * 1%), calc(6% + var(--zd_pureDark_default_lValue)), calc( + var(--zd_alpha_high)));
|
|
16
16
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='green'] {
|
|
2
2
|
/* freezelayer */
|
|
3
|
-
--zdt_freezelayer_darklight_bg:
|
|
3
|
+
--zdt_freezelayer_darklight_bg: hsla(0, calc(0 * 1%), calc(6% + var(--zd_pureDark_default_lValue)), calc( 0.9 + var(--zd_alpha_high)));
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
-
--zdt_commonEmptyState_dark_title: var(--
|
|
7
|
-
--zdt_commonEmptyState_dark_description: var(--
|
|
8
|
-
--zdt_commonEmptyState_dark_link:
|
|
9
|
-
--zdt_commonEmptyState_dark_link_hover:
|
|
6
|
+
--zdt_commonEmptyState_dark_title: hsla(0, calc(0 * 1%), calc(100% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
7
|
+
--zdt_commonEmptyState_dark_description: hsla(0, calc(0 * 1%), calc(100% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
8
|
+
--zdt_commonEmptyState_dark_link: hsla(133, 40%, calc(45% + var(--zd_pureDark_default_inverse_low_lValue)), calc(1 + var(--zd_alpha_low)));
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: hsla(128, 80%, calc(27% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
10
10
|
|
|
11
11
|
/* attachment viewer */
|
|
12
|
-
--zdt_attachmentviewer_header_bg:
|
|
13
|
-
--zdt_attachmentviewer_header_border:
|
|
14
|
-
--zdt_attachmentviewer_footer_bg:
|
|
15
|
-
--zdt_attachmentviewer_arrow_bg_hover:
|
|
12
|
+
--zdt_attachmentviewer_header_bg: hsla(0, calc(0 * 1%), calc(9% + var(--zd_pureDark_darker_lower_lValue)), calc(1 + var(--zd_alpha_low)));
|
|
13
|
+
--zdt_attachmentviewer_header_border: hsla(0, calc(0 * 1%), calc(13% + var(--zd_pureDark_lighter_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
14
|
+
--zdt_attachmentviewer_footer_bg: hsla(0, calc(0 * 1%), calc(9% + var(--zd_pureDark_default_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
15
|
+
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, calc(0 * 1%), calc(6% + var(--zd_pureDark_default_lValue)), calc( + var(--zd_alpha_high)));
|
|
16
16
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='orange'] {
|
|
2
2
|
/* freezelayer */
|
|
3
|
-
--zdt_freezelayer_darklight_bg:
|
|
3
|
+
--zdt_freezelayer_darklight_bg: hsla(0, calc(0 * 1%), calc(6% + var(--zd_pureDark_default_lValue)), calc( 0.9 + var(--zd_alpha_high)));
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
-
--zdt_commonEmptyState_dark_title: var(--
|
|
7
|
-
--zdt_commonEmptyState_dark_description: var(--
|
|
8
|
-
--zdt_commonEmptyState_dark_link: var(--
|
|
9
|
-
--zdt_commonEmptyState_dark_link_hover:
|
|
6
|
+
--zdt_commonEmptyState_dark_title: hsla(0, calc(0 * 1%), calc(100% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
7
|
+
--zdt_commonEmptyState_dark_description: hsla(0, calc(0 * 1%), calc(100% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
8
|
+
--zdt_commonEmptyState_dark_link: hsla(26, 100%, calc(56% + var(--zd_pureDark_default_inverse_low_lValue)), calc(1 + var(--zd_alpha_low)));
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: hsla(29, 100%, calc(33% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
10
10
|
|
|
11
11
|
/* attachment viewer */
|
|
12
|
-
--zdt_attachmentviewer_header_bg:
|
|
13
|
-
--zdt_attachmentviewer_header_border:
|
|
14
|
-
--zdt_attachmentviewer_footer_bg:
|
|
15
|
-
--zdt_attachmentviewer_arrow_bg_hover:
|
|
12
|
+
--zdt_attachmentviewer_header_bg: hsla(0, calc(0 * 1%), calc(9% + var(--zd_pureDark_darker_lower_lValue)), calc(1 + var(--zd_alpha_low)));
|
|
13
|
+
--zdt_attachmentviewer_header_border: hsla(0, calc(0 * 1%), calc(13% + var(--zd_pureDark_lighter_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
14
|
+
--zdt_attachmentviewer_footer_bg: hsla(0, calc(0 * 1%), calc(9% + var(--zd_pureDark_default_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
15
|
+
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, calc(0 * 1%), calc(6% + var(--zd_pureDark_default_lValue)), calc( + var(--zd_alpha_high)));
|
|
16
16
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='red'] {
|
|
2
2
|
/* freezelayer */
|
|
3
|
-
--zdt_freezelayer_darklight_bg:
|
|
3
|
+
--zdt_freezelayer_darklight_bg: hsla(0, calc(0 * 1%), calc(6% + var(--zd_pureDark_default_lValue)), calc( 0.9 + var(--zd_alpha_high)));
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
-
--zdt_commonEmptyState_dark_title: var(--
|
|
7
|
-
--zdt_commonEmptyState_dark_description: var(--
|
|
8
|
-
--zdt_commonEmptyState_dark_link:
|
|
9
|
-
--zdt_commonEmptyState_dark_link_hover:
|
|
6
|
+
--zdt_commonEmptyState_dark_title: hsla(0, calc(0 * 1%), calc(100% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
7
|
+
--zdt_commonEmptyState_dark_description: hsla(0, calc(0 * 1%), calc(100% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
8
|
+
--zdt_commonEmptyState_dark_link: hsla(0, 78%, calc(61% + var(--zd_pureDark_default_inverse_low_lValue)), calc(1 + var(--zd_alpha_low)));
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: hsla(0, 82%, calc(36% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
10
10
|
|
|
11
11
|
/* attachment viewer */
|
|
12
|
-
--zdt_attachmentviewer_header_bg:
|
|
13
|
-
--zdt_attachmentviewer_header_border:
|
|
14
|
-
--zdt_attachmentviewer_footer_bg:
|
|
15
|
-
--zdt_attachmentviewer_arrow_bg_hover:
|
|
12
|
+
--zdt_attachmentviewer_header_bg: hsla(0, calc(0 * 1%), calc(9% + var(--zd_pureDark_darker_lower_lValue)), calc(1 + var(--zd_alpha_low)));
|
|
13
|
+
--zdt_attachmentviewer_header_border: hsla(0, calc(0 * 1%), calc(13% + var(--zd_pureDark_lighter_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
14
|
+
--zdt_attachmentviewer_footer_bg: hsla(0, calc(0 * 1%), calc(9% + var(--zd_pureDark_default_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
15
|
+
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, calc(0 * 1%), calc(6% + var(--zd_pureDark_default_lValue)), calc( + var(--zd_alpha_high)));
|
|
16
16
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='yellow'] {
|
|
2
2
|
/* freezelayer */
|
|
3
|
-
--zdt_freezelayer_darklight_bg:
|
|
3
|
+
--zdt_freezelayer_darklight_bg: hsla(0, calc(0 * 1%), calc(6% + var(--zd_pureDark_default_lValue)), calc( 0.9 + var(--zd_alpha_high)));
|
|
4
4
|
|
|
5
5
|
/* common empty state */
|
|
6
|
-
--zdt_commonEmptyState_dark_title: var(--
|
|
7
|
-
--zdt_commonEmptyState_dark_description: var(--
|
|
8
|
-
--zdt_commonEmptyState_dark_link:
|
|
9
|
-
--zdt_commonEmptyState_dark_link_hover:
|
|
6
|
+
--zdt_commonEmptyState_dark_title: hsla(0, calc(0 * 1%), calc(100% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
7
|
+
--zdt_commonEmptyState_dark_description: hsla(0, calc(0 * 1%), calc(100% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
8
|
+
--zdt_commonEmptyState_dark_link: hsla(37, 67%, calc(53% + var(--zd_pureDark_default_inverse_low_lValue)), calc(1 + var(--zd_alpha_low)));
|
|
9
|
+
--zdt_commonEmptyState_dark_link_hover: hsla(39, 90%, calc(32% + var(--zd_pureDark_default_inverse_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
10
10
|
|
|
11
11
|
/* attachment viewer */
|
|
12
|
-
--zdt_attachmentviewer_header_bg:
|
|
13
|
-
--zdt_attachmentviewer_header_border:
|
|
14
|
-
--zdt_attachmentviewer_footer_bg:
|
|
15
|
-
--zdt_attachmentviewer_arrow_bg_hover:
|
|
12
|
+
--zdt_attachmentviewer_header_bg: hsla(0, calc(0 * 1%), calc(9% + var(--zd_pureDark_darker_lower_lValue)), calc(1 + var(--zd_alpha_low)));
|
|
13
|
+
--zdt_attachmentviewer_header_border: hsla(0, calc(0 * 1%), calc(13% + var(--zd_pureDark_lighter_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
14
|
+
--zdt_attachmentviewer_footer_bg: hsla(0, calc(0 * 1%), calc(9% + var(--zd_pureDark_default_lValue)), calc(1 + var(--zd_alpha_high)));
|
|
15
|
+
--zdt_attachmentviewer_arrow_bg_hover: hsla(0, calc(0 * 1%), calc(6% + var(--zd_pureDark_default_lValue)), calc( + var(--zd_alpha_high)));
|
|
16
16
|
}
|
package/css_error.log
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DOT Package error log:
|
|
@@ -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:
|
|
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
|
+
}
|
package/es/Drawer/Drawer.js
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Header_defaultProps, Footer_defaultProps, Drawer_defaultProps } from './props/defaultProps';
|
|
3
3
|
import { Header_propTypes, Content_propTypes, Footer_propTypes, Drawer_propTypes } from './props/propTypes';
|
|
4
4
|
import FreezeLayer from '../FreezeLayer/FreezeLayer';
|
|
5
|
+
import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
|
|
5
6
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
6
7
|
import { Card, CardHeader, CardContent } from '@zohodesk/components/lib/Card';
|
|
7
8
|
import FormAction from '../FormAction/FormAction';
|
|
@@ -166,7 +167,7 @@ export default class Drawer extends React.Component {
|
|
|
166
167
|
eleRef: this.createRef
|
|
167
168
|
}, /*#__PURE__*/React.createElement(Card, {
|
|
168
169
|
onClick: e => {
|
|
169
|
-
e
|
|
170
|
+
cancelBubblingEffect(e);
|
|
170
171
|
onBodyClick(e);
|
|
171
172
|
}
|
|
172
173
|
}, childrenWithProps));
|
|
@@ -178,7 +179,7 @@ export default class Drawer extends React.Component {
|
|
|
178
179
|
}, /*#__PURE__*/React.createElement(ResponsiveSender, null, /*#__PURE__*/React.createElement(Container, {
|
|
179
180
|
className: styleByResolutions,
|
|
180
181
|
onClick: e => {
|
|
181
|
-
e
|
|
182
|
+
cancelBubblingEffect(e);
|
|
182
183
|
}
|
|
183
184
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
184
185
|
flexible: true
|
|
@@ -1,79 +1,100 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
transition: width var(--zd_transition3);
|
|
3
|
-
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:
|
|
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(
|
|
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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect } from 'react';
|
|
2
|
-
import { isTextSelected } from '@zohodesk/components/es/utils/Common';
|
|
2
|
+
import { isTextSelected, cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
|
|
3
3
|
import { getDotLibraryConfig } from '../Provider/Config';
|
|
4
4
|
export default function useFreezeLayer(_ref) {
|
|
5
5
|
let {
|
|
@@ -9,9 +9,11 @@ export default function useFreezeLayer(_ref) {
|
|
|
9
9
|
const [isActive, setActive] = useState(propsActive);
|
|
10
10
|
const [isChildActive, setChildActive] = useState(false);
|
|
11
11
|
let isFreezeLayerEnabled = useRef(false);
|
|
12
|
-
function handleClick() {
|
|
12
|
+
function handleClick(e) {
|
|
13
13
|
if (onClick && !isTextSelected()) {
|
|
14
|
-
onClick();
|
|
14
|
+
onClick(e);
|
|
15
|
+
} else {
|
|
16
|
+
cancelBubblingEffect(e);
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
function enableFreeze() {
|
package/es/Link/Link.js
CHANGED
|
@@ -2,6 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { defaultProps } from './props/defaultProps';
|
|
4
4
|
import { propTypes } from './props/propTypes';
|
|
5
|
+
import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
|
|
5
6
|
import style from './Link.module.css';
|
|
6
7
|
import LinkContext from './LinkContext';
|
|
7
8
|
export default class Link extends React.Component {
|
|
@@ -19,14 +20,14 @@ export default class Link extends React.Component {
|
|
|
19
20
|
onCallBack
|
|
20
21
|
} = this.context.options;
|
|
21
22
|
if (e && (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)) {
|
|
22
|
-
e
|
|
23
|
+
cancelBubblingEffect(e);
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
26
|
onClick && onClick(e);
|
|
26
27
|
if (!hasReload && target != '_blank') {
|
|
27
28
|
e && e.preventDefault();
|
|
28
29
|
}
|
|
29
|
-
e
|
|
30
|
+
cancelBubblingEffect(e);
|
|
30
31
|
!onClick && onCallBack && onCallBack(urlOutput, href, e);
|
|
31
32
|
}
|
|
32
33
|
addHttp(url) {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
position: relative;
|
|
18
18
|
display: inline-block;
|
|
19
19
|
pointer-events: initial;
|
|
20
|
-
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
|
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
composes: dinblk from '~@zohodesk/components/lib/common/common.module.css';
|
|
3
3
|
border-radius: 50%;
|
|
4
|
-
box-shadow:
|
|
4
|
+
box-shadow: var(--zd_bs_plusicon_container);
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
background-color: var(--zdt_plusicon_bg);
|
|
7
7
|
}
|
|
8
|
+
|
|
8
9
|
.plusIcon {
|
|
9
10
|
border: 1px solid var(--zdt_plusicon_border);
|
|
10
11
|
}
|
|
12
|
+
|
|
11
13
|
.icon {
|
|
12
14
|
color: var(--zdt_plusicon_text);
|
|
13
15
|
}
|
|
16
|
+
|
|
14
17
|
.plusIcon:hover {
|
|
15
18
|
border-color: var(--zdt_plusicon_hover_border);
|
|
16
|
-
}
|
|
19
|
+
}
|
|
@@ -3,6 +3,7 @@ import React, { useState } from 'react';
|
|
|
3
3
|
import { defaultProps } from './props/defaultProps';
|
|
4
4
|
import { propTypes } from './props/propTypes';
|
|
5
5
|
//components
|
|
6
|
+
import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
|
|
6
7
|
import { Icon } from '@zohodesk/icons';
|
|
7
8
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
8
9
|
import { useZIndex } from '@zohodesk/components/lib/Provider/ZindexProvider';
|
|
@@ -11,10 +12,6 @@ import AutoClose from '../actions/AutoClose';
|
|
|
11
12
|
import a11yStyle from '@zohodesk/components/lib/semantic/Button/semanticButton.module.css';
|
|
12
13
|
//style
|
|
13
14
|
import style from './ToastMessage.module.css';
|
|
14
|
-
function removeClose(e) {
|
|
15
|
-
e && e.stopPropagation && e.stopPropagation();
|
|
16
|
-
e && e.nativeEvent && e.nativeEvent.stopImmediatePropagation && e.nativeEvent.stopImmediatePropagation();
|
|
17
|
-
}
|
|
18
15
|
function ToastMessageUI(props) {
|
|
19
16
|
let [messageState, setMessageState] = useState(props.messageState);
|
|
20
17
|
let {
|
|
@@ -54,7 +51,7 @@ function ToastMessageUI(props) {
|
|
|
54
51
|
onClose && onClose();
|
|
55
52
|
}
|
|
56
53
|
function changeMessageState(e) {
|
|
57
|
-
|
|
54
|
+
cancelBubblingEffect(e);
|
|
58
55
|
setMessageState(!messageState);
|
|
59
56
|
}
|
|
60
57
|
let animateClass = isClose ? style.rightanimate : style.leftanimate;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
max-height: 100%;
|
|
5
5
|
border-radius: 5px;
|
|
6
|
-
box-shadow:
|
|
6
|
+
box-shadow: var(--zd_bs_toastmessage_container);
|
|
7
7
|
background-color: var(--zdt_toastmessage_default_bg);
|
|
8
8
|
margin-bottom: var(--zd_size7);
|
|
9
9
|
}[dir=ltr] .container {
|
|
@@ -149,6 +149,7 @@
|
|
|
149
149
|
.alertleft {
|
|
150
150
|
padding: var(--zd_size15) var(--zd_size25);
|
|
151
151
|
}
|
|
152
|
+
|
|
152
153
|
.alertico {
|
|
153
154
|
min-width: var(--zd_size50);
|
|
154
155
|
}
|
|
@@ -232,17 +233,17 @@
|
|
|
232
233
|
background: var(--zdt_toastmessage_dropdown_bg);
|
|
233
234
|
}
|
|
234
235
|
|
|
235
|
-
.dropdown
|
|
236
|
+
.dropdown>i {
|
|
236
237
|
position: absolute;
|
|
237
238
|
top: 50%;
|
|
238
239
|
}
|
|
239
240
|
|
|
240
|
-
[dir=ltr] .dropdown
|
|
241
|
+
[dir=ltr] .dropdown>i {
|
|
241
242
|
left: 50%;
|
|
242
243
|
transform: translate(-50%, -50%);
|
|
243
244
|
}
|
|
244
245
|
|
|
245
|
-
[dir=rtl] .dropdown
|
|
246
|
+
[dir=rtl] .dropdown>i {
|
|
246
247
|
right: 50%;
|
|
247
248
|
transform: translate(50%, -50%);
|
|
248
249
|
}
|
|
@@ -260,7 +261,7 @@
|
|
|
260
261
|
transition: padding var(--zd_transition3), height var(--zd_transition3);
|
|
261
262
|
border-top: 1px solid var(--zdt_toastmessage_message_border);
|
|
262
263
|
cursor: pointer;
|
|
263
|
-
margin:0;
|
|
264
|
+
margin: 0;
|
|
264
265
|
}
|
|
265
266
|
|
|
266
267
|
[dir=ltr] .message {
|
|
@@ -325,4 +326,4 @@
|
|
|
325
326
|
|
|
326
327
|
.primaryPlain {
|
|
327
328
|
color: var(--zdt_toastmessage_primary_text);
|
|
328
|
-
}
|
|
329
|
+
}
|
package/es/actions/AutoClose.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
|
|
2
3
|
import { defaultProps } from './props/defaultProps';
|
|
3
4
|
import { propTypes } from './props/propTypes';
|
|
4
|
-
function removeClose(e) {
|
|
5
|
-
e && e.stopPropagation && e.stopPropagation();
|
|
6
|
-
e && e.nativeEvent && e.nativeEvent.stopImmediatePropagation && e.nativeEvent.stopImmediatePropagation();
|
|
7
|
-
}
|
|
8
5
|
export default function AutoClose(props) {
|
|
9
6
|
let {
|
|
10
7
|
Element,
|
|
@@ -15,7 +12,7 @@ export default function AutoClose(props) {
|
|
|
15
12
|
} = props;
|
|
16
13
|
let [isClose, setClose] = useState(givenClose);
|
|
17
14
|
function onClose(e) {
|
|
18
|
-
|
|
15
|
+
cancelBubblingEffect(e);
|
|
19
16
|
onPortalClose && onPortalClose();
|
|
20
17
|
}
|
|
21
18
|
useEffect(() => {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* attachment viewer */
|
|
3
|
+
--zd_bs_attachmentviewer_selected: var(--zd_bs_contrast_outline, 0 0 4px 2px var(--zdt_attachmentviewer_selected_box_shadow) inset);
|
|
4
|
+
|
|
5
|
+
/* texteditor */
|
|
6
|
+
--zd_bs_texteditor_menu: var(--zd_bs_contrast_outline, -1px 1px 2px 0 var(--zdt_texteditor_menu_after_box_shadow));
|
|
7
|
+
--zd_bs_texteditor_ul: var(--zd_bs_contrast_outline, 0 1px 32px 0 var(--zdt_texteditor_dropdown_box_shadow));
|
|
8
|
+
|
|
9
|
+
/* subtab layout */
|
|
10
|
+
--zd_bs_subtablayout_shadow: var(--zd_bs_contrast_outline, 0 0 6px var(--zdt_subtablayout_shadowstyle_box_shadow));
|
|
11
|
+
|
|
12
|
+
/* drawer */
|
|
13
|
+
--zd_bs_drawer_shadow: var(--zd_bs_contrast_outline, 0 6px 12px var(--zdt_drawer_default_box_shadow));
|
|
14
|
+
|
|
15
|
+
/* dot new */
|
|
16
|
+
--zd_bs_dotnew_shadow: var(--zd_bs_contrast_outline, 0 0 15px 1px var(--zdt_dotnew_default_box_shadow));
|
|
17
|
+
|
|
18
|
+
/* tag new */
|
|
19
|
+
--zd_bs_tagnew_shadow: var(--zd_bs_contrast_outline, 0 8px 30px 0 var(--zdt_tagnew_default_box_shadow));
|
|
20
|
+
|
|
21
|
+
/* lookup section */
|
|
22
|
+
--zd_bs_lookupsection_shadow: var(--zd_bs_contrast_outline, 0px 4px 20px var(--zdt_lookupsection_box_shadow));
|
|
23
|
+
|
|
24
|
+
/* message */
|
|
25
|
+
--zd_bs_message_container: var(--zd_bs_contrast_outline, 0 0 19px 1px var(--zdt_message_default_box_shadow));
|
|
26
|
+
|
|
27
|
+
/* plus icon */
|
|
28
|
+
--zd_bs_plusicon_container: var(--zd_bs_contrast_outline, 0 2px 3px 0 var(--zdt_plusicon_box_shadow));
|
|
29
|
+
|
|
30
|
+
/* toast message */
|
|
31
|
+
--zd_bs_toastmessage_container: var(--zd_bs_contrast_outline, 0 5px 40px 7px var(--zdt_toastmessage_default_box_shadow));
|
|
32
|
+
|
|
33
|
+
/* global notification */
|
|
34
|
+
--zd_bs_globalnotification_container: var(--zd_bs_contrast_outline, 0 4px 20px var(--globalnotification_box_shadow));
|
|
35
|
+
|
|
36
|
+
/* desktop notification */
|
|
37
|
+
--zd_bs_desktopnotification_container: var(--zd_bs_contrast_outline, 0 4px 20px var(--zdt_desktopnotification_box_shadow));
|
|
38
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[data-mode='default']:global(.zd-contrast) {
|
|
2
|
+
color: #000;
|
|
3
|
+
background: #fff;
|
|
4
|
+
border-color: #000;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-mode='dark']:global(.zd-contrast) {
|
|
8
|
+
color: #fff;
|
|
9
|
+
background-color: #101319;
|
|
10
|
+
border-color: #fff;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-mode='pureDark']:global(.zd-contrast) {
|
|
14
|
+
color: #fff;
|
|
15
|
+
background-color: #080808;
|
|
16
|
+
border-color: #fff;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:global(.zd-contrast) {
|
|
20
|
+
--zd_bs_contrast_outline: 0 0 2px var(--zdt_contrast_shadow);
|
|
21
|
+
--zd_bs_contrast_none: 0 0 0 transparent;
|
|
22
|
+
--zd_lightmode_grey_bg: -0%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:global(.zd-contrast-level1) {
|
|
26
|
+
--zd_contrastLevel: 10;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:global(.zd-contrast-level2) {
|
|
30
|
+
--zd_contrastLevel: 20;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:global(.zd-contrast-level3) {
|
|
34
|
+
--zd_contrastLevel: 40;
|
|
35
|
+
}
|