@workday/canvas-kit-react 11.0.1 → 11.0.3
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 +7 -6
- package/dist/es6/layout/lib/utils/mergeStyles.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/mergeStyles.js +6 -5
- package/layout/lib/utils/mergeStyles.ts +6 -5
- 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;AAczE,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,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;AA4B9C;;;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,13 +3,13 @@ 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");
|
|
7
6
|
const background_1 = require("./background");
|
|
8
7
|
const border_1 = require("./border");
|
|
9
8
|
const color_1 = require("./color");
|
|
10
9
|
const depth_1 = require("./depth");
|
|
11
|
-
const
|
|
10
|
+
const flex_1 = require("./flex");
|
|
12
11
|
const flexItem_1 = require("./flexItem");
|
|
12
|
+
const grid_1 = require("./grid");
|
|
13
13
|
const gridItem_1 = require("./gridItem");
|
|
14
14
|
const layout_1 = require("./layout");
|
|
15
15
|
const other_1 = require("./other");
|
|
@@ -22,8 +22,9 @@ const stylePropHash = [
|
|
|
22
22
|
...border_1.borderStyleFnConfigs,
|
|
23
23
|
...color_1.colorStyleFnConfigs,
|
|
24
24
|
...depth_1.depthStyleFnConfigs,
|
|
25
|
-
...
|
|
25
|
+
...flex_1.flexStyleFnConfigs,
|
|
26
26
|
...flexItem_1.flexItemStyleFnConfigs,
|
|
27
|
+
...grid_1.gridStyleFnConfigs,
|
|
27
28
|
...gridItem_1.gridItemStyleFnConfigs,
|
|
28
29
|
...layout_1.layoutStyleFnConfigs,
|
|
29
30
|
...other_1.otherStyleFnConfigs,
|
|
@@ -70,10 +71,10 @@ localCs) {
|
|
|
70
71
|
return result;
|
|
71
72
|
}, {});
|
|
72
73
|
let styles = {};
|
|
73
|
-
// We have style props
|
|
74
|
-
// merging order for styles
|
|
74
|
+
// We have style props currently and we will need to create style and merge with our `csToProps` to get the correct
|
|
75
|
+
// merging order for styles. This includes box, flex and grid styles.
|
|
75
76
|
if (shouldRuntimeMergeStyles) {
|
|
76
|
-
styles = { ...Box_1.boxStyleFn(styleProps), ...flex_1.flex(styleProps) };
|
|
77
|
+
styles = { ...Box_1.boxStyleFn(styleProps), ...flex_1.flex(styleProps), ...grid_1.grid(styleProps) };
|
|
77
78
|
}
|
|
78
79
|
return canvas_kit_styling_1.handleCsProp(elemProps, [localCs, styles]);
|
|
79
80
|
}
|
|
@@ -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;AAczE,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,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;AA4B9C;;;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,12 +1,12 @@
|
|
|
1
1
|
import { handleCsProp } from '@workday/canvas-kit-styling';
|
|
2
2
|
import { boxStyleFn } from '../Box';
|
|
3
|
-
import { flex } from '../utils/flex';
|
|
4
3
|
import { backgroundStyleFnConfigs } from './background';
|
|
5
4
|
import { borderStyleFnConfigs } from './border';
|
|
6
5
|
import { colorStyleFnConfigs } from './color';
|
|
7
6
|
import { depthStyleFnConfigs } from './depth';
|
|
8
|
-
import { flexStyleFnConfigs } from './flex';
|
|
7
|
+
import { flex, flexStyleFnConfigs } from './flex';
|
|
9
8
|
import { flexItemStyleFnConfigs } from './flexItem';
|
|
9
|
+
import { grid, gridStyleFnConfigs } from './grid';
|
|
10
10
|
import { gridItemStyleFnConfigs } from './gridItem';
|
|
11
11
|
import { layoutStyleFnConfigs } from './layout';
|
|
12
12
|
import { otherStyleFnConfigs } from './other';
|
|
@@ -21,6 +21,7 @@ const stylePropHash = [
|
|
|
21
21
|
...depthStyleFnConfigs,
|
|
22
22
|
...flexStyleFnConfigs,
|
|
23
23
|
...flexItemStyleFnConfigs,
|
|
24
|
+
...gridStyleFnConfigs,
|
|
24
25
|
...gridItemStyleFnConfigs,
|
|
25
26
|
...layoutStyleFnConfigs,
|
|
26
27
|
...otherStyleFnConfigs,
|
|
@@ -67,10 +68,10 @@ localCs) {
|
|
|
67
68
|
return result;
|
|
68
69
|
}, {});
|
|
69
70
|
let styles = {};
|
|
70
|
-
// We have style props
|
|
71
|
-
// merging order for styles
|
|
71
|
+
// We have style props currently and we will need to create style and merge with our `csToProps` to get the correct
|
|
72
|
+
// merging order for styles. This includes box, flex and grid styles.
|
|
72
73
|
if (shouldRuntimeMergeStyles) {
|
|
73
|
-
styles = { ...boxStyleFn(styleProps), ...flex(styleProps) };
|
|
74
|
+
styles = { ...boxStyleFn(styleProps), ...flex(styleProps), ...grid(styleProps) };
|
|
74
75
|
}
|
|
75
76
|
return handleCsProp(elemProps, [localCs, styles]);
|
|
76
77
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {CSToPropsInput, handleCsProp} from '@workday/canvas-kit-styling';
|
|
2
2
|
import {boxStyleFn} from '../Box';
|
|
3
|
-
import {flex} from '../utils/flex';
|
|
4
3
|
import {backgroundStyleFnConfigs} from './background';
|
|
5
4
|
import {borderStyleFnConfigs} from './border';
|
|
6
5
|
import {colorStyleFnConfigs} from './color';
|
|
7
6
|
import {depthStyleFnConfigs} from './depth';
|
|
8
|
-
import {flexStyleFnConfigs} from './flex';
|
|
7
|
+
import {flex, flexStyleFnConfigs} from './flex';
|
|
9
8
|
import {flexItemStyleFnConfigs} from './flexItem';
|
|
9
|
+
import {grid, gridStyleFnConfigs} from './grid';
|
|
10
10
|
import {gridItemStyleFnConfigs} from './gridItem';
|
|
11
11
|
import {layoutStyleFnConfigs} from './layout';
|
|
12
12
|
import {otherStyleFnConfigs} from './other';
|
|
@@ -23,6 +23,7 @@ const stylePropHash = [
|
|
|
23
23
|
...depthStyleFnConfigs,
|
|
24
24
|
...flexStyleFnConfigs,
|
|
25
25
|
...flexItemStyleFnConfigs,
|
|
26
|
+
...gridStyleFnConfigs,
|
|
26
27
|
...gridItemStyleFnConfigs,
|
|
27
28
|
...layoutStyleFnConfigs,
|
|
28
29
|
...otherStyleFnConfigs,
|
|
@@ -75,10 +76,10 @@ export function mergeStyles<T extends {}>(
|
|
|
75
76
|
|
|
76
77
|
let styles = {};
|
|
77
78
|
|
|
78
|
-
// We have style props
|
|
79
|
-
// merging order for styles
|
|
79
|
+
// We have style props currently and we will need to create style and merge with our `csToProps` to get the correct
|
|
80
|
+
// merging order for styles. This includes box, flex and grid styles.
|
|
80
81
|
if (shouldRuntimeMergeStyles) {
|
|
81
|
-
styles = {...boxStyleFn(styleProps), ...flex(styleProps)};
|
|
82
|
+
styles = {...boxStyleFn(styleProps), ...flex(styleProps), ...grid(styleProps)};
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
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.
|
|
3
|
+
"version": "11.0.3",
|
|
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.
|
|
53
|
-
"@workday/canvas-kit-styling": "^11.0.
|
|
52
|
+
"@workday/canvas-kit-popup-stack": "^11.0.3",
|
|
53
|
+
"@workday/canvas-kit-styling": "^11.0.3",
|
|
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": "5ba63c8853ade41d8dadf9d7e98203acb15a3fc3"
|
|
71
71
|
}
|