@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.js
CHANGED
|
@@ -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
|
-
|
|
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(
|