@workday/canvas-kit-react 14.0.9 → 14.1.0-1284-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 (201) hide show
  1. package/common/lib/theming/createCanvasTheme.ts +4 -0
  2. package/common/lib/theming/styled.ts +6 -0
  3. package/common/lib/theming/theme.ts +3 -0
  4. package/common/lib/theming/useIsRTL.ts +1 -1
  5. package/common/lib/theming/useTheme.ts +3 -0
  6. package/common/lib/theming/useThemedRing.ts +4 -0
  7. package/dist/commonjs/common/lib/theming/createCanvasTheme.d.ts +4 -0
  8. package/dist/commonjs/common/lib/theming/createCanvasTheme.d.ts.map +1 -1
  9. package/dist/commonjs/common/lib/theming/createCanvasTheme.js +4 -0
  10. package/dist/commonjs/common/lib/theming/styled.d.ts +6 -0
  11. package/dist/commonjs/common/lib/theming/styled.d.ts.map +1 -1
  12. package/dist/commonjs/common/lib/theming/styled.js +6 -0
  13. package/dist/commonjs/common/lib/theming/theme.d.ts +3 -0
  14. package/dist/commonjs/common/lib/theming/theme.d.ts.map +1 -1
  15. package/dist/commonjs/common/lib/theming/theme.js +3 -0
  16. package/dist/commonjs/common/lib/theming/useIsRTL.d.ts +1 -1
  17. package/dist/commonjs/common/lib/theming/useIsRTL.js +1 -1
  18. package/dist/commonjs/common/lib/theming/useTheme.d.ts +2 -0
  19. package/dist/commonjs/common/lib/theming/useTheme.d.ts.map +1 -1
  20. package/dist/commonjs/common/lib/theming/useTheme.js +3 -0
  21. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +4 -0
  22. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts.map +1 -1
  23. package/dist/commonjs/common/lib/theming/useThemedRing.js +4 -0
  24. package/dist/commonjs/layout/lib/Box.d.ts +1 -0
  25. package/dist/commonjs/layout/lib/Box.d.ts.map +1 -1
  26. package/dist/commonjs/layout/lib/Box.js +2 -0
  27. package/dist/commonjs/layout/lib/utils/background.d.ts +25 -8
  28. package/dist/commonjs/layout/lib/utils/background.d.ts.map +1 -1
  29. package/dist/commonjs/layout/lib/utils/background.js +3 -0
  30. package/dist/commonjs/layout/lib/utils/border/color.d.ts +12 -1
  31. package/dist/commonjs/layout/lib/utils/border/color.d.ts.map +1 -1
  32. package/dist/commonjs/layout/lib/utils/border/color.js +2 -0
  33. package/dist/commonjs/layout/lib/utils/border/index.d.ts +3 -0
  34. package/dist/commonjs/layout/lib/utils/border/index.d.ts.map +1 -1
  35. package/dist/commonjs/layout/lib/utils/border/index.js +2 -0
  36. package/dist/commonjs/layout/lib/utils/border/lineStyle.d.ts +24 -6
  37. package/dist/commonjs/layout/lib/utils/border/lineStyle.d.ts.map +1 -1
  38. package/dist/commonjs/layout/lib/utils/border/lineStyle.js +2 -0
  39. package/dist/commonjs/layout/lib/utils/border/radius.d.ts +15 -6
  40. package/dist/commonjs/layout/lib/utils/border/radius.d.ts.map +1 -1
  41. package/dist/commonjs/layout/lib/utils/border/radius.js +2 -0
  42. package/dist/commonjs/layout/lib/utils/border/shorthand.d.ts +22 -8
  43. package/dist/commonjs/layout/lib/utils/border/shorthand.d.ts.map +1 -1
  44. package/dist/commonjs/layout/lib/utils/border/shorthand.js +2 -0
  45. package/dist/commonjs/layout/lib/utils/border/width.d.ts +18 -4
  46. package/dist/commonjs/layout/lib/utils/border/width.d.ts.map +1 -1
  47. package/dist/commonjs/layout/lib/utils/border/width.js +2 -0
  48. package/dist/commonjs/layout/lib/utils/buildStyleFns.d.ts +4 -0
  49. package/dist/commonjs/layout/lib/utils/buildStyleFns.d.ts.map +1 -1
  50. package/dist/commonjs/layout/lib/utils/buildStyleFns.js +9 -0
  51. package/dist/commonjs/layout/lib/utils/color.d.ts +13 -4
  52. package/dist/commonjs/layout/lib/utils/color.d.ts.map +1 -1
  53. package/dist/commonjs/layout/lib/utils/color.js +3 -0
  54. package/dist/commonjs/layout/lib/utils/depth.d.ts +11 -3
  55. package/dist/commonjs/layout/lib/utils/depth.d.ts.map +1 -1
  56. package/dist/commonjs/layout/lib/utils/depth.js +3 -0
  57. package/dist/commonjs/layout/lib/utils/flex.d.ts +32 -11
  58. package/dist/commonjs/layout/lib/utils/flex.d.ts.map +1 -1
  59. package/dist/commonjs/layout/lib/utils/flex.js +3 -0
  60. package/dist/commonjs/layout/lib/utils/flexItem.d.ts +27 -8
  61. package/dist/commonjs/layout/lib/utils/flexItem.d.ts.map +1 -1
  62. package/dist/commonjs/layout/lib/utils/flexItem.js +3 -0
  63. package/dist/commonjs/layout/lib/utils/grid.d.ts +56 -19
  64. package/dist/commonjs/layout/lib/utils/grid.d.ts.map +1 -1
  65. package/dist/commonjs/layout/lib/utils/grid.js +3 -0
  66. package/dist/commonjs/layout/lib/utils/gridItem.d.ts +36 -11
  67. package/dist/commonjs/layout/lib/utils/gridItem.d.ts.map +1 -1
  68. package/dist/commonjs/layout/lib/utils/gridItem.js +3 -0
  69. package/dist/commonjs/layout/lib/utils/layout.d.ts +36 -13
  70. package/dist/commonjs/layout/lib/utils/layout.d.ts.map +1 -1
  71. package/dist/commonjs/layout/lib/utils/layout.js +3 -0
  72. package/dist/commonjs/layout/lib/utils/mergeStyles.d.ts +1 -0
  73. package/dist/commonjs/layout/lib/utils/mergeStyles.d.ts.map +1 -1
  74. package/dist/commonjs/layout/lib/utils/mergeStyles.js +1 -0
  75. package/dist/commonjs/layout/lib/utils/other.d.ts +106 -34
  76. package/dist/commonjs/layout/lib/utils/other.d.ts.map +1 -1
  77. package/dist/commonjs/layout/lib/utils/other.js +3 -0
  78. package/dist/commonjs/layout/lib/utils/position.d.ts +24 -9
  79. package/dist/commonjs/layout/lib/utils/position.d.ts.map +1 -1
  80. package/dist/commonjs/layout/lib/utils/position.js +3 -0
  81. package/dist/commonjs/layout/lib/utils/space.d.ts +42 -19
  82. package/dist/commonjs/layout/lib/utils/space.d.ts.map +1 -1
  83. package/dist/commonjs/layout/lib/utils/space.js +3 -0
  84. package/dist/commonjs/layout/lib/utils/styleProps.d.ts +2 -0
  85. package/dist/commonjs/layout/lib/utils/styleProps.d.ts.map +1 -1
  86. package/dist/commonjs/layout/lib/utils/systemProps.d.ts +17 -0
  87. package/dist/commonjs/layout/lib/utils/systemProps.d.ts.map +1 -1
  88. package/dist/commonjs/layout/lib/utils/text.d.ts +45 -14
  89. package/dist/commonjs/layout/lib/utils/text.d.ts.map +1 -1
  90. package/dist/commonjs/layout/lib/utils/text.js +3 -0
  91. package/dist/commonjs/text-input/lib/TextInput.js +5 -5
  92. package/dist/es6/common/lib/theming/createCanvasTheme.d.ts +4 -0
  93. package/dist/es6/common/lib/theming/createCanvasTheme.d.ts.map +1 -1
  94. package/dist/es6/common/lib/theming/createCanvasTheme.js +4 -0
  95. package/dist/es6/common/lib/theming/styled.d.ts +6 -0
  96. package/dist/es6/common/lib/theming/styled.d.ts.map +1 -1
  97. package/dist/es6/common/lib/theming/styled.js +6 -0
  98. package/dist/es6/common/lib/theming/theme.d.ts +3 -0
  99. package/dist/es6/common/lib/theming/theme.d.ts.map +1 -1
  100. package/dist/es6/common/lib/theming/theme.js +3 -0
  101. package/dist/es6/common/lib/theming/useIsRTL.d.ts +1 -1
  102. package/dist/es6/common/lib/theming/useIsRTL.js +1 -1
  103. package/dist/es6/common/lib/theming/useTheme.d.ts +2 -0
  104. package/dist/es6/common/lib/theming/useTheme.d.ts.map +1 -1
  105. package/dist/es6/common/lib/theming/useTheme.js +3 -0
  106. package/dist/es6/common/lib/theming/useThemedRing.d.ts +4 -0
  107. package/dist/es6/common/lib/theming/useThemedRing.d.ts.map +1 -1
  108. package/dist/es6/common/lib/theming/useThemedRing.js +4 -0
  109. package/dist/es6/layout/lib/Box.d.ts +1 -0
  110. package/dist/es6/layout/lib/Box.d.ts.map +1 -1
  111. package/dist/es6/layout/lib/Box.js +2 -0
  112. package/dist/es6/layout/lib/utils/background.d.ts +25 -8
  113. package/dist/es6/layout/lib/utils/background.d.ts.map +1 -1
  114. package/dist/es6/layout/lib/utils/background.js +3 -0
  115. package/dist/es6/layout/lib/utils/border/color.d.ts +12 -1
  116. package/dist/es6/layout/lib/utils/border/color.d.ts.map +1 -1
  117. package/dist/es6/layout/lib/utils/border/color.js +2 -0
  118. package/dist/es6/layout/lib/utils/border/index.d.ts +3 -0
  119. package/dist/es6/layout/lib/utils/border/index.d.ts.map +1 -1
  120. package/dist/es6/layout/lib/utils/border/index.js +2 -0
  121. package/dist/es6/layout/lib/utils/border/lineStyle.d.ts +24 -6
  122. package/dist/es6/layout/lib/utils/border/lineStyle.d.ts.map +1 -1
  123. package/dist/es6/layout/lib/utils/border/lineStyle.js +2 -0
  124. package/dist/es6/layout/lib/utils/border/radius.d.ts +15 -6
  125. package/dist/es6/layout/lib/utils/border/radius.d.ts.map +1 -1
  126. package/dist/es6/layout/lib/utils/border/radius.js +2 -0
  127. package/dist/es6/layout/lib/utils/border/shorthand.d.ts +22 -8
  128. package/dist/es6/layout/lib/utils/border/shorthand.d.ts.map +1 -1
  129. package/dist/es6/layout/lib/utils/border/shorthand.js +2 -0
  130. package/dist/es6/layout/lib/utils/border/width.d.ts +18 -4
  131. package/dist/es6/layout/lib/utils/border/width.d.ts.map +1 -1
  132. package/dist/es6/layout/lib/utils/border/width.js +2 -0
  133. package/dist/es6/layout/lib/utils/buildStyleFns.d.ts +4 -0
  134. package/dist/es6/layout/lib/utils/buildStyleFns.d.ts.map +1 -1
  135. package/dist/es6/layout/lib/utils/buildStyleFns.js +9 -0
  136. package/dist/es6/layout/lib/utils/color.d.ts +13 -4
  137. package/dist/es6/layout/lib/utils/color.d.ts.map +1 -1
  138. package/dist/es6/layout/lib/utils/color.js +3 -0
  139. package/dist/es6/layout/lib/utils/depth.d.ts +11 -3
  140. package/dist/es6/layout/lib/utils/depth.d.ts.map +1 -1
  141. package/dist/es6/layout/lib/utils/depth.js +3 -0
  142. package/dist/es6/layout/lib/utils/flex.d.ts +32 -11
  143. package/dist/es6/layout/lib/utils/flex.d.ts.map +1 -1
  144. package/dist/es6/layout/lib/utils/flex.js +3 -0
  145. package/dist/es6/layout/lib/utils/flexItem.d.ts +27 -8
  146. package/dist/es6/layout/lib/utils/flexItem.d.ts.map +1 -1
  147. package/dist/es6/layout/lib/utils/flexItem.js +3 -0
  148. package/dist/es6/layout/lib/utils/grid.d.ts +56 -19
  149. package/dist/es6/layout/lib/utils/grid.d.ts.map +1 -1
  150. package/dist/es6/layout/lib/utils/grid.js +3 -0
  151. package/dist/es6/layout/lib/utils/gridItem.d.ts +36 -11
  152. package/dist/es6/layout/lib/utils/gridItem.d.ts.map +1 -1
  153. package/dist/es6/layout/lib/utils/gridItem.js +3 -0
  154. package/dist/es6/layout/lib/utils/layout.d.ts +36 -13
  155. package/dist/es6/layout/lib/utils/layout.d.ts.map +1 -1
  156. package/dist/es6/layout/lib/utils/layout.js +3 -0
  157. package/dist/es6/layout/lib/utils/mergeStyles.d.ts +1 -0
  158. package/dist/es6/layout/lib/utils/mergeStyles.d.ts.map +1 -1
  159. package/dist/es6/layout/lib/utils/mergeStyles.js +1 -0
  160. package/dist/es6/layout/lib/utils/other.d.ts +106 -34
  161. package/dist/es6/layout/lib/utils/other.d.ts.map +1 -1
  162. package/dist/es6/layout/lib/utils/other.js +3 -0
  163. package/dist/es6/layout/lib/utils/position.d.ts +24 -9
  164. package/dist/es6/layout/lib/utils/position.d.ts.map +1 -1
  165. package/dist/es6/layout/lib/utils/position.js +3 -0
  166. package/dist/es6/layout/lib/utils/space.d.ts +42 -19
  167. package/dist/es6/layout/lib/utils/space.d.ts.map +1 -1
  168. package/dist/es6/layout/lib/utils/space.js +3 -0
  169. package/dist/es6/layout/lib/utils/styleProps.d.ts +2 -0
  170. package/dist/es6/layout/lib/utils/styleProps.d.ts.map +1 -1
  171. package/dist/es6/layout/lib/utils/systemProps.d.ts +17 -0
  172. package/dist/es6/layout/lib/utils/systemProps.d.ts.map +1 -1
  173. package/dist/es6/layout/lib/utils/text.d.ts +45 -14
  174. package/dist/es6/layout/lib/utils/text.d.ts.map +1 -1
  175. package/dist/es6/layout/lib/utils/text.js +3 -0
  176. package/dist/es6/text-input/lib/TextInput.js +5 -5
  177. package/layout/lib/Box.tsx +2 -0
  178. package/layout/lib/utils/background.ts +25 -8
  179. package/layout/lib/utils/border/color.ts +12 -1
  180. package/layout/lib/utils/border/index.ts +3 -0
  181. package/layout/lib/utils/border/lineStyle.ts +24 -6
  182. package/layout/lib/utils/border/radius.ts +15 -6
  183. package/layout/lib/utils/border/shorthand.ts +22 -8
  184. package/layout/lib/utils/border/width.ts +18 -4
  185. package/layout/lib/utils/buildStyleFns.ts +11 -0
  186. package/layout/lib/utils/color.ts +13 -4
  187. package/layout/lib/utils/depth.ts +11 -3
  188. package/layout/lib/utils/flex.ts +32 -11
  189. package/layout/lib/utils/flexItem.ts +27 -8
  190. package/layout/lib/utils/grid.ts +56 -19
  191. package/layout/lib/utils/gridItem.ts +36 -11
  192. package/layout/lib/utils/layout.ts +36 -13
  193. package/layout/lib/utils/mergeStyles.ts +1 -0
  194. package/layout/lib/utils/other.ts +106 -34
  195. package/layout/lib/utils/position.ts +24 -9
  196. package/layout/lib/utils/space.ts +42 -19
  197. package/layout/lib/utils/styleProps.ts +2 -0
  198. package/layout/lib/utils/systemProps.ts +17 -0
  199. package/layout/lib/utils/text.ts +45 -14
  200. package/package.json +4 -4
  201. 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) => {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C,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"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.text = exports.textStyleFns = exports.textStyleFnConfigs = void 0;
4
4
  const buildStyleFns_1 = require("./buildStyleFns");
5
+ /** @deprecated */
5
6
  exports.textStyleFnConfigs = [
6
7
  {
7
8
  name: 'fontFamily',
@@ -69,6 +70,7 @@ exports.textStyleFnConfigs = [
69
70
  system: 'none',
70
71
  },
71
72
  ];
73
+ /** @deprecated */
72
74
  exports.textStyleFns = (0, buildStyleFns_1.buildStyleFns)(exports.textStyleFnConfigs);
73
75
  /**
74
76
  * A style prop function that takes component props and returns font and text styles.
@@ -80,5 +82,6 @@ exports.textStyleFns = (0, buildStyleFns_1.buildStyleFns)(exports.textStyleFnCon
80
82
  * <Box textAlign="center" fontWeight="medium">Hello, alignment!</Box>
81
83
  * );
82
84
  * ```
85
+ * @deprecated
83
86
  */
84
87
  exports.text = (0, buildStyleFns_1.buildStylePropFn)(exports.textStyleFns);
@@ -10,15 +10,15 @@ exports.textInputStencil = (0, canvas_kit_styling_1.createStencil)({
10
10
  vars: {
11
11
  width: '',
12
12
  },
13
- 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);}}" },
13
+ 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);}}" },
14
14
  modifiers: {
15
15
  grow: {
16
- true: { name: "kxkr6", styles: "width:100%;resize:vertical;" },
17
- false: { name: "3i5nz5", styles: "width:initial;" }
16
+ true: { name: "28pgp9", styles: "width:100%;resize:vertical;" },
17
+ false: { name: "3mn8t8", styles: "width:initial;" }
18
18
  },
19
19
  error: {
20
- 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;}" },
21
- 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;" }
20
+ 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;}" },
21
+ 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;" }
22
22
  }
