@react-style-system/core
Advanced tools
+1
-1
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
| var React__default = 'default' in React ? React['default'] : React; | ||
| invariant = invariant && invariant.hasOwnProperty('default') ? invariant['default'] : invariant; | ||
| invariant = invariant && Object.prototype.hasOwnProperty.call(invariant, 'default') ? invariant['default'] : invariant; | ||
@@ -11,0 +11,0 @@ var ColorContext = React.createContext(null); |
+4
-4
| { | ||
| "name": "@react-style-system/core", | ||
| "version": "0.0.0-b16b1ecf1", | ||
| "version": "0.0.0-f7f8aab2b", | ||
| "author": { | ||
@@ -25,6 +25,6 @@ "email": "ricokahler@me.com", | ||
| "dependencies": { | ||
| "@types/invariant": "^2.2.31", | ||
| "invariant": "^2.2.4", | ||
| "polished": "^3.4.4" | ||
| "@types/invariant": "2.2.31", | ||
| "invariant": "2.2.4", | ||
| "polished": "3.4.4" | ||
| } | ||
| } |
+15
-0
@@ -39,3 +39,18 @@ /// <reference types="react" /> | ||
| surface: string; | ||
| staticVar: (value: string) => string; | ||
| }; | ||
| export declare type GetComponentProps<ComponentType extends ReactComponent> = ComponentType extends React.ComponentType<infer U> ? U : ComponentType extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[ComponentType] : any; | ||
| export declare type UseStyles<T, ComponentType extends ReactComponent = 'div'> = (props: StyleProps<T>, component?: ComponentType) => { | ||
| Root: React.ComponentType<GetComponentProps<ComponentType>>; | ||
| styles: { | ||
| [P in keyof T]: string; | ||
| } & { | ||
| cssVariableObject: { | ||
| [key: string]: string; | ||
| }; | ||
| }; | ||
| }; | ||
| export declare type StylesObj = { | ||
| [key: string]: string; | ||
| }; | ||
| export {}; |
22726
3.17%239
6.7%+ Added
+ Added
- Removed
- Removed
Updated
Updated
Updated