@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
|
@@ -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:
|
|
60
|
+
box-shadow: var(--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
|
-
|
|
5
|
+
|
|
6
|
+
.small {
|
|
6
7
|
width: var(--zd_size5);
|
|
7
8
|
height: var(--zd_size5);
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
.container {
|
|
10
12
|
composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
|
|
11
|
-
|
|
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:
|
|
18
|
+
box-shadow: var(--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:
|
|
13
|
+
box-shadow: var(--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
|
+
}
|
package/es/utils/editorUtils.js
CHANGED
|
@@ -65,7 +65,7 @@ export function triggerKeyup(elem) {
|
|
|
65
65
|
// editor
|
|
66
66
|
|
|
67
67
|
export function getRichEditorContent(key) {
|
|
68
|
-
let richTextEditor = editor[key];
|
|
68
|
+
let richTextEditor = global.editor[key];
|
|
69
69
|
if (richTextEditor != undefined) {
|
|
70
70
|
let content = richTextEditor.getContent();
|
|
71
71
|
content = content.trim();
|
|
@@ -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:
|
|
35
|
+
box-shadow: var(--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:
|
|
13
|
+
box-shadow: var(--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
|
+
}
|
package/install.md
ADDED
|
@@ -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,82 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
10
|
+
var _defaultProps = require("./props/defaultProps");
|
|
11
|
+
var _propTypes = require("./props/propTypes");
|
|
12
|
+
var _SeparatorModule = _interopRequireDefault(require("./Separator.module.css"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
18
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
19
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
20
|
+
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); }
|
|
21
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
22
|
+
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; } }
|
|
23
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
|
+
var Separator = /*#__PURE__*/function (_React$Component) {
|
|
25
|
+
_inherits(Separator, _React$Component);
|
|
26
|
+
var _super = _createSuper(Separator);
|
|
27
|
+
function Separator(props) {
|
|
28
|
+
_classCallCheck(this, Separator);
|
|
29
|
+
return _super.call(this, props);
|
|
30
|
+
}
|
|
31
|
+
_createClass(Separator, [{
|
|
32
|
+
key: "render",
|
|
33
|
+
value: function render() {
|
|
34
|
+
var _this$props = this.props,
|
|
35
|
+
children = _this$props.children,
|
|
36
|
+
type = _this$props.type,
|
|
37
|
+
customSeparatorType = _this$props.customSeparatorType,
|
|
38
|
+
palette = _this$props.palette,
|
|
39
|
+
wrap = _this$props.wrap,
|
|
40
|
+
shrink = _this$props.shrink,
|
|
41
|
+
aligndirection = _this$props.aligndirection,
|
|
42
|
+
customClass = _this$props.customClass;
|
|
43
|
+
var customWrapper = customClass.customWrapper,
|
|
44
|
+
customSeparator = customClass.customSeparator,
|
|
45
|
+
customChildren = customClass.customChildren;
|
|
46
|
+
var data = children.filter(function (el) {
|
|
47
|
+
return el !== null && el !== undefined && el !== false;
|
|
48
|
+
});
|
|
49
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
50
|
+
alignBox: aligndirection,
|
|
51
|
+
align: aligndirection === 'row' ? 'vertical' : '',
|
|
52
|
+
wrap: wrap,
|
|
53
|
+
isCover: false,
|
|
54
|
+
className: "".concat(_SeparatorModule["default"].varClass, " ").concat(customWrapper)
|
|
55
|
+
}, data.map(function (child, i) {
|
|
56
|
+
if (child) {
|
|
57
|
+
if (data.length - 1 == i || aligndirection == 'column') {
|
|
58
|
+
return child && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
59
|
+
shrink: shrink,
|
|
60
|
+
key: i,
|
|
61
|
+
className: customChildren
|
|
62
|
+
}, child);
|
|
63
|
+
}
|
|
64
|
+
return child && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
65
|
+
key: i
|
|
66
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
67
|
+
shrink: shrink,
|
|
68
|
+
key: i,
|
|
69
|
+
className: customChildren
|
|
70
|
+
}, child), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
71
|
+
className: "".concat(_SeparatorModule["default"].separator, " ").concat(_SeparatorModule["default"][palette], " ").concat(customSeparatorType ? '' : _SeparatorModule["default"][type], " ").concat(customSeparator, " "),
|
|
72
|
+
key: i
|
|
73
|
+
}, customSeparatorType ? customSeparatorType : type == 'slash' ? '/' : type == 'arrow' ? '>' : type == 'comma' ? ',' : "\u2022"));
|
|
74
|
+
}
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
77
|
+
}]);
|
|
78
|
+
return Separator;
|
|
79
|
+
}(_react["default"].Component);
|
|
80
|
+
exports["default"] = Separator;
|
|
81
|
+
Separator.defaultProps = _defaultProps.defaultProps;
|
|
82
|
+
Separator.propTypes = _propTypes.propTypes;
|