@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.
Files changed (161) hide show
  1. package/dist/commonjs/layout/lib/Box.d.ts +1 -0
  2. package/dist/commonjs/layout/lib/Box.d.ts.map +1 -1
  3. package/dist/commonjs/layout/lib/Box.js +2 -0
  4. package/dist/commonjs/layout/lib/utils/background.d.ts +25 -8
  5. package/dist/commonjs/layout/lib/utils/background.d.ts.map +1 -1
  6. package/dist/commonjs/layout/lib/utils/background.js +3 -0
  7. package/dist/commonjs/layout/lib/utils/border/color.d.ts +12 -1
  8. package/dist/commonjs/layout/lib/utils/border/color.d.ts.map +1 -1
  9. package/dist/commonjs/layout/lib/utils/border/color.js +2 -0
  10. package/dist/commonjs/layout/lib/utils/border/index.d.ts +3 -0
  11. package/dist/commonjs/layout/lib/utils/border/index.d.ts.map +1 -1
  12. package/dist/commonjs/layout/lib/utils/border/index.js +2 -0
  13. package/dist/commonjs/layout/lib/utils/border/lineStyle.d.ts +24 -6
  14. package/dist/commonjs/layout/lib/utils/border/lineStyle.d.ts.map +1 -1
  15. package/dist/commonjs/layout/lib/utils/border/lineStyle.js +2 -0
  16. package/dist/commonjs/layout/lib/utils/border/radius.d.ts +15 -6
  17. package/dist/commonjs/layout/lib/utils/border/radius.d.ts.map +1 -1
  18. package/dist/commonjs/layout/lib/utils/border/radius.js +2 -0
  19. package/dist/commonjs/layout/lib/utils/border/shorthand.d.ts +22 -8
  20. package/dist/commonjs/layout/lib/utils/border/shorthand.d.ts.map +1 -1
  21. package/dist/commonjs/layout/lib/utils/border/shorthand.js +2 -0
  22. package/dist/commonjs/layout/lib/utils/border/width.d.ts +18 -4
  23. package/dist/commonjs/layout/lib/utils/border/width.d.ts.map +1 -1
  24. package/dist/commonjs/layout/lib/utils/border/width.js +2 -0
  25. package/dist/commonjs/layout/lib/utils/buildStyleFns.d.ts +4 -0
  26. package/dist/commonjs/layout/lib/utils/buildStyleFns.d.ts.map +1 -1
  27. package/dist/commonjs/layout/lib/utils/buildStyleFns.js +9 -0
  28. package/dist/commonjs/layout/lib/utils/color.d.ts +13 -4
  29. package/dist/commonjs/layout/lib/utils/color.d.ts.map +1 -1
  30. package/dist/commonjs/layout/lib/utils/color.js +3 -0
  31. package/dist/commonjs/layout/lib/utils/depth.d.ts +11 -3
  32. package/dist/commonjs/layout/lib/utils/depth.d.ts.map +1 -1
  33. package/dist/commonjs/layout/lib/utils/depth.js +3 -0
  34. package/dist/commonjs/layout/lib/utils/flex.d.ts +32 -11
  35. package/dist/commonjs/layout/lib/utils/flex.d.ts.map +1 -1
  36. package/dist/commonjs/layout/lib/utils/flex.js +3 -0
  37. package/dist/commonjs/layout/lib/utils/flexItem.d.ts +27 -8
  38. package/dist/commonjs/layout/lib/utils/flexItem.d.ts.map +1 -1
  39. package/dist/commonjs/layout/lib/utils/flexItem.js +3 -0
  40. package/dist/commonjs/layout/lib/utils/grid.d.ts +56 -19
  41. package/dist/commonjs/layout/lib/utils/grid.d.ts.map +1 -1
  42. package/dist/commonjs/layout/lib/utils/grid.js +3 -0
  43. package/dist/commonjs/layout/lib/utils/gridItem.d.ts +36 -11
  44. package/dist/commonjs/layout/lib/utils/gridItem.d.ts.map +1 -1
  45. package/dist/commonjs/layout/lib/utils/gridItem.js +3 -0
  46. package/dist/commonjs/layout/lib/utils/layout.d.ts +36 -13
  47. package/dist/commonjs/layout/lib/utils/layout.d.ts.map +1 -1
  48. package/dist/commonjs/layout/lib/utils/layout.js +3 -0
  49. package/dist/commonjs/layout/lib/utils/mergeStyles.d.ts +1 -0
  50. package/dist/commonjs/layout/lib/utils/mergeStyles.d.ts.map +1 -1
  51. package/dist/commonjs/layout/lib/utils/mergeStyles.js +1 -0
  52. package/dist/commonjs/layout/lib/utils/other.d.ts +106 -34
  53. package/dist/commonjs/layout/lib/utils/other.d.ts.map +1 -1
  54. package/dist/commonjs/layout/lib/utils/other.js +3 -0
  55. package/dist/commonjs/layout/lib/utils/position.d.ts +24 -9
  56. package/dist/commonjs/layout/lib/utils/position.d.ts.map +1 -1
  57. package/dist/commonjs/layout/lib/utils/position.js +3 -0
  58. package/dist/commonjs/layout/lib/utils/space.d.ts +42 -19
  59. package/dist/commonjs/layout/lib/utils/space.d.ts.map +1 -1
  60. package/dist/commonjs/layout/lib/utils/space.js +3 -0
  61. package/dist/commonjs/layout/lib/utils/styleProps.d.ts +2 -0
  62. package/dist/commonjs/layout/lib/utils/styleProps.d.ts.map +1 -1
  63. package/dist/commonjs/layout/lib/utils/systemProps.d.ts +17 -0
  64. package/dist/commonjs/layout/lib/utils/systemProps.d.ts.map +1 -1
  65. package/dist/commonjs/layout/lib/utils/text.d.ts +45 -14
  66. package/dist/commonjs/layout/lib/utils/text.d.ts.map +1 -1
  67. package/dist/commonjs/layout/lib/utils/text.js +3 -0
  68. package/dist/commonjs/text-input/lib/TextInput.js +5 -5
  69. package/dist/es6/layout/lib/Box.d.ts +1 -0
  70. package/dist/es6/layout/lib/Box.d.ts.map +1 -1
  71. package/dist/es6/layout/lib/Box.js +2 -0
  72. package/dist/es6/layout/lib/utils/background.d.ts +25 -8
  73. package/dist/es6/layout/lib/utils/background.d.ts.map +1 -1
  74. package/dist/es6/layout/lib/utils/background.js +3 -0
  75. package/dist/es6/layout/lib/utils/border/color.d.ts +12 -1
  76. package/dist/es6/layout/lib/utils/border/color.d.ts.map +1 -1
  77. package/dist/es6/layout/lib/utils/border/color.js +2 -0
  78. package/dist/es6/layout/lib/utils/border/index.d.ts +3 -0
  79. package/dist/es6/layout/lib/utils/border/index.d.ts.map +1 -1
  80. package/dist/es6/layout/lib/utils/border/index.js +2 -0
  81. package/dist/es6/layout/lib/utils/border/lineStyle.d.ts +24 -6
  82. package/dist/es6/layout/lib/utils/border/lineStyle.d.ts.map +1 -1
  83. package/dist/es6/layout/lib/utils/border/lineStyle.js +2 -0
  84. package/dist/es6/layout/lib/utils/border/radius.d.ts +15 -6
  85. package/dist/es6/layout/lib/utils/border/radius.d.ts.map +1 -1
  86. package/dist/es6/layout/lib/utils/border/radius.js +2 -0
  87. package/dist/es6/layout/lib/utils/border/shorthand.d.ts +22 -8
  88. package/dist/es6/layout/lib/utils/border/shorthand.d.ts.map +1 -1
  89. package/dist/es6/layout/lib/utils/border/shorthand.js +2 -0
  90. package/dist/es6/layout/lib/utils/border/width.d.ts +18 -4
  91. package/dist/es6/layout/lib/utils/border/width.d.ts.map +1 -1
  92. package/dist/es6/layout/lib/utils/border/width.js +2 -0
  93. package/dist/es6/layout/lib/utils/buildStyleFns.d.ts +4 -0
  94. package/dist/es6/layout/lib/utils/buildStyleFns.d.ts.map +1 -1
  95. package/dist/es6/layout/lib/utils/buildStyleFns.js +9 -0
  96. package/dist/es6/layout/lib/utils/color.d.ts +13 -4
  97. package/dist/es6/layout/lib/utils/color.d.ts.map +1 -1
  98. package/dist/es6/layout/lib/utils/color.js +3 -0
  99. package/dist/es6/layout/lib/utils/depth.d.ts +11 -3
  100. package/dist/es6/layout/lib/utils/depth.d.ts.map +1 -1
  101. package/dist/es6/layout/lib/utils/depth.js +3 -0
  102. package/dist/es6/layout/lib/utils/flex.d.ts +32 -11
  103. package/dist/es6/layout/lib/utils/flex.d.ts.map +1 -1
  104. package/dist/es6/layout/lib/utils/flex.js +3 -0
  105. package/dist/es6/layout/lib/utils/flexItem.d.ts +27 -8
  106. package/dist/es6/layout/lib/utils/flexItem.d.ts.map +1 -1
  107. package/dist/es6/layout/lib/utils/flexItem.js +3 -0
  108. package/dist/es6/layout/lib/utils/grid.d.ts +56 -19
  109. package/dist/es6/layout/lib/utils/grid.d.ts.map +1 -1
  110. package/dist/es6/layout/lib/utils/grid.js +3 -0
  111. package/dist/es6/layout/lib/utils/gridItem.d.ts +36 -11
  112. package/dist/es6/layout/lib/utils/gridItem.d.ts.map +1 -1
  113. package/dist/es6/layout/lib/utils/gridItem.js +3 -0
  114. package/dist/es6/layout/lib/utils/layout.d.ts +36 -13
  115. package/dist/es6/layout/lib/utils/layout.d.ts.map +1 -1
  116. package/dist/es6/layout/lib/utils/layout.js +3 -0
  117. package/dist/es6/layout/lib/utils/mergeStyles.d.ts +1 -0
  118. package/dist/es6/layout/lib/utils/mergeStyles.d.ts.map +1 -1
  119. package/dist/es6/layout/lib/utils/mergeStyles.js +1 -0
  120. package/dist/es6/layout/lib/utils/other.d.ts +106 -34
  121. package/dist/es6/layout/lib/utils/other.d.ts.map +1 -1
  122. package/dist/es6/layout/lib/utils/other.js +3 -0
  123. package/dist/es6/layout/lib/utils/position.d.ts +24 -9
  124. package/dist/es6/layout/lib/utils/position.d.ts.map +1 -1
  125. package/dist/es6/layout/lib/utils/position.js +3 -0
  126. package/dist/es6/layout/lib/utils/space.d.ts +42 -19
  127. package/dist/es6/layout/lib/utils/space.d.ts.map +1 -1
  128. package/dist/es6/layout/lib/utils/space.js +3 -0
  129. package/dist/es6/layout/lib/utils/styleProps.d.ts +2 -0
  130. package/dist/es6/layout/lib/utils/styleProps.d.ts.map +1 -1
  131. package/dist/es6/layout/lib/utils/systemProps.d.ts +17 -0
  132. package/dist/es6/layout/lib/utils/systemProps.d.ts.map +1 -1
  133. package/dist/es6/layout/lib/utils/text.d.ts +45 -14
  134. package/dist/es6/layout/lib/utils/text.d.ts.map +1 -1
  135. package/dist/es6/layout/lib/utils/text.js +3 -0
  136. package/dist/es6/text-input/lib/TextInput.js +5 -5
  137. package/layout/lib/Box.tsx +2 -0
  138. package/layout/lib/utils/background.ts +25 -8
  139. package/layout/lib/utils/border/color.ts +12 -1
  140. package/layout/lib/utils/border/index.ts +3 -0
  141. package/layout/lib/utils/border/lineStyle.ts +24 -6
  142. package/layout/lib/utils/border/radius.ts +15 -6
  143. package/layout/lib/utils/border/shorthand.ts +22 -8
  144. package/layout/lib/utils/border/width.ts +18 -4
  145. package/layout/lib/utils/buildStyleFns.ts +11 -0
  146. package/layout/lib/utils/color.ts +13 -4
  147. package/layout/lib/utils/depth.ts +11 -3
  148. package/layout/lib/utils/flex.ts +32 -11
  149. package/layout/lib/utils/flexItem.ts +27 -8
  150. package/layout/lib/utils/grid.ts +56 -19
  151. package/layout/lib/utils/gridItem.ts +36 -11
  152. package/layout/lib/utils/layout.ts +36 -13
  153. package/layout/lib/utils/mergeStyles.ts +1 -0
  154. package/layout/lib/utils/other.ts +106 -34
  155. package/layout/lib/utils/position.ts +24 -9
  156. package/layout/lib/utils/space.ts +42 -19
  157. package/layout/lib/utils/styleProps.ts +2 -0
  158. package/layout/lib/utils/systemProps.ts +17 -0
  159. package/layout/lib/utils/text.ts +45 -14
  160. package/package.json +4 -4
  161. package/text-input/lib/TextInput.tsx +1 -1
