@workday/canvas-kit-preview-react 8.0.0-alpha.254-next.23 → 8.0.0-alpha.428-next.2

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 (315) hide show
  1. package/color-picker/lib/ColorPicker.tsx +1 -1
  2. package/dist/commonjs/color-picker/lib/ColorPicker.js +25 -48
  3. package/dist/commonjs/color-picker/lib/parts/ColorReset.js +32 -23
  4. package/dist/commonjs/color-picker/lib/parts/SwatchBook.js +26 -39
  5. package/dist/commonjs/form-field/lib/FormField.d.ts +4 -10
  6. package/dist/commonjs/form-field/lib/FormField.d.ts.map +1 -1
  7. package/dist/commonjs/form-field/lib/FormField.js +10 -33
  8. package/dist/commonjs/form-field/lib/FormFieldHint.d.ts +1 -1
  9. package/dist/commonjs/form-field/lib/FormFieldHint.js +8 -31
  10. package/dist/commonjs/form-field/lib/FormFieldInput.d.ts +1 -1
  11. package/dist/commonjs/form-field/lib/FormFieldInput.js +6 -17
  12. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +2 -8
  13. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  14. package/dist/commonjs/form-field/lib/FormFieldLabel.js +8 -31
  15. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +3 -5
  16. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  17. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.js +4 -5
  18. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +3 -5
  19. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  20. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.js +5 -6
  21. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +3 -5
  22. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  23. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.js +4 -5
  24. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +2 -12
  25. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  26. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.js +9 -19
  27. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +4 -4
  28. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
  29. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.js +5 -5
  30. package/dist/commonjs/menu/lib/Menu.d.ts +16 -9
  31. package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
  32. package/dist/commonjs/menu/lib/Menu.js +108 -132
  33. package/dist/commonjs/menu/lib/MenuItem.d.ts +17 -7
  34. package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
  35. package/dist/commonjs/menu/lib/MenuItem.js +111 -114
  36. package/dist/commonjs/pill/lib/Pill.d.ts +103 -5
  37. package/dist/commonjs/pill/lib/Pill.d.ts.map +1 -1
  38. package/dist/commonjs/pill/lib/Pill.js +158 -64
  39. package/dist/commonjs/pill/lib/PillAvatar.js +6 -17
  40. package/dist/commonjs/pill/lib/PillCount.js +7 -30
  41. package/dist/commonjs/pill/lib/PillIcon.js +8 -31
  42. package/dist/commonjs/pill/lib/PillIconButton.js +13 -36
  43. package/dist/commonjs/pill/lib/PillLabel.js +10 -33
  44. package/dist/commonjs/pill/lib/usePillModel.js +8 -16
  45. package/dist/commonjs/segmented-control/index.d.ts +2 -0
  46. package/dist/commonjs/segmented-control/index.d.ts.map +1 -1
  47. package/dist/commonjs/segmented-control/index.js +4 -0
  48. package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +267 -82
  49. package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
  50. package/dist/commonjs/segmented-control/lib/SegmentedControl.js +42 -7
  51. package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts +9 -5
  52. package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts.map +1 -1
  53. package/dist/commonjs/segmented-control/lib/SegmentedControlItem.js +24 -49
  54. package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts +71 -2
  55. package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts.map +1 -1
  56. package/dist/commonjs/segmented-control/lib/SegmentedControlList.js +15 -40
  57. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +28 -9
  58. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +1 -1
  59. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.js +8 -10
  60. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.d.ts +233 -83
  61. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.d.ts.map +1 -1
  62. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.js +33 -32
  63. package/dist/commonjs/select/lib/Select.js +147 -187
  64. package/dist/commonjs/select/lib/SelectBase.js +106 -101
  65. package/dist/commonjs/select/lib/SelectMenu.js +53 -84
  66. package/dist/commonjs/select/lib/SelectOption.js +33 -47
  67. package/dist/commonjs/select/lib/scrolling.js +6 -7
  68. package/dist/commonjs/select/lib/utils.js +4 -4
  69. package/dist/commonjs/side-panel/lib/SidePanel.d.ts +13 -26
  70. package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
  71. package/dist/commonjs/side-panel/lib/SidePanel.js +95 -133
  72. package/dist/commonjs/side-panel/lib/SidePanelToggleButton.d.ts +17 -0
  73. package/dist/commonjs/side-panel/lib/SidePanelToggleButton.d.ts.map +1 -0
  74. package/dist/commonjs/side-panel/lib/SidePanelToggleButton.js +65 -0
  75. package/dist/commonjs/side-panel/lib/hooks.d.ts +20 -0
  76. package/dist/commonjs/side-panel/lib/hooks.d.ts.map +1 -1
  77. package/dist/commonjs/side-panel/lib/hooks.js +40 -21
  78. package/dist/commonjs/status-indicator/index.d.ts +2 -0
  79. package/dist/commonjs/status-indicator/index.d.ts.map +1 -1
  80. package/dist/commonjs/status-indicator/index.js +4 -0
  81. package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts +32 -8
  82. package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
  83. package/dist/commonjs/status-indicator/lib/StatusIndicator.js +37 -35
  84. package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.d.ts +10 -0
  85. package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.d.ts.map +1 -1
  86. package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.js +11 -23
  87. package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.js +5 -28
  88. package/dist/commonjs/status-indicator/lib/hooks/useStatusIndicatorModel.js +6 -15
  89. package/dist/commonjs/table/index.d.ts +2 -0
  90. package/dist/commonjs/table/index.d.ts.map +1 -0
  91. package/dist/commonjs/{text-area/lib/hooks → table}/index.js +1 -1
  92. package/dist/commonjs/table/lib/Table.d.ts +207 -0
  93. package/dist/commonjs/table/lib/Table.d.ts.map +1 -0
  94. package/dist/commonjs/table/lib/Table.js +229 -0
  95. package/dist/commonjs/table/lib/TableBody.d.ts +2 -0
  96. package/dist/commonjs/table/lib/TableBody.d.ts.map +1 -0
  97. package/dist/commonjs/table/lib/TableBody.js +35 -0
  98. package/dist/commonjs/table/lib/TableCaption.d.ts +2 -0
  99. package/dist/commonjs/table/lib/TableCaption.d.ts.map +1 -0
  100. package/dist/commonjs/table/lib/TableCaption.js +16 -0
  101. package/dist/commonjs/table/lib/TableCell.d.ts +2 -0
  102. package/dist/commonjs/table/lib/TableCell.d.ts.map +1 -0
  103. package/dist/commonjs/table/lib/TableCell.js +16 -0
  104. package/dist/commonjs/table/lib/TableFooter.d.ts +2 -0
  105. package/dist/commonjs/table/lib/TableFooter.d.ts.map +1 -0
  106. package/dist/commonjs/table/lib/TableFooter.js +15 -0
  107. package/dist/commonjs/table/lib/TableHead.d.ts +2 -0
  108. package/dist/commonjs/table/lib/TableHead.d.ts.map +1 -0
  109. package/dist/commonjs/table/lib/TableHead.js +23 -0
  110. package/dist/commonjs/table/lib/TableHeader.d.ts +2 -0
  111. package/dist/commonjs/table/lib/TableHeader.d.ts.map +1 -0
  112. package/dist/commonjs/table/lib/TableHeader.js +16 -0
  113. package/dist/commonjs/table/lib/TableRow.d.ts +2 -0
  114. package/dist/commonjs/table/lib/TableRow.d.ts.map +1 -0
  115. package/dist/commonjs/table/lib/TableRow.js +19 -0
  116. package/dist/commonjs/text-area/lib/TextArea.d.ts +2 -2
  117. package/dist/commonjs/text-area/lib/TextArea.d.ts.map +1 -1
  118. package/dist/commonjs/text-area/lib/TextArea.js +9 -33
  119. package/dist/commonjs/text-area/lib/TextAreaField.d.ts +1 -1
  120. package/dist/commonjs/text-area/lib/TextAreaField.d.ts.map +1 -1
  121. package/dist/commonjs/text-area/lib/TextAreaField.js +12 -36
  122. package/dist/commonjs/text-input/lib/TextInput.d.ts +4 -4
  123. package/dist/commonjs/text-input/lib/TextInput.d.ts.map +1 -1
  124. package/dist/commonjs/text-input/lib/TextInput.js +9 -33
  125. package/dist/commonjs/text-input/lib/TextInputField.d.ts +1 -1
  126. package/dist/commonjs/text-input/lib/TextInputField.d.ts.map +1 -1
  127. package/dist/commonjs/text-input/lib/TextInputField.js +13 -25
  128. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +3 -5
  129. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  130. package/dist/commonjs/text-input/lib/hooks/useTextInputField.js +3 -3
  131. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +1 -0
  132. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  133. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.js +2 -1
  134. package/dist/es6/color-picker/lib/ColorPicker.js +16 -39
  135. package/dist/es6/color-picker/lib/parts/ColorReset.js +27 -18
  136. package/dist/es6/color-picker/lib/parts/SwatchBook.js +21 -34
  137. package/dist/es6/form-field/lib/FormField.d.ts +4 -10
  138. package/dist/es6/form-field/lib/FormField.d.ts.map +1 -1
  139. package/dist/es6/form-field/lib/FormField.js +5 -28
  140. package/dist/es6/form-field/lib/FormFieldHint.d.ts +1 -1
  141. package/dist/es6/form-field/lib/FormFieldHint.js +4 -27
  142. package/dist/es6/form-field/lib/FormFieldInput.d.ts +1 -1
  143. package/dist/es6/form-field/lib/FormFieldInput.js +3 -14
  144. package/dist/es6/form-field/lib/FormFieldLabel.d.ts +2 -8
  145. package/dist/es6/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  146. package/dist/es6/form-field/lib/FormFieldLabel.js +5 -28
  147. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +3 -5
  148. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  149. package/dist/es6/form-field/lib/hooks/useFormFieldHint.js +2 -3
  150. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +3 -5
  151. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  152. package/dist/es6/form-field/lib/hooks/useFormFieldInput.js +3 -4
  153. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +3 -5
  154. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  155. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.js +2 -3
  156. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +2 -12
  157. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  158. package/dist/es6/form-field/lib/hooks/useFormFieldModel.js +9 -19
  159. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +4 -4
  160. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
  161. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.js +4 -4
  162. package/dist/es6/menu/lib/Menu.d.ts +16 -9
  163. package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
  164. package/dist/es6/menu/lib/Menu.js +103 -128
  165. package/dist/es6/menu/lib/MenuItem.d.ts +17 -7
  166. package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
  167. package/dist/es6/menu/lib/MenuItem.js +107 -111
  168. package/dist/es6/pill/lib/Pill.d.ts +103 -5
  169. package/dist/es6/pill/lib/Pill.d.ts.map +1 -1
  170. package/dist/es6/pill/lib/Pill.js +149 -55
  171. package/dist/es6/pill/lib/PillAvatar.js +3 -14
  172. package/dist/es6/pill/lib/PillCount.js +4 -27
  173. package/dist/es6/pill/lib/PillIcon.js +3 -26
  174. package/dist/es6/pill/lib/PillIconButton.js +7 -30
  175. package/dist/es6/pill/lib/PillLabel.js +5 -28
  176. package/dist/es6/pill/lib/usePillModel.js +8 -16
  177. package/dist/es6/segmented-control/index.d.ts +2 -0
  178. package/dist/es6/segmented-control/index.d.ts.map +1 -1
  179. package/dist/es6/segmented-control/index.js +2 -0
  180. package/dist/es6/segmented-control/lib/SegmentedControl.d.ts +267 -82
  181. package/dist/es6/segmented-control/lib/SegmentedControl.d.ts.map +1 -1
  182. package/dist/es6/segmented-control/lib/SegmentedControl.js +38 -3
  183. package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts +9 -5
  184. package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts.map +1 -1
  185. package/dist/es6/segmented-control/lib/SegmentedControlItem.js +17 -42
  186. package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts +71 -2
  187. package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts.map +1 -1
  188. package/dist/es6/segmented-control/lib/SegmentedControlList.js +9 -34
  189. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +28 -9
  190. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +1 -1
  191. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.js +5 -7
  192. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.d.ts +233 -83
  193. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.d.ts.map +1 -1
  194. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.js +31 -30
  195. package/dist/es6/select/lib/Select.js +144 -184
  196. package/dist/es6/select/lib/SelectBase.js +99 -94
  197. package/dist/es6/select/lib/SelectMenu.js +49 -80
  198. package/dist/es6/select/lib/SelectOption.js +30 -44
  199. package/dist/es6/select/lib/scrolling.js +6 -7
  200. package/dist/es6/select/lib/utils.js +4 -4
  201. package/dist/es6/side-panel/lib/SidePanel.d.ts +13 -26
  202. package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
  203. package/dist/es6/side-panel/lib/SidePanel.js +93 -130
  204. package/dist/es6/side-panel/lib/SidePanelToggleButton.d.ts +17 -0
  205. package/dist/es6/side-panel/lib/SidePanelToggleButton.d.ts.map +1 -0
  206. package/dist/es6/side-panel/lib/SidePanelToggleButton.js +43 -0
  207. package/dist/es6/side-panel/lib/hooks.d.ts +20 -0
  208. package/dist/es6/side-panel/lib/hooks.d.ts.map +1 -1
  209. package/dist/es6/side-panel/lib/hooks.js +37 -18
  210. package/dist/es6/status-indicator/index.d.ts +2 -0
  211. package/dist/es6/status-indicator/index.d.ts.map +1 -1
  212. package/dist/es6/status-indicator/index.js +2 -0
  213. package/dist/es6/status-indicator/lib/StatusIndicator.d.ts +32 -8
  214. package/dist/es6/status-indicator/lib/StatusIndicator.d.ts.map +1 -1
  215. package/dist/es6/status-indicator/lib/StatusIndicator.js +33 -31
  216. package/dist/es6/status-indicator/lib/StatusIndicatorIcon.d.ts +10 -0
  217. package/dist/es6/status-indicator/lib/StatusIndicatorIcon.d.ts.map +1 -1
  218. package/dist/es6/status-indicator/lib/StatusIndicatorIcon.js +6 -18
  219. package/dist/es6/status-indicator/lib/StatusIndicatorLabel.js +3 -26
  220. package/dist/es6/status-indicator/lib/hooks/useStatusIndicatorModel.js +6 -15
  221. package/dist/es6/table/index.d.ts +2 -0
  222. package/dist/es6/table/index.d.ts.map +1 -0
  223. package/dist/es6/table/index.js +1 -0
  224. package/dist/es6/table/lib/Table.d.ts +207 -0
  225. package/dist/es6/table/lib/Table.d.ts.map +1 -0
  226. package/dist/es6/table/lib/Table.js +223 -0
  227. package/dist/es6/table/lib/TableBody.d.ts +2 -0
  228. package/dist/es6/table/lib/TableBody.d.ts.map +1 -0
  229. package/dist/es6/table/lib/TableBody.js +29 -0
  230. package/dist/es6/table/lib/TableCaption.d.ts +2 -0
  231. package/dist/es6/table/lib/TableCaption.d.ts.map +1 -0
  232. package/dist/es6/table/lib/TableCaption.js +10 -0
  233. package/dist/es6/table/lib/TableCell.d.ts +2 -0
  234. package/dist/es6/table/lib/TableCell.d.ts.map +1 -0
  235. package/dist/es6/table/lib/TableCell.js +10 -0
  236. package/dist/es6/table/lib/TableFooter.d.ts +2 -0
  237. package/dist/es6/table/lib/TableFooter.d.ts.map +1 -0
  238. package/dist/es6/table/lib/TableFooter.js +9 -0
  239. package/dist/es6/table/lib/TableHead.d.ts +2 -0
  240. package/dist/es6/table/lib/TableHead.d.ts.map +1 -0
  241. package/dist/es6/table/lib/TableHead.js +17 -0
  242. package/dist/es6/table/lib/TableHeader.d.ts +2 -0
  243. package/dist/es6/table/lib/TableHeader.d.ts.map +1 -0
  244. package/dist/es6/table/lib/TableHeader.js +10 -0
  245. package/dist/es6/table/lib/TableRow.d.ts +2 -0
  246. package/dist/es6/table/lib/TableRow.d.ts.map +1 -0
  247. package/dist/es6/table/lib/TableRow.js +13 -0
  248. package/dist/es6/text-area/lib/TextArea.d.ts +2 -2
  249. package/dist/es6/text-area/lib/TextArea.d.ts.map +1 -1
  250. package/dist/es6/text-area/lib/TextArea.js +7 -31
  251. package/dist/es6/text-area/lib/TextAreaField.d.ts +1 -1
  252. package/dist/es6/text-area/lib/TextAreaField.d.ts.map +1 -1
  253. package/dist/es6/text-area/lib/TextAreaField.js +9 -33
  254. package/dist/es6/text-input/lib/TextInput.d.ts +4 -4
  255. package/dist/es6/text-input/lib/TextInput.d.ts.map +1 -1
  256. package/dist/es6/text-input/lib/TextInput.js +7 -31
  257. package/dist/es6/text-input/lib/TextInputField.d.ts +1 -1
  258. package/dist/es6/text-input/lib/TextInputField.d.ts.map +1 -1
  259. package/dist/es6/text-input/lib/TextInputField.js +12 -24
  260. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +3 -5
  261. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  262. package/dist/es6/text-input/lib/hooks/useTextInputField.js +1 -1
  263. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +1 -0
  264. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  265. package/dist/es6/text-input/lib/hooks/useTextInputModel.js +2 -1
  266. package/form-field/lib/FormField.tsx +5 -10
  267. package/form-field/lib/FormFieldLabel.tsx +6 -11
  268. package/form-field/lib/hooks/useFormFieldModel.tsx +1 -3
  269. package/form-field/lib/hooks/useFormFieldOrientation.tsx +6 -6
  270. package/menu/lib/Menu.tsx +16 -9
  271. package/menu/lib/MenuItem.tsx +19 -8
  272. package/package.json +4 -5
  273. package/pill/lib/Pill.tsx +109 -10
  274. package/pill/lib/PillCount.tsx +1 -1
  275. package/pill/lib/PillIcon.tsx +1 -1
  276. package/segmented-control/index.ts +2 -0
  277. package/segmented-control/lib/SegmentedControl.tsx +36 -0
  278. package/segmented-control/lib/SegmentedControlList.tsx +1 -1
  279. package/segmented-control/lib/hooks/useSegmentedControlItem.tsx +1 -5
  280. package/side-panel/lib/SidePanel.tsx +119 -169
  281. package/side-panel/lib/SidePanelToggleButton.tsx +78 -0
  282. package/side-panel/lib/hooks.ts +20 -0
  283. package/status-indicator/index.ts +2 -0
  284. package/status-indicator/lib/StatusIndicator.tsx +32 -6
  285. package/status-indicator/lib/StatusIndicatorIcon.tsx +1 -1
  286. package/table/LICENSE +51 -0
  287. package/table/README.md +5 -0
  288. package/table/index.ts +1 -0
  289. package/table/lib/Table.tsx +236 -0
  290. package/table/lib/TableBody.tsx +35 -0
  291. package/table/lib/TableCaption.tsx +22 -0
  292. package/table/lib/TableCell.tsx +27 -0
  293. package/table/lib/TableFooter.tsx +14 -0
  294. package/table/lib/TableHead.tsx +23 -0
  295. package/table/lib/TableHeader.tsx +28 -0
  296. package/table/lib/TableRow.tsx +26 -0
  297. package/table/package.json +6 -0
  298. package/text-area/lib/TextArea.tsx +9 -6
  299. package/text-area/lib/TextAreaField.tsx +6 -2
  300. package/text-input/lib/TextInput.tsx +9 -6
  301. package/text-input/lib/TextInputField.tsx +9 -5
  302. package/text-input/lib/hooks/useTextInputModel.ts +1 -0
  303. package/dist/commonjs/text-area/lib/hooks/index.d.ts +0 -2
  304. package/dist/commonjs/text-area/lib/hooks/index.d.ts.map +0 -1
  305. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +0 -28
  306. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts.map +0 -1
  307. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.js +0 -5
  308. package/dist/es6/text-area/lib/hooks/index.d.ts +0 -2
  309. package/dist/es6/text-area/lib/hooks/index.d.ts.map +0 -1
  310. package/dist/es6/text-area/lib/hooks/index.js +0 -1
  311. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +0 -28
  312. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts.map +0 -1
  313. package/dist/es6/text-area/lib/hooks/useTextAreaModel.js +0 -2
  314. package/text-area/lib/hooks/index.ts +0 -1
  315. package/text-area/lib/hooks/useTextAreaModel.ts +0 -3
