@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,22 +3,29 @@ import {Property} from 'csstype';
|
|
|
3
3
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
4
4
|
import {SystemPropValues} from './systemProps';
|
|
5
5
|
|
|
6
|
-
/** style props to set CSS color properties
|
|
6
|
+
/** style props to set CSS color properties
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
7
9
|
export type ColorStyleProps = {
|
|
8
10
|
/**
|
|
9
11
|
* - sets [CSS background-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color)
|
|
10
12
|
* - system tokens: `color`
|
|
11
|
-
*
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
12
15
|
backgroundColor?: SystemPropValues['color'];
|
|
13
16
|
/**
|
|
14
17
|
* - sets [CSS color property](https://developer.mozilla.org/en-US/docs/Web/CSS/color)
|
|
15
18
|
* - system tokens: `color`
|
|
16
|
-
*
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
17
21
|
color?: SystemPropValues['color'];
|
|
18
|
-
/** sets [CSS opacity property](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity)
|
|
22
|
+
/** sets [CSS opacity property](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity)
|
|
23
|
+
* @deprecated
|
|
24
|
+
*/
|
|
19
25
|
opacity?: Property.Opacity;
|
|
20
26
|
};
|
|
21
27
|
|
|
28
|
+
/** @deprecated */
|
|
22
29
|
export const colorStyleFnConfigs: StyleFnConfig[] = [
|
|
23
30
|
{
|
|
24
31
|
name: 'backgroundColor',
|
|
@@ -37,6 +44,7 @@ export const colorStyleFnConfigs: StyleFnConfig[] = [
|
|
|
37
44
|
},
|
|
38
45
|
];
|
|
39
46
|
|
|
47
|
+
/** @deprecated */
|
|
40
48
|
export const colorFns = buildStyleFns(colorStyleFnConfigs);
|
|
41
49
|
/**
|
|
42
50
|
* A style prop function that takes component props and returns color styles from Canvas token values.
|
|
@@ -48,5 +56,6 @@ export const colorFns = buildStyleFns(colorStyleFnConfigs);
|
|
|
48
56
|
* <Box color="frenchVanilla100" opacity={0.6}>Hello, colors!</Box>
|
|
49
57
|
* );
|
|
50
58
|
* ```
|
|
59
|
+
* @deprecated
|
|
51
60
|
*/
|
|
52
61
|
export const color = buildStylePropFn<ColorStyleProps>(colorFns);
|
|
@@ -2,17 +2,23 @@ import {Property} from 'csstype';
|
|
|
2
2
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
3
3
|
import {SystemPropValues} from './systemProps';
|
|
4
4
|
|
|
5
|
-
/** style props to for depth styles
|
|
5
|
+
/** style props to for depth styles
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
6
8
|
export type DepthStyleProps = {
|
|
7
|
-
/** sets [CSS box-shadow styles](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
|
|
9
|
+
/** sets [CSS box-shadow styles](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
8
12
|
boxShadow?: Property.BoxShadow;
|
|
9
13
|
/**
|
|
10
14
|
* - sets [CSS box-shadow styles](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
|
|
11
15
|
* - system tokens: `depth`
|
|
12
|
-
*
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
13
18
|
depth?: SystemPropValues['depth'];
|
|
14
19
|
};
|
|
15
20
|
|
|
21
|
+
/** @deprecated */
|
|
16
22
|
export const depthStyleFnConfigs: StyleFnConfig[] = [
|
|
17
23
|
{
|
|
18
24
|
name: 'boxShadow',
|
|
@@ -26,6 +32,7 @@ export const depthStyleFnConfigs: StyleFnConfig[] = [
|
|
|
26
32
|
},
|
|
27
33
|
];
|
|
28
34
|
|
|
35
|
+
/** @deprecated */
|
|
29
36
|
export const depthStyleFns = buildStyleFns(depthStyleFnConfigs);
|
|
30
37
|
/**
|
|
31
38
|
* A style prop function that takes component props and returns depth styles from Canvas token values.
|
|
@@ -37,5 +44,6 @@ export const depthStyleFns = buildStyleFns(depthStyleFnConfigs);
|
|
|
37
44
|
* <Box depth={3}>Hello, box shadows!</Box>
|
|
38
45
|
* );
|
|
39
46
|
* ```
|
|
47
|
+
* @deprecated
|
|
40
48
|
*/
|
|
41
49
|
export const depth = buildStylePropFn<DepthStyleProps>(depthStyleFns);
|
package/layout/lib/utils/flex.ts
CHANGED
|
@@ -3,42 +3,61 @@ import {Property, Globals} from 'csstype';
|
|
|
3
3
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
4
4
|
import {SystemPropValues} from './systemProps';
|
|
5
5
|
|
|
6
|
-
/** style props to for CSS flexbox container properties
|
|
6
|
+
/** style props to for CSS flexbox container properties
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
7
9
|
export type FlexStyleProps = {
|
|
8
|
-
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
|
|
10
|
+
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
9
13
|
alignItems?: Property.AlignItems;
|
|
10
|
-
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
14
|
+
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
11
17
|
alignContent?: Property.AlignContent;
|
|
12
18
|
/**
|
|
13
19
|
* - sets [CSS display property](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
|
|
14
20
|
* - @default 'flex'
|
|
15
|
-
*
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
16
23
|
display?: 'flex' | 'inline-flex' | 'none' | Globals | (string & {});
|
|
17
|
-
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
|
|
24
|
+
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
|
|
25
|
+
* @deprecated
|
|
26
|
+
*/
|
|
18
27
|
justifyItems?: Property.JustifyItems;
|
|
19
|
-
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
28
|
+
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
29
|
+
* @deprecated
|
|
30
|
+
*/
|
|
20
31
|
justifyContent?: Property.JustifyContent;
|
|
21
|
-
/** sets [CSS flex-wrap property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap)
|
|
32
|
+
/** sets [CSS flex-wrap property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap)
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
22
35
|
flexWrap?: Property.FlexWrap;
|
|
23
|
-
/** sets [CSS flex-direction property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction)
|
|
36
|
+
/** sets [CSS flex-direction property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction)
|
|
37
|
+
* @deprecated
|
|
38
|
+
*/
|
|
24
39
|
flexDirection?: Property.FlexDirection;
|
|
25
40
|
/**
|
|
26
41
|
* - sets [CSS gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/gap)
|
|
27
42
|
* - system tokens: `space`
|
|
28
|
-
*
|
|
43
|
+
* @deprecated
|
|
44
|
+
*/
|
|
29
45
|
gap?: SystemPropValues['space'];
|
|
30
46
|
/**
|
|
31
47
|
* - sets [CSS column-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap)
|
|
32
48
|
* - system tokens: `space`
|
|
33
|
-
*
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
34
51
|
columnGap?: SystemPropValues['space'];
|
|
35
52
|
/**
|
|
36
53
|
* - sets [CSS row-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap)
|
|
37
54
|
* - system tokens: `space`
|
|
38
|
-
*
|
|
55
|
+
* @deprecated
|
|
56
|
+
*/
|
|
39
57
|
rowGap?: SystemPropValues['space'];
|
|
40
58
|
};
|
|
41
59
|
|
|
60
|
+
/** @deprecated */
|
|
42
61
|
export const flexStyleFnConfigs: StyleFnConfig[] = [
|
|
43
62
|
{
|
|
44
63
|
name: 'alignContent',
|
|
@@ -92,6 +111,7 @@ export const flexStyleFnConfigs: StyleFnConfig[] = [
|
|
|
92
111
|
},
|
|
93
112
|
];
|
|
94
113
|
|
|
114
|
+
/** @deprecated */
|
|
95
115
|
export const flexStyleFns = buildStyleFns(flexStyleFnConfigs);
|
|
96
116
|
/**
|
|
97
117
|
* A style prop function that takes component props and returns flexbox styles.
|
|
@@ -105,5 +125,6 @@ export const flexStyleFns = buildStyleFns(flexStyleFnConfigs);
|
|
|
105
125
|
* </Flex>
|
|
106
126
|
* );
|
|
107
127
|
* ```
|
|
128
|
+
* @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
|
|
108
129
|
*/
|
|
109
130
|
export const flex = buildStylePropFn<FlexStyleProps>(flexStyleFns);
|
|
@@ -1,24 +1,41 @@
|
|
|
1
1
|
import {Property} from 'csstype';
|
|
2
2
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
3
3
|
|
|
4
|
-
/** style props to for CSS flex item properties
|
|
4
|
+
/** style props to for CSS flex item 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 FlexItemStyleProps = {
|
|
6
|
-
/** sets [CSS flex property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex)
|
|
8
|
+
/** sets [CSS flex property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex)
|
|
9
|
+
* @deprecated
|
|
10
|
+
*/
|
|
7
11
|
flex?: Property.Flex;
|
|
8
|
-
/** sets [CSS flex-grow property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow)
|
|
12
|
+
/** sets [CSS flex-grow property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow)
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
9
15
|
flexGrow?: Property.FlexGrow;
|
|
10
|
-
/** sets [CSS flex-shrink property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink)
|
|
16
|
+
/** sets [CSS flex-shrink property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink)
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
11
19
|
flexShrink?: Property.FlexShrink;
|
|
12
|
-
/** sets [CSS flex-basis property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis)
|
|
20
|
+
/** sets [CSS flex-basis property](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis)
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
13
23
|
flexBasis?: Property.FlexBasis;
|
|
14
|
-
/** sets [CSS justify-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)
|
|
24
|
+
/** sets [CSS justify-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)
|
|
25
|
+
* @deprecated
|
|
26
|
+
*/
|
|
15
27
|
justifySelf?: Property.JustifySelf;
|
|
16
|
-
/** sets [CSS align-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
|
|
28
|
+
/** sets [CSS align-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
|
|
29
|
+
* @deprecated
|
|
30
|
+
*/
|
|
17
31
|
alignSelf?: Property.AlignSelf;
|
|
18
|
-
/** sets [CSS order property](https://developer.mozilla.org/en-US/docs/Web/CSS/order)
|
|
32
|
+
/** sets [CSS order property](https://developer.mozilla.org/en-US/docs/Web/CSS/order)
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
19
35
|
order?: Property.Order;
|
|
20
36
|
};
|
|
21
37
|
|
|
38
|
+
/** @deprecated */
|
|
22
39
|
export const flexItemStyleFnConfigs: StyleFnConfig[] = [
|
|
23
40
|
{
|
|
24
41
|
name: 'flex',
|
|
@@ -57,6 +74,7 @@ export const flexItemStyleFnConfigs: StyleFnConfig[] = [
|
|
|
57
74
|
},
|
|
58
75
|
];
|
|
59
76
|
|
|
77
|
+
/** @deprecated */
|
|
60
78
|
export const flexItemStyleFns = buildStyleFns(flexItemStyleFnConfigs);
|
|
61
79
|
/**
|
|
62
80
|
* A style prop function that takes component props and returns flexbox item styles.
|
|
@@ -70,5 +88,6 @@ export const flexItemStyleFns = buildStyleFns(flexItemStyleFnConfigs);
|
|
|
70
88
|
* </Box>
|
|
71
89
|
* );
|
|
72
90
|
* ```
|
|
91
|
+
* @deprecated
|
|
73
92
|
*/
|
|
74
93
|
export const flexItem = buildStylePropFn<FlexItemStyleProps>(flexItemStyleFns);
|
package/layout/lib/utils/grid.ts
CHANGED
|
@@ -3,58 +3,93 @@ import {Property, Globals} from 'csstype';
|
|
|
3
3
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
4
4
|
import {SystemPropValues} from './systemProps';
|
|
5
5
|
|
|
6
|
-
/** style props to for CSS grid container properties
|
|
6
|
+
/** style props to for CSS grid container properties
|
|
7
|
+
* @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).
|
|
8
|
+
*/
|
|
7
9
|
export type GridStyleProps = {
|
|
8
|
-
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
|
|
10
|
+
/** sets [CSS align-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items)
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
9
13
|
alignItems?: Property.AlignItems;
|
|
10
|
-
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
14
|
+
/** sets [CSS align-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content)
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
11
17
|
alignContent?: Property.AlignContent;
|
|
12
18
|
/**
|
|
13
19
|
* - sets [CSS display property](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
|
|
14
20
|
* - @default 'grid'
|
|
15
|
-
*
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
16
23
|
display?: 'grid' | 'inline-grid' | 'none' | Globals | (string & {});
|
|
17
|
-
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
|
|
24
|
+
/** sets [CSS justify-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items)
|
|
25
|
+
* @deprecated
|
|
26
|
+
*/
|
|
18
27
|
justifyItems?: Property.JustifyItems;
|
|
19
|
-
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
28
|
+
/** sets [CSS justify-content property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content)
|
|
29
|
+
* @deprecated
|
|
30
|
+
*/
|
|
20
31
|
justifyContent?: Property.JustifyContent;
|
|
21
|
-
/** sets [CSS grid-template property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template)
|
|
32
|
+
/** sets [CSS grid-template property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template)
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
22
35
|
gridTemplate?: Property.GridTemplate;
|
|
23
|
-
/** sets [CSS grid-template-areas property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas)
|
|
36
|
+
/** sets [CSS grid-template-areas property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas)
|
|
37
|
+
* @deprecated
|
|
38
|
+
*/
|
|
24
39
|
gridTemplateAreas?: Property.GridTemplateAreas;
|
|
25
|
-
/** sets [CSS grid-template-columns property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)
|
|
40
|
+
/** sets [CSS grid-template-columns property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
26
43
|
gridTemplateColumns?: Property.GridTemplateColumns;
|
|
27
|
-
/** sets [CSS grid-template-rows property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows)
|
|
44
|
+
/** sets [CSS grid-template-rows property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows)
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
28
47
|
gridTemplateRows?: Property.GridTemplateRows;
|
|
29
48
|
/**
|
|
30
49
|
* - sets [CSS column-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap)
|
|
31
50
|
* - system tokens: `space`
|
|
32
|
-
*
|
|
51
|
+
* @deprecated
|
|
52
|
+
*/
|
|
33
53
|
gridColumnGap?: Property.GridColumnGap | SystemPropValues['space'];
|
|
34
54
|
/**
|
|
35
55
|
* - sets [CSS row-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap)
|
|
36
56
|
* - system tokens: `space`
|
|
37
|
-
*
|
|
57
|
+
* @deprecated
|
|
58
|
+
*/
|
|
38
59
|
gridRowGap?: Property.GridRowGap | SystemPropValues['space'];
|
|
39
60
|
/**
|
|
40
61
|
* - sets [CSS grid-gap property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-gap)
|
|
41
62
|
* - system tokens: `space`
|
|
42
|
-
*
|
|
63
|
+
* @deprecated
|
|
64
|
+
*/
|
|
43
65
|
gridGap?: Property.GridGap | SystemPropValues['space'];
|
|
44
|
-
/** sets [CSS place-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/place-items)
|
|
66
|
+
/** sets [CSS place-items property](https://developer.mozilla.org/en-US/docs/Web/CSS/place-items)
|
|
67
|
+
* @deprecated
|
|
68
|
+
*/
|
|
45
69
|
gridPlaceItems?: Property.PlaceItems;
|
|
46
|
-
/** sets [CSS grid-auto-columns property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns)
|
|
70
|
+
/** sets [CSS grid-auto-columns property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns)
|
|
71
|
+
* @deprecated
|
|
72
|
+
*/
|
|
47
73
|
gridAutoColumns?: Property.GridAutoColumns;
|
|
48
|
-
/** sets [CSS grid-auto-rows property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows)
|
|
74
|
+
/** sets [CSS grid-auto-rows property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows)
|
|
75
|
+
* @deprecated
|
|
76
|
+
*/
|
|
49
77
|
gridAutoRows?: Property.GridAutoRows;
|
|
50
|
-
/** sets [CSS grid-area property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)
|
|
78
|
+
/** sets [CSS grid-area property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)
|
|
79
|
+
* @deprecated
|
|
80
|
+
*/
|
|
51
81
|
gridArea?: Property.GridArea;
|
|
52
|
-
/** sets [CSS grid-auto-flow property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow)
|
|
82
|
+
/** sets [CSS grid-auto-flow property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow)
|
|
83
|
+
* @deprecated
|
|
84
|
+
*/
|
|
53
85
|
gridAutoFlow?: Property.GridAutoFlow;
|
|
54
|
-
/** sets [CSS grid property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid)
|
|
86
|
+
/** sets [CSS grid property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid)
|
|
87
|
+
* @deprecated
|
|
88
|
+
*/
|
|
55
89
|
grid?: Property.Grid;
|
|
56
90
|
};
|
|
57
91
|
|
|
92
|
+
/** @deprecated */
|
|
58
93
|
export const gridStyleFnConfigs: StyleFnConfig[] = [
|
|
59
94
|
{
|
|
60
95
|
name: 'gridGap',
|
|
@@ -148,6 +183,7 @@ export const gridStyleFnConfigs: StyleFnConfig[] = [
|
|
|
148
183
|
},
|
|
149
184
|
];
|
|
150
185
|
|
|
186
|
+
/** @deprecated */
|
|
151
187
|
export const gridStyleFns = buildStyleFns(gridStyleFnConfigs);
|
|
152
188
|
/**
|
|
153
189
|
* A style prop function that takes component props and returns grid styles.
|
|
@@ -162,5 +198,6 @@ export const gridStyleFns = buildStyleFns(gridStyleFnConfigs);
|
|
|
162
198
|
* </Grid>
|
|
163
199
|
* );
|
|
164
200
|
* ```
|
|
201
|
+
* @deprecated
|
|
165
202
|
*/
|
|
166
203
|
export const grid = buildStylePropFn<GridStyleProps>(gridStyleFns);
|
|
@@ -2,30 +2,53 @@ import {Property} from 'csstype';
|
|
|
2
2
|
|
|
3
3
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
4
4
|
|
|
5
|
-
/** style props to for CSS grid item properties
|
|
5
|
+
/** style props to for CSS grid item properties
|
|
6
|
+
* @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).
|
|
7
|
+
*/
|
|
6
8
|
export type GridItemStyleProps = {
|
|
7
|
-
/** sets [CSS grid-column-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start)
|
|
9
|
+
/** sets [CSS grid-column-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start)
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
8
12
|
gridColumnStart?: Property.GridColumnStart;
|
|
9
|
-
/** sets [CSS grid-column-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end)
|
|
13
|
+
/** sets [CSS grid-column-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end)
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
10
16
|
gridColumnEnd?: Property.GridColumnEnd;
|
|
11
|
-
/** sets [CSS grid-row-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start)
|
|
17
|
+
/** sets [CSS grid-row-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start)
|
|
18
|
+
* @deprecated
|
|
19
|
+
*/
|
|
12
20
|
gridRowStart?: Property.GridRowStart;
|
|
13
|
-
/** sets [CSS grid-row-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end)
|
|
21
|
+
/** sets [CSS grid-row-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end)
|
|
22
|
+
* @deprecated
|
|
23
|
+
*/
|
|
14
24
|
gridRowEnd?: Property.GridRowEnd;
|
|
15
|
-
/** sets [CSS grid-column property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)
|
|
25
|
+
/** sets [CSS grid-column property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column)
|
|
26
|
+
* @deprecated
|
|
27
|
+
*/
|
|
16
28
|
gridColumn?: Property.GridColumn;
|
|
17
|
-
/** sets [CSS grid-row property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row)
|
|
29
|
+
/** sets [CSS grid-row property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row)
|
|
30
|
+
* @deprecated
|
|
31
|
+
*/
|
|
18
32
|
gridRow?: Property.GridRow;
|
|
19
|
-
/** sets [CSS grid-area property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)
|
|
33
|
+
/** sets [CSS grid-area property](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area)
|
|
34
|
+
* @deprecated
|
|
35
|
+
*/
|
|
20
36
|
gridArea?: Property.GridArea;
|
|
21
|
-
/** sets [CSS justify-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)
|
|
37
|
+
/** sets [CSS justify-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self)
|
|
38
|
+
* @deprecated
|
|
39
|
+
*/
|
|
22
40
|
justifySelf?: Property.JustifySelf;
|
|
23
|
-
/** sets [CSS align-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
|
|
41
|
+
/** sets [CSS align-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self)
|
|
42
|
+
* @deprecated
|
|
43
|
+
*/
|
|
24
44
|
alignSelf?: Property.AlignSelf;
|
|
25
|
-
/** sets [CSS place-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/place-self)
|
|
45
|
+
/** sets [CSS place-self property](https://developer.mozilla.org/en-US/docs/Web/CSS/place-self)
|
|
46
|
+
* @deprecated
|
|
47
|
+
*/
|
|
26
48
|
placeSelf?: Property.PlaceSelf;
|
|
27
49
|
};
|
|
28
50
|
|
|
51
|
+
/** @deprecated */
|
|
29
52
|
export const gridItemStyleFnConfigs: StyleFnConfig[] = [
|
|
30
53
|
{
|
|
31
54
|
name: 'gridColumnStart',
|
|
@@ -79,6 +102,7 @@ export const gridItemStyleFnConfigs: StyleFnConfig[] = [
|
|
|
79
102
|
},
|
|
80
103
|
];
|
|
81
104
|
|
|
105
|
+
/** @deprecated */
|
|
82
106
|
export const gridItemStyleFns = buildStyleFns(gridItemStyleFnConfigs);
|
|
83
107
|
/**
|
|
84
108
|
* A style prop function that takes component props and returns grid styles.
|
|
@@ -92,5 +116,6 @@ export const gridItemStyleFns = buildStyleFns(gridItemStyleFnConfigs);
|
|
|
92
116
|
* </Grid.Item>
|
|
93
117
|
* );
|
|
94
118
|
* ```
|
|
119
|
+
* @deprecated
|
|
95
120
|
*/
|
|
96
121
|
export const gridItem = buildStylePropFn<GridItemStyleProps>(gridItemStyleFns);
|
|
@@ -3,52 +3,73 @@ import {Property} from 'csstype';
|
|
|
3
3
|
import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
|
|
4
4
|
import {SystemPropValues} from './systemProps';
|
|
5
5
|
|
|
6
|
-
/** style props to for CSS layout properties
|
|
6
|
+
/** style props to for CSS layout properties
|
|
7
|
+
* @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).
|
|
8
|
+
*/
|
|
7
9
|
export type LayoutStyleProps = {
|
|
8
|
-
/** sets [CSS display property](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
|
|
10
|
+
/** sets [CSS display property](https://developer.mozilla.org/en-US/docs/Web/CSS/display)
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
9
13
|
display?: Property.Display;
|
|
10
14
|
/**
|
|
11
15
|
* - sets [CSS height property](https://developer.mozilla.org/en-US/docs/Web/CSS/height)
|
|
12
16
|
* - system tokens: `space`
|
|
13
|
-
*
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
14
19
|
height?: SystemPropValues['space'];
|
|
15
|
-
/** sets [CSS list-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style)
|
|
20
|
+
/** sets [CSS list-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style)
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
16
23
|
listStyle?: Property.ListStyle;
|
|
17
24
|
/**
|
|
18
25
|
* - sets [CSS max-height property](https://developer.mozilla.org/en-US/docs/Web/CSS/max-height)
|
|
19
26
|
* - system tokens: `space`
|
|
20
|
-
*
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
21
29
|
maxHeight?: SystemPropValues['space'];
|
|
22
30
|
/**
|
|
23
31
|
* - sets [CSS max-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/max-width)
|
|
24
32
|
* - system tokens: `space`
|
|
25
|
-
*
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
26
35
|
maxWidth?: SystemPropValues['space'];
|
|
27
36
|
/**
|
|
28
37
|
* - sets [CSS min-height property](https://developer.mozilla.org/en-US/docs/Web/CSS/min-height)
|
|
29
38
|
* - system tokens: `space`
|
|
30
|
-
*
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
31
41
|
minHeight?: SystemPropValues['space'];
|
|
32
42
|
/**
|
|
33
43
|
* - sets [CSS min-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/min-width)
|
|
34
44
|
* - system tokens: `space`
|
|
35
|
-
*
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
36
47
|
minWidth?: SystemPropValues['space'];
|
|
37
|
-
/** sets [CSS overflow property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow)
|
|
48
|
+
/** sets [CSS overflow property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow)
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
38
51
|
overflow?: Property.Overflow;
|
|
39
|
-
/** sets [CSS overflow-x property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-x)
|
|
52
|
+
/** sets [CSS overflow-x property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-x)
|
|
53
|
+
* @deprecated
|
|
54
|
+
*/
|
|
40
55
|
overflowX?: Property.OverflowX;
|
|
41
|
-
/** sets [CSS overflow-y property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-y)
|
|
56
|
+
/** sets [CSS overflow-y property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-y)
|
|
57
|
+
* @deprecated
|
|
58
|
+
*/
|
|
42
59
|
overflowY?: Property.OverflowY;
|
|
43
|
-
/** sets [CSS vertical-align property](https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align)
|
|
60
|
+
/** sets [CSS vertical-align property](https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align)
|
|
61
|
+
* @deprecated
|
|
62
|
+
*/
|
|
44
63
|
verticalAlign?: Property.VerticalAlign;
|
|
45
64
|
/**
|
|
46
65
|
* - sets [CSS width property](https://developer.mozilla.org/en-US/docs/Web/CSS/width)
|
|
47
66
|
* - system tokens: `space`
|
|
48
|
-
*
|
|
67
|
+
* @deprecated
|
|
68
|
+
*/
|
|
49
69
|
width?: SystemPropValues['space'];
|
|
50
70
|
};
|
|
51
71
|
|
|
72
|
+
/** @deprecated */
|
|
52
73
|
export const layoutStyleFnConfigs: StyleFnConfig[] = [
|
|
53
74
|
{
|
|
54
75
|
name: 'display',
|
|
@@ -112,6 +133,7 @@ export const layoutStyleFnConfigs: StyleFnConfig[] = [
|
|
|
112
133
|
},
|
|
113
134
|
];
|
|
114
135
|
|
|
136
|
+
/** @deprecated */
|
|
115
137
|
export const layoutStyleFns = buildStyleFns(layoutStyleFnConfigs);
|
|
116
138
|
/**
|
|
117
139
|
* A style prop function that takes component props and returns layout styles.
|
|
@@ -125,5 +147,6 @@ export const layoutStyleFns = buildStyleFns(layoutStyleFnConfigs);
|
|
|
125
147
|
* </Box>
|
|
126
148
|
* );
|
|
127
149
|
* ```
|
|
150
|
+
* @deprecated
|
|
128
151
|
*/
|
|
129
152
|
export const layout = buildStylePropFn<LayoutStyleProps>(layoutStyleFns);
|
|
@@ -43,6 +43,7 @@ function isStyleProps(prop: string): boolean {
|
|
|
43
43
|
/**
|
|
44
44
|
* This function has the same signature as {@link handleCsProp} and also calls `handleCsProps`, but
|
|
45
45
|
* adds support for style props. It can be used as a drop-in replacement for `handleCsProps`.
|
|
46
|
+
* @deprecated ⚠️ `mergeStyles` is deprecated since it supports style props. Use `handleCsProps` to ensure correct style merging order. For more information view our [docs](https://workday.github.io/canvas-kit/?path=/docs/styling-guides-merging-styles--docs#handlecsprop).
|
|
46
47
|
*/
|
|
47
48
|
export function mergeStyles<T extends {}>(
|
|
48
49
|
/**
|