@workday/canvas-kit-labs-react 7.0.0-alpha.0-next.5 → 7.0.0-alpha.100-next.25

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 (300) hide show
  1. package/combobox/README.md +1 -1
  2. package/combobox/lib/Combobox.tsx +7 -11
  3. package/common/index.ts +0 -8
  4. package/dist/commonjs/combobox/lib/Combobox.d.ts +3 -4
  5. package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
  6. package/dist/commonjs/combobox/lib/Combobox.js +4 -7
  7. package/dist/commonjs/common/index.d.ts +0 -8
  8. package/dist/commonjs/common/index.d.ts.map +1 -1
  9. package/dist/commonjs/common/index.js +0 -1
  10. package/dist/commonjs/drawer/lib/DrawerHeader.js +2 -2
  11. package/dist/commonjs/index.d.ts +0 -2
  12. package/dist/commonjs/index.d.ts.map +1 -1
  13. package/dist/commonjs/index.js +0 -2
  14. package/dist/commonjs/search-form/lib/SearchForm.d.ts +7 -2
  15. package/dist/commonjs/search-form/lib/SearchForm.d.ts.map +1 -1
  16. package/dist/commonjs/search-form/lib/SearchForm.js +16 -22
  17. package/dist/es6/combobox/lib/Combobox.d.ts +3 -4
  18. package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
  19. package/dist/es6/combobox/lib/Combobox.js +5 -8
  20. package/dist/es6/common/index.d.ts +0 -8
  21. package/dist/es6/common/index.d.ts.map +1 -1
  22. package/dist/es6/common/index.js +0 -1
  23. package/dist/es6/drawer/lib/DrawerHeader.js +3 -3
  24. package/dist/es6/index.d.ts +0 -2
  25. package/dist/es6/index.d.ts.map +1 -1
  26. package/dist/es6/index.js +0 -2
  27. package/dist/es6/search-form/lib/SearchForm.d.ts +7 -2
  28. package/dist/es6/search-form/lib/SearchForm.d.ts.map +1 -1
  29. package/dist/es6/search-form/lib/SearchForm.js +17 -23
  30. package/drawer/lib/DrawerHeader.tsx +3 -3
  31. package/index.ts +0 -2
  32. package/package.json +8 -19
  33. package/search-form/lib/SearchForm.tsx +25 -37
  34. package/common/lib/Box.tsx +0 -92
  35. package/common/lib/utils/border.ts +0 -263
  36. package/common/lib/utils/color.ts +0 -62
  37. package/common/lib/utils/depth.ts +0 -37
  38. package/common/lib/utils/flexItem.ts +0 -56
  39. package/common/lib/utils/layout.ts +0 -77
  40. package/common/lib/utils/other.ts +0 -20
  41. package/common/lib/utils/position.ts +0 -96
  42. package/common/lib/utils/space.ts +0 -207
  43. package/common/lib/utils/types.ts +0 -105
  44. package/dist/commonjs/common/lib/Box.d.ts +0 -31
  45. package/dist/commonjs/common/lib/Box.d.ts.map +0 -1
  46. package/dist/commonjs/common/lib/Box.js +0 -99
  47. package/dist/commonjs/common/lib/utils/border.d.ts +0 -103
  48. package/dist/commonjs/common/lib/utils/border.d.ts.map +0 -1
  49. package/dist/commonjs/common/lib/utils/border.js +0 -153
  50. package/dist/commonjs/common/lib/utils/color.d.ts +0 -26
  51. package/dist/commonjs/common/lib/utils/color.d.ts.map +0 -1
  52. package/dist/commonjs/common/lib/utils/color.js +0 -57
  53. package/dist/commonjs/common/lib/utils/depth.d.ts +0 -22
  54. package/dist/commonjs/common/lib/utils/depth.d.ts.map +0 -1
  55. package/dist/commonjs/common/lib/utils/depth.js +0 -29
  56. package/dist/commonjs/common/lib/utils/flexItem.d.ts +0 -33
  57. package/dist/commonjs/common/lib/utils/flexItem.d.ts.map +0 -1
  58. package/dist/commonjs/common/lib/utils/flexItem.js +0 -39
  59. package/dist/commonjs/common/lib/utils/layout.d.ts +0 -43
  60. package/dist/commonjs/common/lib/utils/layout.d.ts.map +0 -1
  61. package/dist/commonjs/common/lib/utils/layout.js +0 -43
  62. package/dist/commonjs/common/lib/utils/other.d.ts +0 -5
  63. package/dist/commonjs/common/lib/utils/other.d.ts.map +0 -1
  64. package/dist/commonjs/common/lib/utils/other.js +0 -19
  65. package/dist/commonjs/common/lib/utils/position.d.ts +0 -41
  66. package/dist/commonjs/common/lib/utils/position.d.ts.map +0 -1
  67. package/dist/commonjs/common/lib/utils/position.js +0 -78
  68. package/dist/commonjs/common/lib/utils/space.d.ts +0 -64
  69. package/dist/commonjs/common/lib/utils/space.d.ts.map +0 -1
  70. package/dist/commonjs/common/lib/utils/space.js +0 -161
  71. package/dist/commonjs/common/lib/utils/types.d.ts +0 -14
  72. package/dist/commonjs/common/lib/utils/types.d.ts.map +0 -1
  73. package/dist/commonjs/common/lib/utils/types.js +0 -2
  74. package/dist/commonjs/header/index.d.ts +0 -9
  75. package/dist/commonjs/header/index.d.ts.map +0 -1
  76. package/dist/commonjs/header/index.js +0 -24
  77. package/dist/commonjs/header/lib/GlobalHeader.d.ts +0 -38
  78. package/dist/commonjs/header/lib/GlobalHeader.d.ts.map +0 -1
  79. package/dist/commonjs/header/lib/GlobalHeader.js +0 -86
  80. package/dist/commonjs/header/lib/Header.d.ts +0 -76
  81. package/dist/commonjs/header/lib/Header.d.ts.map +0 -1
  82. package/dist/commonjs/header/lib/Header.js +0 -333
  83. package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +0 -30
  84. package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts.map +0 -1
  85. package/dist/commonjs/header/lib/parts/DubLogoTitle.js +0 -118
  86. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  87. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts.map +0 -1
  88. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.js +0 -137
  89. package/dist/commonjs/header/lib/parts/index.d.ts +0 -3
  90. package/dist/commonjs/header/lib/parts/index.d.ts.map +0 -1
  91. package/dist/commonjs/header/lib/parts/index.js +0 -7
  92. package/dist/commonjs/header/lib/shared/themes.d.ts +0 -43
  93. package/dist/commonjs/header/lib/shared/themes.d.ts.map +0 -1
  94. package/dist/commonjs/header/lib/shared/themes.js +0 -63
  95. package/dist/commonjs/header/lib/shared/types.d.ts +0 -15
  96. package/dist/commonjs/header/lib/shared/types.d.ts.map +0 -1
  97. package/dist/commonjs/header/lib/shared/types.js +0 -20
  98. package/dist/commonjs/layout/index.d.ts +0 -5
  99. package/dist/commonjs/layout/index.d.ts.map +0 -1
  100. package/dist/commonjs/layout/index.js +0 -14
  101. package/dist/commonjs/layout/lib/Flex.d.ts +0 -26
  102. package/dist/commonjs/layout/lib/Flex.d.ts.map +0 -1
  103. package/dist/commonjs/layout/lib/Flex.js +0 -83
  104. package/dist/commonjs/layout/lib/Stack.d.ts +0 -27
  105. package/dist/commonjs/layout/lib/Stack.d.ts.map +0 -1
  106. package/dist/commonjs/layout/lib/Stack.js +0 -99
  107. package/dist/commonjs/layout/lib/utils/flex.d.ts +0 -36
  108. package/dist/commonjs/layout/lib/utils/flex.d.ts.map +0 -1
  109. package/dist/commonjs/layout/lib/utils/flex.js +0 -38
  110. package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +0 -3
  111. package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts.map +0 -1
  112. package/dist/commonjs/layout/lib/utils/getValidChildren.js +0 -29
  113. package/dist/commonjs/layout/lib/utils/stack.d.ts +0 -26
  114. package/dist/commonjs/layout/lib/utils/stack.d.ts.map +0 -1
  115. package/dist/commonjs/layout/lib/utils/stack.js +0 -55
  116. package/dist/commonjs/layout/lib/utils/types.d.ts +0 -8
  117. package/dist/commonjs/layout/lib/utils/types.d.ts.map +0 -1
  118. package/dist/commonjs/layout/lib/utils/types.js +0 -2
  119. package/dist/es6/common/lib/Box.d.ts +0 -31
  120. package/dist/es6/common/lib/Box.d.ts.map +0 -1
  121. package/dist/es6/common/lib/Box.js +0 -74
  122. package/dist/es6/common/lib/utils/border.d.ts +0 -103
  123. package/dist/es6/common/lib/utils/border.d.ts.map +0 -1
  124. package/dist/es6/common/lib/utils/border.js +0 -149
  125. package/dist/es6/common/lib/utils/color.d.ts +0 -26
  126. package/dist/es6/common/lib/utils/color.d.ts.map +0 -1
  127. package/dist/es6/common/lib/utils/color.js +0 -53
  128. package/dist/es6/common/lib/utils/depth.d.ts +0 -22
  129. package/dist/es6/common/lib/utils/depth.d.ts.map +0 -1
  130. package/dist/es6/common/lib/utils/depth.js +0 -25
  131. package/dist/es6/common/lib/utils/flexItem.d.ts +0 -33
  132. package/dist/es6/common/lib/utils/flexItem.d.ts.map +0 -1
  133. package/dist/es6/common/lib/utils/flexItem.js +0 -35
  134. package/dist/es6/common/lib/utils/layout.d.ts +0 -43
  135. package/dist/es6/common/lib/utils/layout.d.ts.map +0 -1
  136. package/dist/es6/common/lib/utils/layout.js +0 -39
  137. package/dist/es6/common/lib/utils/other.d.ts +0 -5
  138. package/dist/es6/common/lib/utils/other.d.ts.map +0 -1
  139. package/dist/es6/common/lib/utils/other.js +0 -15
  140. package/dist/es6/common/lib/utils/position.d.ts +0 -41
  141. package/dist/es6/common/lib/utils/position.d.ts.map +0 -1
  142. package/dist/es6/common/lib/utils/position.js +0 -74
  143. package/dist/es6/common/lib/utils/space.d.ts +0 -64
  144. package/dist/es6/common/lib/utils/space.d.ts.map +0 -1
  145. package/dist/es6/common/lib/utils/space.js +0 -157
  146. package/dist/es6/common/lib/utils/types.d.ts +0 -14
  147. package/dist/es6/common/lib/utils/types.d.ts.map +0 -1
  148. package/dist/es6/common/lib/utils/types.js +0 -1
  149. package/dist/es6/header/index.d.ts +0 -9
  150. package/dist/es6/header/index.d.ts.map +0 -1
  151. package/dist/es6/header/index.js +0 -8
  152. package/dist/es6/header/lib/GlobalHeader.d.ts +0 -38
  153. package/dist/es6/header/lib/GlobalHeader.d.ts.map +0 -1
  154. package/dist/es6/header/lib/GlobalHeader.js +0 -62
  155. package/dist/es6/header/lib/Header.d.ts +0 -76
  156. package/dist/es6/header/lib/Header.d.ts.map +0 -1
  157. package/dist/es6/header/lib/Header.js +0 -309
  158. package/dist/es6/header/lib/parts/DubLogoTitle.d.ts +0 -30
  159. package/dist/es6/header/lib/parts/DubLogoTitle.d.ts.map +0 -1
  160. package/dist/es6/header/lib/parts/DubLogoTitle.js +0 -93
  161. package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  162. package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts.map +0 -1
  163. package/dist/es6/header/lib/parts/WorkdayLogoTitle.js +0 -112
  164. package/dist/es6/header/lib/parts/index.d.ts +0 -3
  165. package/dist/es6/header/lib/parts/index.d.ts.map +0 -1
  166. package/dist/es6/header/lib/parts/index.js +0 -2
  167. package/dist/es6/header/lib/shared/themes.d.ts +0 -43
  168. package/dist/es6/header/lib/shared/themes.d.ts.map +0 -1
  169. package/dist/es6/header/lib/shared/themes.js +0 -57
  170. package/dist/es6/header/lib/shared/types.d.ts +0 -15
  171. package/dist/es6/header/lib/shared/types.d.ts.map +0 -1
  172. package/dist/es6/header/lib/shared/types.js +0 -17
  173. package/dist/es6/layout/index.d.ts +0 -5
  174. package/dist/es6/layout/index.d.ts.map +0 -1
  175. package/dist/es6/layout/index.js +0 -2
  176. package/dist/es6/layout/lib/Flex.d.ts +0 -26
  177. package/dist/es6/layout/lib/Flex.d.ts.map +0 -1
  178. package/dist/es6/layout/lib/Flex.js +0 -58
  179. package/dist/es6/layout/lib/Stack.d.ts +0 -27
  180. package/dist/es6/layout/lib/Stack.d.ts.map +0 -1
  181. package/dist/es6/layout/lib/Stack.js +0 -74
  182. package/dist/es6/layout/lib/utils/flex.d.ts +0 -36
  183. package/dist/es6/layout/lib/utils/flex.d.ts.map +0 -1
  184. package/dist/es6/layout/lib/utils/flex.js +0 -34
  185. package/dist/es6/layout/lib/utils/getValidChildren.d.ts +0 -3
  186. package/dist/es6/layout/lib/utils/getValidChildren.d.ts.map +0 -1
  187. package/dist/es6/layout/lib/utils/getValidChildren.js +0 -6
  188. package/dist/es6/layout/lib/utils/stack.d.ts +0 -26
  189. package/dist/es6/layout/lib/utils/stack.d.ts.map +0 -1
  190. package/dist/es6/layout/lib/utils/stack.js +0 -51
  191. package/dist/es6/layout/lib/utils/types.d.ts +0 -8
  192. package/dist/es6/layout/lib/utils/types.d.ts.map +0 -1
  193. package/dist/es6/layout/lib/utils/types.js +0 -1
  194. package/header/LICENSE +0 -51
  195. package/header/README.md +0 -359
  196. package/header/index.ts +0 -9
  197. package/header/lib/GlobalHeader.tsx +0 -73
  198. package/header/lib/Header.tsx +0 -429
  199. package/header/lib/parts/DubLogoTitle.tsx +0 -99
  200. package/header/lib/parts/WorkdayLogoTitle.tsx +0 -120
  201. package/header/lib/parts/index.ts +0 -2
  202. package/header/lib/shared/themes.tsx +0 -97
  203. package/header/lib/shared/types.tsx +0 -16
  204. package/header/package.json +0 -5
  205. package/layout/LICENSE +0 -52
  206. package/layout/README.md +0 -16
  207. package/layout/index.ts +0 -4
  208. package/layout/lib/Flex.tsx +0 -47
  209. package/layout/lib/Stack.tsx +0 -95
  210. package/layout/lib/utils/flex.ts +0 -65
  211. package/layout/lib/utils/getValidChildren.ts +0 -7
  212. package/layout/lib/utils/stack.ts +0 -78
  213. package/layout/lib/utils/types.ts +0 -45
  214. package/layout/package.json +0 -5
  215. package/ts3.5/dist/commonjs/combobox/index.d.ts +0 -5
  216. package/ts3.5/dist/commonjs/combobox/lib/AutocompleteList.d.ts +0 -32
  217. package/ts3.5/dist/commonjs/combobox/lib/Combobox.d.ts +0 -64
  218. package/ts3.5/dist/commonjs/combobox/lib/Status.d.ts +0 -11
  219. package/ts3.5/dist/commonjs/common/index.d.ts +0 -12
  220. package/ts3.5/dist/commonjs/common/lib/Box.d.ts +0 -31
  221. package/ts3.5/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.d.ts +0 -26
  222. package/ts3.5/dist/commonjs/common/lib/storybook-utils/permutateProps.d.ts +0 -5
  223. package/ts3.5/dist/commonjs/common/lib/storybook-utils/propTypes.d.ts +0 -15
  224. package/ts3.5/dist/commonjs/common/lib/theming/index.d.ts +0 -3
  225. package/ts3.5/dist/commonjs/common/lib/theming/useThemeRTL.d.ts +0 -36
  226. package/ts3.5/dist/commonjs/common/lib/theming/useThemedRing.d.ts +0 -11
  227. package/ts3.5/dist/commonjs/common/lib/utils/border.d.ts +0 -103
  228. package/ts3.5/dist/commonjs/common/lib/utils/color.d.ts +0 -26
  229. package/ts3.5/dist/commonjs/common/lib/utils/depth.d.ts +0 -22
  230. package/ts3.5/dist/commonjs/common/lib/utils/flexItem.d.ts +0 -33
  231. package/ts3.5/dist/commonjs/common/lib/utils/layout.d.ts +0 -43
  232. package/ts3.5/dist/commonjs/common/lib/utils/other.d.ts +0 -5
  233. package/ts3.5/dist/commonjs/common/lib/utils/position.d.ts +0 -41
  234. package/ts3.5/dist/commonjs/common/lib/utils/space.d.ts +0 -64
  235. package/ts3.5/dist/commonjs/common/lib/utils/types.d.ts +0 -14
  236. package/ts3.5/dist/commonjs/drawer/index.d.ts +0 -6
  237. package/ts3.5/dist/commonjs/drawer/lib/Drawer.d.ts +0 -49
  238. package/ts3.5/dist/commonjs/drawer/lib/DrawerHeader.d.ts +0 -38
  239. package/ts3.5/dist/commonjs/header/index.d.ts +0 -9
  240. package/ts3.5/dist/commonjs/header/lib/GlobalHeader.d.ts +0 -38
  241. package/ts3.5/dist/commonjs/header/lib/Header.d.ts +0 -76
  242. package/ts3.5/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +0 -30
  243. package/ts3.5/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  244. package/ts3.5/dist/commonjs/header/lib/parts/index.d.ts +0 -3
  245. package/ts3.5/dist/commonjs/header/lib/shared/themes.d.ts +0 -43
  246. package/ts3.5/dist/commonjs/header/lib/shared/types.d.ts +0 -15
  247. package/ts3.5/dist/commonjs/index.d.ts +0 -7
  248. package/ts3.5/dist/commonjs/layout/index.d.ts +0 -5
  249. package/ts3.5/dist/commonjs/layout/lib/Flex.d.ts +0 -26
  250. package/ts3.5/dist/commonjs/layout/lib/Stack.d.ts +0 -27
  251. package/ts3.5/dist/commonjs/layout/lib/utils/flex.d.ts +0 -36
  252. package/ts3.5/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +0 -3
  253. package/ts3.5/dist/commonjs/layout/lib/utils/stack.d.ts +0 -26
  254. package/ts3.5/dist/commonjs/layout/lib/utils/types.d.ts +0 -8
  255. package/ts3.5/dist/commonjs/search-form/index.d.ts +0 -3
  256. package/ts3.5/dist/commonjs/search-form/lib/SearchForm.d.ts +0 -103
  257. package/ts3.5/dist/commonjs/search-form/lib/themes.d.ts +0 -21
  258. package/ts3.5/dist/es6/combobox/index.d.ts +0 -5
  259. package/ts3.5/dist/es6/combobox/lib/AutocompleteList.d.ts +0 -32
  260. package/ts3.5/dist/es6/combobox/lib/Combobox.d.ts +0 -64
  261. package/ts3.5/dist/es6/combobox/lib/Status.d.ts +0 -11
  262. package/ts3.5/dist/es6/common/index.d.ts +0 -12
  263. package/ts3.5/dist/es6/common/lib/Box.d.ts +0 -31
  264. package/ts3.5/dist/es6/common/lib/storybook-utils/ComponentStatesTable.d.ts +0 -26
  265. package/ts3.5/dist/es6/common/lib/storybook-utils/permutateProps.d.ts +0 -5
  266. package/ts3.5/dist/es6/common/lib/storybook-utils/propTypes.d.ts +0 -15
  267. package/ts3.5/dist/es6/common/lib/theming/index.d.ts +0 -3
  268. package/ts3.5/dist/es6/common/lib/theming/useThemeRTL.d.ts +0 -36
  269. package/ts3.5/dist/es6/common/lib/theming/useThemedRing.d.ts +0 -11
  270. package/ts3.5/dist/es6/common/lib/utils/border.d.ts +0 -103
  271. package/ts3.5/dist/es6/common/lib/utils/color.d.ts +0 -26
  272. package/ts3.5/dist/es6/common/lib/utils/depth.d.ts +0 -22
  273. package/ts3.5/dist/es6/common/lib/utils/flexItem.d.ts +0 -33
  274. package/ts3.5/dist/es6/common/lib/utils/layout.d.ts +0 -43
  275. package/ts3.5/dist/es6/common/lib/utils/other.d.ts +0 -5
  276. package/ts3.5/dist/es6/common/lib/utils/position.d.ts +0 -41
  277. package/ts3.5/dist/es6/common/lib/utils/space.d.ts +0 -64
  278. package/ts3.5/dist/es6/common/lib/utils/types.d.ts +0 -14
  279. package/ts3.5/dist/es6/drawer/index.d.ts +0 -6
  280. package/ts3.5/dist/es6/drawer/lib/Drawer.d.ts +0 -49
  281. package/ts3.5/dist/es6/drawer/lib/DrawerHeader.d.ts +0 -38
  282. package/ts3.5/dist/es6/header/index.d.ts +0 -9
  283. package/ts3.5/dist/es6/header/lib/GlobalHeader.d.ts +0 -38
  284. package/ts3.5/dist/es6/header/lib/Header.d.ts +0 -76
  285. package/ts3.5/dist/es6/header/lib/parts/DubLogoTitle.d.ts +0 -30
  286. package/ts3.5/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  287. package/ts3.5/dist/es6/header/lib/parts/index.d.ts +0 -3
  288. package/ts3.5/dist/es6/header/lib/shared/themes.d.ts +0 -43
  289. package/ts3.5/dist/es6/header/lib/shared/types.d.ts +0 -15
  290. package/ts3.5/dist/es6/index.d.ts +0 -7
  291. package/ts3.5/dist/es6/layout/index.d.ts +0 -5
  292. package/ts3.5/dist/es6/layout/lib/Flex.d.ts +0 -26
  293. package/ts3.5/dist/es6/layout/lib/Stack.d.ts +0 -27
  294. package/ts3.5/dist/es6/layout/lib/utils/flex.d.ts +0 -36
  295. package/ts3.5/dist/es6/layout/lib/utils/getValidChildren.d.ts +0 -3
  296. package/ts3.5/dist/es6/layout/lib/utils/stack.d.ts +0 -26
  297. package/ts3.5/dist/es6/layout/lib/utils/types.d.ts +0 -8
  298. package/ts3.5/dist/es6/search-form/index.d.ts +0 -3
  299. package/ts3.5/dist/es6/search-form/lib/SearchForm.d.ts +0 -103
  300. package/ts3.5/dist/es6/search-form/lib/themes.d.ts +0 -21