@@ -1,23 +1,16 @@
1
1
  /** @jsxRuntime classic */
2
2
  /** @jsx jsx */
3
3
  import * as React from 'react';
4
- import {styled, useIsRTL} from '@workday/canvas-kit-react/common';
5
- import {css, jsx, keyframes, CSSObject} from '@emotion/react';
6
- import {TertiaryButton, TertiaryButtonProps} from '@workday/canvas-kit-react/button';
7
- import {space, colors, depth} from '@workday/canvas-kit-react/tokens';
8
- import {transformationImportIcon} from '@workday/canvas-system-icons-web';
9
- import {Tooltip} from '@workday/canvas-kit-react/tooltip';
4
+ import {createComponent, styled} from '@workday/canvas-kit-react/common';
5
+ import {jsx, keyframes, CSSObject} from '@emotion/react';
6
+ import {colors, depth} from '@workday/canvas-kit-react/tokens';
7
+ import {SidePanelContext} from './hooks';
8
+ import {SidePanelToggleButton} from './SidePanelToggleButton';
10
9
 
11
10
  export type SidePanelVariant = 'standard' | 'alternate';
12
11
  export type SidePanelTransitionStates = 'collapsed' | 'collapsing' | 'expanded' | 'expanding';
13
12
 
14
- export interface SidePanelProps extends React.HTMLAttributes<HTMLDivElement> {
15
- /**
16
- * The element the side panel will render as (e.g. 'div').
17
- *
18
- * @default 'section'
19
- */
20
- as?: React.ElementType;
13
+ export interface SidePanelProps {
21
14
  /**
22
15
  * The width of the component (in `px` if it's a `number`) when it is collapsed.
23
16
  *
@@ -67,6 +60,9 @@ export interface SidePanelProps extends React.HTMLAttributes<HTMLDivElement> {
67
60
  * @param boolean
68
61
  */
69
62
  touched: boolean;
63
+ children?: React.ReactNode;
64
+ onAnimationStart?: React.AnimationEventHandler<HTMLElement>;
65
+ onAnimationEnd?: React.AnimationEventHandler<HTMLElement>;
70
66
  }
71
67
 
72
68
  const createKeyframes = (from: number | string, to: number | string) => {
@@ -98,172 +94,126 @@ const containerVariantStyle: Record<SidePanelVariant, CSSObject> = {
98
94
  },
99
95
  };
100
96
 
101
- const Panel = styled('section')<Pick<SidePanelProps, 'as'>>({
97
+ const Panel = styled('section')({
102
98
  overflow: 'hidden',
103
99
  position: 'relative',
104
100
  boxSizing: 'border-box',
105
101
  height: '100%',
106
102
  });
107
103
 
108
- export const SidePanelContext = React.createContext({
109
- state: 'expanded',
110
- origin: 'left',
111
- });
112
-
113
- export const SidePanel = ({
114
- as = 'section',
115
- children,
116
- collapsedWidth = 64,
117
- expanded = true,
118
- expandedWidth = 320,
119
- onAnimationEnd,
120
- onAnimationStart,
121
- onExpandedChange,
122
- onStateTransition,
123
- origin = 'left',
124
- variant = 'standard',
125
- touched,
126
- ...elemProps
127
- }: SidePanelProps) => {
128
- const [state, setState] = React.useState<SidePanelTransitionStates>(
129
- expanded ? 'expanded' : 'collapsed'
130
- );
131
-
132
- React.useEffect(() => {
133
- if (typeof onExpandedChange !== 'undefined') {
134
- onExpandedChange(expanded);
135
- }
136
- }, [expanded, onExpandedChange]);
137
-
138
- React.useEffect(() => {
139
- if (typeof onStateTransition !== 'undefined') {
140
- onStateTransition(state);
141
- }
142
- }, [state, onStateTransition]);
143
-
144
- const motion = {
145
- collapse: createKeyframes(expandedWidth, collapsedWidth),
146
- expand: createKeyframes(collapsedWidth, expandedWidth),
147
- };
148
-
149
- const handleAnimationEnd = (event: React.AnimationEvent<HTMLDivElement>) => {
150
- if (event.currentTarget === event.target) {
151
- if (event.animationName === motion.collapse.name) {
152
- setState('collapsed');
104
+ export const SidePanel = createComponent('section')({
105
+ displayName: 'SidePanel',
106
+ Component(
107
+ {
108
+ children,
109
+ collapsedWidth = 64,
110
+ expanded = true,
111
+ expandedWidth = 320,
112
+ onAnimationEnd,
113
+ onAnimationStart,
114
+ onExpandedChange,
115
+ onStateTransition,
116
+ origin = 'left',
117
+ variant = 'standard',
118
+ touched,
119
+ ...elemProps
120
+ }: SidePanelProps,
121
+ ref,
122
+ Element
123
+ ) {
124
+ const [state, setState] = React.useState<SidePanelTransitionStates>(
125
+ expanded ? 'expanded' : 'collapsed'
126
+ );
127
+
128
+ React.useEffect(() => {
129
+ if (typeof onExpandedChange !== 'undefined') {
130
+ onExpandedChange(expanded);
153
131
  }
132
+ }, [expanded, onExpandedChange]);
154
133
 
155
- if (event.animationName === motion.expand.name) {
156
- setState('expanded');
134
+ React.useEffect(() => {
135
+ if (typeof onStateTransition !== 'undefined') {
136
+ onStateTransition(state);
157
137
  }
158
- }
159
-
160
- if (typeof onAnimationEnd !== 'undefined') {
161
- onAnimationEnd(event);
162
- }
163
- };
164
-
165
- const handleAnimationStart = (event: React.AnimationEvent<HTMLDivElement>) => {
166
- if (event.currentTarget === event.target) {
167
- if (
168
- event.animationName === motion.collapse.name ||
169
- event.animationName === motion.expand.name
170
- ) {
171
- setState(expanded ? 'expanding' : 'collapsing');
138
+ }, [state, onStateTransition]);
139
+
140
+ const motion = {
141
+ collapse: createKeyframes(expandedWidth, collapsedWidth),
142
+ expand: createKeyframes(collapsedWidth, expandedWidth),
143
+ };
144
+
145
+ const handleAnimationEnd = (event: React.AnimationEvent<HTMLDivElement>) => {
146
+ if (event.currentTarget === event.target) {
147
+ if (event.animationName === motion.collapse.name) {
148
+ setState('collapsed');
149
+ }
150
+
151
+ if (event.animationName === motion.expand.name) {
152
+ setState('expanded');
153
+ }
172
154
  }
173
- }
174
155
 
175
- if (typeof onAnimationStart !== 'undefined') {
176
- onAnimationStart(event);
177
- }
178
- };
156
+ if (typeof onAnimationEnd !== 'undefined') {
157
+ onAnimationEnd(event);
158
+ }
159
+ };
160
+
161
+ const handleAnimationStart = (event: React.AnimationEvent<HTMLDivElement>) => {
162
+ if (event.currentTarget === event.target) {
163
+ if (
164
+ event.animationName === motion.collapse.name ||
165
+ event.animationName === motion.expand.name
166
+ ) {
167
+ setState(expanded ? 'expanding' : 'collapsing');
168
+ }
169
+ }
179
170
 
180
- return (
181
- <Panel
182
- as={as}
183
- css={[
184
- {
185
- width: expanded ? expandedWidth : collapsedWidth,
186
- maxWidth: expanded ? expandedWidth : collapsedWidth,
187
- // mounted.current will be false on the first render, thus you won't get an unwanted animation here
188
- // Will animate again if you force a re-render (like in Storybook)
189
- animation: touched
190
- ? `${expanded ? motion.expand : motion.collapse} 200ms ease-out`
191
- : undefined,
192
- },
193
- containerVariantStyle[variant],
194
- ]}
195
- onAnimationEnd={handleAnimationEnd}
196
- onAnimationStart={handleAnimationStart}
197
- {...elemProps}
198
- >
199
- <SidePanelContext.Provider
200
- value={{
201
- state,
202
- origin,
203
- }}
171
+ if (typeof onAnimationStart !== 'undefined') {
172
+ onAnimationStart(event);
173
+ }
174
+ };
175
+
176
+ return (
177
+ <Panel
178
+ ref={ref}
179
+ as={Element}
180
+ css={[
181
+ {
182
+ width: expanded ? expandedWidth : collapsedWidth,
183
+ maxWidth: expanded ? expandedWidth : collapsedWidth,
184
+ // mounted.current will be false on the first render, thus you won't get an unwanted animation here
185
+ // Will animate again if you force a re-render (like in Storybook)
186
+ animation: touched
187
+ ? `${expanded ? motion.expand : motion.collapse} 200ms ease-out`
188
+ : undefined,
189
+ },
190
+ containerVariantStyle[variant],
191
+ ]}
192
+ onAnimationEnd={handleAnimationEnd}
193
+ onAnimationStart={handleAnimationStart}
194
+ {...elemProps}
204
195
  >
205
- {children}
206
- </SidePanelContext.Provider>
207
- </Panel>
208
- );
209
- };
210
-
211
- export type ToggleButtonProps = TertiaryButtonProps & {
212
- /**
213
- * The tooltip text to expand the side panel
214
- * @default 'Expand'
215
- */
216
- tooltipTextExpand?: string;
217
- /**
218
- * The tooltip text to collapse the side panel
219
- * @default 'Collapse'
220
- */
221
- tooltipTextCollapse?: string;
222
- };
223
-
224
- /**
225
- * A toggle button styled specifically for the side panel container.
226
- */
227
- const ToggleButton = ({
228
- variant = undefined,
229
- icon = transformationImportIcon,
230
- tooltipTextExpand: expandLabel = 'Expand',
231
- tooltipTextCollapse: collapseLabel = 'Collapse',
232
- ...rest
233
- }: ToggleButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>) => {
234
- const context = React.useContext(SidePanelContext);
235
-
236
- const useRTLOrigin = () => {
237
- const isRTL = useIsRTL();
238
- // if the direction is set to RTl, flip the origin
239
- if (isRTL) {
240
- return context.origin === 'left' ? 'right' : 'left';
241
- }
242
- // Otherwise, default to returning the origin
243
- return context.origin;
244
- };
245
-
246
- const rtlOrigin = useRTLOrigin();
247
-
248
- // Note: Depending on the collapsed width, the button could "jump" to it's final position.
249
- const buttonStyle = css({
250
- position: 'absolute',
251
- top: space.m,
252
- width: space.l,
253
- right: context.state === 'collapsed' ? 0 : rtlOrigin === 'left' ? space.s : undefined,
254
- left: context.state === 'collapsed' ? 0 : rtlOrigin === 'right' ? space.s : undefined,
255
- margin: context.state === 'collapsed' ? 'auto' : 0, // to override the -8px margin for TertiaryButton.Plain
256
- transform:
257
- context.state === 'collapsed' || context.state === 'collapsing'
258
- ? `scaleX(${rtlOrigin === 'left' ? '1' : '-1'})`
259
- : `scaleX(${rtlOrigin === 'left' ? '-1' : '1'})`,
260
- });
261
-
262
- return (
263
- <Tooltip title={context.state === 'collapsed' ? expandLabel : collapseLabel} type="muted">
264
- <TertiaryButton type="button" css={buttonStyle} icon={icon} variant={variant} {...rest} />
265
- </Tooltip>
266
- );
267
- };
268
-
269
- SidePanel.ToggleButton = ToggleButton;
196
+ <SidePanelContext.Provider
197
+ value={{
198
+ state,
199
+ origin,
200
+ }}
201
+ >
202
+ {children}
203
+ </SidePanelContext.Provider>
204
+ </Panel>
205
+ );
206
+ },
207
+ subComponents: {
208
+ /**
209
+ * `SidePanel.ToggleButton` is a control that is meant to toggle between `expanded = true` and
210
+ * `expanded = false` states. It must be used within the `SidePanel` component as a child. Use
211
+ * in conjunction with `useSidePanel`'s `controlProps`, otherwise it does not come with explicit
212
+ * `onClick` handlers.
213
+ *
214
+ * For accessibility purposes, it must be the first focusable element. We recommend that you
215
+ * keep it as the first child of `SidePanel`
216
+ */
217
+ ToggleButton: SidePanelToggleButton,
218
+ },
219
+ });
@@ -0,0 +1,78 @@
1
+ /** @jsxRuntime classic */
2
+ /** @jsx jsx */
3
+ import * as React from 'react';
4
+ import {createComponent, ExtractProps, useIsRTL} from '@workday/canvas-kit-react/common';
5
+ import {css, jsx} from '@emotion/react';
6
+ import {TertiaryButton} from '@workday/canvas-kit-react/button';
7
+ import {space} from '@workday/canvas-kit-react/tokens';
8
+ import {transformationImportIcon} from '@workday/canvas-system-icons-web';
9
+ import {Tooltip} from '@workday/canvas-kit-react/tooltip';
10
+ import {SidePanelContext} from './hooks';
11
+
12
+ export interface SidePanelToggleButtonProps extends ExtractProps<typeof TertiaryButton, never> {
13
+ /**
14
+ * The tooltip text to expand the side panel
15
+ */
16
+ tooltipTextExpand?: string;
17
+ /**
18
+ * The tooltip text to collapse the side panel
19
+ */
20
+ tooltipTextCollapse?: string;
21
+ }
22
+
23
+ /**
24
+ * A toggle button styled specifically for the side panel container.
25
+ */
26
+ export const SidePanelToggleButton = createComponent('button')({
27
+ displayName: 'SidePanel.ToggleButton',
28
+ Component({
29
+ variant = undefined,
30
+ icon = transformationImportIcon,
31
+ tooltipTextExpand = 'Expand',
32
+ tooltipTextCollapse = 'Collapse',
33
+ ...elemProps
34
+ }: SidePanelToggleButtonProps) {
35
+ const context = React.useContext(SidePanelContext);
36
+
37
+ const useRTLOrigin = () => {
38
+ const isRTL = useIsRTL();
39
+ // if the direction is set to RTl, flip the origin
40
+ if (isRTL) {
41
+ return context.origin === 'left' ? 'right' : 'left';
42
+ }
43
+ // Otherwise, default to returning the origin
44
+ return context.origin;
45
+ };
46
+
47
+ const rtlOrigin = useRTLOrigin();
48
+
49
+ // Note: Depending on the collapsed width, the button could "jump" to it's final position.
50
+ const buttonStyle = css({
51
+ position: 'absolute',
52
+ top: space.m,
53
+ width: space.l,
54
+ right: context.state === 'collapsed' ? 0 : rtlOrigin === 'left' ? space.s : undefined,
55
+ left: context.state === 'collapsed' ? 0 : rtlOrigin === 'right' ? space.s : undefined,
56
+ margin: context.state === 'collapsed' ? 'auto' : 0, // to override the -8px margin for TertiaryButton.Plain
57
+ transform:
58
+ context.state === 'collapsed' || context.state === 'collapsing'
59
+ ? `scaleX(${rtlOrigin === 'left' ? '1' : '-1'})`
60
+ : `scaleX(${rtlOrigin === 'left' ? '-1' : '1'})`,
61
+ });
62
+
63
+ return (
64
+ <Tooltip
65
+ title={context.state === 'collapsed' ? tooltipTextExpand : tooltipTextCollapse}
66
+ type="muted"
67
+ >
68
+ <TertiaryButton
69
+ type="button"
70
+ css={buttonStyle}
71
+ icon={icon}
72
+ variant={variant}
73
+ {...elemProps}
74
+ />
75
+ </Tooltip>
76
+ );
77
+ },
78
+ });
@@ -1,5 +1,10 @@
1
1
  import * as React from 'react';
2
2
 
3
+ export const SidePanelContext = React.createContext({
4
+ state: 'expanded',
5
+ origin: 'left',
6
+ });
7
+
3
8
  import {useUniqueId} from '@workday/canvas-kit-react/common';
4
9
  /**
5
10
  * The optional config options for the `useSidePanel` hook
@@ -77,6 +82,21 @@ export interface ControlProps {
77
82
  onClick: () => void;
78
83
  }
79
84
 
85
+ /**
86
+ *
87
+ * This hook manages the state and `aria-` attributes for the SidePanel. It takes an optional
88
+ * configuration object:
89
+ *
90
+ * ```tsx
91
+ * import {useSidePanel} from '@workday/canvas-kit-preview-react/side-panel';
92
+ *
93
+ * const {expanded, setExpanded, panelProps, labelProps, controlProps} = useSidePanel({
94
+ * initialExpanded: false,
95
+ * panelId: 'custom-panel-id',
96
+ * labelId: 'custom-label-id',
97
+ * });
98
+ * ```
99
+ */
80
100
  export const useSidePanel = (config?: UseSidePanelProps) => {
81
101
  const [touched, setTouched] = React.useState(false);
82
102
  const configParams = config
@@ -1 +1,3 @@
1
1
  export * from './lib/StatusIndicator';
2
+ export * from './lib/hooks/useStatusIndicatorModel';
3
+ export {useStatusIndicatorIcon} from './lib/StatusIndicatorIcon';
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
 
3
3
  import {ExtractProps, createContainer, createElemPropsHook} from '@workday/canvas-kit-react/common';
4
- import {HStack} from '@workday/canvas-kit-react/layout';
4
+ import {Flex} from '@workday/canvas-kit-react/layout';
5
5
  import {StatusIndicatorIcon, statusIndicatorColors} from './StatusIndicatorIcon';
6
6
  import {StatusIndicatorLabel} from './StatusIndicatorLabel';
7
7
  import {useStatusIndicatorModel} from './hooks';
8
8
 
9
- export interface StatusIndicatorProps extends Partial<ExtractProps<typeof HStack, never>> {
9
+ export interface StatusIndicatorProps extends ExtractProps<typeof Flex, never> {
10
10
  /**
11
11
  * Children of the `StatusIndicator`. Can contain a `StatusIndicator.Label` and optionally a `StatusIndicator.Icon`.
12
12
  */
@@ -22,18 +22,44 @@ export const useStatusIndicator = createElemPropsHook(useStatusIndicatorModel)((
22
22
  };
23
23
  });
24
24
 
25
+ /**
26
+ * `StatusIndicator` is a container component which renders an {@link Flex} under the hood to
27
+ * apply spacing evenly between its children. It has a default maximum width of `200px`.
28
+ *
29
+ * ```tsx
30
+ * <StatusIndicator emphasis="low" variant="blue">
31
+ * {Child components}
32
+ * </StatusIndicator>
33
+ * ```
34
+ */
25
35
  export const StatusIndicator = createContainer('div')({
26
36
  displayName: 'StatusIndicator',
27
37
  modelHook: useStatusIndicatorModel,
28
38
  elemPropsHook: useStatusIndicator,
29
39
  subComponents: {
30
- Icon: StatusIndicatorIcon,
40
+ /**
41
+ * `StatusIndicator.Label` renders {@link Text} under the hood. It will apply an ellipsis if its
42
+ * contents exceed the component's maximum width.
43
+ *
44
+ * ```tsx
45
+ * <StatusIndicator.Label>{The text to be rendered}</StatusIndicator.Label>
46
+ * ```
47
+ */
31
48
  Label: StatusIndicatorLabel,
49
+ /**
50
+ * `StatusIndicator.Icon` renders {@link SystemIcon} under the hood. It's used as a decorative
51
+ * element to visually support the {@link StatusIndicatorLabel StatusIndicator.Label} text.
52
+ *
53
+ * ```tsx
54
+ * <StatusIndicator.Icon icon={uploadCloudIcon} />
55
+ * ```
56
+ */
57
+ Icon: StatusIndicatorIcon,
32
58
  },
33
59
  })<StatusIndicatorProps>(({children, ...elemProps}, Element, model) => {
34
60
  return (
35
- <HStack
36
- spacing={4}
61
+ <Flex
62
+ gap="xxxs"
37
63
  as={Element}
38
64
  maxWidth={200}
39
65
  paddingX="xxxs"
@@ -44,6 +70,6 @@ export const StatusIndicator = createContainer('div')({
44
70
  {...elemProps}
45
71
  >
46
72
  {children}
47
- </HStack>
73
+ </Flex>
48
74
  );
49
75
  });
@@ -72,7 +72,7 @@ export const statusIndicatorColors = {
72
72
  },
73
73
  };
74
74
 
75
- const useStatusIndicatorIcon = createElemPropsHook(useStatusIndicatorModel)(({state}) => {
75
+ export const useStatusIndicatorIcon = createElemPropsHook(useStatusIndicatorModel)(({state}) => {
76
76
  const colors = statusIndicatorColors[state.variant][state.emphasis];
77
77
  return {
78
78
  color: colors.text,
package/table/LICENSE ADDED
@@ -0,0 +1,51 @@
1
+ Apache License, Version 2.0 Apache License Version 2.0, January 2004
2
+
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
9
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
10
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
11
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
12
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
13
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
14
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
15
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
16
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
17
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
18
+
19
+ 2. Grant of Copyright License.
20
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
21
+
22
+ 3. Grant of Patent License.
23
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
24
+
25
+ 4. Redistribution.
26
+ You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
27
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
28
+
29
+ 5. Submission of Contributions.
30
+ Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
31
+
32
+ 6. Trademarks.
33
+ This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
34
+
35
+ 7. Disclaimer of Warranty.
36
+ Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
37
+
38
+ 8. Limitation of Liability.
39
+ In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
40
+
41
+ 9. Accepting Warranty or Additional Liability.
42
+ While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
43
+
44
+ END OF TERMS AND CONDITIONS
45
+
46
+ ©2020. Workday, Inc. All rights reserved. Workday and the Workday logo are registered trademarks of Workday, Inc. All other brand and product names are trademarks or registered trademarks of their respective holders.
47
+
48
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
49
+ http://www.apache.org/licenses/LICENSE-2.0
50
+
51
+ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
@@ -0,0 +1,5 @@
1
+ # Canvas Kit Table
2
+
3
+ View the
4
+ [documentation for Table](https://workday.github.io/canvas-kit/?path=/docs/preview-table--basic) on
5
+ Storybook.
package/table/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './lib/Table';