@zohodesk/components 1.0.0-temp-191 → 1.0.0-temp-193
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/.cli/propValidation_report.html +1 -1
- package/README.md +4 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +29 -2
- package/assets/Appearance/light/mode/Component_LightMode.module.css +29 -2
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +29 -2
- package/es/AppContainer/AppContainer.js +9 -10
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +5 -4
- package/es/Avatar/Avatar.module.css +44 -26
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +62 -74
- package/es/Button/Button.js +6 -5
- package/es/Button/css/Button.module.css +156 -100
- package/es/Buttongroup/Buttongroup.module.css +50 -17
- package/es/CheckBox/CheckBox.js +8 -8
- package/es/CheckBox/CheckBox.module.css +35 -60
- package/es/DateTime/DateTime.js +8 -2
- package/es/DateTime/DateTime.module.css +85 -57
- package/es/DateTime/DateWidget.js +14 -3
- package/es/DateTime/DateWidget.module.css +11 -7
- package/es/DateTime/Time.js +30 -13
- package/es/DateTime/YearView.module.css +34 -21
- package/es/DateTime/props/defaultProps.js +4 -2
- package/es/DateTime/props/propTypes.js +6 -3
- package/es/DropBox/DropBox.js +11 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/es/DropBox/css/DropBox.module.css +23 -6
- package/es/DropDown/DropDown.js +1 -2
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.module.css +15 -15
- package/es/DropDown/DropDownItem.module.css +40 -22
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.module.css +11 -23
- package/es/Label/LabelColors.module.css +1 -7
- package/es/Layout/Layout.module.css +15 -15
- package/es/ListItem/ListContainer.js +5 -6
- package/es/ListItem/ListItem.js +5 -4
- package/es/ListItem/ListItem.module.css +80 -98
- package/es/ListItem/ListItemWithAvatar.js +5 -4
- package/es/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/ListItem/ListItemWithIcon.js +5 -4
- package/es/ListItem/ListItemWithRadio.js +5 -4
- package/es/Modal/Modal.js +5 -4
- package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/es/MultiSelect/MultiSelect.module.css +55 -69
- package/es/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/MultiSelect/SelectedOptions.js +8 -6
- package/es/MultiSelect/SelectedOptions.module.css +11 -5
- package/es/MultiSelect/Suggestions.js +8 -6
- package/es/MultiSelect/props/defaultProps.js +4 -2
- package/es/PopOver/PopOver.module.css +2 -2
- package/es/Popup/Popup.js +4 -3
- package/es/Radio/Radio.js +8 -8
- package/es/Radio/Radio.module.css +22 -37
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/Ribbon/Ribbon.module.css +143 -64
- package/es/RippleEffect/RippleEffect.module.css +9 -27
- package/es/Select/Select.js +5 -4
- package/es/Select/Select.module.css +33 -22
- package/es/Stencils/Stencils.module.css +32 -14
- package/es/Switch/Switch.js +8 -8
- package/es/Switch/Switch.module.css +30 -35
- package/es/Tab/Tab.js +5 -4
- package/es/Tab/Tab.module.css +28 -39
- package/es/Tab/TabContentWrapper.js +5 -4
- package/es/Tab/TabWrapper.js +4 -2
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/Tabs.module.css +51 -29
- package/es/Tag/Tag.module.css +60 -91
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +19 -23
- package/es/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/es/Textarea/Textarea.js +6 -4
- package/es/Textarea/Textarea.module.css +30 -60
- package/es/Tooltip/Tooltip.module.css +12 -13
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/es/common/animation.module.css +227 -29
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +5 -15
- package/es/common/common.module.css +82 -36
- package/es/common/customscroll.module.css +33 -12
- package/es/common/transition.module.css +50 -10
- package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/v1/AppContainer/AppContainer.js +9 -10
- package/es/v1/Avatar/Avatar.js +5 -4
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +6 -5
- package/es/v1/CheckBox/CheckBox.js +8 -8
- package/es/v1/DropBox/DropBox.js +11 -10
- package/es/v1/DropDown/DropDown.js +1 -2
- package/es/v1/ListItem/ListContainer.js +5 -6
- package/es/v1/ListItem/ListItem.js +5 -4
- package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
- package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/v1/ListItem/ListItemWithIcon.js +5 -4
- package/es/v1/ListItem/ListItemWithRadio.js +5 -4
- package/es/v1/Modal/Modal.js +5 -4
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/v1/MultiSelect/SelectedOptions.js +8 -6
- package/es/v1/MultiSelect/Suggestions.js +8 -6
- package/es/v1/MultiSelect/props/defaultProps.js +4 -2
- package/es/v1/Popup/Popup.js +4 -3
- package/es/v1/Radio/Radio.js +8 -8
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/v1/Select/Select.js +5 -4
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +5 -4
- package/es/v1/Tab/TabContentWrapper.js +5 -4
- package/es/v1/Tab/TabWrapper.js +4 -2
- package/es/v1/Tab/Tabs.js +16 -16
- package/es/v1/Tab/v1Tab.module.css +28 -39
- package/es/v1/Tab/v1Tabs.module.css +51 -29
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/v1/Textarea/Textarea.js +6 -4
- package/es/v1/Typography/css/Typography.module.css +39 -33
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/Avatar/Avatar.module.css +44 -26
- package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
- package/lib/Button/css/Button.module.css +156 -100
- package/lib/Buttongroup/Buttongroup.module.css +50 -17
- package/lib/CheckBox/CheckBox.module.css +35 -60
- package/lib/DateTime/DateTime.js +13 -2
- package/lib/DateTime/DateTime.module.css +85 -57
- package/lib/DateTime/DateWidget.js +19 -3
- package/lib/DateTime/DateWidget.module.css +11 -7
- package/lib/DateTime/Time.js +35 -13
- package/lib/DateTime/YearView.module.css +34 -21
- package/lib/DateTime/props/defaultProps.js +4 -2
- package/lib/DateTime/props/propTypes.js +6 -3
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/lib/DropBox/css/DropBox.module.css +23 -6
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.module.css +15 -15
- package/lib/DropDown/DropDownItem.module.css +40 -22
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Label/Label.module.css +11 -23
- package/lib/Label/LabelColors.module.css +1 -7
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/ListItem/ListItem.module.css +80 -98
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/lib/MultiSelect/MultiSelect.module.css +55 -69
- package/lib/MultiSelect/SelectedOptions.module.css +11 -5
- package/lib/MultiSelect/props/defaultProps.js +4 -2
- package/lib/PopOver/PopOver.module.css +2 -2
- package/lib/Radio/Radio.module.css +22 -37
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/Ribbon/Ribbon.module.css +143 -64
- package/lib/RippleEffect/RippleEffect.module.css +9 -27
- package/lib/Select/Select.module.css +33 -22
- package/lib/Stencils/Stencils.module.css +32 -14
- package/lib/Switch/Switch.module.css +30 -35
- package/lib/Tab/Tab.module.css +28 -39
- package/lib/Tab/Tabs.module.css +51 -29
- package/lib/Tag/Tag.module.css +60 -91
- package/lib/TextBox/TextBox.module.css +19 -23
- package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/lib/Textarea/Textarea.module.css +30 -60
- package/lib/Tooltip/Tooltip.module.css +12 -13
- package/lib/common/animation.module.css +227 -29
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +5 -15
- package/lib/common/common.module.css +82 -36
- package/lib/common/customscroll.module.css +33 -12
- package/lib/common/transition.module.css +50 -10
- package/lib/semantic/Button/semanticButton.module.css +3 -3
- package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
- package/lib/v1/Tab/v1Tab.module.css +28 -39
- package/lib/v1/Tab/v1Tabs.module.css +51 -29
- package/lib/v1/Typography/css/Typography.module.css +39 -33
- package/package.json +3 -3
- package/result.json +1 -0
|
@@ -1,122 +1,110 @@
|
|
|
1
1
|
.wrapper {
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
.disabled,
|
|
6
|
-
.readOnly {
|
|
4
|
+
.disabled, .readOnly {
|
|
7
5
|
cursor: not-allowed;
|
|
8
6
|
}
|
|
9
|
-
|
|
10
7
|
.container {
|
|
11
|
-
max-height:
|
|
8
|
+
max-height: var(--zd_size120) ;
|
|
12
9
|
composes: oflowy from '../common/common.module.css';
|
|
13
10
|
}
|
|
14
|
-
|
|
15
11
|
.hasBorder {
|
|
12
|
+
transition: border var(--zd_transition2) linear 0s;
|
|
16
13
|
border-bottom-style: solid;
|
|
17
14
|
border-bottom-width: 1px;
|
|
18
|
-
transition: border var(--zd_transition2) linear 0s;
|
|
19
15
|
}
|
|
20
|
-
|
|
21
16
|
.borderColor_transparent {
|
|
22
17
|
border-bottom-color: var(--zdt_multiselect_transparent_border);
|
|
23
18
|
}
|
|
24
|
-
|
|
25
19
|
.effect .borderColor_transparent:hover {
|
|
26
20
|
border-bottom-color: var(--zdt_multiselect_transparent_hover_border);
|
|
27
21
|
}
|
|
28
|
-
|
|
29
22
|
.effect .borderColor_transparent.active {
|
|
30
23
|
border-bottom-color: var(--zdt_multiselect_transparent_active_border);
|
|
31
24
|
}
|
|
32
|
-
|
|
33
25
|
.borderColor_default {
|
|
34
26
|
border-bottom-color: var(--zdt_multiselect_default_border);
|
|
35
27
|
}
|
|
36
|
-
|
|
37
28
|
.effect .borderColor_default:hover {
|
|
38
29
|
border-bottom-color: var(--zdt_multiselect_default_hover_border);
|
|
39
30
|
}
|
|
40
|
-
|
|
41
31
|
.effect .borderColor_default.active {
|
|
42
32
|
border-bottom-color: var(--zdt_multiselect_default_active_border);
|
|
43
33
|
}
|
|
44
|
-
|
|
45
34
|
.borderColor_dark {
|
|
46
35
|
border-bottom-color: var(--zdt_multiselect_dark_border);
|
|
47
36
|
}
|
|
48
|
-
|
|
49
37
|
.effect .borderColor_dark:hover {
|
|
50
38
|
border-bottom-color: var(--zdt_multiselect_dark_hover_border);
|
|
51
39
|
}
|
|
52
|
-
|
|
53
40
|
.effect .borderColor_dark.active {
|
|
54
41
|
border-bottom-color: var(--zdt_multiselect_dark_active_border);
|
|
55
42
|
}
|
|
56
43
|
|
|
57
44
|
.container.medium {
|
|
58
|
-
padding-bottom:
|
|
45
|
+
padding-bottom: var(--zd_size8) ;
|
|
59
46
|
}
|
|
60
47
|
|
|
61
48
|
.container.xmedium {
|
|
62
|
-
|
|
63
|
-
|
|
49
|
+
min-height: var(--zd_size30) ;
|
|
50
|
+
padding-bottom: var(--zd_size3) ;
|
|
64
51
|
}
|
|
65
52
|
|
|
66
53
|
.delete {
|
|
67
|
-
|
|
54
|
+
font: inherit;
|
|
55
|
+
padding: var(--zd_size2) var(--zd_size6) ;
|
|
68
56
|
cursor: pointer;
|
|
69
57
|
border: 0;
|
|
70
58
|
background-color: var(--zdt_multiselect_delete_bg);
|
|
71
|
-
font: inherit;
|
|
72
59
|
}
|
|
73
|
-
|
|
74
60
|
.delete,
|
|
75
61
|
.defaultDelete {
|
|
76
62
|
color: var(--zdt_multiselect_delete_text);
|
|
77
63
|
}
|
|
78
|
-
|
|
79
64
|
.darkDelete {
|
|
80
65
|
color: var(--zdt_multiselect_darkdelete_text);
|
|
81
66
|
}
|
|
82
67
|
|
|
83
68
|
.delete:hover,
|
|
84
69
|
.defaultDelete:hover {
|
|
85
|
-
color: var(--
|
|
70
|
+
color: var(--zdt_multiselect_delete_hover_text);
|
|
86
71
|
}
|
|
87
|
-
|
|
88
72
|
.darkDelete:hover {
|
|
89
73
|
color: var(--zdt_multiselect_darkdelete_hover_text);
|
|
90
74
|
}
|
|
91
|
-
|
|
92
75
|
.transparentContainer .delete {
|
|
93
76
|
opacity: 0;
|
|
94
77
|
visibility: hidden;
|
|
95
78
|
}
|
|
96
|
-
|
|
97
79
|
.transparentContainer:hover .delete {
|
|
98
80
|
opacity: 1;
|
|
99
81
|
visibility: visible;
|
|
100
82
|
}
|
|
101
83
|
|
|
102
84
|
.tag {
|
|
103
|
-
max-width: 100
|
|
85
|
+
max-width: 100% ;
|
|
104
86
|
}
|
|
105
87
|
|
|
106
|
-
.container.xmedium .tag {
|
|
107
|
-
margin:
|
|
88
|
+
[dir=ltr] .container.xmedium .tag {
|
|
89
|
+
margin: var(--zd_size2) var(--zd_size10) 0 0 ;
|
|
108
90
|
}
|
|
109
91
|
|
|
110
|
-
.container.
|
|
111
|
-
margin:
|
|
92
|
+
[dir=rtl] .container.xmedium .tag {
|
|
93
|
+
margin: var(--zd_size2) 0 0 var(--zd_size10) ;
|
|
112
94
|
}
|
|
113
95
|
|
|
114
|
-
.
|
|
115
|
-
|
|
96
|
+
[dir=ltr] .container.medium .tag {
|
|
97
|
+
margin: var(--zd_size5) var(--zd_size10) 0 0 ;
|
|
116
98
|
}
|
|
117
99
|
|
|
100
|
+
[dir=rtl] .container.medium .tag {
|
|
101
|
+
margin: var(--zd_size5) 0 0 var(--zd_size10) ;
|
|
102
|
+
}
|
|
103
|
+
.responsiveParent{
|
|
104
|
+
width: 100% ;
|
|
105
|
+
}
|
|
118
106
|
.box {
|
|
119
|
-
background: var(--
|
|
107
|
+
background: var(--zdt_multiselect_box_bg);
|
|
120
108
|
}
|
|
121
109
|
|
|
122
110
|
.selectAll:hover {
|
|
@@ -124,43 +112,41 @@
|
|
|
124
112
|
}
|
|
125
113
|
|
|
126
114
|
.small {
|
|
127
|
-
max-height:
|
|
115
|
+
max-height: var(--zd_size200) ;
|
|
128
116
|
}
|
|
129
117
|
|
|
130
118
|
.medium {
|
|
131
|
-
max-height:
|
|
119
|
+
max-height: var(--zd_size350) ;
|
|
132
120
|
}
|
|
133
121
|
|
|
134
122
|
.large {
|
|
135
|
-
max-height:
|
|
123
|
+
max-height: var(--zd_size400) ;
|
|
136
124
|
}
|
|
137
125
|
|
|
138
126
|
.commonMessage {
|
|
139
|
-
font-size:
|
|
127
|
+
font-size: var(--zd_font_size14) ;
|
|
140
128
|
composes: semibold from '../common/common.module.css';
|
|
141
|
-
padding:
|
|
129
|
+
padding: var(--zd_size12) var(--zd_size15) ;
|
|
142
130
|
}
|
|
143
|
-
|
|
144
131
|
.default,
|
|
145
132
|
.dark {
|
|
146
133
|
composes: commonMessage;
|
|
147
134
|
}
|
|
148
|
-
|
|
149
135
|
.default,
|
|
150
136
|
.defaultBox {
|
|
151
137
|
color: var(--zdt_multiselect_message_text);
|
|
152
138
|
}
|
|
153
|
-
|
|
154
139
|
.dark,
|
|
155
140
|
.darkBox {
|
|
156
|
-
background: var(--zdt_multiselect_darkmsg_bg);
|
|
157
141
|
color: var(--zdt_multiselect_darkmsg_text);
|
|
158
142
|
}
|
|
143
|
+
.dark, .darkBox {
|
|
144
|
+
background: var(--zdt_multiselect_darkmsg_bg);
|
|
145
|
+
}
|
|
159
146
|
|
|
160
147
|
.hide {
|
|
161
148
|
composes: vishidden from '../common/common.module.css';
|
|
162
149
|
}
|
|
163
|
-
|
|
164
150
|
.custmSpan {
|
|
165
151
|
display: inline-block;
|
|
166
152
|
vertical-align: middle;
|
|
@@ -168,51 +154,51 @@
|
|
|
168
154
|
overflow: hidden;
|
|
169
155
|
text-overflow: ellipsis;
|
|
170
156
|
white-space: nowrap;
|
|
171
|
-
max-width: 100
|
|
157
|
+
max-width: 100% ;
|
|
172
158
|
visibility: hidden;
|
|
173
159
|
}
|
|
174
|
-
|
|
175
160
|
.custmSpanMedium {
|
|
176
|
-
height:
|
|
161
|
+
height: var(--zd_size35) ;
|
|
177
162
|
}
|
|
178
|
-
|
|
179
163
|
.custmSpanXmedium {
|
|
180
|
-
height:
|
|
164
|
+
height: var(--zd_size28) ;
|
|
181
165
|
}
|
|
182
|
-
|
|
183
166
|
.custmInputWrapper {
|
|
184
167
|
position: absolute;
|
|
185
|
-
top: 0;
|
|
186
|
-
|
|
187
|
-
|
|
168
|
+
top: 0 ;
|
|
169
|
+
width: 100% ;
|
|
170
|
+
}
|
|
171
|
+
[dir=ltr] .custmInputWrapper {
|
|
172
|
+
left: 0 ;
|
|
173
|
+
}
|
|
174
|
+
[dir=rtl] .custmInputWrapper {
|
|
175
|
+
right: 0 ;
|
|
188
176
|
}
|
|
189
|
-
|
|
190
177
|
.title {
|
|
191
|
-
margin-bottom:
|
|
178
|
+
margin-bottom: var(--zd_size6) ;
|
|
192
179
|
}
|
|
193
|
-
|
|
194
180
|
.groupTitle {
|
|
195
|
-
margin:
|
|
181
|
+
margin: var(--zd_size6) 0 ;
|
|
196
182
|
}
|
|
197
|
-
|
|
198
183
|
.loader {
|
|
199
|
-
padding:
|
|
184
|
+
padding: var(--zd_size10) ;
|
|
200
185
|
}
|
|
201
|
-
|
|
202
186
|
.iconContainer {
|
|
203
|
-
padding-top:
|
|
187
|
+
padding-top: var(--zd_size3)
|
|
204
188
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
189
|
+
[dir=ltr] .clearIconSpace {
|
|
190
|
+
padding-right: var(--zd_size37)
|
|
191
|
+
}
|
|
192
|
+
[dir=rtl] .clearIconSpace {
|
|
193
|
+
padding-left: var(--zd_size37)
|
|
208
194
|
}
|
|
209
195
|
|
|
210
196
|
.more {
|
|
211
|
-
font-size:
|
|
197
|
+
font-size: var(--zd_font_size14) ;
|
|
212
198
|
color: var(--zdt_multiselect_more_text);
|
|
213
|
-
cursor: pointer;
|
|
214
|
-
margin-top: 5px;
|
|
215
199
|
font-family: inherit;
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
margin-top: var(--zd_size5) ;
|
|
216
202
|
background-color: var(--zdt_multiselect_delete_bg);
|
|
217
203
|
border: 0;
|
|
218
|
-
}
|
|
204
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { MultiSelectWithAvatar_propTypes } from './props/propTypes';
|
|
@@ -155,7 +157,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
155
157
|
shrink: true,
|
|
156
158
|
customClass: !isModel && dropBoxSize ? style[dropBoxSize] : '',
|
|
157
159
|
eleRef: this.suggestionContainerRef
|
|
158
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
160
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
159
161
|
needTick: keepSelectedOptions,
|
|
160
162
|
suggestions: suggestions,
|
|
161
163
|
getRef: this.suggestionItemRef,
|
|
@@ -168,9 +170,8 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
168
170
|
selectedOptions: selectedOptionIds,
|
|
169
171
|
a11y: {
|
|
170
172
|
role: 'option'
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
173
|
+
}
|
|
174
|
+
}, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
174
175
|
isLoading: isFetchingOptions,
|
|
175
176
|
options: options,
|
|
176
177
|
searchString: searchStr,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { SelectedOptions_propTypes } from './props/propTypes';
|
|
@@ -50,28 +52,28 @@ export default class SelectedOptions extends React.PureComponent {
|
|
|
50
52
|
return /*#__PURE__*/React.createElement(Box, {
|
|
51
53
|
className: `${style.tag} ${style[size]}`,
|
|
52
54
|
key: `${id}photoTag`
|
|
53
|
-
}, /*#__PURE__*/React.createElement(Tag, {
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
|
|
54
56
|
active: highLightedSelectOptions.indexOf(id) >= 0,
|
|
55
57
|
hasAvatar: true,
|
|
56
58
|
imageURL: photoURL
|
|
57
|
-
}));
|
|
59
|
+
})));
|
|
58
60
|
} else if (optionType === 'icon') {
|
|
59
61
|
return /*#__PURE__*/React.createElement(Box, {
|
|
60
62
|
className: `${style.tag} ${style[size]}`,
|
|
61
63
|
key: `${id}iconTag`
|
|
62
|
-
}, /*#__PURE__*/React.createElement(Tag, {
|
|
64
|
+
}, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
|
|
63
65
|
active: highLightedSelectOptions.indexOf(id) >= 0,
|
|
64
66
|
iconName: icon,
|
|
65
67
|
iconSize: iconSize
|
|
66
|
-
}));
|
|
68
|
+
})));
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
return /*#__PURE__*/React.createElement(Box, {
|
|
70
72
|
className: `${style.tag} ${style[size]}`,
|
|
71
73
|
key: `${id}tag`
|
|
72
|
-
}, /*#__PURE__*/React.createElement(Tag, {
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
|
|
73
75
|
active: highLightedSelectOptions.indexOf(id) >= 0
|
|
74
|
-
}));
|
|
76
|
+
})));
|
|
75
77
|
}));
|
|
76
78
|
}
|
|
77
79
|
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
.tag {
|
|
2
|
-
max-width: 100
|
|
2
|
+
max-width: 100% ;
|
|
3
3
|
}
|
|
4
|
-
.xmedium {
|
|
5
|
-
margin: 0
|
|
4
|
+
[dir=ltr] .xmedium {
|
|
5
|
+
margin: 0 var(--zd_size10) var(--zd_size2) 0 ;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
8
|
-
margin:
|
|
7
|
+
[dir=rtl] .xmedium {
|
|
8
|
+
margin: 0 0 var(--zd_size2) var(--zd_size10) ;
|
|
9
|
+
}
|
|
10
|
+
[dir=ltr] .medium {
|
|
11
|
+
margin: var(--zd_size5) var(--zd_size10) 0 0 ;
|
|
12
|
+
}
|
|
13
|
+
[dir=rtl] .medium {
|
|
14
|
+
margin: var(--zd_size5) 0 0 var(--zd_size10) ;
|
|
9
15
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { Suggestions_propTypes } from './props/propTypes';
|
|
@@ -74,7 +76,7 @@ export default class Suggestions extends React.PureComponent {
|
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
if (optionType === 'avatar') {
|
|
77
|
-
return /*#__PURE__*/React.createElement(ListItemWithAvatar, {
|
|
79
|
+
return /*#__PURE__*/React.createElement(ListItemWithAvatar, _extends({}, commonProps, {
|
|
78
80
|
autoHover: false,
|
|
79
81
|
getRef: getRef,
|
|
80
82
|
highlight: isHighlight,
|
|
@@ -93,9 +95,9 @@ export default class Suggestions extends React.PureComponent {
|
|
|
93
95
|
avatarPalette: avatarPalette,
|
|
94
96
|
palette: palette,
|
|
95
97
|
a11y: list_a11y
|
|
96
|
-
});
|
|
98
|
+
}));
|
|
97
99
|
} else if (optionType === 'icon') {
|
|
98
|
-
return /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
100
|
+
return /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({}, commonProps, {
|
|
99
101
|
autoHover: false,
|
|
100
102
|
getRef: getRef,
|
|
101
103
|
highlight: isHighlight,
|
|
@@ -113,10 +115,10 @@ export default class Suggestions extends React.PureComponent {
|
|
|
113
115
|
size: listItemSize,
|
|
114
116
|
palette: palette,
|
|
115
117
|
a11y: list_a11y
|
|
116
|
-
});
|
|
118
|
+
}));
|
|
117
119
|
}
|
|
118
120
|
|
|
119
|
-
return /*#__PURE__*/React.createElement(ListItem, {
|
|
121
|
+
return /*#__PURE__*/React.createElement(ListItem, _extends({}, commonProps, {
|
|
120
122
|
autoHover: false,
|
|
121
123
|
getRef: getRef,
|
|
122
124
|
highlight: isHighlight,
|
|
@@ -132,7 +134,7 @@ export default class Suggestions extends React.PureComponent {
|
|
|
132
134
|
size: listItemSize,
|
|
133
135
|
palette: palette,
|
|
134
136
|
a11y: list_a11y
|
|
135
|
-
});
|
|
137
|
+
}));
|
|
136
138
|
})));
|
|
137
139
|
}
|
|
138
140
|
|
|
@@ -109,7 +109,8 @@ export const MultiSelect_defaultProps = {
|
|
|
109
109
|
dataSelectorId: 'multiSelect',
|
|
110
110
|
keepSelectedOptions: false,
|
|
111
111
|
selectedOptionsCount: 0,
|
|
112
|
-
cardHeaderName: ''
|
|
112
|
+
cardHeaderName: '',
|
|
113
|
+
needResponsive: true
|
|
113
114
|
};
|
|
114
115
|
export const MultiSelectHeader_defaultProps = {
|
|
115
116
|
dataId: 'MultiSelectHeader'
|
|
@@ -143,7 +144,8 @@ export const MultiSelectWithAvatar_defaultProps = {
|
|
|
143
144
|
isLoading: false,
|
|
144
145
|
dataSelectorId: 'multiSelectWithAvatar',
|
|
145
146
|
keepSelectedOptions: false,
|
|
146
|
-
customProps: {}
|
|
147
|
+
customProps: {},
|
|
148
|
+
needResponsive: true
|
|
147
149
|
};
|
|
148
150
|
export const SelectedOptions_defaultProps = {
|
|
149
151
|
size: 'medium'
|
package/es/Popup/Popup.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import PropTypes from 'prop-types';
|
|
@@ -621,15 +623,14 @@ const Popup = function (Component) {
|
|
|
621
623
|
isPopupOpen
|
|
622
624
|
} = this.state;
|
|
623
625
|
const localState = isPopupReady ? this.state : {};
|
|
624
|
-
return /*#__PURE__*/React.createElement(Component, {
|
|
625
|
-
...this.state,
|
|
626
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, this.props, this.state, {
|
|
626
627
|
openPopupOnly: this.openPopupOnly,
|
|
627
628
|
closePopupOnly: this.closePopupOnly,
|
|
628
629
|
togglePopup: this.togglePopup,
|
|
629
630
|
removeClose: this.removeClose,
|
|
630
631
|
getTargetRef: this.getTargetRef,
|
|
631
632
|
getContainerRef: this.getContainerRef
|
|
632
|
-
});
|
|
633
|
+
}));
|
|
633
634
|
}
|
|
634
635
|
|
|
635
636
|
}
|
package/es/Radio/Radio.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
/* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium'] }] */
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { defaultProps } from './props/defaultProps';
|
|
@@ -71,7 +73,7 @@ export default class Radio extends React.Component {
|
|
|
71
73
|
ContainerProps = {},
|
|
72
74
|
LabelProps = {}
|
|
73
75
|
} = customProps;
|
|
74
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
76
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
75
77
|
dataId: value ? value.toLowerCase() : 'RadioComp',
|
|
76
78
|
isCover: false,
|
|
77
79
|
isInline: text ? false : true,
|
|
@@ -87,9 +89,8 @@ export default class Radio extends React.Component {
|
|
|
87
89
|
"aria-Hidden": ariaHidden,
|
|
88
90
|
"aria-label": ariaLabel,
|
|
89
91
|
"aria-labelledby": ariaLabelledby,
|
|
90
|
-
"aria-readonly": ariaReadonly
|
|
91
|
-
|
|
92
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
92
|
+
"aria-readonly": ariaReadonly
|
|
93
|
+
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
93
94
|
className: `${style.radio} ${checked ? `${style[`rdBox${palette}`]}` : ''}
|
|
94
95
|
${isReadOnly || disabled ? '' : `${style[`hover${palette}`]}`} ${style[size]} ${isFilled ? style.filled : ''} ${style[`centerPath${palette}`]} ${customRadio}`
|
|
95
96
|
}, /*#__PURE__*/React.createElement("input", {
|
|
@@ -115,7 +116,7 @@ export default class Radio extends React.Component {
|
|
|
115
116
|
}) : null))), text && /*#__PURE__*/React.createElement(Box, {
|
|
116
117
|
flexible: true,
|
|
117
118
|
className: style.text
|
|
118
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
119
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
119
120
|
text: text,
|
|
120
121
|
palette: labelPalette,
|
|
121
122
|
size: labelSize,
|
|
@@ -125,9 +126,8 @@ export default class Radio extends React.Component {
|
|
|
125
126
|
variant: variant,
|
|
126
127
|
title: toolTip ? toolTip : text,
|
|
127
128
|
customClass: `${checked && active ? `${style[`${palette}checkedActive`]}` : ''}
|
|
128
|
-
${style[`${palette}Label`]} ${accessMode} ${customLabel}
|
|
129
|
-
|
|
130
|
-
})), children);
|
|
129
|
+
${style[`${palette}Label`]} ${accessMode} ${customLabel}`
|
|
130
|
+
}, LabelProps))), children);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
}
|
|
@@ -1,104 +1,91 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* radio default variables */
|
|
3
|
-
--radio_width:
|
|
4
|
-
--radio_height:
|
|
3
|
+
--radio_width: var(--zd_size16);
|
|
4
|
+
--radio_height: var(--zd_size16);
|
|
5
5
|
--radio_bg_color: none;
|
|
6
6
|
--radio_stroke_width: 2px;
|
|
7
7
|
--radio_stroke_color: var(--zdt_radio_default_stroke);
|
|
8
8
|
--radio_fill: none;
|
|
9
9
|
--radio_inner_stroke_width: 0;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
}[dir=ltr] .varClass {
|
|
11
|
+
--radio_label_margin: 0 0 0 var(--zd_size6);
|
|
12
|
+
}[dir=rtl] .varClass {
|
|
13
|
+
--radio_label_margin: 0 var(--zd_size6) 0 0;
|
|
13
14
|
}
|
|
14
|
-
|
|
15
15
|
.container {
|
|
16
16
|
composes: varClass;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
18
|
.pointer {
|
|
20
19
|
cursor: pointer;
|
|
21
20
|
}
|
|
22
|
-
|
|
23
|
-
.readonly,
|
|
24
|
-
.disabled {
|
|
21
|
+
.readonly, .disabled {
|
|
25
22
|
cursor: not-allowed;
|
|
26
23
|
}
|
|
27
|
-
|
|
28
24
|
.disabled {
|
|
29
25
|
opacity: 0.7
|
|
30
26
|
}
|
|
31
|
-
|
|
32
27
|
.radio {
|
|
33
28
|
composes: offSelection from '../common/common.module.css';
|
|
34
29
|
width: var(--radio_width);
|
|
35
30
|
height: var(--radio_height);
|
|
31
|
+
stroke: var(--radio_stroke_color);
|
|
36
32
|
background: var(--radio_bg_color);
|
|
37
33
|
border-radius: 50%;
|
|
38
|
-
stroke: var(--radio_stroke_color);
|
|
39
34
|
}
|
|
40
|
-
|
|
41
35
|
.radio,
|
|
42
36
|
.centerPath {
|
|
43
37
|
fill: var(--radio_fill);
|
|
44
38
|
}
|
|
45
|
-
|
|
46
39
|
.filled {
|
|
47
|
-
--radio_bg_color: var(--
|
|
40
|
+
--radio_bg_color: var(--zdt_radio_default_bg);
|
|
48
41
|
}
|
|
49
42
|
|
|
50
43
|
.medium {
|
|
51
|
-
--radio_width:
|
|
52
|
-
--radio_height:
|
|
44
|
+
--radio_width: var(--zd_size16);
|
|
45
|
+
--radio_height: var(--zd_size16);
|
|
53
46
|
}
|
|
54
|
-
|
|
55
47
|
.small {
|
|
56
|
-
--radio_width:
|
|
57
|
-
--radio_height:
|
|
48
|
+
--radio_width: var(--zd_size13);
|
|
49
|
+
--radio_height: var(--zd_size13);
|
|
58
50
|
}
|
|
59
|
-
|
|
60
51
|
.radioLabel {
|
|
61
|
-
font-size: 0;
|
|
52
|
+
font-size: 0 ;
|
|
62
53
|
display: block;
|
|
63
54
|
}
|
|
64
|
-
|
|
65
55
|
.rdBox {
|
|
66
56
|
fill: none;
|
|
67
57
|
stroke-width: var(--radio_stroke_width);
|
|
68
58
|
stroke-linecap: round;
|
|
69
59
|
stroke: inherit;
|
|
70
60
|
}
|
|
71
|
-
|
|
72
61
|
.centerPath {
|
|
73
62
|
--radio_fill: inherit;
|
|
74
|
-
transform-origin: center;
|
|
75
63
|
stroke-width: var(--radio_inner_stroke_width);
|
|
64
|
+
transform-origin: center;
|
|
76
65
|
}
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
[dir=ltr] .checked .centerPath {
|
|
67
|
+
animation: circleAnimate var(--zd_transition3) ease forwards;
|
|
68
|
+
}
|
|
69
|
+
[dir=rtl] .checked .centerPath {
|
|
79
70
|
animation: circleAnimate var(--zd_transition3) ease forwards;
|
|
80
71
|
}
|
|
81
|
-
|
|
82
72
|
.rdBoxprimary,
|
|
83
73
|
.hoverEfffect:hover .hoverprimary
|
|
84
|
-
|
|
85
74
|
/* .hoverEfffect:focus .hoverprimary */
|
|
86
|
-
|
|
75
|
+
{
|
|
87
76
|
--radio_stroke_color: var(--zdt_radio_primary_stroke);
|
|
88
77
|
}
|
|
89
78
|
|
|
90
79
|
.rdBoxdanger,
|
|
91
80
|
.hoverEfffect:hover .hoverdanger
|
|
92
|
-
|
|
93
81
|
/* .hoverEfffect:focus .hoverdanger */
|
|
94
|
-
|
|
82
|
+
{
|
|
95
83
|
--radio_stroke_color: var(--zdt_radio_danger_stroke);
|
|
96
84
|
}
|
|
97
85
|
|
|
98
86
|
.centerPathprimary {
|
|
99
87
|
--radio_fill: var(--zdt_radio_primary_fill);
|
|
100
88
|
}
|
|
101
|
-
|
|
102
89
|
.centerPathdanger {
|
|
103
90
|
--radio_fill: var(--zdt_radio_danger_fill);
|
|
104
91
|
}
|
|
@@ -118,13 +105,11 @@
|
|
|
118
105
|
.text {
|
|
119
106
|
margin: var(--radio_label_margin);
|
|
120
107
|
}
|
|
121
|
-
|
|
122
108
|
@keyframes circleAnimate {
|
|
123
109
|
0% {
|
|
124
110
|
transform: scale(0);
|
|
125
111
|
}
|
|
126
|
-
|
|
127
112
|
100% {
|
|
128
113
|
transform: scale(1);
|
|
129
114
|
}
|
|
130
|
-
}
|
|
115
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React, { Component } from 'react';
|
|
2
4
|
import { defaultProps } from './props/defaultProps';
|
|
3
5
|
import { propTypes } from './props/propTypes';
|
|
@@ -43,9 +45,9 @@ export default class ResponsiveDropBox extends Component {
|
|
|
43
45
|
customMobileDropBoxWrap: `${customMobileDropBoxWrap}`,
|
|
44
46
|
customResponsiveContainer: `${customResponsiveContainer}`
|
|
45
47
|
};
|
|
46
|
-
return /*#__PURE__*/React.createElement(DropBox, {
|
|
48
|
+
return /*#__PURE__*/React.createElement(DropBox, _extends({}, this.props, {
|
|
47
49
|
customClass: dropBoxClasses
|
|
48
|
-
}, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
50
|
+
}), /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
49
51
|
query: this.responsiveFunc,
|
|
50
52
|
responsiveId: "Helmet"
|
|
51
53
|
}, _ref2 => {
|