hplx-react-elements-dev 1.0.16 → 1.0.17
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/esm/index.js +6 -6
- package/dist/esm/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -4032,7 +4032,7 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4032
4032
|
onAnimationEnd: function onAnimationEnd() {
|
|
4033
4033
|
console.log("onAnimationEnd called");
|
|
4034
4034
|
},
|
|
4035
|
-
className: "".concat(active ? "max-h-[1000px]" : "max-h-0", " ").concat(active ? "p-5" : "p-0", " transition-all duration-500 ease-in-out overflow-
|
|
4035
|
+
className: "".concat(active ? "max-h-[1000px]" : "max-h-0", " ").concat(active ? "p-5" : "p-0", " transition-all duration-500 ease-in-out overflow-auto mt-5 ").concat(getWidth(width), " ").concat(getHeight(height), " text-ellipsis")
|
|
4036
4036
|
}, {
|
|
4037
4037
|
children: [header && jsxRuntime.exports.jsx("div", __assign({
|
|
4038
4038
|
className: "flex flex-1 m-1 p-4"
|
|
@@ -4953,7 +4953,7 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
4953
4953
|
suffix = _a.suffix,
|
|
4954
4954
|
char_count = _a.char_count,
|
|
4955
4955
|
_e = _a.onSuggestionClick,
|
|
4956
|
-
onSuggestionClick = _e === void 0 ? function () {} : _e,
|
|
4956
|
+
onSuggestionClick = _e === void 0 ? function (_selectedValue) {} : _e,
|
|
4957
4957
|
_f = _a.height,
|
|
4958
4958
|
height = _f === void 0 ? 'h-32' : _f,
|
|
4959
4959
|
_g = _a.hint_text_icon,
|
|
@@ -5005,13 +5005,13 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5005
5005
|
var res;
|
|
5006
5006
|
|
|
5007
5007
|
if (result.length > 0) {
|
|
5008
|
-
res = result + ", " + selectedValue;
|
|
5008
|
+
res = result + ", " + selectedValue.label;
|
|
5009
5009
|
} else {
|
|
5010
|
-
res = selectedValue;
|
|
5010
|
+
res = selectedValue.label;
|
|
5011
5011
|
}
|
|
5012
5012
|
|
|
5013
5013
|
setValue(res);
|
|
5014
|
-
onSuggestionClick();
|
|
5014
|
+
onSuggestionClick(selectedValue);
|
|
5015
5015
|
}; // Attaching the previous event with UseEffect hook
|
|
5016
5016
|
|
|
5017
5017
|
|
|
@@ -5069,7 +5069,7 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5069
5069
|
className: "text-Primary-700"
|
|
5070
5070
|
}, restOptions, {
|
|
5071
5071
|
onSelect: function onSelect() {
|
|
5072
|
-
return handleSuggestionClick(restOptions
|
|
5072
|
+
return handleSuggestionClick(restOptions);
|
|
5073
5073
|
}
|
|
5074
5074
|
}));
|
|
5075
5075
|
}) : null
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -298,7 +298,7 @@ export interface AddSuggestionProps {
|
|
|
298
298
|
errorMsg?: string;
|
|
299
299
|
inputProps?: React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
|
|
300
300
|
inputFieldInputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
301
|
-
onSuggestionClick?: () => void;
|
|
301
|
+
onSuggestionClick?: (selectedValue: any) => void;
|
|
302
302
|
options?: Array<DropdownItemsProps>;
|
|
303
303
|
}
|
|
304
304
|
export {};
|