@plasmicpkgs/react-aria 0.0.93 → 0.0.95
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 +6 -3
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +6 -3
- package/dist/react-aria.js.map +1 -1
- package/package.json +2 -2
- package/skinny/registerCheckbox.cjs.js +2 -1
- package/skinny/registerCheckbox.cjs.js.map +1 -1
- package/skinny/registerCheckbox.esm.js +2 -1
- package/skinny/registerCheckbox.esm.js.map +1 -1
- package/skinny/registerPopover.cjs.js +4 -2
- package/skinny/registerPopover.cjs.js.map +1 -1
- package/skinny/registerPopover.esm.js +5 -3
- package/skinny/registerPopover.esm.js.map +1 -1
package/dist/react-aria.js
CHANGED
|
@@ -946,7 +946,8 @@ function registerCheckbox(loader, overrides) {
|
|
|
946
946
|
uncontrolledProp: "defaultSelected",
|
|
947
947
|
description: "Whether the checkbox should be selected by default",
|
|
948
948
|
defaultValueHint: false,
|
|
949
|
-
defaultValue: false
|
|
949
|
+
defaultValue: false,
|
|
950
|
+
hidden: hasParent
|
|
950
951
|
},
|
|
951
952
|
isIndeterminate: {
|
|
952
953
|
displayName: "Indeterminate",
|
|
@@ -2157,6 +2158,8 @@ function BasePopover(props) {
|
|
|
2157
2158
|
const triggerRef = React__default.default.useRef(null);
|
|
2158
2159
|
const canvasContext = host.usePlasmicCanvasContext();
|
|
2159
2160
|
const matchTriggerWidthProp = hasTrigger && matchTriggerWidth;
|
|
2161
|
+
const dialogTriggerContext = React__default.default.useContext(PlasmicDialogTriggerContext);
|
|
2162
|
+
const shouldTrapFocus = !canvasContext && !!dialogTriggerContext;
|
|
2160
2163
|
const _b = utils.mergeProps(
|
|
2161
2164
|
{
|
|
2162
2165
|
// isNonModal: Whether the popover is non-modal, i.e. elements outside the popover may be interacted with by assistive technologies.
|
|
@@ -2179,7 +2182,7 @@ function BasePopover(props) {
|
|
|
2179
2182
|
canMatchTriggerWidth: hasTrigger
|
|
2180
2183
|
});
|
|
2181
2184
|
}, [hasTrigger, setControlContextData]);
|
|
2182
|
-
const
|
|
2185
|
+
const withoutDialog = /* @__PURE__ */ React__default.default.createElement("div", null, children);
|
|
2183
2186
|
const dialog = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Dialog, null, children);
|
|
2184
2187
|
return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, isStandalone && /* @__PURE__ */ React__default.default.createElement("div", { ref: triggerRef }), /* @__PURE__ */ React__default.default.createElement(
|
|
2185
2188
|
reactAriaComponents.Popover,
|
|
@@ -2187,7 +2190,7 @@ function BasePopover(props) {
|
|
|
2187
2190
|
style: __spreadValues$g(__spreadValues$g({}, matchTriggerWidthProp ? { width: `var(--trigger-width)` } : {}), COMMON_STYLES)
|
|
2188
2191
|
}, mergedProps),
|
|
2189
2192
|
({ placement }) => withObservedValues$a(
|
|
2190
|
-
|
|
2193
|
+
shouldTrapFocus ? dialog : withoutDialog,
|
|
2191
2194
|
{
|
|
2192
2195
|
placementTop: placement === "top",
|
|
2193
2196
|
placementBottom: placement === "bottom",
|