bianic-ui 1.16.0-alpha.3 → 1.16.0-alpha.5
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 -6
- package/dist/esm/index.js +6 -6
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2665,20 +2665,20 @@ var useLiveSearch = function (_a) {
|
|
|
2665
2665
|
};
|
|
2666
2666
|
|
|
2667
2667
|
function LiveSearch(_a) {
|
|
2668
|
-
var _b = _a.autoComplete, autoComplete = _b === void 0 ? 'off' : _b, _c = _a.children, children = _c === void 0 ? undefined : _c, descText = _a.descText, _d = _a.disabled, disabled = _d === void 0 ? false : _d,
|
|
2668
|
+
var _b = _a.autoComplete, autoComplete = _b === void 0 ? 'off' : _b, _c = _a.children, children = _c === void 0 ? undefined : _c, descText = _a.descText, _d = _a.disabled, disabled = _d === void 0 ? false : _d, dropContProps = _a.dropContProps, id = _a.id, label = _a.label, _e = _a.onChangeText, onChangeText = _e === void 0 ? function () { } : _e, _f = _a.onClickDropdown, onClickDropdown = _f === void 0 ? function () { } : _f, options = _a.options, placeholder = _a.placeholder, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.searchVariant, searchVariant = _j === void 0 ? 'include' : _j, setValue = _a.setValue, _k = _a.size, size = _k === void 0 ? 'md' : _k, value = _a.value;
|
|
2669
2669
|
var inputRef = React.useRef(null);
|
|
2670
2670
|
var dropdownContRef = React.useRef(null);
|
|
2671
|
-
var
|
|
2671
|
+
var _l = useLiveSearch({
|
|
2672
2672
|
value: value,
|
|
2673
2673
|
setValue: setValue,
|
|
2674
2674
|
onChangeText: onChangeText,
|
|
2675
2675
|
dropContOnClickItem: dropContProps.onClickItem
|
|
2676
|
-
}), isOpen =
|
|
2677
|
-
var
|
|
2678
|
-
var dropContClassName = dropContProps.className; dropContProps.onClickItem; var restDropContProps = __rest(dropContProps, ["className", "onClickItem"]);
|
|
2676
|
+
}), isOpen = _l.isOpen, setIsOpen = _l.setIsOpen, searchTerm = _l.searchTerm, handleInputChange = _l.handleInputChange, handleDropdownItemClick = _l.handleDropdownItemClick;
|
|
2677
|
+
var _m = sizeConfig$6[size], iconClass = _m.iconClass, iconSize = _m.iconSize, inputClass = _m.inputClass;
|
|
2678
|
+
var dropContClassName = dropContProps.className; dropContProps.onClickItem; dropContProps.anchorRef; var restDropContProps = __rest(dropContProps, ["className", "onClickItem", "anchorRef"]);
|
|
2679
2679
|
var isValueExist = value && value.label !== undefined && value.label !== '';
|
|
2680
2680
|
var filteredOptions = filterOptions(options || [], value.label);
|
|
2681
|
-
var
|
|
2681
|
+
var _o = processRenderedChildren(children, searchTerm, searchVariant, handleDropdownItemClick), renderedChildren = _o.renderedChildren, hasFilteredResults = _o.hasFilteredResults;
|
|
2682
2682
|
return (React.createElement("div", { className: "bianic-livesearch field-group group/form flex w-full flex-col gap-y-2 " },
|
|
2683
2683
|
label && (React.createElement(FormLabel, { htmlFor: id, required: required, readOnly: readOnly }, label)),
|
|
2684
2684
|
React.createElement("div", { className: "group relative w-full" },
|
package/dist/esm/index.js
CHANGED
|
@@ -2663,20 +2663,20 @@ var useLiveSearch = function (_a) {
|
|
|
2663
2663
|
};
|
|
2664
2664
|
|
|
2665
2665
|
function LiveSearch(_a) {
|
|
2666
|
-
var _b = _a.autoComplete, autoComplete = _b === void 0 ? 'off' : _b, _c = _a.children, children = _c === void 0 ? undefined : _c, descText = _a.descText, _d = _a.disabled, disabled = _d === void 0 ? false : _d,
|
|
2666
|
+
var _b = _a.autoComplete, autoComplete = _b === void 0 ? 'off' : _b, _c = _a.children, children = _c === void 0 ? undefined : _c, descText = _a.descText, _d = _a.disabled, disabled = _d === void 0 ? false : _d, dropContProps = _a.dropContProps, id = _a.id, label = _a.label, _e = _a.onChangeText, onChangeText = _e === void 0 ? function () { } : _e, _f = _a.onClickDropdown, onClickDropdown = _f === void 0 ? function () { } : _f, options = _a.options, placeholder = _a.placeholder, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.searchVariant, searchVariant = _j === void 0 ? 'include' : _j, setValue = _a.setValue, _k = _a.size, size = _k === void 0 ? 'md' : _k, value = _a.value;
|
|
2667
2667
|
var inputRef = useRef(null);
|
|
2668
2668
|
var dropdownContRef = useRef(null);
|
|
2669
|
-
var
|
|
2669
|
+
var _l = useLiveSearch({
|
|
2670
2670
|
value: value,
|
|
2671
2671
|
setValue: setValue,
|
|
2672
2672
|
onChangeText: onChangeText,
|
|
2673
2673
|
dropContOnClickItem: dropContProps.onClickItem
|
|
2674
|
-
}), isOpen =
|
|
2675
|
-
var
|
|
2676
|
-
var dropContClassName = dropContProps.className; dropContProps.onClickItem; var restDropContProps = __rest(dropContProps, ["className", "onClickItem"]);
|
|
2674
|
+
}), isOpen = _l.isOpen, setIsOpen = _l.setIsOpen, searchTerm = _l.searchTerm, handleInputChange = _l.handleInputChange, handleDropdownItemClick = _l.handleDropdownItemClick;
|
|
2675
|
+
var _m = sizeConfig$6[size], iconClass = _m.iconClass, iconSize = _m.iconSize, inputClass = _m.inputClass;
|
|
2676
|
+
var dropContClassName = dropContProps.className; dropContProps.onClickItem; dropContProps.anchorRef; var restDropContProps = __rest(dropContProps, ["className", "onClickItem", "anchorRef"]);
|
|
2677
2677
|
var isValueExist = value && value.label !== undefined && value.label !== '';
|
|
2678
2678
|
var filteredOptions = filterOptions(options || [], value.label);
|
|
2679
|
-
var
|
|
2679
|
+
var _o = processRenderedChildren(children, searchTerm, searchVariant, handleDropdownItemClick), renderedChildren = _o.renderedChildren, hasFilteredResults = _o.hasFilteredResults;
|
|
2680
2680
|
return (React.createElement("div", { className: "bianic-livesearch field-group group/form flex w-full flex-col gap-y-2 " },
|
|
2681
2681
|
label && (React.createElement(FormLabel, { htmlFor: id, required: required, readOnly: readOnly }, label)),
|
|
2682
2682
|
React.createElement("div", { className: "group relative w-full" },
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"@biaenergi:registry": "https://gitlab.com/api/v4/projects/50905269/packages/npm/"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.0-alpha.
|
|
6
|
+
"version": "1.16.0-alpha.5",
|
|
7
7
|
"description": "Design Language System develop by BIAENERGI",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"rollup": "rollup -c",
|