@workday/canvas-kit-react 11.0.0-alpha.781-next.0 → 11.0.0-alpha.786-next.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/dist/commonjs/layout/lib/utils/mergeStyles.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/mergeStyles.js +4 -1
- package/dist/es6/layout/lib/utils/mergeStyles.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/mergeStyles.js +4 -1
- package/layout/lib/utils/mergeStyles.ts +4 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeStyles.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/mergeStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAe,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"mergeStyles.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/mergeStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAe,MAAM,6BAA6B,CAAC;AAczE,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AA2B9C;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,EAAE;AACtC;;;GAGG;AACH,QAAQ,EAAE,CAAC;AACX;;;GAGG;AACH,OAAO,CAAC,EAAE,cAAc,GACvB,IAAI,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,gBAAgB,CAAC,CA4BxC"}
|
|
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.mergeStyles = void 0;
|
|
4
4
|
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
5
5
|
const Box_1 = require("../Box");
|
|
6
|
+
const flex_1 = require("../utils/flex");
|
|
6
7
|
const background_1 = require("./background");
|
|
7
8
|
const border_1 = require("./border");
|
|
8
9
|
const color_1 = require("./color");
|
|
9
10
|
const depth_1 = require("./depth");
|
|
11
|
+
const flex_2 = require("./flex");
|
|
10
12
|
const flexItem_1 = require("./flexItem");
|
|
11
13
|
const gridItem_1 = require("./gridItem");
|
|
12
14
|
const layout_1 = require("./layout");
|
|
@@ -20,6 +22,7 @@ const stylePropHash = [
|
|
|
20
22
|
...border_1.borderStyleFnConfigs,
|
|
21
23
|
...color_1.colorStyleFnConfigs,
|
|
22
24
|
...depth_1.depthStyleFnConfigs,
|
|
25
|
+
...flex_2.flexStyleFnConfigs,
|
|
23
26
|
...flexItem_1.flexItemStyleFnConfigs,
|
|
24
27
|
...gridItem_1.gridItemStyleFnConfigs,
|
|
25
28
|
...layout_1.layoutStyleFnConfigs,
|
|
@@ -70,7 +73,7 @@ localCs) {
|
|
|
70
73
|
// We have style props. We need to create style and merge with our `csToProps` to get the correct
|
|
71
74
|
// merging order for styles
|
|
72
75
|
if (shouldRuntimeMergeStyles) {
|
|
73
|
-
styles = Box_1.boxStyleFn(styleProps);
|
|
76
|
+
styles = { ...Box_1.boxStyleFn(styleProps), ...flex_1.flex(styleProps) };
|
|
74
77
|
}
|
|
75
78
|
return canvas_kit_styling_1.handleCsProp(elemProps, [localCs, styles]);
|
|
76
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeStyles.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/mergeStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAe,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"mergeStyles.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/mergeStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAe,MAAM,6BAA6B,CAAC;AAczE,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AA2B9C;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,EAAE;AACtC;;;GAGG;AACH,QAAQ,EAAE,CAAC;AACX;;;GAGG;AACH,OAAO,CAAC,EAAE,cAAc,GACvB,IAAI,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,gBAAgB,CAAC,CA4BxC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { handleCsProp } from '@workday/canvas-kit-styling';
|
|
2
2
|
import { boxStyleFn } from '../Box';
|
|
3
|
+
import { flex } from '../utils/flex';
|
|
3
4
|
import { backgroundStyleFnConfigs } from './background';
|
|
4
5
|
import { borderStyleFnConfigs } from './border';
|
|
5
6
|
import { colorStyleFnConfigs } from './color';
|
|
6
7
|
import { depthStyleFnConfigs } from './depth';
|
|
8
|
+
import { flexStyleFnConfigs } from './flex';
|
|
7
9
|
import { flexItemStyleFnConfigs } from './flexItem';
|
|
8
10
|
import { gridItemStyleFnConfigs } from './gridItem';
|
|
9
11
|
import { layoutStyleFnConfigs } from './layout';
|
|
@@ -17,6 +19,7 @@ const stylePropHash = [
|
|
|
17
19
|
...borderStyleFnConfigs,
|
|
18
20
|
...colorStyleFnConfigs,
|
|
19
21
|
...depthStyleFnConfigs,
|
|
22
|
+
...flexStyleFnConfigs,
|
|
20
23
|
...flexItemStyleFnConfigs,
|
|
21
24
|
...gridItemStyleFnConfigs,
|
|
22
25
|
...layoutStyleFnConfigs,
|
|
@@ -67,7 +70,7 @@ localCs) {
|
|
|
67
70
|
// We have style props. We need to create style and merge with our `csToProps` to get the correct
|
|
68
71
|
// merging order for styles
|
|
69
72
|
if (shouldRuntimeMergeStyles) {
|
|
70
|
-
styles = boxStyleFn(styleProps);
|
|
73
|
+
styles = { ...boxStyleFn(styleProps), ...flex(styleProps) };
|
|
71
74
|
}
|
|
72
75
|
return handleCsProp(elemProps, [localCs, styles]);
|
|
73
76
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {CSToPropsInput, handleCsProp} from '@workday/canvas-kit-styling';
|
|
2
2
|
import {boxStyleFn} from '../Box';
|
|
3
|
+
import {flex} from '../utils/flex';
|
|
3
4
|
import {backgroundStyleFnConfigs} from './background';
|
|
4
5
|
import {borderStyleFnConfigs} from './border';
|
|
5
6
|
import {colorStyleFnConfigs} from './color';
|
|
6
7
|
import {depthStyleFnConfigs} from './depth';
|
|
8
|
+
import {flexStyleFnConfigs} from './flex';
|
|
7
9
|
import {flexItemStyleFnConfigs} from './flexItem';
|
|
8
10
|
import {gridItemStyleFnConfigs} from './gridItem';
|
|
9
11
|
import {layoutStyleFnConfigs} from './layout';
|
|
@@ -19,6 +21,7 @@ const stylePropHash = [
|
|
|
19
21
|
...borderStyleFnConfigs,
|
|
20
22
|
...colorStyleFnConfigs,
|
|
21
23
|
...depthStyleFnConfigs,
|
|
24
|
+
...flexStyleFnConfigs,
|
|
22
25
|
...flexItemStyleFnConfigs,
|
|
23
26
|
...gridItemStyleFnConfigs,
|
|
24
27
|
...layoutStyleFnConfigs,
|
|
@@ -75,7 +78,7 @@ export function mergeStyles<T extends {}>(
|
|
|
75
78
|
// We have style props. We need to create style and merge with our `csToProps` to get the correct
|
|
76
79
|
// merging order for styles
|
|
77
80
|
if (shouldRuntimeMergeStyles) {
|
|
78
|
-
styles = boxStyleFn(styleProps);
|
|
81
|
+
styles = {...boxStyleFn(styleProps), ...flex(styleProps)};
|
|
79
82
|
}
|
|
80
83
|
|
|
81
84
|
return handleCsProp(elemProps, [localCs, styles]) as Omit<T, 'cs' | keyof CommonStyleProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-react",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.786-next.0",
|
|
4
4
|
"description": "The parent module that contains all Workday Canvas Kit React components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@emotion/styled": "^11.6.0",
|
|
50
50
|
"@popperjs/core": "^2.5.4",
|
|
51
51
|
"@workday/canvas-colors-web": "^2.0.0",
|
|
52
|
-
"@workday/canvas-kit-popup-stack": "^11.0.0-alpha.
|
|
53
|
-
"@workday/canvas-kit-styling": "^11.0.0-alpha.
|
|
52
|
+
"@workday/canvas-kit-popup-stack": "^11.0.0-alpha.786-next.0",
|
|
53
|
+
"@workday/canvas-kit-styling": "^11.0.0-alpha.786-next.0",
|
|
54
54
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
55
55
|
"@workday/canvas-tokens-web": "^1.3.1",
|
|
56
56
|
"@workday/design-assets-types": "^0.2.8",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"@workday/canvas-accent-icons-web": "^3.0.0",
|
|
68
68
|
"@workday/canvas-applet-icons-web": "^2.0.0"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "a458eab71b613b651ae52d73d23a22a03fe9674b"
|
|
71
71
|
}
|