@cloudflare/style-container 7.11.0 → 7.12.1
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
CHANGED
|
@@ -25,7 +25,7 @@ declare const colorProps: readonly ["color", "backgroundColor", "borderColor", "
|
|
|
25
25
|
declare const borderStyleProps: readonly ["borderStyle", "borderTopStyle", "borderBottomStyle", "borderLeftStyle", "borderRightStyle"];
|
|
26
26
|
declare const borderWidthProps: readonly ["borderWidth", "borderTopWidth", "borderBottomWidth", "borderLeftWidth", "borderRightWidth"];
|
|
27
27
|
declare const borderRadiusProps: readonly ["borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderbottomRightRadius"];
|
|
28
|
-
export declare const styleRuleProps: ("
|
|
28
|
+
export declare const styleRuleProps: ("color" | "borderColor" | "p" | "height" | "width" | "cursor" | "display" | "fontSize" | "fontWeight" | "textDecoration" | "margin" | "marginLeft" | "marginRight" | "marginTop" | "marginBottom" | "padding" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingBottom" | "gap" | "m" | "ml" | "mr" | "mt" | "mb" | "mx" | "my" | "pl" | "pr" | "pt" | "pb" | "px" | "py" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "backgroundColor" | "borderLeftColor" | "borderRightColor" | "borderTopColor" | "borderBottomColor" | "borderStyle" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderWidth" | "borderTopWidth" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderbottomRightRadius" | "textAlign" | "verticalAlign" | "alignItems" | "alignSelf" | "justifyContent" | "textTransform" | "boxSizing" | "flexDirection" | "flexBasis" | "flexGrow" | "gridTemplateColumns")[];
|
|
29
29
|
export declare function filterStyleProps<Type extends {}>(props: Type): Type;
|
|
30
30
|
declare type StyleRuleProp = typeof styleRuleProps[number];
|
|
31
31
|
declare type ExpandedCSSProperty<P extends StyleRuleProp> = P extends ShorthandSpacingProp ? ShorthandToLonghandMap[P][0] : P;
|
|
@@ -36,7 +36,7 @@ var colorProps = ['color', 'backgroundColor', 'borderColor', 'borderLeftColor',
|
|
|
36
36
|
var borderStyleProps = ['borderStyle', 'borderTopStyle', 'borderBottomStyle', 'borderLeftStyle', 'borderRightStyle'];
|
|
37
37
|
var borderWidthProps = ['borderWidth', 'borderTopWidth', 'borderBottomWidth', 'borderLeftWidth', 'borderRightWidth'];
|
|
38
38
|
var borderRadiusProps = ['borderRadius', 'borderTopLeftRadius', 'borderTopRightRadius', 'borderBottomLeftRadius', 'borderbottomRightRadius'];
|
|
39
|
-
var additionalProps = ['fontSize', 'fontWeight', 'textAlign', 'display', 'width', 'verticalAlign', 'alignItems', 'alignSelf', 'justifyContent', 'textDecoration', 'textTransform', 'boxSizing', 'cursor', 'flexDirection', 'flexBasis', 'flexGrow'];
|
|
39
|
+
var additionalProps = ['fontSize', 'fontWeight', 'textAlign', 'display', 'width', 'verticalAlign', 'alignItems', 'alignSelf', 'justifyContent', 'textDecoration', 'textTransform', 'boxSizing', 'cursor', 'flexDirection', 'flexBasis', 'flexGrow', 'gridTemplateColumns'];
|
|
40
40
|
export var styleRuleProps = [...spacingProps, ...sizeProps, ...colorProps, ...borderStyleProps, ...borderWidthProps, ...borderRadiusProps, ...additionalProps];
|
|
41
41
|
var stylesRulePropsSet = new Set(styleRuleProps); // Function to remove styling attributes from a Props object
|
|
42
42
|
|
|
@@ -76,7 +76,7 @@ var borderWidthProps = ['borderWidth', 'borderTopWidth', 'borderBottomWidth', 'b
|
|
|
76
76
|
exports.borderWidthProps = borderWidthProps;
|
|
77
77
|
var borderRadiusProps = ['borderRadius', 'borderTopLeftRadius', 'borderTopRightRadius', 'borderBottomLeftRadius', 'borderbottomRightRadius'];
|
|
78
78
|
exports.borderRadiusProps = borderRadiusProps;
|
|
79
|
-
var additionalProps = ['fontSize', 'fontWeight', 'textAlign', 'display', 'width', 'verticalAlign', 'alignItems', 'alignSelf', 'justifyContent', 'textDecoration', 'textTransform', 'boxSizing', 'cursor', 'flexDirection', 'flexBasis', 'flexGrow'];
|
|
79
|
+
var additionalProps = ['fontSize', 'fontWeight', 'textAlign', 'display', 'width', 'verticalAlign', 'alignItems', 'alignSelf', 'justifyContent', 'textDecoration', 'textTransform', 'boxSizing', 'cursor', 'flexDirection', 'flexBasis', 'flexGrow', 'gridTemplateColumns'];
|
|
80
80
|
var styleRuleProps = [].concat(_toConsumableArray(spacingProps), sizeProps, colorProps, borderStyleProps, borderWidthProps, borderRadiusProps, additionalProps);
|
|
81
81
|
exports.styleRuleProps = styleRuleProps;
|
|
82
82
|
var stylesRulePropsSet = new Set(styleRuleProps); // Function to remove styling attributes from a Props object
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/style-container",
|
|
3
3
|
"description": "Cloudflare Style Container",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.12.1",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"author": "Vojtech Miksu <vojtech@cloudflare.com>",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"types": "./dist/index.d.ts"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@cloudflare/types": "^6.
|
|
16
|
+
"@cloudflare/types": "^6.21.15",
|
|
17
17
|
"fela": "^11.6.1",
|
|
18
18
|
"fela-tools": "^11.6.1",
|
|
19
19
|
"lodash": "^4.17.21",
|