@workday/canvas-kit-labs-react 6.8.8 → 6.9.0-next.4

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 (323) hide show
  1. package/combobox/README.md +1 -1
  2. package/combobox/lib/Combobox.tsx +12 -14
  3. package/common/README.md +10 -4
  4. package/common/index.ts +0 -8
  5. package/dist/commonjs/combobox/index.js +12 -4
  6. package/dist/commonjs/combobox/lib/AutocompleteList.d.ts.map +1 -1
  7. package/dist/commonjs/combobox/lib/AutocompleteList.js +19 -7
  8. package/dist/commonjs/combobox/lib/Combobox.d.ts +3 -4
  9. package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
  10. package/dist/commonjs/combobox/lib/Combobox.js +31 -19
  11. package/dist/commonjs/combobox/lib/Status.d.ts.map +1 -1
  12. package/dist/commonjs/combobox/lib/Status.js +14 -2
  13. package/dist/commonjs/common/index.d.ts +0 -8
  14. package/dist/commonjs/common/index.d.ts.map +1 -1
  15. package/dist/commonjs/common/index.js +14 -7
  16. package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.d.ts.map +1 -1
  17. package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.js +3 -1
  18. package/dist/commonjs/common/lib/storybook-utils/permutateProps.d.ts.map +1 -1
  19. package/dist/commonjs/common/lib/storybook-utils/permutateProps.js +3 -1
  20. package/dist/commonjs/common/lib/theming/index.js +12 -5
  21. package/dist/commonjs/common/lib/theming/useThemeRTL.d.ts.map +1 -1
  22. package/dist/commonjs/common/lib/theming/useThemeRTL.js +1 -0
  23. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +1 -1
  24. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts.map +1 -1
  25. package/dist/commonjs/common/lib/theming/useThemedRing.js +3 -1
  26. package/dist/commonjs/drawer/index.js +12 -4
  27. package/dist/commonjs/drawer/lib/Drawer.js +21 -8
  28. package/dist/commonjs/drawer/lib/DrawerHeader.js +22 -10
  29. package/dist/commonjs/index.d.ts +0 -2
  30. package/dist/commonjs/index.d.ts.map +1 -1
  31. package/dist/commonjs/index.js +14 -9
  32. package/dist/commonjs/search-form/index.js +12 -5
  33. package/dist/commonjs/search-form/lib/SearchForm.d.ts +3 -2
  34. package/dist/commonjs/search-form/lib/SearchForm.d.ts.map +1 -1
  35. package/dist/commonjs/search-form/lib/SearchForm.js +35 -28
  36. package/dist/commonjs/search-form/lib/themes.d.ts.map +1 -1
  37. package/dist/commonjs/search-form/lib/themes.js +1 -0
  38. package/dist/es6/combobox/lib/AutocompleteList.d.ts.map +1 -1
  39. package/dist/es6/combobox/lib/Combobox.d.ts +3 -4
  40. package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
  41. package/dist/es6/combobox/lib/Combobox.js +6 -9
  42. package/dist/es6/combobox/lib/Status.d.ts.map +1 -1
  43. package/dist/es6/common/index.d.ts +0 -8
  44. package/dist/es6/common/index.d.ts.map +1 -1
  45. package/dist/es6/common/index.js +0 -1
  46. package/dist/es6/common/lib/storybook-utils/ComponentStatesTable.d.ts.map +1 -1
  47. package/dist/es6/common/lib/storybook-utils/permutateProps.d.ts.map +1 -1
  48. package/dist/es6/common/lib/storybook-utils/propTypes.js +1 -0
  49. package/dist/es6/common/lib/theming/useThemeRTL.d.ts.map +1 -1
  50. package/dist/es6/common/lib/theming/useThemedRing.d.ts +1 -1
  51. package/dist/es6/common/lib/theming/useThemedRing.d.ts.map +1 -1
  52. package/dist/es6/drawer/lib/Drawer.js +1 -1
  53. package/dist/es6/drawer/lib/DrawerHeader.js +4 -4
  54. package/dist/es6/index.d.ts +0 -2
  55. package/dist/es6/index.d.ts.map +1 -1
  56. package/dist/es6/index.js +0 -2
  57. package/dist/es6/search-form/lib/SearchForm.d.ts +3 -2
  58. package/dist/es6/search-form/lib/SearchForm.d.ts.map +1 -1
  59. package/dist/es6/search-form/lib/SearchForm.js +16 -22
  60. package/dist/es6/search-form/lib/themes.d.ts.map +1 -1
  61. package/drawer/lib/DrawerHeader.tsx +3 -3
  62. package/index.ts +0 -2
  63. package/package.json +12 -22
  64. package/search-form/lib/SearchForm.tsx +21 -39
  65. package/search-form/lib/themes.ts +2 -1
  66. package/common/lib/Box.tsx +0 -87
  67. package/common/lib/utils/border.ts +0 -263
  68. package/common/lib/utils/color.ts +0 -62
  69. package/common/lib/utils/depth.ts +0 -37
  70. package/common/lib/utils/flexItem.ts +0 -56
  71. package/common/lib/utils/layout.ts +0 -77
  72. package/common/lib/utils/position.ts +0 -96
  73. package/common/lib/utils/space.ts +0 -207
  74. package/common/lib/utils/types.ts +0 -105
  75. package/dist/commonjs/common/lib/Box.d.ts +0 -30
  76. package/dist/commonjs/common/lib/Box.d.ts.map +0 -1
  77. package/dist/commonjs/common/lib/Box.js +0 -85
  78. package/dist/commonjs/common/lib/utils/border.d.ts +0 -103
  79. package/dist/commonjs/common/lib/utils/border.d.ts.map +0 -1
  80. package/dist/commonjs/common/lib/utils/border.js +0 -152
  81. package/dist/commonjs/common/lib/utils/color.d.ts +0 -26
  82. package/dist/commonjs/common/lib/utils/color.d.ts.map +0 -1
  83. package/dist/commonjs/common/lib/utils/color.js +0 -56
  84. package/dist/commonjs/common/lib/utils/depth.d.ts +0 -22
  85. package/dist/commonjs/common/lib/utils/depth.d.ts.map +0 -1
  86. package/dist/commonjs/common/lib/utils/depth.js +0 -28
  87. package/dist/commonjs/common/lib/utils/flexItem.d.ts +0 -33
  88. package/dist/commonjs/common/lib/utils/flexItem.d.ts.map +0 -1
  89. package/dist/commonjs/common/lib/utils/flexItem.js +0 -38
  90. package/dist/commonjs/common/lib/utils/layout.d.ts +0 -43
  91. package/dist/commonjs/common/lib/utils/layout.d.ts.map +0 -1
  92. package/dist/commonjs/common/lib/utils/layout.js +0 -42
  93. package/dist/commonjs/common/lib/utils/position.d.ts +0 -41
  94. package/dist/commonjs/common/lib/utils/position.d.ts.map +0 -1
  95. package/dist/commonjs/common/lib/utils/position.js +0 -77
  96. package/dist/commonjs/common/lib/utils/space.d.ts +0 -64
  97. package/dist/commonjs/common/lib/utils/space.d.ts.map +0 -1
  98. package/dist/commonjs/common/lib/utils/space.js +0 -160
  99. package/dist/commonjs/common/lib/utils/types.d.ts +0 -14
  100. package/dist/commonjs/common/lib/utils/types.d.ts.map +0 -1
  101. package/dist/commonjs/common/lib/utils/types.js +0 -2
  102. package/dist/commonjs/header/index.d.ts +0 -9
  103. package/dist/commonjs/header/index.d.ts.map +0 -1
  104. package/dist/commonjs/header/index.js +0 -16
  105. package/dist/commonjs/header/lib/GlobalHeader.d.ts +0 -38
  106. package/dist/commonjs/header/lib/GlobalHeader.d.ts.map +0 -1
  107. package/dist/commonjs/header/lib/GlobalHeader.js +0 -74
  108. package/dist/commonjs/header/lib/Header.d.ts +0 -76
  109. package/dist/commonjs/header/lib/Header.d.ts.map +0 -1
  110. package/dist/commonjs/header/lib/Header.js +0 -321
  111. package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +0 -30
  112. package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts.map +0 -1
  113. package/dist/commonjs/header/lib/parts/DubLogoTitle.js +0 -105
  114. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  115. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts.map +0 -1
  116. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.js +0 -124
  117. package/dist/commonjs/header/lib/parts/index.d.ts +0 -3
  118. package/dist/commonjs/header/lib/parts/index.d.ts.map +0 -1
  119. package/dist/commonjs/header/lib/parts/index.js +0 -6
  120. package/dist/commonjs/header/lib/shared/themes.d.ts +0 -43
  121. package/dist/commonjs/header/lib/shared/themes.d.ts.map +0 -1
  122. package/dist/commonjs/header/lib/shared/themes.js +0 -62
  123. package/dist/commonjs/header/lib/shared/types.d.ts +0 -15
  124. package/dist/commonjs/header/lib/shared/types.d.ts.map +0 -1
  125. package/dist/commonjs/header/lib/shared/types.js +0 -19
  126. package/dist/commonjs/layout/index.d.ts +0 -5
  127. package/dist/commonjs/layout/index.d.ts.map +0 -1
  128. package/dist/commonjs/layout/index.js +0 -7
  129. package/dist/commonjs/layout/lib/Flex.d.ts +0 -26
  130. package/dist/commonjs/layout/lib/Flex.d.ts.map +0 -1
  131. package/dist/commonjs/layout/lib/Flex.js +0 -70
  132. package/dist/commonjs/layout/lib/Stack.d.ts +0 -27
  133. package/dist/commonjs/layout/lib/Stack.d.ts.map +0 -1
  134. package/dist/commonjs/layout/lib/Stack.js +0 -86
  135. package/dist/commonjs/layout/lib/utils/flex.d.ts +0 -36
  136. package/dist/commonjs/layout/lib/utils/flex.d.ts.map +0 -1
  137. package/dist/commonjs/layout/lib/utils/flex.js +0 -37
  138. package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +0 -3
  139. package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts.map +0 -1
  140. package/dist/commonjs/layout/lib/utils/getValidChildren.js +0 -16
  141. package/dist/commonjs/layout/lib/utils/stack.d.ts +0 -26
  142. package/dist/commonjs/layout/lib/utils/stack.d.ts.map +0 -1
  143. package/dist/commonjs/layout/lib/utils/stack.js +0 -54
  144. package/dist/commonjs/layout/lib/utils/types.d.ts +0 -8
  145. package/dist/commonjs/layout/lib/utils/types.d.ts.map +0 -1
  146. package/dist/commonjs/layout/lib/utils/types.js +0 -2
  147. package/dist/es6/common/lib/Box.d.ts +0 -30
  148. package/dist/es6/common/lib/Box.d.ts.map +0 -1
  149. package/dist/es6/common/lib/Box.js +0 -73
  150. package/dist/es6/common/lib/utils/border.d.ts +0 -103
  151. package/dist/es6/common/lib/utils/border.d.ts.map +0 -1
  152. package/dist/es6/common/lib/utils/border.js +0 -149
  153. package/dist/es6/common/lib/utils/color.d.ts +0 -26
  154. package/dist/es6/common/lib/utils/color.d.ts.map +0 -1
  155. package/dist/es6/common/lib/utils/color.js +0 -53
  156. package/dist/es6/common/lib/utils/depth.d.ts +0 -22
  157. package/dist/es6/common/lib/utils/depth.d.ts.map +0 -1
  158. package/dist/es6/common/lib/utils/depth.js +0 -25
  159. package/dist/es6/common/lib/utils/flexItem.d.ts +0 -33
  160. package/dist/es6/common/lib/utils/flexItem.d.ts.map +0 -1
  161. package/dist/es6/common/lib/utils/flexItem.js +0 -35
  162. package/dist/es6/common/lib/utils/layout.d.ts +0 -43
  163. package/dist/es6/common/lib/utils/layout.d.ts.map +0 -1
  164. package/dist/es6/common/lib/utils/layout.js +0 -39
  165. package/dist/es6/common/lib/utils/position.d.ts +0 -41
  166. package/dist/es6/common/lib/utils/position.d.ts.map +0 -1
  167. package/dist/es6/common/lib/utils/position.js +0 -74
  168. package/dist/es6/common/lib/utils/space.d.ts +0 -64
  169. package/dist/es6/common/lib/utils/space.d.ts.map +0 -1
  170. package/dist/es6/common/lib/utils/space.js +0 -157
  171. package/dist/es6/common/lib/utils/types.d.ts +0 -14
  172. package/dist/es6/common/lib/utils/types.d.ts.map +0 -1
  173. package/dist/es6/common/lib/utils/types.js +0 -0
  174. package/dist/es6/header/index.d.ts +0 -9
  175. package/dist/es6/header/index.d.ts.map +0 -1
  176. package/dist/es6/header/index.js +0 -8
  177. package/dist/es6/header/lib/GlobalHeader.d.ts +0 -38
  178. package/dist/es6/header/lib/GlobalHeader.d.ts.map +0 -1
  179. package/dist/es6/header/lib/GlobalHeader.js +0 -62
  180. package/dist/es6/header/lib/Header.d.ts +0 -76
  181. package/dist/es6/header/lib/Header.d.ts.map +0 -1
  182. package/dist/es6/header/lib/Header.js +0 -309
  183. package/dist/es6/header/lib/parts/DubLogoTitle.d.ts +0 -30
  184. package/dist/es6/header/lib/parts/DubLogoTitle.d.ts.map +0 -1
  185. package/dist/es6/header/lib/parts/DubLogoTitle.js +0 -93
  186. package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  187. package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts.map +0 -1
  188. package/dist/es6/header/lib/parts/WorkdayLogoTitle.js +0 -112
  189. package/dist/es6/header/lib/parts/index.d.ts +0 -3
  190. package/dist/es6/header/lib/parts/index.d.ts.map +0 -1
  191. package/dist/es6/header/lib/parts/index.js +0 -2
  192. package/dist/es6/header/lib/shared/themes.d.ts +0 -43
  193. package/dist/es6/header/lib/shared/themes.d.ts.map +0 -1
  194. package/dist/es6/header/lib/shared/themes.js +0 -57
  195. package/dist/es6/header/lib/shared/types.d.ts +0 -15
  196. package/dist/es6/header/lib/shared/types.d.ts.map +0 -1
  197. package/dist/es6/header/lib/shared/types.js +0 -17
  198. package/dist/es6/layout/index.d.ts +0 -5
  199. package/dist/es6/layout/index.d.ts.map +0 -1
  200. package/dist/es6/layout/index.js +0 -2
  201. package/dist/es6/layout/lib/Flex.d.ts +0 -26
  202. package/dist/es6/layout/lib/Flex.d.ts.map +0 -1
  203. package/dist/es6/layout/lib/Flex.js +0 -58
  204. package/dist/es6/layout/lib/Stack.d.ts +0 -27
  205. package/dist/es6/layout/lib/Stack.d.ts.map +0 -1
  206. package/dist/es6/layout/lib/Stack.js +0 -74
  207. package/dist/es6/layout/lib/utils/flex.d.ts +0 -36
  208. package/dist/es6/layout/lib/utils/flex.d.ts.map +0 -1
  209. package/dist/es6/layout/lib/utils/flex.js +0 -34
  210. package/dist/es6/layout/lib/utils/getValidChildren.d.ts +0 -3
  211. package/dist/es6/layout/lib/utils/getValidChildren.d.ts.map +0 -1
  212. package/dist/es6/layout/lib/utils/getValidChildren.js +0 -6
  213. package/dist/es6/layout/lib/utils/stack.d.ts +0 -26
  214. package/dist/es6/layout/lib/utils/stack.d.ts.map +0 -1
  215. package/dist/es6/layout/lib/utils/stack.js +0 -51
  216. package/dist/es6/layout/lib/utils/types.d.ts +0 -8
  217. package/dist/es6/layout/lib/utils/types.d.ts.map +0 -1
  218. package/dist/es6/layout/lib/utils/types.js +0 -0
  219. package/header/LICENSE +0 -51
  220. package/header/README.md +0 -359
  221. package/header/index.ts +0 -9
  222. package/header/lib/GlobalHeader.tsx +0 -73
  223. package/header/lib/Header.tsx +0 -429
  224. package/header/lib/parts/DubLogoTitle.tsx +0 -99
  225. package/header/lib/parts/WorkdayLogoTitle.tsx +0 -120
  226. package/header/lib/parts/index.ts +0 -2
  227. package/header/lib/shared/themes.tsx +0 -97
  228. package/header/lib/shared/types.tsx +0 -16
  229. package/header/package.json +0 -5
  230. package/layout/LICENSE +0 -52
  231. package/layout/README.md +0 -16
  232. package/layout/index.ts +0 -4
  233. package/layout/lib/Flex.tsx +0 -47
  234. package/layout/lib/Stack.tsx +0 -113
  235. package/layout/lib/utils/flex.ts +0 -65
  236. package/layout/lib/utils/getValidChildren.ts +0 -7
  237. package/layout/lib/utils/stack.ts +0 -78
  238. package/layout/lib/utils/types.ts +0 -45
  239. package/layout/package.json +0 -5
  240. package/ts3.5/dist/commonjs/combobox/index.d.ts +0 -5
  241. package/ts3.5/dist/commonjs/combobox/lib/AutocompleteList.d.ts +0 -32
  242. package/ts3.5/dist/commonjs/combobox/lib/Combobox.d.ts +0 -64
  243. package/ts3.5/dist/commonjs/combobox/lib/Status.d.ts +0 -11
  244. package/ts3.5/dist/commonjs/common/index.d.ts +0 -12
  245. package/ts3.5/dist/commonjs/common/lib/Box.d.ts +0 -30
  246. package/ts3.5/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.d.ts +0 -26
  247. package/ts3.5/dist/commonjs/common/lib/storybook-utils/permutateProps.d.ts +0 -5
  248. package/ts3.5/dist/commonjs/common/lib/storybook-utils/propTypes.d.ts +0 -15
  249. package/ts3.5/dist/commonjs/common/lib/theming/index.d.ts +0 -3
  250. package/ts3.5/dist/commonjs/common/lib/theming/useThemeRTL.d.ts +0 -36
  251. package/ts3.5/dist/commonjs/common/lib/theming/useThemedRing.d.ts +0 -11
  252. package/ts3.5/dist/commonjs/common/lib/utils/border.d.ts +0 -103
  253. package/ts3.5/dist/commonjs/common/lib/utils/color.d.ts +0 -26
  254. package/ts3.5/dist/commonjs/common/lib/utils/depth.d.ts +0 -22
  255. package/ts3.5/dist/commonjs/common/lib/utils/flexItem.d.ts +0 -33
  256. package/ts3.5/dist/commonjs/common/lib/utils/layout.d.ts +0 -43
  257. package/ts3.5/dist/commonjs/common/lib/utils/position.d.ts +0 -41
  258. package/ts3.5/dist/commonjs/common/lib/utils/space.d.ts +0 -64
  259. package/ts3.5/dist/commonjs/common/lib/utils/types.d.ts +0 -14
  260. package/ts3.5/dist/commonjs/drawer/index.d.ts +0 -6
  261. package/ts3.5/dist/commonjs/drawer/lib/Drawer.d.ts +0 -49
  262. package/ts3.5/dist/commonjs/drawer/lib/DrawerHeader.d.ts +0 -38
  263. package/ts3.5/dist/commonjs/header/index.d.ts +0 -9
  264. package/ts3.5/dist/commonjs/header/lib/GlobalHeader.d.ts +0 -38
  265. package/ts3.5/dist/commonjs/header/lib/Header.d.ts +0 -76
  266. package/ts3.5/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +0 -30
  267. package/ts3.5/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  268. package/ts3.5/dist/commonjs/header/lib/parts/index.d.ts +0 -3
  269. package/ts3.5/dist/commonjs/header/lib/shared/themes.d.ts +0 -43
  270. package/ts3.5/dist/commonjs/header/lib/shared/types.d.ts +0 -15
  271. package/ts3.5/dist/commonjs/index.d.ts +0 -7
  272. package/ts3.5/dist/commonjs/layout/index.d.ts +0 -5
  273. package/ts3.5/dist/commonjs/layout/lib/Flex.d.ts +0 -26
  274. package/ts3.5/dist/commonjs/layout/lib/Stack.d.ts +0 -27
  275. package/ts3.5/dist/commonjs/layout/lib/utils/flex.d.ts +0 -36
  276. package/ts3.5/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +0 -3
  277. package/ts3.5/dist/commonjs/layout/lib/utils/stack.d.ts +0 -26
  278. package/ts3.5/dist/commonjs/layout/lib/utils/types.d.ts +0 -8
  279. package/ts3.5/dist/commonjs/search-form/index.d.ts +0 -3
  280. package/ts3.5/dist/commonjs/search-form/lib/SearchForm.d.ts +0 -107
  281. package/ts3.5/dist/commonjs/search-form/lib/themes.d.ts +0 -21
  282. package/ts3.5/dist/es6/combobox/index.d.ts +0 -5
  283. package/ts3.5/dist/es6/combobox/lib/AutocompleteList.d.ts +0 -32
  284. package/ts3.5/dist/es6/combobox/lib/Combobox.d.ts +0 -64
  285. package/ts3.5/dist/es6/combobox/lib/Status.d.ts +0 -11
  286. package/ts3.5/dist/es6/common/index.d.ts +0 -12
  287. package/ts3.5/dist/es6/common/lib/Box.d.ts +0 -30
  288. package/ts3.5/dist/es6/common/lib/storybook-utils/ComponentStatesTable.d.ts +0 -26
  289. package/ts3.5/dist/es6/common/lib/storybook-utils/permutateProps.d.ts +0 -5
  290. package/ts3.5/dist/es6/common/lib/storybook-utils/propTypes.d.ts +0 -15
  291. package/ts3.5/dist/es6/common/lib/theming/index.d.ts +0 -3
  292. package/ts3.5/dist/es6/common/lib/theming/useThemeRTL.d.ts +0 -36
  293. package/ts3.5/dist/es6/common/lib/theming/useThemedRing.d.ts +0 -11
  294. package/ts3.5/dist/es6/common/lib/utils/border.d.ts +0 -103
  295. package/ts3.5/dist/es6/common/lib/utils/color.d.ts +0 -26
  296. package/ts3.5/dist/es6/common/lib/utils/depth.d.ts +0 -22
  297. package/ts3.5/dist/es6/common/lib/utils/flexItem.d.ts +0 -33
  298. package/ts3.5/dist/es6/common/lib/utils/layout.d.ts +0 -43
  299. package/ts3.5/dist/es6/common/lib/utils/position.d.ts +0 -41
  300. package/ts3.5/dist/es6/common/lib/utils/space.d.ts +0 -64
  301. package/ts3.5/dist/es6/common/lib/utils/types.d.ts +0 -14
  302. package/ts3.5/dist/es6/drawer/index.d.ts +0 -6
  303. package/ts3.5/dist/es6/drawer/lib/Drawer.d.ts +0 -49
  304. package/ts3.5/dist/es6/drawer/lib/DrawerHeader.d.ts +0 -38
  305. package/ts3.5/dist/es6/header/index.d.ts +0 -9
  306. package/ts3.5/dist/es6/header/lib/GlobalHeader.d.ts +0 -38
  307. package/ts3.5/dist/es6/header/lib/Header.d.ts +0 -76
  308. package/ts3.5/dist/es6/header/lib/parts/DubLogoTitle.d.ts +0 -30
  309. package/ts3.5/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  310. package/ts3.5/dist/es6/header/lib/parts/index.d.ts +0 -3
  311. package/ts3.5/dist/es6/header/lib/shared/themes.d.ts +0 -43
  312. package/ts3.5/dist/es6/header/lib/shared/types.d.ts +0 -15
  313. package/ts3.5/dist/es6/index.d.ts +0 -7
  314. package/ts3.5/dist/es6/layout/index.d.ts +0 -5
  315. package/ts3.5/dist/es6/layout/lib/Flex.d.ts +0 -26
  316. package/ts3.5/dist/es6/layout/lib/Stack.d.ts +0 -27
  317. package/ts3.5/dist/es6/layout/lib/utils/flex.d.ts +0 -36
  318. package/ts3.5/dist/es6/layout/lib/utils/getValidChildren.d.ts +0 -3
  319. package/ts3.5/dist/es6/layout/lib/utils/stack.d.ts +0 -26
  320. package/ts3.5/dist/es6/layout/lib/utils/types.d.ts +0 -8
  321. package/ts3.5/dist/es6/search-form/index.d.ts +0 -3
  322. package/ts3.5/dist/es6/search-form/lib/SearchForm.d.ts +0 -107
  323. package/ts3.5/dist/es6/search-form/lib/themes.d.ts +0 -21
