@cloudflare/style-container
Advanced tools
Comparing version 7.9.0 to 7.10.0
@@ -37,5 +37,14 @@ import { ComponentType } from 'react'; | ||
}; | ||
declare function createStyledComponent<AdditionalStyleProps = {}>(rule: StyleFn<ForceInference<'div'>, StyleProps & AdditionalStyleProps>): ComponentType<Compute<InferProps<'div'> & StyleProps & AdditionalStyleProps & InnerRefProp<'div'>>>; | ||
declare function createStyledComponent<Base extends BaseType, AdditionalStyleProps = {}>(rule: StyleFn<ForceInference<Base>, StyleProps & AdditionalStyleProps>, type?: Base, passthroughProps?: string[]): ComponentType<Compute<InferProps<Base> & StyleProps & AdditionalStyleProps & InnerRefProp<Base>>>; | ||
declare type GridAlignment = 'start' | 'end' | 'center' | 'stretch'; | ||
declare type GridProps = { | ||
gridColumnSpan?: number | number[] | 'all' | 'end'; | ||
gridColumnPad?: number | number[]; | ||
gridRowSpan?: number | number[]; | ||
gridRowPad?: number | number[]; | ||
gridAlign?: GridAlignment; | ||
gridJustify?: GridAlignment; | ||
}; | ||
declare function createStyledComponent<AdditionalStyleProps = {}>(rule: StyleFn<ForceInference<'div'>, StyleProps & AdditionalStyleProps>): ComponentType<Compute<InferProps<'div'> & StyleProps & AdditionalStyleProps & InnerRefProp<'div'> & GridProps>>; | ||
declare function createStyledComponent<Base extends BaseType, AdditionalStyleProps = {}>(rule: StyleFn<ForceInference<Base>, StyleProps & AdditionalStyleProps>, type?: Base, passthroughProps?: string[]): ComponentType<Compute<InferProps<Base> & StyleProps & AdditionalStyleProps & InnerRefProp<Base> & GridProps>>; | ||
export default createStyledComponent; | ||
export { colorProps, spacingProps, sizeProps, borderStyleProps, borderWidthProps, borderRadiusProps }; |
{ | ||
"name": "@cloudflare/style-container", | ||
"description": "Cloudflare Style Container", | ||
"version": "7.9.0", | ||
"types": "./dist/index.d.ts", | ||
"version": "7.10.0", | ||
"main": "lib/index.js", | ||
@@ -13,3 +12,4 @@ "module": "es/index.js", | ||
"main": "lib/index.js", | ||
"module": "es/index.js" | ||
"module": "es/index.js", | ||
"types": "./dist/index.d.ts" | ||
}, | ||
@@ -38,3 +38,4 @@ "dependencies": { | ||
"test-watch": "stratus test --watch" | ||
} | ||
}, | ||
"types": "./dist/index.d.ts" | ||
} |
Sorry, the diff of this file is too big to display
230657
1354