@@ -1,42 +1,72 @@
1
1
  import { Property } from 'csstype';
2
2
  import { StyleFnConfig } from './buildStyleFns';
3
3
  import { SystemPropValues } from './systemProps';
4
- /** style props to for CSS font and text properties */
4
+ /** style props to for CSS font and text 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 TextStyleProps = {
6
8
  /**
7
9
  * - sets [CSS font-family property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family)
8
- * - system tokens: `font` */
10
+ * - system tokens: `font`
11
+ * @deprecated
12
+ */
9
13
  fontFamily?: Property.FontFamily | SystemPropValues['font'];
10
14
  /**
11
15
  * - sets [CSS font-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
12
- * - system tokens: `fontSize` */
16
+ * - system tokens: `fontSize`
17
+ * @deprecated
18
+ */
13
19
  fontSize?: Property.FontSize | SystemPropValues['fontSize'];
14
- /** sets [CSS font-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style) */
20
+ /** sets [CSS font-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style)
21
+ * @deprecated
22
+ */
15
23
  fontStyle?: Property.FontStyle;
16
24
  /**
17
25
  * - sets [CSS font-weight property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
18
- * - system tokens: `fontWeight` */
26
+ * - system tokens: `fontWeight`
27
+ * @deprecated
28
+ */
19
29
  fontWeight?: Property.FontWeight | SystemPropValues['fontWeight'];
