-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
39 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
/// <reference types="react" /> | ||
declare const StyletronConsumer: import("react").ExoticComponent<import("react").ConsumerProps<import("styletron-standard").StandardEngine>>; | ||
import { ReactChild } from "react"; | ||
import { StandardEngine } from "styletron-standard"; | ||
declare type StyletronConsumerProps = { | ||
children: (engine: StandardEngine) => ReactChild | null; | ||
}; | ||
declare function StyletronConsumer(props: StyletronConsumerProps): JSX.Element; | ||
export { StyletronConsumer }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
/// <reference types="react" /> | ||
import { Context } from "react"; | ||
import { StandardEngine } from "styletron-standard"; | ||
declare const StyletronContext: import("react").Context<StandardEngine>; | ||
export { StyletronContext }; | ||
declare type StyletronContextValue = { | ||
engine?: StandardEngine; | ||
}; | ||
declare function getStyletronContext(): Context<StyletronContextValue>; | ||
export { getStyletronContext }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
/// <reference types="react" /> | ||
declare const StyletronProvider: import("react").ProviderExoticComponent<import("react").ProviderProps<import("styletron-standard").StandardEngine>>; | ||
import { PropsWithChildren } from "react"; | ||
import { StandardEngine } from 'styletron-standard'; | ||
declare type StyletronProviderProps = PropsWithChildren<{ | ||
engine: StandardEngine; | ||
}>; | ||
declare function StyletronProvider(props: StyletronProviderProps): JSX.Element; | ||
export { StyletronProvider }; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import { StyletronContext } from "./context/styletron-context"; | ||
import { StyletronConsumer } from "./context/styletron-consumer"; | ||
import { StyletronProvider } from "./context/styletron-provider"; | ||
import { StyletronAtomicEngineProvider, DEFAULT_STYLETRON_HYDRATE_QUERY_SELECTOR } from "./providers/styletron-atomic-engine-provider"; | ||
import { getAtomicProvider } from "./utilities/get-provider"; | ||
import { getStyletronClient, getStyletronServer } from "./utilities/get-styletron"; | ||
import { useStyletron } from "./utilities/use-styletron"; | ||
import { useStyletronDriver } from "./utilities/use-styletron-driver"; | ||
import { useStyletron } from "./hooks/use-styletron"; | ||
import { useStyletronDriver } from "./hooks/use-styletron-driver"; | ||
import { withStyletron } from "./utilities/with-styletron"; | ||
export { StyletronContext, StyletronConsumer, StyletronProvider, getAtomicProvider, getStyletronClient, getStyletronServer, useStyletron, useStyletronDriver, withStyletron, StyletronAtomicEngineProvider, DEFAULT_STYLETRON_HYDRATE_QUERY_SELECTOR }; | ||
export { StyletronConsumer, StyletronProvider, getAtomicProvider, getStyletronClient, getStyletronServer, useStyletron, useStyletronDriver, withStyletron, StyletronAtomicEngineProvider, DEFAULT_STYLETRON_HYDRATE_QUERY_SELECTOR }; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
import { StyletronAtomicEngineProvider, StyletronAtomicEngineProviderOptions } from "../providers/styletron-atomic-engine-provider"; | ||
/** | ||
* Return a new instance of a StyletronEngineProvider | ||
* based on StyletronAtomic as its backing engine. | ||
* | ||
* @param options StyletronAtomicEngine configuration options. | ||
*/ | ||
declare function getAtomicProvider(options?: StyletronAtomicEngineProviderOptions): StyletronAtomicEngineProvider; | ||
export { getAtomicProvider }; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
/// <reference types="react" /> | ||
/** | ||
* Passes an styletron instance down the component tree. | ||
* | ||
* @param Component A react component to pass styletron. | ||
*/ | ||
declare const withStyletron: (Component: any) => (props: any) => JSX.Element; | ||
export { withStyletron }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters