@dxos/react-ui 0.4.7-next.f4b92be → 0.4.8-main.ac78619

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.
@@ -174,8 +174,8 @@ var AvatarFrame = /* @__PURE__ */ forwardRef2(({ classNames, children, ...props
174
174
  const { tx } = useThemeContext();
175
175
  const numericSize = size === "px" ? 1 : Number(size);
176
176
  const sizePx = numericSize * 4;
177
- const ringWidth = numericSize > 4 ? 2 : numericSize > 3 ? 1 : 1;
178
- const ringGap = numericSize > 12 ? 3 : numericSize > 4 ? 2 : numericSize > 3 ? 1 : 0;
177
+ const ringWidth = status ? numericSize > 4 ? 2 : numericSize > 3 ? 1 : 1 : 0;
178
+ const ringGap = status ? numericSize > 12 ? 3 : numericSize > 4 ? 2 : numericSize > 3 ? 1 : 0 : 0;
179
179
  const r = sizePx / 2 - ringGap - ringWidth;
180
180
  return /* @__PURE__ */ React3.createElement(AvatarRootPrimitive, {
181
181
  role: "img",
@@ -1245,6 +1245,7 @@ import { Primitive as Primitive8 } from "@radix-ui/react-primitive";
1245
1245
  import { Slot as Slot9 } from "@radix-ui/react-slot";
1246
1246
  import { useControllableState as useControllableState2 } from "@radix-ui/react-use-controllable-state";
1247
1247
  import React19, { forwardRef as forwardRef16, useCallback as useCallback3, useEffect as useEffect4, useRef, useState as useState4 } from "react";
1248
+ import { log } from "@dxos/log";
1248
1249
  import { useMediaQuery, useForwardedRef } from "@dxos/react-hooks";
1249
1250
 
1250
1251
  // packages/ui/react-ui/src/components/Main/useSwipeToDismiss.ts
@@ -1345,6 +1346,7 @@ var useSwipeToDismiss = (ref, {
1345
1346
  };
1346
1347
 
1347
1348
  // packages/ui/react-ui/src/components/Main/Main.tsx
1349
+ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/ui/react-ui/src/components/Main/Main.tsx";
1348
1350
  var MAIN_ROOT_NAME = "MainRoot";
1349
1351
  var NAVIGATION_SIDEBAR_NAME = "NavigationSidebar";
1350
1352
  var COMPLEMENTARY_SIDEBAR_NAME = "ComplementarySidebar";
@@ -1354,11 +1356,21 @@ var [MainProvider, useMainContext] = createContext8(MAIN_NAME, {
1354
1356
  resizing: false,
1355
1357
  navigationSidebarOpen: false,
1356
1358
  setNavigationSidebarOpen: (nextOpen) => {
1357
- console.warn("Attempt to set sidebar state without initializing `MainRoot`");
1359
+ log.warn("Attempt to set sidebar state without initializing `MainRoot`", void 0, {
1360
+ F: __dxlog_file,
1361
+ L: 49,
1362
+ S: void 0,
1363
+ C: (f, a) => f(...a)
1364
+ });
1358
1365
  },
1359
1366
  complementarySidebarOpen: false,
1360
1367
  setComplementarySidebarOpen: (nextOpen) => {
1361
- console.warn("Attempt to set sidebar state without initializing `MainRoot`");
1368
+ log.warn("Attempt to set sidebar state without initializing `MainRoot`", void 0, {
1369
+ F: __dxlog_file,
1370
+ L: 54,
1371
+ S: void 0,
1372
+ C: (f, a) => f(...a)
1373
+ });
1362
1374
  }
1363
1375
  });
1364
1376
  var useSidebars = (consumerName = GENERIC_CONSUMER_NAME) => {