@workday/canvas-kit-react 7.0.0-alpha.0-next.7 → 7.0.0-alpha.80-next.8

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 (352) hide show
  1. package/badge/README.md +2 -3
  2. package/banner/lib/BannerIcon.tsx +2 -2
  3. package/button/README.md +68 -1
  4. package/button/index.ts +1 -1
  5. package/button/lib/{parts/ButtonContainer.tsx → BaseButton.tsx} +123 -66
  6. package/button/lib/DeleteButton.tsx +7 -4
  7. package/button/lib/PrimaryButton.tsx +86 -109
  8. package/button/lib/SecondaryButton.tsx +41 -64
  9. package/button/lib/TertiaryButton.tsx +86 -53
  10. package/button/lib/ToolbarDropdownButton.tsx +12 -11
  11. package/button/lib/ToolbarIconButton.tsx +22 -17
  12. package/button/lib/parts/ButtonLabel.tsx +17 -2
  13. package/button/lib/parts/ButtonLabelIcon.tsx +30 -54
  14. package/button/lib/parts/index.tsx +0 -2
  15. package/button/lib/types.ts +2 -2
  16. package/card/lib/Card.tsx +1 -1
  17. package/common/lib/parts/_brand-assets.ts +5 -5
  18. package/common/lib/utils/StaticStates.tsx +6 -5
  19. package/dist/commonjs/banner/lib/BannerIcon.js +2 -2
  20. package/dist/commonjs/button/index.d.ts +1 -1
  21. package/dist/commonjs/button/index.d.ts.map +1 -1
  22. package/dist/commonjs/button/index.js +3 -3
  23. package/dist/commonjs/button/lib/BaseButton.d.ts +31 -0
  24. package/dist/commonjs/button/lib/BaseButton.d.ts.map +1 -0
  25. package/dist/commonjs/button/lib/BaseButton.js +198 -0
  26. package/dist/commonjs/button/lib/DeleteButton.d.ts.map +1 -1
  27. package/dist/commonjs/button/lib/DeleteButton.js +4 -3
  28. package/dist/commonjs/button/lib/PrimaryButton.d.ts +4 -76
  29. package/dist/commonjs/button/lib/PrimaryButton.d.ts.map +1 -1
  30. package/dist/commonjs/button/lib/PrimaryButton.js +15 -36
  31. package/dist/commonjs/button/lib/SecondaryButton.d.ts +0 -5
  32. package/dist/commonjs/button/lib/SecondaryButton.d.ts.map +1 -1
  33. package/dist/commonjs/button/lib/SecondaryButton.js +13 -36
  34. package/dist/commonjs/button/lib/TertiaryButton.d.ts +2 -2
  35. package/dist/commonjs/button/lib/TertiaryButton.d.ts.map +1 -1
  36. package/dist/commonjs/button/lib/TertiaryButton.js +66 -38
  37. package/dist/commonjs/button/lib/ToolbarDropdownButton.d.ts.map +1 -1
  38. package/dist/commonjs/button/lib/ToolbarDropdownButton.js +7 -7
  39. package/dist/commonjs/button/lib/ToolbarIconButton.d.ts +5 -2
  40. package/dist/commonjs/button/lib/ToolbarIconButton.d.ts.map +1 -1
  41. package/dist/commonjs/button/lib/ToolbarIconButton.js +5 -11
  42. package/dist/commonjs/button/lib/parts/ButtonLabel.d.ts +4 -4
  43. package/dist/commonjs/button/lib/parts/ButtonLabel.d.ts.map +1 -1
  44. package/dist/commonjs/button/lib/parts/ButtonLabel.js +35 -1
  45. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +4 -3
  46. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
  47. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.js +13 -62
  48. package/dist/commonjs/button/lib/parts/index.d.ts +0 -2
  49. package/dist/commonjs/button/lib/parts/index.d.ts.map +1 -1
  50. package/dist/commonjs/button/lib/parts/index.js +1 -5
  51. package/dist/commonjs/button/lib/types.d.ts +2 -2
  52. package/dist/commonjs/button/lib/types.d.ts.map +1 -1
  53. package/dist/commonjs/card/lib/Card.js +1 -1
  54. package/dist/commonjs/common/lib/parts/_brand-assets.d.ts.map +1 -1
  55. package/dist/commonjs/common/lib/parts/_brand-assets.js +5 -5
  56. package/dist/commonjs/common/lib/utils/StaticStates.d.ts.map +1 -1
  57. package/dist/commonjs/common/lib/utils/StaticStates.js +5 -2
  58. package/dist/commonjs/icon/lib/AccentIcon.d.ts +3 -5
  59. package/dist/commonjs/icon/lib/AccentIcon.d.ts.map +1 -1
  60. package/dist/commonjs/icon/lib/AccentIcon.js +8 -24
  61. package/dist/commonjs/icon/lib/AppletIcon.d.ts +5 -6
  62. package/dist/commonjs/icon/lib/AppletIcon.d.ts.map +1 -1
  63. package/dist/commonjs/icon/lib/AppletIcon.js +13 -27
  64. package/dist/commonjs/icon/lib/Graphic.d.ts +3 -5
  65. package/dist/commonjs/icon/lib/Graphic.d.ts.map +1 -1
  66. package/dist/commonjs/icon/lib/Graphic.js +8 -24
  67. package/dist/commonjs/icon/lib/Icon.d.ts +2 -5
  68. package/dist/commonjs/icon/lib/Icon.d.ts.map +1 -1
  69. package/dist/commonjs/icon/lib/Icon.js +10 -25
  70. package/dist/commonjs/icon/lib/Svg.d.ts +4 -6
  71. package/dist/commonjs/icon/lib/Svg.d.ts.map +1 -1
  72. package/dist/commonjs/icon/lib/Svg.js +11 -27
  73. package/dist/commonjs/icon/lib/SystemIcon.d.ts +5 -6
  74. package/dist/commonjs/icon/lib/SystemIcon.d.ts.map +1 -1
  75. package/dist/commonjs/icon/lib/SystemIcon.js +8 -24
  76. package/dist/commonjs/icon/lib/SystemIconCircle.d.ts +3 -6
  77. package/dist/commonjs/icon/lib/SystemIconCircle.d.ts.map +1 -1
  78. package/dist/commonjs/icon/lib/SystemIconCircle.js +7 -25
  79. package/dist/commonjs/layout/lib/Box.d.ts +18 -1
  80. package/dist/commonjs/layout/lib/Box.d.ts.map +1 -1
  81. package/dist/commonjs/layout/lib/Box.js +42 -2
  82. package/dist/commonjs/layout/lib/Flex.d.ts +1 -1
  83. package/dist/commonjs/layout/lib/Flex.js +1 -1
  84. package/dist/commonjs/modal/lib/ModalCard.js +1 -1
  85. package/dist/commonjs/modal/lib/ModalOverflowOverlay.js +1 -1
  86. package/dist/commonjs/pagination/lib/Pagination/Controls.d.ts +2 -2
  87. package/dist/commonjs/pagination/lib/Pagination/Controls.d.ts.map +1 -1
  88. package/dist/commonjs/pagination/lib/Pagination/Controls.js +4 -4
  89. package/dist/commonjs/pagination/lib/Pagination/PageButton.d.ts +1 -2
  90. package/dist/commonjs/pagination/lib/Pagination/PageButton.d.ts.map +1 -1
  91. package/dist/commonjs/pagination/lib/Pagination/PageButton.js +34 -9
  92. package/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
  93. package/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts.map +1 -1
  94. package/dist/commonjs/popup/lib/PopupCard.js +1 -1
  95. package/dist/commonjs/popup/lib/PopupCloseIcon.d.ts +2 -2
  96. package/dist/commonjs/popup/lib/PopupCloseIcon.d.ts.map +1 -1
  97. package/dist/commonjs/popup/lib/PopupCloseIcon.js +5 -6
  98. package/dist/commonjs/popup/lib/hooks/useDisableBodyScroll.d.ts.map +1 -1
  99. package/dist/commonjs/popup/lib/hooks/useDisableBodyScroll.js +4 -0
  100. package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +9 -7
  101. package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
  102. package/dist/commonjs/segmented-control/lib/SegmentedControl.js +21 -57
  103. package/dist/commonjs/segmented-control/lib/SegmentedControlButton.d.ts +8 -0
  104. package/dist/commonjs/segmented-control/lib/SegmentedControlButton.d.ts.map +1 -0
  105. package/dist/commonjs/segmented-control/lib/SegmentedControlButton.js +106 -0
  106. package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
  107. package/dist/commonjs/side-panel/lib/SidePanel.js +2 -2
  108. package/dist/commonjs/tabs/lib/Tabs.d.ts +2 -2
  109. package/dist/commonjs/tabs/lib/TabsItem.d.ts +1 -2
  110. package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
  111. package/dist/commonjs/tabs/lib/TabsList.js +1 -1
  112. package/dist/commonjs/tabs/lib/menu/Menu.d.ts +1 -1
  113. package/dist/commonjs/tabs/lib/menu/MenuItem.d.ts +1 -2
  114. package/dist/commonjs/tabs/lib/menu/MenuItem.d.ts.map +1 -1
  115. package/dist/commonjs/text-input/lib/InputIconContainer.d.ts +1 -1
  116. package/dist/commonjs/text-input/lib/InputIconContainer.d.ts.map +1 -1
  117. package/dist/commonjs/toast/lib/Toast.d.ts.map +1 -1
  118. package/dist/commonjs/toast/lib/Toast.js +1 -1
  119. package/dist/commonjs/tokens/lib/depth.d.ts +48 -17
  120. package/dist/commonjs/tokens/lib/depth.d.ts.map +1 -1
  121. package/dist/commonjs/tokens/lib/depth.js +14 -9
  122. package/dist/commonjs/tooltip/lib/Tooltip.d.ts +1 -1
  123. package/dist/commonjs/tooltip/lib/useTooltip.d.ts +1 -1
  124. package/dist/es6/banner/lib/BannerIcon.js +2 -2
  125. package/dist/es6/button/index.d.ts +1 -1
  126. package/dist/es6/button/index.d.ts.map +1 -1
  127. package/dist/es6/button/index.js +1 -1
  128. package/dist/es6/button/lib/BaseButton.d.ts +31 -0
  129. package/dist/es6/button/lib/BaseButton.d.ts.map +1 -0
  130. package/dist/es6/button/lib/BaseButton.js +174 -0
  131. package/dist/es6/button/lib/DeleteButton.d.ts.map +1 -1
  132. package/dist/es6/button/lib/DeleteButton.js +4 -3
  133. package/dist/es6/button/lib/PrimaryButton.d.ts +4 -76
  134. package/dist/es6/button/lib/PrimaryButton.d.ts.map +1 -1
  135. package/dist/es6/button/lib/PrimaryButton.js +15 -35
  136. package/dist/es6/button/lib/SecondaryButton.d.ts +0 -5
  137. package/dist/es6/button/lib/SecondaryButton.d.ts.map +1 -1
  138. package/dist/es6/button/lib/SecondaryButton.js +13 -36
  139. package/dist/es6/button/lib/TertiaryButton.d.ts +2 -2
  140. package/dist/es6/button/lib/TertiaryButton.d.ts.map +1 -1
  141. package/dist/es6/button/lib/TertiaryButton.js +68 -40
  142. package/dist/es6/button/lib/ToolbarDropdownButton.d.ts.map +1 -1
  143. package/dist/es6/button/lib/ToolbarDropdownButton.js +8 -8
  144. package/dist/es6/button/lib/ToolbarIconButton.d.ts +5 -2
  145. package/dist/es6/button/lib/ToolbarIconButton.d.ts.map +1 -1
  146. package/dist/es6/button/lib/ToolbarIconButton.js +7 -13
  147. package/dist/es6/button/lib/parts/ButtonLabel.d.ts +4 -4
  148. package/dist/es6/button/lib/parts/ButtonLabel.d.ts.map +1 -1
  149. package/dist/es6/button/lib/parts/ButtonLabel.js +33 -2
  150. package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +4 -3
  151. package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
  152. package/dist/es6/button/lib/parts/ButtonLabelIcon.js +13 -42
  153. package/dist/es6/button/lib/parts/index.d.ts +0 -2
  154. package/dist/es6/button/lib/parts/index.d.ts.map +1 -1
  155. package/dist/es6/button/lib/parts/index.js +0 -2
  156. package/dist/es6/button/lib/types.d.ts +2 -2
  157. package/dist/es6/button/lib/types.d.ts.map +1 -1
  158. package/dist/es6/card/lib/Card.js +1 -1
  159. package/dist/es6/common/lib/parts/_brand-assets.d.ts.map +1 -1
  160. package/dist/es6/common/lib/parts/_brand-assets.js +5 -5
  161. package/dist/es6/common/lib/utils/StaticStates.d.ts.map +1 -1
  162. package/dist/es6/common/lib/utils/StaticStates.js +5 -2
  163. package/dist/es6/icon/lib/AccentIcon.d.ts +3 -5
  164. package/dist/es6/icon/lib/AccentIcon.d.ts.map +1 -1
  165. package/dist/es6/icon/lib/AccentIcon.js +8 -24
  166. package/dist/es6/icon/lib/AppletIcon.d.ts +5 -6
  167. package/dist/es6/icon/lib/AppletIcon.d.ts.map +1 -1
  168. package/dist/es6/icon/lib/AppletIcon.js +11 -25
  169. package/dist/es6/icon/lib/Graphic.d.ts +3 -5
  170. package/dist/es6/icon/lib/Graphic.d.ts.map +1 -1
  171. package/dist/es6/icon/lib/Graphic.js +8 -24
  172. package/dist/es6/icon/lib/Icon.d.ts +2 -5
  173. package/dist/es6/icon/lib/Icon.d.ts.map +1 -1
  174. package/dist/es6/icon/lib/Icon.js +8 -24
  175. package/dist/es6/icon/lib/Svg.d.ts +4 -6
  176. package/dist/es6/icon/lib/Svg.d.ts.map +1 -1
  177. package/dist/es6/icon/lib/Svg.js +10 -27
  178. package/dist/es6/icon/lib/SystemIcon.d.ts +5 -6
  179. package/dist/es6/icon/lib/SystemIcon.d.ts.map +1 -1
  180. package/dist/es6/icon/lib/SystemIcon.js +8 -24
  181. package/dist/es6/icon/lib/SystemIconCircle.d.ts +3 -6
  182. package/dist/es6/icon/lib/SystemIconCircle.d.ts.map +1 -1
  183. package/dist/es6/icon/lib/SystemIconCircle.js +8 -26
  184. package/dist/es6/layout/lib/Box.d.ts +18 -1
  185. package/dist/es6/layout/lib/Box.d.ts.map +1 -1
  186. package/dist/es6/layout/lib/Box.js +40 -1
  187. package/dist/es6/layout/lib/Flex.d.ts +1 -1
  188. package/dist/es6/layout/lib/Flex.js +1 -1
  189. package/dist/es6/modal/lib/ModalCard.js +1 -1
  190. package/dist/es6/modal/lib/ModalOverflowOverlay.js +1 -1
  191. package/dist/es6/pagination/lib/Pagination/Controls.d.ts +2 -2
  192. package/dist/es6/pagination/lib/Pagination/Controls.d.ts.map +1 -1
  193. package/dist/es6/pagination/lib/Pagination/Controls.js +5 -5
  194. package/dist/es6/pagination/lib/Pagination/PageButton.d.ts +1 -2
  195. package/dist/es6/pagination/lib/Pagination/PageButton.d.ts.map +1 -1
  196. package/dist/es6/pagination/lib/Pagination/PageButton.js +35 -10
  197. package/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
  198. package/dist/es6/pagination/lib/Pagination/Pagination.d.ts.map +1 -1
  199. package/dist/es6/popup/lib/PopupCard.js +1 -1
  200. package/dist/es6/popup/lib/PopupCloseIcon.d.ts +2 -2
  201. package/dist/es6/popup/lib/PopupCloseIcon.d.ts.map +1 -1
  202. package/dist/es6/popup/lib/PopupCloseIcon.js +6 -7
  203. package/dist/es6/popup/lib/hooks/useDisableBodyScroll.d.ts.map +1 -1
  204. package/dist/es6/popup/lib/hooks/useDisableBodyScroll.js +4 -0
  205. package/dist/es6/segmented-control/lib/SegmentedControl.d.ts +9 -7
  206. package/dist/es6/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
  207. package/dist/es6/segmented-control/lib/SegmentedControl.js +20 -57
  208. package/dist/es6/segmented-control/lib/SegmentedControlButton.d.ts +8 -0
  209. package/dist/es6/segmented-control/lib/SegmentedControlButton.d.ts.map +1 -0
  210. package/dist/es6/segmented-control/lib/SegmentedControlButton.js +100 -0
  211. package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
  212. package/dist/es6/side-panel/lib/SidePanel.js +3 -3
  213. package/dist/es6/tabs/lib/Tabs.d.ts +2 -2
  214. package/dist/es6/tabs/lib/TabsItem.d.ts +1 -2
  215. package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
  216. package/dist/es6/tabs/lib/TabsList.js +1 -1
  217. package/dist/es6/tabs/lib/menu/Menu.d.ts +1 -1
  218. package/dist/es6/tabs/lib/menu/MenuItem.d.ts +1 -2
  219. package/dist/es6/tabs/lib/menu/MenuItem.d.ts.map +1 -1
  220. package/dist/es6/text-input/lib/InputIconContainer.d.ts +1 -1
  221. package/dist/es6/text-input/lib/InputIconContainer.d.ts.map +1 -1
  222. package/dist/es6/toast/lib/Toast.d.ts.map +1 -1
  223. package/dist/es6/toast/lib/Toast.js +1 -1
  224. package/dist/es6/tokens/lib/depth.d.ts +48 -17
  225. package/dist/es6/tokens/lib/depth.d.ts.map +1 -1
  226. package/dist/es6/tokens/lib/depth.js +14 -9
  227. package/dist/es6/tooltip/lib/Tooltip.d.ts +1 -1
  228. package/dist/es6/tooltip/lib/useTooltip.d.ts +1 -1
  229. package/icon/README.md +0 -30
  230. package/icon/lib/AccentIcon.tsx +17 -16
  231. package/icon/lib/AppletIcon.tsx +18 -12
  232. package/icon/lib/Graphic.tsx +15 -8
  233. package/icon/lib/Icon.tsx +10 -8
  234. package/icon/lib/Svg.tsx +12 -14
  235. package/icon/lib/SystemIcon.tsx +21 -12
  236. package/icon/lib/SystemIconCircle.tsx +17 -14
  237. package/layout/lib/Box.tsx +41 -1
  238. package/layout/lib/Flex.tsx +1 -1
  239. package/modal/lib/ModalCard.tsx +1 -1
  240. package/modal/lib/ModalOverflowOverlay.tsx +1 -1
  241. package/package.json +5 -5
  242. package/pagination/lib/Pagination/Controls.tsx +6 -10
  243. package/pagination/lib/Pagination/PageButton.tsx +38 -17
  244. package/pagination/lib/Pagination/Pagination.tsx +5 -5
  245. package/popup/lib/PopupCard.tsx +1 -1
  246. package/popup/lib/PopupCloseIcon.tsx +7 -8
  247. package/popup/lib/hooks/useDisableBodyScroll.ts +6 -0
  248. package/segmented-control/README.md +8 -9
  249. package/segmented-control/lib/SegmentedControl.tsx +39 -78
  250. package/segmented-control/lib/SegmentedControlButton.tsx +109 -0
  251. package/side-panel/README.md +3 -3
  252. package/side-panel/lib/SidePanel.tsx +4 -5
  253. package/tabs/lib/TabsList.tsx +1 -1
  254. package/text-input/lib/InputIconContainer.tsx +1 -1
  255. package/toast/lib/Toast.tsx +1 -0
  256. package/tokens/README.md +11 -8
  257. package/tokens/lib/depth.ts +60 -24
  258. package/tooltip/README.md +6 -5
  259. package/tooltip/lib/Tooltip.tsx +1 -1
  260. package/tooltip/lib/useTooltip.tsx +1 -1
  261. package/ts3.5/dist/commonjs/button/index.d.ts +1 -1
  262. package/ts3.5/dist/commonjs/button/lib/BaseButton.d.ts +31 -0
  263. package/ts3.5/dist/commonjs/button/lib/PrimaryButton.d.ts +4 -76
  264. package/ts3.5/dist/commonjs/button/lib/SecondaryButton.d.ts +0 -5
  265. package/ts3.5/dist/commonjs/button/lib/TertiaryButton.d.ts +2 -2
  266. package/ts3.5/dist/commonjs/button/lib/ToolbarIconButton.d.ts +5 -2
  267. package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabel.d.ts +4 -4
  268. package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +4 -3
  269. package/ts3.5/dist/commonjs/button/lib/parts/index.d.ts +0 -2
  270. package/ts3.5/dist/commonjs/button/lib/types.d.ts +2 -2
  271. package/ts3.5/dist/commonjs/icon/lib/AccentIcon.d.ts +3 -5
  272. package/ts3.5/dist/commonjs/icon/lib/AppletIcon.d.ts +5 -6
  273. package/ts3.5/dist/commonjs/icon/lib/Graphic.d.ts +3 -5
  274. package/ts3.5/dist/commonjs/icon/lib/Icon.d.ts +2 -5
  275. package/ts3.5/dist/commonjs/icon/lib/Svg.d.ts +4 -6
  276. package/ts3.5/dist/commonjs/icon/lib/SystemIcon.d.ts +5 -6
  277. package/ts3.5/dist/commonjs/icon/lib/SystemIconCircle.d.ts +3 -6
  278. package/ts3.5/dist/commonjs/layout/lib/Box.d.ts +18 -1
  279. package/ts3.5/dist/commonjs/layout/lib/Flex.d.ts +1 -1
  280. package/ts3.5/dist/commonjs/pagination/lib/Pagination/Controls.d.ts +2 -2
  281. package/ts3.5/dist/commonjs/pagination/lib/Pagination/PageButton.d.ts +1 -2
  282. package/ts3.5/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
  283. package/ts3.5/dist/commonjs/popup/lib/PopupCloseIcon.d.ts +2 -2
  284. package/ts3.5/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +9 -7
  285. package/ts3.5/dist/commonjs/segmented-control/lib/SegmentedControlButton.d.ts +8 -0
  286. package/ts3.5/dist/commonjs/tabs/lib/Tabs.d.ts +2 -2
  287. package/ts3.5/dist/commonjs/tabs/lib/TabsItem.d.ts +1 -2
  288. package/ts3.5/dist/commonjs/tabs/lib/menu/Menu.d.ts +1 -1
  289. package/ts3.5/dist/commonjs/tabs/lib/menu/MenuItem.d.ts +1 -2
  290. package/ts3.5/dist/commonjs/text-input/lib/InputIconContainer.d.ts +1 -1
  291. package/ts3.5/dist/commonjs/tokens/lib/depth.d.ts +48 -17
  292. package/ts3.5/dist/commonjs/tooltip/lib/Tooltip.d.ts +1 -1
  293. package/ts3.5/dist/commonjs/tooltip/lib/useTooltip.d.ts +1 -1
  294. package/ts3.5/dist/es6/button/index.d.ts +1 -1
  295. package/ts3.5/dist/es6/button/lib/BaseButton.d.ts +31 -0
  296. package/ts3.5/dist/es6/button/lib/PrimaryButton.d.ts +4 -76
  297. package/ts3.5/dist/es6/button/lib/SecondaryButton.d.ts +0 -5
  298. package/ts3.5/dist/es6/button/lib/TertiaryButton.d.ts +2 -2
  299. package/ts3.5/dist/es6/button/lib/ToolbarIconButton.d.ts +5 -2
  300. package/ts3.5/dist/es6/button/lib/parts/ButtonLabel.d.ts +4 -4
  301. package/ts3.5/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +4 -3
  302. package/ts3.5/dist/es6/button/lib/parts/index.d.ts +0 -2
  303. package/ts3.5/dist/es6/button/lib/types.d.ts +2 -2
  304. package/ts3.5/dist/es6/icon/lib/AccentIcon.d.ts +3 -5
  305. package/ts3.5/dist/es6/icon/lib/AppletIcon.d.ts +5 -6
  306. package/ts3.5/dist/es6/icon/lib/Graphic.d.ts +3 -5
  307. package/ts3.5/dist/es6/icon/lib/Icon.d.ts +2 -5
  308. package/ts3.5/dist/es6/icon/lib/Svg.d.ts +4 -6
  309. package/ts3.5/dist/es6/icon/lib/SystemIcon.d.ts +5 -6
  310. package/ts3.5/dist/es6/icon/lib/SystemIconCircle.d.ts +3 -6
  311. package/ts3.5/dist/es6/layout/lib/Box.d.ts +18 -1
  312. package/ts3.5/dist/es6/layout/lib/Flex.d.ts +1 -1
  313. package/ts3.5/dist/es6/pagination/lib/Pagination/Controls.d.ts +2 -2
  314. package/ts3.5/dist/es6/pagination/lib/Pagination/PageButton.d.ts +1 -2
  315. package/ts3.5/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
  316. package/ts3.5/dist/es6/popup/lib/PopupCloseIcon.d.ts +2 -2
  317. package/ts3.5/dist/es6/segmented-control/lib/SegmentedControl.d.ts +9 -7
  318. package/ts3.5/dist/es6/segmented-control/lib/SegmentedControlButton.d.ts +8 -0
  319. package/ts3.5/dist/es6/tabs/lib/Tabs.d.ts +2 -2
  320. package/ts3.5/dist/es6/tabs/lib/TabsItem.d.ts +1 -2
  321. package/ts3.5/dist/es6/tabs/lib/menu/Menu.d.ts +1 -1
  322. package/ts3.5/dist/es6/tabs/lib/menu/MenuItem.d.ts +1 -2
  323. package/ts3.5/dist/es6/text-input/lib/InputIconContainer.d.ts +1 -1
  324. package/ts3.5/dist/es6/tokens/lib/depth.d.ts +48 -17
  325. package/ts3.5/dist/es6/tooltip/lib/Tooltip.d.ts +1 -1
  326. package/ts3.5/dist/es6/tooltip/lib/useTooltip.d.ts +1 -1
  327. package/button/lib/IconButton.tsx +0 -279
  328. package/button/lib/parts/ButtonLabelData.tsx +0 -16
  329. package/dist/commonjs/button/lib/IconButton.d.ts +0 -44
  330. package/dist/commonjs/button/lib/IconButton.d.ts.map +0 -1
  331. package/dist/commonjs/button/lib/IconButton.js +0 -219
  332. package/dist/commonjs/button/lib/parts/ButtonContainer.d.ts +0 -33
  333. package/dist/commonjs/button/lib/parts/ButtonContainer.d.ts.map +0 -1
  334. package/dist/commonjs/button/lib/parts/ButtonContainer.js +0 -126
  335. package/dist/commonjs/button/lib/parts/ButtonLabelData.d.ts +0 -3
  336. package/dist/commonjs/button/lib/parts/ButtonLabelData.d.ts.map +0 -1
  337. package/dist/commonjs/button/lib/parts/ButtonLabelData.js +0 -45
  338. package/dist/es6/button/lib/IconButton.d.ts +0 -44
  339. package/dist/es6/button/lib/IconButton.d.ts.map +0 -1
  340. package/dist/es6/button/lib/IconButton.js +0 -197
  341. package/dist/es6/button/lib/parts/ButtonContainer.d.ts +0 -33
  342. package/dist/es6/button/lib/parts/ButtonContainer.d.ts.map +0 -1
  343. package/dist/es6/button/lib/parts/ButtonContainer.js +0 -120
  344. package/dist/es6/button/lib/parts/ButtonLabelData.d.ts +0 -3
  345. package/dist/es6/button/lib/parts/ButtonLabelData.d.ts.map +0 -1
  346. package/dist/es6/button/lib/parts/ButtonLabelData.js +0 -22
  347. package/ts3.5/dist/commonjs/button/lib/IconButton.d.ts +0 -44
  348. package/ts3.5/dist/commonjs/button/lib/parts/ButtonContainer.d.ts +0 -33
  349. package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabelData.d.ts +0 -3
  350. package/ts3.5/dist/es6/button/lib/IconButton.d.ts +0 -44
  351. package/ts3.5/dist/es6/button/lib/parts/ButtonContainer.d.ts +0 -33
  352. package/ts3.5/dist/es6/button/lib/parts/ButtonLabelData.d.ts +0 -3