20
- /** sets [CSS line-height property](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height) */
30
+ /** sets [CSS line-height property](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height)
31
+ * @deprecated
32
+ */
21
33
  lineHeight?: Property.LineHeight;
22
- /** sets [CSS letter-spacing property](https://developer.mozilla.org/en-US/docs/Web/CSS/letter-spacing) */
34
+ /** sets [CSS letter-spacing property](https://developer.mozilla.org/en-US/docs/Web/CSS/letter-spacing)
35
+ * @deprecated
36
+ */
23
37
  letterSpacing?: Property.LetterSpacing;
24
- /** sets [CSS text-align property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align) */
38
+ /** sets [CSS text-align property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align)
39
+ * @deprecated
40
+ */
25
41
  textAlign?: Property.TextAlign;
26
- /** sets [CSS text-decoration property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration) */
42
+ /** sets [CSS text-decoration property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration)
43
+ * @deprecated
44
+ */
27
45
  textDecoration?: Property.TextDecoration;
28
- /** sets [CSS text-overflow property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow) */
46
+ /** sets [CSS text-overflow property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow)
47
+ * @deprecated
48
+ */
29
49
  textOverflow?: Property.TextOverflow;
30
- /** sets [CSS text-transform property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform) */
50
+ /** sets [CSS text-transform property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform)
51
+ * @deprecated
52
+ */
31
53
  textTransform?: Property.TextTransform;
32
- /** sets [CSS text-shadow property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow) */
54
+ /** sets [CSS text-shadow property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow)
55
+ * @deprecated
56
+ */
33
57
  textShadow?: Property.TextShadow;
34
- /** sets [CSS white-space property](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space) */
58
+ /** sets [CSS white-space property](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space)
59
+ * @deprecated
60
+ */
35
61
  whiteSpace?: Property.WhiteSpace;
36
- /** sets [CSS word-break property](https://developer.mozilla.org/en-US/docs/Web/CSS/word-break) */
62
+ /** sets [CSS word-break property](https://developer.mozilla.org/en-US/docs/Web/CSS/word-break)
63
+ * @deprecated
64
+ */
37
65
  wordBreak?: Property.WordBreak;
38
66
  };
67
+ /** @deprecated */
39
68
  export declare const textStyleFnConfigs: StyleFnConfig[];
69
+ /** @deprecated */
40
70
  export declare const textStyleFns: import("./buildStyleFns").StyleFns;
41
71
  /**
42
72
  * A style prop function that takes component props and returns font and text styles.
@@ -48,6 +78,7 @@ export declare const textStyleFns: import("./buildStyleFns").StyleFns;
48
78
  * <Box textAlign="center" fontWeight="medium">Hello, alignment!</Box>
49
79
  * );
50
80
  * ```
81
+ * @deprecated
51
82
  */
