@cloudflare/style-container 7.9.0 → 7.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/createStyledComponent.d.ts +11 -2
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -34,7 +34,16 @@ declare type BreakpointStyle<V> = V | [V, V] | [V, V, V];
|
|
|
34
34
|
declare type StyleProps = {
|
|
35
35
|
[P in StyleRuleProp]?: BreakpointStyle<CSSPropertyValue<ExpandedCSSProperty<P>>>;
|
|
36
36
|
};
|
|
37
|
-
declare
|
|
38
|
-
declare
|
|
37
|
+
declare type GridAlignment = 'start' | 'end' | 'center' | 'stretch';
|
|
38
|
+
declare type GridProps = {
|
|
39
|
+
gridColumnSpan?: number | number[] | 'all' | 'end';
|
|
40
|
+
gridColumnPad?: number | number[];
|
|
41
|
+
gridRowSpan?: number | number[];
|
|
42
|
+
gridRowPad?: number | number[];
|
|
43
|
+
gridAlign?: GridAlignment;
|
|
44
|
+
gridJustify?: GridAlignment;
|
|
45
|
+
};
|
|
46
|
+
declare function createStyledComponent<AdditionalStyleProps = {}>(rule: StyleFn<ForceInference<'div'>, StyleProps & AdditionalStyleProps>): ComponentType<Compute<InferProps<'div'> & StyleProps & AdditionalStyleProps & InnerRefProp<'div'> & GridProps>>;
|
|
47
|
+
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>>;
|
|
39
48
|
export default createStyledComponent;
|
|
40
49
|
export { colorProps, spacingProps, sizeProps, borderStyleProps, borderWidthProps, borderRadiusProps };
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/style-container",
|
|
3
3
|
"description": "Cloudflare Style Container",
|
|
4
|
-
"version": "7.
|
|
5
|
-
"types": "./dist/index.d.ts",
|
|
4
|
+
"version": "7.10.0",
|
|
6
5
|
"main": "lib/index.js",
|
|
7
6
|
"module": "es/index.js",
|
|
8
7
|
"author": "Vojtech Miksu <vojtech@cloudflare.com>",
|
|
@@ -10,7 +9,8 @@
|
|
|
10
9
|
"publishConfig": {
|
|
11
10
|
"access": "public",
|
|
12
11
|
"main": "lib/index.js",
|
|
13
|
-
"module": "es/index.js"
|
|
12
|
+
"module": "es/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@cloudflare/types": "^6.15.15",
|
|
@@ -34,5 +34,6 @@
|
|
|
34
34
|
"test": "stratus test",
|
|
35
35
|
"test-coverage": "stratus test --coverage",
|
|
36
36
|
"test-watch": "stratus test --watch"
|
|
37
|
-
}
|
|
37
|
+
},
|
|
38
|
+
"types": "./dist/index.d.ts"
|
|
38
39
|
}
|