@react-fabric/core 1.0.0-beta.33 → 1.0.0-beta.34

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.
@@ -1,8 +1,6 @@
1
1
  import { type ElementType, type ReactNode } from "react";
2
- type OverlayComponent = ElementType<{
3
- onClose: (...args: AnyObject) => void;
4
- [key: string]: AnyObject;
5
- }>;
2
+ import { type ModalProps } from "../types";
3
+ type OverlayComponent = ElementType<ModalProps<AnyObject>>;
6
4
  export declare const useOverlayService: (ModalOrFlyout: OverlayComponent) => [
7
5
  Overlay: ReactNode | null,
8
6
  openOverlay: (props?: KeyValue) => Promise<AnyObject>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-fabric/core",
3
- "version": "1.0.0-beta.33",
3
+ "version": "1.0.0-beta.34",
4
4
  "description": "RUF: Core package",
5
5
  "author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@floating-ui/react": "^0.26.24",
39
- "@react-fabric/utilities": "^1.0.0-beta.33",
39
+ "@react-fabric/utilities": "^1.0.0-beta.34",
40
40
  "@tailwindcss/container-queries": "^0.1.1",
41
41
  "@tailwindcss/forms": "^0.5.7",
42
42
  "@tailwindcss/typography": "^0.5.13",
@@ -56,5 +56,5 @@
56
56
  "node": ">=18.12.0",
57
57
  "npm": ">=8.19.0"
58
58
  },
59
- "gitHead": "3b7ffc99aac7b8fdc72c7122c39db55d1104297f"
59
+ "gitHead": "dcd1c1b247b6597b168a0649d2b3a53463b9c37e"
60
60
  }
@@ -27,11 +27,9 @@ import {
27
27
  type ElementType,
28
28
  type ReactNode,
29
29
  } from "react";
30
+ import { type ModalProps } from "../types";
30
31
 
31
- type OverlayComponent = ElementType<{
32
- onClose: (...args: AnyObject) => void;
33
- [key: string]: AnyObject;
34
- }>;
32
+ type OverlayComponent = ElementType<ModalProps<AnyObject>>;
35
33
 
36
34
  export const useOverlayService = (
37
35
  ModalOrFlyout: OverlayComponent,