package/header/README.md DELETED
@@ -1,359 +0,0 @@
1
- # Canvas Kit Labs React Header (Deprecated)
2
-
3
- <a href="https://github.com/Workday/canvas-kit/tree/master/modules/labs-react/README.md">
4
- <img src="https://img.shields.io/badge/LABS-alpha-orange" alt="LABS: Alpha" />
5
- </a> This component is work in progress and currently in pre-release.
6
-
7
- A set of components to create headers for various Workday applications and sites.
8
-
9
- For a full suite of examples, have a look at the [Header Stories](./stories.tsx).
10
-
11
- ## Installation
12
-
13
- ```sh
14
- yarn add @workday/canvas-kit-labs-react
15
- ```
16
-
17
- # Header
18
-
19
- This component renders a responsive, Canvas-style header.
20
-
21
- ## Usage
22
-
23
- ```tsx
24
- import * as React from 'react';
25
- import {DeprecatedHeader} from '@workday/canvas-kit-labs-react/header';
26
- import {IconButton} from '@workday/canvas-kit-react/button';
27
- import {Avatar} from '@workday/canvas-kit-react/avatar';
28
- import {notificationsIcon} from '@workday/canvas-system-icons-web';
29
- import {PrimaryButton} from '@workday/canvas-kit-react/button';
30
-
31
- <DeprecatedHeader title="Header" brandUrl="#">
32
- <nav>
33
- <ul>
34
- <li className="current">
35
- <a href="#">Discover</a>
36
- </li>
37
- <li>
38
- <a href="#">Library</a>
39
- </li>
40
- <li>
41
- <a href="#">Create</a>
42
- </li>
43
- <li>
44
- <a href="#">Manage</a>
45
- </li>
46
- </ul>
47
- </nav>
48
- <IconButton
49
- icon={notificationsIcon}
50
- variant="circle"
51
- title="Notifications"
52
- aria-label="Notifications"
53
- />
54
- <Avatar
55
- onClick={() => {
56
- alert('clicked avatar');
57
- }}
58
- altText="Profile"
59
- />
60
- <PrimaryButton>Sign Up</PrimaryButton>
61
- </DeprecatedHeader>;
62
- ```
63
-
64
- ## Special Children
65
-
66
- ### `nav, ul, li`
67
-
68
- > For a semantic navigation menu, this component will style a child `<nav>` element with an
69
- > un-ordered list inside (`<ul>`). This list can contain any number of `<li>` elements with `<a>`
70
- > elements. You can visually distinguish the link that your page is currently on by adding the class
71
- > name: `"current"` to the `<li>` element containing the current page link.
72
-
73
- ### `SystemIcon`
74
-
75
- _Deprecated (but supported) - please use `IconButton` instead._
76
-
77
- > The Header supports Canvas `SystemIcon` components, but will convert them into an `IconButton`
78
- > with the correct styling for the theme you've provided.
79
-
80
- ### A Note About `Buttons`
81
-
82
- > Please use a `Primary` Canvas `Button` for this component's call-to-action buttons (see the
83
- > [usage example](#usage) below).
84
-
85
- ## Static Properties
86
-
87
- #### `Theme: DeprecatedHeaderTheme`
88
-
89
- ```tsx
90
- <DeprecatedHeader title="Blue Header" themeColor={DeprecatedHeader.Theme.Blue} />
91
- ```
92
-
93
- ---
94
-
95
- #### `Variant: DeprecatedHeaderVariant`
96
-
97
- ```tsx
98
- <DeprecatedHeader title="Marketing Header" variant={DeprecatedHeader.Variant.Full} />
99
- ```
100
-
101
- ## Component Props
102
-
103
- ### Required
104
-
105
- > None
106
-
107
- ### Optional
108
-
109
- #### `title: string`
110
-
111
- > The title displayed on the header next to the logo.
112
-
113
- Default: `''`
114
-
115
- ---
116
-
117
- #### `themeColor: DeprecatedHeaderTheme`
118
-
119
- > The theme of the header (White, Blue, or Transparent).
120
-
121
- | Theme | Description |
122
- | ----------- | ------------------------------------------------------------------------------------------------ |
123
- | White | White background with dark-colored text, blue system icons. |
124
- | Blue | Dark blue gradient background with white text, white system icons. |
125
- | Transparent | Transparent background (intended for dark-colored overlays) with white text, white system icons. |
126
-
127
- Default: `DeprecatedHeaderTheme.White`
128
-
129
- ---
130
-
131
- #### `variant: DeprecatedHeaderVariant`
132
-
133
- > Specifies the variation of the header.
134
-
135
- | Variant | Description |
136
- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
137
- | Dub | "Dub" headers have a singular "Dub" logo and a title, separated by a equivalent-height divider. It is shorter in height (64px) than the "Full" variant. |
138
- | Full | "Full" headers have the full Workday logo and an optional title at minimum, separated by an equivalent-height divider (when a title is defined). It is taller in height (80px) than the "Dub" variant. |
139
-
140
- Default: `DeprecatedHeaderVariant.Dub`
141
-
142
- ---
143
-
144
- #### `brandUrl: string`
145
-
146
- > The href attribute when clicking on the title logo. Default: `'#'`
147
-
148
- ---
149
-
150
- #### `brand: React.ReactNode`
151
-
152
- > If specified, this replaces the contents of the Dub logo and title. Used for replacing Dub + title
153
- > with a `contained lockup` and/or for adding custon design elements next to the Dub + title lockup.
154
-
155
- Default: `DeprecatedDubLogoTitle` (for "Dub" variants) or `DeprecatedWorkdayLogoTitle` (for "Full" variants)
156
-
157
- ---
158
-
159
- #### `isCollapsed: boolean`
160
-
161
- > Indicates whether the children in the header should be collapsed.
162
- >
163
- > - The `nav` element collapses into a hamburger icon menu. Any `IconButton` or `SystemIcon` will
164
- > also collapse.
165
-
166
- ---
167
-
168
- #### `onMenuClick: (React.MouseEvent) => void`
169
-
170
- > A click handler for when the user clicks the mobile collapsed nav icon.
171
-
172
- ---
173
-
174
- #### `centeredNav: boolean`
175
-
176
- > When true, the header centers the nav in the middle of the header.
177
-
178
- #### `leftSlot: React.ReactElement`
179
-
180
- > A React element for the left of the header, this is typically a search bar component
181
-
182
- # Global Header (Deprecated)
183
-
184
- The Global Header (or App Header) is used for Workday applications.
185
-
186
- ## Usage
187
-
188
- ```tsx
189
- import {Avatar} from '@workday/canvas-kit-react/avatar';
190
- import {DeprecatedGlobalHeader, DeprecatedDubLogoTitle} from '@workday/canvas-kit-labs-react/header';
191
- import {SearchForm} from '@workday/canvas-kit-labs-react/search-form';
192
- import {Avatar} from '@workday/canvas-kit-react/avatar';
193
- import {IconButton} from '@workday/canvas-kit-react/button';
194
- import {notificationsIcon, inboxIcon} from '@workday/canvas-system-icons-web';
195
-
196
- const HeaderBrand = () => <DeprecatedDubLogoTitle themeColor={Header.Theme.White} />
197
- const HeaderAvatar = () => <Avatar onClick={handleMenuClick} url="https://my.cdn.amazonaws.com/assets/avatar_pic.png" />
198
- const handleSearchSubmit = event => {
199
- const query = (event.target as HTMLFormElement).getElementsByTagName('input')[0].value;
200
- console.log("Submitted query: ", query)
201
- }
202
- const openMenu = e => console.log("Menu opened")
203
-
204
- /**
205
- * In this instance, the right-most child will be an Avatar component, when the DeprecatedGlobalHeader
206
- * shrinks below the specified breakpoint (720 in this case), the children get replaced by a menuToggle.
207
- * For most DeprecatedGlobalHeader implementations, the menuToggle is also the Avatar component.
208
- */
209
- <DeprecatedGlobalHeader
210
- brand={<HeaderBrand />}
211
- menuToggle={<HeaderAvatar />}
212
- onMenuClick={openMenu}
213
- leftSlot={<SearchForm
214
- isCollapsed={false}
215
- grow={true}
216
- onSubmit={handleSearchSubmit}
217
- />}
218
- isCollapsed={false}
219
- >
220
- <IconButton icon={notificationsIcon} variant={IconButton.Variant.Circle} />
221
- <IconButton icon={inboxIcon} variant={IconButton.Variant.Circle} />
222
- <HeaderAvatar />
223
- </DeprecatedGlobalHeader>
224
- ```
225
-
226
- ## Static Properties
227
-
228
- > None
229
-
230
- ## Component Props
231
-
232
- ### Required
233
-
234
- > None
235
-
236
- ### Optional
237
-
238
- #### `brand: React.ReactNode`
239
-
240
- > If specified, this replaces the contents of the Dub logo and title. Used for replacing Dub + title
241
- > with a branded element and/or for adding custon design elements next to the Dub + title lockup.
242
-
243
- Default: `<DeprecatedDubLogoTitle />`
244
-
245
- #### `menuToggle: React.ReactNode`
246
-
247
- > _Note: This `menuToggle` slot only appears when the screen size shrinks below the `breakpoint`._
248
- >
249
- > For most `DeprecatedGlobalHeader` implementations, this is generally the same as the users' `Avatar`. If not
250
- > specified, `menuToggle` defaults to a "hamburger" menu icon or "justify" icon.
251
-
252
- Default: `justifyIcon` from `@workday/canvas-system-icons-web`
253
-
254
- #### `onMenuClick: (React.MouseEvent) => void`
255
-
256
- > A click handler for when the user clicks the `menuToggle` element.
257
-
258
- Default: `<DeprecatedDubLogoTitle />`
259
-
260
- #### `leftSlot: React.ReactElement`
261
-
262
- > A React element for the left of the header, this is typically a search bar component
263
-
264
- #### `isCollapsed: boolean`
265
-
266
- > If true, renders the header with the children collapsed.
267
-
268
- # "Dub" Logo and Title
269
-
270
- _Intended to be used in conjunction with the `DeprecatedHeader` component_
271
-
272
- A component that encapsulates the 'Dub' logo and a title (we call this the contained lockup). This
273
- is used whenever you want to override the contained lockup that comes default with a header, or if
274
- you want to add more elements next to the title with custom components or markup, or change the
275
- background color of the contained lockup
276
-
277
- ## Usage
278
-
279
- ```tsx
280
- import {DeprecatedHeader, DeprecatedDubLogoTitle} from '@workday/canvas-kit-labs-react/header';
281
- import {colors} from '@workday/canvas-kit-react/tokens';
282
-
283
- <DeprecatedHeader
284
- brand={<DeprecatedDubLogoTitle title="This title will show up instead" bgColor={colors.blueberry600} />}
285
- />;
286
- ```
287
-
288
- ## Static Properties
289
-
290
- > None
291
-
292
- ## Component Props
293
-
294
- ### Required
295
-
296
- #### `title: string`
297
-
298
- > The title displayed on the header next to the logo.
299
-
300
- Default: `''`
301
-
302
- ### Optional
303
-
304
- #### `themeColor: DeprecatedHeaderTheme`
305
-
306
- > The theme of the header (White, Blue, or Transparent).
307
-
308
- Default: `DeprecatedHeaderTheme.White`
309
-
310
- ---
311
-
312
- #### `bgColor: string`
313
-
314
- > Sets the `background` CSS property for the contained lockup.
315
-
316
- Default: `'none'`
317
-
318
- # Workday Logo and Title
319
-
320
- _Intended to be used in conjunction with the `DeprecatedHeader` component_
321
-
322
- A component that contains the full Workday logo and a title. This is used whenever you want to
323
- override the contained lockup that comes default with a header, or if you want to add more elements
324
- next to the title with custom components or markup.
325
-
326
- ## Usage
327
-
328
- ```tsx
329
- import {DeprecatedHeader, DeprecatedWorkdayLogoTitle} from '@workday/canvas-kit-labs-react/header';
330
-
331
- <DeprecatedHeader brand={<DeprecatedWorkdayLogoTitle title="Display Title" />} />;
332
- ```
333
-
334
- ## Static Properties
335
-
336
- > None
337
-
338
- ## Component Props
339
-
340
- ### Required
341
-
342
- > None
343
-
344
- ### Optional
345
-
346
- #### `themeColor: DeprecatedHeaderTheme`
347
-
348
- > The theme of the header (White, Blue, or Transparent). See the
349
- > [`themeColor`](#themecolor-headertheme) prop on the `DeprecatedHeader` component.
350
-
351
- Default: `DeprecatedHeaderTheme.White`
352
-
353
- ---
354
-
355
- #### `title: string`
356
-
357
- > The title displayed on the header next to the logo.
358
-
359
- Default `''`
package/header/index.ts DELETED
@@ -1,9 +0,0 @@
1
- import DeprecatedHeader from './lib/Header';
2
- import DeprecatedGlobalHeader from './lib/GlobalHeader';
3
-
4
- export default DeprecatedHeader;
5
- export {DeprecatedHeader};
6
- export {DeprecatedGlobalHeader};
7
- export * from './lib/parts';
8
- export * from './lib/shared/themes';
9
- export * from './lib/shared/types';
@@ -1,73 +0,0 @@
1
- import * as React from 'react';
2
- import DeprecatedHeader from './Header';
3
- import {DeprecatedHeaderVariant} from './shared/types';
4
- import {DeprecatedDubLogoTitle} from './parts';
5
-
6
- export interface GlobalHeaderProps {
7
- /**
8
- * The custom brand node of the GlobalHeader. This React node replaces the dub logo and title.
9
- * @default DubLogoTitle
10
- */
11
- brand?: React.ReactNode;
12
- /**
13
- * The custom menu toggle node of the GlobalHeader. This React node replaces the default menu toggle.
14
- */
15
- menuToggle?: React.ReactNode;
16
- /**
17
- * The function called when the responsive menu icon is clicked.
18
- */
19
- onMenuClick?: (e: React.MouseEvent) => void;
20
- /**
21
- * If true, render the GlobalHeader in collapsed mode.
22
- * @default false
23
- */
24
- isCollapsed?: boolean;
25
- /**
26
- * The React element to render in the left slot of the GlobalHeader. This is typically a SearchForm component.
27
- */
28
- leftSlot?: React.ReactElement;
29
- }
30
-
31
- /**
32
- * ### Deprecated Global Header
33
- *
34
- * As of Canvas Kit v6, this component is being soft-deprecated.
35
- * It will be hard-deprecated (completely removed) in v7. Please see the
36
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
37
- * for more information.
38
- */
39
- export default class DeprecatedGlobalHeader extends React.Component<GlobalHeaderProps> {
40
- componentDidMount() {
41
- console.warn(
42
- `GlobalHeader is being deprecated and will be removed in Canvas Kit V7.\n
43
- For more information, please see the V6 migration guide:\n
44
- https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page
45
- `
46
- );
47
- }
48
-
49
- public render() {
50
- const {
51
- brand = <DeprecatedDubLogoTitle />,
52
- menuToggle,
53
- onMenuClick,
54
- isCollapsed,
55
- leftSlot,
56
- children,
57
- ...elemProps
58
- } = this.props;
59
- return (
60
- <DeprecatedHeader
61
- brand={brand}
62
- menuToggle={menuToggle}
63
- leftSlot={leftSlot}
64
- onMenuClick={onMenuClick}
65
- variant={DeprecatedHeaderVariant.Global}
66
- isCollapsed={isCollapsed}
67
- {...elemProps}
68
- >
69
- {children}
70
- </DeprecatedHeader>
71
- );
72
- }
73
- }