52
83
  export declare const text: (props: TextStyleProps) => {};
53
84
  //# sourceMappingURL=text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/text.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,sDAAsD;AACtD,MAAM,MAAM,cAAc,GAAG;IAC3B;;iCAE6B;IAC7B,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC5D;;qCAEiC;IACjC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAC5D,kGAAkG;IAClG,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B;;uCAEmC;IACnC,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAClE,oGAAoG;IACpG,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC,0GAA0G;IAC1G,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACvC,kGAAkG;IAClG,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,4GAA4G;IAC5G,cAAc,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC;IACzC,wGAAwG;IACxG,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC,0GAA0G;IAC1G,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACvC,oGAAoG;IACpG,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC,oGAAoG;IACpG,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC,kGAAkG;IAClG,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAkE7C,CAAC;AAEF,eAAO,MAAM,YAAY,oCAAoC,CAAC;AAC9D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,IAAI,+BAAiD,CAAC"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/text.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,cAAc,GAAG;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC5D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAC5D;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAClE;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACvC;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B;;OAEG;IACH,cAAc,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACvC;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;CAChC,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAkE7C,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,YAAY,oCAAoC,CAAC;AAC9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,IAAI,+BAAiD,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { buildStyleFns, buildStylePropFn } from './buildStyleFns';
