bianic-ui 1.16.0-alpha.7 → 1.16.0-alpha.9
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 +5 -3
- package/dist/esm/index.js +5 -3
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2520,6 +2520,8 @@ var DropdownContainer = function (propsComp) {
|
|
|
2520
2520
|
if (!(anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current)) {
|
|
2521
2521
|
return {};
|
|
2522
2522
|
}
|
|
2523
|
+
console.log('anchorRef current', anchorRef.current);
|
|
2524
|
+
console.log('positionStyle', positionStyle);
|
|
2523
2525
|
return __assign({ zIndex: zIndex + 10, minWidth: (anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current)
|
|
2524
2526
|
? (_a = anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth
|
|
2525
2527
|
: undefined }, positionStyle);
|
|
@@ -2701,13 +2703,13 @@ function LiveSearch(_a) {
|
|
|
2701
2703
|
value: value,
|
|
2702
2704
|
setValue: setValue,
|
|
2703
2705
|
onChangeText: onChangeText,
|
|
2704
|
-
dropContOnClickItem: dropContProps.onClickItem
|
|
2706
|
+
dropContOnClickItem: dropContProps === null || dropContProps === void 0 ? void 0 : dropContProps.onClickItem
|
|
2705
2707
|
}), isOpen = _l.isOpen, setIsOpen = _l.setIsOpen, searchTerm = _l.searchTerm, handleInputChange = _l.handleInputChange, handleDropdownItemClick = _l.handleDropdownItemClick;
|
|
2706
2708
|
var _m = sizeConfig$6[size], iconClass = _m.iconClass, iconSize = _m.iconSize, inputClass = _m.inputClass;
|
|
2707
|
-
var dropContClassName =
|
|
2709
|
+
var _o = dropContProps || {}, dropContClassName = _o.className; _o.onClickItem; _o.anchorRef; var restDropContProps = __rest(_o, ["className", "onClickItem", "anchorRef"]);
|
|
2708
2710
|
var isValueExist = value && value.label !== undefined && value.label !== '';
|
|
2709
2711
|
var filteredOptions = filterOptions(options || [], value.label);
|
|
2710
|
-
var
|
|
2712
|
+
var _p = processRenderedChildren(children, searchTerm, searchVariant, handleDropdownItemClick), renderedChildren = _p.renderedChildren, hasFilteredResults = _p.hasFilteredResults;
|
|
2711
2713
|
return (React.createElement("div", { className: "bianic-livesearch field-group group/form flex w-full flex-col gap-y-2 " },
|
|
2712
2714
|
label && (React.createElement(FormLabel, { htmlFor: id, required: required, readOnly: readOnly }, label)),
|
|
2713
2715
|
React.createElement("div", { className: "group relative w-full" },
|
package/dist/esm/index.js
CHANGED
|
@@ -2518,6 +2518,8 @@ var DropdownContainer = function (propsComp) {
|
|
|
2518
2518
|
if (!(anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current)) {
|
|
2519
2519
|
return {};
|
|
2520
2520
|
}
|
|
2521
|
+
console.log('anchorRef current', anchorRef.current);
|
|
2522
|
+
console.log('positionStyle', positionStyle);
|
|
2521
2523
|
return __assign({ zIndex: zIndex + 10, minWidth: (anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current)
|
|
2522
2524
|
? (_a = anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth
|
|
2523
2525
|
: undefined }, positionStyle);
|
|
@@ -2699,13 +2701,13 @@ function LiveSearch(_a) {
|
|
|
2699
2701
|
value: value,
|
|
2700
2702
|
setValue: setValue,
|
|
2701
2703
|
onChangeText: onChangeText,
|
|
2702
|
-
dropContOnClickItem: dropContProps.onClickItem
|
|
2704
|
+
dropContOnClickItem: dropContProps === null || dropContProps === void 0 ? void 0 : dropContProps.onClickItem
|
|
2703
2705
|
}), isOpen = _l.isOpen, setIsOpen = _l.setIsOpen, searchTerm = _l.searchTerm, handleInputChange = _l.handleInputChange, handleDropdownItemClick = _l.handleDropdownItemClick;
|
|
2704
2706
|
var _m = sizeConfig$6[size], iconClass = _m.iconClass, iconSize = _m.iconSize, inputClass = _m.inputClass;
|
|
2705
|
-
var dropContClassName =
|
|
2707
|
+
var _o = dropContProps || {}, dropContClassName = _o.className; _o.onClickItem; _o.anchorRef; var restDropContProps = __rest(_o, ["className", "onClickItem", "anchorRef"]);
|
|
2706
2708
|
var isValueExist = value && value.label !== undefined && value.label !== '';
|
|
2707
2709
|
var filteredOptions = filterOptions(options || [], value.label);
|
|
2708
|
-
var
|
|
2710
|
+
var _p = processRenderedChildren(children, searchTerm, searchVariant, handleDropdownItemClick), renderedChildren = _p.renderedChildren, hasFilteredResults = _p.hasFilteredResults;
|
|
2709
2711
|
return (React.createElement("div", { className: "bianic-livesearch field-group group/form flex w-full flex-col gap-y-2 " },
|
|
2710
2712
|
label && (React.createElement(FormLabel, { htmlFor: id, required: required, readOnly: readOnly }, label)),
|
|
2711
2713
|
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.9",
|
|
7
7
|
"description": "Design Language System develop by BIAENERGI",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"rollup": "rollup -c",
|