23
23
  },
24
24
  defaultModifiers: {
@@ -1,10 +1,14 @@
1
1
  import { CanvasTheme, PartialCanvasTheme } from './types';
2
+ /**
3
+ * @deprecated ⚠️ `shiftColor` is deprecated and will be removed in a future major version. While we work on an algorithm for color shifting, you can use [oklch from or with calc](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch) to calculate colors.
4
+ */
2
5
  export declare const shiftColor: (hexColor: string, amount?: any) => string;
3
6
  declare function calculateCanvasTheme(partialTheme: PartialCanvasTheme): CanvasTheme;
4
7
  /**
5
8
  * Creates a full {@link CanvasTheme} from any partial theme by deeply merging with the
6
9
  * `defaultCanvasTheme` object. The function is memoized, but it is best to run this function
7
10
  * only once and save the result.
11
+ * @deprecated ⚠️ `createCanvasTheme` is deprecated and will be removed in a future major version. Please use our CSS Branding tokens to create a theme. For more information, please use our [theming docs](https://workday.github.io/canvas-kit/?path=/docs/features-theming-overview--docs).
8
12
  */
9
13
  export declare const createCanvasTheme: typeof calculateCanvasTheme;
10
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"createCanvasTheme.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/createCanvasTheme.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EACX,kBAAkB,EAInB,MAAM,SAAS,CAAC;AAQjB,eAAO,MAAM,UAAU,aACV,MAAM,yBA+BlB,CAAC;AAkCF,iBAAS,oBAAoB,CAAC,YAAY,EAAE,kBAAkB,GAAG,WAAW,CAkB3E;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,6BAAmE,CAAC"}
1
+ {"version":3,"file":"createCanvasTheme.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/createCanvasTheme.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EACX,kBAAkB,EAInB,MAAM,SAAS,CAAC;AAQjB;;GAEG;AACH,eAAO,MAAM,UAAU,aACV,MAAM,yBA+BlB,CAAC;AAkCF,iBAAS,oBAAoB,CAAC,YAAY,EAAE,kBAAkB,GAAG,WAAW,CAkB3E;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,6BAAmE,CAAC"}
@@ -6,6 +6,9 @@ import { pickForegroundColor } from '../utils';
6
6
  // Should these be exported?