2
+ /** @deprecated */
2
3
  export const textStyleFnConfigs = [
3
4
  {
4
5
  name: 'fontFamily',
@@ -66,6 +67,7 @@ export const textStyleFnConfigs = [
66
67
  system: 'none',
67
68
  },
68
69
  ];
70
+ /** @deprecated */
69
71
  export const textStyleFns = buildStyleFns(textStyleFnConfigs);
70
72
  /**
71
73
  * A style prop function that takes component props and returns font and text styles.
@@ -77,5 +79,6 @@ export const textStyleFns = buildStyleFns(textStyleFnConfigs);
77
79
  * <Box textAlign="center" fontWeight="medium">Hello, alignment!</Box>
78
80
  * );
79
81
  * ```
82
+ * @deprecated
80
83
  */
81
84
  export const text = buildStylePropFn(textStyleFns);
@@ -7,15 +7,15 @@ export const textInputStencil = createStencil({
7
7
  vars: {
8
8
  width: '',
9
9
  },
10
- base: { name: "18drvp", styles: "box-sizing:border-box;font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-normal);line-height:var(--cnvs-sys-line-height-subtext-large);font-size:var(--cnvs-sys-font-size-subtext-large);letter-spacing:var(--cnvs-base-letter-spacing-150);display:block;border:0.0625rem solid var(--cnvs-sys-color-border-input-default);background-color:var(--cnvs-sys-color-bg-default);border-radius:var(--cnvs-sys-shape-x1-half);height:var(--cnvs-sys-space-x10);transition:0.2s box-shadow, 0.2s border-color;padding:var(--cnvs-sys-space-x2);margin:0rem;width:var(--width-text-input-696c53);min-width:var(--width-text-input-696c53, calc(calc(var(--cnvs-sys-space-x20) * 3) + var(--cnvs-sys-space-x10)));color:var(--cnvs-sys-color-text-default);text-overflow:ellipsis;::-ms-clear{display:none;}&::placeholder{color:var(--cnvs-sys-color-text-hint);}&:is(:hover, .hover){border-color:var(--cnvs-sys-color-border-input-strong);}&:is(:focus-visible, .focus):where(:not([disabled])){border-color:var(--cnvs-brand-common-focus-outline);box-shadow:inset 0 0 0 1px var(--cnvs-brand-common-focus-outline);outline:0.125rem solid transparent;}&:is(:disabled, .disabled){background-color:var(--cnvs-sys-color-bg-alt-softer);border-color:var(--cnvs-sys-color-border-input-disabled);color:var(--cnvs-sys-color-fg-disabled);&::placeholder{color:var(--cnvs-sys-color-fg-disabled);}}" },
10
+ base: { name: "3rj64e", styles: "box-sizing:border-box;font-family:var(--cnvs-sys-font-family-default);font-weight:var(--cnvs-sys-font-weight-normal);line-height:var(--cnvs-sys-line-height-subtext-large);font-size:var(--cnvs-sys-font-size-subtext-large);letter-spacing:var(--cnvs-base-letter-spacing-150);display:block;border:0.0625rem solid var(--cnvs-sys-color-border-input-default);background-color:var(--cnvs-sys-color-bg-default);border-radius:var(--cnvs-sys-shape-md, var(--cnvs-sys-shape-x1-half));height:var(--cnvs-sys-space-x10);transition:0.2s box-shadow, 0.2s border-color;padding:var(--cnvs-sys-space-x2);margin:0rem;width:var(--width-text-input-696c53);min-width:var(--width-text-input-696c53, calc(calc(var(--cnvs-sys-space-x20) * 3) + var(--cnvs-sys-space-x10)));color:var(--cnvs-sys-color-text-default);text-overflow:ellipsis;::-ms-clear{display:none;}&::placeholder{color:var(--cnvs-sys-color-text-hint);}&:is(:hover, .hover){border-color:var(--cnvs-sys-color-border-input-strong);}&:is(:focus-visible, .focus):where(:not([disabled])){border-color:var(--cnvs-brand-common-focus-outline);box-shadow:inset 0 0 0 1px var(--cnvs-brand-common-focus-outline);outline:0.125rem solid transparent;}&:is(:disabled, .disabled){background-color:var(--cnvs-sys-color-bg-alt-softer);border-color:var(--cnvs-sys-color-border-input-disabled);color:var(--cnvs-sys-color-fg-disabled);&::placeholder{color:var(--cnvs-sys-color-fg-disabled);}}" },
11
11
  modifiers: {
12
12
  grow: {
13
- true: { name: "kxkr6", styles: "width:100%;resize:vertical;" },
14
- false: { name: "3i5nz5", styles: "width:initial;" }
13
+ true: { name: "28pgp9", styles: "width:100%;resize:vertical;" },
14
+ false: { name: "3mn8t8", styles: "width:initial;" }
15
15
  },
16
16
  error: {
17
- error: { name: "48d7tw", styles: "border-color:var(--cnvs-brand-common-error-inner);border-width:0.125rem;background-color:var(--cnvs-brand-error-lightest);&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled])){border-color:var(--cnvs-brand-common-error-inner);}&:is(:focus-visible, .focus):not([disabled]){box-shadow:0 0 0 2px var(--cnvs-sys-color-border-inverse), 0 0 0 4px var(--cnvs-brand-common-focus-outline);outline-offset:0.125rem;}" },
18
- caution: { name: "anba1", styles: "border-color:var(--cnvs-brand-common-alert-outer);box-shadow:inset 0 0 0 0.125rem var(--cnvs-brand-common-alert-inner);background-color:var(--cnvs-brand-alert-lightest);&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled])){border-color:var(--cnvs-brand-common-alert-outer);}&:is(:focus-visible, .focus):not([disabled]){box-shadow:inset 0 0 0 0.125rem var(--cnvs-brand-common-alert-inner),\n 0 0 0 2px var(--cnvs-sys-color-border-inverse),\n 0 0 0 4px var(--cnvs-brand-common-focus-outline);}outline-offset:0.125rem;" }
17
+ error: { name: "20wgzr", styles: "border-color:var(--cnvs-brand-common-error-inner);border-width:0.125rem;background-color:var(--cnvs-brand-error-lightest);&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled])){border-color:var(--cnvs-brand-common-error-inner);}&:is(:focus-visible, .focus):not([disabled]){box-shadow:0 0 0 2px var(--cnvs-sys-color-border-inverse), 0 0 0 4px var(--cnvs-brand-common-focus-outline);outline-offset:0.125rem;}" },
18
+ caution: { name: "miahg", styles: "border-color:var(--cnvs-brand-common-alert-outer);box-shadow:inset 0 0 0 0.125rem var(--cnvs-brand-common-alert-inner);background-color:var(--cnvs-brand-alert-lightest);&:is(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled]), .focus:not([disabled])){border-color:var(--cnvs-brand-common-alert-outer);}&:is(:focus-visible, .focus):not([disabled]){box-shadow:inset 0 0 0 0.125rem var(--cnvs-brand-common-alert-inner),\n 0 0 0 2px var(--cnvs-sys-color-border-inverse),\n 0 0 0 4px var(--cnvs-brand-common-focus-outline);}outline-offset:0.125rem;" }
19
19
  }
20
20
  },
21
21
  defaultModifiers: {
@@ -63,6 +63,7 @@ const omittedProps = [
63
63
  'wordBreak',
64
64
  ];
65
65
 
66
+ /** @deprecated */
66
67
  const shouldForwardProp = (prop: string) => {
67
68
  return isPropValid(prop) && !omittedProps.includes(prop);
68
69
  };
@@ -84,6 +85,7 @@ const shouldForwardProp = (prop: string) => {
84
85
  *
85
86
  * <StyledHeader color='red'>Hello World</StyledHeader>
86
87
  * ```
88
+ * @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).
87
89
  */
88
90
  export const boxStyleFn = <P extends BoxProps>(props: P) => {
89
91
  return [
@@ -3,30 +3,45 @@ 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 background properties */
6
+ /** style props to set CSS background properties
7
+ * @deprecated
8
+ */
7
9
  export type BackgroundStyleProps = {
8
10
  /**
9
11
  * - sets [CSS background property](https://developer.mozilla.org/en-US/docs/Web/CSS/background)
10
12
  * - system tokens: `color`
11
- * */
13
+ * @deprecated Use `cs` prop with `system.color.bg.*` tokens
14
+ */
12
15
  background?: SystemPropValues['color'];
13
- /** sets [CSS background-attachment property](https://developer.mozilla.org/en-US/docs/Web/CSS/) */
16
+ /** sets [CSS background-attachment property](https://developer.mozilla.org/en-US/docs/Web/CSS/)
17
+ * @deprecated
18
+ */
14
19
  backgroundAttachment?: Property.BackgroundAttachment;
15
20
  /**
16
21
  * - sets [CSS background-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color)
17
22
  * - system tokens: `color`
18
- * */
23
+ * @deprecated Use `cs` prop with `system.color.bg.*` tokens
24
+ */
19
25
  backgroundColor?: SystemPropValues['color'];
20
- /** sets [CSS background-image property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-image) */
26
+ /** sets [CSS background-image property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-image)
27
+ * @deprecated
28
+ */
21
29
  backgroundImage?: Property.BackgroundImage;
22
- /** sets [CSS background-position property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position) */
30
+ /** sets [CSS background-position property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position)
31
+ * @deprecated
32
+ */
23
33
  backgroundPosition?: Property.BackgroundPosition;
24
- /** sets [CSS background-repeat property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat) */
34
+ /** sets [CSS background-repeat property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat)
35
+ * @deprecated
36
+ */
25
37
  backgroundRepeat?: Property.BackgroundRepeat;
26
- /** sets [CSS background-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) */
38
+ /** sets [CSS background-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)
39
+ * @deprecated
40
+ */
27
41
  backgroundSize?: Property.BackgroundSize;
28
42
  };
29
43
 
44
+ /** @deprecated */
30
45
  export const backgroundStyleFnConfigs: StyleFnConfig[] = [
31
46
  {
32
47
  name: 'background',
@@ -65,6 +80,7 @@ export const backgroundStyleFnConfigs: StyleFnConfig[] = [
65
80
  },
66
81
  ];
67
82
 
83
+ /** @deprecated */
68
84
  export const backgroundFns = buildStyleFns(backgroundStyleFnConfigs);
69
85
  /**
70
86
  * A style prop function that takes component props and returns border styles.
@@ -79,5 +95,6 @@ export const backgroundFns = buildStyleFns(backgroundStyleFnConfigs);
79
95
  * </Box>
80
96
  * );
81
97
  *```
98
+ @deprecated
82
99
  */
83
100
  export const background = buildStylePropFn<BackgroundStyleProps>(backgroundFns);
@@ -1,49 +1,59 @@
1
1
  import {buildStyleFns, StyleFnConfig} from '../buildStyleFns';
2
2
  import {SystemPropValues} from '../systemProps';
3
3
 
4
- /** style props to set CSS border color properties */
4
+ /** style props to set CSS border color properties
5
+ * @deprecated
6
+ */
5
7
  export type BorderColorStyleProps = {
6
8
  /**
7
9
  * - sets [CSS border-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-color)
8
10
  * - system tokens: `color`
11
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
9
12
  */
10
13
  borderColor?: SystemPropValues['color'];
11
14
  /**
12
15
  * - sets [CSS border-top-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-color)
13
16
  * - system tokens: `color`
17
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
14
18
  */
15
19
  borderTopColor?: SystemPropValues['color'];
16
20
  /**
17
21
  * - sets [CSS border-right-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-color)
18
22
  * - no bidirectional support
19
23
  * - system tokens: `color`
24
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
20
25
  */
21
26
  borderRightColor?: SystemPropValues['color'];
22
27
  /**
23
28
  * - sets [CSS border-bottom-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-color)
24
29
  * - system tokens: `color`
30
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
25
31
  */
26
32
  borderBottomColor?: SystemPropValues['color'];
27
33
  /**
28
34
  * - sets [CSS border-left-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-color)
29
35
  * - no bidirectional support
30
36
  * - system tokens: `color`
37
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
31
38
  */
32
39
  borderLeftColor?: SystemPropValues['color'];
33
40
  /**
34
41
  * - sets [CSS border-inline-start-color property ](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-start-color)
35
42
  * - bidirectional support
36
43
  * - system tokens: `color`
44
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
37
45
  */
38
46
  borderInlineStartColor?: SystemPropValues['color'];
39
47
  /**
40
48
  * - sets [CSS border-inline-end-color property ](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-end-color)
41
49
  * - bidirectional support
42
50
  * - system tokens: `color`
51
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
43
52
  */
44
53
  borderInlineEndColor?: SystemPropValues['color'];
45
54
  };
46
55
 
56
+ /** @deprecated */
47
57
  export const borderColorStyleFnConfigs: StyleFnConfig[] = [
48
58
  {
49
59
  name: 'borderColor',
@@ -82,4 +92,5 @@ export const borderColorStyleFnConfigs: StyleFnConfig[] = [
82
92
  },
83
93
  ];
84
94
 
95
+ /** @deprecated */
85
96
  export const borderColorFns = buildStyleFns(borderColorStyleFnConfigs);
@@ -9,6 +9,7 @@ import {
9
9
  } from './shorthand';
10
10
  import {BorderWidthStyleProps, borderWidthFns, borderWidthStyleFnConfigs} from './width';
11
11
 
12
+ /** @deprecated */
12
13
  export type BorderStyleProps = BorderColorStyleProps &
13
14
  BorderLineStyleProps &
14
15
  BorderRadiusStyleProps &
@@ -31,6 +32,7 @@ export type BorderStyleProps = BorderColorStyleProps &
31
32
  * </Box>
32
33
  * );
33
34
  *```
35
+ * @deprecated
34
36
  */
35
37
  export const border = buildStylePropFn<BorderStyleProps>({
36
38
  ...borderColorFns,
@@ -40,6 +42,7 @@ export const border = buildStylePropFn<BorderStyleProps>({
40
42
  ...borderWidthFns,
41
43
  });
42
44
 
45
+ /** @deprecated */
43
46
  export const borderStyleFnConfigs = [
44
47
  ...borderColorStyleFnConfigs,
45
48
  ...borderLineStyleFnConfigs,
@@ -2,40 +2,57 @@ import {Property} from 'csstype';
2
2
 
3
3
  import {buildStyleFns, StyleFnConfig} from '../buildStyleFns';
4
4
 
5
- /** style props to set CSS border style properties */
5
+ /** style props to set CSS border style properties
6
+ * @deprecated
7
+ */
6
8
  export type BorderLineStyleProps = {
7
- /** sets [CSS border-collapse property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-collapse) */
9
+ /** sets [CSS border-collapse property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-collapse)
10
+ * @deprecated
11
+ */
8
12
  borderCollapse?: Property.BorderCollapse;
9
- /** sets [CSS border-spacing property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-spacing) */
13
+ /** sets [CSS border-spacing property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-spacing)
14
+ * @deprecated
15
+ */
10
16
  borderSpacing?: Property.BorderSpacing;
11
- /** sets [CSS border-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-style) */
17
+ /** sets [CSS border-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-style)
18
+ * @deprecated
19
+ */
12
20
  borderStyle?: Property.Border;
13
- /** sets [CSS border-top-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-style) */
21
+ /** sets [CSS border-top-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-style)
22
+ * @deprecated
23
+ */
14
24
  borderTopStyle?: Property.Border;
15
25
  /**
16
26
  * - sets [CSS border-right-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-style)
17
27
  * - no bidirectional support
28
+ * @deprecated
18
29
  */
19
30
  borderRightStyle?: Property.Border;
20
- /** sets [CSS border-bottom-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-style) */
31
+ /** sets [CSS border-bottom-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-style)
32
+ * @deprecated
33
+ */
21
34
  borderBottomStyle?: Property.Border;
22
35
  /**
23
36
  * - sets [CSS border-left-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-style)
24
37
  * - no bidirectional support
38
+ * @deprecated
25
39
  */
26
40
  borderLeftStyle?: Property.Border;
27
41
  /**
28
42
  * - sets [CSS border-inline-start-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-start-style)
29
43
  * - bidirectional support
44
+ * @deprecated
30
45
  */
31
46
  borderInlineStartStyle?: Property.Border;
32
47
  /**
33
48
  * - sets [CSS border-inline-end-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-end-style)
34
49
  * - bidirectional support
50
+ * @deprecated
35
51
  */
36
52
  borderInlineEndStyle?: Property.Border;
37
53
  };
38
54
 
55
+ /** @deprecated */
39
56
  export const borderLineStyleFnConfigs: StyleFnConfig[] = [
40
57
  {
41
58
  name: 'borderCollapse',
@@ -84,4 +101,5 @@ export const borderLineStyleFnConfigs: StyleFnConfig[] = [
84
101
  },
85
102
  ];
86
103
 
104
+ /** @deprecated */
87
105
  export const borderLineStyleFns = buildStyleFns(borderLineStyleFnConfigs);
@@ -1,35 +1,43 @@
1
1
  import {buildStyleFns, StyleFnConfig} from '../buildStyleFns';
2
2
  import {SystemPropValues} from '../systemProps';
3
3
 
4
- /** style props to set CSS border radius properties */
4
+ /** style props to set CSS border radius properties
5
+ * @deprecated
6
+ */
5
7
  export type BorderRadiusStyleProps = {
6
8
  /**
7
9
  * - sets [CSS border-radius property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius)
8
10
  * - system tokens: `shape`
9
- * */
11
+ * @deprecated ⚠️ Please use the `cs` prop with `createStyles` and `createStencil` to apply styles to our components. For more information, view our [Styling docs](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
12
+ */
10
13
  borderRadius?: SystemPropValues['shape'];
11
14
  /**
12
15
  * - sets [CSS border-top-left-radius property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius)
13
16
  * - system tokens: `shape`
14
- * */
17
+ * @deprecated
18
+ */
15
19
  borderTopLeftRadius?: SystemPropValues['shape'];
16
20
  /**
17
21
  * - sets [CSS border-top-right-radius property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius)
18
22
  * - system tokens: `shape`
19
- * */
23
+ * @deprecated
24
+ */
20
25
  borderTopRightRadius?: SystemPropValues['shape'];
21
26
  /**
22
27
  * - sets [CSS border-bottom-left-radius property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius)
23
28
  * - system tokens: `shape`
24
- * */
29
+ * @deprecated
30
+ */
25
31
  borderBottomLeftRadius?: SystemPropValues['shape'];
26
32
  /**
27
33
  * - sets [CSS border-bottom-right-radius property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius)
28
34
  * - system tokens: `shape`
29
- * */
35
+ * @deprecated
36
+ */
30
37
  borderBottomRightRadius?: SystemPropValues['shape'];
31
38
  };
32
39
 
40
+ /** @deprecated */
33
41
  export const borderRadiusStyleFnConfigs: StyleFnConfig[] = [
34
42
  {
35
43
  name: 'borderRadius',
@@ -58,4 +66,5 @@ export const borderRadiusStyleFnConfigs: StyleFnConfig[] = [
58
66
  },
59
67
  ];
60
68
 
69
+ /** @deprecated */
61
70
  export const borderRadiusFns = buildStyleFns(borderRadiusStyleFnConfigs);
@@ -2,36 +2,49 @@ import {Property} from 'csstype';
2
2
 
3
3
  import {buildStyleFns, StyleFnConfig} from '../buildStyleFns';
4
4
 
5
- /** style props to set CSS border properties */
5
+ /** style props to set CSS border properties
6
+ * @deprecated
7
+ */
6
8
  export type BorderShorthandStyleProps = {
7
- /** sets [CSS border property](https://developer.mozilla.org/en-US/docs/Web/CSS/border) */
9
+ /** sets [CSS border property](https://developer.mozilla.org/en-US/docs/Web/CSS/border)
10
+ * @deprecated
11
+ */
8
12
  border?: Property.Border;
9
- /** sets [CSS border-top property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top) */
13
+ /** sets [CSS border-top property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top)
14
+ * @deprecated
15
+ */
10
16
  borderTop?: Property.BorderTop;
11
17
  /**
12
18
  * - sets [CSS border-right property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-right)
13
19
  * - no bidirectional support
14
- * */
20
+ * @deprecated
21
+ */
15
22
  borderRight?: Property.BorderRight;
16
- /** sets [CSS border-bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom) */
23
+ /** sets [CSS border-bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom)
24
+ * @deprecated
25
+ */
17
26
  borderBottom?: Property.BorderBottom;
18
27
  /**
19
28
  * - sets [CSS border-left property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-left)
20
29
  * - no bidirectional support
21
- * */
30
+ * @deprecated
31
+ */
22
32
  borderLeft?: Property.BorderLeft;
23
33
  /**
24
34
  * - sets [CSS border-inline-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-start)
25
35
  * - bidirectional support
26
- * */
36
+ * @deprecated
37
+ */
27
38
  borderInlineStart?: Property.BorderInlineStart;
28
39
  /**
29
40
  * - sets [CSS border-inline-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-end)
30
41
  * - bidirectional support
31
- * */
42
+ * @deprecated
43
+ */
32
44
  borderInlineEnd?: Property.BorderInlineEnd;
33
45
  };
34
46
 
47
+ /** @deprecated */
35
48
  export const borderShorthandStyleFnConfigs: StyleFnConfig[] = [
36
49
  {
37
50
  name: 'border',
@@ -70,4 +83,5 @@ export const borderShorthandStyleFnConfigs: StyleFnConfig[] = [
70
83
  },
71
84
  ];
72
85
 
86
+ /** @deprecated */
73
87
  export const borderShorthandFns = buildStyleFns(borderShorthandStyleFnConfigs);
@@ -2,36 +2,49 @@ import {Property} from 'csstype';
2
2
 
3
3
  import {buildStyleFns, StyleFnConfig} from '../buildStyleFns';
4
4
 
5
- /** style props to set CSS border width properties */
5
+ /** style props to set CSS border width properties
6
+ * @deprecated
7
+ */
6
8
  export type BorderWidthStyleProps = {
7
- /** sets [CSS border-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-width) */
9
+ /** sets [CSS border-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-width)
10
+ * @deprecated
11
+ */
8
12
  borderWidth?: Property.BorderWidth | number;
9
- /** sets [CSS border-top-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-width) */
13
+ /** sets [CSS border-top-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-width)
14
+ * @deprecated
15
+ */
10
16
  borderTopWidth?: Property.BorderTopWidth | number;
11
17
  /**
12
18
  * - sets [CSS border-right-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-width)
13
19
  * - no bidirectional support
20
+ * @deprecated
14
21
  * */
15
22
  borderRightWidth?: Property.BorderRightWidth | number;
16
- /** sets [CSS border-bottom-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-width) */
23
+ /** sets [CSS border-bottom-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-width)
24
+ * @deprecated
25
+ */
17
26
  borderBottomWidth?: Property.BorderBottomWidth | number;
18
27
  /**
19
28
  * - sets [CSS border-left-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-width)
20
29
  * - no bidirectional support
30
+ * @deprecated
21
31
  * */
22
32
  borderLeftWidth?: Property.BorderLeftWidth | number;
23
33
  /**
24
34
  * - sets [CSS border-inline-start-width property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-start-width)
25
35
  * - bidirectional support
36
+ * @deprecated
26
37
  * */
27
38
  borderInlineStartWidth?: Property.BorderInlineStartWidth | number;
28
39
  /**
29
40
  * - sets [CSS border-inline-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-end)
30
41
  * - bidirectional support
42
+ * @deprecated
31
43
  * */
32
44
  borderInlineEndWidth?: Property.BorderInlineEndWidth | number;
33
45
  };
34
46
 
47
+ /** @deprecated */
35
48
  export const borderWidthStyleFnConfigs: StyleFnConfig[] = [
36
49
  {
37
50
  name: 'borderWidth',
@@ -70,4 +83,5 @@ export const borderWidthStyleFnConfigs: StyleFnConfig[] = [
70
83
  },
71
84
  ];
72
85
 
86
+ /** @deprecated */
73
87
  export const borderWidthFns = buildStyleFns(borderWidthStyleFnConfigs);
@@ -9,32 +9,39 @@ import {wrapProperty} from '@workday/canvas-kit-styling';
9
9
 
10
10
  import {CanvasSystemPropValues, SystemPropNames, SystemPropValues} from './systemProps';
11
11
 
12
+ /** @deprecated */
12
13
  export type StyleFnConfig = {
13
14
  name: string;
14
15
  properties: string[];
15
16
  system: SystemPropNames | 'none';
16
17
  };
17
18
 
19
+ /** @deprecated */
18
20
  export type StyleFns = {
19
21
  [key: string]: (value: unknown) => {};
20
22
  };
21
23
 
24
+ /** @deprecated */
22
25
  const getColor = (value: SystemPropValues['color']) => {
23
26
  return colorTokens[value] || wrapProperty(value);
24
27
  };
25
28
 
29
+ /** @deprecated */
26
30
  const getDepth = (value: SystemPropValues['depth']) => {
27
31
  return depthTokens[value];
28
32
  };
29
33
 
34
+ /** @deprecated */
30
35
  const getShape = (value: SystemPropValues['shape']) => {
31
36
  return borderRadiusTokens[value as CanvasSystemPropValues['shape']] || wrapProperty(value);
32
37
  };
33
38
 
39
+ /** @deprecated */
34
40
  const getSpace = (value: SystemPropValues['space']) => {
35
41
  return spaceTokens[value as CanvasSystemPropValues['space']] || wrapProperty(value);
36
42
  };
37
43
 
44
+ /** @deprecated */
38
45
  const getFont = (value: SystemPropValues['font']) => {
39
46
  return (
40
47
  typeTokens.properties.fontFamilies[value as CanvasSystemPropValues['font']] ||
@@ -42,6 +49,7 @@ const getFont = (value: SystemPropValues['font']) => {
42
49
  );
43
50
  };
44
51
 
52
+ /** @deprecated */
45
53
  const getFontSize = (value: SystemPropValues['fontSize'] | string) => {
46
54
  return (
47
55
  typeTokens.properties.fontSizes[value as CanvasSystemPropValues['fontSize']] ||
@@ -49,6 +57,7 @@ const getFontSize = (value: SystemPropValues['fontSize'] | string) => {
49
57
  );
50
58
  };
51
59
 
60
+ /** @deprecated */
52
61
  const getFontWeight = (value: SystemPropValues['fontWeight'] | string) => {
53
62
  return (
54
63
  typeTokens.properties.fontWeights[value as CanvasSystemPropValues['fontWeight']] ||
@@ -56,6 +65,7 @@ const getFontWeight = (value: SystemPropValues['fontWeight'] | string) => {
56
65
  );
57
66
  };
58
67
 
68
+ /** @deprecated */
59
69
  export function buildStyleFns(styleFnConfigs: StyleFnConfig[]): StyleFns {
60
70
  return styleFnConfigs.reduce((styleFns = {}, styleFnConfig) => {
61
71
  const styleFn = (value: unknown) => {
@@ -110,6 +120,7 @@ export function buildStyleFns(styleFnConfigs: StyleFnConfig[]): StyleFns {
110
120
  }, {});
111
121
  }
112
122
 
123
+ /** @deprecated */
113
124
  export function buildStylePropFn<P extends {}>(styleFns: StyleFns) {
114
125
  return (props: P) => {
115
126
  let styles = {};