@sanity/ui 3.0.0-static.45 → 3.0.0-static.47

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "3.0.0-static.45",
3
+ "version": "3.0.0-static.47",
4
4
  "keywords": [
5
5
  "react",
6
6
  "ui",
@@ -49,9 +49,9 @@ export type MenuItemOwnProps = GapStyleProps &
49
49
  export type MenuItemElementType = 'button' | 'a' | ComponentType
50
50
 
51
51
  /** @public */
52
- export type MenuItemProps<E extends MenuItemElementType = MenuItemElementType> = Omit<
53
- Props<MenuItemOwnProps, E>,
54
- 'role'
52
+ export type MenuItemProps<E extends MenuItemElementType = MenuItemElementType> = Props<
53
+ MenuItemOwnProps,
54
+ E
55
55
  >
56
56
 
57
57
  /** @public */
@@ -80,6 +80,7 @@ export function MenuItem<E extends MenuItemElementType = typeof DEFAULT_MENU_ITE
80
80
  pressed,
81
81
  radius = 2,
82
82
  ref: forwardedRef,
83
+ role = 'menuitem',
83
84
  selected: selectedProp,
84
85
  text,
85
86
  tone = 'default',
@@ -140,7 +141,7 @@ export function MenuItem<E extends MenuItemElementType = typeof DEFAULT_MENU_ITE
140
141
  onMouseEnter={onItemMouseEnter}
141
142
  onMouseLeave={onItemMouseLeave}
142
143
  ref={setRef}
143
- role="menuitem"
144
+ role={role}
144
145
  tabIndex={-1}
145
146
  tone={tone}
146
147
  type={as === 'button' ? 'button' : undefined}
@@ -408,6 +408,7 @@ export function Popover<E extends PopoverElementType = typeof DEFAULT_POPOVER_EL
408
408
  shadow={shadow}
409
409
  originX={originX}
410
410
  originY={originY}
411
+ tone={tone}
411
412
  strategy={strategy}
412
413
  x={x}
413
414
  y={y}
@@ -36,7 +36,6 @@ export function Skeleton<E extends SkeletonElementType = typeof DEFAULT_SKELETON
36
36
  animated = false,
37
37
  className,
38
38
  delay,
39
- radius,
40
39
  ...rest
41
40
  } = props as SkeletonProps<typeof DEFAULT_SKELETON_ELEMENT>
42
41
 
@@ -62,7 +61,7 @@ export function Skeleton<E extends SkeletonElementType = typeof DEFAULT_SKELETON
62
61
  {...rest}
63
62
  className={skeleton({
64
63
  className,
65
- radius,
64
+ ...rest,
66
65
  })}
67
66
  data-animated={animated ? '' : undefined}
68
67
  data-visible={visible ? '' : undefined}