@dxos/react-ui 0.3.5-main.f910495 → 0.3.5-main.fee333e

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.
@@ -152,7 +152,9 @@ var AvatarFrame = /* @__PURE__ */ forwardRef(({ classNames, children, ...props }
152
152
  viewBox: `0 0 ${imageSizeNumber} ${imageSizeNumber}`,
153
153
  width: imageSizeNumber,
154
154
  height: imageSizeNumber,
155
- className: tx("avatar.frame", "avatar__frame", {})
155
+ className: tx("avatar.frame", "avatar__frame", {
156
+ variant
157
+ })
156
158
  }, /* @__PURE__ */ React2.createElement("defs", null, /* @__PURE__ */ React2.createElement("mask", {
157
159
  id: maskId
158
160
  }, variant === "circle" ? /* @__PURE__ */ React2.createElement("circle", {
@@ -215,6 +217,7 @@ var AvatarFrame = /* @__PURE__ */ forwardRef(({ classNames, children, ...props }
215
217
  width: imageSizeNumber - strokeWidth / 4,
216
218
  height: imageSizeNumber - strokeWidth / 4
217
219
  })), /* @__PURE__ */ React2.createElement("span", {
220
+ role: "none",
218
221
  className: tx("avatar.ring", "avatar__ring", {
219
222
  size,
220
223
  variant,
@@ -559,7 +562,7 @@ import { DotsSixVertical, DotsThreeVertical } from "@phosphor-icons/react";
559
562
  import React11, { forwardRef as forwardRef9 } from "react";
560
563
 
561
564
  // packages/ui/react-ui/src/components/DropdownMenu/DropdownMenu.tsx
562
- import { Root as DropdownMenuRootPrimitive, DropdownMenuTrigger as DropdownMenuTriggerPrimitive, DropdownMenuPortal as DropdownMenuPortalPrimitive, DropdownMenuContent as DropdownMenuContentPrimitive, DropdownMenuArrow as DropdownMenuArrowPrimitive, DropdownMenuGroup as DropdownMenuGroupPrimitive, DropdownMenuItem as DropdownMenuItemPrimitive, DropdownMenuSeparator as DropdownMenuSeparatorPrimitive, DropdownMenuLabel as DropdownMenuLabelPrimitive } from "@radix-ui/react-dropdown-menu";
565
+ import { Root as DropdownMenuRootPrimitive, DropdownMenuTrigger as DropdownMenuTriggerPrimitive, DropdownMenuPortal as DropdownMenuPortalPrimitive, DropdownMenuContent as DropdownMenuContentPrimitive, DropdownMenuArrow as DropdownMenuArrowPrimitive, DropdownMenuGroup as DropdownMenuGroupPrimitive, DropdownMenuItem as DropdownMenuItemPrimitive, DropdownMenuCheckboxItem as DropdownMenuCheckboxItemPrimitive, DropdownMenuItemIndicator as DropdownMenuItemIndicatorPrimitive, DropdownMenuSeparator as DropdownMenuSeparatorPrimitive, DropdownMenuLabel as DropdownMenuLabelPrimitive } from "@radix-ui/react-dropdown-menu";
563
566
  import { Primitive as Primitive5 } from "@radix-ui/react-primitive";
564
567
  import { Slot as Slot5 } from "@radix-ui/react-slot";
565
568
  import React10, { forwardRef as forwardRef8 } from "react";
@@ -609,6 +612,7 @@ var DropdownMenuArrow = /* @__PURE__ */ forwardRef8(({ classNames, ...props }, f
609
612
  });
610
613
  });
611
614
  var DropdownMenuGroup = DropdownMenuGroupPrimitive;
615
+ var DropdownMenuItemIndicator = DropdownMenuItemIndicatorPrimitive;
612
616
  var DropdownMenuItem = /* @__PURE__ */ forwardRef8(({ classNames, ...props }, forwardedRef) => {
613
617
  const { tx } = useThemeContext();
614
618
  return /* @__PURE__ */ React10.createElement(DropdownMenuItemPrimitive, {
@@ -617,6 +621,14 @@ var DropdownMenuItem = /* @__PURE__ */ forwardRef8(({ classNames, ...props }, fo
617
621
  ref: forwardedRef
618
622
  });
619
623
  });
624
+ var DropdownMenuCheckboxItem = /* @__PURE__ */ forwardRef8(({ classNames, ...props }, forwardedRef) => {
625
+ const { tx } = useThemeContext();
626
+ return /* @__PURE__ */ React10.createElement(DropdownMenuCheckboxItemPrimitive, {
627
+ ...props,
628
+ className: tx("dropdownMenu.item", "dropdown-menu__item--checkbox", {}, classNames),
629
+ ref: forwardedRef
630
+ });
631
+ });
620
632
  var DropdownMenuSeparator = /* @__PURE__ */ forwardRef8(({ classNames, ...props }, forwardedRef) => {
621
633
  const { tx } = useThemeContext();
622
634
  return /* @__PURE__ */ React10.createElement(DropdownMenuSeparatorPrimitive, {
@@ -642,6 +654,8 @@ var DropdownMenu = {
642
654
  Arrow: DropdownMenuArrow,
643
655
  Group: DropdownMenuGroup,
644
656
  Item: DropdownMenuItem,
657
+ CheckboxItem: DropdownMenuCheckboxItem,
658
+ ItemIndicator: DropdownMenuItemIndicator,
645
659
  Separator: DropdownMenuSeparator,
646
660
  GroupLabel: DropdownMenuGroupLabel
647
661
  };