@cloudflare/style-container 7.5.2 → 7.5.6
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
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.5.6](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/style-container@7.5.5...@cloudflare/style-container@7.5.6) (2021-11-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **style-const:** UI-574 Add cursor to styled props ([48da4cc](http://stash.cfops.it:7999/fe/stratus/commits/48da4cc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [7.5.5](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/style-container@7.5.2...@cloudflare/style-container@7.5.5) (2021-10-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **stratus:** UI-000: Ran yarn run v1.18.0 ([54f1c7e](http://stash.cfops.it:7999/fe/stratus/commits/54f1c7e))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [7.5.2](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/style-container@7.5.1...@cloudflare/style-container@7.5.2) (2021-10-01)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @cloudflare/style-container
|
|
@@ -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
|
-
declare const styleRuleProps: ("p" | "color" | "height" | "width" | "display" | "fontSize" | "fontWeight" | "textAlign" | "backgroundColor" | "borderColor" | "borderLeftColor" | "borderRightColor" | "borderTopColor" | "borderBottomColor" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "margin" | "marginTop" | "marginRight" | "marginLeft" | "padding" | "paddingTop" | "paddingRight" | "paddingLeft" | "borderRadius" | "verticalAlign" | "borderBottomLeftRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftStyle" | "borderLeftWidth" | "borderRightStyle" | "borderRightWidth" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "marginBottom" | "paddingBottom" | "borderStyle" | "borderWidth" | "m" | "ml" | "mr" | "mt" | "mb" | "mx" | "my" | "pl" | "pr" | "pt" | "pb" | "px" | "py" | "borderbottomRightRadius")[];
|
|
28
|
+
declare const styleRuleProps: ("p" | "color" | "height" | "width" | "cursor" | "display" | "fontSize" | "fontWeight" | "textDecoration" | "textAlign" | "backgroundColor" | "borderColor" | "borderLeftColor" | "borderRightColor" | "borderTopColor" | "borderBottomColor" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "margin" | "marginTop" | "marginRight" | "marginLeft" | "padding" | "paddingTop" | "paddingRight" | "paddingLeft" | "borderRadius" | "verticalAlign" | "alignItems" | "alignSelf" | "borderBottomLeftRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftStyle" | "borderLeftWidth" | "borderRightStyle" | "borderRightWidth" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "boxSizing" | "justifyContent" | "marginBottom" | "paddingBottom" | "textTransform" | "borderStyle" | "borderWidth" | "m" | "ml" | "mr" | "mt" | "mb" | "mx" | "my" | "pl" | "pr" | "pt" | "pb" | "px" | "py" | "borderbottomRightRadius")[];
|
|
29
29
|
declare type StyleRuleProp = typeof styleRuleProps[number];
|
|
30
30
|
declare type ExpandedCSSProperty<P extends StyleRuleProp> = P extends ShorthandSpacingProp ? ShorthandToLonghandMap[P][0] : P;
|
|
31
31
|
declare type CSSPropertyValue<P> = P extends keyof React.CSSProperties ? React.CSSProperties[P] : never;
|
|
@@ -34,7 +34,7 @@ const colorProps = ['color', 'backgroundColor', 'borderColor', 'borderLeftColor'
|
|
|
34
34
|
const borderStyleProps = ['borderStyle', 'borderTopStyle', 'borderBottomStyle', 'borderLeftStyle', 'borderRightStyle'];
|
|
35
35
|
const borderWidthProps = ['borderWidth', 'borderTopWidth', 'borderBottomWidth', 'borderLeftWidth', 'borderRightWidth'];
|
|
36
36
|
const borderRadiusProps = ['borderRadius', 'borderTopLeftRadius', 'borderTopRightRadius', 'borderBottomLeftRadius', 'borderbottomRightRadius'];
|
|
37
|
-
const additionalProps = ['fontSize', 'fontWeight', 'textAlign', 'display', 'width', 'verticalAlign'];
|
|
37
|
+
const additionalProps = ['fontSize', 'fontWeight', 'textAlign', 'display', 'width', 'verticalAlign', 'alignItems', 'alignSelf', 'justifyContent', 'textDecoration', 'textTransform', 'boxSizing', 'cursor'];
|
|
38
38
|
const styleRuleProps = [...spacingProps, ...sizeProps, ...colorProps, ...borderStyleProps, ...borderWidthProps, ...borderRadiusProps, ...additionalProps];
|
|
39
39
|
// gotta broaden from Set<StyleRuleProp> to a ReadonlySet<string> so we can check
|
|
40
40
|
// if arbitrary strings are in it via propsSet.has(maybeStyleRuleProp)
|
|
@@ -70,7 +70,7 @@ var borderWidthProps = ['borderWidth', 'borderTopWidth', 'borderBottomWidth', 'b
|
|
|
70
70
|
exports.borderWidthProps = borderWidthProps;
|
|
71
71
|
var borderRadiusProps = ['borderRadius', 'borderTopLeftRadius', 'borderTopRightRadius', 'borderBottomLeftRadius', 'borderbottomRightRadius'];
|
|
72
72
|
exports.borderRadiusProps = borderRadiusProps;
|
|
73
|
-
var additionalProps = ['fontSize', 'fontWeight', 'textAlign', 'display', 'width', 'verticalAlign'];
|
|
73
|
+
var additionalProps = ['fontSize', 'fontWeight', 'textAlign', 'display', 'width', 'verticalAlign', 'alignItems', 'alignSelf', 'justifyContent', 'textDecoration', 'textTransform', 'boxSizing', 'cursor'];
|
|
74
74
|
|
|
75
75
|
var styleRuleProps = _toConsumableArray(spacingProps).concat(sizeProps, colorProps, borderStyleProps, borderWidthProps, borderRadiusProps, additionalProps);
|
|
76
76
|
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/style-container",
|
|
3
3
|
"description": "Cloudflare Style Container",
|
|
4
|
-
"version": "7.5.
|
|
4
|
+
"version": "7.5.6",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
8
8
|
"author": "Vojtech Miksu <vojtech@cloudflare.com>",
|
|
9
9
|
"license": "BSD-3-Clause",
|
|
10
10
|
"publishConfig": {
|
|
11
|
-
"registry": "
|
|
11
|
+
"registry": "https://registry.npmjs.org/",
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@cloudflare/style-const": "^5.0
|
|
16
|
-
"@cloudflare/types": "^6.
|
|
15
|
+
"@cloudflare/style-const": "^5.1.0",
|
|
16
|
+
"@cloudflare/types": "^6.11.0",
|
|
17
17
|
"fela": "^11.6.1",
|
|
18
18
|
"fela-tools": "^11.6.1",
|
|
19
19
|
"fela-utils": "^11.6.1",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"test-coverage": "stratus test --coverage",
|
|
37
37
|
"test-watch": "stratus test --watch"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "6aca0d19de9e98ce2fd58663f14a19442df60334"
|
|
40
40
|
}
|