@workday/canvas-kit-react 7.0.0-alpha.0-next.7 → 7.0.0-alpha.78-next.6

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 (321) 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 +44 -66
  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/common/lib/parts/_brand-assets.ts +5 -5
  17. package/common/lib/utils/StaticStates.tsx +6 -5
  18. package/dist/commonjs/banner/lib/BannerIcon.js +2 -2
  19. package/dist/commonjs/button/index.d.ts +1 -1
  20. package/dist/commonjs/button/index.d.ts.map +1 -1
  21. package/dist/commonjs/button/index.js +3 -3
  22. package/dist/commonjs/button/lib/BaseButton.d.ts +31 -0
  23. package/dist/commonjs/button/lib/BaseButton.d.ts.map +1 -0
  24. package/dist/commonjs/button/lib/BaseButton.js +198 -0
  25. package/dist/commonjs/button/lib/DeleteButton.d.ts.map +1 -1
  26. package/dist/commonjs/button/lib/DeleteButton.js +4 -3
  27. package/dist/commonjs/button/lib/PrimaryButton.d.ts +4 -76
  28. package/dist/commonjs/button/lib/PrimaryButton.d.ts.map +1 -1
  29. package/dist/commonjs/button/lib/PrimaryButton.js +15 -36
  30. package/dist/commonjs/button/lib/SecondaryButton.d.ts +0 -5
  31. package/dist/commonjs/button/lib/SecondaryButton.d.ts.map +1 -1
  32. package/dist/commonjs/button/lib/SecondaryButton.js +16 -38
  33. package/dist/commonjs/button/lib/TertiaryButton.d.ts +2 -2
  34. package/dist/commonjs/button/lib/TertiaryButton.d.ts.map +1 -1
  35. package/dist/commonjs/button/lib/TertiaryButton.js +66 -38
  36. package/dist/commonjs/button/lib/ToolbarDropdownButton.d.ts.map +1 -1
  37. package/dist/commonjs/button/lib/ToolbarDropdownButton.js +7 -7
  38. package/dist/commonjs/button/lib/ToolbarIconButton.d.ts +5 -2
  39. package/dist/commonjs/button/lib/ToolbarIconButton.d.ts.map +1 -1
  40. package/dist/commonjs/button/lib/ToolbarIconButton.js +5 -11
  41. package/dist/commonjs/button/lib/parts/ButtonLabel.d.ts +4 -4
  42. package/dist/commonjs/button/lib/parts/ButtonLabel.d.ts.map +1 -1
  43. package/dist/commonjs/button/lib/parts/ButtonLabel.js +35 -1
  44. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +4 -3
  45. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
  46. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.js +13 -62
  47. package/dist/commonjs/button/lib/parts/index.d.ts +0 -2
  48. package/dist/commonjs/button/lib/parts/index.d.ts.map +1 -1
  49. package/dist/commonjs/button/lib/parts/index.js +1 -5
  50. package/dist/commonjs/button/lib/types.d.ts +2 -2
  51. package/dist/commonjs/button/lib/types.d.ts.map +1 -1
  52. package/dist/commonjs/common/lib/parts/_brand-assets.d.ts.map +1 -1
  53. package/dist/commonjs/common/lib/parts/_brand-assets.js +5 -5
  54. package/dist/commonjs/common/lib/utils/StaticStates.d.ts.map +1 -1
  55. package/dist/commonjs/common/lib/utils/StaticStates.js +5 -2
  56. package/dist/commonjs/icon/lib/AccentIcon.d.ts +3 -5
  57. package/dist/commonjs/icon/lib/AccentIcon.d.ts.map +1 -1
  58. package/dist/commonjs/icon/lib/AccentIcon.js +8 -24
  59. package/dist/commonjs/icon/lib/AppletIcon.d.ts +5 -6
  60. package/dist/commonjs/icon/lib/AppletIcon.d.ts.map +1 -1
  61. package/dist/commonjs/icon/lib/AppletIcon.js +13 -27
  62. package/dist/commonjs/icon/lib/Graphic.d.ts +3 -5
  63. package/dist/commonjs/icon/lib/Graphic.d.ts.map +1 -1
  64. package/dist/commonjs/icon/lib/Graphic.js +8 -24
  65. package/dist/commonjs/icon/lib/Icon.d.ts +2 -5
  66. package/dist/commonjs/icon/lib/Icon.d.ts.map +1 -1
  67. package/dist/commonjs/icon/lib/Icon.js +10 -25
  68. package/dist/commonjs/icon/lib/Svg.d.ts +4 -6
  69. package/dist/commonjs/icon/lib/Svg.d.ts.map +1 -1
  70. package/dist/commonjs/icon/lib/Svg.js +11 -27
  71. package/dist/commonjs/icon/lib/SystemIcon.d.ts +5 -6
  72. package/dist/commonjs/icon/lib/SystemIcon.d.ts.map +1 -1
  73. package/dist/commonjs/icon/lib/SystemIcon.js +8 -24
  74. package/dist/commonjs/icon/lib/SystemIconCircle.d.ts +3 -6
  75. package/dist/commonjs/icon/lib/SystemIconCircle.d.ts.map +1 -1
  76. package/dist/commonjs/icon/lib/SystemIconCircle.js +7 -25
  77. package/dist/commonjs/layout/lib/Box.d.ts +17 -0
  78. package/dist/commonjs/layout/lib/Box.d.ts.map +1 -1
  79. package/dist/commonjs/layout/lib/Box.js +41 -1
  80. package/dist/commonjs/modal/lib/ModalOverflowOverlay.js +1 -1
  81. package/dist/commonjs/pagination/lib/Pagination/Controls.d.ts +2 -2
  82. package/dist/commonjs/pagination/lib/Pagination/Controls.d.ts.map +1 -1
  83. package/dist/commonjs/pagination/lib/Pagination/Controls.js +4 -4
  84. package/dist/commonjs/pagination/lib/Pagination/PageButton.d.ts +1 -2
  85. package/dist/commonjs/pagination/lib/Pagination/PageButton.d.ts.map +1 -1
  86. package/dist/commonjs/pagination/lib/Pagination/PageButton.js +34 -9
  87. package/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
  88. package/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts.map +1 -1
  89. package/dist/commonjs/popup/lib/PopupCloseIcon.d.ts +2 -2
  90. package/dist/commonjs/popup/lib/PopupCloseIcon.d.ts.map +1 -1
  91. package/dist/commonjs/popup/lib/PopupCloseIcon.js +5 -6
  92. package/dist/commonjs/popup/lib/hooks/useDisableBodyScroll.d.ts.map +1 -1
  93. package/dist/commonjs/popup/lib/hooks/useDisableBodyScroll.js +4 -0
  94. package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +9 -7
  95. package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
  96. package/dist/commonjs/segmented-control/lib/SegmentedControl.js +21 -57
  97. package/dist/commonjs/segmented-control/lib/SegmentedControlButton.d.ts +8 -0
  98. package/dist/commonjs/segmented-control/lib/SegmentedControlButton.d.ts.map +1 -0
  99. package/dist/commonjs/segmented-control/lib/SegmentedControlButton.js +106 -0
  100. package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
  101. package/dist/commonjs/side-panel/lib/SidePanel.js +2 -2
  102. package/dist/commonjs/tabs/lib/Tabs.d.ts +2 -2
  103. package/dist/commonjs/tabs/lib/TabsItem.d.ts +1 -2
  104. package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
  105. package/dist/commonjs/tabs/lib/TabsList.js +1 -1
  106. package/dist/commonjs/tabs/lib/menu/Menu.d.ts +1 -1
  107. package/dist/commonjs/tabs/lib/menu/MenuItem.d.ts +1 -2
  108. package/dist/commonjs/tabs/lib/menu/MenuItem.d.ts.map +1 -1
  109. package/dist/commonjs/text-input/lib/InputIconContainer.d.ts +1 -1
  110. package/dist/commonjs/text-input/lib/InputIconContainer.d.ts.map +1 -1
  111. package/dist/commonjs/tooltip/lib/Tooltip.d.ts +1 -1
  112. package/dist/commonjs/tooltip/lib/useTooltip.d.ts +1 -1
  113. package/dist/es6/banner/lib/BannerIcon.js +2 -2
  114. package/dist/es6/button/index.d.ts +1 -1
  115. package/dist/es6/button/index.d.ts.map +1 -1
  116. package/dist/es6/button/index.js +1 -1
  117. package/dist/es6/button/lib/BaseButton.d.ts +31 -0
  118. package/dist/es6/button/lib/BaseButton.d.ts.map +1 -0
  119. package/dist/es6/button/lib/BaseButton.js +174 -0
  120. package/dist/es6/button/lib/DeleteButton.d.ts.map +1 -1
  121. package/dist/es6/button/lib/DeleteButton.js +4 -3
  122. package/dist/es6/button/lib/PrimaryButton.d.ts +4 -76
  123. package/dist/es6/button/lib/PrimaryButton.d.ts.map +1 -1
  124. package/dist/es6/button/lib/PrimaryButton.js +15 -35
  125. package/dist/es6/button/lib/SecondaryButton.d.ts +0 -5
  126. package/dist/es6/button/lib/SecondaryButton.d.ts.map +1 -1
  127. package/dist/es6/button/lib/SecondaryButton.js +16 -38
  128. package/dist/es6/button/lib/TertiaryButton.d.ts +2 -2
  129. package/dist/es6/button/lib/TertiaryButton.d.ts.map +1 -1
  130. package/dist/es6/button/lib/TertiaryButton.js +68 -40
  131. package/dist/es6/button/lib/ToolbarDropdownButton.d.ts.map +1 -1
  132. package/dist/es6/button/lib/ToolbarDropdownButton.js +8 -8
  133. package/dist/es6/button/lib/ToolbarIconButton.d.ts +5 -2
  134. package/dist/es6/button/lib/ToolbarIconButton.d.ts.map +1 -1
  135. package/dist/es6/button/lib/ToolbarIconButton.js +7 -13
  136. package/dist/es6/button/lib/parts/ButtonLabel.d.ts +4 -4
  137. package/dist/es6/button/lib/parts/ButtonLabel.d.ts.map +1 -1
  138. package/dist/es6/button/lib/parts/ButtonLabel.js +33 -2
  139. package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +4 -3
  140. package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
  141. package/dist/es6/button/lib/parts/ButtonLabelIcon.js +13 -42
  142. package/dist/es6/button/lib/parts/index.d.ts +0 -2
  143. package/dist/es6/button/lib/parts/index.d.ts.map +1 -1
  144. package/dist/es6/button/lib/parts/index.js +0 -2
  145. package/dist/es6/button/lib/types.d.ts +2 -2
  146. package/dist/es6/button/lib/types.d.ts.map +1 -1
  147. package/dist/es6/common/lib/parts/_brand-assets.d.ts.map +1 -1
  148. package/dist/es6/common/lib/parts/_brand-assets.js +5 -5
  149. package/dist/es6/common/lib/utils/StaticStates.d.ts.map +1 -1
  150. package/dist/es6/common/lib/utils/StaticStates.js +5 -2
  151. package/dist/es6/icon/lib/AccentIcon.d.ts +3 -5
  152. package/dist/es6/icon/lib/AccentIcon.d.ts.map +1 -1
  153. package/dist/es6/icon/lib/AccentIcon.js +8 -24
  154. package/dist/es6/icon/lib/AppletIcon.d.ts +5 -6
  155. package/dist/es6/icon/lib/AppletIcon.d.ts.map +1 -1
  156. package/dist/es6/icon/lib/AppletIcon.js +11 -25
  157. package/dist/es6/icon/lib/Graphic.d.ts +3 -5
  158. package/dist/es6/icon/lib/Graphic.d.ts.map +1 -1
  159. package/dist/es6/icon/lib/Graphic.js +8 -24
  160. package/dist/es6/icon/lib/Icon.d.ts +2 -5
  161. package/dist/es6/icon/lib/Icon.d.ts.map +1 -1
  162. package/dist/es6/icon/lib/Icon.js +8 -24
  163. package/dist/es6/icon/lib/Svg.d.ts +4 -6
  164. package/dist/es6/icon/lib/Svg.d.ts.map +1 -1
  165. package/dist/es6/icon/lib/Svg.js +10 -27
  166. package/dist/es6/icon/lib/SystemIcon.d.ts +5 -6
  167. package/dist/es6/icon/lib/SystemIcon.d.ts.map +1 -1
  168. package/dist/es6/icon/lib/SystemIcon.js +8 -24
  169. package/dist/es6/icon/lib/SystemIconCircle.d.ts +3 -6
  170. package/dist/es6/icon/lib/SystemIconCircle.d.ts.map +1 -1
  171. package/dist/es6/icon/lib/SystemIconCircle.js +8 -26
  172. package/dist/es6/layout/lib/Box.d.ts +17 -0
  173. package/dist/es6/layout/lib/Box.d.ts.map +1 -1
  174. package/dist/es6/layout/lib/Box.js +39 -0
  175. package/dist/es6/modal/lib/ModalOverflowOverlay.js +1 -1
  176. package/dist/es6/pagination/lib/Pagination/Controls.d.ts +2 -2
  177. package/dist/es6/pagination/lib/Pagination/Controls.d.ts.map +1 -1
  178. package/dist/es6/pagination/lib/Pagination/Controls.js +5 -5
  179. package/dist/es6/pagination/lib/Pagination/PageButton.d.ts +1 -2
  180. package/dist/es6/pagination/lib/Pagination/PageButton.d.ts.map +1 -1
  181. package/dist/es6/pagination/lib/Pagination/PageButton.js +35 -10
  182. package/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
  183. package/dist/es6/pagination/lib/Pagination/Pagination.d.ts.map +1 -1
  184. package/dist/es6/popup/lib/PopupCloseIcon.d.ts +2 -2
  185. package/dist/es6/popup/lib/PopupCloseIcon.d.ts.map +1 -1
  186. package/dist/es6/popup/lib/PopupCloseIcon.js +6 -7
  187. package/dist/es6/popup/lib/hooks/useDisableBodyScroll.d.ts.map +1 -1
  188. package/dist/es6/popup/lib/hooks/useDisableBodyScroll.js +4 -0
  189. package/dist/es6/segmented-control/lib/SegmentedControl.d.ts +9 -7
  190. package/dist/es6/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
  191. package/dist/es6/segmented-control/lib/SegmentedControl.js +20 -57
  192. package/dist/es6/segmented-control/lib/SegmentedControlButton.d.ts +8 -0
  193. package/dist/es6/segmented-control/lib/SegmentedControlButton.d.ts.map +1 -0
  194. package/dist/es6/segmented-control/lib/SegmentedControlButton.js +100 -0
  195. package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
  196. package/dist/es6/side-panel/lib/SidePanel.js +3 -3
  197. package/dist/es6/tabs/lib/Tabs.d.ts +2 -2
  198. package/dist/es6/tabs/lib/TabsItem.d.ts +1 -2
  199. package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
  200. package/dist/es6/tabs/lib/TabsList.js +1 -1
  201. package/dist/es6/tabs/lib/menu/Menu.d.ts +1 -1
  202. package/dist/es6/tabs/lib/menu/MenuItem.d.ts +1 -2
  203. package/dist/es6/tabs/lib/menu/MenuItem.d.ts.map +1 -1
  204. package/dist/es6/text-input/lib/InputIconContainer.d.ts +1 -1
  205. package/dist/es6/text-input/lib/InputIconContainer.d.ts.map +1 -1
  206. package/dist/es6/tooltip/lib/Tooltip.d.ts +1 -1
  207. package/dist/es6/tooltip/lib/useTooltip.d.ts +1 -1
  208. package/icon/README.md +0 -30
  209. package/icon/lib/AccentIcon.tsx +17 -16
  210. package/icon/lib/AppletIcon.tsx +18 -12
  211. package/icon/lib/Graphic.tsx +15 -8
  212. package/icon/lib/Icon.tsx +10 -8
  213. package/icon/lib/Svg.tsx +12 -14
  214. package/icon/lib/SystemIcon.tsx +21 -12
  215. package/icon/lib/SystemIconCircle.tsx +17 -14
  216. package/layout/lib/Box.tsx +40 -0
  217. package/modal/lib/ModalOverflowOverlay.tsx +1 -1
  218. package/package.json +5 -5
  219. package/pagination/lib/Pagination/Controls.tsx +6 -10
  220. package/pagination/lib/Pagination/PageButton.tsx +38 -17
  221. package/pagination/lib/Pagination/Pagination.tsx +5 -5
  222. package/popup/lib/PopupCloseIcon.tsx +7 -8
  223. package/popup/lib/hooks/useDisableBodyScroll.ts +6 -0
  224. package/segmented-control/README.md +8 -9
  225. package/segmented-control/lib/SegmentedControl.tsx +39 -78
  226. package/segmented-control/lib/SegmentedControlButton.tsx +109 -0
  227. package/side-panel/README.md +3 -3
  228. package/side-panel/lib/SidePanel.tsx +4 -5
  229. package/tabs/lib/TabsList.tsx +1 -1
  230. package/text-input/lib/InputIconContainer.tsx +1 -1
  231. package/tooltip/README.md +6 -5
  232. package/tooltip/lib/Tooltip.tsx +1 -1
  233. package/tooltip/lib/useTooltip.tsx +1 -1
  234. package/ts3.5/dist/commonjs/button/index.d.ts +1 -1
  235. package/ts3.5/dist/commonjs/button/lib/BaseButton.d.ts +31 -0
  236. package/ts3.5/dist/commonjs/button/lib/PrimaryButton.d.ts +4 -76
  237. package/ts3.5/dist/commonjs/button/lib/SecondaryButton.d.ts +0 -5
  238. package/ts3.5/dist/commonjs/button/lib/TertiaryButton.d.ts +2 -2
  239. package/ts3.5/dist/commonjs/button/lib/ToolbarIconButton.d.ts +5 -2
  240. package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabel.d.ts +4 -4
  241. package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +4 -3
  242. package/ts3.5/dist/commonjs/button/lib/parts/index.d.ts +0 -2
  243. package/ts3.5/dist/commonjs/button/lib/types.d.ts +2 -2
  244. package/ts3.5/dist/commonjs/icon/lib/AccentIcon.d.ts +3 -5
  245. package/ts3.5/dist/commonjs/icon/lib/AppletIcon.d.ts +5 -6
  246. package/ts3.5/dist/commonjs/icon/lib/Graphic.d.ts +3 -5
  247. package/ts3.5/dist/commonjs/icon/lib/Icon.d.ts +2 -5
  248. package/ts3.5/dist/commonjs/icon/lib/Svg.d.ts +4 -6
  249. package/ts3.5/dist/commonjs/icon/lib/SystemIcon.d.ts +5 -6
  250. package/ts3.5/dist/commonjs/icon/lib/SystemIconCircle.d.ts +3 -6
  251. package/ts3.5/dist/commonjs/layout/lib/Box.d.ts +17 -0
  252. package/ts3.5/dist/commonjs/pagination/lib/Pagination/Controls.d.ts +2 -2
  253. package/ts3.5/dist/commonjs/pagination/lib/Pagination/PageButton.d.ts +1 -2
  254. package/ts3.5/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
  255. package/ts3.5/dist/commonjs/popup/lib/PopupCloseIcon.d.ts +2 -2
  256. package/ts3.5/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +9 -7
  257. package/ts3.5/dist/commonjs/segmented-control/lib/SegmentedControlButton.d.ts +8 -0
  258. package/ts3.5/dist/commonjs/tabs/lib/Tabs.d.ts +2 -2
  259. package/ts3.5/dist/commonjs/tabs/lib/TabsItem.d.ts +1 -2
  260. package/ts3.5/dist/commonjs/tabs/lib/menu/Menu.d.ts +1 -1
  261. package/ts3.5/dist/commonjs/tabs/lib/menu/MenuItem.d.ts +1 -2
  262. package/ts3.5/dist/commonjs/text-input/lib/InputIconContainer.d.ts +1 -1
  263. package/ts3.5/dist/commonjs/tooltip/lib/Tooltip.d.ts +1 -1
  264. package/ts3.5/dist/commonjs/tooltip/lib/useTooltip.d.ts +1 -1
  265. package/ts3.5/dist/es6/button/index.d.ts +1 -1
  266. package/ts3.5/dist/es6/button/lib/BaseButton.d.ts +31 -0
  267. package/ts3.5/dist/es6/button/lib/PrimaryButton.d.ts +4 -76
  268. package/ts3.5/dist/es6/button/lib/SecondaryButton.d.ts +0 -5
  269. package/ts3.5/dist/es6/button/lib/TertiaryButton.d.ts +2 -2
  270. package/ts3.5/dist/es6/button/lib/ToolbarIconButton.d.ts +5 -2
  271. package/ts3.5/dist/es6/button/lib/parts/ButtonLabel.d.ts +4 -4
  272. package/ts3.5/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +4 -3
  273. package/ts3.5/dist/es6/button/lib/parts/index.d.ts +0 -2
  274. package/ts3.5/dist/es6/button/lib/types.d.ts +2 -2
  275. package/ts3.5/dist/es6/icon/lib/AccentIcon.d.ts +3 -5
  276. package/ts3.5/dist/es6/icon/lib/AppletIcon.d.ts +5 -6
  277. package/ts3.5/dist/es6/icon/lib/Graphic.d.ts +3 -5
  278. package/ts3.5/dist/es6/icon/lib/Icon.d.ts +2 -5
  279. package/ts3.5/dist/es6/icon/lib/Svg.d.ts +4 -6
  280. package/ts3.5/dist/es6/icon/lib/SystemIcon.d.ts +5 -6
  281. package/ts3.5/dist/es6/icon/lib/SystemIconCircle.d.ts +3 -6
  282. package/ts3.5/dist/es6/layout/lib/Box.d.ts +17 -0
  283. package/ts3.5/dist/es6/pagination/lib/Pagination/Controls.d.ts +2 -2
  284. package/ts3.5/dist/es6/pagination/lib/Pagination/PageButton.d.ts +1 -2
  285. package/ts3.5/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
  286. package/ts3.5/dist/es6/popup/lib/PopupCloseIcon.d.ts +2 -2
  287. package/ts3.5/dist/es6/segmented-control/lib/SegmentedControl.d.ts +9 -7
  288. package/ts3.5/dist/es6/segmented-control/lib/SegmentedControlButton.d.ts +8 -0
  289. package/ts3.5/dist/es6/tabs/lib/Tabs.d.ts +2 -2
  290. package/ts3.5/dist/es6/tabs/lib/TabsItem.d.ts +1 -2
  291. package/ts3.5/dist/es6/tabs/lib/menu/Menu.d.ts +1 -1
  292. package/ts3.5/dist/es6/tabs/lib/menu/MenuItem.d.ts +1 -2
  293. package/ts3.5/dist/es6/text-input/lib/InputIconContainer.d.ts +1 -1
  294. package/ts3.5/dist/es6/tooltip/lib/Tooltip.d.ts +1 -1
  295. package/ts3.5/dist/es6/tooltip/lib/useTooltip.d.ts +1 -1
  296. package/button/lib/IconButton.tsx +0 -279
  297. package/button/lib/parts/ButtonLabelData.tsx +0 -16
  298. package/dist/commonjs/button/lib/IconButton.d.ts +0 -44
  299. package/dist/commonjs/button/lib/IconButton.d.ts.map +0 -1
  300. package/dist/commonjs/button/lib/IconButton.js +0 -219
  301. package/dist/commonjs/button/lib/parts/ButtonContainer.d.ts +0 -33
  302. package/dist/commonjs/button/lib/parts/ButtonContainer.d.ts.map +0 -1
  303. package/dist/commonjs/button/lib/parts/ButtonContainer.js +0 -126
  304. package/dist/commonjs/button/lib/parts/ButtonLabelData.d.ts +0 -3
  305. package/dist/commonjs/button/lib/parts/ButtonLabelData.d.ts.map +0 -1
  306. package/dist/commonjs/button/lib/parts/ButtonLabelData.js +0 -45
  307. package/dist/es6/button/lib/IconButton.d.ts +0 -44
  308. package/dist/es6/button/lib/IconButton.d.ts.map +0 -1
  309. package/dist/es6/button/lib/IconButton.js +0 -197
  310. package/dist/es6/button/lib/parts/ButtonContainer.d.ts +0 -33
  311. package/dist/es6/button/lib/parts/ButtonContainer.d.ts.map +0 -1
  312. package/dist/es6/button/lib/parts/ButtonContainer.js +0 -120
  313. package/dist/es6/button/lib/parts/ButtonLabelData.d.ts +0 -3
  314. package/dist/es6/button/lib/parts/ButtonLabelData.d.ts.map +0 -1
  315. package/dist/es6/button/lib/parts/ButtonLabelData.js +0 -22
  316. package/ts3.5/dist/commonjs/button/lib/IconButton.d.ts +0 -44
  317. package/ts3.5/dist/commonjs/button/lib/parts/ButtonContainer.d.ts +0 -33
  318. package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabelData.d.ts +0 -3
  319. package/ts3.5/dist/es6/button/lib/IconButton.d.ts +0 -44
  320. package/ts3.5/dist/es6/button/lib/parts/ButtonContainer.d.ts +0 -33
  321. package/ts3.5/dist/es6/button/lib/parts/ButtonLabelData.d.ts +0 -3
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { GrowthBehavior, Themeable, EmotionCanvasTheme } from '@workday/canvas-kit-react/common';
2
+ import { GrowthBehavior, Themeable } from '@workday/canvas-kit-react/common';
3
3
  import { CanvasSystemIcon } from '@workday/design-assets-types';
