@majoo-ui/react 1.61.16-rc.4 → 1.61.16-rc.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.
Files changed (2) hide show
  1. package/index.esm.js +2 -2
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -15907,7 +15907,7 @@ function InputResourceList({
15907
15907
  }, [defaultSort]);
15908
15908
  const availableData = useMemo(() => {
15909
15909
  if (!data) return [];
15910
- const filteredData = data.filter(item => item.label.toLowerCase().match((query === null || query === void 0 ? void 0 : query.toLowerCase()) || ''));
15910
+ const filteredData = data.filter(item => !!onQueryChange || item.label.toLowerCase().match((query === null || query === void 0 ? void 0 : query.toLowerCase()) || ''));
15911
15911
  const checkedValues = new Set(checkedItems.map(item => item.value));
15912
15912
  return [...filteredData].sort((a, b) => {
15913
15913
  const aIsChecked = checkedValues.has(a.value);
@@ -16109,7 +16109,7 @@ function InputResourceList({
16109
16109
  css: Object.assign({
16110
16110
  position: 'absolute',
16111
16111
  inset: 0,
16112
- top: onQueryChange ? 48 : 0,
16112
+ top: onQueryChange || searchable ? 48 : 0,
16113
16113
  width: '100%',
16114
16114
  height: 285,
16115
16115
  backgroundColor: '$bgWhite',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.61.16-rc.4",
3
+ "version": "1.61.16-rc.5",
4
4
  "main": "./index.esm.js",
5
5
  "exports": {
6
6
  ".": {