@sproutsocial/seeds-react-menu 1.10.1 → 1.10.3

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.
@@ -8,22 +8,22 @@ $ tsup --dts
8
8
  CLI Cleaning output folder
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/index.js 91.81 KB
12
- CJS dist/v2/index.js 72.63 KB
13
- CJS dist/index.js.map 178.88 KB
14
- CJS dist/v2/index.js.map 151.20 KB
15
- CJS ⚡️ Build success in 52ms
16
11
  ESM dist/esm/index.js 72.69 KB
12
+ ESM dist/esm/v2/index.js 62.49 KB
17
13
  ESM dist/esm/chunk-ROQATIB7.js 9.15 KB
18
- ESM dist/esm/v2/index.js 62.08 KB
14
+ ESM dist/esm/v2/index.js.map 132.28 KB
19
15
  ESM dist/esm/index.js.map 154.90 KB
20
16
  ESM dist/esm/chunk-ROQATIB7.js.map 22.93 KB
21
- ESM dist/esm/v2/index.js.map 131.58 KB
22
- ESM ⚡️ Build success in 53ms
17
+ ESM ⚡️ Build success in 50ms
18
+ CJS dist/index.js 91.81 KB
19
+ CJS dist/v2/index.js 73.04 KB
20
+ CJS dist/index.js.map 178.88 KB
21
+ CJS dist/v2/index.js.map 151.90 KB
22
+ CJS ⚡️ Build success in 51ms
23
23
  DTS Build start
24
- DTS ⚡️ Build success in 5472ms
24
+ DTS ⚡️ Build success in 4979ms
25
25
  DTS dist/index.d.ts 39.08 KB
26
- DTS dist/v2/index.d.ts 5.43 KB
26
+ DTS dist/v2/index.d.ts 5.55 KB
27
27
  DTS dist/index.d.mts 39.08 KB
28
- DTS dist/v2/index.d.mts 5.43 KB
29
- Done in 6.19s.
28
+ DTS dist/v2/index.d.mts 5.55 KB
29
+ Done in 5.66s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @sproutsocial/seeds-react-menu
2
2
 
3
+ ## 1.10.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 11bdba2: Fix virtualized combobox item sizing
8
+
9
+ ## 1.10.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [5512104]
14
+ - @sproutsocial/seeds-react-icon@2.3.0
15
+ - @sproutsocial/seeds-react-button@1.4.2
16
+ - @sproutsocial/seeds-react-checkbox@1.3.26
17
+ - @sproutsocial/seeds-react-input@1.5.9
18
+ - @sproutsocial/seeds-react-switch@1.2.25
19
+ - @sproutsocial/seeds-react-token-input@1.4.30
20
+ - @sproutsocial/seeds-react-popout@2.4.30
21
+
3
22
  ## 1.10.1
4
23
 
5
24
  ### Patch Changes
@@ -597,6 +597,7 @@ var VirtualizedComboboxContent = ({
597
597
  groupBy,
598
598
  allData,
599
599
  selectAllItem,
600
+ estimatedItemHeight = 35,
600
601
  ...rest
601
602
  }) => {
602
603
  const containerRef = useRef2(null);
@@ -606,7 +607,7 @@ var VirtualizedComboboxContent = ({
606
607
  getScrollElement: () => containerRef.current,
607
608
  estimateSize: (index) => {
608
609
  const item = items[index];
609
- return isGroupHeading(item) ? 30 : 35;
610
+ return isGroupHeading(item) ? 40 : estimatedItemHeight;
610
611
  }
611
612
  });
612
613
  useEffect(() => {
@@ -653,6 +654,7 @@ var VirtualizedComboboxContent = ({
653
654
  return /* @__PURE__ */ jsx6(
654
655
  MenuHeading,
655
656
  {
657
+ ref: rowVirtualizer.measureElement,
656
658
  ...headingItemProps,
657
659
  $highlighted: highlightedIndex === virtualItem.index,
658
660
  label: item.label,
@@ -674,6 +676,7 @@ var VirtualizedComboboxContent = ({
674
676
  return /* @__PURE__ */ jsx6(
675
677
  MenuItem,
676
678
  {
679
+ ref: rowVirtualizer.measureElement,
677
680
  inputType,
678
681
  selected: isItemSelected2,
679
682
  id: toggleItem.id,
@@ -702,6 +705,7 @@ var VirtualizedComboboxContent = ({
702
705
  },
703
706
  $highlighted: highlightedIndex === virtualItem.index,
704
707
  $active: false,
708
+ ref: rowVirtualizer.measureElement,
705
709
  children: renderItem(dataItem)
706
710
  },
707
711
  virtualItem.key
@@ -943,6 +947,7 @@ function SingleSelect({
943
947
  groupBy,
944
948
  renderGroupHeading,
945
949
  isVirtualized = false,
950
+ estimatedItemHeight,
946
951
  placeholder,
947
952
  onSelectedItemIdChange,
948
953
  onIsOpenChange,
@@ -1098,6 +1103,7 @@ function SingleSelect({
1098
1103
  itemToString,
1099
1104
  inputType,
1100
1105
  isVirtualized,
1106
+ estimatedItemHeight,
1101
1107
  groupBy,
1102
1108
  selectHeadings: false,
1103
1109
  ...menuProps
@@ -1157,6 +1163,7 @@ function MultiSelect({
1157
1163
  groupBy,
1158
1164
  renderGroupHeading,
1159
1165
  isVirtualized = false,
1166
+ estimatedItemHeight,
1160
1167
  showSelectedItems = false,
1161
1168
  selectHeadings = false,
1162
1169
  selectAllItem,
@@ -1399,6 +1406,7 @@ function MultiSelect({
1399
1406
  allData: data,
1400
1407
  selectAllItem,
1401
1408
  isVirtualized,
1409
+ estimatedItemHeight,
1402
1410
  ...menuProps
1403
1411
  }
1404
1412
  ),
@@ -1451,6 +1459,7 @@ function SingleAutocomplete({
1451
1459
  groupBy,
1452
1460
  renderGroupHeading,
1453
1461
  isVirtualized = false,
1462
+ estimatedItemHeight,
1454
1463
  EmptyState,
1455
1464
  placeholder,
1456
1465
  onSelectedItemIdChange,
@@ -1672,6 +1681,7 @@ function SingleAutocomplete({
1672
1681
  selectHeadings: false,
1673
1682
  groupBy,
1674
1683
  isVirtualized,
1684
+ estimatedItemHeight,
1675
1685
  placeholderItem: includePlaceholderItem ? placeholderItem : void 0,
1676
1686
  ...menuProps
1677
1687
  }
@@ -1737,6 +1747,7 @@ function MultiAutocomplete({
1737
1747
  groupBy,
1738
1748
  renderGroupHeading,
1739
1749
  isVirtualized = false,
1750
+ estimatedItemHeight,
1740
1751
  showSelectedItems = false,
1741
1752
  selectHeadings = false,
1742
1753
  selectAllItem,
@@ -2028,6 +2039,7 @@ function MultiAutocomplete({
2028
2039
  allData: data,
2029
2040
  selectAllItem,
2030
2041
  isVirtualized,
2042
+ estimatedItemHeight,
2031
2043
  ...menuProps
2032
2044
  }
2033
2045
  ),