4
4
  import { ButtonSizes, IconPositions } from './types';
5
5
  export interface PrimaryButtonProps extends Themeable, GrowthBehavior {
@@ -15,20 +15,15 @@ export interface PrimaryButtonProps extends Themeable, GrowthBehavior {
15
15
  * @default 'medium'
16
16
  */
17
17
  size?: ButtonSizes;
18
- /**
19
- * The data label of the Button.
20
- * Note: not displayed at `small` size
21
- */
22
- dataLabel?: String;
23
18
  /**
24
19
  * The icon of the Button.
25
20
  * Note: not displayed at `small` size
26
21
  */
27
22
  icon?: CanvasSystemIcon;
28
23
  /**
29
- * Button icon positions can either be `left` or `right`.
30
- * If no value is provided, it defaults to `left`.
31
- * @default 'left'
24
+ * Button icon positions can either be `start` or `end`.
25
+ * If no value is provided, it defaults to `start`.
26
+ * @default 'start'
32
27
  */
33
28
  iconPosition?: IconPositions;
34
29
  /**
@@ -39,71 +34,4 @@ export interface PrimaryButtonProps extends Themeable, GrowthBehavior {
39
34
  children?: React.ReactNode;
40
35
  }
41
36
  export declare const PrimaryButton: import("../../common").ElementComponent<"button", PrimaryButtonProps>;
42
- export declare const getPrimaryButtonColors: (variant: 'inverse' | undefined, theme: EmotionCanvasTheme) => {
43
- default: {
44
- background: string;
45
- icon: string;
46
- label: string;
47
- labelData?: undefined;
48
- };
49
- hover: {
50
- background: string;
51
- icon?: undefined;
52
- label?: undefined;
53
- labelData?: undefined;
54
- };
55
- active: {
56
- background: string;
57
- icon?: undefined;
58
- label?: undefined;
59
- labelData?: undefined;
60
- };
61
- focus: {
62
- background: string;
63
- border?: undefined;
64
- icon?: undefined;
65
- label?: undefined;
66
- labelData?: undefined;
67
- focusRing?: undefined;
68
- };
69
- disabled: {
70
- background: string;
71
- icon?: undefined;
72
- label?: undefined;
73
- labelData?: undefined;
74
- };
75
- } | {
76
- default: {
77
- background: string;
78
- icon: string;
79
- label: string;
80
- labelData: string;
81
- };
82
- hover: {
83
- background: string;
84
- icon: string;
85
- label: string;
86
- labelData: string;
87
- };
88
- active: {
89
- background: string;
90
- icon: string;
91
- label: string;
92
- labelData: string;
93
- };
94
- focus: {
95
- background: string;
96
- border: string;
97
- icon: string;
98
- label: string;
99
- labelData: string;
100
- focusRing: import("@emotion/react").CSSObject;
101
- };
102
- disabled: {
103
- background: string;
104
- icon: string;
105
- label: string;
106
- labelData: string;
107
- };
108
- };
109
37
  //# sourceMappingURL=PrimaryButton.d.ts.map
@@ -15,11 +15,6 @@ export interface SecondaryButtonProps extends Themeable, GrowthBehavior {
15
15
  * @default 'medium'
16
16
  */
17
17
  size?: ButtonSizes;
18
- /**
19
- * The data label of the Button.
20
- * Note: not displayed at `small` size
21
- */
22
- dataLabel?: String;
23
18
  /**
24
19
  * The icon of the Button.
25
20
  * Note: not displayed at `small` size
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Themeable } from '@workday/canvas-kit-react/common';
3
3
  import { CanvasSystemIcon } from '@workday/design-assets-types';
4
- import { TertiaryButtonSizes, IconPositions } from './types';
4
+ import { IconPositions, ButtonSizes } from './types';
5
5
  export interface TertiaryButtonProps extends Themeable {
6
6
  /**
7
7
  * The variant of the TertiaryButton.
@@ -14,7 +14,7 @@ export interface TertiaryButtonProps extends Themeable {
14
14
  *
15
15
  * @default 'medium'
16
16
  */
17
- size?: TertiaryButtonSizes;
17
+ size?: ButtonSizes;
18
18
  /**
19
19
  * Button icon positions can either be `left` or `right`.
20
20
  * If no value is provided, it defaults to `left`.
@@ -1,6 +1,9 @@
1
1
  import { Themeable } from '@workday/canvas-kit-react/common';
2
- import { IconButtonProps } from './IconButton';
3
- export interface ToolbarIconButtonProps extends Omit<IconButtonProps, 'size' | 'variant'>, Themeable {
2
+ import { TertiaryButtonProps } from './TertiaryButton';
3
+ export interface ToolbarIconButtonProps extends Omit<TertiaryButtonProps, 'size' | 'variant'>, Themeable {
4
+ onToggleChange?: (toggled: boolean | undefined) => void;
5
+ toggled?: boolean;
6
+ shouldMirrorIcon?: boolean;
4
7
  }
5
8
  export declare const ToolbarIconButton: import("../../common").ElementComponent<"button", ToolbarIconButtonProps>;
6
9
  //# sourceMappingURL=ToolbarIconButton.d.ts.map
@@ -1,5 +1,5 @@
1
- export declare const ButtonLabel: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme | undefined;
3
- as?: "symbol" | "object" | "s" | "big" | "link" | "small" | "sub" | "sup" | "circle" | "stop" | "path" | "style" | "map" | "filter" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "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" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "clipPath" | "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" | "marker" | "mask" | "metadata" | "mpath" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
4
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
1
+ import { BoxProps } from '@workday/canvas-kit-react/layout';
2
+ export interface ButtonLabelProps extends BoxProps {
3
+ }
4
+ export declare const ButtonLabel: import("../../../common").ElementComponent<"span", ButtonLabelProps>;
5
5
  //# sourceMappingURL=ButtonLabel.d.ts.map
@@ -1,6 +1,7 @@
1
1
  import { CanvasSystemIcon } from '@workday/design-assets-types';
2
2
  import { ButtonSizes, IconPositions } from '../types';
3
- export interface ButtonLabelIconProps {
3
+ import { BoxProps } from '@workday/canvas-kit-react/layout';
4
+ export interface ButtonLabelIconProps extends BoxProps {
4
5
  /**
5
6
  * There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
6
7
  *
@@ -15,7 +16,7 @@ export interface ButtonLabelIconProps {
15
16
  /**
16
17
  * Button icon positions can either be `left` or `right`.
17
18
  * If no value is provided, it defaults to `left`.
18
- * @default 'left'
19
+ * @default 'start'
19
20
  */
20
21
  iconPosition?: IconPositions;
21
22
  /**
@@ -24,5 +25,5 @@ export interface ButtonLabelIconProps {
24
25
  */
25
26
  shouldMirrorIcon?: boolean;
26
27
  }
27
- export declare const ButtonLabelIcon: ({ icon, size, iconPosition, shouldMirrorIcon, ...elemProps }: ButtonLabelIconProps) => JSX.Element | null;
28
+ export declare const ButtonLabelIcon: import("../../../common").ElementComponent<"span", ButtonLabelIconProps>;
28
29
  //# sourceMappingURL=ButtonLabelIcon.d.ts.map
@@ -1,5 +1,3 @@
1
- export { ButtonContainer } from './ButtonContainer';
2
1
  export { ButtonLabel } from './ButtonLabel';
3
- export { ButtonLabelData } from './ButtonLabelData';
4
2
  export { ButtonLabelIcon } from './ButtonLabelIcon';
5
3
  //# sourceMappingURL=index.d.ts.map
@@ -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.
@@ -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" | "s" | "big" | "link" | "small" | "sub" | "sup" | "circle" | "stop" | "path" | "style" | "map" | "filter" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "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" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "clipPath" | "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" | "marker" | "mask" | "metadata" | "mpath" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "switch" | "text" | "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" | "s" | "big" | "link" | "small" | "sub" | "sup" | "circle" | "stop" | "path" | "style" | "map" | "filter" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "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" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "clipPath" | "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" | "marker" | "mask" | "metadata" | "mpath" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "switch" | "text" | "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" | "s" | "big" | "link" | "small" | "sub" | "sup" | "circle" | "stop" | "path" | "style" | "map" | "filter" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "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" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "samp" | "slot" | "script" | "section" | "select" | "source" | "span" | "strong" | "summary" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "clipPath" | "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" | "marker" | "mask" | "metadata" | "mpath" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "switch" | "text" | "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;
@@ -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.