reakit-system
Advanced tools
Comparing version 0.14.4 to 0.15.0-alpha.0
{ | ||
"name": "reakit-system", | ||
"version": "0.14.4", | ||
"version": "0.15.0-alpha.0", | ||
"description": "Reakit System utils", | ||
@@ -34,3 +34,3 @@ "sideEffects": false, | ||
"dependencies": { | ||
"reakit-utils": "0.14.3" | ||
"reakit-utils": "^0.15.0-alpha.0" | ||
}, | ||
@@ -41,3 +41,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "51f8f141ea1e5069c71a631853d5af6d897687bb" | ||
"gitHead": "76c913732b1f522367ac7b2876a1bc133b7090d2" | ||
} |
@@ -24,6 +24,6 @@ # reakit-system | ||
```jsx | ||
import { useBox } from "reakit/Box"; | ||
import { useRole } from "reakit/Role"; | ||
import { createHook } from "reakit-system"; | ||
const useA = createHook({ name: "A", compose: useBox }); | ||
const useA = createHook({ name: "A", compose: useRole }); | ||
``` | ||
@@ -30,0 +30,0 @@ |
@@ -9,3 +9,3 @@ import * as React from "react"; | ||
type BoxHTMLProps = React.HTMLAttributes<any> & | ||
type RoleHTMLProps = React.HTMLAttributes<any> & | ||
React.RefAttributes<any> & { | ||
@@ -16,3 +16,3 @@ wrapElement?: (element: React.ReactNode) => React.ReactNode; | ||
type Hook<O> = { | ||
(options?: O, props?: BoxHTMLProps): BoxHTMLProps; | ||
(options?: O, props?: RoleHTMLProps): RoleHTMLProps; | ||
unstable_propsAreEqual?: (prev: O, next: O) => boolean; | ||
@@ -19,0 +19,0 @@ __keys?: ReadonlyArray<any>; |
import * as React from "react"; | ||
import { As, PropsWithAs } from "reakit-utils/types"; | ||
declare type BoxHTMLProps = React.HTMLAttributes<any> & React.RefAttributes<any> & { | ||
declare type RoleHTMLProps = React.HTMLAttributes<any> & React.RefAttributes<any> & { | ||
wrapElement?: (element: React.ReactNode) => React.ReactNode; | ||
}; | ||
declare type Hook<O> = { | ||
(options?: O, props?: BoxHTMLProps): BoxHTMLProps; | ||
(options?: O, props?: RoleHTMLProps): RoleHTMLProps; | ||
unstable_propsAreEqual?: (prev: O, next: O) => boolean; | ||
@@ -9,0 +9,0 @@ __keys?: ReadonlyArray<any>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107379
+ Addedreakit-utils@0.15.2(transitive)
- Removedreakit-utils@0.14.3(transitive)
Updatedreakit-utils@^0.15.0-alpha.0