@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
@@ -2,76 +2,146 @@ import {Property} from 'csstype';
2
2
 
3
3
  import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
4
4
 
5
- /** style props to for other CSS properties */
5
+ /**
6
+ * style props to for other CSS properties
7
+ * @deprecated ⚠️ Style props are deprecated. Please use our `cs` prop with `createStencil` or `createStyles` to apply styles. For more information view our [Styling docs](* @deprecated ⚠️ `boxStyleFn` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
8
+ */
6
9
  export type OtherStyleProps = {
7
- /** sets [CSS animation property](https://developer.mozilla.org/en-US/docs/Web/CSS/animation) */
10
+ /** sets [CSS animation property](https://developer.mozilla.org/en-US/docs/Web/CSS/animation)
11
+ * @deprecated
12
+ */
8
13
  animation?: Property.Animation;
9
- /** sets [CSS appearance property](https://developer.mozilla.org/en-US/docs/Web/CSS/appearance) */
14
+ /** sets [CSS appearance property](https://developer.mozilla.org/en-US/docs/Web/CSS/appearance)
15
+ * @deprecated
16
+ */
10
17
  appearance?: Property.Appearance;
11
- /** sets [CSS box-sizing property](https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing) */
18
+ /** sets [CSS box-sizing property](https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing)
19
+ * @deprecated
20
+ */
12
21
  boxSizing?: Property.BoxSizing;
13
- /** sets [CSS content property](https://developer.mozilla.org/en-US/docs/Web/CSS/content) */
22
+ /** sets [CSS content property](https://developer.mozilla.org/en-US/docs/Web/CSS/content)
23
+ * @deprecated
24
+ */
14
25
  content?: Property.Content;
15
- /** sets [CSS cursor property](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) */
26
+ /** sets [CSS cursor property](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor)
27
+ * @deprecated
28
+ */
16
29
  cursor?: Property.Cursor;
17
- /** sets [CSS fill property](https://developer.mozilla.org/en-US/docs/Web/CSS/fill) */
30
+ /** sets [CSS fill property](https://developer.mozilla.org/en-US/docs/Web/CSS/fill)
31
+ * @deprecated
32
+ */
18
33
  fill?: Property.Fill;
19
- /** sets [CSS float property](https://developer.mozilla.org/en-US/docs/Web/CSS/float) */
34
+ /** sets [CSS float property](https://developer.mozilla.org/en-US/docs/Web/CSS/float)
35
+ * @deprecated
36
+ */
20
37
  float?: Property.Float;
21
- /** sets [CSS object-fit property](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) */
38
+ /** sets [CSS object-fit property](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit)
39
+ * @deprecated
40
+ */
22
41
  objectFit?: Property.ObjectFit;
23
- /** sets [CSS object-position property](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) */
42
+ /** sets [CSS object-position property](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position)
43
+ * @deprecated
44
+ */
24
45
  objectPosition?: Property.ObjectPosition;
25
- /** sets [CSS opacity](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity) */
46
+ /** sets [CSS opacity](https://developer.mozilla.org/en-US/docs/Web/CSS/opacity)
47
+ * @deprecated
48
+ */
26
49
  opacity?: Property.Opacity;
27
- /** sets [CSS outline property](https://developer.mozilla.org/en-US/docs/Web/CSS/outline) */
50
+ /** sets [CSS outline property](https://developer.mozilla.org/en-US/docs/Web/CSS/outline)
51
+ * @deprecated
52
+ */
28
53
  outline?: Property.Outline;
29
- /** sets [CSS outline-offset property](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-offset) */
54
+ /** sets [CSS outline-offset property](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-offset)
55
+ * @deprecated
56
+ */
30
57
  outlineOffset?: Property.OutlineOffset;
31
- /** sets [CSS overflow-wrap property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap) */
58
+ /** sets [CSS overflow-wrap property](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap)
59
+ * @deprecated
60
+ */
32
61
  overflowWrap?: Property.OverflowWrap;
33
- /** sets [CSS pointer-events property](https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events) */
62
+ /** sets [CSS pointer-events property](https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events)
63
+ * @deprecated
64
+ */
34
65
  pointerEvents?: Property.PointerEvents;
35
- /** sets [CSS resize property](https://developer.mozilla.org/en-US/docs/Web/CSS/resize) */
66
+ /** sets [CSS resize property](https://developer.mozilla.org/en-US/docs/Web/CSS/resize)
67
+ * @deprecated
68
+ */
36
69
  resize?: Property.Resize;
37
- /** sets [CSS scroll margin property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin) */
70
+ /** sets [CSS scroll margin property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin)
71
+ * @deprecated
72
+ */
38
73
  scrollMargin?: Property.ScrollMargin;
39
- /** sets [CSS scroll margin bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-bottom) */
74
+ /** sets [CSS scroll margin bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-bottom)
75
+ * @deprecated
76
+ */
40
77
  scrollMarginBottom?: Property.ScrollMarginBottom;
41
- /** sets [CSS scroll margin top property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-top) */
78
+ /** sets [CSS scroll margin top property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-top)
79
+ * @deprecated
80
+ */
42
81
  scrollMarginTop?: Property.ScrollMarginTop;
43
- /** sets [CSS scroll margin inline start property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-inline-start) */
82
+ /** sets [CSS scroll margin inline start property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-inline-start)
83
+ * @deprecated
84
+ */
44
85
  scrollMarginInlineStart?: Property.ScrollMarginInlineStart;
45
- /** sets [CSS scroll margin inline end property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-inline-end) */
86
+ /** sets [CSS scroll margin inline end property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin-inline-end)
87
+ * @deprecated
88
+ */
46
89
  scrollMarginInlineEnd?: Property.ScrollMarginInlineEnd;
47
- /** sets [CSS scroll padding property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding) */
90
+ /** sets [CSS scroll padding property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding)
91
+ * @deprecated
92
+ */
48
93
  scrollPadding?: Property.ScrollPadding;
49
- /** sets [CSS scroll padding bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-bottom) */
94
+ /** sets [CSS scroll padding bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-bottom)
95
+ * @deprecated
96
+ */
50
97
  scrollPaddingBottom?: Property.ScrollPaddingBottom;
51
- /** sets [CSS scroll padding top property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-top) */
98
+ /** sets [CSS scroll padding top property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-top)
99
+ * @deprecated
100
+ */
52
101
  scrollPaddingTop?: Property.ScrollPaddingTop;
53
- /** sets [CSS scroll padding inline start property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-inline-start) */
102
+ /** sets [CSS scroll padding inline start property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-inline-start)
103
+ * @deprecated
104
+ */
54
105
  scrollPaddingInlineStart?: Property.ScrollPaddingInlineStart;
55
- /** sets [CSS scroll padding inline end property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-inline-end) */
106
+ /** sets [CSS scroll padding inline end property](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-padding-inline-end)
107
+ * @deprecated
108
+ */
56
109
  scrollPaddingInlineEnd?: Property.ScrollPaddingInlineEnd;
57
- /** sets [CSS scroll snap align property](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */
110
+ /** sets [CSS scroll snap align property](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align)
111
+ * @deprecated
112
+ */
58
113
  scrollSnapAlign?: Property.ScrollSnapAlign;
59
- /** sets [CSS scroll snap stop property](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */
114
+ /** sets [CSS scroll snap stop property](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop)
115
+ * @deprecated
116
+ */
60
117
  scrollSnapStop?: Property.ScrollSnapStop;
61
- /** sets [CSS scroll snap type property](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */
118
+ /** sets [CSS scroll snap type property](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type)
119
+ * @deprecated
120
+ */
62
121
  scrollSnapType?: Property.ScrollSnapType;
63
- /** sets [CSS stroke property](https://developer.mozilla.org/en-US/docs/Web/CSS/stroke) */
122
+ /** sets [CSS stroke property](https://developer.mozilla.org/en-US/docs/Web/CSS/stroke)
123
+ * @deprecated
124
+ */
64
125
  stroke?: Property.Stroke;
65
- /** sets [CSS transform property](https://developer.mozilla.org/en-US/docs/Web/CSS/transform) */
126
+ /** sets [CSS transform property](https://developer.mozilla.org/en-US/docs/Web/CSS/transform)
127
+ * @deprecated
128
+ */
66
129
  transform?: Property.Transform;
67
- /** sets [CSS transition property](https://developer.mozilla.org/en-US/docs/Web/CSS/transition) */
130
+ /** sets [CSS transition property](https://developer.mozilla.org/en-US/docs/Web/CSS/transition)
131
+ * @deprecated
132
+ */
68
133
  transition?: Property.Transition;
69
- /** sets [CSS user-select property](https://developer.mozilla.org/en-US/docs/Web/CSS/user-select) */
134
+ /** sets [CSS user-select property](https://developer.mozilla.org/en-US/docs/Web/CSS/user-select)
135
+ * @deprecated
136
+ */
70
137
  userSelect?: Property.UserSelect;
71
- /** sets [CSS visibility property](https://developer.mozilla.org/en-US/docs/Web/CSS/visibility) */
138
+ /** sets [CSS visibility property](https://developer.mozilla.org/en-US/docs/Web/CSS/visibility)
139
+ * @deprecated
140
+ */
72
141
  visibility?: Property.Visibility;
73
142
  };
