@zohodesk/dot 1.0.0-temp-117 → 1.0.0-temp-118
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 +4 -0
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +7 -2
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +7 -2
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +7 -2
- package/css_error.log +13 -1
- package/es/AttachmentViewer/AttachmentViewer.module.css +4 -5
- package/es/Drawer/Drawer.module.css +42 -3
- package/es/Message/Message.module.css +1 -1
- package/es/PlusIcon/PlusIcon.module.css +5 -2
- package/es/Separator/Separator.js +57 -0
- package/es/Separator/Separator.module.css +34 -0
- package/es/Separator/props/defaultProps.js +12 -0
- package/es/Separator/props/propTypes.js +11 -0
- package/es/ToastMessage/ToastMessage.module.css +7 -6
- package/es/common/boxShadow.module.css +77 -0
- package/es/form/fields/TextEditor/TextEditor.js +3 -3
- 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/utils/editorUtils.js +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.module.css +4 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +23 -2
- package/install.md +12 -0
- package/lib/AttachmentViewer/AttachmentViewer.module.css +4 -5
- package/lib/Drawer/Drawer.module.css +42 -3
- package/lib/Message/Message.module.css +1 -1
- package/lib/PlusIcon/PlusIcon.module.css +5 -2
- package/lib/Separator/Separator.js +82 -0
- package/lib/Separator/Separator.module.css +34 -0
- package/lib/Separator/props/defaultProps.js +19 -0
- package/lib/Separator/props/propTypes.js +19 -0
- package/lib/ToastMessage/ToastMessage.module.css +7 -6
- package/lib/common/boxShadow.module.css +77 -0
- package/lib/form/fields/TextEditor/TextEditor.js +3 -3
- 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/utils/editorUtils.js +1 -1
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +4 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +23 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
--zdt_freezelayer_default_bg: hsl(0, 0%, calc(0% + var(--zd_dark_bg_lValue)), calc( 0.8 + var(--zd_bg_alpha)));
|
|
159
159
|
--zdt_freezelayer_dark_bg: hsl(0, 0%, calc(0% + var(--zd_dark_buttonBg_lValue)), calc( 0.8 + var(--zd_bg_alpha)));
|
|
160
160
|
--zdt_freezelayer_plain_bg: var(--dot_mirror);
|
|
161
|
-
--zdt_freezelayer_snow_bg: hsl(227, 27%, calc(24% + var(--
|
|
161
|
+
--zdt_freezelayer_snow_bg: hsl(227, 27%, calc(24% + var(--zd_dark_emboseBg_lValue)), calc( 0.75 + var(--zd_alpha)));
|
|
162
162
|
|
|
163
163
|
/* icon button */
|
|
164
164
|
--zdt_iconButton_icon_black: hsl(210, 7%, calc(89% + var(--zd_dark_text_lValue)), calc(1 + var(--zd_alpha)));
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
|
|
523
523
|
/* text editor */
|
|
524
524
|
--zdt_texteditor_menu_bg: hsl(216, 38%, calc(97% + var(--zd_dark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
|
|
525
|
-
--zdt_texteditor_default_bg: hsl(0, 0%,
|
|
525
|
+
--zdt_texteditor_default_bg: hsl(0, 0%, 100%, 1);
|
|
526
526
|
--zdt_texteditor_default_border: hsl(213, 27%, calc(87% + var(--zd_dark_border_lValue)), calc(1 + var(--zd_alpha)));
|
|
527
527
|
--zdt_texteditor_menu_li_bg: hsl(217, 37%, calc(93% + var(--zd_dark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
|
|
528
528
|
--zdt_texteditor_default_text: hsl(0, 0%, calc(0% + var(--zd_dark_text_lValue)), calc(1 + var(--zd_alpha)));
|
|
@@ -551,4 +551,9 @@
|
|
|
551
551
|
--zdt_attachmentviewer_selected_box_shadow: hsl(0, 0%, calc(0% + var(--zd_dark_boxShadow_lValue)), calc( 0.34 + var(--zd_bg_alpha)));
|
|
552
552
|
--zdt_attachmentviewer_loader_border: hsl(223, 14%, calc(19% + var(--zd_dark_border_lValue)), calc(1 + var(--zd_alpha)));
|
|
553
553
|
--zdt_attachmentviewer_loader_border_top: hsl(0, 0%, calc(95% + var(--zd_dark_text_lValue)), calc(1 + var(--zd_alpha)));
|
|
554
|
+
|
|
555
|
+
/* separator */
|
|
556
|
+
--zdt_separator_default_text: hsl(216, 23%, calc(32% + var(--zd_dark_undefined_lValue)), calc(1 + var(--zd_alpha)));
|
|
557
|
+
--zdt_separator_primary_text: var(--zdt_cta_primary_text);
|
|
558
|
+
--zdt_separator_secondary_text: hsl(210, 7%, calc(89% + var(--zd_dark_undefined_lValue)), calc(1 + var(--zd_alpha)));
|
|
554
559
|
}
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
--zdt_freezelayer_default_bg: hsl(0, 0%, calc(0% + var(--zd_default_bg_lValue)), calc( 0.45 + var(--zd_bg_alpha)));
|
|
159
159
|
--zdt_freezelayer_dark_bg: hsl(0, 0%, calc(0% + var(--zd_default_buttonBg_lValue)), calc( 0.9 + var(--zd_bg_alpha)));
|
|
160
160
|
--zdt_freezelayer_plain_bg: var(--dot_mirror);
|
|
161
|
-
--zdt_freezelayer_snow_bg: hsl(227, 27%, calc(24% + var(--
|
|
161
|
+
--zdt_freezelayer_snow_bg: hsl(227, 27%, calc(24% + var(--zd_default_emboseBg_lValue)), calc( 0.45 + var(--zd_alpha)));
|
|
162
162
|
|
|
163
163
|
/* icon button */
|
|
164
164
|
--zdt_iconButton_icon_black: hsl(0, 0%, calc(0% + var(--zd_default_text_lValue)), calc(1 + var(--zd_alpha)));
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
|
|
523
523
|
/* text editor */
|
|
524
524
|
--zdt_texteditor_menu_bg: hsl(216, 38%, calc(97% + var(--zd_default_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
|
|
525
|
-
--zdt_texteditor_default_bg: hsl(0, 0%,
|
|
525
|
+
--zdt_texteditor_default_bg: hsl(0, 0%, 100%, 1);
|
|
526
526
|
--zdt_texteditor_default_border: hsl(213, 27%, calc(87% + var(--zd_default_border_lValue)), calc(1 + var(--zd_alpha)));
|
|
527
527
|
--zdt_texteditor_menu_li_bg: hsl(217, 37%, calc(93% + var(--zd_default_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
|
|
528
528
|
--zdt_texteditor_default_text: hsl(0, 0%, calc(0% + var(--zd_default_text_lValue)), calc(1 + var(--zd_alpha)));
|
|
@@ -551,4 +551,9 @@
|
|
|
551
551
|
--zdt_attachmentviewer_selected_box_shadow: hsl(0, 0%, calc(0% + var(--zd_default_boxShadow_lValue)), calc( 0.34 + var(--zd_bg_alpha)));
|
|
552
552
|
--zdt_attachmentviewer_loader_border: hsl(223, 14%, calc(19% + var(--zd_default_border_lValue)), calc(1 + var(--zd_alpha)));
|
|
553
553
|
--zdt_attachmentviewer_loader_border_top: hsl(0, 0%, calc(95% + var(--zd_default_text_lValue)), calc(1 + var(--zd_alpha)));
|
|
554
|
+
|
|
555
|
+
/* separator */
|
|
556
|
+
--zdt_separator_default_text: hsl(0, 0%, calc(79% + var(--zd_default_undefined_lValue)), calc(1 + var(--zd_alpha)));
|
|
557
|
+
--zdt_separator_primary_text: var(--zdt_cta_primary_text);
|
|
558
|
+
--zdt_separator_secondary_text: hsl(0, 0%, calc(0% + var(--zd_default_undefined_lValue)), calc(1 + var(--zd_alpha)));
|
|
554
559
|
}
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
--zdt_freezelayer_default_bg: hsl(0, 0%, calc(0% + var(--zd_pureDark_bg_lValue)), calc( 0.8 + var(--zd_bg_alpha)));
|
|
159
159
|
--zdt_freezelayer_dark_bg: hsl(0, 0%, calc(0% + var(--zd_pureDark_buttonBg_lValue)), calc( 0.8 + var(--zd_bg_alpha)));
|
|
160
160
|
--zdt_freezelayer_plain_bg: var(--dot_mirror);
|
|
161
|
-
--zdt_freezelayer_snow_bg: hsl(0, 0%, calc(0% + var(--
|
|
161
|
+
--zdt_freezelayer_snow_bg: hsl(0, 0%, calc(0% + var(--zd_pureDark_emboseBg_lValue)), calc( 0.8 + var(--zd_alpha)));
|
|
162
162
|
|
|
163
163
|
/* icon button */
|
|
164
164
|
--zdt_iconButton_icon_black: hsl(210, 7%, calc(89% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
|
|
523
523
|
/* text editor */
|
|
524
524
|
--zdt_texteditor_menu_bg: hsl(216, 38%, calc(97% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
|
|
525
|
-
--zdt_texteditor_default_bg: hsl(0, 0%,
|
|
525
|
+
--zdt_texteditor_default_bg: hsl(0, 0%, 100%, 1);
|
|
526
526
|
--zdt_texteditor_default_border: hsl(213, 27%, calc(87% + var(--zd_pureDark_border_lValue)), calc(1 + var(--zd_alpha)));
|
|
527
527
|
--zdt_texteditor_menu_li_bg: hsl(217, 37%, calc(93% + var(--zd_pureDark_bg_lValue)), calc(1 + var(--zd_bg_alpha)));
|
|
528
528
|
--zdt_texteditor_default_text: hsl(0, 0%, calc(0% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
|
|
@@ -551,4 +551,9 @@
|
|
|
551
551
|
--zdt_attachmentviewer_selected_box_shadow: hsl(0, 0%, calc(0% + var(--zd_pureDark_boxShadow_lValue)), calc( 0.34 + var(--zd_bg_alpha)));
|
|
552
552
|
--zdt_attachmentviewer_loader_border: hsl(223, 14%, calc(19% + var(--zd_pureDark_border_lValue)), calc(1 + var(--zd_alpha)));
|
|
553
553
|
--zdt_attachmentviewer_loader_border_top: hsl(0, 0%, calc(95% + var(--zd_pureDark_text_lValue)), calc(1 + var(--zd_alpha)));
|
|
554
|
+
|
|
555
|
+
/* separator */
|
|
556
|
+
--zdt_separator_default_text: hsl(0, 0%, calc(35% + var(--zd_pureDark_undefined_lValue)), calc(1 + var(--zd_alpha)));
|
|
557
|
+
--zdt_separator_primary_text: var(--zdt_cta_primary_text);
|
|
558
|
+
--zdt_separator_secondary_text: hsl(210, 7%, calc(89% + var(--zd_pureDark_undefined_lValue)), calc(1 + var(--zd_alpha)));
|
|
554
559
|
}
|
package/css_error.log
CHANGED
|
@@ -14,6 +14,10 @@ wrong category name => `undefined`, variable name => `messagebanner_white_text`,
|
|
|
14
14
|
wrong category name => `undefined`, variable name => `newstar_green_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
15
15
|
wrong category name => `undefined`, variable name => `newstar_yellow_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
16
16
|
wrong category name => `undefined`, variable name => `newstar_blue_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
17
|
+
wrong category name => `exclude`, variable name => `texteditor_default_bg`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
18
|
+
wrong category name => `undefined`, variable name => `separator_default_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
19
|
+
wrong category name => `undefined`, variable name => `separator_primary_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
20
|
+
wrong category name => `undefined`, variable name => `separator_secondary_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
17
21
|
wrong category name => `undefined`, variable name => `message_info_bg`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
18
22
|
wrong category name => `undefined`, variable name => `message_tickicon`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
19
23
|
wrong category name => `undefined`, variable name => `message_close_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
@@ -28,6 +32,10 @@ wrong category name => `undefined`, variable name => `messagebanner_white_text`,
|
|
|
28
32
|
wrong category name => `undefined`, variable name => `newstar_green_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
29
33
|
wrong category name => `undefined`, variable name => `newstar_yellow_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
30
34
|
wrong category name => `undefined`, variable name => `newstar_blue_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
35
|
+
wrong category name => `exclude`, variable name => `texteditor_default_bg`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
36
|
+
wrong category name => `undefined`, variable name => `separator_default_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
37
|
+
wrong category name => `undefined`, variable name => `separator_primary_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
38
|
+
wrong category name => `undefined`, variable name => `separator_secondary_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
31
39
|
wrong category name => `undefined`, variable name => `message_info_bg`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
32
40
|
wrong category name => `undefined`, variable name => `message_tickicon`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
33
41
|
wrong category name => `undefined`, variable name => `message_close_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
@@ -41,4 +49,8 @@ wrong category name => `undefined`, variable name => `messagebanner_blue_bg`, er
|
|
|
41
49
|
wrong category name => `undefined`, variable name => `messagebanner_white_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
42
50
|
wrong category name => `undefined`, variable name => `newstar_green_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
43
51
|
wrong category name => `undefined`, variable name => `newstar_yellow_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
44
|
-
wrong category name => `undefined`, variable name => `newstar_blue_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
52
|
+
wrong category name => `undefined`, variable name => `newstar_blue_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
53
|
+
wrong category name => `exclude`, variable name => `texteditor_default_bg`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
54
|
+
wrong category name => `undefined`, variable name => `separator_default_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
55
|
+
wrong category name => `undefined`, variable name => `separator_primary_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
56
|
+
wrong category name => `undefined`, variable name => `separator_secondary_text`, error folder path => `D:\git\client\desklibrary\BugFix\jsapps\dot\dot\preprocess`
|
|
@@ -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(--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:
|
|
3
|
+
box-shadow: var(--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(--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
|
}
|
|
@@ -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(--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(--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
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
3
|
+
import { defaultProps } from './props/defaultProps';
|
|
4
|
+
import { propTypes } from './props/propTypes';
|
|
5
|
+
import style from './Separator.module.css';
|
|
6
|
+
export default class Separator extends React.Component {
|
|
7
|
+
constructor(props) {
|
|
8
|
+
super(props);
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
const {
|
|
12
|
+
children,
|
|
13
|
+
type,
|
|
14
|
+
customSeparatorType,
|
|
15
|
+
palette,
|
|
16
|
+
wrap,
|
|
17
|
+
shrink,
|
|
18
|
+
aligndirection,
|
|
19
|
+
customClass
|
|
20
|
+
} = this.props;
|
|
21
|
+
const {
|
|
22
|
+
customWrapper,
|
|
23
|
+
customSeparator,
|
|
24
|
+
customChildren
|
|
25
|
+
} = customClass;
|
|
26
|
+
const data = children.filter(el => el !== null && el !== undefined && el !== false);
|
|
27
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
28
|
+
alignBox: aligndirection,
|
|
29
|
+
align: aligndirection === 'row' ? 'vertical' : '',
|
|
30
|
+
wrap: wrap,
|
|
31
|
+
isCover: false,
|
|
32
|
+
className: `${style.varClass} ${customWrapper}`
|
|
33
|
+
}, data.map((child, i) => {
|
|
34
|
+
if (child) {
|
|
35
|
+
if (data.length - 1 == i || aligndirection == 'column') {
|
|
36
|
+
return child && /*#__PURE__*/React.createElement(Box, {
|
|
37
|
+
shrink: shrink,
|
|
38
|
+
key: i,
|
|
39
|
+
className: customChildren
|
|
40
|
+
}, child);
|
|
41
|
+
}
|
|
42
|
+
return child && /*#__PURE__*/React.createElement(React.Fragment, {
|
|
43
|
+
key: i
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
45
|
+
shrink: shrink,
|
|
46
|
+
key: i,
|
|
47
|
+
className: customChildren
|
|
48
|
+
}, child), /*#__PURE__*/React.createElement(Box, {
|
|
49
|
+
className: `${style.separator} ${style[palette]} ${customSeparatorType ? '' : style[type]} ${customSeparator} `,
|
|
50
|
+
key: i
|
|
51
|
+
}, customSeparatorType ? customSeparatorType : type == 'slash' ? '/' : type == 'arrow' ? '>' : type == 'comma' ? ',' : '\u2022'));
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
Separator.defaultProps = defaultProps;
|
|
57
|
+
Separator.propTypes = propTypes;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.varClass {
|
|
2
|
+
--separator_fontSize: var(--zd_font_size15);
|
|
3
|
+
}
|
|
4
|
+
.separator {
|
|
5
|
+
font-size: var(--separator_fontSize);
|
|
6
|
+
margin: 0 var(--zd_size5);
|
|
7
|
+
}
|
|
8
|
+
.dot {
|
|
9
|
+
--separator_fontSize: var(--zd_font_size8);
|
|
10
|
+
}
|
|
11
|
+
.slash {
|
|
12
|
+
--separator_fontSize: var(--zd_font_size10);
|
|
13
|
+
/* line-height: var(--zd_size10); */
|
|
14
|
+
}
|
|
15
|
+
.arrow {
|
|
16
|
+
--separator_fontSize: var(--zd_font_size8);
|
|
17
|
+
/* line-height: var(--zd_size7); */
|
|
18
|
+
}
|
|
19
|
+
.comma {
|
|
20
|
+
--separator_fontSize: var(--zd_font_size15);
|
|
21
|
+
/* line-height: var(--zd_size13); */
|
|
22
|
+
}
|
|
23
|
+
.none {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
.default {
|
|
27
|
+
color: var(--zdt_separator_default_text);
|
|
28
|
+
}
|
|
29
|
+
.primary {
|
|
30
|
+
color: var(--zdt_separator_primary_text);
|
|
31
|
+
}
|
|
32
|
+
.secondary {
|
|
33
|
+
color: var(--zdt_separator_secondary_text);
|
|
34
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export const propTypes = {
|
|
3
|
+
aligndirection: PropTypes.string,
|
|
4
|
+
children: PropTypes.any,
|
|
5
|
+
palette: PropTypes.oneOf(['default', 'primary', 'secondary']),
|
|
6
|
+
shrink: PropTypes.bool,
|
|
7
|
+
type: PropTypes.oneOf(['dot', 'slash', 'arrow', 'comma', 'none']),
|
|
8
|
+
wrap: PropTypes.bool,
|
|
9
|
+
customClass: PropTypes.obj,
|
|
10
|
+
customSeparatorType: PropTypes.string
|
|
11
|
+
};
|
|
@@ -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(--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
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
:global(.shadowOn) {
|
|
2
|
+
/* attachment viewer */
|
|
3
|
+
--bs_attachmentviewer_selected: 0 0 4px 2px var(--zdt_attachmentviewer_selected_box_shadow) inset;
|
|
4
|
+
|
|
5
|
+
/* texteditor */
|
|
6
|
+
--bs_texteditor_menu: -1px 1px 2px 0 var(--zdt_texteditor_menu_after_box_shadow);
|
|
7
|
+
--bs_texteditor_ul: 0 1px 32px 0 var(--zdt_texteditor_dropdown_box_shadow);
|
|
8
|
+
|
|
9
|
+
/* subtab layout */
|
|
10
|
+
--bs_subtablayout_shadow: 0 0 6px var(--zdt_subtablayout_shadowstyle_box_shadow);
|
|
11
|
+
|
|
12
|
+
/* drawer */
|
|
13
|
+
--bs_drawer_shadow: 0 6px 12px var(--zdt_drawer_default_box_shadow);
|
|
14
|
+
|
|
15
|
+
/* dot new */
|
|
16
|
+
--bs_dotnew_shadow: 0 0 15px 1px var(--zdt_dotnew_default_box_shadow);
|
|
17
|
+
|
|
18
|
+
/* tag new */
|
|
19
|
+
--bs_tagnew_shadow: 0 8px 30px 0 var(--zdt_tagnew_default_box_shadow);
|
|
20
|
+
|
|
21
|
+
/* lookup section */
|
|
22
|
+
--bs_lookupsection_shadow: 0px 4px 20px var(--zdt_lookupsection_box_shadow);
|
|
23
|
+
|
|
24
|
+
/* message */
|
|
25
|
+
--bs_message_container: 0 0 19px 1px var(--zdt_message_default_box_shadow);
|
|
26
|
+
|
|
27
|
+
/* plus icon */
|
|
28
|
+
--bs_plusicon_container: 0 2px 3px 0 var(--zdt_plusicon_box_shadow);
|
|
29
|
+
|
|
30
|
+
/* toast message */
|
|
31
|
+
--bs_toastmessage_container: 0 5px 40px 7px var(--zdt_toastmessage_default_box_shadow);
|
|
32
|
+
|
|
33
|
+
/* global notification */
|
|
34
|
+
--bs_globalnotification_container: 0 4px 20px var(--globalnotification_box_shadow);
|
|
35
|
+
|
|
36
|
+
/* desktop notification */
|
|
37
|
+
--bs_desktopnotification_container: 0 4px 20px var(--zdt_desktopnotification_box_shadow);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:global(.shadowOffWithOutline) {
|
|
41
|
+
/* attachment viewer */
|
|
42
|
+
--bs_attachmentviewer_selected: 0 0 2px var(--zdt_contrast_shadow);
|
|
43
|
+
|
|
44
|
+
/* texteditor */
|
|
45
|
+
--bs_texteditor_menu: 0 0 2px var(--zdt_contrast_shadow);
|
|
46
|
+
--bs_texteditor_ul: 0 0 2px var(--zdt_contrast_shadow);
|
|
47
|
+
|
|
48
|
+
/* subtab layout */
|
|
49
|
+
--bs_subtablayout_shadow: 0 0 2px var(--zdt_contrast_shadow);
|
|
50
|
+
|
|
51
|
+
/* drawer */
|
|
52
|
+
--bs_drawer_shadow: 0 0 2px var(--zdt_contrast_shadow);
|
|
53
|
+
|
|
54
|
+
/* dot new */
|
|
55
|
+
--bs_dotnew_shadow: 0 0 2px var(--zdt_contrast_shadow);
|
|
56
|
+
|
|
57
|
+
/* tag new */
|
|
58
|
+
--bs_tagnew_shadow: 0 0 2px var(--zdt_contrast_shadow);
|
|
59
|
+
|
|
60
|
+
/* lookup section */
|
|
61
|
+
--bs_lookupsection_shadow: 0 0 2px var(--zdt_contrast_shadow);
|
|
62
|
+
|
|
63
|
+
/* message */
|
|
64
|
+
--bs_message_container: 0 0 2px var(--zdt_contrast_shadow);
|
|
65
|
+
|
|
66
|
+
/* plus icon */
|
|
67
|
+
--bs_plusicon_container: 0 0 2px var(--zdt_contrast_shadow);
|
|
68
|
+
|
|
69
|
+
/* toast message */
|
|
70
|
+
--bs_toastmessage_container: 0 0 2px var(--zdt_contrast_shadow);
|
|
71
|
+
|
|
72
|
+
/* global notification */
|
|
73
|
+
--bs_globalnotification_container: 0 0 2px var(--zdt_contrast_shadow);
|
|
74
|
+
|
|
75
|
+
/* desktop notification */
|
|
76
|
+
--bs_desktopnotification_container: 0 0 2px var(--zdt_contrast_shadow);
|
|
77
|
+
}
|
|
@@ -153,7 +153,7 @@ export default class TextEditor extends Component {
|
|
|
153
153
|
let {
|
|
154
154
|
id
|
|
155
155
|
} = this.props;
|
|
156
|
-
let editorObj = editor[id] ? editor[id] : {};
|
|
156
|
+
let editorObj = global.editor[id] ? global.editor[id] : {};
|
|
157
157
|
let content = getRichEditorContent(id);
|
|
158
158
|
if (!editorContentValidate(editorObj)) {
|
|
159
159
|
content = '';
|
|
@@ -185,8 +185,8 @@ export default class TextEditor extends Component {
|
|
|
185
185
|
id
|
|
186
186
|
} = this.props;
|
|
187
187
|
global.editor = global.editor || {};
|
|
188
|
-
if (!editor[id]) {
|
|
189
|
-
editor[id] = editorObj;
|
|
188
|
+
if (!global.editor[id]) {
|
|
189
|
+
global.editor[id] = editorObj;
|
|
190
190
|
}
|
|
191
191
|
const css = 'blockquote {margin:0 0 0 4px; }',
|
|
192
192
|
head = editorObj.doc.head || editorObj.doc.getElementsByTagName('head')[0],
|