@dxos/react-ui 0.1.27-next.a0dff21 → 0.1.28-next.bec5e3e
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/lib/browser/index.mjs +7 -4
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/layouts/PanelDialog/PanelDialog.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinHeading.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/layouts/PanelDialog/PanelDialog.tsx +2 -0
- package/src/panels/JoinPanel/JoinHeading.tsx +3 -3
|
@@ -660,7 +660,10 @@ var PanelDialog = ({ titleId, slots = {}, children }) => {
|
|
|
660
660
|
defaultOpen: true
|
|
661
661
|
}, slots.root), slots.trigger && /* @__PURE__ */ React14.createElement(Dialog.Trigger, _extends11({}, slots.trigger)), /* @__PURE__ */ React14.createElement(Dialog.Overlay, _extends11({}, slots.overlay, {
|
|
662
662
|
className: mx10(defaultOverlay, "z-40", (_a = slots.overlay) == null ? void 0 : _a.className)
|
|
663
|
-
}), /* @__PURE__ */ React14.createElement(Dialog.Content, _extends11({
|
|
663
|
+
}), /* @__PURE__ */ React14.createElement(Dialog.Content, _extends11({
|
|
664
|
+
onOpenAutoFocus: (event) => event.preventDefault(),
|
|
665
|
+
onCloseAutoFocus: (event) => event.preventDefault()
|
|
666
|
+
}, slots.content, {
|
|
664
667
|
"aria-labelledby": titleId,
|
|
665
668
|
className: mx10(defaultDialogContent, (_b = slots.content) == null ? void 0 : _b.className)
|
|
666
669
|
}), children)));
|
|
@@ -792,8 +795,8 @@ import { DensityProvider as DensityProvider3, useId as useId4 } from "@dxos/reac
|
|
|
792
795
|
|
|
793
796
|
// packages/apps/patterns/react-ui/src/panels/JoinPanel/JoinHeading.tsx
|
|
794
797
|
import { ProhibitInset as ProhibitInset2 } from "phosphor-react";
|
|
795
|
-
import React17, { cloneElement as cloneElement2
|
|
796
|
-
import { useSpace as useSpace2 } from "@dxos/react-client";
|
|
798
|
+
import React17, { cloneElement as cloneElement2 } from "react";
|
|
799
|
+
import { useSpace as useSpace2, withReactorRef } from "@dxos/react-client";
|
|
797
800
|
import { Avatar as Avatar4, Button as Button4, getSize as getSize4, Heading, mx as mx12, Trans, useId as useId2, useTranslation as useTranslation7 } from "@dxos/react-components";
|
|
798
801
|
function _extends13() {
|
|
799
802
|
_extends13 = Object.assign || function(target) {
|
|
@@ -809,7 +812,7 @@ function _extends13() {
|
|
|
809
812
|
};
|
|
810
813
|
return _extends13.apply(this, arguments);
|
|
811
814
|
}
|
|
812
|
-
var JoinHeading =
|
|
815
|
+
var JoinHeading = withReactorRef(({ mode, titleId, invitation, onExit, exitActionParent, preventExit }, ref) => {
|
|
813
816
|
var _a, _b, _c, _d, _e, _f;
|
|
814
817
|
const { t } = useTranslation7("os");
|
|
815
818
|
const space = useSpace2((_a = invitation == null ? void 0 : invitation.invitation) == null ? void 0 : _a.spaceKey);
|