@@ -1,112 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __assign = (this && this.__assign) || function () {
15
- __assign = Object.assign || function(t) {
16
- for (var s, i = 1, n = arguments.length; i < n; i++) {
17
- s = arguments[i];
18
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
19
- t[p] = s[p];
20
- }
21
- return t;
22
- };
23
- return __assign.apply(this, arguments);
24
- };
25
- var __rest = (this && this.__rest) || function (s, e) {
26
- var t = {};
27
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
- t[p] = s[p];
29
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
- t[p[i]] = s[p[i]];
33
- }
34
- return t;
35
- };
36
- import * as React from 'react';
37
- import styled from '@emotion/styled';
38
- import { DeprecatedHeaderHeight, DeprecatedHeaderTheme, DeprecatedHeaderVariant, } from '../shared/types';
39
- import { miniWdayLogoBlue, wdayLogoWhite, wdayLogoBlue } from '@workday/canvas-kit-react/common';
40
- import { colors, space } from '@workday/canvas-kit-react/tokens';
41
- import chroma from 'chroma-js';
42
- var LockupContainer = styled('div')({
43
- display: 'inline-block',
44
- });
45
- var Lockup = styled('div')({
46
- display: 'flex',
47
- alignItems: 'center',
48
- justifyContent: 'center',
49
- }, function (_a) {
50
- var variant = _a.variant;
51
- return ({
52
- height: variant === DeprecatedHeaderVariant.Global
53
- ? DeprecatedHeaderHeight.Small
54
- : DeprecatedHeaderHeight.Large,
55
- });
56
- });
57
- var Title = styled('h3')({
58
- fontSize: '20px',
59
- fontWeight: 400,
60
- marginLeft: space.l,
61
- padding: space.s,
62
- paddingLeft: space.m,
63
- paddingRight: space.l,
64
- whiteSpace: 'nowrap',
65
- display: 'initial',
66
- }, function (_a) {
67
- var themeColor = _a.themeColor;
68
- return ({
69
- color: themeColor === DeprecatedHeaderTheme.White ? colors.blueberry500 : colors.frenchVanilla100,
70
- borderLeft: "1px solid " + (themeColor === DeprecatedHeaderTheme.White
71
- ? colors.soap400
72
- : chroma(colors.soap400)
73
- .alpha(0.4)
74
- .css()),
75
- });
76
- });
77
- var WorkdayLogo = styled('span')({
78
- paddingLeft: space.m,
79
- lineHeight: 0,
80
- });
81
- /**
82
- * ### Deprecated Workday Logo Title
83
- *
84
- * As of Canvas Kit v6, this component is being soft-deprecated.
85
- * It will be hard-deprecated (completely removed) in v7. Please see the
86
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
87
- * for more information.
88
- */
89
- var DeprecatedWorkdayLogoTitle = /** @class */ (function (_super) {
90
- __extends(DeprecatedWorkdayLogoTitle, _super);
91
- function DeprecatedWorkdayLogoTitle() {
92
- return _super !== null && _super.apply(this, arguments) || this;
93
- }
94
- DeprecatedWorkdayLogoTitle.prototype.componentDidMount = function () {
95
- console.warn("WorkdayLogoTitle is being deprecated and will be removed in Canvas Kit V7.\n\n For more information, please see the V6 migration guide:\n\n https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page\n ");
96
- };
97
- DeprecatedWorkdayLogoTitle.prototype.render = function () {
98
- var _a = this.props, _b = _a.themeColor, themeColor = _b === void 0 ? DeprecatedHeaderTheme.White : _b, _c = _a.title, title = _c === void 0 ? '' : _c, variant = _a.variant, elemProps = __rest(_a, ["themeColor", "title", "variant"]);
99
- return (React.createElement(LockupContainer, null,
100
- React.createElement(Lockup, __assign({}, this.props, elemProps),
101
- React.createElement(WorkdayLogo, __assign({}, this.props, { dangerouslySetInnerHTML: {
102
- __html: themeColor === DeprecatedHeaderTheme.White
103
- ? variant === DeprecatedHeaderVariant.Global
104
- ? miniWdayLogoBlue
105
- : wdayLogoBlue
106
- : wdayLogoWhite,
107
- } })),
108
- title && React.createElement(Title, __assign({}, this.props), title))));
109
- };
110
- return DeprecatedWorkdayLogoTitle;
111
- }(React.Component));
112
- export { DeprecatedWorkdayLogoTitle };
@@ -1,3 +0,0 @@
1
- export { DeprecatedDubLogoTitle } from './DubLogoTitle';
2
- export { DeprecatedWorkdayLogoTitle } from './WorkdayLogoTitle';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../header/lib/parts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAC,0BAA0B,EAAC,MAAM,oBAAoB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { DeprecatedDubLogoTitle } from './DubLogoTitle';
2
- export { DeprecatedWorkdayLogoTitle } from './WorkdayLogoTitle';
@@ -1,43 +0,0 @@
1
- import { CSSProperties } from '@workday/canvas-kit-react/tokens';
2
- /**
3
- * ### Deprecated Header Theme Attributes Interface
4
- *
5
- * As of Canvas Kit v6, this type interface is being soft-deprecated along with the rest of the labs/header package.
6
- * It will be hard-deprecated (completely removed) in v7. Please see the
7
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
8
- * for more information.
9
- */
10
- export interface DeprecatedHeaderThemeAttributes {
11
- color: string;
12
- background: string;
13
- depth: CSSProperties;
14
- systemIcon: {
15
- color: string;
16
- colorHover: string;
17
- };
18
- linkColor: string;
19
- linkFadeOutColor: string;
20
- currentLinkColor: string;
21
- chipColor: string;
22
- }
23
- /**
24
- * ### Deprecated Header Themes Interface
25
- *
26
- * As of Canvas Kit v6, this type interface is being soft-deprecated along with the rest of the labs/header package.
27
- * It will be hard-deprecated (completely removed) in v7. Please see the
28
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
29
- * for more information.
30
- */
31
- export interface DeprecatedHeaderThemes {
32
- [key: string]: DeprecatedHeaderThemeAttributes;
33
- }
34
- /**
35
- * ### Deprecated Header Themes
36
- *
37
- * As of Canvas Kit v6, this theme object is being soft-deprecated along with the rest of the labs/header package.
38
- * It will be hard-deprecated (completely removed) in v7. Please see the
39
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
40
- * for more information.
41
- */
42
- export declare const deprecatedHeaderThemes: DeprecatedHeaderThemes;
43
- //# sourceMappingURL=themes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../../../header/lib/shared/themes.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EACd,MAAM,kCAAkC,CAAC;AAI1C;;;;;;;GAOG;AACH,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,+BAA+B,CAAC;CAChD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,sBA4CpC,CAAC"}
@@ -1,57 +0,0 @@
1
- var _a;
2
- import { colors, gradients, iconColors, depth, } from '@workday/canvas-kit-react/tokens';
3
- import chroma from 'chroma-js';
4
- import { DeprecatedHeaderTheme } from './types';
5
- /**
6
- * ### Deprecated Header Themes
7
- *
8
- * As of Canvas Kit v6, this theme object is being soft-deprecated along with the rest of the labs/header package.
9
- * It will be hard-deprecated (completely removed) in v7. Please see the
10
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
11
- * for more information.
12
- */
13
- export var deprecatedHeaderThemes = (_a = {},
14
- _a[DeprecatedHeaderTheme.White] = {
15
- color: colors.blackPepper400,
16
- background: colors.frenchVanilla100,
17
- depth: depth['1'],
18
- systemIcon: {
19
- color: iconColors.standard,
20
- colorHover: iconColors.hover,
21
- },
22
- linkColor: colors.blackPepper400,
23
- linkFadeOutColor: colors.licorice200,
24
- currentLinkColor: colors.blueberry500,
25
- chipColor: colors.blueberry400,
26
- },
27
- _a[DeprecatedHeaderTheme.Blue] = {
28
- color: colors.frenchVanilla100,
29
- background: gradients.blueberry,
30
- depth: depth['3'],
31
- systemIcon: {
32
- color: colors.frenchVanilla100,
33
- colorHover: colors.blueberry200,
34
- },
35
- linkColor: colors.frenchVanilla100,
36
- linkFadeOutColor: chroma(colors.frenchVanilla100)
37
- .alpha(0.5)
38
- .css(),
39
- currentLinkColor: colors.frenchVanilla100,
40
- chipColor: colors.frenchVanilla100,
41
- },
42
- _a[DeprecatedHeaderTheme.Transparent] = {
43
- color: colors.frenchVanilla100,
44
- background: 'transparent',
45
- depth: { boxShadow: 'none' },
46
- systemIcon: {
47
- color: colors.frenchVanilla100,
48
- colorHover: colors.blueberry200,
49
- },
50
- linkColor: colors.frenchVanilla100,
51
- linkFadeOutColor: chroma(colors.frenchVanilla100)
52
- .alpha(0.5)
53
- .css(),
54
- currentLinkColor: colors.frenchVanilla100,
55
- chipColor: colors.frenchVanilla100,
56
- },
57
- _a);
@@ -1,15 +0,0 @@
1
- export declare enum DeprecatedHeaderTheme {
2
- White = 0,
3
- Blue = 1,
4
- Transparent = 2
5
- }
6
- export declare enum DeprecatedHeaderVariant {
7
- Dub = 0,
8
- Full = 1,
9
- Global = 2
10
- }
11
- export declare enum DeprecatedHeaderHeight {
12
- Small = "64px",
13
- Large = "80px"
14
- }
15
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../header/lib/shared/types.tsx"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,WAAW,IAAA;CACZ;AAED,oBAAY,uBAAuB;IACjC,GAAG,IAAA;IACH,IAAI,IAAA;IACJ,MAAM,IAAA;CACP;AAED,oBAAY,sBAAsB;IAChC,KAAK,SAAS;IACd,KAAK,SAAS;CACf"}
@@ -1,17 +0,0 @@
1
- export var DeprecatedHeaderTheme;
2
- (function (DeprecatedHeaderTheme) {
3
- DeprecatedHeaderTheme[DeprecatedHeaderTheme["White"] = 0] = "White";
4
- DeprecatedHeaderTheme[DeprecatedHeaderTheme["Blue"] = 1] = "Blue";
5
- DeprecatedHeaderTheme[DeprecatedHeaderTheme["Transparent"] = 2] = "Transparent";
6
- })(DeprecatedHeaderTheme || (DeprecatedHeaderTheme = {}));
7
- export var DeprecatedHeaderVariant;
8
- (function (DeprecatedHeaderVariant) {
9
- DeprecatedHeaderVariant[DeprecatedHeaderVariant["Dub"] = 0] = "Dub";
10
- DeprecatedHeaderVariant[DeprecatedHeaderVariant["Full"] = 1] = "Full";
11
- DeprecatedHeaderVariant[DeprecatedHeaderVariant["Global"] = 2] = "Global";
12
- })(DeprecatedHeaderVariant || (DeprecatedHeaderVariant = {}));
13
- export var DeprecatedHeaderHeight;
14
- (function (DeprecatedHeaderHeight) {
15
- DeprecatedHeaderHeight["Small"] = "64px";
16
- DeprecatedHeaderHeight["Large"] = "80px";
17
- })(DeprecatedHeaderHeight || (DeprecatedHeaderHeight = {}));
@@ -1,5 +0,0 @@
1
- export * from './lib/Flex';
2
- export * from './lib/Stack';
3
- export type { FlexStyleProps } from './lib/utils/flex';
4
- export type { StackSpacing, StackDirection, StackStyleProps } from './lib/utils/stack';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './lib/Flex';
2
- export * from './lib/Stack';
@@ -1,26 +0,0 @@
1
- import { BoxProps } from '@workday/canvas-kit-labs-react/common';
2
- import { FlexStyleProps } from './utils/flex';
3
- export declare type FlexProps = BoxProps & FlexStyleProps;
4
- /**
5
- * `Flex` is a low-level layout component that provides a common, ergonomic API for applying CSS flexbox styles.
6
- * It is highly flexible, and can be used on its own or to build other components.
7
- * `Flex` is built on top of `Box` and has access to all `BoxProps`.
8
- *
9
- * @example
10
- * import { Flex, FlexProps } from '@workday/canvas-kit-labs-react/layout';
11
- *
12
- * interface CardProps extends FlexProps {
13
- * // card-specific props
14
- * }
15
- *
16
- * // `Card`'s default values are set using `FlexProps`
17
- * const Card = (props: CardProps) => (
18
- * <Flex flexDirection="column" alignItems="flex-start" depth={2} space="m" {...props}>
19
- * <h1>Hello, Card!</h1>
20
- * <p>This card uses flexbox to set its layout.</p>
21
- * </Flex>
22
- * );
23
- *
24
- */
25
- export declare const Flex: import("@workday/canvas-kit-react/common").ElementComponent<"div", import("../../common/lib/utils/border").BorderShorthandStyleProps & import("../../common/lib/utils/border").BorderColorStyleProps & import("../../common/lib/utils/border").BorderRadiusStyleProps & import("../../common/lib/utils/border").BorderLineStyleProps & import("../../common/lib/utils/border").BorderWidthStyleProps & import("../../common/lib/utils/border").BorderLogicalStyleProps & import("../../common").ColorStyleProps & import("../../common").DepthStyleProps & import("../../common").FlexItemStyleProps & import("../../common").LayoutStyleProps & import("../../common/lib/utils/other").OtherStyleProps & import("../../common/lib/utils/position").PositionStandardProps & import("../../common/lib/utils/position").PositionLogicalProps & import("../../common/lib/utils/space").SpaceStandardProps & import("../../common/lib/utils/space").SpaceLogicalProps & FlexStyleProps>;
26
- //# sourceMappingURL=Flex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Flex.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAM,QAAQ,EAAC,MAAM,uCAAuC,CAAC;AAEpE,OAAO,EAAO,cAAc,EAAC,MAAM,cAAc,CAAC;AAElD,oBAAY,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;AASlD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,IAAI,q7BASf,CAAC"}
@@ -1,58 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import * as React from 'react';
24
- import styled from '@emotion/styled';
25
- import { createComponent } from '@workday/canvas-kit-react/common';
26
- import { Box } from '@workday/canvas-kit-labs-react/common';
27
- import { flex } from './utils/flex';
28
- var StyledFlex = styled(Box)({
29
- display: 'flex',
30
- }, flex);
31
- /**
32
- * `Flex` is a low-level layout component that provides a common, ergonomic API for applying CSS flexbox styles.
33
- * It is highly flexible, and can be used on its own or to build other components.
34
- * `Flex` is built on top of `Box` and has access to all `BoxProps`.
35
- *
36
- * @example
37
- * import { Flex, FlexProps } from '@workday/canvas-kit-labs-react/layout';
38
- *
39
- * interface CardProps extends FlexProps {
40
- * // card-specific props
41
- * }
42
- *
43
- * // `Card`'s default values are set using `FlexProps`
44
- * const Card = (props: CardProps) => (
45
- * <Flex flexDirection="column" alignItems="flex-start" depth={2} space="m" {...props}>
46
- * <h1>Hello, Card!</h1>
47
- * <p>This card uses flexbox to set its layout.</p>
48
- * </Flex>
49
- * );
50
- *
51
- */
52
- export var Flex = createComponent('div')({
53
- displayName: 'Flex',
54
- Component: function (_a, ref, Element) {
55
- var children = _a.children, elemProps = __rest(_a, ["children"]);
56
- return (React.createElement(StyledFlex, __assign({ as: Element, ref: ref }, elemProps), children));
57
- },
58
- });
@@ -1,27 +0,0 @@
1
- import { FlexProps } from './Flex';
2
- import { StackStyleProps } from './utils/stack';
3
- export declare type StackProps = FlexProps & StackStyleProps;
4
- export declare const Stack: import("@workday/canvas-kit-react/common").ElementComponent<"div", import("../../common/lib/utils/border").BorderShorthandStyleProps & import("../../common/lib/utils/border").BorderColorStyleProps & import("../../common/lib/utils/border").BorderRadiusStyleProps & import("../../common/lib/utils/border").BorderLineStyleProps & import("../../common/lib/utils/border").BorderWidthStyleProps & import("../../common/lib/utils/border").BorderLogicalStyleProps & import("../../common").ColorStyleProps & import("../../common").DepthStyleProps & import("../../common").FlexItemStyleProps & import("../../common").LayoutStyleProps & import("../../common/lib/utils/other").OtherStyleProps & import("../../common/lib/utils/position").PositionStandardProps & import("../../common/lib/utils/position").PositionLogicalProps & import("../../common/lib/utils/space").SpaceStandardProps & import("../../common/lib/utils/space").SpaceLogicalProps & import("..").FlexStyleProps & StackStyleProps> & {
5
- Item: import("@workday/canvas-kit-react/common").ElementComponent<"div", import("../../common/lib/utils/border").BorderShorthandStyleProps & import("../../common/lib/utils/border").BorderColorStyleProps & import("../../common/lib/utils/border").BorderRadiusStyleProps & import("../../common/lib/utils/border").BorderLineStyleProps & import("../../common/lib/utils/border").BorderWidthStyleProps & import("../../common/lib/utils/border").BorderLogicalStyleProps & import("../../common").ColorStyleProps & import("../../common").DepthStyleProps & import("../../common").FlexItemStyleProps & import("../../common").LayoutStyleProps & import("../../common/lib/utils/other").OtherStyleProps & import("../../common/lib/utils/position").PositionStandardProps & import("../../common/lib/utils/position").PositionLogicalProps & import("../../common/lib/utils/space").SpaceStandardProps & import("../../common/lib/utils/space").SpaceLogicalProps>;
6
- };
7
- export interface HStackProps extends StackProps {
8
- /**
9
- * sets the direction for the stack
10
- * @default "row"
11
- * */
12
- flexDirection?: 'row' | 'row-reverse';
13
- }
14
- export declare const HStack: import("@workday/canvas-kit-react/common").ElementComponent<"div", HStackProps> & {
15
- Item: import("@workday/canvas-kit-react/common").ElementComponent<"div", import("../../common/lib/utils/border").BorderShorthandStyleProps & import("../../common/lib/utils/border").BorderColorStyleProps & import("../../common/lib/utils/border").BorderRadiusStyleProps & import("../../common/lib/utils/border").BorderLineStyleProps & import("../../common/lib/utils/border").BorderWidthStyleProps & import("../../common/lib/utils/border").BorderLogicalStyleProps & import("../../common").ColorStyleProps & import("../../common").DepthStyleProps & import("../../common").FlexItemStyleProps & import("../../common").LayoutStyleProps & import("../../common/lib/utils/other").OtherStyleProps & import("../../common/lib/utils/position").PositionStandardProps & import("../../common/lib/utils/position").PositionLogicalProps & import("../../common/lib/utils/space").SpaceStandardProps & import("../../common/lib/utils/space").SpaceLogicalProps>;
16
- };
17
- export interface VStackProps extends StackProps {
18
- /**
19
- * sets the direction for the stack
20
- * @default "column"
21
- * */
22
- flexDirection?: 'column' | 'column-reverse';
23
- }
24
- export declare const VStack: import("@workday/canvas-kit-react/common").ElementComponent<"div", VStackProps> & {
25
- Item: import("@workday/canvas-kit-react/common").ElementComponent<"div", import("../../common/lib/utils/border").BorderShorthandStyleProps & import("../../common/lib/utils/border").BorderColorStyleProps & import("../../common/lib/utils/border").BorderRadiusStyleProps & import("../../common/lib/utils/border").BorderLineStyleProps & import("../../common/lib/utils/border").BorderWidthStyleProps & import("../../common/lib/utils/border").BorderLogicalStyleProps & import("../../common").ColorStyleProps & import("../../common").DepthStyleProps & import("../../common").FlexItemStyleProps & import("../../common").LayoutStyleProps & import("../../common/lib/utils/other").OtherStyleProps & import("../../common/lib/utils/position").PositionStandardProps & import("../../common/lib/utils/position").PositionLogicalProps & import("../../common/lib/utils/space").SpaceStandardProps & import("../../common/lib/utils/space").SpaceLogicalProps>;
26
- };
27
- //# sourceMappingURL=Stack.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Stack.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAO,SAAS,EAAC,MAAM,QAAQ,CAAC;AAEvC,OAAO,EAAQ,eAAe,EAAC,MAAM,eAAe,CAAC;AAErD,oBAAY,UAAU,GAAG,SAAS,GAAG,eAAe,CAAC;AA2BrD,eAAO,MAAM,KAAK;;CAehB,CAAC;AAEH,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C;;;SAGK;IACL,aAAa,CAAC,EAAE,KAAK,GAAG,aAAa,CAAC;CACvC;AAED,eAAO,MAAM,MAAM;;CAYjB,CAAC;AAEH,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C;;;SAGK;IACL,aAAa,CAAC,EAAE,QAAQ,GAAG,gBAAgB,CAAC;CAC7C;AAED,eAAO,MAAM,MAAM;;CAYjB,CAAC"}
@@ -1,74 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import * as React from 'react';
24
- import styled from '@emotion/styled';
25
- import { createComponent } from '@workday/canvas-kit-react/common';
26
- import { Box } from '@workday/canvas-kit-labs-react/common';
27
- import { Flex } from './Flex';
28
- import { getValidChildren } from './utils/getValidChildren';
29
- import { stack } from './utils/stack';
30
- var StackItem = createComponent('div')({
31
- displayName: 'Stack.Item',
32
- Component: function (_a, ref, Element) {
33
- var children = _a.children, elemProps = __rest(_a, ["children"]);
34
- return (React.createElement(Box, __assign({ as: Element, ref: ref, display: "inline-block", flex: "0 0 auto", minWidth: 0 }, elemProps), children));
35
- },
36
- });
37
- // prevent `spacing` prop from being passed through to the HTML element
38
- var shouldForwardProp = function (prop) {
39
- return prop !== 'spacing';
40
- };
41
- var StyledStack = styled(Flex, { shouldForwardProp: shouldForwardProp })(stack);
42
- export var Stack = createComponent('div')({
43
- displayName: 'Stack',
44
- Component: function (_a, ref, Element) {
45
- var children = _a.children, _b = _a.shouldWrapChildren, shouldWrapChildren = _b === void 0 ? false : _b, elemProps = __rest(_a, ["children", "shouldWrapChildren"]);
46
- var validChildren = getValidChildren(children);
47
- return (React.createElement(StyledStack, __assign({ as: Element, ref: ref, flexDirection: "row" }, elemProps), shouldWrapChildren
48
- ? validChildren.map(function (child) { return React.createElement(StackItem, null, child); })
49
- : validChildren));
50
- },
51
- subComponents: {
52
- Item: StackItem,
53
- },
54
- });
55
- export var HStack = createComponent('div')({
56
- displayName: 'HStack',
57
- Component: function (_a, ref, Element) {
58
- var children = _a.children, elemProps = __rest(_a, ["children"]);
59
- return (React.createElement(Stack, __assign({ as: Element, ref: ref, flexDirection: "row" }, elemProps), children));
60
- },
61
- subComponents: {
62
- Item: StackItem,
63
- },
64
- });
65
- export var VStack = createComponent('div')({
66
- displayName: 'VStack',
67
- Component: function (_a, ref, Element) {
68
- var children = _a.children, elemProps = __rest(_a, ["children"]);
69
- return (React.createElement(Stack, __assign({ as: Element, ref: ref, flexDirection: "column" }, elemProps), children));
70
- },
71
- subComponents: {
72
- Item: StackItem,
73
- },
74
- });
@@ -1,36 +0,0 @@
1
- import { PropertyAlignItems, PropertyAlignContent, PropertyJustifyItems, PropertyJustifyContent, PropertyFlexWrap, PropertyFlexDirection } from './types';
2
- /** style props to for flexbox container properties */
3
- export declare type FlexStyleProps = {
4
- /** sets `align-items` property */
5
- alignItems?: PropertyAlignItems;
6
- /** sets `align-content` property */
7
- alignContent?: PropertyAlignContent;
8
- /**
9
- * sets `display` property
10
- * @default 'flex'
11
- * */
12
- display?: 'flex' | 'inline-flex';
13
- /** sets `justify-items` property */
14
- justifyItems?: PropertyJustifyItems;
15
- /** sets `justify-content` property */
16
- justifyContent?: PropertyJustifyContent;
17
- /** sets `flex-wrap` property */
18
- flexWrap?: PropertyFlexWrap;
19
- /** sets `flex-direction` property */
20
- flexDirection?: PropertyFlexDirection;
21
- };
22
- /**
23
- * A style prop function that takes component props and returns flexbox styles.
24
- * If no `FlexStyleProps` are found, it returns an empty object.
25
- *
26
- * @example
27
- * // You'll most likely use `flex` with low-level, styled components
28
- * const FlexExample = () => (
29
- * <Flex justifyContent="center" alignItems="center">
30
- * Hello, flex!
31
- * </Flex>
32
- * );
33
- *
34
- */
35
- export declare function flex<P extends FlexStyleProps>(props: P): {};
36
- //# sourceMappingURL=flex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,sDAAsD;AACtD,oBAAY,cAAc,GAAG;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,oCAAoC;IACpC,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;;SAGK;IACL,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,oCAAoC;IACpC,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,sCAAsC;IACtC,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,qCAAqC;IACrC,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAYF;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,cAAc,EAAE,KAAK,EAAE,CAAC,MAWtD"}
@@ -1,34 +0,0 @@
1
- var flexProps = {
2
- alignContent: 'alignContent',
3
- alignItems: 'alignItems',
4
- display: 'display',
5
- flexDirection: 'flexDirection',
6
- flexWrap: 'flexWrap',
7
- justifyContent: 'justifyContent',
8
- justifyItems: 'justifyItems',
9
- };
10
- /**
11
- * A style prop function that takes component props and returns flexbox styles.
12
- * If no `FlexStyleProps` are found, it returns an empty object.
13
- *
14
- * @example
15
- * // You'll most likely use `flex` with low-level, styled components
16
- * const FlexExample = () => (
17
- * <Flex justifyContent="center" alignItems="center">
18
- * Hello, flex!
19
- * </Flex>
20
- * );
21
- *
22
- */
23
- export function flex(props) {
24
- var styles = {};
25
- for (var key in props) {
26
- if (key in flexProps) {
27
- var attr = flexProps[key];
28
- var value = props[key];
29
- // @ts-ignore TS doesn't like adding a potentially unknown key to an object, but because we own this object, it's fine.
30
- styles[attr] = value;
31
- }
32
- }
33
- return styles;
34
- }
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- export declare function getValidChildren(children: React.ReactNode): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>[];
3
- //# sourceMappingURL=getValidChildren.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getValidChildren.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/getValidChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,oJAIzD"}
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- export function getValidChildren(children) {
3
- return React.Children.toArray(children).filter(function (child) {
4
- return React.isValidElement(child);
5
- });
6
- }
@@ -1,26 +0,0 @@
1
- import { PartialEmotionCanvasTheme } from '@workday/canvas-kit-react/common';
2
- import { CanvasSpaceKeys } from '@workday/canvas-kit-react/tokens';
3
- export declare type StackDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
4
- declare const selector = "& > *:not(style) ~ *:not(style)";
5
- export declare type StackSpacing = CanvasSpaceKeys | number | (string & {});
6
- export declare type StackStyleProps = {
7
- /** sets space values between child elements (bidirectional support) */
8
- spacing: StackSpacing;
9
- /**
10
- * sets the direction for the stack
11
- * @default "row"
12
- * */
13
- flexDirection?: StackDirection;
14
- /**
15
- * when `true` wraps each child element in a `Stack.Item`
16
- * @default false
17
- * */
18
- shouldWrapChildren?: boolean;
19
- };
20
- export declare function stack<P extends StackStyleProps & {
21
- theme?: PartialEmotionCanvasTheme;
22
- }>(props: P): {
23
- "& > *:not(style) ~ *:not(style)": {};
24
- };
25
- export {};
26
- //# sourceMappingURL=stack.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAuB,eAAe,EAAC,MAAM,kCAAkC,CAAC;AAEvF,oBAAY,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAEjF,QAAA,MAAM,QAAQ,oCAAoC,CAAC;AAEnD,oBAAY,YAAY,GAAG,eAAe,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEpE,oBAAY,eAAe,GAAG;IAC5B,uEAAuE;IACvE,OAAO,EAAE,YAAY,CAAC;IACtB;;;SAGK;IACL,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B;;;SAGK;IACL,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AA+BF,wBAAgB,KAAK,CAAC,CAAC,SAAS,eAAe,GAAG;IAAC,KAAK,CAAC,EAAE,yBAAyB,CAAA;CAAC,EAAE,KAAK,EAAE,CAAC;;EAoB9F"}