@workday/canvas-kit-react 15.0.0-alpha.1283-next.0 → 15.0.0-alpha.1285-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/Box.d.ts +1 -0
- package/dist/commonjs/layout/lib/Box.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Box.js +2 -0
- package/dist/commonjs/layout/lib/utils/background.d.ts +25 -8
- package/dist/commonjs/layout/lib/utils/background.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/background.js +3 -0
- package/dist/commonjs/layout/lib/utils/border/color.d.ts +12 -1
- package/dist/commonjs/layout/lib/utils/border/color.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/border/color.js +2 -0
- package/dist/commonjs/layout/lib/utils/border/index.d.ts +3 -0
- package/dist/commonjs/layout/lib/utils/border/index.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/border/index.js +2 -0
- package/dist/commonjs/layout/lib/utils/border/lineStyle.d.ts +24 -6
- package/dist/commonjs/layout/lib/utils/border/lineStyle.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/border/lineStyle.js +2 -0
- package/dist/commonjs/layout/lib/utils/border/radius.d.ts +15 -6
- package/dist/commonjs/layout/lib/utils/border/radius.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/border/radius.js +2 -0
- package/dist/commonjs/layout/lib/utils/border/shorthand.d.ts +22 -8
- package/dist/commonjs/layout/lib/utils/border/shorthand.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/border/shorthand.js +2 -0
- package/dist/commonjs/layout/lib/utils/border/width.d.ts +18 -4
- package/dist/commonjs/layout/lib/utils/border/width.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/border/width.js +2 -0
- package/dist/commonjs/layout/lib/utils/buildStyleFns.d.ts +4 -0
- package/dist/commonjs/layout/lib/utils/buildStyleFns.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/buildStyleFns.js +9 -0
- package/dist/commonjs/layout/lib/utils/color.d.ts +13 -4
- package/dist/commonjs/layout/lib/utils/color.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/color.js +3 -0
- package/dist/commonjs/layout/lib/utils/depth.d.ts +11 -3
- package/dist/commonjs/layout/lib/utils/depth.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/depth.js +3 -0
- package/dist/commonjs/layout/lib/utils/flex.d.ts +32 -11
- package/dist/commonjs/layout/lib/utils/flex.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/flex.js +3 -0
- package/dist/commonjs/layout/lib/utils/flexItem.d.ts +27 -8
- package/dist/commonjs/layout/lib/utils/flexItem.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/flexItem.js +3 -0
- package/dist/commonjs/layout/lib/utils/grid.d.ts +56 -19
- package/dist/commonjs/layout/lib/utils/grid.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/grid.js +3 -0
- package/dist/commonjs/layout/lib/utils/gridItem.d.ts +36 -11
- package/dist/commonjs/layout/lib/utils/gridItem.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/gridItem.js +3 -0
- package/dist/commonjs/layout/lib/utils/layout.d.ts +36 -13
- package/dist/commonjs/layout/lib/utils/layout.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/layout.js +3 -0
- package/dist/commonjs/layout/lib/utils/mergeStyles.d.ts +1 -0
- package/dist/commonjs/layout/lib/utils/mergeStyles.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/mergeStyles.js +1 -0
- package/dist/commonjs/layout/lib/utils/other.d.ts +106 -34
- package/dist/commonjs/layout/lib/utils/other.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/other.js +3 -0
- package/dist/commonjs/layout/lib/utils/position.d.ts +24 -9
- package/dist/commonjs/layout/lib/utils/position.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/position.js +3 -0
- package/dist/commonjs/layout/lib/utils/space.d.ts +42 -19
- package/dist/commonjs/layout/lib/utils/space.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/space.js +3 -0
- package/dist/commonjs/layout/lib/utils/styleProps.d.ts +2 -0
- package/dist/commonjs/layout/lib/utils/styleProps.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/systemProps.d.ts +17 -0
- package/dist/commonjs/layout/lib/utils/systemProps.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/text.d.ts +45 -14
- package/dist/commonjs/layout/lib/utils/text.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/text.js +3 -0
- package/dist/commonjs/text-input/lib/TextInput.js +5 -5
- package/dist/es6/layout/lib/Box.d.ts +1 -0
- package/dist/es6/layout/lib/Box.d.ts.map +1 -1
- package/dist/es6/layout/lib/Box.js +2 -0
- package/dist/es6/layout/lib/utils/background.d.ts +25 -8
- package/dist/es6/layout/lib/utils/background.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/background.js +3 -0
- package/dist/es6/layout/lib/utils/border/color.d.ts +12 -1
- package/dist/es6/layout/lib/utils/border/color.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border/color.js +2 -0
- package/dist/es6/layout/lib/utils/border/index.d.ts +3 -0
- package/dist/es6/layout/lib/utils/border/index.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border/index.js +2 -0
- package/dist/es6/layout/lib/utils/border/lineStyle.d.ts +24 -6
- package/dist/es6/layout/lib/utils/border/lineStyle.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border/lineStyle.js +2 -0
- package/dist/es6/layout/lib/utils/border/radius.d.ts +15 -6
- package/dist/es6/layout/lib/utils/border/radius.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border/radius.js +2 -0
- package/dist/es6/layout/lib/utils/border/shorthand.d.ts +22 -8
- package/dist/es6/layout/lib/utils/border/shorthand.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border/shorthand.js +2 -0
- package/dist/es6/layout/lib/utils/border/width.d.ts +18 -4
- package/dist/es6/layout/lib/utils/border/width.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border/width.js +2 -0
- package/dist/es6/layout/lib/utils/buildStyleFns.d.ts +4 -0
- package/dist/es6/layout/lib/utils/buildStyleFns.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/buildStyleFns.js +9 -0
- package/dist/es6/layout/lib/utils/color.d.ts +13 -4
- package/dist/es6/layout/lib/utils/color.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/color.js +3 -0
- package/dist/es6/layout/lib/utils/depth.d.ts +11 -3
- package/dist/es6/layout/lib/utils/depth.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/depth.js +3 -0
- package/dist/es6/layout/lib/utils/flex.d.ts +32 -11
- package/dist/es6/layout/lib/utils/flex.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/flex.js +3 -0
- package/dist/es6/layout/lib/utils/flexItem.d.ts +27 -8
- package/dist/es6/layout/lib/utils/flexItem.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/flexItem.js +3 -0
- package/dist/es6/layout/lib/utils/grid.d.ts +56 -19
- package/dist/es6/layout/lib/utils/grid.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/grid.js +3 -0
- package/dist/es6/layout/lib/utils/gridItem.d.ts +36 -11
- package/dist/es6/layout/lib/utils/gridItem.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/gridItem.js +3 -0
- package/dist/es6/layout/lib/utils/layout.d.ts +36 -13
- package/dist/es6/layout/lib/utils/layout.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/layout.js +3 -0
- package/dist/es6/layout/lib/utils/mergeStyles.d.ts +1 -0
- package/dist/es6/layout/lib/utils/mergeStyles.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/mergeStyles.js +1 -0
- package/dist/es6/layout/lib/utils/other.d.ts +106 -34
- package/dist/es6/layout/lib/utils/other.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/other.js +3 -0
- package/dist/es6/layout/lib/utils/position.d.ts +24 -9
- package/dist/es6/layout/lib/utils/position.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/position.js +3 -0
- package/dist/es6/layout/lib/utils/space.d.ts +42 -19
- package/dist/es6/layout/lib/utils/space.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/space.js +3 -0
- package/dist/es6/layout/lib/utils/styleProps.d.ts +2 -0
- package/dist/es6/layout/lib/utils/styleProps.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/systemProps.d.ts +17 -0
- package/dist/es6/layout/lib/utils/systemProps.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/text.d.ts +45 -14
- package/dist/es6/layout/lib/utils/text.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/text.js +3 -0
- package/dist/es6/text-input/lib/TextInput.js +5 -5
- package/layout/lib/Box.tsx +2 -0
- package/layout/lib/utils/background.ts +25 -8
- package/layout/lib/utils/border/color.ts +12 -1
- package/layout/lib/utils/border/index.ts +3 -0
- package/layout/lib/utils/border/lineStyle.ts +24 -6
- package/layout/lib/utils/border/radius.ts +15 -6
- package/layout/lib/utils/border/shorthand.ts +22 -8
- package/layout/lib/utils/border/width.ts +18 -4
- package/layout/lib/utils/buildStyleFns.ts +11 -0
- package/layout/lib/utils/color.ts +13 -4
- package/layout/lib/utils/depth.ts +11 -3
- package/layout/lib/utils/flex.ts +32 -11
- package/layout/lib/utils/flexItem.ts +27 -8
- package/layout/lib/utils/grid.ts +56 -19
- package/layout/lib/utils/gridItem.ts +36 -11
- package/layout/lib/utils/layout.ts +36 -13
- package/layout/lib/utils/mergeStyles.ts +1 -0
- package/layout/lib/utils/other.ts +106 -34
- package/layout/lib/utils/position.ts +24 -9
- package/layout/lib/utils/space.ts +42 -19
- package/layout/lib/utils/styleProps.ts +2 -0
- package/layout/lib/utils/systemProps.ts +17 -0
- package/layout/lib/utils/text.ts +45 -14
- package/package.json +4 -4
- package/text-input/lib/TextInput.tsx +1 -1
|
@@ -3,30 +3,38 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.buildStylePropFn = exports.buildStyleFns = void 0;
|
|
4
4
|
const tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
5
5
|
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
6
|
+
/** @deprecated */
|
|
6
7
|
const getColor = (value) => {
|
|
7
8
|
return tokens_1.colors[value] || (0, canvas_kit_styling_1.wrapProperty)(value);
|
|
8
9
|
};
|
|
10
|
+
/** @deprecated */
|
|
9
11
|
const getDepth = (value) => {
|
|
10
12
|
return tokens_1.depth[value];
|
|
11
13
|
};
|
|
14
|
+
/** @deprecated */
|
|
12
15
|
const getShape = (value) => {
|
|
13
16
|
return tokens_1.borderRadius[value] || (0, canvas_kit_styling_1.wrapProperty)(value);
|
|
14
17
|
};
|
|
18
|
+
/** @deprecated */
|
|
15
19
|
const getSpace = (value) => {
|
|
16
20
|
return tokens_1.space[value] || (0, canvas_kit_styling_1.wrapProperty)(value);
|
|
17
21
|
};
|
|
22
|
+
/** @deprecated */
|
|
18
23
|
const getFont = (value) => {
|
|
19
24
|
return (tokens_1.type.properties.fontFamilies[value] ||
|
|
20
25
|
(0, canvas_kit_styling_1.wrapProperty)(value));
|
|
21
26
|
};
|
|
27
|
+
/** @deprecated */
|
|
22
28
|
const getFontSize = (value) => {
|
|
23
29
|
return (tokens_1.type.properties.fontSizes[value] ||
|
|
24
30
|
(0, canvas_kit_styling_1.wrapProperty)(value));
|
|
25
31
|
};
|
|
32
|
+
/** @deprecated */
|
|
26
33
|
const getFontWeight = (value) => {
|
|
27
34
|
return (tokens_1.type.properties.fontWeights[value] ||
|
|
28
35
|
(0, canvas_kit_styling_1.wrapProperty)(value));
|
|
29
36
|
};
|
|
37
|
+
/** @deprecated */
|
|
30
38
|
function buildStyleFns(styleFnConfigs) {
|
|
31
39
|
return styleFnConfigs.reduce((styleFns = {}, styleFnConfig) => {
|
|
32
40
|
const styleFn = (value) => {
|
|
@@ -73,6 +81,7 @@ function buildStyleFns(styleFnConfigs) {
|
|
|
73
81
|
}, {});
|
|
74
82
|
}
|
|
75
83
|
exports.buildStyleFns = buildStyleFns;
|
|
84
|
+
/** @deprecated */
|
|
76
85
|
function buildStylePropFn(styleFns) {
|
|
77
86
|
return (props) => {
|
|
78
87
|
let styles = {};
|
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
2
|
import { StyleFnConfig } from './buildStyleFns';
|
|
3
3
|
import { SystemPropValues } from './systemProps';
|
|
4
|
-
/** style props to set CSS color properties
|
|
4
|
+
/** style props to set CSS color properties
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
5
7
|
export type ColorStyleProps = {
|
|
6
8
|
/**
|
|
7
9
|
* - sets [CSS background-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color)
|
|
8
10
|
* - system tokens: `color`
|
|
9
|
-
*
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
10
13
|
backgroundColor?: SystemPropValues['color'];
|
|
11
14
|
/**
|
|
12
15
|
* - sets [CSS color property](https://developer.mozilla.org/en-US/docs/Web/CSS/color)
|
|
13
16
|
* - system tokens: `color`
|
|
14
|
-
*
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
15
19
|
color?: SystemPropValues['color'];
|
|
16
|
-
/** sets [CSS opacity property](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity)
|
|
20
|
+
/** sets [CSS opacity property](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity)
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
17
23
|
opacity?: Property.Opacity;
|
|
18
24
|
};
|
|
25
|
+
/** @deprecated */
|
|
19
26
|
export declare const colorStyleFnConfigs: StyleFnConfig[];
|
|
27
|
+
/** @deprecated */
|
|
20
28
|
export declare const colorFns: import("./buildStyleFns").StyleFns;
|
|
21
29
|
/**
|
|
22
30
|
* A style prop function that takes component props and returns color styles from Canvas token values.
|
|
@@ -28,6 +36,7 @@ export declare const colorFns: import("./buildStyleFns").StyleFns;
|
|
|
28
36
|
* <Box color="frenchVanilla100" opacity={0.6}>Hello, colors!</Box>
|
|
29
37
|
* );
|
|
30
38
|
* ```
|
|
39
|
+
* @deprecated
|
|
31
40
|
*/
|
|
32
41
|
export declare const color: (props: ColorStyleProps) => {};
|
|
33
42
|
//# sourceMappingURL=color.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC5C;;;;OAIG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC;CAC5B,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,mBAAmB,EAAE,aAAa,EAgB9C,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,QAAQ,oCAAqC,CAAC;AAC3D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,KAAK,gCAA8C,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.color = exports.colorFns = exports.colorStyleFnConfigs = void 0;
|
|
4
4
|
const buildStyleFns_1 = require("./buildStyleFns");
|
|
5
|
+
/** @deprecated */
|
|
5
6
|
exports.colorStyleFnConfigs = [
|
|
6
7
|
{
|
|
7
8
|
name: 'backgroundColor',
|
|
@@ -19,6 +20,7 @@ exports.colorStyleFnConfigs = [
|
|
|
19
20
|
system: 'none',
|
|
20
21
|
},
|
|
21
22
|
];
|
|
23
|
+
/** @deprecated */
|
|
22
24
|
exports.colorFns = (0, buildStyleFns_1.buildStyleFns)(exports.colorStyleFnConfigs);
|
|
23
25
|
/**
|
|
24
26
|
* A style prop function that takes component props and returns color styles from Canvas token values.
|
|
@@ -30,5 +32,6 @@ exports.colorFns = (0, buildStyleFns_1.buildStyleFns)(exports.colorStyleFnConfig
|
|
|
30
32
|
* <Box color="frenchVanilla100" opacity={0.6}>Hello, colors!</Box>
|
|
31
33
|
* );
|
|
32
34
|
* ```
|
|
35
|
+
* @deprecated
|
|
33
36
|
*/
|
|
34
37
|
exports.color = (0, buildStyleFns_1.buildStylePropFn)(exports.colorFns);
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
2
|
import { StyleFnConfig } from './buildStyleFns';
|
|
3
3
|
import { SystemPropValues } from './systemProps';
|
|
4
|
-
/** style props to for depth styles
|
|
4
|
+
/** style props to for depth styles
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
5
7
|
export type DepthStyleProps = {
|
|
6
|
-
/** sets [CSS box-shadow styles](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
|
|
8
|
+
/** sets [CSS box-shadow styles](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
|
|
9
|
+
* @deprecated
|
|
10
|
+
*/
|
|
7
11
|
boxShadow?: Property.BoxShadow;
|
|
8
12
|
/**
|
|
9
13
|
* - sets [CSS box-shadow styles](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
|
|
10
14
|
* - system tokens: `depth`
|
|
11
|
-
*
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
12
17
|
depth?: SystemPropValues['depth'];
|
|
13
18
|
};
|
|
19
|
+
/** @deprecated */
|
|
14
20
|
export declare const depthStyleFnConfigs: StyleFnConfig[];
|
|
21
|
+
/** @deprecated */
|
|
15
22
|
export declare const depthStyleFns: import("./buildStyleFns").StyleFns;
|
|
16
23
|
/**
|
|
17
24
|
* A style prop function that takes component props and returns depth styles from Canvas token values.
|
|
@@ -23,6 +30,7 @@ export declare const depthStyleFns: import("./buildStyleFns").StyleFns;
|
|
|
23
30
|
* <Box depth={3}>Hello, box shadows!</Box>
|
|
24
31
|
* );
|
|
25
32
|
* ```
|
|
33
|
+
* @deprecated
|
|
26
34
|
*/
|
|
27
35
|
export declare const depth: (props: DepthStyleProps) => {};
|
|
28
36
|
//# sourceMappingURL=depth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/depth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AACjC,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/depth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AACjC,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B;;;;OAIG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,mBAAmB,EAAE,aAAa,EAW9C,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,aAAa,oCAAqC,CAAC;AAChE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,KAAK,gCAAmD,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.depth = exports.depthStyleFns = exports.depthStyleFnConfigs = void 0;
|
|
4
4
|
const buildStyleFns_1 = require("./buildStyleFns");
|
|
5
|
+
/** @deprecated */
|
|
5
6
|
exports.depthStyleFnConfigs = [
|
|
6
7
|
{
|
|
7
8
|
name: 'boxShadow',
|
|
@@ -14,6 +15,7 @@ exports.depthStyleFnConfigs = [
|
|
|
14
15
|
system: 'depth',
|
|
15
16
|
},
|
|
16
17
|
];
|
|
18
|
+
/** @deprecated */
|
|
17
19
|
exports.depthStyleFns = (0, buildStyleFns_1.buildStyleFns)(exports.depthStyleFnConfigs);
|
|
18
20
|
/**
|
|
19
21
|
* A style prop function that takes component props and returns depth styles from Canvas token values.
|
|
@@ -25,5 +27,6 @@ exports.depthStyleFns = (0, buildStyleFns_1.buildStyleFns)(exports.depthStyleFnC
|
|
|
25
27
|
* <Box depth={3}>Hello, box shadows!</Box>
|
|
26
28
|
* );
|
|
27
29
|
* ```
|
|
30
|
+
* @deprecated
|
|
28
31
|
*/
|
|
29
32
|
exports.depth = (0, buildStyleFns_1.buildStylePropFn)(exports.depthStyleFns);
|
|
@@ -1,42 +1,62 @@
|
|
|
1
1
|
import { Property, Globals } from 'csstype';
|
|
2
2
|
import { StyleFnConfig } from './buildStyleFns';
|
|
3
3
|
import { SystemPropValues } from './systemProps';
|
|
4
|
-
/** style props to for CSS flexbox container properties
|
|
4
|
+
/** style props to for CSS flexbox container properties
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
5
7
|
export type FlexStyleProps = {
|
|
6
|
-
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
|
|
8
|
+
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
|
|
9
|
+
* @deprecated
|
|
10
|
+
*/
|
|
7
11
|
alignItems?: Property.AlignItems;
|
|
8
|
-
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
12
|
+
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
9
15
|
alignContent?: Property.AlignContent;
|
|
10
16
|
/**
|
|
11
17
|
* - sets [CSS display property](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
|
|
12
18
|
* - @default 'flex'
|
|
13
|
-
*
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
14
21
|
display?: 'flex' | 'inline-flex' | 'none' | Globals | (string & {});
|
|
15
|
-
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
|
|
22
|
+
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
|
|
23
|
+
* @deprecated
|
|
24
|
+
*/
|
|
16
25
|
justifyItems?: Property.JustifyItems;
|
|
17
|
-
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
26
|
+
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
18
29
|
justifyContent?: Property.JustifyContent;
|
|
19
|
-
/** sets [CSS flex-wrap property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap)
|
|
30
|
+
/** sets [CSS flex-wrap property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap)
|
|
31
|
+
* @deprecated
|
|
32
|
+
*/
|
|
20
33
|
flexWrap?: Property.FlexWrap;
|
|
21
|
-
/** sets [CSS flex-direction property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction)
|
|
34
|
+
/** sets [CSS flex-direction property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction)
|
|
35
|
+
* @deprecated
|
|
36
|
+
*/
|
|
22
37
|
flexDirection?: Property.FlexDirection;
|
|
23
38
|
/**
|
|
24
39
|
* - sets [CSS gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/gap)
|
|
25
40
|
* - system tokens: `space`
|
|
26
|
-
*
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
27
43
|
gap?: SystemPropValues['space'];
|
|
28
44
|
/**
|
|
29
45
|
* - sets [CSS column-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap)
|
|
30
46
|
* - system tokens: `space`
|
|
31
|
-
*
|
|
47
|
+
* @deprecated
|
|
48
|
+
*/
|
|
32
49
|
columnGap?: SystemPropValues['space'];
|
|
33
50
|
/**
|
|
34
51
|
* - sets [CSS row-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap)
|
|
35
52
|
* - system tokens: `space`
|
|
36
|
-
*
|
|
53
|
+
* @deprecated
|
|
54
|
+
*/
|
|
37
55
|
rowGap?: SystemPropValues['space'];
|
|
38
56
|
};
|
|
57
|
+
/** @deprecated */
|
|
39
58
|
export declare const flexStyleFnConfigs: StyleFnConfig[];
|
|
59
|
+
/** @deprecated */
|
|
40
60
|
export declare const flexStyleFns: import("./buildStyleFns").StyleFns;
|
|
41
61
|
/**
|
|
42
62
|
* A style prop function that takes component props and returns flexbox styles.
|
|
@@ -50,6 +70,7 @@ export declare const flexStyleFns: import("./buildStyleFns").StyleFns;
|
|
|
50
70
|
* </Flex>
|
|
51
71
|
* );
|
|
52
72
|
* ```
|
|
73
|
+
* @deprecated ⚠️ `flex` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs
|
|
53
74
|
*/
|
|
54
75
|
export declare const flex: (props: FlexStyleProps) => {};
|
|
55
76
|
//# sourceMappingURL=flex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACpE;;OAEG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC;;OAEG;IACH,cAAc,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACvC;;;;OAIG;IACH,GAAG,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACtC;;;;OAIG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAmD7C,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,YAAY,oCAAoC,CAAC;AAC9D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,IAAI,+BAAiD,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.flex = exports.flexStyleFns = exports.flexStyleFnConfigs = void 0;
|
|
4
4
|
const buildStyleFns_1 = require("./buildStyleFns");
|
|
5
|
+
/** @deprecated */
|
|
5
6
|
exports.flexStyleFnConfigs = [
|
|
6
7
|
{
|
|
7
8
|
name: 'alignContent',
|
|
@@ -54,6 +55,7 @@ exports.flexStyleFnConfigs = [
|
|
|
54
55
|
system: 'space',
|
|
55
56
|
},
|
|
56
57
|
];
|
|
58
|
+
/** @deprecated */
|
|
57
59
|
exports.flexStyleFns = (0, buildStyleFns_1.buildStyleFns)(exports.flexStyleFnConfigs);
|
|
58
60
|
/**
|
|
59
61
|
* A style prop function that takes component props and returns flexbox styles.
|
|
@@ -67,5 +69,6 @@ exports.flexStyleFns = (0, buildStyleFns_1.buildStyleFns)(exports.flexStyleFnCon
|
|
|
67
69
|
* </Flex>
|
|
68
70
|
* );
|
|
69
71
|
* ```
|
|
72
|
+
* @deprecated ⚠️ `flex` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs
|
|
70
73
|
*/
|
|
71
74
|
exports.flex = (0, buildStyleFns_1.buildStylePropFn)(exports.flexStyleFns);
|
|
@@ -1,23 +1,41 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
2
|
import { StyleFnConfig } from './buildStyleFns';
|
|
3
|
-
/** style props to for CSS flex item properties
|
|
3
|
+
/** style props to for CSS flex item properties
|
|
4
|
+
* @deprecated ⚠️ Style props are deprecated. Please use our `cs` prop with `createStencil` or `createStyles` to apply styles. For more information view our [Styling docs](* @deprecated ⚠️ `boxStyleFn` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
|
|
5
|
+
*/
|
|
4
6
|
export type FlexItemStyleProps = {
|
|
5
|
-
/** sets [CSS flex property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex)
|
|
7
|
+
/** sets [CSS flex property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex)
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
6
10
|
flex?: Property.Flex;
|
|
7
|
-
/** sets [CSS flex-grow property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow)
|
|
11
|
+
/** sets [CSS flex-grow property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow)
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
8
14
|
flexGrow?: Property.FlexGrow;
|
|
9
|
-
/** sets [CSS flex-shrink property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink)
|
|
15
|
+
/** sets [CSS flex-shrink property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink)
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
10
18
|
flexShrink?: Property.FlexShrink;
|
|
11
|
-
/** sets [CSS flex-basis property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis)
|
|
19
|
+
/** sets [CSS flex-basis property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis)
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
12
22
|
flexBasis?: Property.FlexBasis;
|
|
13
|
-
/** sets [CSS justify-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)
|
|
23
|
+
/** sets [CSS justify-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
14
26
|
justifySelf?: Property.JustifySelf;
|
|
15
|
-
/** sets [CSS align-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
|
|
27
|
+
/** sets [CSS align-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
|
|
28
|
+
* @deprecated
|
|
29
|
+
*/
|
|
16
30
|
alignSelf?: Property.AlignSelf;
|
|
17
|
-
/** sets [CSS order property](https://developer.mozilla.org/en-US/docs/Web/CSS/order)
|
|
31
|
+
/** sets [CSS order property](https://developer.mozilla.org/en-US/docs/Web/CSS/order)
|
|
32
|
+
* @deprecated
|
|
33
|
+
*/
|
|
18
34
|
order?: Property.Order;
|
|
19
35
|
};
|
|
36
|
+
/** @deprecated */
|
|
20
37
|
export declare const flexItemStyleFnConfigs: StyleFnConfig[];
|
|
38
|
+
/** @deprecated */
|
|
21
39
|
export declare const flexItemStyleFns: import("./buildStyleFns").StyleFns;
|
|
22
40
|
/**
|
|
23
41
|
* A style prop function that takes component props and returns flexbox item styles.
|
|
@@ -31,6 +49,7 @@ export declare const flexItemStyleFns: import("./buildStyleFns").StyleFns;
|
|
|
31
49
|
* </Box>
|
|
32
50
|
* );
|
|
33
51
|
* ```
|
|
52
|
+
* @deprecated
|
|
34
53
|
*/
|
|
35
54
|
export declare const flexItem: (props: FlexItemStyleProps) => {};
|
|
36
55
|
//# sourceMappingURL=flexItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flexItem.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flexItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AACjC,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"flexItem.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flexItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AACjC,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;CACxB,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,sBAAsB,EAAE,aAAa,EAoCjD,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,gBAAgB,oCAAwC,CAAC;AACtE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,mCAAyD,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.flexItem = exports.flexItemStyleFns = exports.flexItemStyleFnConfigs = void 0;
|
|
4
4
|
const buildStyleFns_1 = require("./buildStyleFns");
|
|
5
|
+
/** @deprecated */
|
|
5
6
|
exports.flexItemStyleFnConfigs = [
|
|
6
7
|
{
|
|
7
8
|
name: 'flex',
|
|
@@ -39,6 +40,7 @@ exports.flexItemStyleFnConfigs = [
|
|
|
39
40
|
system: 'none',
|
|
40
41
|
},
|
|
41
42
|
];
|
|
43
|
+
/** @deprecated */
|
|
42
44
|
exports.flexItemStyleFns = (0, buildStyleFns_1.buildStyleFns)(exports.flexItemStyleFnConfigs);
|
|
43
45
|
/**
|
|
44
46
|
* A style prop function that takes component props and returns flexbox item styles.
|
|
@@ -52,5 +54,6 @@ exports.flexItemStyleFns = (0, buildStyleFns_1.buildStyleFns)(exports.flexItemSt
|
|
|
52
54
|
* </Box>
|
|
53
55
|
* );
|
|
54
56
|
* ```
|
|
57
|
+
* @deprecated
|
|
55
58
|
*/
|
|
56
59
|
exports.flexItem = (0, buildStyleFns_1.buildStylePropFn)(exports.flexItemStyleFns);
|
|
@@ -1,58 +1,94 @@
|
|
|
1
1
|
import { Property, Globals } from 'csstype';
|
|
2
2
|
import { StyleFnConfig } from './buildStyleFns';
|
|
3
3
|
import { SystemPropValues } from './systemProps';
|
|
4
|
-
/** style props to for CSS grid container properties
|
|
4
|
+
/** style props to for CSS grid container properties
|
|
5
|
+
* @deprecated ⚠️ Style props are deprecated. Please use our `cs` prop with `createStencil` or `createStyles` to apply styles. For more information view our [Styling docs](* @deprecated ⚠️ `boxStyleFn` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
|
|
6
|
+
*/
|
|
5
7
|
export type GridStyleProps = {
|
|
6
|
-
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
|
|
8
|
+
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
|
|
9
|
+
* @deprecated
|
|
10
|
+
*/
|
|
7
11
|
alignItems?: Property.AlignItems;
|
|
8
|
-
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
12
|
+
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
9
15
|
alignContent?: Property.AlignContent;
|
|
10
16
|
/**
|
|
11
17
|
* - sets [CSS display property](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
|
|
12
18
|
* - @default 'grid'
|
|
13
|
-
*
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
14
21
|
display?: 'grid' | 'inline-grid' | 'none' | Globals | (string & {});
|
|
15
|
-
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
|
|
22
|
+
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
|
|
23
|
+
* @deprecated
|
|
24
|
+
*/
|
|
16
25
|
justifyItems?: Property.JustifyItems;
|
|
17
|
-
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
26
|
+
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
18
29
|
justifyContent?: Property.JustifyContent;
|
|
19
|
-
/** sets [CSS grid-template property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template)
|
|
30
|
+
/** sets [CSS grid-template property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template)
|
|
31
|
+
* @deprecated
|
|
32
|
+
*/
|
|
20
33
|
gridTemplate?: Property.GridTemplate;
|
|
21
|
-
/** sets [CSS grid-template-areas property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas)
|
|
34
|
+
/** sets [CSS grid-template-areas property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas)
|
|
35
|
+
* @deprecated
|
|
36
|
+
*/
|
|
22
37
|
gridTemplateAreas?: Property.GridTemplateAreas;
|
|
23
|
-
/** sets [CSS grid-template-columns property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)
|
|
38
|
+
/** sets [CSS grid-template-columns property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
24
41
|
gridTemplateColumns?: Property.GridTemplateColumns;
|
|
25
|
-
/** sets [CSS grid-template-rows property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows)
|
|
42
|
+
/** sets [CSS grid-template-rows property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows)
|
|
43
|
+
* @deprecated
|
|
44
|
+
*/
|
|
26
45
|
gridTemplateRows?: Property.GridTemplateRows;
|
|
27
46
|
/**
|
|
28
47
|
* - sets [CSS column-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap)
|
|
29
48
|
* - system tokens: `space`
|
|
30
|
-
*
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
31
51
|
gridColumnGap?: Property.GridColumnGap | SystemPropValues['space'];
|
|
32
52
|
/**
|
|
33
53
|
* - sets [CSS row-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap)
|
|
34
54
|
* - system tokens: `space`
|
|
35
|
-
*
|
|
55
|
+
* @deprecated
|
|
56
|
+
*/
|
|
36
57
|
gridRowGap?: Property.GridRowGap | SystemPropValues['space'];
|
|
37
58
|
/**
|
|
38
59
|
* - sets [CSS grid-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-gap)
|
|
39
60
|
* - system tokens: `space`
|
|
40
|
-
*
|
|
61
|
+
* @deprecated
|
|
62
|
+
*/
|
|
41
63
|
gridGap?: Property.GridGap | SystemPropValues['space'];
|
|
42
|
-
/** sets [CSS place-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/place-items)
|
|
64
|
+
/** sets [CSS place-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/place-items)
|
|
65
|
+
* @deprecated
|
|
66
|
+
*/
|
|
43
67
|
gridPlaceItems?: Property.PlaceItems;
|
|
44
|
-
/** sets [CSS grid-auto-columns property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns)
|
|
68
|
+
/** sets [CSS grid-auto-columns property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns)
|
|
69
|
+
* @deprecated
|
|
70
|
+
*/
|
|
45
71
|
gridAutoColumns?: Property.GridAutoColumns;
|
|
46
|
-
/** sets [CSS grid-auto-rows property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows)
|
|
72
|
+
/** sets [CSS grid-auto-rows property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows)
|
|
73
|
+
* @deprecated
|
|
74
|
+
*/
|
|
47
75
|
gridAutoRows?: Property.GridAutoRows;
|
|
48
|
-
/** sets [CSS grid-area property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)
|
|
76
|
+
/** sets [CSS grid-area property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)
|
|
77
|
+
* @deprecated
|
|
78
|
+
*/
|
|
49
79
|
gridArea?: Property.GridArea;
|
|
50
|
-
/** sets [CSS grid-auto-flow property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow)
|
|
80
|
+
/** sets [CSS grid-auto-flow property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow)
|
|
81
|
+
* @deprecated
|
|
82
|
+
*/
|
|
51
83
|
gridAutoFlow?: Property.GridAutoFlow;
|
|
52
|
-
/** sets [CSS grid property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid)
|
|
84
|
+
/** sets [CSS grid property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid)
|
|
85
|
+
* @deprecated
|
|
86
|
+
*/
|
|
53
87
|
grid?: Property.Grid;
|
|
54
88
|
};
|
|
89
|
+
/** @deprecated */
|
|
55
90
|
export declare const gridStyleFnConfigs: StyleFnConfig[];
|
|
91
|
+
/** @deprecated */
|
|
56
92
|
export declare const gridStyleFns: import("./buildStyleFns").StyleFns;
|
|
57
93
|
/**
|
|
58
94
|
* A style prop function that takes component props and returns grid styles.
|
|
@@ -67,6 +103,7 @@ export declare const gridStyleFns: import("./buildStyleFns").StyleFns;
|
|
|
67
103
|
* </Grid>
|
|
68
104
|
* );
|
|
69
105
|
* ```
|
|
106
|
+
* @deprecated
|
|
70
107
|
*/
|
|
71
108
|
export declare const grid: (props: GridStyleProps) => {};
|
|
72
109
|
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACpE;;OAEG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC;;OAEG;IACH,cAAc,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC;;OAEG;IACH,iBAAiB,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC;IAC/C;;OAEG;IACH,mBAAmB,CAAC,EAAE,QAAQ,CAAC,mBAAmB,CAAC;IACnD;;OAEG;IACH,gBAAgB,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC;IAC7C;;;;OAIG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACnE;;;;OAIG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC7D;;;;OAIG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACvD;;OAEG;IACH,cAAc,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACrC;;OAEG;IACH,eAAe,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC;IAC3C;;OAEG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B;;OAEG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC;CACtB,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,kBAAkB,EAAE,aAAa,EA2F7C,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,YAAY,oCAAoC,CAAC;AAC9D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,IAAI,+BAAiD,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.grid = exports.gridStyleFns = exports.gridStyleFnConfigs = void 0;
|
|
4
4
|
const buildStyleFns_1 = require("./buildStyleFns");
|
|
5
|
+
/** @deprecated */
|
|
5
6
|
exports.gridStyleFnConfigs = [
|
|
6
7
|
{
|
|
7
8
|
name: 'gridGap',
|
|
@@ -94,6 +95,7 @@ exports.gridStyleFnConfigs = [
|
|
|
94
95
|
system: 'none',
|
|
95
96
|
},
|
|
96
97
|
];
|
|
98
|
+
/** @deprecated */
|
|
97
99
|
exports.gridStyleFns = (0, buildStyleFns_1.buildStyleFns)(exports.gridStyleFnConfigs);
|
|
98
100
|
/**
|
|
99
101
|
* A style prop function that takes component props and returns grid styles.
|
|
@@ -108,5 +110,6 @@ exports.gridStyleFns = (0, buildStyleFns_1.buildStyleFns)(exports.gridStyleFnCon
|
|
|
108
110
|
* </Grid>
|
|
109
111
|
* );
|
|
110
112
|
* ```
|
|
113
|
+
* @deprecated
|
|
111
114
|
*/
|
|
112
115
|
exports.grid = (0, buildStyleFns_1.buildStylePropFn)(exports.gridStyleFns);
|
|
@@ -1,29 +1,53 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
2
|
import { StyleFnConfig } from './buildStyleFns';
|
|
3
|
-
/** style props to for CSS grid item properties
|
|
3
|
+
/** style props to for CSS grid item properties
|
|
4
|
+
* @deprecated ⚠️ Style props are deprecated. Please use our `cs` prop with `createStencil` or `createStyles` to apply styles. For more information view our [Styling docs](* @deprecated ⚠️ `boxStyleFn` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
|
|
5
|
+
*/
|
|
4
6
|
export type GridItemStyleProps = {
|
|
5
|
-
/** sets [CSS grid-column-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start)
|
|
7
|
+
/** sets [CSS grid-column-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start)
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
6
10
|
gridColumnStart?: Property.GridColumnStart;
|
|
7
|
-
/** sets [CSS grid-column-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end)
|
|
11
|
+
/** sets [CSS grid-column-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end)
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
8
14
|
gridColumnEnd?: Property.GridColumnEnd;
|
|
9
|
-
/** sets [CSS grid-row-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start)
|
|
15
|
+
/** sets [CSS grid-row-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start)
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
10
18
|
gridRowStart?: Property.GridRowStart;
|
|
11
|
-
/** sets [CSS grid-row-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end)
|
|
19
|
+
/** sets [CSS grid-row-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end)
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
12
22
|
gridRowEnd?: Property.GridRowEnd;
|
|
13
|
-
/** sets [CSS grid-column property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)
|
|
23
|
+
/** sets [CSS grid-column property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
14
26
|
gridColumn?: Property.GridColumn;
|
|
15
|
-
/** sets [CSS grid-row property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row)
|
|
27
|
+
/** sets [CSS grid-row property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row)
|
|
28
|
+
* @deprecated
|
|
29
|
+
*/
|
|
16
30
|
gridRow?: Property.GridRow;
|
|
17
|
-
/** sets [CSS grid-area property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)
|
|
31
|
+
/** sets [CSS grid-area property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)
|
|
32
|
+
* @deprecated
|
|
33
|
+
*/
|
|
18
34
|
gridArea?: Property.GridArea;
|
|
19
|
-
/** sets [CSS justify-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)
|
|
35
|
+
/** sets [CSS justify-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)
|
|
36
|
+
* @deprecated
|
|
37
|
+
*/
|
|
20
38
|
justifySelf?: Property.JustifySelf;
|
|
21
|
-
/** sets [CSS align-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
|
|
39
|
+
/** sets [CSS align-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
|
|
40
|
+
* @deprecated
|
|
41
|
+
*/
|
|
22
42
|
alignSelf?: Property.AlignSelf;
|
|
23
|
-
/** sets [CSS place-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/place-self)
|
|
43
|
+
/** sets [CSS place-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/place-self)
|
|
44
|
+
* @deprecated
|
|
45
|
+
*/
|
|
24
46
|
placeSelf?: Property.PlaceSelf;
|
|
25
47
|
};
|
|
48
|
+
/** @deprecated */
|
|
26
49
|
export declare const gridItemStyleFnConfigs: StyleFnConfig[];
|
|
50
|
+
/** @deprecated */
|
|
27
51
|
export declare const gridItemStyleFns: import("./buildStyleFns").StyleFns;
|
|
28
52
|
/**
|
|
29
53
|
* A style prop function that takes component props and returns grid styles.
|
|
@@ -37,6 +61,7 @@ export declare const gridItemStyleFns: import("./buildStyleFns").StyleFns;
|
|
|
37
61
|
* </Grid.Item>
|
|
38
62
|
* );
|
|
39
63
|
* ```
|
|
64
|
+
* @deprecated
|
|
40
65
|
*/
|
|
41
66
|
export declare const gridItem: (props: GridItemStyleProps) => {};
|
|
42
67
|
//# sourceMappingURL=gridItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gridItem.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/gridItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"gridItem.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/gridItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,eAAe,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC;IAC3C;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACvC;;OAEG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;CAChC,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,sBAAsB,EAAE,aAAa,EAmDjD,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,gBAAgB,oCAAwC,CAAC;AACtE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,mCAAyD,CAAC"}
|