@zohodesk/dot 1.0.0-temp-227 → 1.0.0-temp-228.1
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 +5 -6
- package/es/ActionButton/ActionButton.js +19 -9
- package/es/ActionButton/props/defaultProps.js +2 -1
- package/es/ActionButton/props/propTypes.js +4 -1
- package/es/Attachment/Attachment.module.css +3 -3
- package/es/DotProvider/hooks/useDotProvider.js +3 -3
- package/es/DotProvider/libraryChunks/appearance/variables/Dark_Variables.js +1 -0
- package/es/DotProvider/libraryChunks/appearance/variables/Light_Variables.js +1 -0
- package/es/DotProvider/libraryChunks/appearance/variables/PureDark_Variables.js +1 -0
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +0 -2
- package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +2 -0
- package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +2 -0
- package/es/DotProvider/utils/constants.js +2 -1
- package/es/DotProvider/utils/themeAppearanceAssetsConfig.js +15 -1
- package/es/DotProvider/utils/themeColorAssetsConfig.js +73 -1
- package/es/Image/Image.module.css +2 -2
- package/es/Onboarding/css/Onboarding.module.css +1 -1
- package/es/Separator/Separator.module.css +5 -5
- package/es/TagWithIcon/TagWithIcon.module.css +3 -3
- package/es/Upload/Upload.module.css +31 -2
- package/es/form/fields/Fields.module.css +73 -17
- package/es/form/fields/TextEditor/TextEditor.module.css +1 -1
- package/es/list/GridStencils/GridStencils.module.css +12 -2
- package/es/list/TagNew/TagNew.module.css +1 -1
- package/es/list/status/StatusListItem/StatusListItem.module.css +2 -2
- package/es/lookup/Lookup/Lookup.js +4 -6
- package/es/lookup/Lookup/__tests__/Lookup.spec.js +4 -101
- package/es/lookup/Lookup/__tests__/__snapshots__/Lookup.spec.js.snap +2 -223
- package/es/lookup/Lookup/props/propTypes.js +1 -6
- package/es/lookup/header/ModuleHeader/ModuleHeader.js +5 -12
- package/es/lookup/header/ModuleHeader/__tests__/ModuleHeader.spec.js +3 -87
- package/es/lookup/header/ModuleHeader/props/defaultProps.js +0 -2
- package/es/lookup/header/ModuleHeader/props/propTypes.js +0 -6
- package/es/version2/AlertClose/AlertClose.module.css +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.module.css +1 -1
- package/es/version2/lookup/AlertHeader/AlertHeader.js +9 -19
- package/es/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +3 -122
- package/es/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +3 -1728
- package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +1 -6
- package/es/version2/lookup/AlertHeader/props/defaultProps.js +0 -2
- package/es/version2/lookup/AlertHeader/props/propTypes.js +0 -10
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +8 -2
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +3 -2
- package/lib/ActionButton/ActionButton.js +18 -9
- package/lib/ActionButton/props/defaultProps.js +2 -1
- package/lib/ActionButton/props/propTypes.js +4 -1
- package/lib/Attachment/Attachment.module.css +3 -3
- package/lib/DotProvider/hooks/useDotProvider.js +3 -3
- package/lib/DotProvider/libraryChunks/appearance/variables/Dark_Variables.js +3 -0
- package/lib/DotProvider/libraryChunks/appearance/variables/Light_Variables.js +3 -0
- package/lib/DotProvider/libraryChunks/appearance/variables/PureDark_Variables.js +3 -0
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +0 -4
- package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +5 -0
- package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +5 -0
- package/lib/DotProvider/utils/constants.js +4 -2
- package/lib/DotProvider/utils/themeAppearanceAssetsConfig.js +17 -2
- package/lib/DotProvider/utils/themeColorAssetsConfig.js +77 -2
- package/lib/Image/Image.module.css +2 -2
- package/lib/Onboarding/css/Onboarding.module.css +1 -1
- package/lib/Separator/Separator.module.css +5 -5
- package/lib/TagWithIcon/TagWithIcon.module.css +3 -3
- package/lib/Upload/Upload.module.css +31 -2
- package/lib/form/fields/Fields.module.css +73 -17
- package/lib/form/fields/TextEditor/TextEditor.module.css +1 -1
- package/lib/list/GridStencils/GridStencils.module.css +12 -2
- package/lib/list/TagNew/TagNew.module.css +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +2 -2
- package/lib/lookup/Lookup/Lookup.js +4 -6
- package/lib/lookup/Lookup/__tests__/Lookup.spec.js +4 -101
- package/lib/lookup/Lookup/__tests__/__snapshots__/Lookup.spec.js.snap +2 -223
- package/lib/lookup/Lookup/props/propTypes.js +1 -8
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +5 -13
- package/lib/lookup/header/ModuleHeader/__tests__/ModuleHeader.spec.js +2 -86
- package/lib/lookup/header/ModuleHeader/props/defaultProps.js +0 -2
- package/lib/lookup/header/ModuleHeader/props/propTypes.js +0 -6
- package/lib/version2/AlertClose/AlertClose.module.css +1 -1
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +1 -1
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +8 -19
- package/lib/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +2 -121
- package/lib/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +3 -1728
- package/lib/version2/lookup/AlertHeader/css/cssJSLogic.js +2 -4
- package/lib/version2/lookup/AlertHeader/props/defaultProps.js +0 -2
- package/lib/version2/lookup/AlertHeader/props/propTypes.js +0 -10
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +8 -2
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +3 -2
- package/package.json +17 -14
- package/_react-cli.config.js +0 -27
|
@@ -4,40 +4,49 @@
|
|
|
4
4
|
vertical-align: middle;
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
padding: var(--zd_size5) ;
|
|
7
|
-
border-radius:
|
|
7
|
+
border-radius: 2px;
|
|
8
8
|
}
|
|
9
|
+
|
|
9
10
|
.light {
|
|
10
11
|
background-color: var(--zdt_upload_default_bg);
|
|
11
12
|
}
|
|
13
|
+
|
|
12
14
|
.night {
|
|
13
15
|
background-color: var(--zdt_upload_night_bg);
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
.overlay {
|
|
16
19
|
position: absolute;
|
|
17
20
|
top: 0 ;
|
|
18
21
|
bottom: 0 ;
|
|
19
22
|
background-color: var(--zdt_upload_overlay_bg);
|
|
20
23
|
}
|
|
24
|
+
|
|
21
25
|
[dir=ltr] .overlay {
|
|
22
26
|
left: 0 ;
|
|
23
27
|
right: 0 ;
|
|
24
28
|
}
|
|
29
|
+
|
|
25
30
|
[dir=rtl] .overlay {
|
|
26
31
|
right: 0 ;
|
|
27
32
|
left: 0 ;
|
|
28
33
|
}
|
|
34
|
+
|
|
29
35
|
.small {
|
|
30
36
|
width: var(--zd_size50) ;
|
|
31
37
|
height: var(--zd_size40) ;
|
|
32
38
|
}
|
|
39
|
+
|
|
33
40
|
.medium {
|
|
34
41
|
height: var(--zd_size49) ;
|
|
35
42
|
width: var(--zd_size65) ;
|
|
36
43
|
}
|
|
44
|
+
|
|
37
45
|
.preview {
|
|
38
46
|
opacity: 0.4;
|
|
39
47
|
cursor: default;
|
|
40
48
|
}
|
|
49
|
+
|
|
41
50
|
.loader {
|
|
42
51
|
position: absolute;
|
|
43
52
|
bottom: calc( var(--zd_size1) * -1 ) ;
|
|
@@ -45,31 +54,40 @@
|
|
|
45
54
|
width: 0% ;
|
|
46
55
|
transition: width var(--zd_transition6) ease;
|
|
47
56
|
}
|
|
57
|
+
|
|
48
58
|
[dir=ltr] .loader {
|
|
49
59
|
left: 0 ;
|
|
50
60
|
}
|
|
61
|
+
|
|
51
62
|
[dir=rtl] .loader {
|
|
52
63
|
right: 0 ;
|
|
53
64
|
}
|
|
65
|
+
|
|
54
66
|
.light .loader {
|
|
55
67
|
background: var(--zdt_upload_loader_default_bg);
|
|
56
68
|
}
|
|
69
|
+
|
|
57
70
|
.night .loader {
|
|
58
71
|
background: var(--zdt_upload_loader_night_bg);
|
|
59
72
|
}
|
|
73
|
+
|
|
60
74
|
.uploadimage {
|
|
61
75
|
width: 100% ;
|
|
62
76
|
height: 100% ;
|
|
63
77
|
}
|
|
78
|
+
|
|
64
79
|
[dir=ltr] .attachInfo {
|
|
65
80
|
padding: var(--zd_size4) 0 0 var(--zd_size8) ;
|
|
66
81
|
}
|
|
82
|
+
|
|
67
83
|
[dir=rtl] .attachInfo {
|
|
68
84
|
padding: var(--zd_size4) var(--zd_size8) 0 0 ;
|
|
69
85
|
}
|
|
86
|
+
|
|
70
87
|
.fileIcon {
|
|
71
88
|
font-size: var(--zd_font_size14) ;
|
|
72
89
|
}
|
|
90
|
+
|
|
73
91
|
.attachsize {
|
|
74
92
|
font-size: var(--zd_font_size10) ;
|
|
75
93
|
letter-spacing: 1px;
|
|
@@ -77,12 +95,15 @@
|
|
|
77
95
|
text-transform: uppercase;
|
|
78
96
|
padding: var(--zd_size4) 0 var(--zd_size2) ;
|
|
79
97
|
}
|
|
98
|
+
|
|
80
99
|
.light .attachsize {
|
|
81
100
|
color: var(--zdt_upload_attachsize_default_text);
|
|
82
101
|
}
|
|
102
|
+
|
|
83
103
|
.night .attachsize {
|
|
84
104
|
color: var(--zdt_upload_attachsize_night_text);
|
|
85
105
|
}
|
|
106
|
+
|
|
86
107
|
.uploadclose {
|
|
87
108
|
height: var(--zd_size12) ;
|
|
88
109
|
width: var(--zd_size12) ;
|
|
@@ -92,34 +113,42 @@
|
|
|
92
113
|
font-size: var(--zd_font_size12) ;
|
|
93
114
|
text-align: center;
|
|
94
115
|
}
|
|
116
|
+
|
|
95
117
|
[dir=ltr] .uploadclose {
|
|
96
118
|
right: 0 ;
|
|
97
119
|
}
|
|
120
|
+
|
|
98
121
|
[dir=rtl] .uploadclose {
|
|
99
122
|
left: 0 ;
|
|
100
123
|
}
|
|
124
|
+
|
|
101
125
|
.light .uploadclose {
|
|
102
126
|
color: var(--zdt_upload_uploadclose_default_text);
|
|
103
127
|
background-color: var(--zdt_upload_uploadclose_default_bg);
|
|
104
128
|
}
|
|
129
|
+
|
|
105
130
|
.light .uploadclose:hover {
|
|
106
131
|
background-color: var(--zdt_upload_uploadclose_default_hover_text);
|
|
107
132
|
}
|
|
133
|
+
|
|
108
134
|
.night .uploadclose {
|
|
109
135
|
color: var(--zdt_upload_uploadclose_night_text);
|
|
110
136
|
background-color: var(--zdt_upload_uploadclose_night_bg);
|
|
111
137
|
}
|
|
138
|
+
|
|
112
139
|
.night .uploadclose:hover {
|
|
113
140
|
background-color: var(--zdt_upload_uploadclose_night_hover_text);
|
|
114
141
|
}
|
|
142
|
+
|
|
115
143
|
.uploadclose,
|
|
116
144
|
.overlay {
|
|
117
145
|
opacity: 0;
|
|
118
146
|
visibility: hidden;
|
|
119
147
|
transition: var(--zd_transition3);
|
|
120
148
|
}
|
|
149
|
+
|
|
121
150
|
.container:hover .uploadclose,
|
|
122
151
|
.container:hover .overlay {
|
|
123
152
|
opacity: 1;
|
|
124
153
|
visibility: visible;
|
|
125
|
-
}
|
|
154
|
+
}
|
|
@@ -3,138 +3,178 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
word-break: break-word;
|
|
5
5
|
}
|
|
6
|
+
|
|
6
7
|
.fieldContainer {
|
|
7
8
|
position: relative;
|
|
8
9
|
min-height: var(--zd_size25) ;
|
|
9
10
|
}
|
|
11
|
+
|
|
10
12
|
.fieldMargin_large {
|
|
11
13
|
margin-top: var(--zd_size10) ;
|
|
12
14
|
}
|
|
15
|
+
|
|
13
16
|
.fieldMargin_medium {
|
|
14
17
|
margin-top: var(--zd_size5) ;
|
|
15
18
|
}
|
|
19
|
+
|
|
16
20
|
.fieldMargin_small {
|
|
17
21
|
margin-top: 0 ;
|
|
18
22
|
}
|
|
23
|
+
|
|
19
24
|
.radioContainer,
|
|
20
25
|
.checkbox {
|
|
21
26
|
composes: dflex alignVertical flexwrap from '~@zohodesk/components/es/common/common.module.css';
|
|
22
27
|
}
|
|
28
|
+
|
|
23
29
|
.checkbox {
|
|
24
30
|
min-height: var(--zd_size28) ;
|
|
25
31
|
}
|
|
32
|
+
|
|
26
33
|
.checkboxRow {
|
|
27
34
|
display: inherit;
|
|
28
35
|
}
|
|
36
|
+
|
|
29
37
|
.lineClamp_one,
|
|
30
38
|
.lineClamp_two {
|
|
31
39
|
composes: clamp from '~@zohodesk/components/es/common/common.module.css';
|
|
32
40
|
}
|
|
41
|
+
|
|
33
42
|
.lineClamp_one {
|
|
34
43
|
-webkit-line-clamp: 1;
|
|
35
44
|
}
|
|
45
|
+
|
|
36
46
|
.lineClamp_two {
|
|
37
47
|
-webkit-line-clamp: 2;
|
|
38
48
|
}
|
|
49
|
+
|
|
39
50
|
.checkboxText {
|
|
40
51
|
composes: wbreak from '~@zohodesk/components/es/common/common.module.css';
|
|
41
52
|
line-height: normal;
|
|
42
53
|
}
|
|
54
|
+
|
|
43
55
|
[dir=ltr] .checkboxText {
|
|
44
56
|
padding-left: var(--zd_size6) ;
|
|
45
57
|
}
|
|
58
|
+
|
|
46
59
|
[dir=rtl] .checkboxText {
|
|
47
60
|
padding-right: var(--zd_size6) ;
|
|
48
61
|
}
|
|
62
|
+
|
|
49
63
|
.cbTextPointer {
|
|
50
64
|
cursor: pointer;
|
|
51
65
|
}
|
|
66
|
+
|
|
52
67
|
.disabled, .readonly {
|
|
53
68
|
cursor: not-allowed;
|
|
54
69
|
}
|
|
70
|
+
|
|
55
71
|
.cbTextReadonly,
|
|
56
72
|
.disabled .fieldLabel,
|
|
57
73
|
.readonly .fieldLabel {
|
|
58
74
|
--label_cursor: not-allowed;
|
|
59
75
|
}
|
|
76
|
+
|
|
60
77
|
[dir=ltr] .radio {
|
|
61
78
|
margin: var(--zd_size5) var(--zd_size32) var(--zd_size5) 0 ;
|
|
62
79
|
}
|
|
80
|
+
|
|
63
81
|
[dir=rtl] .radio {
|
|
64
82
|
margin: var(--zd_size5) 0 var(--zd_size5) var(--zd_size32) ;
|
|
65
83
|
}
|
|
66
|
-
|
|
67
|
-
|
|
84
|
+
|
|
85
|
+
.radio,
|
|
86
|
+
.radioWrap {
|
|
87
|
+
max-width: 100%
|
|
68
88
|
}
|
|
89
|
+
|
|
69
90
|
.radiosWrapper {
|
|
70
91
|
gap: var(--zd_size10)
|
|
71
92
|
}
|
|
93
|
+
|
|
72
94
|
.radioBox {
|
|
73
95
|
max-width: 100% ;
|
|
74
96
|
transition: border var(--zd_transition3);
|
|
75
97
|
border: 1px solid var(--zdt_radiofield_box_border);
|
|
76
98
|
border-radius: 6px;
|
|
77
99
|
}
|
|
100
|
+
|
|
78
101
|
.radioBox.primaryTextOnly {
|
|
79
102
|
height: var(--zd_size36) ;
|
|
80
103
|
padding: 0 var(--zd_size10) ;
|
|
81
104
|
}
|
|
105
|
+
|
|
82
106
|
.radioBox.withSecondaryText {
|
|
83
107
|
padding: var(--zd_size18) var(--zd_size16) ;
|
|
84
108
|
}
|
|
109
|
+
|
|
85
110
|
.hoverableRadioBox:hover, .radioBoxActive {
|
|
86
111
|
border-color: var(--zdt_radiofield_box_active_border)
|
|
87
112
|
}
|
|
113
|
+
|
|
88
114
|
.radioBoxActive {
|
|
89
115
|
background-color: var(--zdt_radiofield_box_active_bg)
|
|
90
116
|
}
|
|
117
|
+
|
|
91
118
|
[dir=ltr] .duration {
|
|
92
119
|
margin-right: var(--zd_size15) ;
|
|
93
120
|
}
|
|
121
|
+
|
|
94
122
|
[dir=rtl] .duration {
|
|
95
123
|
margin-left: var(--zd_size15) ;
|
|
96
124
|
}
|
|
125
|
+
|
|
97
126
|
.durationWidth {
|
|
98
127
|
width: var(--zd_size94) ;
|
|
99
128
|
}
|
|
129
|
+
|
|
100
130
|
.flex {
|
|
101
131
|
composes: dflex from '~@zohodesk/components/es/common/common.module.css';
|
|
102
132
|
}
|
|
133
|
+
|
|
103
134
|
.periodContainer {
|
|
104
135
|
composes: dflex flexrow flexwrap from '~@zohodesk/components/es/common/common.module.css';
|
|
105
136
|
width: 100% ;
|
|
106
|
-
/*margin-left:
|
|
137
|
+
/*margin-left: 15px;*/
|
|
107
138
|
}
|
|
139
|
+
|
|
108
140
|
.phoneIcon {
|
|
109
141
|
color: var(--zdt_fields_phoneicon_icon);
|
|
110
142
|
display: inline-block;
|
|
111
143
|
margin: var(--zd_size15) var(--zd_size10) 0 var(--zd_size10) ;
|
|
112
144
|
cursor: pointer;
|
|
113
145
|
}
|
|
146
|
+
|
|
114
147
|
.phoneIcon:hover {
|
|
115
148
|
color: var(--zdt_fields_phoneicon_hover_icon);
|
|
116
149
|
}
|
|
150
|
+
|
|
117
151
|
.newtabIcon {
|
|
118
152
|
color: var(--zdt_fields_newtabicon_icon);
|
|
119
153
|
cursor: pointer;
|
|
120
154
|
}
|
|
155
|
+
|
|
121
156
|
.newtabIcon:hover {
|
|
122
|
-
|
|
157
|
+
color: var(--zdt_fields_newtabicon_hover_icon);
|
|
123
158
|
}
|
|
159
|
+
|
|
124
160
|
.labelContainer {
|
|
125
161
|
composes: dflex alignVertical from '~@zohodesk/components/es/common/common.module.css';
|
|
126
162
|
}
|
|
163
|
+
|
|
127
164
|
.lockIcon,
|
|
128
165
|
.infoIcon {
|
|
129
166
|
color: var(--zdt_fields_lockicon_icon);
|
|
130
167
|
composes: dInflex from '~@zohodesk/components/es/common/common.module.css';
|
|
131
168
|
}
|
|
169
|
+
|
|
132
170
|
[dir=ltr] .lockIcon, [dir=ltr] .infoIcon {
|
|
133
171
|
margin-left: var(--zd_size5) ;
|
|
134
172
|
}
|
|
173
|
+
|
|
135
174
|
[dir=rtl] .lockIcon, [dir=rtl] .infoIcon {
|
|
136
175
|
margin-right: var(--zd_size5) ;
|
|
137
176
|
}
|
|
177
|
+
|
|
138
178
|
/* .infoIcon {
|
|
139
179
|
opacity: 0;
|
|
140
180
|
visibility: hidden;
|
|
@@ -149,49 +189,62 @@
|
|
|
149
189
|
.lockIcon:hover {
|
|
150
190
|
color: var(--zdt_fields_lockicon_hover_icon);
|
|
151
191
|
}
|
|
192
|
+
|
|
152
193
|
.timeFormat {
|
|
153
194
|
font-size: var(--zd_font_size11) ;
|
|
154
195
|
color: var(--zdt_fields_lockicon_icon);
|
|
155
196
|
}
|
|
197
|
+
|
|
156
198
|
[dir=ltr] .timeFormat {
|
|
157
199
|
margin-left: var(--zd_size4) ;
|
|
158
200
|
}
|
|
201
|
+
|
|
159
202
|
[dir=rtl] .timeFormat {
|
|
160
203
|
margin-right: var(--zd_size4) ;
|
|
161
204
|
}
|
|
205
|
+
|
|
162
206
|
.newTab {
|
|
163
207
|
color: var(--zdt_fields_lockicon_icon);
|
|
164
208
|
font-size: 0 ;
|
|
165
209
|
display: none;
|
|
166
210
|
cursor: pointer;
|
|
167
211
|
}
|
|
212
|
+
|
|
168
213
|
[dir=ltr] .newTab {
|
|
169
214
|
margin-left: var(--zd_size6) ;
|
|
170
215
|
}
|
|
216
|
+
|
|
171
217
|
[dir=rtl] .newTab {
|
|
172
218
|
margin-right: var(--zd_size6) ;
|
|
173
219
|
}
|
|
220
|
+
|
|
174
221
|
.newTab:hover {
|
|
175
222
|
color: var(--zdt_fields_phoneicon_icon);
|
|
176
223
|
}
|
|
224
|
+
|
|
177
225
|
.container:hover .newTab {
|
|
178
226
|
display: block;
|
|
179
227
|
}
|
|
228
|
+
|
|
180
229
|
.lockText {
|
|
181
230
|
font-size: var(--zd_font_size13) ;
|
|
182
231
|
font-style: italic;
|
|
183
232
|
composes: wbreak from '~@zohodesk/components/es/common/common.module.css';
|
|
184
233
|
}
|
|
234
|
+
|
|
185
235
|
.labelMandatory:after {
|
|
186
236
|
content: '*';
|
|
187
237
|
color: var(--zdt_fields_lockicon_hover_icon);
|
|
188
238
|
}
|
|
239
|
+
|
|
189
240
|
[dir=ltr] .labelMandatory:after {
|
|
190
241
|
padding-left: var(--zd_size2) ;
|
|
191
242
|
}
|
|
243
|
+
|
|
192
244
|
[dir=rtl] .labelMandatory:after {
|
|
193
245
|
padding-right: var(--zd_size2) ;
|
|
194
246
|
}
|
|
247
|
+
|
|
195
248
|
.ePhiTag {
|
|
196
249
|
composes: flexshrink from '~@zohodesk/components/es/common/common.module.css';
|
|
197
250
|
color: var(--zdt_fields_phitag_text);
|
|
@@ -201,35 +254,38 @@
|
|
|
201
254
|
background-color: var(--zdt_fields_phitag_bg);
|
|
202
255
|
border: 1px solid var(--zdt_fields_phitag_border);
|
|
203
256
|
padding: 0 var(--zd_size5) ;
|
|
204
|
-
border-radius:
|
|
257
|
+
border-radius: 3px;
|
|
205
258
|
}
|
|
259
|
+
|
|
206
260
|
[dir=ltr] .ePhiTag {
|
|
207
261
|
margin-left: var(--zd_size8) ;
|
|
208
262
|
}
|
|
263
|
+
|
|
209
264
|
[dir=rtl] .ePhiTag {
|
|
210
265
|
margin-right: var(--zd_size8) ;
|
|
211
266
|
}
|
|
212
267
|
|
|
213
|
-
.hasChildren{
|
|
214
|
-
position: relative;
|
|
268
|
+
.hasChildren {
|
|
269
|
+
position: relative;
|
|
215
270
|
}
|
|
216
271
|
|
|
217
|
-
.rightPlaceholder{
|
|
272
|
+
.rightPlaceholder {
|
|
218
273
|
position: absolute;
|
|
219
|
-
bottom:var(--zd_size4)
|
|
274
|
+
bottom: var(--zd_size4)
|
|
220
275
|
}
|
|
221
276
|
|
|
222
|
-
[dir=ltr] .rightPlaceholder{
|
|
223
|
-
right:var(--zd_size15)
|
|
277
|
+
[dir=ltr] .rightPlaceholder {
|
|
278
|
+
right: var(--zd_size15)
|
|
224
279
|
}
|
|
225
280
|
|
|
226
|
-
[dir=rtl] .rightPlaceholder{
|
|
227
|
-
left:var(--zd_size15)
|
|
281
|
+
[dir=rtl] .rightPlaceholder {
|
|
282
|
+
left: var(--zd_size15)
|
|
228
283
|
}
|
|
229
|
-
|
|
230
|
-
|
|
284
|
+
|
|
285
|
+
.phoneField {
|
|
286
|
+
composes: ltr-zone from '~@zohodesk/components/es/common/common.module.css';
|
|
231
287
|
}
|
|
232
288
|
|
|
233
|
-
.lineClampPickListItem{
|
|
234
|
-
--line-clamp: var(--picklist-field-line-clamp,3);
|
|
289
|
+
.lineClampPickListItem {
|
|
290
|
+
--line-clamp: var(--picklist-field-line-clamp, 3);
|
|
235
291
|
}
|
|
@@ -4,14 +4,17 @@
|
|
|
4
4
|
border-bottom: 1px solid var(--zdt_gridstencils_default_border);
|
|
5
5
|
padding: var(--zd_size13) var(--zd_size15) var(--zd_size11) var(--zd_size15) ;
|
|
6
6
|
margin-bottom: var(--zd_size10) ;
|
|
7
|
-
border-radius:
|
|
7
|
+
border-radius: 5px;
|
|
8
8
|
}
|
|
9
|
+
|
|
9
10
|
[dir=ltr] .stenLoadbody {
|
|
10
11
|
margin: var(--zd_size8) var(--zd_size20) var(--zd_size8) 0 ;
|
|
11
12
|
}
|
|
13
|
+
|
|
12
14
|
[dir=rtl] .stenLoadbody {
|
|
13
15
|
margin: var(--zd_size8) 0 var(--zd_size8) var(--zd_size20) ;
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
.stenLoadbody::after {
|
|
16
19
|
content: '';
|
|
17
20
|
height: var(--zd_size22) ;
|
|
@@ -21,29 +24,36 @@
|
|
|
21
24
|
border-radius: 50%;
|
|
22
25
|
background-color: var(--zdt_gridstencils_after_bg);
|
|
23
26
|
}
|
|
27
|
+
|
|
24
28
|
[dir=ltr] .stenLoadbody::after {
|
|
25
29
|
right: var(--zd_size20) ;
|
|
26
30
|
}
|
|
31
|
+
|
|
27
32
|
[dir=rtl] .stenLoadbody::after {
|
|
28
33
|
left: var(--zd_size20) ;
|
|
29
34
|
}
|
|
35
|
+
|
|
30
36
|
.lineBar {
|
|
31
37
|
width: 90% ;
|
|
32
38
|
}
|
|
39
|
+
|
|
33
40
|
.lineBar2 {
|
|
34
41
|
width: 70% ;
|
|
35
42
|
margin: var(--zd_size22) 0 ;
|
|
36
43
|
}
|
|
44
|
+
|
|
37
45
|
.lineBar3 {
|
|
38
46
|
width: 50% ;
|
|
39
47
|
}
|
|
48
|
+
|
|
40
49
|
.lineBar,
|
|
41
50
|
.lineBar2,
|
|
42
51
|
.lineBar3 {
|
|
43
52
|
height: var(--zd_size5) ;
|
|
44
53
|
}
|
|
54
|
+
|
|
45
55
|
.lineBar, .lineBar2, .lineBar3 {
|
|
46
|
-
border-radius:
|
|
56
|
+
border-radius: 5px;
|
|
47
57
|
}
|
|
48
58
|
.stenListBAr {
|
|
49
59
|
position: relative;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
transition: all var(--zd_transition2) ease 0s;
|
|
9
9
|
opacity: 0;
|
|
10
10
|
visibility: hidden;
|
|
11
|
-
border-radius:
|
|
11
|
+
border-radius: 14px;
|
|
12
12
|
background-color: var(--zdt_tagnew_default_bg);
|
|
13
13
|
box-shadow: var(--zd_bs_tagnew_shadow);
|
|
14
14
|
padding: 0 var(--zd_size15) ;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
--statuslistitem_multiline_lineheight: 1.5385;
|
|
3
3
|
--statuslistitem_font_size: var(--zd_font_size13);
|
|
4
|
-
--statuslistitem_min_height:
|
|
4
|
+
--statuslistitem_min_height: var(--zd_size35);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.list {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
padding: var(--zd_size7) var(--zd_size20) ;
|
|
30
30
|
}
|
|
31
31
|
.large {
|
|
32
|
-
--statuslistitem_min_height:
|
|
32
|
+
--statuslistitem_min_height: var(--zd_size48);
|
|
33
33
|
}
|
|
34
34
|
[dir=ltr] .large {
|
|
35
35
|
padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25) ;
|
|
@@ -70,8 +70,7 @@ export default class Lookup extends Component {
|
|
|
70
70
|
...a11yAttributes
|
|
71
71
|
} = a11y;
|
|
72
72
|
const {
|
|
73
|
-
focusScopeProps = {}
|
|
74
|
-
freezeLayerProps
|
|
73
|
+
focusScopeProps = {}
|
|
75
74
|
} = customProps;
|
|
76
75
|
const {
|
|
77
76
|
needAutoFocus = true,
|
|
@@ -98,17 +97,16 @@ export default class Lookup extends Component {
|
|
|
98
97
|
isCover: false,
|
|
99
98
|
className: `${isMinHeight ? style.wrapper : style.coverwrap} ${style.containerWidth} ${containerClass}`
|
|
100
99
|
}, children));
|
|
101
|
-
return /*#__PURE__*/React.createElement(FreezeLayer,
|
|
100
|
+
return /*#__PURE__*/React.createElement(FreezeLayer, {
|
|
102
101
|
align: "horizontal",
|
|
103
102
|
animationName: "fade",
|
|
104
|
-
palette: "snow"
|
|
105
|
-
}, freezeLayerProps, {
|
|
106
103
|
childAnimationName: childAnimationName,
|
|
107
104
|
isActive: isActive,
|
|
105
|
+
palette: "snow",
|
|
108
106
|
forwardRef: forwardRef,
|
|
109
107
|
onClick: onClick,
|
|
110
108
|
customClass: customClass
|
|
111
|
-
}
|
|
109
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
112
110
|
alignBox: "row",
|
|
113
111
|
className: style.container,
|
|
114
112
|
dataId: "fldValue"
|
|
@@ -1,37 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
3
|
import Lookup from "../Lookup";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
afterEach(() => {
|
|
7
|
-
cleanup();
|
|
8
|
-
});
|
|
9
|
-
describe('Lookup snapshot - ', () => {
|
|
10
|
-
test('Render with default props', () => {
|
|
4
|
+
describe('Lookup', () => {
|
|
5
|
+
test('rendering the defult props', () => {
|
|
11
6
|
const {
|
|
12
7
|
asFragment
|
|
13
8
|
} = render( /*#__PURE__*/React.createElement(Lookup, null));
|
|
14
9
|
expect(asFragment()).toMatchSnapshot();
|
|
15
10
|
});
|
|
16
|
-
test
|
|
17
|
-
const {
|
|
18
|
-
asFragment
|
|
19
|
-
} = render( /*#__PURE__*/React.createElement(Lookup, {
|
|
20
|
-
isActive: true,
|
|
21
|
-
size: size
|
|
22
|
-
}));
|
|
23
|
-
expect(asFragment()).toMatchSnapshot();
|
|
24
|
-
});
|
|
25
|
-
test.each(CHILD_ANIMATION_NAME_VALUES)('Render with childAnimationName=%s', childAnimationName => {
|
|
26
|
-
const {
|
|
27
|
-
asFragment
|
|
28
|
-
} = render( /*#__PURE__*/React.createElement(Lookup, {
|
|
29
|
-
isActive: true,
|
|
30
|
-
childAnimationName: childAnimationName
|
|
31
|
-
}));
|
|
32
|
-
expect(asFragment()).toMatchSnapshot();
|
|
33
|
-
});
|
|
34
|
-
test('Render with isActive=true', () => {
|
|
11
|
+
test('rendering isActive is true', () => {
|
|
35
12
|
const {
|
|
36
13
|
asFragment
|
|
37
14
|
} = render( /*#__PURE__*/React.createElement(Lookup, {
|
|
@@ -39,78 +16,4 @@ describe('Lookup snapshot - ', () => {
|
|
|
39
16
|
}));
|
|
40
17
|
expect(asFragment()).toMatchSnapshot();
|
|
41
18
|
});
|
|
42
|
-
test('Render with isMinHeight=true', () => {
|
|
43
|
-
const {
|
|
44
|
-
asFragment
|
|
45
|
-
} = render( /*#__PURE__*/React.createElement(Lookup, {
|
|
46
|
-
isActive: true,
|
|
47
|
-
isMinHeight: true
|
|
48
|
-
}));
|
|
49
|
-
expect(asFragment()).toMatchSnapshot();
|
|
50
|
-
});
|
|
51
|
-
test('Render with children', () => {
|
|
52
|
-
const {
|
|
53
|
-
asFragment
|
|
54
|
-
} = render( /*#__PURE__*/React.createElement(Lookup, {
|
|
55
|
-
isActive: true
|
|
56
|
-
}, /*#__PURE__*/React.createElement("div", null, "Lookup child content")));
|
|
57
|
-
expect(asFragment()).toMatchSnapshot();
|
|
58
|
-
});
|
|
59
|
-
test('Render with custom classes', () => {
|
|
60
|
-
const {
|
|
61
|
-
asFragment
|
|
62
|
-
} = render( /*#__PURE__*/React.createElement(Lookup, {
|
|
63
|
-
isActive: true,
|
|
64
|
-
customClass: "lookup-freeze-layer",
|
|
65
|
-
containerClass: "lookup-container",
|
|
66
|
-
lookupClass: "lookup-box"
|
|
67
|
-
}));
|
|
68
|
-
expect(asFragment()).toMatchSnapshot();
|
|
69
|
-
});
|
|
70
|
-
test('Render with customProps', () => {
|
|
71
|
-
const {
|
|
72
|
-
asFragment
|
|
73
|
-
} = render( /*#__PURE__*/React.createElement(Lookup, {
|
|
74
|
-
isActive: true,
|
|
75
|
-
customProps: {
|
|
76
|
-
freezeLayerProps: {
|
|
77
|
-
palette: 'plain'
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}));
|
|
81
|
-
expect(asFragment()).toMatchSnapshot();
|
|
82
|
-
});
|
|
83
|
-
test('Render with dataId', () => {
|
|
84
|
-
const {
|
|
85
|
-
asFragment
|
|
86
|
-
} = render( /*#__PURE__*/React.createElement(Lookup, {
|
|
87
|
-
isActive: true,
|
|
88
|
-
dataId: "lookup-data-id"
|
|
89
|
-
}));
|
|
90
|
-
expect(asFragment()).toMatchSnapshot();
|
|
91
|
-
});
|
|
92
|
-
test('Render with htmlId', () => {
|
|
93
|
-
const {
|
|
94
|
-
asFragment
|
|
95
|
-
} = render( /*#__PURE__*/React.createElement(Lookup, {
|
|
96
|
-
isActive: true,
|
|
97
|
-
htmlId: "lookup-html-id"
|
|
98
|
-
}));
|
|
99
|
-
expect(asFragment()).toMatchSnapshot();
|
|
100
|
-
});
|
|
101
|
-
test('Render with a11y attributes', () => {
|
|
102
|
-
const {
|
|
103
|
-
asFragment
|
|
104
|
-
} = render( /*#__PURE__*/React.createElement(Lookup, {
|
|
105
|
-
isActive: true,
|
|
106
|
-
a11y: {
|
|
107
|
-
role: 'region',
|
|
108
|
-
ariaLabelledby: 'lookup-title',
|
|
109
|
-
ariaDescribedby: 'lookup-description',
|
|
110
|
-
ariaLabel: 'Lookup Dialog',
|
|
111
|
-
ariaModal: true
|
|
112
|
-
}
|
|
113
|
-
}));
|
|
114
|
-
expect(asFragment()).toMatchSnapshot();
|
|
115
|
-
});
|
|
116
19
|
});
|