@plasmicpkgs/react-aria 0.0.74 → 0.0.75

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.
@@ -1779,8 +1779,17 @@ var __objRest$g = (source, exclude) => {
1779
1779
  function BaseSection(props) {
1780
1780
  const _a = props, { header, items } = _a, rest = __objRest$g(_a, ["header", "items"]);
1781
1781
  const contextProps = React__default.default.useContext(PlasmicListBoxContext);
1782
+ const isStandalone = !contextProps;
1782
1783
  const mergedProps = utils.mergeProps(contextProps, rest);
1783
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Section, __spreadValues$h({}, mergedProps), /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Header, null, header), items);
1784
+ const section = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Section, __spreadValues$h({}, mergedProps), /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Header, null, header), items);
1785
+ if (isStandalone) {
1786
+ return (
1787
+ // BaseListbox should give section a listbox context (that it can't be used without)
1788
+ // as well as the id manager (that is needed to identify and warn about duplication of ids)
1789
+ /* @__PURE__ */ React__default.default.createElement(BaseListBox, null, section)
1790
+ );
1791
+ }
1792
+ return section;
1784
1793
  }
1785
1794
  function registerSection(loader, overrides) {
1786
1795
  return registerComponentHelper(