@cloudflare/style-container
Advanced tools
Comparing version 4.0.13 to 4.0.14
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="4.0.14"></a> | ||
## [4.0.14](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/style-container@4.0.13...@cloudflare/style-container@4.0.14) (2018-09-27) | ||
**Note:** Version bump only for package @cloudflare/style-container | ||
<a name="4.0.13"></a> | ||
@@ -15,3 +23,3 @@ ## [4.0.13](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/style-container@4.0.12...@cloudflare/style-container@4.0.13) (2018-09-21) | ||
<a name="4.0.12"></a> | ||
<a name="4.0.12"></a> | ||
## [4.0.12](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/style-container@4.0.11...@cloudflare/style-container@4.0.12) (2018-09-10) | ||
@@ -24,3 +32,3 @@ | ||
<a name="4.0.11"></a> | ||
<a name="4.0.11"></a> | ||
## [4.0.11](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/style-container@4.0.10...@cloudflare/style-container@4.0.11) (2018-08-22) | ||
@@ -33,3 +41,3 @@ | ||
<a name="4.0.10"></a> | ||
<a name="4.0.10"></a> | ||
## [4.0.10](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/style-container@4.0.9...@cloudflare/style-container@4.0.10) (2018-08-17) | ||
@@ -45,3 +53,3 @@ | ||
<a name="4.0.9"></a> | ||
<a name="4.0.9"></a> | ||
## [4.0.9](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/style-container@4.0.8...@cloudflare/style-container@4.0.9) (2018-08-01) | ||
@@ -48,0 +56,0 @@ |
declare module '@cloudflare/style-container' { | ||
import * as React from 'react'; | ||
import { Style, FelaHtmlComponent } from 'react-fela'; | ||
import { variables } from '@cloudflare/style-const/src'; | ||
import { variables } from '@cloudflare/style-const'; | ||
@@ -33,8 +33,12 @@ export { ThemeProvider } from 'react-fela'; | ||
Props, | ||
ComponentProps = {}, | ||
ComponentElem extends HTMLElement = HTMLDivElement, | ||
ComponentProps = {}, | ||
Tag extends keyof HTMLElementTagNameMap = keyof HTMLElementTagNameMap | ||
>( | ||
rule: TStyle<Props & TThemable>, | ||
base?: Tag | FelaHtmlComponent<ComponentProps, ComponentElem>, | ||
base?: | ||
| Tag | ||
| FelaHtmlComponent<ComponentProps, ComponentElem> | ||
| React.ComponentClass<ComponentProps> | ||
| React.SFC<ComponentProps>, | ||
passThroughProps?: string[] | ||
@@ -41,0 +45,0 @@ ): React.SFC<Props & ComponentProps & { className?: string }>; |
{ | ||
"name": "@cloudflare/style-container", | ||
"description": "Cloudflare Style Container", | ||
"version": "4.0.13", | ||
"version": "4.0.14", | ||
"types": "./src", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -18,4 +18,4 @@ import * as React from 'react'; | ||
Props, | ||
ComponentProps = {}, | ||
ComponentElem extends HTMLElement = HTMLDivElement, | ||
ComponentProps = {}, | ||
Tag extends keyof HTMLElementTagNameMap = keyof HTMLElementTagNameMap | ||
@@ -27,2 +27,3 @@ >( | ||
| FelaHtmlComponent<ComponentProps, ComponentElem> | ||
| React.ComponentClass<ComponentProps, ComponentElem> | ||
| React.SFC<ComponentProps> = 'div' as Tag, | ||
@@ -34,4 +35,4 @@ passThroughProps: string[] = [] | ||
base as any, | ||
typeof base !== 'string' && base.propTypes | ||
? passThroughProps.concat(Object.keys(base.propTypes)) | ||
typeof base !== 'string' && (base as any).propTypes | ||
? passThroughProps.concat(Object.keys((base as any).propTypes)) | ||
: passThroughProps | ||
@@ -38,0 +39,0 @@ ) as any; |
104012
1467