74
143
 
144
+ /** @deprecated */
75
145
  export const otherStyleFnConfigs: StyleFnConfig[] = [
76
146
  {
77
147
  name: 'animation',
@@ -170,6 +240,8 @@ export const otherStyleFnConfigs: StyleFnConfig[] = [
170
240
  },
171
241
  ];
172
242
 
243
+ /** @deprecated */
173
244
  export const otherStyleFns = buildStyleFns(otherStyleFnConfigs);
174
245
 
246
+ /** @deprecated */
175
247
  export const other = buildStylePropFn<OtherStyleProps>(otherStyleFns);
@@ -2,50 +2,63 @@ import {Property} from 'csstype';
2
2
 
3
3
  import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
4
4
 
5
- /** style props to for CSS position properties */
5
+ /**
6
+ * style props to for CSS position properties
7
+ * @deprecated ⚠️ Style props are deprecated. Please use our `cs` prop with `createStencil` or `createStyles` to apply styles. For more information view our [Styling docs](* @deprecated ⚠️ `boxStyleFn` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
8
+ */
6
9
  export type PositionStyleProps = {
7
10
  /**
8
11
  * - sets [CSS position property](https://developer.mozilla.org/en-US/docs/Web/CSS/position)
9
- * */
12
+ * @deprecated
13
+ */
10
14
  position?: Property.Position;
11
15
  /**
12
16
  * - sets [CSS z-index property](https://developer.mozilla.org/en-US/docs/Web/CSS/z-index)
13
- * */
17
+ * @deprecated
18
+ */
14
19
  zIndex?: Property.ZIndex;
15
20
  /**
16
21
  * - sets [CSS top property](https://developer.mozilla.org/en-US/docs/Web/CSS/top)
17
- * */
22
+ * @deprecated
23
+ */
18
24
  top?: number | string;
19
25
  /**
20
26
  * - sets [CSS right property](https://developer.mozilla.org/en-US/docs/Web/CSS/right)
21
27
  * - no bidirectional support
22
- * */
28
+ * @deprecated
29
+ */
23
30
  right?: number | string;
24
31
  /**
25
32
  * - sets [CSS bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/bottom)
26
- * */
33
+ * @deprecated
34
+ */
27
35
  bottom?: number | string;
28
36
  /**
29
37
  * - sets [CSS left property](https://developer.mozilla.org/en-US/docs/Web/CSS/left)
30
38
  * - no bidirectional support
31
- * */
39
+ * @deprecated
40
+ */
32
41
  left?: number | string;
33
42
  /**
34
43
  * - sets [CSS inset property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset)
44
+ * @deprecated
35
45
  */
36
46
  inset?: number | string;
37
47
  /**
38
48
  * - sets [CSS inset-inline-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset-inline-start)
39
49
  * - bidirectional support
40
- * */
50
+ * @deprecated
51
+ */
41
52
  insetInlineStart?: number | string;
42
53
  /**
43
54
  * - sets [CSS inset-inline-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/inset-inline-end)
44
55
  * - bidirectional support
45
- * */
56
+ * @deprecated
57
+ */
46
58
  insetInlineEnd?: number | string;
47
59
  };
48
60
 
61
+ /** @deprecated */
49
62
  export const positionStyleFnConfigs: StyleFnConfig[] = [
50
63
  {
51
64
  name: 'position',
@@ -94,6 +107,7 @@ export const positionStyleFnConfigs: StyleFnConfig[] = [
94
107
  },
95
108
  ];
96
109
 
110
+ /** @deprecated */
97
111
  export const positionStyleFns = buildStyleFns(positionStyleFnConfigs);
98
112
  /**
99
113
  * A style prop function that takes component props and returns position styles.
@@ -107,5 +121,6 @@ export const positionStyleFns = buildStyleFns(positionStyleFnConfigs);
107
121
  * </Box>
108
122
  * );
109
123
  * ```
124
+ * @deprecated
110
125
  */
111
126
  export const position = buildStylePropFn<PositionStyleProps>(positionStyleFns);
@@ -1,108 +1,129 @@
1
1
  import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
2
2
  import {SystemPropValues} from './systemProps';
3
3
 
4
- /** style props to for CSS space properties */
4
+ /** style props to for CSS space 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 SpaceStyleProps = {
6
8
  /**
7
9
  * - sets [CSS margin-inline-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-start)
8
10
  * - bidirectional support
9
11
  * - system tokens: `space`
10
- * */
12
+ * @deprecated
13
+ */
11
14
  marginInlineStart?: SystemPropValues['space'];
12
15
  /**
13
16
  * - sets [CSS margin-inline-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-end)
14
17
  * - bidirectional support
15
18
  * - system tokens: `space`
16
- * */
19
+ * @deprecated
20
+ */
17
21
  marginInlineEnd?: SystemPropValues['space'];
18
22
  /**
19
23
  * - sets [CSS padding-inline-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-start)
20
24
  * - bidirectional support
21
25
  * - system tokens: `space`
22
- * */
26
+ * @deprecated
27
+ */
23
28
  paddingInlineStart?: SystemPropValues['space'];
24
29
  /**
25
30
  * - sets [CSS padding-inline-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-end)
26
31
  * - bidirectional support
27
32
  * - system tokens: `space`
28
- * */
33
+ * @deprecated
34
+ */
29
35
  paddingInlineEnd?: SystemPropValues['space'];
30
36
  /**
31
37
  * - sets [CSS margin property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin)
32
38
  * - system tokens: `space`
33
- * */
39
+ * @deprecated
40
+ */
34
41
  margin?: SystemPropValues['space'];
35
42
  /**
36
43
  * - sets [CSS margin-left](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left) and [margin-right properties](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right)
37
44
  * - system tokens: `space`
38
- * */
45
+ * @deprecated
46
+ */
39
47
  marginX?: SystemPropValues['space'];
40
48
  /**
41
49
  * - sets [CSS margin-top](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top) and [margin-bottom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom)
42
50
  * - system tokens: `space`
43
- * */
51
+ * @deprecated
52
+ */
44
53
  marginY?: SystemPropValues['space'];
45
54
  /**
46
55
  * - sets [CSS margin-top property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top)
47
56
  * - system tokens: `space`
48
- * */
57
+ * @deprecated
58
+ */
49
59
  marginTop?: SystemPropValues['space'];
50
60
  /**
51
61
  * - sets [CSS margin-right property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right)
52
62
  * - no bidirectional support
53
63
  * - system tokens: `space`
54
- * */
64
+ * @deprecated
65
+ */
55
66
  marginRight?: SystemPropValues['space'];
56
67
  /**
57
68
  * - sets [CSS margin-bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom)
58
69
  * - system tokens: `space`
59
- * */
70
+ * @deprecated
71
+ */
60
72
  marginBottom?: SystemPropValues['space'];
61
73
  /**
62
74
  * - sets [CSS margin-left property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left)
63
75
  * - no bidirectional support
64
76
  * - system tokens: `space`
65
- * */
77
+ * @deprecated
78
+ */
66
79
  marginLeft?: SystemPropValues['space'];
67
80
  /**
68
81
  * - sets [CSS padding property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
69
82
  * - system tokens: `space`
70
- * */
83
+ * @deprecated
84
+ */
71
85
  padding?: SystemPropValues['space'];
72
86
  /**
73
87
  * - sets [CSS padding-left]((https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left) and [padding-right properties](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right)
74
88
  * - system tokens: `space`
75
- * */
89
+ * @deprecated
90
+ */
76
91
  paddingX?: SystemPropValues['space'];
77
92
  /**
78
93
  * - sets [CSS padding-top](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top) and [padding-bottom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom)
79
94
  * - system tokens: `space`
80
- * */
95
+ * @deprecated
96
+ */
81
97
  paddingY?: SystemPropValues['space'];
82
98
  /**
83
99
  * - sets [CSS padding-top property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top)
84
100
  * - system tokens: `space`
85
- * */
101
+ * @deprecated
102
+ */
86
103
  paddingTop?: SystemPropValues['space'];
87
104
  /**
88
105
  * - sets [CSS padding-right property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right)
89
106
  * - no bidirectional support
90
107
  * - system tokens: `space`
91
- * */
108
+ * @deprecated
109
+ */
92
110
  paddingRight?: SystemPropValues['space'];
93
111
  /**
94
112
  * - sets [CSS padding-bottom](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
95
113
  * - system tokens: `space`
96
- * */
114
+ * @deprecated
115
+ */
97
116
  paddingBottom?: SystemPropValues['space'];
98
117
  /**
99
118
  * - sets [CSS padding-left property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left)
100
119
  * - no bidirectional support
101
120
  * - system tokens: `space`
102
- * */
121
+ * @deprecated
122
+ */
103
123
  paddingLeft?: SystemPropValues['space'];
104
124
  };
105
125
 
126
+ /** @deprecated */
106
127
  export const spaceStyleFnConfigs: StyleFnConfig[] = [
107
128
  {
108
129
  name: 'marginInlineStart',
@@ -196,6 +217,7 @@ export const spaceStyleFnConfigs: StyleFnConfig[] = [
196
217
  },
197
218
  ];
198
219
 
220
+ /** @deprecated */
199
221
  export const spaceStyleFns = buildStyleFns(spaceStyleFnConfigs);
200
222
  /**
201
223
  * A style prop function that takes component props and returns space styles.
@@ -209,5 +231,6 @@ export const spaceStyleFns = buildStyleFns(spaceStyleFnConfigs);
209
231
  * </Box>
210
232
  * );
211
233
  * ```
234
+ * @deprecated
212
235
  */
213
236
  export const space = buildStylePropFn<SpaceStyleProps>(spaceStyleFns);
@@ -28,6 +28,7 @@ import {TextStyleProps} from './text';
28
28
  * - position
29
29
  * - space
30
30
  * - text
31
+ * @deprecated
31
32
  */
32
33
  export type CommonStyleProps = BackgroundStyleProps &
33
34
  BorderStyleProps &
@@ -48,6 +49,7 @@ export type CommonStyleProps = BackgroundStyleProps &
48
49
  * - common
49
50
  * - flex
50
51
  * - grid
52
+ * @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).
51
53
  */
52
54
  export type AllStyleProps = CommonStyleProps &
53
55
  // Omitting 'display' here to default to the standard csstype type Property.Display
@@ -6,6 +6,7 @@ import {
6
6
  CanvasTypeProperties,
7
7
  } from '@workday/canvas-kit-react/tokens';
8
8
 
9
+ /** @deprecated */
9
10
  export type SystemPropNames =
10
11
  | 'color'
11
12
  | 'depth'
@@ -19,14 +20,22 @@ export type SystemPropNames =
19
20
  * Canvas System Prop Values
20
21
  * ---
21
22
  * These system prop values are restricted to Canvas token values.
23
+ * @deprecated
22
24
  */
23
25
  export type CanvasSystemPropValues = {
26
+ /** @deprecated */
24
27
  color: CanvasColor;
28
+ /** @deprecated */
25
29
  depth: keyof CanvasDepth;
30
+ /** @deprecated */
26
31
  font: keyof CanvasTypeProperties['fontFamilies'];
32
+ /** @deprecated */
27
33
  fontSize: keyof CanvasTypeProperties['fontSizes'];
34
+ /** @deprecated */
28
35
  fontWeight: keyof CanvasTypeProperties['fontWeights'];
36
+ /** @deprecated */
29
37
  shape: CanvasBorderRadiusKeys;
38
+ /** @deprecated */
30
39
  space: CanvasSpaceKeys;
31
40
  };
32
41
 
@@ -34,13 +43,21 @@ export type CanvasSystemPropValues = {
34
43
  * System Prop Values
35
44
  * ---
36
45
  * These system prop values include Canvas System Prop Values and generic values.
46
+ * @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).
37
47
  */
38
48
  export type SystemPropValues = {
49
+ /** @deprecated */
39
50
  color: CanvasSystemPropValues['color'] | (string & {});
51
+ /** @deprecated */
40
52
  depth: CanvasSystemPropValues['depth'];
53
+ /** @deprecated */
41
54
  font: CanvasSystemPropValues['font'] | (string & {});
55
+ /** @deprecated */
42
56
  fontSize: CanvasSystemPropValues['fontSize'] | (string & {});
57
+ /** @deprecated */
43
58
  fontWeight: CanvasSystemPropValues['fontWeight'] | (string & {});
59
+ /** @deprecated */
44
60
  shape: CanvasSystemPropValues['shape'] | number | (string & {});
61
+ /** @deprecated */
45
62
  space: CanvasSystemPropValues['space'] | number | (string & {});
46
63
  };
@@ -3,42 +3,71 @@ import {Property} from 'csstype';
3
3
  import {buildStyleFns, buildStylePropFn, StyleFnConfig} from './buildStyleFns';
4
4
  import {SystemPropValues} from './systemProps';
5
5
 
6
- /** style props to for CSS font and text properties */
6
+ /** style props to for CSS font and text properties
7
+ * @deprecated ⚠️ Style props are deprecated. Please use our `cs` prop with `createStencil` or `createStyles` to apply styles. For more information view our [Styling docs](* @deprecated ⚠️ `boxStyleFn` is deprecated and will be removed in a future major version. Please reference our new way of styling components [here](https://workday.github.io/canvas-kit/?path=/docs/styling-getting-started-overview--docs).
8
+ */
7
9
  export type TextStyleProps = {
8
10
  /**
9
11
  * - sets [CSS font-family property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-family)
10
- * - system tokens: `font` */
12
+ * - system tokens: `font`
13
+ * @deprecated
14
+ */
11
15
  fontFamily?: Property.FontFamily | SystemPropValues['font'];
12
16
  /**
13
17
  * - sets [CSS font-size property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-size)
14
- * - system tokens: `fontSize` */
18
+ * - system tokens: `fontSize`
19
+ * @deprecated
20
+ */
15
21
  fontSize?: Property.FontSize | SystemPropValues['fontSize'];
16
- /** sets [CSS font-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style) */
22
+ /** sets [CSS font-style property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style)
23
+ * @deprecated
24
+ */
17
25
  fontStyle?: Property.FontStyle;
18
26
  /**
19
27
  * - sets [CSS font-weight property](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight)
20
- * - system tokens: `fontWeight` */
28
+ * - system tokens: `fontWeight`
29
+ * @deprecated
30
+ */
21
31
  fontWeight?: Property.FontWeight | SystemPropValues['fontWeight'];
22
- /** sets [CSS line-height property](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height) */
32
+ /** sets [CSS line-height property](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height)
33
+ * @deprecated
34
+ */
23
35
  lineHeight?: Property.LineHeight;
24
- /** sets [CSS letter-spacing property](https://developer.mozilla.org/en-US/docs/Web/CSS/letter-spacing) */
36
+ /** sets [CSS letter-spacing property](https://developer.mozilla.org/en-US/docs/Web/CSS/letter-spacing)
37
+ * @deprecated
38
+ */
25
39
  letterSpacing?: Property.LetterSpacing;
26
- /** sets [CSS text-align property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align) */
40
+ /** sets [CSS text-align property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align)
41
+ * @deprecated
42
+ */
27
43
  textAlign?: Property.TextAlign;
28
- /** sets [CSS text-decoration property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration) */
44
+ /** sets [CSS text-decoration property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration)
45
+ * @deprecated
46
+ */
29
47
  textDecoration?: Property.TextDecoration;
30
- /** sets [CSS text-overflow property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow) */
48
+ /** sets [CSS text-overflow property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow)
49
+ * @deprecated
50
+ */
31
51
  textOverflow?: Property.TextOverflow;
32
- /** sets [CSS text-transform property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform) */
52
+ /** sets [CSS text-transform property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform)
53
+ * @deprecated
54
+ */
33
55
  textTransform?: Property.TextTransform;
34
- /** sets [CSS text-shadow property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow) */
56
+ /** sets [CSS text-shadow property](https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow)
57
+ * @deprecated
58
+ */
35
59
  textShadow?: Property.TextShadow;
36
- /** sets [CSS white-space property](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space) */
60
+ /** sets [CSS white-space property](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space)
61
+ * @deprecated
62
+ */
37
63
  whiteSpace?: Property.WhiteSpace;
38
- /** sets [CSS word-break property](https://developer.mozilla.org/en-US/docs/Web/CSS/word-break) */
64
+ /** sets [CSS word-break property](https://developer.mozilla.org/en-US/docs/Web/CSS/word-break)
65
+ * @deprecated
66
+ */
39
67
  wordBreak?: Property.WordBreak;
40
68
  };
41
69
 
70
+ /** @deprecated */
42
71
  export const textStyleFnConfigs: StyleFnConfig[] = [
43
72
  {
44
73
  name: 'fontFamily',
@@ -107,6 +136,7 @@ export const textStyleFnConfigs: StyleFnConfig[] = [
107
136
  },
108
137
  ];
109
138
 
139
+ /** @deprecated */
110
140
  export const textStyleFns = buildStyleFns(textStyleFnConfigs);
111
141
  /**
112
142
  * A style prop function that takes component props and returns font and text styles.
@@ -118,5 +148,6 @@ export const textStyleFns = buildStyleFns(textStyleFnConfigs);
118
148
  * <Box textAlign="center" fontWeight="medium">Hello, alignment!</Box>
119
149
  * );
120
150
  * ```
151
+ * @deprecated
121
152
  */
122
153
  export const text = buildStylePropFn<TextStyleProps>(textStyleFns);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react",
3
- "version": "15.0.0-alpha.1283-next.0",
3
+ "version": "15.0.0-alpha.1285-next.0",
4
4
  "description": "The parent module that contains all Workday Canvas Kit React components",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -52,8 +52,8 @@
52
52
  "@popperjs/core": "^2.5.4",
53
53
  "@tanstack/react-virtual": "^3.13.9",
54
54
  "@workday/canvas-colors-web": "^2.0.0",
55
- "@workday/canvas-kit-popup-stack": "^15.0.0-alpha.1283-next.0",
56
- "@workday/canvas-kit-styling": "^15.0.0-alpha.1283-next.0",
55
+ "@workday/canvas-kit-popup-stack": "^15.0.0-alpha.1285-next.0",
56
+ "@workday/canvas-kit-styling": "^15.0.0-alpha.1285-next.0",
57
57
  "@workday/canvas-system-icons-web": "^3.0.36",
58
58
  "@workday/canvas-tokens-web": "^3.1.1",
59
59
  "@workday/design-assets-types": "^0.2.10",
@@ -68,5 +68,5 @@
68
68
  "@workday/canvas-accent-icons-web": "^3.0.0",
69
69
  "@workday/canvas-applet-icons-web": "^2.0.0"
70
70
  },
71
- "gitHead": "69e1e3b1fb6262a3db424e4b538fb6dc1afb20f2"
71
+ "gitHead": "ef232455072b3e17bf0e3bc3da24b954f92d5911"
72
72
  }
@@ -23,7 +23,7 @@ export const textInputStencil = createStencil({
23
23
  display: 'block',
24
24
  border: `${px2rem(1)} solid ${cssVar(system.color.border.input.default)}`,
25
25
  backgroundColor: system.color.bg.default,
26
- borderRadius: system.shape.x1Half,
26
+ borderRadius: cssVar('--cnvs-sys-shape-md', system.shape.x1Half),
27
27
  boxSizing: 'border-box',
28
28
  height: system.space.x10,
29
29
  transition: '0.2s box-shadow, 0.2s border-color',