@capillarytech/blaze-ui 0.1.6-alpha.46 → 0.1.6-alpha.48
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.
|
@@ -23,7 +23,7 @@ const CapUnifiedSelect = ({
|
|
|
23
23
|
style,
|
|
24
24
|
isError = false,
|
|
25
25
|
errorMessage,
|
|
26
|
-
|
|
26
|
+
popOverClassName,
|
|
27
27
|
allowClear = false,
|
|
28
28
|
headerLabel,
|
|
29
29
|
onUpload,
|
|
@@ -197,7 +197,7 @@ const CapUnifiedSelect = ({
|
|
|
197
197
|
);
|
|
198
198
|
}, [headerLabel, tooltip, bylineText, disabled]);
|
|
199
199
|
|
|
200
|
-
const renderDropdown =
|
|
200
|
+
const renderDropdown = useCallback(() => {
|
|
201
201
|
const currentItems = filteredTree;
|
|
202
202
|
const selectedCount = Array.isArray(tempValue)
|
|
203
203
|
? isTree
|
|
@@ -335,23 +335,25 @@ CapUnifiedSelect.propTypes = {
|
|
|
335
335
|
popupClassName: PropTypes.string,
|
|
336
336
|
showUpload: PropTypes.bool,
|
|
337
337
|
onUpload: PropTypes.func,
|
|
338
|
+
size: PropTypes.oneOf(['s', 'm', 'l', 'xl']),
|
|
338
339
|
};
|
|
339
340
|
|
|
340
341
|
CapUnifiedSelect.defaultProps = {
|
|
341
342
|
type: 'select',
|
|
342
|
-
options: [],
|
|
343
343
|
placeholder: 'Select an option',
|
|
344
|
+
searchBasedOn: 'label',
|
|
345
|
+
noResultCustomText: 'No results found',
|
|
346
|
+
noResultCustomIcon: 'warning',
|
|
347
|
+
options: [],
|
|
348
|
+
size: 'm',
|
|
344
349
|
allowClear: false,
|
|
345
350
|
customPopupRender: true,
|
|
346
351
|
showSearch: true,
|
|
347
|
-
searchBasedOn: 'label',
|
|
348
352
|
className: '',
|
|
349
353
|
popupClassName: '',
|
|
350
354
|
disabled: false,
|
|
351
355
|
showUpload: false,
|
|
352
356
|
isError: false,
|
|
353
|
-
noResultCustomText: 'No results found',
|
|
354
|
-
noResultCustomIcon: 'warning',
|
|
355
357
|
onUpload: () => {},
|
|
356
358
|
onChange: () => {},
|
|
357
359
|
onConfirm: () => {},
|
package/package.json
CHANGED