@xstyled/styled-components
Advanced tools
Comparing version 4.0.0-beta.0 to 4.0.0-beta.1
import * as styled_components from 'styled-components'; | ||
import { css as css$1, StyledInstance, Styled, createGlobalStyle as createGlobalStyle$1 } from 'styled-components'; | ||
import { createGlobalStyle as createGlobalStyle$1, css as css$1, Styled, StyledInstance, FastOmit, SupportedHTMLElements, IStyledComponent } from 'styled-components'; | ||
export { ServerStyleSheet, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, isStyledComponent, keyframes, useTheme, withTheme } from 'styled-components'; | ||
@@ -50,11 +50,8 @@ import * as _xstyled_system from '@xstyled/system'; | ||
type XCreateGlobalStyle = typeof createGlobalStyle$1; | ||
type XCSSFunction = typeof css$1; | ||
type JSXElementKeys = keyof JSX.IntrinsicElements; | ||
type X<TGen extends StyleGenerator> = { | ||
[Key in JSXElementKeys]: StyledInstance<'web', Key, StyleGeneratorProps<TGen>>; | ||
}; | ||
type BoxStyledTags<TProps extends object> = { | ||
[Key in keyof BoxElements]: StyledInstance<'web', BoxElements[Key], Omit<JSX.IntrinsicElements[BoxElements[Key]], keyof TProps> & TProps>; | ||
[Key in keyof BoxElements]: StyledInstance<'web', BoxElements[Key], FastOmit<JSX.IntrinsicElements[BoxElements[Key]], keyof TProps> & TProps>; | ||
}; | ||
@@ -64,3 +61,5 @@ interface XStyled<TGen extends StyleGenerator> extends Styled, BoxStyledTags<StyleGeneratorProps<TGen>> { | ||
type XCreateGlobalStyle = typeof createGlobalStyle$1; | ||
type X<TGen extends StyleGenerator> = { | ||
[Key in SupportedHTMLElements]: IStyledComponent<'web', FastOmit<JSX.IntrinsicElements[Key], keyof StyleGeneratorProps<TGen>> & StyleGeneratorProps<TGen>>; | ||
}; | ||
@@ -67,0 +66,0 @@ interface XStyledSet<TGen extends StyleGenerator> { |
{ | ||
"name": "@xstyled/styled-components", | ||
"description": "A utility-first CSS-in-JS framework built for React (styled-components bindings).", | ||
"version": "4.0.0-beta.0", | ||
"version": "4.0.0-beta.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "styled-components", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
61152
438