@react-types/shared 3.0.0-nightly-e3913baaa-260422 → 3.0.0-nightly-ec7bc94b3-260424

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": "@react-types/shared",
3
- "version": "3.0.0-nightly-e3913baaa-260422",
3
+ "version": "3.0.0-nightly-ec7bc94b3-260424",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
package/src/dom.d.ts CHANGED
@@ -26,6 +26,7 @@ import {
26
26
  PointerEventHandler,
27
27
  DOMAttributes as ReactDOMAttributes,
28
28
  ReactEventHandler,
29
+ RefAttributes,
29
30
  TouchEventHandler,
30
31
  TransitionEventHandler,
31
32
  UIEventHandler,
@@ -237,6 +238,8 @@ export interface DOMAttributes<T = FocusableElement> extends AriaAttributes, Rea
237
238
  className?: string | undefined
238
239
  }
239
240
 
241
+ export interface DOMAttributesWithRef<T = Element> extends DOMAttributes<T>, RefAttributes<T> {}
242
+
240
243
  export interface GroupDOMAttributes extends Omit<DOMAttributes<HTMLElement>, 'role'> {
241
244
  role?: 'group' | 'region' | 'presentation'
242
245
  }
package/src/refs.d.ts CHANGED
@@ -21,7 +21,7 @@ export interface FocusableRefValue<T extends HTMLElement = HTMLElement, D extend
21
21
  }
22
22
 
23
23
  export type DOMRef<T extends HTMLElement = HTMLElement> = Ref<DOMRefValue<T>>;
24
- export type FocusableRef<T extends HTMLElement = HTMLElement> = Ref<FocusableRefValue<T>>;
24
+ export type FocusableRef<T extends HTMLElement = HTMLElement, D extends HTMLElement = T> = Ref<FocusableRefValue<T, D>>;
25
25
 
26
26
  export interface RefObject<T> {
27
27
  current: T