@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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/react-aria.esm.js +10 -1
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +10 -1
- package/dist/react-aria.js.map +1 -1
- package/package.json +2 -2
- package/skinny/registerComboBox.cjs.js +3 -4
- package/skinny/registerComboBox.cjs.js.map +1 -1
- package/skinny/registerComboBox.esm.js +1 -2
- package/skinny/registerComboBox.esm.js.map +1 -1
- package/skinny/{registerListBox-3beb3a9f.esm.js → registerListBox-64bcf3d2.esm.js} +83 -5
- package/skinny/registerListBox-64bcf3d2.esm.js.map +1 -0
- package/skinny/{registerListBox-3f613b40.cjs.js → registerListBox-c2c63064.cjs.js} +86 -6
- package/skinny/registerListBox-c2c63064.cjs.js.map +1 -0
- package/skinny/registerListBox.cjs.js +6 -7
- package/skinny/registerListBox.cjs.js.map +1 -1
- package/skinny/registerListBox.esm.js +2 -3
- package/skinny/registerListBox.esm.js.map +1 -1
- package/skinny/registerSection.cjs.js +12 -78
- package/skinny/registerSection.cjs.js.map +1 -1
- package/skinny/registerSection.esm.js +10 -76
- package/skinny/registerSection.esm.js.map +1 -1
- package/skinny/registerSelect.cjs.js +3 -4
- package/skinny/registerSelect.cjs.js.map +1 -1
- package/skinny/registerSelect.esm.js +1 -2
- package/skinny/registerSelect.esm.js.map +1 -1
- package/skinny/registerListBox-3beb3a9f.esm.js.map +0 -1
- package/skinny/registerListBox-3f613b40.cjs.js.map +0 -1
package/dist/react-aria.esm.js
CHANGED
|
@@ -1771,8 +1771,17 @@ var __objRest$g = (source, exclude) => {
|
|
|
1771
1771
|
function BaseSection(props) {
|
|
1772
1772
|
const _a = props, { header, items } = _a, rest = __objRest$g(_a, ["header", "items"]);
|
|
1773
1773
|
const contextProps = React.useContext(PlasmicListBoxContext);
|
|
1774
|
+
const isStandalone = !contextProps;
|
|
1774
1775
|
const mergedProps = mergeProps$1(contextProps, rest);
|
|
1775
|
-
|
|
1776
|
+
const section = /* @__PURE__ */ React.createElement(Section, __spreadValues$h({}, mergedProps), /* @__PURE__ */ React.createElement(Header, null, header), items);
|
|
1777
|
+
if (isStandalone) {
|
|
1778
|
+
return (
|
|
1779
|
+
// BaseListbox should give section a listbox context (that it can't be used without)
|
|
1780
|
+
// as well as the id manager (that is needed to identify and warn about duplication of ids)
|
|
1781
|
+
/* @__PURE__ */ React.createElement(BaseListBox, null, section)
|
|
1782
|
+
);
|
|
1783
|
+
}
|
|
1784
|
+
return section;
|
|
1776
1785
|
}
|
|
1777
1786
|
function registerSection(loader, overrides) {
|
|
1778
1787
|
return registerComponentHelper(
|