@zohodesk/components 1.0.0-alpha-212 → 1.0.0-alpha-216
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 +20 -1
- package/es/AppContainer/AppContainer.js +0 -1
- package/es/Appearance/dark/mode/darkMode.module.css +0 -8
- package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +12 -0
- package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +12 -0
- package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +12 -0
- package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +12 -0
- package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +12 -0
- package/es/Appearance/default/mode/defaultMode.module.css +0 -8
- package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +12 -0
- package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +12 -0
- package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +12 -0
- package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +12 -0
- package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +12 -0
- package/es/ListItem/ListItemWithAvatar.js +11 -3
- package/es/ListItem/ListItemWithIcon.js +12 -4
- package/es/MultiSelect/AdvancedMultiSelect.js +21 -9
- package/es/MultiSelect/MultiSelect.js +1 -1
- package/es/MultiSelect/Suggestions.js +11 -2
- package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +18 -3
- package/es/Select/GroupSelect.js +4 -4
- package/es/Select/Select.js +37 -10
- package/es/Select/docs/Select__default.docs.js +79 -0
- package/es/TextBox/TextBox.js +7 -4
- package/es/TextBoxIcon/TextBoxIcon.js +13 -4
- package/es/utils/Common.js +1 -1
- package/es/utils/dropDownUtils.js +12 -5
- package/lib/AppContainer/AppContainer.js +0 -2
- package/lib/Appearance/dark/mode/darkMode.module.css +0 -8
- package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +12 -0
- package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +12 -0
- package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +12 -0
- package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +12 -0
- package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +12 -0
- package/lib/Appearance/default/mode/defaultMode.module.css +0 -8
- package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +12 -0
- package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +12 -0
- package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +12 -0
- package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +12 -0
- package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +12 -0
- package/lib/ListItem/ListItemWithAvatar.js +9 -3
- package/lib/ListItem/ListItemWithIcon.js +11 -4
- package/lib/MultiSelect/AdvancedMultiSelect.js +20 -8
- package/lib/MultiSelect/MultiSelect.js +1 -1
- package/lib/MultiSelect/Suggestions.js +16 -2
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +18 -3
- package/lib/Select/GroupSelect.js +3 -3
- package/lib/Select/Select.js +37 -10
- package/lib/Select/docs/Select__default.docs.js +79 -0
- package/lib/TextBox/TextBox.js +6 -4
- package/lib/TextBoxIcon/TextBoxIcon.js +12 -4
- package/lib/utils/Common.js +1 -1
- package/lib/utils/dropDownUtils.js +13 -4
- package/package.json +3 -3
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
--zdt_avatar_default_border: var(--zdt_cta_grey_40_border);
|
|
18
18
|
--zdt_avatar_default_borderHover: var(--dot_border_slateGrey);
|
|
19
19
|
--zdt_avatar_default_boxshadow: rgba(0, 0, 0, 0.11);
|
|
20
|
-
--zdt_avatar_white_text: var(--dot_text_white);
|
|
21
20
|
--zdt_avatar_white_borderHover: var(--zdt_cta_grey_40_border);
|
|
22
21
|
--zdt_avatar_white_boxshadow: rgba(255, 255, 255, 0.14);
|
|
23
22
|
--zdt_avatar_secondary_bg: var(--dot_bg_black);
|
|
@@ -118,7 +117,6 @@
|
|
|
118
117
|
--zdt_label_danger_text: var(--dot_text_brightOrange);
|
|
119
118
|
--zdt_label_mandatory_text: var(--dot_text_brightRed);
|
|
120
119
|
--zdt_label_disable_text: var(--dot_inputDisable);
|
|
121
|
-
--zdt_label_dark_text: #d0d0d4;
|
|
122
120
|
|
|
123
121
|
/* tag */
|
|
124
122
|
--zdt_tag_default_text: var(--dot_text_black);
|
|
@@ -143,9 +141,6 @@
|
|
|
143
141
|
--zdt_tag_pure_border: var(--zd_border_smoke91);
|
|
144
142
|
--zdt_tag_pure_hover_bg: var(--zd_bg_smoke6);
|
|
145
143
|
--zdt_tag_pure_hover_border: var(--zd_border_dark6);
|
|
146
|
-
--zdt_tag_dark_text: #d0d0d4;
|
|
147
|
-
--zdt_tag_dark_close_bg: #864654;
|
|
148
|
-
--zdt_tag_dark_close_text: #de3535;
|
|
149
144
|
--zdt_tag_dark_close_hover_bg: #de3535;
|
|
150
145
|
|
|
151
146
|
/* textbox */
|
|
@@ -164,7 +159,6 @@
|
|
|
164
159
|
--zdt_dropdown_default_text: var(--dot_text_black);
|
|
165
160
|
--zdt_dropdown_default_border: var(--dot_border_mirror);
|
|
166
161
|
--zdt_dropdown_default_bg: var(--dot_bg_shuttleGrey);
|
|
167
|
-
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
168
162
|
--zdt_dropdown_darkheading_bg: #383f57;
|
|
169
163
|
--zdt_dropdown_darkheading_underline_bg: #565e72;
|
|
170
164
|
--zdt_dropdown_mirror_bg: var(--dot_bg_mirror);
|
|
@@ -193,7 +187,6 @@
|
|
|
193
187
|
--zdt_listitem_primary_bg: var(--dot_listItemActive);
|
|
194
188
|
--zdt_listitem_secondary_bg: var(--zdt_cta_primary_bg);
|
|
195
189
|
--zdt_listitem_secondary_text: var(--dot_text_white);
|
|
196
|
-
--zdt_listitem_dark_text: #d0d0d4;
|
|
197
190
|
|
|
198
191
|
/* ribbon */
|
|
199
192
|
--zdt_ribbon_default_text: var(--dot_text_black);
|
|
@@ -299,7 +292,6 @@
|
|
|
299
292
|
--zdt_multiselect_delete_bg: var(--dot_bg_mirror);
|
|
300
293
|
--zdt_multiselect_delete_hover_text: var(--dot_text_black);
|
|
301
294
|
--zdt_multiselect_darkdelete_text: #9c9fab;
|
|
302
|
-
--zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
|
|
303
295
|
--zdt_multiselect_box_bg: var(--dot_bg_white);
|
|
304
296
|
--zdt_multiselect_selectall_text: var(--zdt_cta_primary_text);
|
|
305
297
|
--zdt_multiselect_message_text: var(--dot_text_slateGrey);
|
|
@@ -14,18 +14,30 @@
|
|
|
14
14
|
|
|
15
15
|
/* listitem */
|
|
16
16
|
--zdt_listitem_dark_bg: #383f57;
|
|
17
|
+
--zdt_listitem_dark_text: #d0d0d4;
|
|
17
18
|
--zdt_listitem_dark_effect_bg: #444a61;
|
|
18
19
|
--zdt_listitem_dark_active_bg: #3b4d6d;
|
|
19
20
|
--zdt_listitem_dark_tickicon: #6cbbfc;
|
|
20
21
|
|
|
21
22
|
/* tag */
|
|
23
|
+
--zdt_tag_dark_text: #d0d0d4;
|
|
22
24
|
--zdt_tag_dark_bg: #42485f;
|
|
23
25
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
|
+
--zdt_tag_dark_close_bg: #864654;
|
|
27
|
+
--zdt_tag_dark_close_text: #de3535;
|
|
24
28
|
|
|
25
29
|
/* multiselect */
|
|
26
30
|
--zdt_multiselect_dark_border: #4b5168;
|
|
27
31
|
--zdt_multiselect_darkmsg_bg: #383f57;
|
|
32
|
+
--zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
|
|
28
33
|
|
|
29
34
|
/* avatar */
|
|
30
35
|
--zdt_avatar_white_border: var(--dot_border_shuttleGrey);
|
|
36
|
+
--zdt_avatar_white_text: var(--dot_text_white);
|
|
37
|
+
|
|
38
|
+
/* label */
|
|
39
|
+
--zdt_label_dark_text: #d0d0d4;
|
|
40
|
+
|
|
41
|
+
/* dropdown */
|
|
42
|
+
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
31
43
|
}
|
|
@@ -14,18 +14,30 @@
|
|
|
14
14
|
|
|
15
15
|
/* listitem */
|
|
16
16
|
--zdt_listitem_dark_bg: #1d2f33;
|
|
17
|
+
--zdt_listitem_dark_text: #d0d0d4;
|
|
17
18
|
--zdt_listitem_dark_effect_bg: rgba(255, 255, 255, 0.12);
|
|
18
19
|
--zdt_listitem_dark_active_bg: #2d484e;
|
|
19
20
|
--zdt_listitem_dark_tickicon: #4ac064;
|
|
20
21
|
|
|
21
22
|
/* tag */
|
|
23
|
+
--zdt_tag_dark_text: #d0d0d4;
|
|
22
24
|
--zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
|
|
23
25
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
|
+
--zdt_tag_dark_close_bg: #864654;
|
|
27
|
+
--zdt_tag_dark_close_text: #de3535;
|
|
24
28
|
|
|
25
29
|
/* multiselect */
|
|
26
30
|
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
27
31
|
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
32
|
+
--zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
|
|
28
33
|
|
|
29
34
|
/* avatar */
|
|
30
35
|
--zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
|
|
36
|
+
--zdt_avatar_white_text: var(--dot_text_white);
|
|
37
|
+
|
|
38
|
+
/* label */
|
|
39
|
+
--zdt_label_dark_text: #d0d0d4;
|
|
40
|
+
|
|
41
|
+
/* dropdown */
|
|
42
|
+
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
31
43
|
}
|
|
@@ -14,18 +14,30 @@
|
|
|
14
14
|
|
|
15
15
|
/* listitem */
|
|
16
16
|
--zdt_listitem_dark_bg: #332e24;
|
|
17
|
+
--zdt_listitem_dark_text: #d0d0d4;
|
|
17
18
|
--zdt_listitem_dark_effect_bg: rgba(255, 255, 255, 0.12);
|
|
18
19
|
--zdt_listitem_dark_active_bg: #4b4335;
|
|
19
20
|
--zdt_listitem_dark_tickicon: #ff6363;
|
|
20
21
|
|
|
21
22
|
/* tag */
|
|
23
|
+
--zdt_tag_dark_text: #d0d0d4;
|
|
22
24
|
--zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
|
|
23
25
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
|
+
--zdt_tag_dark_close_bg: #864654;
|
|
27
|
+
--zdt_tag_dark_close_text: #de3535;
|
|
24
28
|
|
|
25
29
|
/* multiselect */
|
|
26
30
|
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
27
31
|
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
32
|
+
--zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
|
|
28
33
|
|
|
29
34
|
/* avatar */
|
|
30
35
|
--zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
|
|
36
|
+
--zdt_avatar_white_text: var(--dot_text_white);
|
|
37
|
+
|
|
38
|
+
/* label */
|
|
39
|
+
--zdt_label_dark_text: #d0d0d4;
|
|
40
|
+
|
|
41
|
+
/* dropdown */
|
|
42
|
+
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
31
43
|
}
|
|
@@ -14,18 +14,30 @@
|
|
|
14
14
|
|
|
15
15
|
/* listitem */
|
|
16
16
|
--zdt_listitem_dark_bg: #34222d;
|
|
17
|
+
--zdt_listitem_dark_text: #d0d0d4;
|
|
17
18
|
--zdt_listitem_dark_effect_bg: rgba(255, 255, 255, 0.12);
|
|
18
19
|
--zdt_listitem_dark_active_bg: #4d3243;
|
|
19
20
|
--zdt_listitem_dark_tickicon: #e57717;
|
|
20
21
|
|
|
21
22
|
/* tag */
|
|
23
|
+
--zdt_tag_dark_text: #d0d0d4;
|
|
22
24
|
--zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
|
|
23
25
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
|
+
--zdt_tag_dark_close_bg: #864654;
|
|
27
|
+
--zdt_tag_dark_close_text: #de3535;
|
|
24
28
|
|
|
25
29
|
/* multiselect */
|
|
26
30
|
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
27
31
|
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
32
|
+
--zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
|
|
28
33
|
|
|
29
34
|
/* avatar */
|
|
30
35
|
--zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
|
|
36
|
+
--zdt_avatar_white_text: var(--dot_text_white);
|
|
37
|
+
|
|
38
|
+
/* label */
|
|
39
|
+
--zdt_label_dark_text: #d0d0d4;
|
|
40
|
+
|
|
41
|
+
/* dropdown */
|
|
42
|
+
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
31
43
|
}
|
|
@@ -14,18 +14,30 @@
|
|
|
14
14
|
|
|
15
15
|
/* listitem */
|
|
16
16
|
--zdt_listitem_dark_bg: #313323;
|
|
17
|
+
--zdt_listitem_dark_text: #d0d0d4;
|
|
17
18
|
--zdt_listitem_dark_effect_bg: rgba(255, 255, 255, 0.12);
|
|
18
19
|
--zdt_listitem_dark_active_bg: #494c34;
|
|
19
20
|
--zdt_listitem_dark_tickicon: #e8b923;
|
|
20
21
|
|
|
21
22
|
/* tag */
|
|
23
|
+
--zdt_tag_dark_text: #d0d0d4;
|
|
22
24
|
--zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
|
|
23
25
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
|
+
--zdt_tag_dark_close_bg: #864654;
|
|
27
|
+
--zdt_tag_dark_close_text: #de3535;
|
|
24
28
|
|
|
25
29
|
/* multiselect */
|
|
26
30
|
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
27
31
|
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
32
|
+
--zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
|
|
28
33
|
|
|
29
34
|
/* avatar */
|
|
30
35
|
--zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
|
|
36
|
+
--zdt_avatar_white_text: var(--dot_text_white);
|
|
37
|
+
|
|
38
|
+
/* label */
|
|
39
|
+
--zdt_label_dark_text: #d0d0d4;
|
|
40
|
+
|
|
41
|
+
/* dropdown */
|
|
42
|
+
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
31
43
|
}
|
|
@@ -121,7 +121,10 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
121
121
|
needAvatarTitle = _this$props4.needAvatarTitle,
|
|
122
122
|
avatarPalette = _this$props4.avatarPalette,
|
|
123
123
|
a11y = _this$props4.a11y,
|
|
124
|
-
customClass = _this$props4.customClass
|
|
124
|
+
customClass = _this$props4.customClass,
|
|
125
|
+
customProps = _this$props4.customProps;
|
|
126
|
+
var _customProps$ListItem = customProps.ListItemProps,
|
|
127
|
+
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem;
|
|
125
128
|
var _customClass$customLi = customClass.customListItem,
|
|
126
129
|
customListItem = _customClass$customLi === void 0 ? '' : _customClass$customLi,
|
|
127
130
|
_customClass$customAv = customClass.customAvatar,
|
|
@@ -157,7 +160,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
157
160
|
tagName: "li",
|
|
158
161
|
dataId: "".concat(dataIdString, "_ListItemWithAvatar"),
|
|
159
162
|
"data-title": isDisabled ? disableTitle : null
|
|
160
|
-
}, options), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
163
|
+
}, options, ListItemProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
161
164
|
className: _ListItemModule["default"].leftAvatar
|
|
162
165
|
}, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], {
|
|
163
166
|
name: name,
|
|
@@ -212,7 +215,8 @@ ListItemWithAvatar.defaultProps = {
|
|
|
212
215
|
needBorder: true,
|
|
213
216
|
needAvatarTitle: true,
|
|
214
217
|
a11y: {},
|
|
215
|
-
customClass: {}
|
|
218
|
+
customClass: {},
|
|
219
|
+
customProps: {}
|
|
216
220
|
};
|
|
217
221
|
ListItemWithAvatar.propTypes = (_ListItemWithAvatar$p = {
|
|
218
222
|
active: _propTypes["default"].bool,
|
|
@@ -226,6 +230,8 @@ ListItemWithAvatar.propTypes = (_ListItemWithAvatar$p = {
|
|
|
226
230
|
customListItem: _propTypes["default"].string,
|
|
227
231
|
customAvatar: _propTypes["default"].string,
|
|
228
232
|
customAvatarTeam: _propTypes["default"].string
|
|
233
|
+
})), _defineProperty(_ListItemWithAvatar$p, "customProps", _propTypes["default"].shape({
|
|
234
|
+
ListItemProps: _propTypes["default"].object
|
|
229
235
|
})), _ListItemWithAvatar$p);
|
|
230
236
|
|
|
231
237
|
if (false) {
|
|
@@ -110,7 +110,10 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
110
110
|
isDisabled = _this$props4.isDisabled,
|
|
111
111
|
disableTitle = _this$props4.disableTitle,
|
|
112
112
|
a11y = _this$props4.a11y,
|
|
113
|
-
customClass = _this$props4.customClass
|
|
113
|
+
customClass = _this$props4.customClass,
|
|
114
|
+
customProps = _this$props4.customProps;
|
|
115
|
+
var _customProps$ListItem = customProps.ListItemProps,
|
|
116
|
+
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem;
|
|
114
117
|
var role = a11y.role,
|
|
115
118
|
ariaSelected = a11y.ariaSelected,
|
|
116
119
|
_a11y$ariaHidden = a11y.ariaHidden,
|
|
@@ -139,7 +142,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
|
139
142
|
eleRef: this.getRef,
|
|
140
143
|
tagName: "li",
|
|
141
144
|
"data-title": isDisabled ? disableTitle : null
|
|
142
|
-
}, options), iconName && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
145
|
+
}, options, ListItemProps), iconName && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
143
146
|
"aria-hidden": true,
|
|
144
147
|
className: _ListItemModule["default"].iconBox,
|
|
145
148
|
dataId: dataId ? "".concat(dataId, "_Icon") : "".concat(value.toLowerCase().replace("'", '_'), "_Icon")
|
|
@@ -182,7 +185,8 @@ ListItemWithIcon.defaultProps = {
|
|
|
182
185
|
value: 'List',
|
|
183
186
|
needBorder: true,
|
|
184
187
|
a11y: {},
|
|
185
|
-
customClass: ''
|
|
188
|
+
customClass: '',
|
|
189
|
+
customProps: {}
|
|
186
190
|
};
|
|
187
191
|
ListItemWithIcon.propTypes = {
|
|
188
192
|
active: _propTypes["default"].bool,
|
|
@@ -210,7 +214,10 @@ ListItemWithIcon.propTypes = {
|
|
|
210
214
|
ariaSelected: _propTypes["default"].bool,
|
|
211
215
|
ariaHidden: _propTypes["default"].bool
|
|
212
216
|
}),
|
|
213
|
-
customClass: _propTypes["default"].string
|
|
217
|
+
customClass: _propTypes["default"].string,
|
|
218
|
+
customProps: _propTypes["default"].shape({
|
|
219
|
+
ListItemProps: _propTypes["default"].object
|
|
220
|
+
})
|
|
214
221
|
};
|
|
215
222
|
|
|
216
223
|
if (false) {
|
|
@@ -47,6 +47,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
47
47
|
|
|
48
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
49
49
|
|
|
50
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
51
|
+
|
|
50
52
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
51
53
|
|
|
52
54
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -131,7 +133,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
131
133
|
var _this$getFilterSugges = this.getFilterSuggestions({
|
|
132
134
|
options: options,
|
|
133
135
|
selectedOptions: dummyArray,
|
|
134
|
-
searchStr:
|
|
136
|
+
searchStr: (0, _Common.getSearchString)(searchStr),
|
|
135
137
|
needSearch: needLocalSearch
|
|
136
138
|
}),
|
|
137
139
|
suggestions = _this$getFilterSugges.suggestions,
|
|
@@ -408,7 +410,12 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
408
410
|
a11y = _this$props5.a11y,
|
|
409
411
|
borderColor = _this$props5.borderColor,
|
|
410
412
|
isBoxPaddingNeed = _this$props5.isBoxPaddingNeed,
|
|
411
|
-
getFooter = _this$props5.getFooter
|
|
413
|
+
getFooter = _this$props5.getFooter,
|
|
414
|
+
customProps = _this$props5.customProps;
|
|
415
|
+
var _customProps$Suggesti = customProps.SuggestionsProps,
|
|
416
|
+
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti,
|
|
417
|
+
_customProps$DropBoxP = customProps.DropBoxProps,
|
|
418
|
+
DropBoxProps = _customProps$DropBoxP === void 0 ? {} : _customProps$DropBoxP;
|
|
412
419
|
var _i18nKeys = i18nKeys,
|
|
413
420
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
414
421
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
@@ -492,7 +499,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
492
499
|
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
493
500
|
name: "ZD-delete",
|
|
494
501
|
size: "15"
|
|
495
|
-
})) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
502
|
+
})) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], _extends({
|
|
496
503
|
animationStyle: animationStyle,
|
|
497
504
|
boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
|
|
498
505
|
getRef: getContainerRef,
|
|
@@ -507,7 +514,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
507
514
|
role: 'listbox',
|
|
508
515
|
ariaMultiselectable: true
|
|
509
516
|
}
|
|
510
|
-
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
517
|
+
}, DropBoxProps), /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
511
518
|
customClass: _AdvancedMultiSelectModule["default"].box,
|
|
512
519
|
onScroll: this.handleScroll
|
|
513
520
|
}, /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
@@ -519,7 +526,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
519
526
|
})), /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
520
527
|
customClass: dropBoxSize ? _AdvancedMultiSelectModule["default"][dropBoxSize] : '',
|
|
521
528
|
eleRef: this.suggestionContainerRef
|
|
522
|
-
}, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
529
|
+
}, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
523
530
|
suggestions: suggestions,
|
|
524
531
|
selectedOptions: allselectedOptionIds,
|
|
525
532
|
getRef: this.suggestionItemRef,
|
|
@@ -531,7 +538,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
531
538
|
a11y: {
|
|
532
539
|
role: 'option'
|
|
533
540
|
}
|
|
534
|
-
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
541
|
+
}, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
535
542
|
isLoading: isFetchingOptions,
|
|
536
543
|
options: options,
|
|
537
544
|
searchString: searchStr,
|
|
@@ -623,7 +630,11 @@ AdvancedMultiSelectComponent.propTypes = {
|
|
|
623
630
|
isBoxPaddingNeed: _propTypes["default"].bool,
|
|
624
631
|
isSearchClearOnSelect: _propTypes["default"].bool,
|
|
625
632
|
disabledOptions: _propTypes["default"].arrayOf(_propTypes["default"].string),
|
|
626
|
-
getFooter: _propTypes["default"].func
|
|
633
|
+
getFooter: _propTypes["default"].func,
|
|
634
|
+
customProps: _propTypes["default"].shape({
|
|
635
|
+
SuggestionsProps: _propTypes["default"].object,
|
|
636
|
+
DropBoxProps: _propTypes["default"].object
|
|
637
|
+
})
|
|
627
638
|
};
|
|
628
639
|
AdvancedMultiSelectComponent.defaultProps = {
|
|
629
640
|
animationStyle: 'bounce',
|
|
@@ -650,7 +661,8 @@ AdvancedMultiSelectComponent.defaultProps = {
|
|
|
650
661
|
a11y: {},
|
|
651
662
|
borderColor: 'default',
|
|
652
663
|
isBoxPaddingNeed: true,
|
|
653
|
-
isSearchClearOnSelect: true
|
|
664
|
+
isSearchClearOnSelect: true,
|
|
665
|
+
customProps: {}
|
|
654
666
|
};
|
|
655
667
|
AdvancedMultiSelectComponent.displayName = 'AdvancedMultiSelect';
|
|
656
668
|
var AdvancedMultiSelect = (0, _Popup["default"])(AdvancedMultiSelectComponent);
|
|
@@ -335,7 +335,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
335
335
|
var _this$getFilterSugges = this.getFilterSuggestions({
|
|
336
336
|
options: options,
|
|
337
337
|
selectedOptions: selectedOptions,
|
|
338
|
-
searchStr:
|
|
338
|
+
searchStr: (0, _Common.getSearchString)(searchStr),
|
|
339
339
|
needSearch: needLocalSearch
|
|
340
340
|
}),
|
|
341
341
|
suggestions = _this$getFilterSugges.suggestions,
|
|
@@ -23,6 +23,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
23
23
|
|
|
24
24
|
function _extends() { _extends = Object.assign || 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); }
|
|
25
25
|
|
|
26
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
+
|
|
28
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
29
|
+
|
|
30
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
+
|
|
26
32
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
33
|
|
|
28
34
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -94,7 +100,8 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
94
100
|
icon = suggestion.icon,
|
|
95
101
|
optionType = suggestion.optionType,
|
|
96
102
|
iconSize = suggestion.iconSize,
|
|
97
|
-
isDisabled = suggestion.isDisabled
|
|
103
|
+
isDisabled = suggestion.isDisabled,
|
|
104
|
+
listItemProps = suggestion.listItemProps;
|
|
98
105
|
var isActive = activeId === id || selectedOptions.indexOf(id) >= 0;
|
|
99
106
|
var isHighlight = hoverOption === index || id === hoverId ? true : false;
|
|
100
107
|
var list_a11y = Object.assign({}, a11y, {
|
|
@@ -104,6 +111,12 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
104
111
|
isDisabled: isDisabled
|
|
105
112
|
};
|
|
106
113
|
|
|
114
|
+
if (listItemProps) {
|
|
115
|
+
commonProps.customProps = {
|
|
116
|
+
'ListItemProps': _objectSpread({}, listItemProps)
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
107
120
|
if (optionType === 'avatar') {
|
|
108
121
|
return /*#__PURE__*/_react["default"].createElement(_ListItemWithAvatar["default"], _extends({}, commonProps, {
|
|
109
122
|
autoHover: false,
|
|
@@ -197,7 +210,8 @@ Suggestions.propTypes = {
|
|
|
197
210
|
value: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
198
211
|
photoURL: _propTypes["default"].string,
|
|
199
212
|
logo: _propTypes["default"].string,
|
|
200
|
-
optionType: _propTypes["default"].string
|
|
213
|
+
optionType: _propTypes["default"].string,
|
|
214
|
+
listItemProps: _propTypes["default"].object
|
|
201
215
|
}))
|
|
202
216
|
};
|
|
203
217
|
Suggestions.defaultProps = {
|
|
@@ -51,10 +51,20 @@ var AdvancedMultiSelect__default = /*#__PURE__*/function (_Component) {
|
|
|
51
51
|
_this.state = {
|
|
52
52
|
options: [{
|
|
53
53
|
id: 2,
|
|
54
|
-
text: 'text2'
|
|
54
|
+
text: 'text2',
|
|
55
|
+
listItemProps: {
|
|
56
|
+
style: {
|
|
57
|
+
color: 'red'
|
|
58
|
+
}
|
|
59
|
+
}
|
|
55
60
|
}, {
|
|
56
61
|
id: 3,
|
|
57
|
-
text: 'text3'
|
|
62
|
+
text: 'text3',
|
|
63
|
+
listItemProps: {
|
|
64
|
+
style: {
|
|
65
|
+
color: 'blue'
|
|
66
|
+
}
|
|
67
|
+
}
|
|
58
68
|
}, {
|
|
59
69
|
id: 4,
|
|
60
70
|
text: 'text4'
|
|
@@ -132,7 +142,12 @@ var AdvancedMultiSelect__default = /*#__PURE__*/function (_Component) {
|
|
|
132
142
|
noMoreText: 'No More Options .',
|
|
133
143
|
searchEmptyText: 'No Matches Found .'
|
|
134
144
|
},
|
|
135
|
-
getFooter: this.getFooter
|
|
145
|
+
getFooter: this.getFooter,
|
|
146
|
+
customProps: {
|
|
147
|
+
SuggestionsProps: {
|
|
148
|
+
needBorder: false
|
|
149
|
+
}
|
|
150
|
+
}
|
|
136
151
|
});
|
|
137
152
|
}
|
|
138
153
|
}]);
|
|
@@ -283,7 +283,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
283
283
|
allOptionIds = _this$state2.allOptionIds;
|
|
284
284
|
|
|
285
285
|
if (needSearch && searchStr && searchStr.trim().length) {
|
|
286
|
-
searchStr =
|
|
286
|
+
searchStr = (0, _Common.getSearchString)(searchStr);
|
|
287
287
|
|
|
288
288
|
var _this$getFilterSugges = this.getFilterSuggestions({
|
|
289
289
|
revampedGroups: revampedGroups,
|
|
@@ -320,8 +320,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
320
320
|
var _this$state$searchStr = this.state.searchStr,
|
|
321
321
|
searchStr = _this$state$searchStr === void 0 ? '' : _this$state$searchStr;
|
|
322
322
|
var onSearch = this.props.onSearch;
|
|
323
|
-
var searchStrRegex =
|
|
324
|
-
var valueStrRegex =
|
|
323
|
+
var searchStrRegex = (0, _Common.getSearchString)(searchStr);
|
|
324
|
+
var valueStrRegex = (0, _Common.getSearchString)(value);
|
|
325
325
|
var isSearch = searchStrRegex !== valueStrRegex ? true : false;
|
|
326
326
|
this.setState({
|
|
327
327
|
searchStr: value,
|
package/lib/Select/Select.js
CHANGED
|
@@ -43,6 +43,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
43
43
|
|
|
44
44
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
45
45
|
|
|
46
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
47
|
+
|
|
46
48
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
47
49
|
|
|
48
50
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -292,11 +294,15 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
292
294
|
value: function handleFormatOptions(props) {
|
|
293
295
|
var options = props.options,
|
|
294
296
|
valueField = props.valueField,
|
|
295
|
-
textField = props.textField
|
|
297
|
+
textField = props.textField,
|
|
298
|
+
customProps = props.customProps;
|
|
299
|
+
var _customProps$listItem = customProps.listItemProps,
|
|
300
|
+
listItemProps = _customProps$listItem === void 0 ? {} : _customProps$listItem;
|
|
296
301
|
return this.formatOptions({
|
|
297
302
|
options: options,
|
|
298
303
|
valueField: valueField,
|
|
299
|
-
textField: textField
|
|
304
|
+
textField: textField,
|
|
305
|
+
listItemProps: listItemProps
|
|
300
306
|
});
|
|
301
307
|
}
|
|
302
308
|
}, {
|
|
@@ -729,7 +735,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
729
735
|
i18nKeys = _this$props11.i18nKeys,
|
|
730
736
|
htmlId = _this$props11.htmlId,
|
|
731
737
|
children = _this$props11.children,
|
|
732
|
-
iconOnHover = _this$props11.iconOnHover
|
|
738
|
+
iconOnHover = _this$props11.iconOnHover,
|
|
739
|
+
customProps = _this$props11.customProps;
|
|
733
740
|
var _i18nKeys = i18nKeys,
|
|
734
741
|
TextBoxIcon_i18n = _i18nKeys.TextBoxIcon_i18n,
|
|
735
742
|
_i18nKeys$TextBox_all = _i18nKeys.TextBox_ally_label,
|
|
@@ -748,6 +755,12 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
748
755
|
var suggestions = this.handleFilterSuggestions();
|
|
749
756
|
var setAriaId = this.getNextAriaId();
|
|
750
757
|
var ariaErrorId = this.getNextAriaId();
|
|
758
|
+
var _customProps$TextBoxP = customProps.TextBoxProps,
|
|
759
|
+
TextBoxProps = _customProps$TextBoxP === void 0 ? {} : _customProps$TextBoxP,
|
|
760
|
+
_customProps$Dropdown = customProps.DropdownSearchTextBoxProps,
|
|
761
|
+
DropdownSearchTextBoxProps = _customProps$Dropdown === void 0 ? {} : _customProps$Dropdown,
|
|
762
|
+
_customProps$Suggesti = customProps.SuggestionsProps,
|
|
763
|
+
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
|
|
751
764
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
752
765
|
className: "".concat(isParentBased || isReadOnly || isDisabled ? _SelectModule["default"].container : '', " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : '', " ").concat(iconOnHover && (isReadOnly || isDisabled) ? _SelectModule["default"].iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? _SelectModule["default"].iconOnHoverStyle : ''),
|
|
753
766
|
"data-title": isDisabled ? title : ''
|
|
@@ -790,7 +803,10 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
790
803
|
borderColor: borderColor,
|
|
791
804
|
htmlId: htmlId,
|
|
792
805
|
isFocus: isPopupReady,
|
|
793
|
-
autoComplete: false
|
|
806
|
+
autoComplete: false,
|
|
807
|
+
customProps: {
|
|
808
|
+
TextBoxProps: TextBoxProps
|
|
809
|
+
}
|
|
794
810
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
795
811
|
alignBox: "row",
|
|
796
812
|
align: "both"
|
|
@@ -835,7 +851,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
835
851
|
borderColor: borderColor,
|
|
836
852
|
htmlId: htmlId,
|
|
837
853
|
autoComplete: false,
|
|
838
|
-
isFocus: isPopupReady
|
|
854
|
+
isFocus: isPopupReady,
|
|
855
|
+
customProps: TextBoxProps
|
|
839
856
|
})), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
840
857
|
animationStyle: animationStyle,
|
|
841
858
|
boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
|
|
@@ -868,11 +885,14 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
868
885
|
onClear: this.handleClearSearch,
|
|
869
886
|
dataId: "".concat(dataId, "_search"),
|
|
870
887
|
i18nKeys: TextBoxIcon_i18n,
|
|
871
|
-
autoComplete: false
|
|
888
|
+
autoComplete: false,
|
|
889
|
+
customProps: {
|
|
890
|
+
TextBoxProps: DropdownSearchTextBoxProps
|
|
891
|
+
}
|
|
872
892
|
}))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
873
893
|
customClass: dropBoxSize ? _SelectModule["default"][dropBoxSize] : '',
|
|
874
894
|
eleRef: this.suggestionContainerRef
|
|
875
|
-
}, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
895
|
+
}, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
876
896
|
activeId: selectedId,
|
|
877
897
|
suggestions: suggestions,
|
|
878
898
|
getRef: this.suggestionItemRef,
|
|
@@ -890,7 +910,7 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
890
910
|
ariaParentRole: 'listbox',
|
|
891
911
|
role: 'option'
|
|
892
912
|
}
|
|
893
|
-
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
913
|
+
}, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
894
914
|
isLoading: isFetchingOptions,
|
|
895
915
|
options: options,
|
|
896
916
|
searchString: searchStr,
|
|
@@ -984,7 +1004,13 @@ SelectComponent.propTypes = {
|
|
|
984
1004
|
htmlId: _propTypes["default"].string,
|
|
985
1005
|
children: _propTypes["default"].node,
|
|
986
1006
|
onFocus: _propTypes["default"].func,
|
|
987
|
-
iconOnHover: _propTypes["default"].bool
|
|
1007
|
+
iconOnHover: _propTypes["default"].bool,
|
|
1008
|
+
customProps: _propTypes["default"].shape({
|
|
1009
|
+
TextBoxProps: _propTypes["default"].object,
|
|
1010
|
+
DropdownSearchTextBoxProps: _propTypes["default"].object,
|
|
1011
|
+
listItemProps: _propTypes["default"].object,
|
|
1012
|
+
SuggestionsProps: _propTypes["default"].object
|
|
1013
|
+
})
|
|
988
1014
|
};
|
|
989
1015
|
SelectComponent.defaultProps = {
|
|
990
1016
|
animationStyle: 'bounce',
|
|
@@ -1016,7 +1042,8 @@ SelectComponent.defaultProps = {
|
|
|
1016
1042
|
isParentBased: true,
|
|
1017
1043
|
isSearchClearOnClose: true,
|
|
1018
1044
|
i18nKeys: {},
|
|
1019
|
-
iconOnHover: false
|
|
1045
|
+
iconOnHover: false,
|
|
1046
|
+
customProps: {}
|
|
1020
1047
|
};
|
|
1021
1048
|
SelectComponent.displayName = 'Select';
|
|
1022
1049
|
var Select = (0, _Popup["default"])(SelectComponent);
|