@@ -8,7 +8,7 @@ export interface ButtonStateColors {
8
8
  icon?: string;
9
9
  iconFill?: boolean;
10
10
  label?: string;
11
- labelData?: string;
11
+ opacity?: string;
12
12
  }
13
13
  export interface ButtonColors {
14
14
  default: ButtonStateColors;
@@ -27,5 +27,5 @@ export interface ButtonColors {
27
27
  */
28
28
  export declare type ButtonSizes = 'extraSmall' | 'small' | 'medium' | 'large';
29
29
  export declare type TertiaryButtonSizes = 'extraSmall' | 'small' | 'medium';
30
- export declare type IconPositions = 'left' | 'right';
30
+ export declare type IconPositions = 'start' | 'end';
31
31
  //# sourceMappingURL=types.d.ts.map
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { CanvasAccentIcon } from '@workday/design-assets-types';
3
2
  import { CSSObject } from '@emotion/styled';
4
3
  import { IconProps } from './Icon';
@@ -14,7 +13,7 @@ export interface AccentIconStyles {
14
13
  */
15
14
  transparent?: boolean;
16
15
  }
17
- export interface AccentIconProps extends AccentIconStyles, Omit<IconProps, 'src' | 'type'> {
16
+ export interface AccentIconProps extends AccentIconStyles, Omit<IconProps, 'src' | 'type' | 'color'> {
18
17
  /**
19
18
  * The icon to display from `@workday/canvas-accent-icons-web`.
20
19
  */
@@ -26,7 +25,6 @@ export interface AccentIconProps extends AccentIconStyles, Omit<IconProps, 'src'
26
25
  size?: number;
27
26
  }
28
27
  export declare const accentIconStyles: ({ color, transparent, }: AccentIconStyles) => CSSObject;
29
- export default class AccentIcon extends React.Component<AccentIconProps> {
30
- render(): JSX.Element;
31
- }
28
+ declare const AccentIcon: import("../../common").ElementComponent<"span", AccentIconProps>;
29
+ export default AccentIcon;
32
30
  //# sourceMappingURL=AccentIcon.d.ts.map
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { BrandingColor } from '@workday/canvas-kit-react/tokens';
3
2
  import { CanvasAppletIcon } from '@workday/design-assets-types';
4
3
  import { CSSObject } from '@emotion/styled';
@@ -11,7 +10,7 @@ export interface AppletIconStyles {
11
10
  color?: BrandingColor;
12
11
  }
13
12
  export declare const appletIconStyles: ({ color, }: AppletIconStyles) => CSSObject;
14
- export interface AppletIconProps extends AppletIconStyles, Pick<IconProps, 'iconRef' | 'shouldMirror'> {
13
+ export interface AppletIconProps extends AppletIconStyles, Pick<IconProps, 'shouldMirror'> {
15
14
  /**
16
15
  * The icon to display from `@workday/canvas-applet-icons-web`.
17
16
  */
@@ -22,8 +21,8 @@ export interface AppletIconProps extends AppletIconStyles, Pick<IconProps, 'icon
22
21
  */
23
22
  size?: number;
24
23
  }
25
- export default class AppletIcon extends React.Component<AppletIconProps> {
26
- static Colors: typeof BrandingColor;
27
- render(): JSX.Element;
28
- }
24
+ export declare const AppletIcon: import("../../common").ElementComponent<"span", AppletIconProps> & {
25
+ Colors: typeof BrandingColor;
26
+ };
27
+ export default AppletIcon;
29
28
  //# sourceMappingURL=AppletIcon.d.ts.map
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { CanvasGraphic } from '@workday/design-assets-types';
3
2
  import { CSSObject } from '@emotion/styled';
4
3
  import { SvgProps } from './Svg';
@@ -19,14 +18,13 @@ export interface GraphicStyles {
19
18
  */
20
19
  grow?: boolean;
21
20
  }
22
- export interface GraphicProps extends GraphicStyles, Pick<SvgProps, 'iconRef' | 'shouldMirror'> {
21
+ export interface GraphicProps extends GraphicStyles, Pick<SvgProps, 'shouldMirror'> {
23
22
  /**
24
23
  * The graphic to display from `@workday/canvas-graphics-web`.
25
24
  */
26
25
  src: CanvasGraphic;
27
26
  }
28
27
  export declare const graphicStyles: ({ width, height, grow }: GraphicStyles) => CSSObject;
29
- export default class Graphic extends React.Component<GraphicProps> {
30
- render(): JSX.Element;
31
- }
28
+ declare const Graphic: import("../../common").ElementComponent<"span", GraphicProps>;
29
+ export default Graphic;
32
30
  //# sourceMappingURL=Graphic.d.ts.map
@@ -1,13 +1,10 @@
1
- import * as React from 'react';
2
1
  import { CanvasIcon, CanvasIconTypes } from '@workday/design-assets-types';
3
2
  import { SvgProps } from './Svg';
4
3
  export interface IconProps extends SvgProps {
5
4
  src: CanvasIcon;
6
5
  size?: number;
7
6
  type: CanvasIconTypes.Accent | CanvasIconTypes.Applet | CanvasIconTypes.System;
8
- iconRef?: React.Ref<HTMLSpanElement>;
9
- }
10
- export default class Icon extends React.Component<IconProps> {
11
- render(): JSX.Element;
12
7
  }
8
+ export declare const Icon: import("../../common").ElementComponent<"span", IconProps>;
9
+ export default Icon;
13
10
  //# sourceMappingURL=Icon.d.ts.map
@@ -1,18 +1,16 @@
1
1
  import { CSSObject } from '@emotion/styled';
2
- import * as React from 'react';
3
2
  import { CanvasIcon, CanvasIconTypes } from '@workday/design-assets-types';
4
- export interface SvgProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ import { BoxProps } from '@workday/canvas-kit-react/layout';
4
+ export interface SvgProps extends BoxProps {
5
5
  src: CanvasIcon;
6
6
  styles?: CSSObject;
7
7
  type: CanvasIconTypes;
8
- iconRef?: React.Ref<HTMLSpanElement>;
9
8
  /**
10
9
  * If set to `true`, transform the SVG's x-axis to mirror the graphic
11
10
  * @default false
12
11
  */
13
12
  shouldMirror?: boolean;
14
13
  }
15
- export default class Svg extends React.Component<SvgProps> {
16
- render(): JSX.Element | null;
17
- }
14
+ export declare const Svg: import("../../common").ElementComponent<"span", SvgProps>;
15
+ export default Svg;
18
16
  //# sourceMappingURL=Svg.d.ts.map
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { CanvasSystemIcon } from '@workday/design-assets-types';
3
2
  import { CSSObject } from '@emotion/styled';
4
3
  import { IconProps } from './Icon';
@@ -40,7 +39,7 @@ export interface SystemIconStyles {
40
39
  */
41
40
  fillHover?: string;
42
41
  }
43
- export interface SystemIconProps extends SystemIconStyles, Omit<IconProps, 'src' | 'type'> {
42
+ export interface SystemIconProps extends SystemIconStyles, Omit<IconProps, 'src' | 'color' | 'type' | 'background'> {
44
43
  /**
45
44
  * The icon to display from `@workday/canvas-system-icons-web`.
46
45
  */
@@ -48,10 +47,10 @@ export interface SystemIconProps extends SystemIconStyles, Omit<IconProps, 'src'
48
47
  /**
49
48
  * The size of the SystemIcon in `px`.
50
49
  */
51
- size?: number;
50
+ size?: number | undefined;
51
+ className?: string;
52
52
  }
53
53
  export declare const systemIconStyles: ({ accent, accentHover, background, backgroundHover, color, colorHover, fill, fillHover, }: SystemIconStyles) => CSSObject;
54
- export default class SystemIcon extends React.Component<SystemIconProps> {
55
- render(): JSX.Element;
56
- }
54
+ declare const SystemIcon: import("../../common").ElementComponent<"span", SystemIconProps>;
55
+ export default SystemIcon;
57
56
  //# sourceMappingURL=SystemIcon.d.ts.map
@@ -1,4 +1,3 @@
1
- import * as React from 'react';
2
1
  import { SystemIconProps } from './SystemIcon';
3
2
  import { CanvasSystemIcon } from '@workday/design-assets-types';
4
3
  export declare enum SystemIconCircleSize {
@@ -9,7 +8,7 @@ export declare enum SystemIconCircleSize {
9
8
  xl = 64,
10
9
  xxl = 120
11
10
  }
12
- export interface SystemIconCircleProps extends Pick<SystemIconProps, 'iconRef' | 'shouldMirror'> {
11
+ export interface SystemIconCircleProps extends Pick<SystemIconProps, 'shouldMirror'> {
13
12
  /**
14
13
  * The background color of the SystemIconCircle from `@workday/canvas-colors-web`.
15
14
  * @default colors.soap300
@@ -25,8 +24,6 @@ export interface SystemIconCircleProps extends Pick<SystemIconProps, 'iconRef' |
25
24
  */
26
25
  size?: SystemIconCircleSize | number;
27
26
  }
28
- export default class SystemIconCircle extends React.Component<SystemIconCircleProps> {
29
- static Size: typeof SystemIconCircleSize;
30
- render(): JSX.Element;
31
- }
27
+ declare const SystemIconCircle: import("../../common").ElementComponent<"span", SystemIconCircleProps>;
28
+ export default SystemIconCircle;
32
29
  //# sourceMappingURL=SystemIconCircle.d.ts.map
@@ -10,6 +10,23 @@ import { SpaceStyleProps } from './utils/space';
10
10
  export declare type BoxProps = BorderStyleProps & ColorStyleProps & DepthStyleProps & FlexItemStyleProps & LayoutStyleProps & OtherStyleProps & PositionStyleProps & SpaceStyleProps & {
11
11
  children?: React.ReactNode;
12
12
  };
13
+ /**
14
+ * A function that allows us to call Box styles on an element and reduce the amount of elements in the React Dom tree.
15
+ * Instead of using the `as` in a styled function, you can just call this instead to pass those props to the styled element
16
+ * @example
17
+ * import { boxStyleFn } from '@workday/canvas-kit-react/layout';
18
+ * const StyledHeader = styled('h1')(
19
+ * boxStyleFn,
20
+ * {
21
+ * fontWeight: 400,
22
+ * }
23
+ * )
24
+ *
25
+ * ....
26
+ *
27
+ * <StyledHeader color='red'>Hello World</StyledHeader>
28
+ */
29
+ export declare const boxStyleFn: <P extends BoxProps>(props: P) => {};
13
30
  /**
14
31
  * `Box` is a primitive component that provides a common, ergonomic API around Canvas design tokens.
15
32
  * It is highly flexible, and its primary purpose is to build other components.
@@ -23,7 +40,7 @@ export declare type BoxProps = BorderStyleProps & ColorStyleProps & DepthStylePr
23
40
  *
24
41
  * // `Card`'s default values are set using `BoxProps`
25
42
  * const Card = (props: CardProps) => (
26
- * <Box depth={2} padding="m" borderRadius="l" {...props}>Hello, Card!</Box>
43
+ * <Box depth={1} padding="m" borderRadius="l" {...props}>Hello, Card!</Box>
27
44
  * );
28
45
  *
29
46
  */
@@ -15,7 +15,7 @@ export declare type FlexProps = BoxProps & FlexStyleProps;
15
15
  *
16
16
  * // `Card`'s default values are set using `FlexProps`
17
17
  * const Card = (props: CardProps) => (
18
- * <Flex flexDirection="column" alignItems="flex-start" depth={2} space="m" {...props}>
18
+ * <Flex flexDirection="column" alignItems="flex-start" depth={1} space="m" {...props}>
19
19
  * <h1>Hello, Card!</h1>
20
20
  * <p>This card uses flexbox to set its layout.</p>
21
21
  * </Flex>
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { IconButtonProps } from '@workday/canvas-kit-react/button';
2
+ import { TertiaryButtonProps } from '@workday/canvas-kit-react/button';
3
3
  import { PaginationModel } from './types';
4
- export declare type ControlButtonProps = IconButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement> & {
4
+ export declare type ControlButtonProps = TertiaryButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement> & {
5
5
  model: PaginationModel;
6
6
  };
7
7
  export declare type ControlsProps = React.HTMLAttributes<HTMLDivElement>;
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
- import { IconButtonProps } from '@workday/canvas-kit-react/button';
3
2
  import { PaginationModel } from './types';
4
- export declare type PageButtonProps = IconButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement> & {
3
+ export declare type PageButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
5
4
  model: PaginationModel;
6
5
  pageNumber: number;
7
6
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { IconButtonProps } from '@workday/canvas-kit-react/button';
2
+ import { TertiaryButtonProps } from '@workday/canvas-kit-react/button';
3
3
  import { PaginationModel } from './types';
4
4
  import { PaginationNavProps } from './Nav';
5
5
  import { ControlsProps } from './Controls';
@@ -30,10 +30,10 @@ export declare type PaginationProps = PaginationConfigurationProps | PaginationM
30
30
  export declare const Pagination: {
31
31
  (props: PaginationProps): JSX.Element;
32
32
  Controls(props: ControlsProps): JSX.Element;
33
- JumpToFirstButton(props: IconButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
34
- StepToPreviousButton(props: IconButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
35
- StepToNextButton(props: IconButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
36
- JumpToLastButton(props: IconButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
33
+ JumpToFirstButton(props: TertiaryButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
34
+ StepToPreviousButton(props: TertiaryButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
35
+ StepToNextButton(props: TertiaryButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
36
+ JumpToLastButton(props: TertiaryButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
37
37
  PageList(props: Pick<PageListProps, Exclude<keyof PageListProps, 'model'>>): JSX.Element;
38
38
  PageListItem(props: PageListItemProps): JSX.Element;
39
39
  PageButton({ "aria-label": ariaLabel, ...elemProps }: Pick<PageButtonProps, Exclude<keyof PageButtonProps, 'model'>>): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { ExtractProps } from '@workday/canvas-kit-react/common';
2
- import { IconButton } from '@workday/canvas-kit-react/button';
2
+ import { TertiaryButton } from '@workday/canvas-kit-react/button';
3
3
  import { PopupModel } from './hooks';
4
- export interface PopupCloseIconProps extends ExtractProps<typeof IconButton, never> {
4
+ export interface PopupCloseIconProps extends ExtractProps<typeof TertiaryButton, never> {
5
5
  /**
6
6
  * Optionally pass a model directly to this component. Default is to implicitly use the same
7
7
  * model as the container component which uses React context. Only use this for advanced use-cases
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { IconButtonProps } from '@workday/canvas-kit-react/button';
2
+ import { SegmentedControlButtonProps } from './SegmentedControlButton';
3
3
  export interface SegmentedControlProps {
4
4
  /**
5
- * The IconButton children of the SegmentedControl (must be at least two).
5
+ * The Button children of the SegmentedControl (must be at least two).
6
6
  * TODO: Add support for text children
7
7
  */
8
- children: React.ReactElement<IconButtonProps>[];
8
+ children: React.ReactElement<SegmentedControlButtonProps>[];
9
9
  /**
10
- * The value or index of the IconButton that the SegmentedControl should be toggled on to.
11
- * If a string is provided, the IconButton with the corresponding value will be selected.
12
- * If a number is provided, the IconButton with the corresponding index will be selected.
10
+ * The value or index of the Button that the SegmentedControl should be toggled on to.
11
+ * If a string is provided, the Button with the corresponding value will be selected.
12
+ * If a number is provided, the Button with the corresponding index will be selected.
13
13
  * @default 0
14
14
  */
15
15
  value?: string | number;
@@ -20,6 +20,8 @@ export interface SegmentedControlProps {
20
20
  */
21
21
  onChange?: (value: string | number) => void;
22
22
  }
23
- declare const SegmentedControl: ({ value, children, onChange, ...elemProps }: SegmentedControlProps) => JSX.Element;
23
+ export declare const SegmentedControl: import("../../common").ElementComponent<"div", SegmentedControlProps> & {
24
+ Button: import("../../common").ElementComponent<"button", SegmentedControlButtonProps>;
25
+ };
24
26
  export default SegmentedControl;
25
27
  //# sourceMappingURL=SegmentedControl.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { CanvasSystemIcon } from '@workday/design-assets-types';
2
+ export interface SegmentedControlButtonProps {
3
+ toggled?: boolean;
4
+ icon: CanvasSystemIcon;
5
+ value?: string | number;
6
+ }
7
+ export declare const SegmentedControlButton: import("../../common").ElementComponent<"button", SegmentedControlButtonProps>;
8
+ //# sourceMappingURL=SegmentedControlButton.d.ts.map
@@ -16,7 +16,7 @@ export interface TabsProps<T = any> extends TabsModelConfig<T> {
16
16
  export declare const Tabs: import("../../common").Component<TabsProps<any>> & {
17
17
  List: import("../../common").ElementComponent<"div", import("./TabsList").TabListProps<unknown>>;
18
18
  Item: import("../../common").ElementComponent<"button", import("./TabsItem").TabsItemProps> & {
19
- Icon: typeof import("../..").SystemIcon;
19
+ Icon: import("../../common").ElementComponent<"span", import("../..").SystemIconProps>;
20
20
  Text: import("../../common").ElementComponent<"span", {}>;
21
21
  };
22
22
  Panel: import("../../common").ElementComponent<"div", import("./TabsPanel").TabPanelProps<unknown>>;
@@ -39,7 +39,7 @@ export declare const Tabs: import("../../common").Component<TabsProps<any>> & {
39
39
  Card: import("../../common").ElementComponent<"div", import("./menu/MenuCard").MenuCardProps<unknown>>;
40
40
  List: import("../../common").ElementComponent<"div", import("./menu/MenuList").MenuListProps<unknown>>;
41
41
  Item: import("../../common").ElementComponent<"button", import("./menu/MenuItem").MenuItemProps<unknown>> & {
42
- Icon: typeof import("../..").SystemIcon;
42
+ Icon: import("../../common").ElementComponent<"span", import("../..").SystemIconProps>;
43
43
  Text: import("@emotion/styled").StyledComponent<{
44
44
  theme?: import("@emotion/react").Theme | undefined;
45
45
  as?: "symbol" | "object" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "clipPath" | "filter" | "mask" | "marker" | "big" | "link" | "sup" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { StyledType, ExtractProps } from '@workday/canvas-kit-react/common';
3
3
  import { Box, StackProps } from '@workday/canvas-kit-react/layout';
4
- import { SystemIcon } from '@workday/canvas-kit-react/icon';
5
4
  import { TabsModel } from './useTabsModel';
6
5
  export interface TabsItemProps extends ExtractProps<typeof Box, never>, Partial<Pick<StackProps, 'spacing'>> {
7
6
  /**
@@ -79,7 +78,7 @@ export declare const StyledTabItem: import("@emotion/styled").StyledComponent<im
79
78
  hasIcon?: boolean | undefined;
80
79
  } & Pick<TabsItemProps, "spacing">, {}, {}>;
81
80
  export declare const TabsItem: import("../../common").ElementComponent<"button", TabsItemProps> & {
82
- Icon: typeof SystemIcon;
81
+ Icon: import("../../common").ElementComponent<"span", import("../../icon").SystemIconProps>;
83
82
  Text: import("../../common").ElementComponent<"span", {}>;
84
83
  };
85
84
  export declare const useTabsItem: <P extends {}, R>(model: import("./list").ListModel<unknown>, elemProps?: P | undefined, ref?: ((instance: R | null) => void) | React.RefObject<R> | null | undefined) => {} & P & (R extends HTMLOrSVGElement ? {
@@ -65,7 +65,7 @@ export declare const Menu: import("../../../common").Component<MenuProps<any>> &
65
65
  * HTML. If more complex HTML is provided, consider
66
66
  */
67
67
  Item: import("../../../common").ElementComponent<"button", import("./MenuItem").MenuItemProps<unknown>> & {
68
- Icon: typeof import("../../..").SystemIcon;
68
+ Icon: import("../../../common").ElementComponent<"span", import("../../..").SystemIconProps>;
69
69
  Text: import("@emotion/styled").StyledComponent<{
70
70
  theme?: import("@emotion/react").Theme | undefined;
71
71
  as?: "symbol" | "object" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "clipPath" | "filter" | "mask" | "marker" | "big" | "link" | "sup" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import { SystemIcon } from '@workday/canvas-kit-react/icon';
3
2
  import { MenuModel } from './useMenuModel';
4
3
  export interface MenuItemProps<T = unknown> {
5
4
  /**
@@ -38,7 +37,7 @@ export interface MenuItemProps<T = unknown> {
38
37
  hasIcon?: boolean;
39
38
  }
40
39
  export declare const MenuItem: import("../../../common").ElementComponent<"button", MenuItemProps<unknown>> & {
41
- Icon: typeof SystemIcon;
40
+ Icon: import("../../../common").ElementComponent<"span", import("../../../icon").SystemIconProps>;
42
41
  Text: import("@emotion/styled").StyledComponent<{
43
42
  theme?: import("@emotion/react").Theme | undefined;
44
43
  as?: "symbol" | "object" | "button" | "meter" | "textarea" | "style" | "progress" | "text" | "ruby" | "table" | "small" | "sub" | "circle" | "embed" | "pre" | "caption" | "menu" | "menuitem" | "clipPath" | "filter" | "mask" | "marker" | "big" | "link" | "sup" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "main" | "map" | "mark" | "meta" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "q" | "rp" | "rt" | "s" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "template" | "tbody" | "td" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | React.ComponentClass<any, any> | React.FunctionComponent<any> | undefined;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { GrowthBehavior } from '@workday/canvas-kit-react/common';
3
3
  import { SystemIcon } from '@workday/canvas-kit-react/icon';
4
4
  export interface InputIconContainerProps extends GrowthBehavior {
5
- icon?: React.ReactElement<SystemIcon>;
5
+ icon?: React.ReactElement<typeof SystemIcon>;
6
6
  }
7
7
  declare const InputIconContainer: React.FunctionComponent<InputIconContainerProps>;
8
8
  export default InputIconContainer;
@@ -1,23 +1,23 @@
1
1
  export declare type CanvasDepth = {
2
2
  /**
3
- * ### Depth Inset
4
- * Used for inset containers
3
+ * ### Depth None
4
+ * Used for removing existing depth
5
5
  *
6
6
  * @example
7
7
  * ```ts
8
8
  * import { depth } from '@workday/canvas-kit-react/tokens';
9
9
  *
10
- * const insetCardStyles = {
11
- * ...depth.inset,
10
+ * const noDepthCardStyles = {
11
+ * ...depth.none,
12
12
  * };
13
13
  * ```
14
14
  */
15
- inset: {
16
- boxShadow: 'inset 0px 0px 8px 0 rgba(82, 97, 115, 0.09)';
15
+ none: {
16
+ boxShadow: 'none';
17
17
  };
18
18
  /**
19
19
  * ### Depth 1
20
- * Used for minimal offset
20
+ * Used for minimal offset and Cards
21
21
  *
22
22
  * @example
23
23
  * ```ts
@@ -29,11 +29,11 @@ export declare type CanvasDepth = {
29
29
  * ```
30
30
  */
31
31
  1: {
32
- boxShadow: '0px 2px 4px 0 rgba(0, 0, 0, 0.08)';
32
+ boxShadow: '0px 1px 4px rgba(0, 0, 0, 0.2), 0px 2px 8px rgba(0, 0, 0, 0.16)';
33
33
  };
34
34
  /**
35
35
  * ### Depth 2
36
- * Used for Cards, Popups, and Menus — our most common depth
36
+ * Used for Top navigation, Bottom navigation
37
37
  *
38
38
  * @example
39
39
  * ```ts
@@ -45,11 +45,11 @@ export declare type CanvasDepth = {
45
45
  * ```
46
46
  */
47
47
  2: {
48
- boxShadow: '0px 4px 8px 0 rgba(0, 0, 0, 0.1)';
48
+ boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.2), 0px 4px 16px rgba(0, 0, 0, 0.16)';
49
49
  };
50
50
  /**
51
51
  * ### Depth 3
52
- * Used for interactive Cards on hover
52
+ * Used for FABs, Menus
53
53
  *
54
54
  * @example
55
55
  * ```ts
@@ -61,11 +61,11 @@ export declare type CanvasDepth = {
61
61
  * ```
62
62
  */
63
63
  3: {
64
- boxShadow: '0px 8px 16px 0 rgba(0, 0, 0, 0.12)';
64
+ boxShadow: '0px 3px 12px rgba(0, 0, 0, 0.2), 0px 6px 24px rgba(0, 0, 0, 0.16)';
65
65
  };
66
66
  /**
67
67
  * ### Depth 4
68
- * Used for Cards on white backgrounds — adds border styles for more contrast
68
+ *
69
69
  *
70
70
  * @example
71
71
  * ```ts
@@ -77,8 +77,39 @@ export declare type CanvasDepth = {
77
77
  * ```
78
78
  */
79
79
  4: {
80
- border: '1px solid rgba(218, 226, 230, 1)';
81
- boxShadow: '0px 8px 16px 0 rgba(0, 0, 0, 0.12)';
80
+ boxShadow: '0px 4px 16px rgba(0, 0, 0, 0.2), 0px 8px 32px rgba(0, 0, 0, 0.16)';
81
+ };
82
+ /**
83
+ * ### Depth 5
84
+ * Used for Popups, Toast Messages, Dialogs, Side Panels without opacity overlay behavior
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * import { depth } from '@workday/canvas-kit-react/tokens';
89
+ *
90
+ * const cardStyles = {
91
+ * ...depth[5],
92
+ * };
93
+ * ```
94
+ */
95
+ 5: {
96
+ boxShadow: '0px 5px 20px rgba(0, 0, 0, 0.2), 0px 10px 40px rgba(0, 0, 0, 0.16)';
97
+ };
98
+ /**
99
+ * ### Depth 6
100
+ * Used for components with opacity overlay behavior such as Modal or Side Panels
101
+ *
102
+ * @example
103
+ * ```ts
104
+ * import { depth } from '@workday/canvas-kit-react/tokens';
105
+ *
106
+ * const cardStyles = {
107
+ * ...depth[6],
108
+ * };
109
+ * ```
110
+ */
111
+ 6: {
112
+ boxShadow: '0px 6px 24px rgba(0, 0, 0, 0.2), 0px 12px 48px rgba(0, 0, 0, 0.16)';
82
113
  };
83
114
  };
84
115
  declare type ValueOf<T> = T[keyof T];
@@ -88,8 +119,8 @@ export declare type CanvasDepthValues = ValueOf<CanvasDepth>;
88
119
  *
89
120
  * Depth is the relative distance between surfaces in the z-axis.
90
121
  * It provides delineation, focus, and priority with shadows and layering.
91
- * There are five depth levels, `inset`, `1`, `2`, `3`, and `4`.
92
- * Most levels only apply box-shadow styles, but `depth[4]` also applies border styles.
122
+ * There are seven depth levels, `none`, `1`, `2`, `3`, `4`, `5` and `6`.
123
+ * `none` is a special value to remove depth styles. All other levels only apply box-shadow styles.
93
124
  *
94
125
  * @example
95
126
  * ```tsx
@@ -24,7 +24,7 @@ export interface TooltipProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
24
24
  * Determines the tooltip type for accessibility.
25
25
  *
26
26
  * - `label`: Sets the accessible name for the wrapped element. Use for icons or if tooltip
27
- * `title` prop is the same as the text content of the wrapped element. E.g. IconButtons or
27
+ * `title` prop is the same as the text content of the wrapped element. E.g. TertiaryButtons that render an icon or
28
28
  * Ellipsis tooltips.
29
29
  * - `describe`: Sets `aria-describedby` of the wrapped element. Use if the tooltip has additional
30
30
  * information about the target.
@@ -8,7 +8,7 @@ export declare function useTooltip<T extends Element = Element>({ type, titleTex
8
8
  * Determines the tooltip type for accessibility.
9
9
  *
10
10
  * - `label`: Sets the accessible name for the wrapped element. Use for icons or if tooltip
11
- * `title` prop is the same as the text content of the wrapped element. E.g. IconButtons or
11
+ * `title` prop is the same as the text content of the wrapped element. E.g. TertiaryButton that renders an icon or
12
12
  * Ellipsis tooltips.
13
13
  * - `describe`: Sets `aria-describedby` of the wrapped element. Use if the tooltip has additional
14
14
  * information about the target.