bianic-ui 1.15.0-beta.0 → 1.15.0-beta.2
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/dist/cjs/index.js +6 -3
- package/dist/cjs/lib.css +1 -1
- package/dist/cjs/types/components/Forms/LiveSearch/Example/CustomDropdown.d.ts +4 -0
- package/dist/cjs/types/components/Forms/LiveSearch/Example/OverflowContainerTest.d.ts +3 -0
- package/dist/cjs/types/stories/Form/LiveSearch/LivesearchCustomDropdownExample.stories.d.ts +1 -1
- package/dist/cjs/types/stories/Form/LiveSearch/LivesearchOverflowTest.stories.d.ts +12 -0
- package/dist/esm/index.js +6 -3
- package/dist/esm/lib.css +1 -1
- package/dist/esm/types/components/Forms/LiveSearch/Example/CustomDropdown.d.ts +4 -0
- package/dist/esm/types/components/Forms/LiveSearch/Example/OverflowContainerTest.d.ts +3 -0
- package/dist/esm/types/stories/Form/LiveSearch/LivesearchCustomDropdownExample.stories.d.ts +1 -1
- package/dist/esm/types/stories/Form/LiveSearch/LivesearchOverflowTest.stories.d.ts +12 -0
- package/package.json +1 -1
- package/dist/cjs/types/components/Forms/LiveSearch/Example/LiveSearchCustomDropdown.d.ts +0 -3
- package/dist/esm/types/components/Forms/LiveSearch/Example/LiveSearchCustomDropdown.d.ts +0 -3
package/dist/cjs/index.js
CHANGED
|
@@ -2525,7 +2525,7 @@ function LiveSearch(_a) {
|
|
|
2525
2525
|
var _m = React.useState(false), isOpen = _m[0], setIsOpen = _m[1];
|
|
2526
2526
|
var _o = React.useState(value.label || ''), searchTerm = _o[0], setSearchTerm = _o[1];
|
|
2527
2527
|
var _p = sizeConfig$6[size], iconClass = _p.iconClass, iconSize = _p.iconSize, inputClass = _p.inputClass;
|
|
2528
|
-
var dropContClassName = dropContProps.className, restDropContProps = __rest(dropContProps, ["className"]);
|
|
2528
|
+
var dropContClassName = dropContProps.className, dropContOnClickItem = dropContProps.onClickItem, restDropContProps = __rest(dropContProps, ["className", "onClickItem"]);
|
|
2529
2529
|
var isValueExist = value && value.label !== undefined && value.label !== '';
|
|
2530
2530
|
var inputRef = React.useRef(null);
|
|
2531
2531
|
var dropdownContRef = React.useRef(null);
|
|
@@ -2593,8 +2593,11 @@ function LiveSearch(_a) {
|
|
|
2593
2593
|
label: itemValue !== undefined ? itemValue : itemContent
|
|
2594
2594
|
});
|
|
2595
2595
|
}
|
|
2596
|
-
if (
|
|
2597
|
-
|
|
2596
|
+
if (dropContOnClickItem) {
|
|
2597
|
+
dropContOnClickItem(e, itemValue !== undefined ? itemValue : itemContent);
|
|
2598
|
+
}
|
|
2599
|
+
if (itemProps.onClickItem) {
|
|
2600
|
+
itemProps.onClickItem(e, itemValue !== undefined ? itemValue : itemContent);
|
|
2598
2601
|
}
|
|
2599
2602
|
},
|
|
2600
2603
|
children: clonedChildren
|