@dxos/react-ui 0.8.2-main.f11618f → 0.8.2-staging.7ac8446

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.
@@ -41,22 +41,19 @@ const DxAvatar = createComponent({
41
41
 
42
42
  type AvatarContentProps = ThemedClassName<Omit<ComponentProps<typeof DxAvatar>, 'children'>>;
43
43
 
44
- const AvatarContent = forwardRef<NaturalDxAvatar, AvatarContentProps>(
45
- ({ icon, classNames, ...props }, forwardedRef) => {
46
- const href = useIconHref(icon);
47
- const { labelId, descriptionId } = useAvatarContext('AvatarContent');
48
- return (
49
- <DxAvatar
50
- {...props}
51
- icon={href}
52
- aria-labelledby={labelId}
53
- aria-describedby={descriptionId}
54
- rootClassName={mx(classNames)}
55
- ref={forwardedRef}
56
- />
57
- );
58
- },
59
- );
44
+ const AvatarContent = ({ icon, classNames, ...props }: AvatarContentProps) => {
45
+ const href = useIconHref(icon);
46
+ const { labelId, descriptionId } = useAvatarContext('AvatarContent');
47
+ return (
48
+ <DxAvatar
49
+ {...props}
50
+ icon={href}
51
+ labelId={labelId}
52
+ aria-describedby={descriptionId}
53
+ rootClassName={mx(classNames)}
54
+ />
55
+ );
56
+ };
60
57
 
61
58
  type AvatarLabelProps = ThemedClassName<Omit<ComponentPropsWithRef<typeof Primitive.span>, 'id'>> & {
62
59
  asChild?: boolean;
@@ -116,5 +113,4 @@ export type {
116
113
  AvatarContentProps,
117
114
  AvatarLabelProps,
118
115
  AvatarDescriptionProps,
119
- NaturalDxAvatar as DxAvatar,
120
116
  };
@@ -115,7 +115,6 @@ const DialogContent: ForwardRefExoticComponent<DialogContentProps> = forwardRef<
115
115
 
116
116
  return (
117
117
  <DialogContentPrimitive
118
- aria-describedby={undefined}
119
118
  {...props}
120
119
  className={tx(
121
120
  'dialog.content',
@@ -571,8 +571,6 @@ const PopoverViewport = forwardRef<HTMLDivElement, PopoverViewportProps>(
571
571
 
572
572
  const getState = (open: boolean) => (open ? 'open' : 'closed');
573
573
 
574
- type PopoverContentInteractOutsideEvent = Parameters<NonNullable<PopoverContentProps['onInteractOutside']>>[0];
575
-
576
574
  export const Popover = {
577
575
  Root: PopoverRoot,
578
576
  Anchor: PopoverAnchor,
@@ -597,5 +595,4 @@ export type {
597
595
  PopoverCloseProps,
598
596
  PopoverArrowProps,
599
597
  PopoverViewportProps,
600
- PopoverContentInteractOutsideEvent,
601
598
  };
@@ -8,12 +8,12 @@ export * from './Breadcrumb';
8
8
  export * from './Buttons';
9
9
  export * from './Clipboard';
10
10
  export * from './Dialogs';
11
+ export * from './Menus';
11
12
  export * from './Icon';
12
13
  export * from './Input';
13
14
  export * from './Link';
14
15
  export * from './Lists';
15
16
  export * from './Main';
16
- export * from './Menus';
17
17
  export * from './Message';
18
18
  export * from './Popover';
19
19
  export * from './Status';