@majoo-ui/react 1.59.3-rc.5 → 1.59.3-rc.7

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/index.esm.js CHANGED
@@ -11551,6 +11551,7 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
11551
11551
  }, [query]);
11552
11552
  const handleInputValue = (value, isReset = false) => {
11553
11553
  if (onSearch && !isReset) onSearch(value);
11554
+ if (fetchData) return;
11554
11555
  if (value === '') {
11555
11556
  return setItem(options);
11556
11557
  } else {
@@ -11789,7 +11790,8 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
11789
11790
  children: jsx(InputSearchbox, {
11790
11791
  size: 'sm',
11791
11792
  onChange: handleInputValue,
11792
- placeholder: searchPlaceholder !== null && searchPlaceholder !== void 0 ? searchPlaceholder : t('searchPlaceholder', 'Cari ...')
11793
+ placeholder: searchPlaceholder !== null && searchPlaceholder !== void 0 ? searchPlaceholder : t('searchPlaceholder', 'Cari ...'),
11794
+ withDebounce: true
11793
11795
  }, void 0)
11794
11796
  }), void 0), item.length > 0 || isLoading ? jsx(ConditionalWrapper, Object.assign({
11795
11797
  condition: !!fetchData && item.length > 0,
@@ -22727,10 +22729,10 @@ function HeaderMenuOption(props) {
22727
22729
  padding: '$spacing-06 $spacing-05',
22728
22730
  boxShadow: '$medium',
22729
22731
  backgroundColor: 'white',
22730
- maxHeight: 440,
22732
+ maxHeight: 300,
22731
22733
  minWidth: 167,
22732
22734
  width: 'max-content',
22733
- overflowY: visibleHeaders.filter(val => typeof val.Header === 'string').length > 7 ? 'scroll' : 'none'
22735
+ overflowY: visibleHeaders.filter(val => typeof val.Header === 'string').length > 5 ? 'scroll' : 'none'
22734
22736
  }
22735
22737
  }, {
22736
22738
  children: jsx(CheckboxGroup, Object.assign({
package/index.umd.js CHANGED
@@ -11652,6 +11652,7 @@
11652
11652
  isReset = false;
11653
11653
  }
11654
11654
  if (onSearch && !isReset) onSearch(value);
11655
+ if (fetchData) return;
11655
11656
  if (value === '') {
11656
11657
  return setItem(options);
11657
11658
  } else {
@@ -11910,7 +11911,8 @@
11910
11911
  children: jsxRuntime.jsx(InputSearchbox, {
11911
11912
  size: 'sm',
11912
11913
  onChange: handleInputValue,
11913
- placeholder: searchPlaceholder !== null && searchPlaceholder !== void 0 ? searchPlaceholder : t('searchPlaceholder', 'Cari ...')
11914
+ placeholder: searchPlaceholder !== null && searchPlaceholder !== void 0 ? searchPlaceholder : t('searchPlaceholder', 'Cari ...'),
11915
+ withDebounce: true
11914
11916
  }, void 0)
11915
11917
  }), void 0), item.length > 0 || isLoading ? jsxRuntime.jsx(ConditionalWrapper, __assign({
11916
11918
  condition: !!fetchData && item.length > 0,
@@ -23059,12 +23061,12 @@
23059
23061
  padding: '$spacing-06 $spacing-05',
23060
23062
  boxShadow: '$medium',
23061
23063
  backgroundColor: 'white',
23062
- maxHeight: 440,
23064
+ maxHeight: 300,
23063
23065
  minWidth: 167,
23064
23066
  width: 'max-content',
23065
23067
  overflowY: visibleHeaders.filter(function (val) {
23066
23068
  return typeof val.Header === 'string';
23067
- }).length > 7 ? 'scroll' : 'none'
23069
+ }).length > 5 ? 'scroll' : 'none'
23068
23070
  }
23069
23071
  }, {
23070
23072
  children: jsxRuntime.jsx(CheckboxGroup, __assign({
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.59.3-rc.5",
3
+ "version": "1.59.3-rc.7",
4
4
  "dependencies": {
5
5
  "@majoo-ui/core": "^1.31.3",
6
6
  "@majoo-ui/helpers": "^1.30.5",
7
- "@majoo-ui/icons": "^1.38.22",
7
+ "@majoo-ui/icons": "^1.38.23",
8
8
  "@stitches/react": "^1.2.8",
9
9
  "@radix-ui/react-alert-dialog": "^1.0.0",
10
10
  "@radix-ui/react-avatar": "^1.0.0",