7
7
  import { deepMerge } from '../utils/deepMerge';
8
8
  import { memoize } from '../utils/memoize';
9
+ /**
10
+ * @deprecated ⚠️ `shiftColor` is deprecated and will be removed in a future major version. While we work on an algorithm for color shifting, you can use [oklch from or with calc](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch) to calculate colors.
11
+ */
9
12
  export const shiftColor = memoize((hexColor, amount = 100) => {
10
13
  const canvasColor = Object.keys(colors).find(color => colors[color] === hexColor);
11
14
  if (canvasColor) {
@@ -73,5 +76,6 @@ function calculateCanvasTheme(partialTheme) {
73
76
  * Creates a full {@link CanvasTheme} from any partial theme by deeply merging with the
74
77
  * `defaultCanvasTheme` object. The function is memoized, but it is best to run this function
75
78
  * only once and save the result.
79
+ * @deprecated ⚠️ `createCanvasTheme` is deprecated and will be removed in a future major version. Please use our CSS Branding tokens to create a theme. For more information, please use our [theming docs](https://workday.github.io/canvas-kit/?path=/docs/features-theming-overview--docs).
76
80
  */
77
81
  export const createCanvasTheme = memoize(calculateCanvasTheme, (...args) => JSON.stringify(args));
@@ -1,7 +1,13 @@
1
1
  import { CreateStyled } from '@emotion/styled';
2
2
  import { CSSProperties } from '@workday/canvas-kit-react/tokens';
3
+ /**
4
+ * @deprecated ⚠️ `filterOutProps` is deprecated and will be removed in a future major version. Use our `createComponent` and `handleCsProp` helpers to handle props. For more information, view our [Meriging Styles Docs](https://workday.github.io/canvas-kit/?path=/docs/styling-guides-merging-styles--docs#handlecsprop).
5
+ */
3
6
  export declare const filterOutProps: (omittedProps: string[]) => (prop: string) => boolean;
4
7
  export type StyleRewriteFn = (obj?: CSSProperties) => CSSProperties | undefined;
8
+ /**
9
+ * @deprecated ⚠️ `styled` is deprecated and will be removed in a future major version. Please use `createStyles` or `createStencil` instead with [CSS logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values). For more information, view our [Styling docs](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
10
+ */
5
11
  declare const _default: CreateStyled;
6
12
  export default _default;
7
13
  //# sourceMappingURL=styled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAA2B,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAW/D,eAAO,MAAM,cAAc,iBAAkB,MAAM,EAAE,YACrC,MAAM,YACrB,CAAC;AAIF,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,CAAC,EAAE,aAAa,KAAK,aAAa,GAAG,SAAS,CAAC;;AA0BhF,wBAAsC"}
1
+ {"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAA2B,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAW/D;;GAEG;AACH,eAAO,MAAM,cAAc,iBAAkB,MAAM,EAAE,YACrC,MAAM,YACrB,CAAC;AAIF,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,CAAC,EAAE,aAAa,KAAK,aAAa,GAAG,SAAS,CAAC;AA0BhF;;GAEG;;AACH,wBAAsC"}
@@ -2,6 +2,9 @@ import { default as emotionStyled } from '@emotion/styled';
2
2
  import { useTheme, ContentDirection } from './index';
3
3
  import rtlCSSJS from 'rtl-css-js';
4
4
  const noop = (styles) => styles;
5
+ /**
6
+ * @deprecated ⚠️ `filterOutProps` is deprecated and will be removed in a future major version. Use our `createComponent` and `handleCsProp` helpers to handle props. For more information, view our [Meriging Styles Docs](https://workday.github.io/canvas-kit/?path=/docs/styling-guides-merging-styles--docs#handlecsprop).
7
+ */
5
8
  export const filterOutProps = (omittedProps) => {
6
9
  return (prop) => !omittedProps.includes(prop);
7
10
  };
@@ -25,4 +28,7 @@ function styled(node, options) {
25
28
  return emotionStyled(node, options)(newArgs);
26
29
  };
27
30
  }
31
+ /**
32
+ * @deprecated ⚠️ `styled` is deprecated and will be removed in a future major version. Please use `createStyles` or `createStencil` instead with [CSS logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values). For more information, view our [Styling docs](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
33
+ */
28
34
  export default styled;
@@ -1,3 +1,6 @@
1
1
  import { CanvasTheme } from './types';
2
+ /**
3
+ * @deprecated ⚠️ `defaultCanvasTheme` is deprecated and will be removed in a future major version. If you want to reset the theme, use `defaultBranding` and apply it to the `CanvasProvider`. For more information, view our [theming docs](https://workday.github.io/canvas-kit/?path=/docs/features-theming-overview--docs).
4
+ */
2
5
  export declare const defaultCanvasTheme: CanvasTheme;
3
6
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAmB,MAAM,SAAS,CAAC;AAItD,eAAO,MAAM,kBAAkB,EAAE,WA8DhC,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAmB,MAAM,SAAS,CAAC;AAItD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,WA8DhC,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { ContentDirection } from './types';
2
2
  import { base } from '@workday/canvas-tokens-web';
3
3
  import { breakpoints, up, down, between, only } from './breakpoints';
4
+ /**
5
+ * @deprecated ⚠️ `defaultCanvasTheme` is deprecated and will be removed in a future major version. If you want to reset the theme, use `defaultBranding` and apply it to the `CanvasProvider`. For more information, view our [theming docs](https://workday.github.io/canvas-kit/?path=/docs/features-theming-overview--docs).
6
+ */
4
7
  export const defaultCanvasTheme = {
5
8
  palette: {
6
9
  primary: {
@@ -7,7 +7,7 @@ import { PartialEmotionCanvasTheme } from './types';
7
7
  * const isRTL = useIsRTL();
8
8
  * ```
9
9
  *
10
- * @deprecated Use isElementRTL instead.
10
+ * @deprecated ⚠️ `useIsRTL` is deprecated and will be removed in a future major version. Please use `isElementRTL` instead.
11
11
  */
12
12
  export declare const useIsRTL: (partialTheme?: PartialEmotionCanvasTheme) => boolean;
13
13
  //# sourceMappingURL=useIsRTL.d.ts.map
@@ -12,7 +12,7 @@ function useDefaultTheme(theme, config, fn) {
12
12
  * const isRTL = useIsRTL();
13
13
  * ```
14
14
  *
15
- * @deprecated Use isElementRTL instead.
15
+ * @deprecated ⚠️ `useIsRTL` is deprecated and will be removed in a future major version. Please use `isElementRTL` instead.
16
16
  */
17
17
  export const useIsRTL = (partialTheme) => {
18
18
  const theme = useDefaultTheme(partialTheme, ThemeContext, React.useContext);
@@ -31,6 +31,7 @@ import { EmotionCanvasTheme, PartialEmotionCanvasTheme } from './index';
31
31
  * margin: space.l
32
32
  * }
33
33
  * }
34
+ * @deprecated ⚠️ `getTheme` is deprecated and will be removed in a future major version. Please use our [CSS tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-brand-tokens--docs) to theme components.
34
35
  */
35
36
  export declare function getTheme(theme?: PartialEmotionCanvasTheme): EmotionCanvasTheme;
36
37
  /**
@@ -60,6 +61,7 @@ export declare function getTheme(theme?: PartialEmotionCanvasTheme): EmotionCanv
60
61
  * <Subtext size="large" color={theme.canvas.palette.error.main}>
61
62
  * );
62
63
  * }
64
+ * @deprecated ⚠️ `useTheme` is deprecated and will be removed in a future major version. Please use our [CSS tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-brand-tokens--docs) to theme components.
63
65
  */
64
66
  export declare function useTheme(theme?: PartialEmotionCanvasTheme): EmotionCanvasTheme;
65
67
  //# sourceMappingURL=useTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/useTheme.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,kBAAkB,EAClB,yBAAyB,EAE1B,MAAM,SAAS,CAAC;AAqEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,QAAQ,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,kBAAkB,CAY9E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,QAAQ,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,kBAAkB,CAkB9E"}
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/useTheme.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,kBAAkB,EAClB,yBAAyB,EAE1B,MAAM,SAAS,CAAC;AAsEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,QAAQ,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,kBAAkB,CAY9E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,QAAQ,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,kBAAkB,CAkB9E"}
@@ -6,6 +6,7 @@ import { cssVar } from '@workday/canvas-kit-styling';
6
6
  import { base } from '@workday/canvas-tokens-web';
7
7
  /**
8
8
  * We can adjust the shift but this should get us close enough until we clean up the algorithm to determine the colors.
9
+ * @deprecated ⚠️ `shiftColor` is deprecated and will be removed in a future major version. While we work on an algorithm for color shifting, you can use [`oklch from`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch) to generate a palette.
9
10
  */
10
11
  const shiftColor = (color, value) => {
11
12
  return `oklch(from ${color} calc(l ${value > 0 ? '+' : '-'} ${Math.abs(value) / 1000}) c h)`;
@@ -90,6 +91,7 @@ const getFilledTheme = (theme) => {
90
91
  * margin: space.l
91
92
  * }
92
93
  * }
94
+ * @deprecated ⚠️ `getTheme` is deprecated and will be removed in a future major version. Please use our [CSS tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-brand-tokens--docs) to theme components.
93
95
  */
94
96
  export function getTheme(theme) {
95
97
  var _a, _b;
@@ -129,6 +131,7 @@ export function getTheme(theme) {
129
131
  * <Subtext size="large" color={theme.canvas.palette.error.main}>
130
132
  * );
131
133
  * }
134
+ * @deprecated ⚠️ `useTheme` is deprecated and will be removed in a future major version. Please use our [CSS tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-brand-tokens--docs) to theme components.
132
135
  */
133
136
  export function useTheme(theme) {
134
137
  if (!theme) {
@@ -5,6 +5,9 @@ interface ContrastColors {
5
5
  outer?: string;
6
6
  inner?: string;
7
7
  }
8
+ /**
9
+ * @deprecated ⚠️ `getPaletteColorsForFocusRing` is deprecated and will be removed in a future major version. Please use the `brand.common.focusRing` CSS variable to theme focus rings. For more information, view our [CSS tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-brand-tokens--docs).
10
+ */
8
11
  export declare function getPaletteColorsForFocusRing(type: paletteSelection, theme: EmotionCanvasTheme): ContrastColors;
9
12
  /**
10
13
  * This is a way to automatically add themed colors to your input and is helpful when showing alerts, success or errors to users.
@@ -40,6 +43,7 @@ export declare function getPaletteColorsForFocusRing(type: paletteSelection, the
40
43
  * );
41
44
  * };
42
45
  *```
46
+ * @deprecated `useThemedRing` is deprecated and will be removed in a future major version. Please use `brand.common.focusOutline` CSS variable instead. View our [CSS tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-brand-tokens--docs) for more information.
43
47
  */
44
48
  export declare const useThemedRing: (type: paletteSelection) => CSSProperties;
45
49
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"useThemedRing.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/useThemedRing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,kBAAkB,EAAW,MAAM,kCAAkC,CAAC;AAE3F,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAG/D,KAAK,gBAAgB,GAAG,OAAO,CAAC,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,CAAC;AACzF,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAiCD,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,kBAAkB,GACxB,cAAc,CAoBhB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,aAAa,SAAU,gBAAgB,KAAG,aA0BtD,CAAC"}
1
+ {"version":3,"file":"useThemedRing.d.ts","sourceRoot":"","sources":["../../../../../common/lib/theming/useThemedRing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,kBAAkB,EAAW,MAAM,kCAAkC,CAAC;AAE3F,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAG/D,KAAK,gBAAgB,GAAG,OAAO,CAAC,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,CAAC;AACzF,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAiCD;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,kBAAkB,GACxB,cAAc,CAoBhB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,aAAa,SAAU,gBAAgB,KAAG,aA0BtD,CAAC"}
@@ -27,6 +27,9 @@ const getPaletteColorsFromTheme = (palette, fallbackColors, errorType) => {
27
27
  inner: cssVar(brand.common.focusOutline),
28
28
  };
29
29
  };
30
+ /**
31
+ * @deprecated ⚠️ `getPaletteColorsForFocusRing` is deprecated and will be removed in a future major version. Please use the `brand.common.focusRing` CSS variable to theme focus rings. For more information, view our [CSS tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-brand-tokens--docs).
32
+ */
30
33
  export function getPaletteColorsForFocusRing(type, theme) {
31
34
  switch (type) {
32
35
  case 'error': {
@@ -82,6 +85,7 @@ export function getPaletteColorsForFocusRing(type, theme) {
82
85
  * );
83
86
  * };
84
87
  *```
88
+ * @deprecated `useThemedRing` is deprecated and will be removed in a future major version. Please use `brand.common.focusOutline` CSS variable instead. View our [CSS tokens](https://workday.github.io/canvas-tokens/?path=/docs/docs-brand-tokens--docs) for more information.
85
89
  */
86
90
  export const useThemedRing = (type) => {
87
91
  const theme = useTheme();
@@ -38,6 +38,7 @@ export type BoxProps = CommonStyleProps & CSProps & {
38
38
  *
39
39
  * <StyledHeader color='red'>Hello World</StyledHeader>
40
40
  * ```
41
+ * @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).
41
42
  */
42
43
  export declare const boxStyleFn: <P extends BoxProps>(props: P) => {};
43
44
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAC,OAAO,EAAe,MAAM,6BAA6B,CAAC;AAclE,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,QAAQ,GAAG,gBAAgB,GACrC,OAAO,GAAG;IACR,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AA6BJ;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU,sCA0BtB,CAAC;AAQF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,GAAG,6yBAad,CAAC"}
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAC,OAAO,EAAe,MAAM,6BAA6B,CAAC;AAclE,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,QAAQ,GAAG,gBAAgB,GACrC,OAAO,GAAG;IACR,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AA8BJ;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,UAAU,sCA0BtB,CAAC;AAQF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,GAAG,6yBAad,CAAC"}
@@ -37,6 +37,7 @@ const omittedProps = [
37
37
  'whiteSpace',
38
38
  'wordBreak',
39
39
  ];
40
+ /** @deprecated */
40
41
  const shouldForwardProp = (prop) => {
41
42
  return isPropValid(prop) && !omittedProps.includes(prop);
42
43
  };
@@ -57,6 +58,7 @@ const shouldForwardProp = (prop) => {
57
58
  *
58
59
  * <StyledHeader color='red'>Hello World</StyledHeader>
59
60
  * ```
61
+ * @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).
60
62
  */
61
63
  export const boxStyleFn = (props) => {
62
64
  return [
@@ -1,30 +1,46 @@
1
1
  import { Property } from 'csstype';
2
2
  import { StyleFnConfig } from './buildStyleFns';
3
3
  import { SystemPropValues } from './systemProps';
4
- /** style props to set CSS background properties */
4
+ /** style props to set CSS background properties
5
+ * @deprecated
6
+ */
5
7
  export type BackgroundStyleProps = {
6
8
  /**
7
9
  * - sets [CSS background property](https://developer.mozilla.org/en-US/docs/Web/CSS/background)
8
10
  * - system tokens: `color`
9
- * */
11
+ * @deprecated Use `cs` prop with `system.color.bg.*` tokens
12
+ */
10
13
  background?: SystemPropValues['color'];
11
- /** sets [CSS background-attachment property](https://developer.mozilla.org/en-US/docs/Web/CSS/) */
14
+ /** sets [CSS background-attachment property](https://developer.mozilla.org/en-US/docs/Web/CSS/)
15
+ * @deprecated
16
+ */
12
17
  backgroundAttachment?: Property.BackgroundAttachment;
13
18
  /**
14
19
  * - sets [CSS background-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color)
15
20
  * - system tokens: `color`
16
- * */
21
+ * @deprecated Use `cs` prop with `system.color.bg.*` tokens
22
+ */
17
23
  backgroundColor?: SystemPropValues['color'];
18
- /** sets [CSS background-image property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-image) */
24
+ /** sets [CSS background-image property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-image)
25
+ * @deprecated
26
+ */
19
27
  backgroundImage?: Property.BackgroundImage;
20
- /** sets [CSS background-position property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position) */
28
+ /** sets [CSS background-position property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-position)
29
+ * @deprecated
30
+ */
21
31
  backgroundPosition?: Property.BackgroundPosition;
22
- /** sets [CSS background-repeat property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat) */
32
+ /** sets [CSS background-repeat property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat)
33
+ * @deprecated
34
+ */
23
35
  backgroundRepeat?: Property.BackgroundRepeat;
24
- /** sets [CSS background-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size) */
36
+ /** sets [CSS background-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)
37
+ * @deprecated
38
+ */
25
39
  backgroundSize?: Property.BackgroundSize;
26
40
  };
41
+ /** @deprecated */
27
42
  export declare const backgroundStyleFnConfigs: StyleFnConfig[];
43
+ /** @deprecated */
28
44
  export declare const backgroundFns: import("./buildStyleFns").StyleFns;
29
45
  /**
30
46
  * A style prop function that takes component props and returns border styles.
@@ -39,6 +55,7 @@ export declare const backgroundFns: import("./buildStyleFns").StyleFns;
39
55
  * </Box>
40
56
  * );
41
57
  *```
58
+ @deprecated
42
59
  */
43
60
  export declare const background: (props: BackgroundStyleProps) => {};
44
61
  //# sourceMappingURL=background.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"background.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/background.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,mDAAmD;AACnD,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;SAGK;IACL,UAAU,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACvC,mGAAmG;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,gBAAgB,CAAC;IAC7C;;OAEG;IACH,cAAc,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC;CAC1C,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,wBAAwB,EAAE,aAAa,EAoCnD,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,aAAa,oCAA0C,CAAC;AACrE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,qCAAwD,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { buildStyleFns, buildStylePropFn } from './buildStyleFns';
2
+ /** @deprecated */
2
3
  export const backgroundStyleFnConfigs = [
3
4
  {
4
5
  name: 'background',
@@ -36,6 +37,7 @@ export const backgroundStyleFnConfigs = [
36
37
  system: 'none',
37
38
  },
38
39
  ];
40
+ /** @deprecated */
39
41
  export const backgroundFns = buildStyleFns(backgroundStyleFnConfigs);
40
42
  /**
41
43
  * A style prop function that takes component props and returns border styles.
@@ -50,5 +52,6 @@ export const backgroundFns = buildStyleFns(backgroundStyleFnConfigs);
50
52
  * </Box>
51
53
  * );
52
54
  *```
55
+ @deprecated
53
56
  */
54
57
  export const background = buildStylePropFn(backgroundFns);
@@ -1,47 +1,58 @@
1
1
  import { StyleFnConfig } from '../buildStyleFns';
2
2
  import { SystemPropValues } from '../systemProps';
3
- /** style props to set CSS border color properties */
3
+ /** style props to set CSS border color properties
4
+ * @deprecated
5
+ */
4
6
  export type BorderColorStyleProps = {
5
7
  /**
6
8
  * - sets [CSS border-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-color)
7
9
  * - system tokens: `color`
10
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
8
11
  */
9
12
  borderColor?: SystemPropValues['color'];
10
13
  /**
11
14
  * - sets [CSS border-top-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-color)
12
15
  * - system tokens: `color`
16
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
13
17
  */
14
18
  borderTopColor?: SystemPropValues['color'];
15
19
  /**
16
20
  * - sets [CSS border-right-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-color)
17
21
  * - no bidirectional support
18
22
  * - system tokens: `color`
23
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
19
24
  */
20
25
  borderRightColor?: SystemPropValues['color'];
21
26
  /**
22
27
  * - sets [CSS border-bottom-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-color)
23
28
  * - system tokens: `color`
29
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
24
30
  */
25
31
  borderBottomColor?: SystemPropValues['color'];
26
32
  /**
27
33
  * - sets [CSS border-left-color property](https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-color)
28
34
  * - no bidirectional support
29
35
  * - system tokens: `color`
36
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
30
37
  */
31
38
  borderLeftColor?: SystemPropValues['color'];
32
39
  /**
33
40
  * - sets [CSS border-inline-start-color property ](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-start-color)
34
41
  * - bidirectional support
35
42
  * - system tokens: `color`
43
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
36
44
  */
37
45
  borderInlineStartColor?: SystemPropValues['color'];
38
46
  /**
39
47
  * - sets [CSS border-inline-end-color property ](https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-end-color)
40
48
  * - bidirectional support
41
49
  * - system tokens: `color`
50
+ * @deprecated Use `cs` prop with `system.color.border.*` tokens
42
51
  */
43
52
  borderInlineEndColor?: SystemPropValues['color'];
44
53
  };
54
+ /** @deprecated */
45
55
  export declare const borderColorStyleFnConfigs: StyleFnConfig[];
56
+ /** @deprecated */
46
57
  export declare const borderColorFns: import("../buildStyleFns").StyleFns;
47
58
  //# sourceMappingURL=color.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../../../layout/lib/utils/border/color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,aAAa,EAAC,MAAM,kBAAkB,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AO,CAAC,CAAC;IAC9C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC5C;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACnD;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CAClD,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,yBAAyB,EAAE,aAAa,EAoCpD,CAAC;AAEF,kBAAkB;AAClB,eAAO,MAAM,cAAc,qCAA2C,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { buildStyleFns } from '../buildStyleFns';
2
+ /** @deprecated */
2
3
  export const borderColorStyleFnConfigs = [
3
4
  {
4
5
  name: 'borderColor',
@@ -36,4 +37,5 @@ export const borderColorStyleFnConfigs = [
36
37
  system: 'color',
37
38
  },
38
39
  ];
40
+ /** @deprecated */
39
41
  export const borderColorFns = buildStyleFns(borderColorStyleFnConfigs);
@@ -3,6 +3,7 @@ import { BorderLineStyleProps } from './lineStyle';
3
3
  import { BorderRadiusStyleProps } from './radius';
4
4
  import { BorderShorthandStyleProps } from './shorthand';
5
5
  import { BorderWidthStyleProps } from './width';
6
+ /** @deprecated */
6
7
  export type BorderStyleProps = BorderColorStyleProps & BorderLineStyleProps & BorderRadiusStyleProps & BorderShorthandStyleProps & BorderWidthStyleProps;
7
8
  /**
8
9
  * A style prop function that takes component props and returns border styles. Some props, such as borderRadius and borderColor, are connected to our design tokens.
@@ -20,7 +21,9 @@ export type BorderStyleProps = BorderColorStyleProps & BorderLineStyleProps & Bo
20
21
  * </Box>
21
22
  * );
22
23
  *```
24
+ * @deprecated
23
25
  */
24
26
  export declare const border: (props: BorderStyleProps) => {};
27
+ /** @deprecated */
25
28
  export declare const borderStyleFnConfigs: import("../buildStyleFns").StyleFnConfig[];
26
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../layout/lib/utils/border/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,qBAAqB,EAA4C,MAAM,SAAS,CAAC;AACzF,OAAO,EAAC,oBAAoB,EAA+C,MAAM,aAAa,CAAC;AAC/F,OAAO,EAAC,sBAAsB,EAA8C,MAAM,UAAU,CAAC;AAC7F,OAAO,EACL,yBAAyB,EAG1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,qBAAqB,EAA4C,MAAM,SAAS,CAAC;AAEzF,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,GAClD,oBAAoB,GACpB,sBAAsB,GACtB,yBAAyB,GACzB,qBAAqB,CAAC;AAExB;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,MAAM,iCAMjB,CAAC;AAEH,eAAO,MAAM,oBAAoB,4CAMhC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../layout/lib/utils/border/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,qBAAqB,EAA4C,MAAM,SAAS,CAAC;AACzF,OAAO,EAAC,oBAAoB,EAA+C,MAAM,aAAa,CAAC;AAC/F,OAAO,EAAC,sBAAsB,EAA8C,MAAM,UAAU,CAAC;AAC7F,OAAO,EACL,yBAAyB,EAG1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,qBAAqB,EAA4C,MAAM,SAAS,CAAC;AAEzF,kBAAkB;AAClB,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,GAClD,oBAAoB,GACpB,sBAAsB,GACtB,yBAAyB,GACzB,qBAAqB,CAAC;AAExB;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,MAAM,iCAMjB,CAAC;AAEH,kBAAkB;AAClB,eAAO,MAAM,oBAAoB,4CAMhC,CAAC"}