@zohodesk/components 1.0.0-temp-67 → 1.0.0-temp-610
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 +1020 -1020
- package/assets/Appearance/dark/mode/darkMode.module.css +1 -1
- package/es/AppContainer/AppContainer.module.css +18 -18
- package/es/Avatar/Avatar.js +9 -9
- package/es/Avatar/Avatar.module.css +115 -117
- package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +147 -161
- package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
- package/es/Button/Button.js +4 -4
- package/es/Button/Button.module.css +448 -521
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
- package/es/Buttongroup/Buttongroup.js +1 -1
- package/es/Buttongroup/Buttongroup.module.css +60 -89
- package/es/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
- package/es/Card/Card.js +4 -4
- package/es/Card/Card.module.css +20 -20
- package/es/CheckBox/CheckBox.js +0 -0
- package/es/CheckBox/CheckBox.module.css +147 -153
- package/es/DateTime/CalendarView.js +0 -0
- package/es/DateTime/DateTime.js +39 -17
- package/es/DateTime/DateTime.module.css +160 -187
- package/es/DateTime/DateWidget.js +0 -0
- package/es/DateTime/DateWidget.module.css +38 -42
- package/es/DateTime/YearView.js +0 -0
- package/es/DateTime/YearView.module.css +70 -80
- package/es/DateTime/common.js +0 -0
- package/es/DateTime/index.js +0 -0
- package/es/DateTime/objectUtils.js +0 -0
- package/es/DateTime/typeChecker.js +0 -0
- package/es/DateTime/validator.js +0 -0
- package/es/DropBox/DropBox.js +0 -0
- package/es/DropBox/DropBox.module.css +370 -406
- package/es/DropBox/DropBoxPositionMapping.json +144 -144
- package/es/DropDown/DropDown.js +0 -0
- package/es/DropDown/DropDown.module.css +5 -5
- package/es/DropDown/DropDownHeading.js +0 -0
- package/es/DropDown/DropDownHeading.module.css +49 -53
- package/es/DropDown/DropDownItem.js +0 -0
- package/es/DropDown/DropDownItem.module.css +68 -94
- package/es/DropDown/DropDownSearch.js +0 -0
- package/es/DropDown/DropDownSearch.module.css +14 -14
- package/es/DropDown/DropDownSeparator.js +0 -0
- package/es/DropDown/DropDownSeparator.module.css +7 -7
- package/es/Label/Label.js +2 -2
- package/es/Label/Label.module.css +52 -52
- package/es/Label/LabelColors.module.css +20 -20
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
- package/es/Layout/Box.js +0 -0
- package/es/Layout/Container.js +0 -0
- package/es/Layout/Layout.module.css +324 -324
- package/es/Layout/utils.js +0 -0
- package/es/LightNightMode/Colors.json +397 -397
- package/es/ListItem/ListItem.js +0 -0
- package/es/ListItem/ListItem.module.css +173 -205
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +99 -77
- package/es/MultiSelect/AdvancedMultiSelect.js +71 -49
- package/es/MultiSelect/AdvancedMultiSelect.module.css +116 -127
- package/es/MultiSelect/MultiSelect.js +83 -60
- package/es/MultiSelect/MultiSelect.module.css +178 -193
- package/es/MultiSelect/MultiSelectWithAvatar.js +75 -52
- package/es/MultiSelect/SelectedOptions.module.css +9 -15
- package/es/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
- package/es/PopOver/PopOver.module.css +8 -8
- package/es/Popup/Popup.js +0 -0
- package/es/Popup/PositionMapping.json +73 -73
- package/es/Provider.js +35 -72
- package/es/Radio/Radio.js +0 -0
- package/es/Radio/Radio.module.css +104 -110
- package/es/Responsive/CustomResponsive.js +0 -0
- package/es/Responsive/Responsive.js +1 -0
- package/es/ResponsiveDropbox/ResponsiveDropbox.js +74 -0
- package/es/ResponsiveDropbox/ResponsiveDropbox.module.css +6 -0
- package/es/Ribbon/Ribbon.js +0 -0
- package/es/Ribbon/Ribbon.module.css +311 -376
- package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
- package/es/RippleEffect/RippleEffect.module.css +99 -70
- package/es/Select/GroupSelect.js +96 -74
- package/es/Select/Select.js +92 -68
- package/es/Select/Select.module.css +96 -100
- package/es/Select/SelectWithAvatar.js +89 -66
- package/es/Select/SelectWithIcon.js +98 -74
- package/es/Select/__tests__/Select.spec.js +0 -0
- package/es/Stencils/Stencils.js +0 -0
- package/es/Stencils/Stencils.module.css +78 -96
- package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
- package/es/Switch/Switch.js +0 -0
- package/es/Switch/Switch.module.css +110 -109
- package/es/Tab/Tab.module.css +92 -101
- package/es/Tab/TabContent.module.css +4 -4
- package/es/Tab/Tabs.js +17 -17
- package/es/Tab/Tabs.module.css +107 -140
- package/es/Tag/Tag.js +8 -8
- package/es/Tag/Tag.module.css +228 -250
- package/es/TextBox/TextBox.js +0 -0
- package/es/TextBox/TextBox.module.css +161 -157
- package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
- package/es/TextBoxIcon/TextBoxIcon.js +0 -0
- package/es/TextBoxIcon/TextBoxIcon.module.css +71 -78
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
- package/es/Textarea/Textarea.js +0 -0
- package/es/Textarea/Textarea.module.css +140 -139
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
- package/es/Tooltip/Tooltip.module.css +108 -109
- package/es/beta/FocusRing/FocusRing.module.css +126 -151
- package/es/common/animation.module.css +426 -624
- package/es/common/avatarsizes.module.css +44 -44
- package/es/common/basic.module.css +33 -33
- package/es/common/basicReset.module.css +50 -40
- package/es/common/common.module.css +458 -502
- package/es/common/customscroll.module.css +93 -89
- package/es/common/docStyle.module.css +715 -766
- package/es/common/reset.module.css +12 -12
- package/es/common/transition.module.css +106 -146
- package/es/index.js +2 -1
- package/es/semantic/Button/semanticButton.module.css +9 -9
- package/es/utils/Common.js +0 -0
- package/es/utils/dropDownUtils.js +0 -0
- package/lib/AppContainer/AppContainer.js +1 -1
- package/lib/AppContainer/AppContainer.module.css +18 -18
- package/lib/Avatar/Avatar.js +9 -9
- package/lib/Avatar/Avatar.module.css +117 -117
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
- package/lib/AvatarTeam/AvatarTeam.js +7 -7
- package/lib/AvatarTeam/AvatarTeam.module.css +161 -161
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
- package/lib/Button/Button.js +4 -4
- package/lib/Button/Button.module.css +521 -521
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
- package/lib/Buttongroup/Buttongroup.js +1 -1
- package/lib/Buttongroup/Buttongroup.module.css +89 -89
- package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
- package/lib/Card/Card.js +4 -4
- package/lib/Card/Card.module.css +20 -20
- package/lib/CheckBox/CheckBox.js +1 -2
- package/lib/CheckBox/CheckBox.module.css +153 -153
- package/lib/DateTime/CalendarView.js +0 -0
- package/lib/DateTime/DateTime.js +0 -0
- package/lib/DateTime/DateTime.module.css +187 -187
- package/lib/DateTime/DateWidget.js +0 -0
- package/lib/DateTime/DateWidget.module.css +42 -42
- package/lib/DateTime/YearView.js +0 -0
- package/lib/DateTime/YearView.module.css +80 -80
- package/lib/DateTime/common.js +0 -0
- package/lib/DateTime/index.js +0 -0
- package/lib/DateTime/objectUtils.js +0 -0
- package/lib/DateTime/typeChecker.js +0 -0
- package/lib/DateTime/validator.js +0 -0
- package/lib/DropBox/DropBox.js +1 -1
- package/lib/DropBox/DropBox.module.css +406 -406
- package/lib/DropBox/DropBoxPositionMapping.json +144 -144
- package/lib/DropDown/DropDown.js +0 -0
- package/lib/DropDown/DropDown.module.css +5 -5
- package/lib/DropDown/DropDownHeading.js +0 -0
- package/lib/DropDown/DropDownHeading.module.css +53 -53
- package/lib/DropDown/DropDownItem.js +0 -0
- package/lib/DropDown/DropDownItem.module.css +94 -94
- package/lib/DropDown/DropDownSearch.js +0 -0
- package/lib/DropDown/DropDownSearch.module.css +14 -14
- package/lib/DropDown/DropDownSeparator.js +0 -0
- package/lib/DropDown/DropDownSeparator.module.css +7 -7
- package/lib/Label/Label.js +0 -0
- package/lib/Label/Label.module.css +52 -52
- package/lib/Label/LabelColors.module.css +20 -20
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
- package/lib/Layout/Box.js +0 -0
- package/lib/Layout/Container.js +0 -0
- package/lib/Layout/Layout.module.css +324 -324
- package/lib/Layout/utils.js +0 -0
- package/lib/LightNightMode/Colors.json +397 -397
- package/lib/ListItem/ListContainer.js +4 -7
- package/lib/ListItem/ListItem.js +1 -1
- package/lib/ListItem/ListItem.module.css +210 -205
- package/lib/ListItem/ListItemWithAvatar.js +1 -1
- package/lib/ListItem/ListItemWithCheckBox.js +1 -1
- package/lib/ListItem/ListItemWithIcon.js +1 -1
- package/lib/ListItem/ListItemWithRadio.js +1 -1
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +8 -12
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +127 -127
- package/lib/MultiSelect/MultiSelect.js +11 -12
- package/lib/MultiSelect/MultiSelect.module.css +193 -193
- package/lib/MultiSelect/MultiSelectWithAvatar.js +0 -0
- package/lib/MultiSelect/SelectedOptions.module.css +15 -15
- package/lib/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
- package/lib/PopOver/PopOver.module.css +8 -8
- package/lib/Popup/Popup.js +0 -0
- package/lib/Popup/PositionMapping.json +73 -73
- package/lib/Provider/Config.js +1 -4
- package/lib/Provider.js +37 -88
- package/lib/Radio/Radio.js +0 -0
- package/lib/Radio/Radio.module.css +110 -110
- package/lib/Responsive/CustomResponsive.js +0 -0
- package/lib/Ribbon/Ribbon.js +0 -0
- package/lib/Ribbon/Ribbon.module.css +376 -376
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
- package/lib/RippleEffect/RippleEffect.module.css +70 -70
- package/lib/Select/GroupSelect.js +1 -1
- package/lib/Select/Select.js +4 -9
- package/lib/Select/Select.module.css +100 -100
- package/lib/Select/SelectWithAvatar.js +0 -0
- package/lib/Select/SelectWithIcon.js +0 -0
- package/lib/Select/__tests__/Select.spec.js +0 -0
- package/lib/Stencils/Stencils.js +0 -0
- package/lib/Stencils/Stencils.module.css +96 -96
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
- package/lib/Switch/Switch.js +0 -0
- package/lib/Switch/Switch.module.css +109 -109
- package/lib/Tab/Tab.module.css +101 -101
- package/lib/Tab/TabContent.module.css +4 -4
- package/lib/Tab/Tabs.js +11 -11
- package/lib/Tab/Tabs.module.css +140 -140
- package/lib/Tag/Tag.js +8 -8
- package/lib/Tag/Tag.module.css +250 -250
- package/lib/TextBox/TextBox.js +0 -0
- package/lib/TextBox/TextBox.module.css +157 -157
- package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
- package/lib/TextBoxIcon/TextBoxIcon.js +0 -0
- package/lib/TextBoxIcon/TextBoxIcon.module.css +78 -78
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
- package/lib/Textarea/Textarea.js +0 -0
- package/lib/Textarea/Textarea.module.css +139 -139
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
- package/lib/Tooltip/Tooltip.js +8 -15
- package/lib/Tooltip/Tooltip.module.css +104 -109
- package/lib/beta/FocusRing/FocusRing.module.css +151 -151
- package/lib/common/animation.module.css +624 -624
- package/lib/common/avatarsizes.module.css +44 -44
- package/lib/common/basic.module.css +33 -33
- package/lib/common/basicReset.module.css +40 -40
- package/lib/common/common.module.css +502 -502
- package/lib/common/customscroll.module.css +89 -89
- package/lib/common/docStyle.module.css +762 -766
- package/lib/common/reset.module.css +12 -12
- package/lib/common/transition.module.css +146 -146
- package/lib/semantic/Button/semanticButton.module.css +9 -9
- package/lib/utils/Common.js +0 -0
- package/lib/utils/dropDownUtils.js +0 -0
- package/package.json +75 -75
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +0 -358
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +0 -34
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +0 -42
- package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +0 -34
- package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +0 -42
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +0 -34
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +0 -42
- package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +0 -34
- package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +0 -42
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +0 -34
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +0 -42
package/es/ListItem/ListItem.js
CHANGED
|
File without changes
|
|
@@ -1,205 +1,173 @@
|
|
|
1
|
-
.varClass {
|
|
2
|
-
/* listitem default variables */
|
|
3
|
-
--listitem_text_color: var(--zdt_listitem_default_text);
|
|
4
|
-
--listitem_padding: var(--zd_size9) var(--zd_size20);
|
|
5
|
-
--listitem_border_width: 0;
|
|
6
|
-
--listitem_border_color: var(--zdt_listitem_default_border);
|
|
7
|
-
--
|
|
8
|
-
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
--
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
--listitem_padding: var(--
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
--
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
.
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
.
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
.
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
--
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.
|
|
109
|
-
.
|
|
110
|
-
|
|
111
|
-
--
|
|
112
|
-
}
|
|
113
|
-
.
|
|
114
|
-
.
|
|
115
|
-
.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
.
|
|
120
|
-
.
|
|
121
|
-
.
|
|
122
|
-
|
|
123
|
-
--
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
--
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
.
|
|
138
|
-
.
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
display: block;
|
|
175
|
-
}
|
|
176
|
-
[dir=ltr] .smallwithTick {
|
|
177
|
-
--listitem_padding: var(--zd_size9) var(--zd_size39) var(--zd_size9)
|
|
178
|
-
var(--zd_size5)
|
|
179
|
-
/*rtl: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size39)*/;
|
|
180
|
-
}
|
|
181
|
-
[dir=rtl] .smallwithTick {
|
|
182
|
-
--listitem_padding: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size39);
|
|
183
|
-
}
|
|
184
|
-
[dir=ltr] .mediumwithTick {
|
|
185
|
-
--listitem_padding: var(--zd_size9) var(--zd_size39) var(--zd_size9)
|
|
186
|
-
var(--zd_size20)
|
|
187
|
-
/*rtl: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--zd_size39)*/;
|
|
188
|
-
}
|
|
189
|
-
[dir=rtl] .mediumwithTick {
|
|
190
|
-
--listitem_padding: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--zd_size39);
|
|
191
|
-
}
|
|
192
|
-
[dir=ltr] .largewithTick {
|
|
193
|
-
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10)
|
|
194
|
-
var(--zd_size25)
|
|
195
|
-
/*rtl: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39)*/;
|
|
196
|
-
}
|
|
197
|
-
[dir=rtl] .largewithTick {
|
|
198
|
-
--listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
|
|
199
|
-
}
|
|
200
|
-
.responsiveHeight {
|
|
201
|
-
--listitem_min_height: var(--zd_size45);
|
|
202
|
-
font-size: var(--zd_font_size15);
|
|
203
|
-
padding-top: var(--zd_size10);
|
|
204
|
-
padding-bottom: var(--zd_size10);
|
|
205
|
-
}
|
|
1
|
+
.varClass {
|
|
2
|
+
/* listitem default variables */
|
|
3
|
+
--listitem_text_color: var(--zdt_listitem_default_text);
|
|
4
|
+
--listitem_padding: var(--zd_size9) var(--zd_size20);
|
|
5
|
+
--listitem_border_width: 0;
|
|
6
|
+
--listitem_border_color: var(--zdt_listitem_default_border);
|
|
7
|
+
--listitem_avatar_margin: 0 var(--zd_size15) 0 0
|
|
8
|
+
/*rtl: 0 0 0 var(--zd_size15)*/;
|
|
9
|
+
--listitem_bg_color: var(--zdt_listitem_default_bg);
|
|
10
|
+
--listitem_active_bg_color: var(--zdt_listitem_primary_bg);
|
|
11
|
+
--listitem_height: auto;
|
|
12
|
+
--listitem_min_height: 0;
|
|
13
|
+
|
|
14
|
+
/* listitem hover default variable */
|
|
15
|
+
--listitem_highlight_bg_color: var(--zdt_listitem_highlight_bg);
|
|
16
|
+
|
|
17
|
+
/* listitem tick icon default variables */
|
|
18
|
+
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
19
|
+
}
|
|
20
|
+
.list {
|
|
21
|
+
composes: varClass;
|
|
22
|
+
position: relative;
|
|
23
|
+
list-style: none;
|
|
24
|
+
color: var(--listitem_text_color);
|
|
25
|
+
font-size: var(--zd_font_size13);
|
|
26
|
+
padding: var(--listitem_padding);
|
|
27
|
+
border-width: var(--listitem_border_width);
|
|
28
|
+
border-style: solid;
|
|
29
|
+
border-color: var(--listitem_border_color);
|
|
30
|
+
height: var(--listitem_height);
|
|
31
|
+
min-height: var(--listitem_min_height);
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
}
|
|
35
|
+
.list,
|
|
36
|
+
.default,
|
|
37
|
+
.secondary {
|
|
38
|
+
background-color: var(--listitem_bg_color);
|
|
39
|
+
}
|
|
40
|
+
.withBorder {
|
|
41
|
+
--listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
|
|
42
|
+
}
|
|
43
|
+
.active {
|
|
44
|
+
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
45
|
+
}
|
|
46
|
+
.small {
|
|
47
|
+
--listitem_padding: var(--zd_size9) var(--zd_size3) var(--zd_size9)
|
|
48
|
+
var(--zd_size5)
|
|
49
|
+
/*rtl: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size3)*/;
|
|
50
|
+
}
|
|
51
|
+
.medium {
|
|
52
|
+
--listitem_padding: var(--zd_size9) var(--zd_size20);
|
|
53
|
+
--listitem_min_height: var(--zd_size35);
|
|
54
|
+
}
|
|
55
|
+
.large {
|
|
56
|
+
--listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10)
|
|
57
|
+
var(--zd_size25)
|
|
58
|
+
/*rtl: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3)*/;
|
|
59
|
+
--listitem_height: var(--zd_size48);
|
|
60
|
+
}
|
|
61
|
+
.value,
|
|
62
|
+
.children {
|
|
63
|
+
composes: dotted from '../common/common.module.css';
|
|
64
|
+
}
|
|
65
|
+
.iconBox {
|
|
66
|
+
width: var(--zd_size20);
|
|
67
|
+
margin-right: var(--zd_size10);
|
|
68
|
+
text-align: center;
|
|
69
|
+
}
|
|
70
|
+
.iconBox,
|
|
71
|
+
.leftAvatar {
|
|
72
|
+
font-size: 0;
|
|
73
|
+
}
|
|
74
|
+
.leftAvatar {
|
|
75
|
+
margin: var(--listitem_avatar_margin);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.defaultHover,
|
|
79
|
+
.primaryHover,
|
|
80
|
+
.secondaryHover,
|
|
81
|
+
.darkHover {
|
|
82
|
+
background-color: var(--listitem_highlight_bg_color);
|
|
83
|
+
}
|
|
84
|
+
.activewithBorder {
|
|
85
|
+
--listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
|
|
86
|
+
--listitem_border_color: var(--zdt_listitem_active_border);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.defaultHover,
|
|
90
|
+
.defaultEffect:hover,
|
|
91
|
+
.defaultEffect:focus {
|
|
92
|
+
--listitem_bg_color: var(--zdt_listitem_highlight_bg);
|
|
93
|
+
}
|
|
94
|
+
.primaryHover,
|
|
95
|
+
.primaryEffect:hover,
|
|
96
|
+
.primaryEffect:focus {
|
|
97
|
+
--listitem_bg_color: var(--zdt_listitem_primary_bg);
|
|
98
|
+
--listitem_highlight_bg_color: var(--zdt_listitem_primary_bg);
|
|
99
|
+
}
|
|
100
|
+
.secondaryHover,
|
|
101
|
+
.secondaryEffect:hover,
|
|
102
|
+
.secondaryEffect:focus {
|
|
103
|
+
--listitem_bg_color: var(--zdt_listitem_secondary_bg);
|
|
104
|
+
--listitem_highlight_bg_color: var(--zdt_listitem_secondary_bg);
|
|
105
|
+
--listitem_text_color: var(--zdt_listitem_secondary_text);
|
|
106
|
+
}
|
|
107
|
+
.darkHover,
|
|
108
|
+
.darkEffect:hover,
|
|
109
|
+
.darkEffect:focus {
|
|
110
|
+
--listitem_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
111
|
+
--listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
112
|
+
}
|
|
113
|
+
.activedefault,
|
|
114
|
+
.activeprimary,
|
|
115
|
+
.activesecondary,
|
|
116
|
+
.activedark {
|
|
117
|
+
background-color: var(--listitem_active_bg_color);
|
|
118
|
+
}
|
|
119
|
+
.activedefault,
|
|
120
|
+
.activedefault:hover,
|
|
121
|
+
.activeprimary,
|
|
122
|
+
.activeprimary:hover {
|
|
123
|
+
--listitem_active_bg_color: var(--zdt_listitem_primary_bg);
|
|
124
|
+
}
|
|
125
|
+
.activesecondary {
|
|
126
|
+
--listitem_active_bg_color: var(--zdt_listitem_secondary_bg);
|
|
127
|
+
--listitem_text_color: var(--zdt_listitem_secondary_text);
|
|
128
|
+
}
|
|
129
|
+
.dark {
|
|
130
|
+
--listitem_bg_color: var(--zdt_listitem_dark_bg);
|
|
131
|
+
--listitem_text_color: var(--zdt_listitem_dark_text);
|
|
132
|
+
}
|
|
133
|
+
.activedark {
|
|
134
|
+
--listitem_active_bg_color: var(--zdt_listitem_dark_active_bg);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.tickIcon,
|
|
138
|
+
.defaultTick,
|
|
139
|
+
.darkTick {
|
|
140
|
+
position: absolute;
|
|
141
|
+
color: var(--listitem_tickicon_color);
|
|
142
|
+
right: var(--zd_size20);
|
|
143
|
+
}
|
|
144
|
+
.defaultTick {
|
|
145
|
+
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
146
|
+
}
|
|
147
|
+
.darkTick {
|
|
148
|
+
--listitem_tickicon_color: var(--zdt_listitem_dark_tickicon);
|
|
149
|
+
}
|
|
150
|
+
.defaultTick > i {
|
|
151
|
+
display: block;
|
|
152
|
+
}
|
|
153
|
+
.smallwithTick {
|
|
154
|
+
--listitem_padding: var(--zd_size9) var(--zd_size39) var(--zd_size9)
|
|
155
|
+
var(--zd_size5)
|
|
156
|
+
/*rtl: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size39)*/;
|
|
157
|
+
}
|
|
158
|
+
.mediumwithTick {
|
|
159
|
+
--listitem_padding: var(--zd_size9) var(--zd_size39) var(--zd_size9)
|
|
160
|
+
var(--zd_size20)
|
|
161
|
+
/*rtl: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--zd_size39)*/;
|
|
162
|
+
}
|
|
163
|
+
.largewithTick {
|
|
164
|
+
--listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10)
|
|
165
|
+
var(--zd_size25)
|
|
166
|
+
/*rtl: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39)*/;
|
|
167
|
+
}
|
|
168
|
+
.responsiveHeight {
|
|
169
|
+
--listitem_min_height: var(--zd_size45);
|
|
170
|
+
padding-top: var(--zd_size10);
|
|
171
|
+
padding-bottom: var(--zd_size10);
|
|
172
|
+
font-size: var(--zd_font_size15);
|
|
173
|
+
}
|
|
@@ -4,7 +4,6 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
|
|
5
5
|
import Loader from '@zohodesk/svg/lib/svg/Loader';
|
|
6
6
|
import Popup from '../Popup/Popup';
|
|
7
|
-
import DropBox from '../DropBox/DropBox';
|
|
8
7
|
import TextBox from '../TextBox/TextBox';
|
|
9
8
|
import { Container, Box } from '../Layout';
|
|
10
9
|
import DropDownHeading from '../DropDown/DropDownHeading';
|
|
@@ -14,6 +13,8 @@ import Suggestions from '../MultiSelect/Suggestions';
|
|
|
14
13
|
import EmptyState from '../MultiSelect/EmptyState';
|
|
15
14
|
import Card, { CardContent, CardHeader, CardFooter } from '../Card/Card';
|
|
16
15
|
import { getUniqueId } from '../Provider/IdProvider';
|
|
16
|
+
import ResponsiveDropbox from '../ResponsiveDropbox/ResponsiveDropbox';
|
|
17
|
+
import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
|
|
17
18
|
/**** Icons ****/
|
|
18
19
|
|
|
19
20
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
@@ -408,8 +409,8 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
408
409
|
if (suggestionsLen && isPopupOpen && keyCode === 38) {
|
|
409
410
|
//up arrow
|
|
410
411
|
|
|
411
|
-
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
412
|
-
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
412
|
+
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
413
|
+
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
413
414
|
}*/
|
|
414
415
|
if (hoverIndex) {
|
|
415
416
|
this.setState({
|
|
@@ -419,9 +420,9 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
419
420
|
} else if (suggestionsLen && isPopupOpen && keyCode === 40) {
|
|
420
421
|
//down arrow
|
|
421
422
|
|
|
422
|
-
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
423
|
-
//disable last to first option higlight
|
|
424
|
-
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
423
|
+
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
424
|
+
//disable last to first option higlight
|
|
425
|
+
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
425
426
|
}*/
|
|
426
427
|
if (isNextOptions && suggestionsLen >= 5 && hoverIndex === suggestionsLen - 3) {
|
|
427
428
|
getNextOptions && this.handleFetchOptions(getNextOptions, searchStr);
|
|
@@ -819,6 +820,17 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
819
820
|
}
|
|
820
821
|
}
|
|
821
822
|
|
|
823
|
+
responsiveFunc(_ref) {
|
|
824
|
+
let {
|
|
825
|
+
mediaQueryOR
|
|
826
|
+
} = _ref;
|
|
827
|
+
return {
|
|
828
|
+
tabletMode: mediaQueryOR([{
|
|
829
|
+
maxWidth: 700
|
|
830
|
+
}])
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
|
|
822
834
|
render() {
|
|
823
835
|
let {
|
|
824
836
|
size,
|
|
@@ -953,80 +965,90 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
953
965
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
954
966
|
name: "ZD-delete",
|
|
955
967
|
size: "15"
|
|
956
|
-
})) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
isActive: isPopupReady,
|
|
961
|
-
isAnimate: true,
|
|
962
|
-
isArrow: false,
|
|
963
|
-
onClick: removeClose,
|
|
964
|
-
needResponsive: needResponsive,
|
|
965
|
-
isPadding: isPadding,
|
|
966
|
-
isBoxPaddingNeed: !needSelectAll,
|
|
967
|
-
htmlId: setAriaId,
|
|
968
|
-
a11y: {
|
|
969
|
-
role: 'listbox',
|
|
970
|
-
ariaMultiselectable: true
|
|
971
|
-
}
|
|
972
|
-
}, /*#__PURE__*/React.createElement(Card, {
|
|
973
|
-
customClass: `${style.box} ${style[`${palette}Box`]}`,
|
|
974
|
-
onScroll: this.handleScroll
|
|
975
|
-
}, /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(MultiSelectHeader, {
|
|
976
|
-
needSelectAll: needSelectAll,
|
|
977
|
-
onSelect: this.handleSelectAll,
|
|
978
|
-
selectAllText: selectAllText,
|
|
979
|
-
suggestions: suggestionOptionIds,
|
|
980
|
-
dataId: dataId
|
|
981
|
-
})), isDataLoaded ? /*#__PURE__*/React.createElement(CardContent, {
|
|
982
|
-
customClass: dropBoxSize ? style[dropBoxSize] : '',
|
|
983
|
-
eleRef: this.suggestionContainerRef
|
|
984
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, {
|
|
985
|
-
key: 'SuggestonsParent'
|
|
986
|
-
}, suggestionGroups.length ? suggestionGroups.map(group => {
|
|
968
|
+
})) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
969
|
+
query: this.responsiveFunc,
|
|
970
|
+
responsiveId: "Helmet"
|
|
971
|
+
}, _ref2 => {
|
|
987
972
|
let {
|
|
988
|
-
|
|
989
|
-
} =
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
})), /*#__PURE__*/React.createElement(Suggestions, {
|
|
1003
|
-
suggestions: suggestions,
|
|
1004
|
-
selectedOptions: selectedOptionIds,
|
|
1005
|
-
getRef: this.suggestionItemRef,
|
|
1006
|
-
hoverId: hoverId,
|
|
1007
|
-
onClick: this.handleSelectOption,
|
|
1008
|
-
onMouseEnter: this.handleMouseEnter,
|
|
1009
|
-
needTick: true,
|
|
1010
|
-
listItemSize: listItemSize,
|
|
973
|
+
tabletMode
|
|
974
|
+
} = _ref2;
|
|
975
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropbox, {
|
|
976
|
+
animationStyle: animationStyle,
|
|
977
|
+
boxPosition: position || `${defaultDropBoxPosition}Center`,
|
|
978
|
+
getRef: getContainerRef,
|
|
979
|
+
isActive: isPopupReady,
|
|
980
|
+
isAnimate: true,
|
|
981
|
+
isArrow: false,
|
|
982
|
+
onClick: removeClose,
|
|
983
|
+
needResponsive: needResponsive,
|
|
984
|
+
isPadding: isPadding,
|
|
985
|
+
isBoxPaddingNeed: !needSelectAll,
|
|
986
|
+
htmlId: setAriaId,
|
|
1011
987
|
a11y: {
|
|
1012
|
-
role: '
|
|
988
|
+
role: 'listbox',
|
|
989
|
+
ariaMultiselectable: true
|
|
1013
990
|
}
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
991
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
992
|
+
className: style.responsiveParent
|
|
993
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
994
|
+
customClass: `${style.box} ${style[`${palette}Box`]}`,
|
|
995
|
+
onScroll: this.handleScroll
|
|
996
|
+
}, /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(MultiSelectHeader, {
|
|
997
|
+
needSelectAll: needSelectAll,
|
|
998
|
+
onSelect: this.handleSelectAll,
|
|
999
|
+
selectAllText: selectAllText,
|
|
1000
|
+
suggestions: suggestionOptionIds,
|
|
1001
|
+
dataId: dataId
|
|
1002
|
+
})), isDataLoaded ? /*#__PURE__*/React.createElement(CardContent, {
|
|
1003
|
+
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
1004
|
+
eleRef: this.suggestionContainerRef
|
|
1005
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, {
|
|
1006
|
+
key: 'SuggestonsParent'
|
|
1007
|
+
}, suggestionGroups.length ? suggestionGroups.map(group => {
|
|
1008
|
+
let {
|
|
1009
|
+
options: suggestions = []
|
|
1010
|
+
} = group;
|
|
1011
|
+
let groupId = group.id;
|
|
1012
|
+
let groupName = group.name;
|
|
1013
|
+
let hoverId = suggestionOptionIds[hoverIndex];
|
|
1014
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
1015
|
+
key: groupId
|
|
1016
|
+
}, groupName && /*#__PURE__*/React.createElement("div", {
|
|
1017
|
+
className: style.groupTitle
|
|
1018
|
+
}, /*#__PURE__*/React.createElement(DropDownHeading, {
|
|
1019
|
+
text: groupName,
|
|
1020
|
+
a11y: {
|
|
1021
|
+
role: 'heading'
|
|
1022
|
+
}
|
|
1023
|
+
})), /*#__PURE__*/React.createElement(Suggestions, {
|
|
1024
|
+
suggestions: suggestions,
|
|
1025
|
+
selectedOptions: selectedOptionIds,
|
|
1026
|
+
getRef: this.suggestionItemRef,
|
|
1027
|
+
hoverId: hoverId,
|
|
1028
|
+
onClick: this.handleSelectOption,
|
|
1029
|
+
onMouseEnter: this.handleMouseEnter,
|
|
1030
|
+
needTick: true,
|
|
1031
|
+
listItemSize: listItemSize,
|
|
1032
|
+
a11y: {
|
|
1033
|
+
role: 'option'
|
|
1034
|
+
}
|
|
1035
|
+
}));
|
|
1036
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1037
|
+
options: revampedGroups,
|
|
1038
|
+
searchString: searchStr,
|
|
1039
|
+
suggestions: suggestionGroups,
|
|
1040
|
+
dataId: dataId,
|
|
1041
|
+
isLoading: isFetchingOptions,
|
|
1042
|
+
i18nKeys: i18nKeys,
|
|
1043
|
+
htmlId: ariaErrorId
|
|
1044
|
+
}), isNextOptions && /*#__PURE__*/React.createElement("div", {
|
|
1045
|
+
className: style.loader
|
|
1046
|
+
}, /*#__PURE__*/React.createElement(Loader, null)))) : /*#__PURE__*/React.createElement("div", {
|
|
1047
|
+
className: style.loader
|
|
1048
|
+
}, /*#__PURE__*/React.createElement(Loader, null)), getFooter ? isDataLoaded ? /*#__PURE__*/React.createElement(CardFooter, null, getFooter()) : /*#__PURE__*/React.createElement("div", {
|
|
1049
|
+
className: style.loader
|
|
1050
|
+
}, /*#__PURE__*/React.createElement(Loader, null)) : null)));
|
|
1051
|
+
}) : null);
|
|
1030
1052
|
}
|
|
1031
1053
|
|
|
1032
1054
|
}
|