@dxos/react-ui 0.4.5-main.e7f0200 → 0.4.5-main.ec866f5

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.
@@ -411,12 +411,14 @@ import React6, { forwardRef as forwardRef5 } from "react";
411
411
  import { Primitive as Primitive3 } from "@radix-ui/react-primitive";
412
412
  import { Slot as Slot3 } from "@radix-ui/react-slot";
413
413
  import React5, { forwardRef as forwardRef4 } from "react";
414
- var Link = /* @__PURE__ */ forwardRef4(({ asChild, classNames, ...props }, forwardedRef) => {
414
+ var Link = /* @__PURE__ */ forwardRef4(({ asChild, variant, classNames, ...props }, forwardedRef) => {
415
415
  const { tx } = useThemeContext();
416
416
  const Root3 = asChild ? Slot3 : Primitive3.a;
417
417
  return /* @__PURE__ */ React5.createElement(Root3, {
418
418
  ...props,
419
- className: tx("link.root", "link", {}, classNames),
419
+ className: tx("link.root", "link", {
420
+ variant
421
+ }, classNames),
420
422
  ref: forwardedRef
421
423
  });
422
424
  });
@@ -1440,11 +1442,9 @@ var MainSidebar = /* @__PURE__ */ forwardRef16(({ classNames, children, swipeToD
1440
1442
  onOpenAutoFocus: onOpenAutoFocus ?? handleOpenAutoFocus
1441
1443
  },
1442
1444
  ...props,
1443
- className: tx("main.sidebar", "main__sidebar", {
1444
- isLg,
1445
- [side === "inline-end" ? "inlineEndSidebarOpen" : "inlineStartSidebarOpen"]: open,
1446
- side
1447
- }, classNames),
1445
+ "data-side": side === "inline-end" ? "ie" : "is",
1446
+ "data-state": open ? "open" : "closed",
1447
+ className: tx("main.sidebar", "main__sidebar", {}, classNames),
1448
1448
  ...!open && {
1449
1449
  inert: "true"
1450
1450
  },
@@ -1476,18 +1476,14 @@ var MainComplementarySidebar = /* @__PURE__ */ forwardRef16((props, forwardedRef
1476
1476
  });
1477
1477
  MainNavigationSidebar.displayName = NAVIGATION_SIDEBAR_NAME;
1478
1478
  var MainContent = /* @__PURE__ */ forwardRef16(({ asChild, classNames, bounce, children, ...props }, forwardedRef) => {
1479
- const [isLg] = useMediaQuery("lg", {
1480
- ssr: false
1481
- });
1482
1479
  const { navigationSidebarOpen, complementarySidebarOpen } = useMainContext(MAIN_NAME);
1483
1480
  const { tx } = useThemeContext();
1484
1481
  const Root3 = asChild ? Slot9 : "main";
1485
1482
  return /* @__PURE__ */ React19.createElement(Root3, {
1486
1483
  ...props,
1484
+ "data-sidebar-inline-start-state": navigationSidebarOpen ? "open" : "closed",
1485
+ "data-sidebar-inline-end-state": complementarySidebarOpen ? "open" : "closed",
1487
1486
  className: tx("main.content", "main", {
1488
- isLg,
1489
- inlineStartSidebarOpen: navigationSidebarOpen,
1490
- inlineEndSidebarOpen: complementarySidebarOpen,
1491
1487
  bounce
1492
1488
  }, classNames),
1493
1489
  ref: forwardedRef
@@ -1511,9 +1507,18 @@ var MainOverlay = /* @__PURE__ */ forwardRef16(({ classNames, ...props }, forwar
1511
1507
  inlineStartSidebarOpen: navigationSidebarOpen,
1512
1508
  inlineEndSidebarOpen: complementarySidebarOpen
1513
1509
  }, classNames),
1514
- "data-open": navigationSidebarOpen,
1510
+ "data-state": navigationSidebarOpen || complementarySidebarOpen ? "open" : "closed",
1515
1511
  "aria-hidden": "true",
1516
- "data-aria-hidden": "true",
1512
+ ref: forwardedRef
1513
+ });
1514
+ });
1515
+ var MainNotch = /* @__PURE__ */ forwardRef16(({ classNames, ...props }, forwardedRef) => {
1516
+ const { tx } = useThemeContext();
1517
+ const { navigationSidebarOpen } = useMainContext(MAIN_NAME);
1518
+ return /* @__PURE__ */ React19.createElement("nav", {
1519
+ ...props,
1520
+ "data-nav-sidebar-state": navigationSidebarOpen ? "open" : "closed",
1521
+ className: tx("main.notch", "main__notch", {}, classNames),
1517
1522
  ref: forwardedRef
1518
1523
  });
1519
1524
  });
@@ -1522,7 +1527,8 @@ var Main = {
1522
1527
  Content: MainContent,
1523
1528
  Overlay: MainOverlay,
1524
1529
  NavigationSidebar: MainNavigationSidebar,
1525
- ComplementarySidebar: MainComplementarySidebar
1530
+ ComplementarySidebar: MainComplementarySidebar,
1531
+ Notch: MainNotch
1526
1532
  };
1527
1533
 
1528
1534
  // packages/ui/react-ui/src/components/Message/Message.tsx