@dxos/react-ui 0.1.38-next.48f0513 → 0.1.38
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/README.md +2 -3
- package/dist/lib/browser/index.mjs +7 -6
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/layouts/PanelSidebar/PanelSidebar.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/layouts/PanelSidebar/PanelSidebar.tsx +15 -13
package/README.md
CHANGED
|
@@ -12,11 +12,10 @@ pnpm i @dxos/react-ui
|
|
|
12
12
|
|
|
13
13
|
- [Website](https://dxos.org)
|
|
14
14
|
- [Developer Documentation](https://docs.dxos.org)
|
|
15
|
-
-
|
|
16
|
-
- Tag us on twitter [`@dxos_org`](https://twitter.com/dxos_org)
|
|
15
|
+
- Talk to us on [Discord](https://discord.gg/eXVfryv3sW)
|
|
17
16
|
|
|
18
17
|
## Contributions
|
|
19
18
|
|
|
20
|
-
Your ideas, issues, and code are most welcome. Please take a look at our [community code of conduct](https://github.com/dxos/dxos/blob/main/CODE_OF_CONDUCT.md), the [issue guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-issues), and the [PR contribution guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-prs).
|
|
19
|
+
Your ideas, issues, and code are most welcome. Please take a look at our [community code of conduct](https://github.com/dxos/dxos/blob/main/CODE_OF_CONDUCT.md), the [issue guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-issues), and the [PR contribution guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-prs).
|
|
21
20
|
|
|
22
21
|
License: [MIT](./LICENSE) Copyright 2022 © DXOS
|
|
@@ -686,18 +686,19 @@ var PanelSidebarProvider = ({ children, slots }) => {
|
|
|
686
686
|
}
|
|
687
687
|
}, /* @__PURE__ */ React15.createElement(DialogPrimitive.Root, {
|
|
688
688
|
open: domShow,
|
|
689
|
-
modal:
|
|
690
|
-
}, /* @__PURE__ */ React15.createElement(
|
|
689
|
+
modal: false
|
|
690
|
+
}, !isLg && /* @__PURE__ */ React15.createElement("div", {
|
|
691
|
+
role: "none",
|
|
692
|
+
className: mx10(defaultOverlay2, "transition-opacity duration-200 ease-in-out", transitionShow ? "opacity-100" : "opacity-0", domShow ? "block" : "hidden"),
|
|
693
|
+
onClick: internalHide
|
|
694
|
+
}), /* @__PURE__ */ React15.createElement(DialogPrimitive.Content, _extends10({
|
|
691
695
|
onOpenAutoFocus: (event) => isLg && event.preventDefault(),
|
|
692
696
|
onCloseAutoFocus: (event) => isLg && event.preventDefault()
|
|
693
697
|
}, slots == null ? void 0 : slots.content, {
|
|
694
698
|
className: mx10("fixed block-start-0 block-end-0 is-sidebar z-30 overscroll-contain overflow-x-hidden overflow-y-auto", "transition-[inset-inline-start,inset-inline-end] duration-200 ease-in-out", transitionShow ? "inline-start-0" : "-inline-start-sidebar", (_a = slots == null ? void 0 : slots.content) == null ? void 0 : _a.className)
|
|
695
699
|
}), /* @__PURE__ */ React15.createElement(DialogPrimitive.Title, {
|
|
696
700
|
className: "sr-only"
|
|
697
|
-
}, t("sidebar label")), (_b = slots == null ? void 0 : slots.content) == null ? void 0 : _b.children),
|
|
698
|
-
className: mx10(defaultOverlay2, "transition-opacity duration-200 ease-in-out", transitionShow ? "opacity-100" : "opacity-0"),
|
|
699
|
-
onClick: internalHide
|
|
700
|
-
}), /* @__PURE__ */ React15.createElement("div", _extends10({
|
|
701
|
+
}, t("sidebar label")), (_b = slots == null ? void 0 : slots.content) == null ? void 0 : _b.children), /* @__PURE__ */ React15.createElement("div", _extends10({
|
|
701
702
|
role: "none"
|
|
702
703
|
}, slots == null ? void 0 : slots.main, {
|
|
703
704
|
className: mx10("transition-[padding-inline-start] duration-200 ease-in-out", isLg && isOpen ? "pis-sidebar" : "pis-0", (_c = slots == null ? void 0 : slots.main) == null ? void 0 : _c.className)
|