react-restyle-components 0.2.60 → 0.2.62

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/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-restyle-components",
3
- "version": "0.2.59",
3
+ "version": "0.2.62",
4
4
  "private": false,
5
5
  "description": "Easy use restyle components",
6
6
  "author": {
@@ -63,10 +63,10 @@ export const AutoCompleteFilterSingleSelectMultiFieldsDisplay = ({ disable = fal
63
63
  const calculateMaxHeight = () => {
64
64
  if (inputRef.current) {
65
65
  const inputRect = inputRef.current.getBoundingClientRect();
66
- const availableHeight = window.innerHeight - inputRect.bottom - 10; // 10px padding
66
+ const availableHeight = window.innerHeight - inputRect.bottom - 20; // 10px padding
67
67
  return availableHeight;
68
68
  }
69
- return 'calc(100vh - 100px)';
69
+ return 'calc(100vh - 140px)';
70
70
  };
71
71
  return (_jsx(_Fragment, { children: _jsxs("div", { ref: wrapperRef, className: "w-full relative", children: [_jsxs("div", { className: cn(s['flex'], s['p-2'], s['leading-4'], s['focus:outline-none'], s['focus:ring'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border'], {
72
72
  [s['border-red']]: hasError,
@@ -81,8 +81,8 @@ export const AutoCompleteFilterSingleSelectMultiFieldsDisplay = ({ disable = fal
81
81
  } }))] }), options && isListOpen
82
82
  ? options.length > 0 && (_jsx("div", { className: cn(s['absolute'], s['w-full'], s['bg-gray-100'], s['p-2'], s['rounded-sm'], s['overflow-y-auto']), style: {
83
83
  zIndex: 500,
84
- // maxHeight: `${calculateMaxHeight()}px`,
85
- }, children: _jsx("ul", { className: "flex", children: options?.map((item, index) => (_jsx("li", { className: cn(s['text-gray-400'], s['flex'], s['items-center']), onClick: () => {
84
+ maxHeight: `${calculateMaxHeight()}px`,
85
+ }, children: _jsx("ul", { children: options?.map((item, index) => (_jsx("li", { className: cn(s['text-gray-400'], s['flex'], s['items-center']), onClick: () => {
86
86
  setValue(data.displayKey
87
87
  .map((key) => `${item[key]}`)
88
88
  .join(' - '));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-restyle-components",
3
- "version": "0.2.60",
3
+ "version": "0.2.62",
4
4
  "private": false,
5
5
  "description": "Easy use restyle components",
6
6
  "author": {