@redsift/design-system 11.3.2-alpha.2 → 11.3.2-muiv5

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.js CHANGED
@@ -19932,7 +19932,7 @@ const ListboxVariant = {
19932
19932
  */
19933
19933
 
19934
19934
  function useListboxItem(props) {
19935
- var _context$state;
19935
+ var _context$state, _context$state$select;
19936
19936
  const {
19937
19937
  domElementRef,
19938
19938
  value,
@@ -19997,7 +19997,7 @@ function useListboxItem(props) {
19997
19997
  });
19998
19998
  }
19999
19999
  }, [value]);
20000
- const isSelected = propsIsSelected && context !== null && context !== void 0 && (_context$state = context.state) !== null && _context$state !== void 0 && _context$state.selectedValues ? context.state.selectedValues.find(selectedValue => selectedValue === value) !== undefined : false;
20000
+ const isSelected = propsIsSelected !== null && propsIsSelected !== void 0 ? propsIsSelected : (context === null || context === void 0 ? void 0 : (_context$state = context.state) === null || _context$state === void 0 ? void 0 : (_context$state$select = _context$state.selectedValues) === null || _context$state$select === void 0 ? void 0 : _context$state$select.find(selectedValue => selectedValue === value)) !== undefined;
20001
20001
  useEffect(() => {
20002
20002
  if (isFocused && domElementRef.current) {
20003
20003
  var _current;