@workday/canvas-kit-preview-react 7.1.5 → 7.2.0-427-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 (533) hide show
  1. package/color-picker/README.md +1 -1
  2. package/color-picker/index.ts +1 -1
  3. package/color-picker/lib/ColorPicker.tsx +3 -4
  4. package/dist/commonjs/color-picker/index.d.ts +1 -1
  5. package/dist/commonjs/color-picker/index.d.ts.map +1 -1
  6. package/dist/commonjs/color-picker/index.js +2 -6
  7. package/dist/commonjs/color-picker/lib/ColorPicker.d.ts +1 -2
  8. package/dist/commonjs/color-picker/lib/ColorPicker.d.ts.map +1 -1
  9. package/dist/commonjs/color-picker/lib/ColorPicker.js +28 -50
  10. package/dist/commonjs/color-picker/lib/parts/ColorReset.js +32 -23
  11. package/dist/commonjs/color-picker/lib/parts/SwatchBook.js +26 -39
  12. package/dist/commonjs/form-field/lib/FormField.d.ts +4 -19
  13. package/dist/commonjs/form-field/lib/FormField.d.ts.map +1 -1
  14. package/dist/commonjs/form-field/lib/FormField.js +10 -33
  15. package/dist/commonjs/form-field/lib/FormFieldHint.d.ts +1 -1
  16. package/dist/commonjs/form-field/lib/FormFieldHint.d.ts.map +1 -1
  17. package/dist/commonjs/form-field/lib/FormFieldHint.js +8 -32
  18. package/dist/commonjs/form-field/lib/FormFieldInput.d.ts +1 -1
  19. package/dist/commonjs/form-field/lib/FormFieldInput.js +6 -17
  20. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts +2 -8
  21. package/dist/commonjs/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  22. package/dist/commonjs/form-field/lib/FormFieldLabel.js +10 -39
  23. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts +3 -5
  24. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  25. package/dist/commonjs/form-field/lib/hooks/useFormFieldHint.js +4 -5
  26. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts +3 -5
  27. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  28. package/dist/commonjs/form-field/lib/hooks/useFormFieldInput.js +5 -6
  29. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts +3 -5
  30. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  31. package/dist/commonjs/form-field/lib/hooks/useFormFieldLabel.js +4 -5
  32. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts +2 -12
  33. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  34. package/dist/commonjs/form-field/lib/hooks/useFormFieldModel.js +9 -19
  35. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts +4 -4
  36. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
  37. package/dist/commonjs/form-field/lib/hooks/useFormFieldOrientation.js +5 -5
  38. package/dist/commonjs/index.d.ts +2 -1
  39. package/dist/commonjs/index.d.ts.map +1 -1
  40. package/dist/commonjs/index.js +2 -2
  41. package/dist/commonjs/menu/index.d.ts +1 -4
  42. package/dist/commonjs/menu/index.d.ts.map +1 -1
  43. package/dist/commonjs/menu/index.js +1 -9
  44. package/dist/commonjs/menu/lib/Menu.d.ts +44 -13
  45. package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
  46. package/dist/commonjs/menu/lib/Menu.js +127 -130
  47. package/dist/commonjs/menu/lib/MenuItem.d.ts +45 -14
  48. package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
  49. package/dist/commonjs/menu/lib/MenuItem.js +118 -106
  50. package/dist/commonjs/pill/lib/Pill.d.ts +101 -13
  51. package/dist/commonjs/pill/lib/Pill.d.ts.map +1 -1
  52. package/dist/commonjs/pill/lib/Pill.js +158 -64
  53. package/dist/commonjs/pill/lib/PillAvatar.js +6 -17
  54. package/dist/commonjs/pill/lib/PillCount.js +7 -30
  55. package/dist/commonjs/pill/lib/PillIcon.js +8 -31
  56. package/dist/commonjs/pill/lib/PillIconButton.js +13 -36
  57. package/dist/commonjs/pill/lib/PillLabel.js +10 -33
  58. package/dist/commonjs/pill/lib/usePillModel.js +8 -16
  59. package/dist/commonjs/segmented-control/index.d.ts +5 -0
  60. package/dist/commonjs/segmented-control/index.d.ts.map +1 -0
  61. package/dist/commonjs/segmented-control/index.js +18 -0
  62. package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts +1189 -0
  63. package/dist/commonjs/segmented-control/lib/SegmentedControl.d.ts.map +1 -0
  64. package/dist/commonjs/segmented-control/lib/SegmentedControl.js +57 -0
  65. package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts +107 -0
  66. package/dist/commonjs/segmented-control/lib/SegmentedControlItem.d.ts.map +1 -0
  67. package/dist/commonjs/segmented-control/lib/SegmentedControlItem.js +105 -0
  68. package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts +135 -0
  69. package/dist/commonjs/segmented-control/lib/SegmentedControlList.d.ts.map +1 -0
  70. package/dist/commonjs/segmented-control/lib/SegmentedControlList.js +41 -0
  71. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +79 -0
  72. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +1 -0
  73. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlItem.js +21 -0
  74. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.d.ts +1202 -0
  75. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.d.ts.map +1 -0
  76. package/dist/commonjs/segmented-control/lib/hooks/useSegmentedControlModel.js +75 -0
  77. package/dist/commonjs/select/index.d.ts +0 -3
  78. package/dist/commonjs/select/index.d.ts.map +1 -1
  79. package/dist/commonjs/select/index.js +0 -7
  80. package/dist/commonjs/select/lib/Select.d.ts +0 -1
  81. package/dist/commonjs/select/lib/Select.d.ts.map +1 -1
  82. package/dist/commonjs/select/lib/Select.js +147 -191
  83. package/dist/commonjs/select/lib/SelectBase.d.ts +2 -2
  84. package/dist/commonjs/select/lib/SelectBase.d.ts.map +1 -1
  85. package/dist/commonjs/select/lib/SelectBase.js +109 -107
  86. package/dist/commonjs/select/lib/SelectMenu.d.ts +2 -2
  87. package/dist/commonjs/select/lib/SelectMenu.d.ts.map +1 -1
  88. package/dist/commonjs/select/lib/SelectMenu.js +55 -86
  89. package/dist/commonjs/select/lib/SelectOption.d.ts +1 -2
  90. package/dist/commonjs/select/lib/SelectOption.d.ts.map +1 -1
  91. package/dist/commonjs/select/lib/SelectOption.js +35 -48
  92. package/dist/commonjs/select/lib/scrolling.js +6 -7
  93. package/dist/commonjs/select/lib/utils.js +4 -4
  94. package/dist/commonjs/side-panel/index.d.ts +0 -3
  95. package/dist/commonjs/side-panel/index.d.ts.map +1 -1
  96. package/dist/commonjs/side-panel/index.js +0 -7
  97. package/dist/commonjs/side-panel/lib/SidePanel.d.ts +13 -27
  98. package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
  99. package/dist/commonjs/side-panel/lib/SidePanel.js +95 -133
  100. package/dist/commonjs/side-panel/lib/SidePanelToggleButton.d.ts +17 -0
  101. package/dist/commonjs/side-panel/lib/SidePanelToggleButton.d.ts.map +1 -0
  102. package/dist/commonjs/side-panel/lib/SidePanelToggleButton.js +65 -0
  103. package/dist/commonjs/side-panel/lib/hooks.d.ts +20 -0
  104. package/dist/commonjs/side-panel/lib/hooks.d.ts.map +1 -1
  105. package/dist/commonjs/side-panel/lib/hooks.js +40 -21
  106. package/dist/commonjs/status-indicator/index.d.ts +4 -0
  107. package/dist/commonjs/status-indicator/index.d.ts.map +1 -0
  108. package/dist/commonjs/status-indicator/index.js +17 -0
  109. package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts +66 -0
  110. package/dist/commonjs/status-indicator/lib/StatusIndicator.d.ts.map +1 -0
  111. package/dist/commonjs/status-indicator/lib/StatusIndicator.js +57 -0
  112. package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.d.ts +83 -0
  113. package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.d.ts.map +1 -0
  114. package/dist/commonjs/status-indicator/lib/StatusIndicatorIcon.js +86 -0
  115. package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.d.ts +5 -0
  116. package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.d.ts.map +1 -0
  117. package/dist/commonjs/status-indicator/lib/StatusIndicatorLabel.js +15 -0
  118. package/dist/commonjs/status-indicator/lib/hooks/index.d.ts +2 -0
  119. package/dist/commonjs/status-indicator/lib/hooks/index.d.ts.map +1 -0
  120. package/dist/commonjs/{breadcrumbs → status-indicator/lib/hooks}/index.js +1 -5
  121. package/dist/commonjs/status-indicator/lib/hooks/useStatusIndicatorModel.d.ts +75 -0
  122. package/dist/commonjs/status-indicator/lib/hooks/useStatusIndicatorModel.d.ts.map +1 -0
  123. package/dist/commonjs/status-indicator/lib/hooks/useStatusIndicatorModel.js +25 -0
  124. package/dist/commonjs/table/index.d.ts +2 -0
  125. package/dist/commonjs/table/index.d.ts.map +1 -0
  126. package/dist/commonjs/{text-area/lib/hooks → table}/index.js +1 -1
  127. package/dist/commonjs/table/lib/Table.d.ts +207 -0
  128. package/dist/commonjs/table/lib/Table.d.ts.map +1 -0
  129. package/dist/commonjs/table/lib/Table.js +229 -0
  130. package/dist/commonjs/table/lib/TableBody.d.ts +2 -0
  131. package/dist/commonjs/table/lib/TableBody.d.ts.map +1 -0
  132. package/dist/commonjs/table/lib/TableBody.js +35 -0
  133. package/dist/commonjs/table/lib/TableCaption.d.ts +2 -0
  134. package/dist/commonjs/table/lib/TableCaption.d.ts.map +1 -0
  135. package/dist/commonjs/table/lib/TableCaption.js +16 -0
  136. package/dist/commonjs/table/lib/TableCell.d.ts +2 -0
  137. package/dist/commonjs/table/lib/TableCell.d.ts.map +1 -0
  138. package/dist/commonjs/table/lib/TableCell.js +16 -0
  139. package/dist/commonjs/table/lib/TableFooter.d.ts +2 -0
  140. package/dist/commonjs/table/lib/TableFooter.d.ts.map +1 -0
  141. package/dist/commonjs/table/lib/TableFooter.js +15 -0
  142. package/dist/commonjs/table/lib/TableHead.d.ts +2 -0
  143. package/dist/commonjs/table/lib/TableHead.d.ts.map +1 -0
  144. package/dist/commonjs/table/lib/TableHead.js +23 -0
  145. package/dist/commonjs/table/lib/TableHeader.d.ts +2 -0
  146. package/dist/commonjs/table/lib/TableHeader.d.ts.map +1 -0
  147. package/dist/commonjs/table/lib/TableHeader.js +16 -0
  148. package/dist/commonjs/table/lib/TableRow.d.ts +2 -0
  149. package/dist/commonjs/table/lib/TableRow.d.ts.map +1 -0
  150. package/dist/commonjs/table/lib/TableRow.js +19 -0
  151. package/dist/commonjs/text-area/lib/TextArea.d.ts +3 -12
  152. package/dist/commonjs/text-area/lib/TextArea.d.ts.map +1 -1
  153. package/dist/commonjs/text-area/lib/TextArea.js +9 -33
  154. package/dist/commonjs/text-area/lib/TextAreaField.d.ts +2 -2
  155. package/dist/commonjs/text-area/lib/TextAreaField.d.ts.map +1 -1
  156. package/dist/commonjs/text-area/lib/TextAreaField.js +25 -41
  157. package/dist/commonjs/text-input/lib/TextInput.d.ts +5 -14
  158. package/dist/commonjs/text-input/lib/TextInput.d.ts.map +1 -1
  159. package/dist/commonjs/text-input/lib/TextInput.js +9 -33
  160. package/dist/commonjs/text-input/lib/TextInputField.d.ts +2 -2
  161. package/dist/commonjs/text-input/lib/TextInputField.d.ts.map +1 -1
  162. package/dist/commonjs/text-input/lib/TextInputField.js +25 -30
  163. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +3 -5
  164. package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  165. package/dist/commonjs/text-input/lib/hooks/useTextInputField.js +3 -3
  166. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +1 -0
  167. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  168. package/dist/commonjs/text-input/lib/hooks/useTextInputModel.js +2 -1
  169. package/dist/es6/color-picker/index.d.ts +1 -1
  170. package/dist/es6/color-picker/index.d.ts.map +1 -1
  171. package/dist/es6/color-picker/index.js +1 -1
  172. package/dist/es6/color-picker/lib/ColorPicker.d.ts +1 -2
  173. package/dist/es6/color-picker/lib/ColorPicker.d.ts.map +1 -1
  174. package/dist/es6/color-picker/lib/ColorPicker.js +17 -41
  175. package/dist/es6/color-picker/lib/parts/ColorReset.js +27 -18
  176. package/dist/es6/color-picker/lib/parts/SwatchBook.js +21 -34
  177. package/dist/es6/form-field/lib/FormField.d.ts +4 -19
  178. package/dist/es6/form-field/lib/FormField.d.ts.map +1 -1
  179. package/dist/es6/form-field/lib/FormField.js +5 -28
  180. package/dist/es6/form-field/lib/FormFieldHint.d.ts +1 -1
  181. package/dist/es6/form-field/lib/FormFieldHint.d.ts.map +1 -1
  182. package/dist/es6/form-field/lib/FormFieldHint.js +7 -31
  183. package/dist/es6/form-field/lib/FormFieldInput.d.ts +1 -1
  184. package/dist/es6/form-field/lib/FormFieldInput.js +3 -14
  185. package/dist/es6/form-field/lib/FormFieldLabel.d.ts +2 -8
  186. package/dist/es6/form-field/lib/FormFieldLabel.d.ts.map +1 -1
  187. package/dist/es6/form-field/lib/FormFieldLabel.js +9 -38
  188. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts +3 -5
  189. package/dist/es6/form-field/lib/hooks/useFormFieldHint.d.ts.map +1 -1
  190. package/dist/es6/form-field/lib/hooks/useFormFieldHint.js +2 -3
  191. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts +3 -5
  192. package/dist/es6/form-field/lib/hooks/useFormFieldInput.d.ts.map +1 -1
  193. package/dist/es6/form-field/lib/hooks/useFormFieldInput.js +3 -4
  194. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts +3 -5
  195. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.d.ts.map +1 -1
  196. package/dist/es6/form-field/lib/hooks/useFormFieldLabel.js +2 -3
  197. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts +2 -12
  198. package/dist/es6/form-field/lib/hooks/useFormFieldModel.d.ts.map +1 -1
  199. package/dist/es6/form-field/lib/hooks/useFormFieldModel.js +9 -19
  200. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts +4 -4
  201. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.d.ts.map +1 -1
  202. package/dist/es6/form-field/lib/hooks/useFormFieldOrientation.js +4 -4
  203. package/dist/es6/index.d.ts +2 -1
  204. package/dist/es6/index.d.ts.map +1 -1
  205. package/dist/es6/index.js +2 -2
  206. package/dist/es6/menu/index.d.ts +1 -4
  207. package/dist/es6/menu/index.d.ts.map +1 -1
  208. package/dist/es6/menu/index.js +1 -4
  209. package/dist/es6/menu/lib/Menu.d.ts +44 -13
  210. package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
  211. package/dist/es6/menu/lib/Menu.js +120 -125
  212. package/dist/es6/menu/lib/MenuItem.d.ts +45 -14
  213. package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
  214. package/dist/es6/menu/lib/MenuItem.js +112 -102
  215. package/dist/es6/pill/lib/Pill.d.ts +107 -19
  216. package/dist/es6/pill/lib/Pill.d.ts.map +1 -1
  217. package/dist/es6/pill/lib/Pill.js +149 -55
  218. package/dist/es6/pill/lib/PillAvatar.d.ts +1 -2
  219. package/dist/es6/pill/lib/PillAvatar.d.ts.map +1 -1
  220. package/dist/es6/pill/lib/PillAvatar.js +3 -14
  221. package/dist/es6/pill/lib/PillCount.js +4 -27
  222. package/dist/es6/pill/lib/PillIcon.d.ts +1 -2
  223. package/dist/es6/pill/lib/PillIcon.d.ts.map +1 -1
  224. package/dist/es6/pill/lib/PillIcon.js +3 -26
  225. package/dist/es6/pill/lib/PillIconButton.d.ts +1 -2
  226. package/dist/es6/pill/lib/PillIconButton.d.ts.map +1 -1
  227. package/dist/es6/pill/lib/PillIconButton.js +7 -30
  228. package/dist/es6/pill/lib/PillLabel.d.ts +1 -2
  229. package/dist/es6/pill/lib/PillLabel.d.ts.map +1 -1
  230. package/dist/es6/pill/lib/PillLabel.js +5 -28
  231. package/dist/es6/pill/lib/usePillModel.d.ts +5 -5
  232. package/dist/es6/pill/lib/usePillModel.js +8 -16
  233. package/dist/es6/segmented-control/index.d.ts +5 -0
  234. package/dist/es6/segmented-control/index.d.ts.map +1 -0
  235. package/dist/es6/segmented-control/index.js +4 -0
  236. package/dist/es6/segmented-control/lib/SegmentedControl.d.ts +1189 -0
  237. package/dist/es6/segmented-control/lib/SegmentedControl.d.ts.map +1 -0
  238. package/dist/es6/segmented-control/lib/SegmentedControl.js +51 -0
  239. package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts +107 -0
  240. package/dist/es6/segmented-control/lib/SegmentedControlItem.d.ts.map +1 -0
  241. package/dist/es6/segmented-control/lib/SegmentedControlItem.js +83 -0
  242. package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts +135 -0
  243. package/dist/es6/segmented-control/lib/SegmentedControlList.d.ts.map +1 -0
  244. package/dist/es6/segmented-control/lib/SegmentedControlList.js +19 -0
  245. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts +79 -0
  246. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.d.ts.map +1 -0
  247. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlItem.js +18 -0
  248. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.d.ts +1202 -0
  249. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.d.ts.map +1 -0
  250. package/dist/es6/segmented-control/lib/hooks/useSegmentedControlModel.js +69 -0
  251. package/dist/es6/select/index.d.ts +0 -3
  252. package/dist/es6/select/index.d.ts.map +1 -1
  253. package/dist/es6/select/index.js +0 -3
  254. package/dist/es6/select/lib/Select.d.ts +0 -1
  255. package/dist/es6/select/lib/Select.d.ts.map +1 -1
  256. package/dist/es6/select/lib/Select.js +145 -186
  257. package/dist/es6/select/lib/SelectBase.d.ts +2 -2
  258. package/dist/es6/select/lib/SelectBase.d.ts.map +1 -1
  259. package/dist/es6/select/lib/SelectBase.js +101 -97
  260. package/dist/es6/select/lib/SelectMenu.d.ts +2 -2
  261. package/dist/es6/select/lib/SelectMenu.d.ts.map +1 -1
  262. package/dist/es6/select/lib/SelectMenu.js +49 -81
  263. package/dist/es6/select/lib/SelectOption.d.ts +1 -2
  264. package/dist/es6/select/lib/SelectOption.d.ts.map +1 -1
  265. package/dist/es6/select/lib/SelectOption.js +30 -45
  266. package/dist/es6/select/lib/scrolling.js +6 -7
  267. package/dist/es6/select/lib/utils.js +4 -4
  268. package/dist/es6/side-panel/index.d.ts +0 -3
  269. package/dist/es6/side-panel/index.d.ts.map +1 -1
  270. package/dist/es6/side-panel/index.js +0 -3
  271. package/dist/es6/side-panel/lib/SidePanel.d.ts +13 -27
  272. package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
  273. package/dist/es6/side-panel/lib/SidePanel.js +93 -131
  274. package/dist/es6/side-panel/lib/SidePanelToggleButton.d.ts +17 -0
  275. package/dist/es6/side-panel/lib/SidePanelToggleButton.d.ts.map +1 -0
  276. package/dist/es6/side-panel/lib/SidePanelToggleButton.js +43 -0
  277. package/dist/es6/side-panel/lib/hooks.d.ts +20 -0
  278. package/dist/es6/side-panel/lib/hooks.d.ts.map +1 -1
  279. package/dist/es6/side-panel/lib/hooks.js +37 -18
  280. package/dist/es6/status-indicator/index.d.ts +4 -0
  281. package/dist/es6/status-indicator/index.d.ts.map +1 -0
  282. package/dist/es6/status-indicator/index.js +3 -0
  283. package/dist/es6/status-indicator/lib/StatusIndicator.d.ts +66 -0
  284. package/dist/es6/status-indicator/lib/StatusIndicator.d.ts.map +1 -0
  285. package/dist/es6/status-indicator/lib/StatusIndicator.js +51 -0
  286. package/dist/es6/status-indicator/lib/StatusIndicatorIcon.d.ts +83 -0
  287. package/dist/es6/status-indicator/lib/StatusIndicatorIcon.d.ts.map +1 -0
  288. package/dist/es6/status-indicator/lib/StatusIndicatorIcon.js +80 -0
  289. package/dist/es6/status-indicator/lib/StatusIndicatorLabel.d.ts +5 -0
  290. package/dist/es6/status-indicator/lib/StatusIndicatorLabel.d.ts.map +1 -0
  291. package/dist/es6/status-indicator/lib/StatusIndicatorLabel.js +9 -0
  292. package/dist/es6/status-indicator/lib/hooks/index.d.ts +2 -0
  293. package/dist/es6/status-indicator/lib/hooks/index.d.ts.map +1 -0
  294. package/dist/es6/status-indicator/lib/hooks/index.js +1 -0
  295. package/dist/es6/status-indicator/lib/hooks/useStatusIndicatorModel.d.ts +75 -0
  296. package/dist/es6/status-indicator/lib/hooks/useStatusIndicatorModel.d.ts.map +1 -0
  297. package/dist/es6/status-indicator/lib/hooks/useStatusIndicatorModel.js +22 -0
  298. package/dist/es6/table/index.d.ts +2 -0
  299. package/dist/es6/table/index.d.ts.map +1 -0
  300. package/dist/es6/table/index.js +1 -0
  301. package/dist/es6/table/lib/Table.d.ts +207 -0
  302. package/dist/es6/table/lib/Table.d.ts.map +1 -0
  303. package/dist/es6/table/lib/Table.js +223 -0
  304. package/dist/es6/table/lib/TableBody.d.ts +2 -0
  305. package/dist/es6/table/lib/TableBody.d.ts.map +1 -0
  306. package/dist/es6/table/lib/TableBody.js +29 -0
  307. package/dist/es6/table/lib/TableCaption.d.ts +2 -0
  308. package/dist/es6/table/lib/TableCaption.d.ts.map +1 -0
  309. package/dist/es6/table/lib/TableCaption.js +10 -0
  310. package/dist/es6/table/lib/TableCell.d.ts +2 -0
  311. package/dist/es6/table/lib/TableCell.d.ts.map +1 -0
  312. package/dist/es6/table/lib/TableCell.js +10 -0
  313. package/dist/es6/table/lib/TableFooter.d.ts +2 -0
  314. package/dist/es6/table/lib/TableFooter.d.ts.map +1 -0
  315. package/dist/es6/table/lib/TableFooter.js +9 -0
  316. package/dist/es6/table/lib/TableHead.d.ts +2 -0
  317. package/dist/es6/table/lib/TableHead.d.ts.map +1 -0
  318. package/dist/es6/table/lib/TableHead.js +17 -0
  319. package/dist/es6/table/lib/TableHeader.d.ts +2 -0
  320. package/dist/es6/table/lib/TableHeader.d.ts.map +1 -0
  321. package/dist/es6/table/lib/TableHeader.js +10 -0
  322. package/dist/es6/table/lib/TableRow.d.ts +2 -0
  323. package/dist/es6/table/lib/TableRow.d.ts.map +1 -0
  324. package/dist/es6/table/lib/TableRow.js +13 -0
  325. package/dist/es6/text-area/lib/TextArea.d.ts +3 -12
  326. package/dist/es6/text-area/lib/TextArea.d.ts.map +1 -1
  327. package/dist/es6/text-area/lib/TextArea.js +7 -31
  328. package/dist/es6/text-area/lib/TextAreaField.d.ts +2 -2
  329. package/dist/es6/text-area/lib/TextAreaField.d.ts.map +1 -1
  330. package/dist/es6/text-area/lib/TextAreaField.js +22 -38
  331. package/dist/es6/text-input/lib/TextInput.d.ts +5 -14
  332. package/dist/es6/text-input/lib/TextInput.d.ts.map +1 -1
  333. package/dist/es6/text-input/lib/TextInput.js +7 -31
  334. package/dist/es6/text-input/lib/TextInputField.d.ts +2 -2
  335. package/dist/es6/text-input/lib/TextInputField.d.ts.map +1 -1
  336. package/dist/es6/text-input/lib/TextInputField.js +24 -29
  337. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +3 -5
  338. package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts.map +1 -1
  339. package/dist/es6/text-input/lib/hooks/useTextInputField.js +1 -1
  340. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +1 -0
  341. package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts.map +1 -1
  342. package/dist/es6/text-input/lib/hooks/useTextInputModel.js +2 -1
  343. package/form-field/lib/FormField.tsx +5 -10
  344. package/form-field/lib/FormFieldHint.tsx +23 -30
  345. package/form-field/lib/FormFieldLabel.tsx +18 -33
  346. package/form-field/lib/hooks/useFormFieldModel.tsx +1 -3
  347. package/form-field/lib/hooks/useFormFieldOrientation.tsx +6 -6
  348. package/index.ts +2 -3
  349. package/menu/index.ts +1 -6
  350. package/menu/lib/Menu.tsx +81 -27
  351. package/menu/lib/MenuItem.tsx +63 -19
  352. package/package.json +6 -6
  353. package/pill/lib/Pill.tsx +109 -10
  354. package/pill/lib/PillCount.tsx +1 -1
  355. package/pill/lib/PillIcon.tsx +1 -1
  356. package/segmented-control/LICENSE +126 -0
  357. package/segmented-control/README.md +6 -0
  358. package/segmented-control/index.ts +4 -0
  359. package/segmented-control/lib/SegmentedControl.tsx +57 -0
  360. package/segmented-control/lib/SegmentedControlItem.tsx +175 -0
  361. package/segmented-control/lib/SegmentedControlList.tsx +49 -0
  362. package/segmented-control/lib/hooks/useSegmentedControlItem.tsx +33 -0
  363. package/segmented-control/lib/hooks/useSegmentedControlModel.tsx +75 -0
  364. package/segmented-control/package.json +6 -0
  365. package/select/README.md +7 -7
  366. package/select/index.ts +0 -4
  367. package/select/lib/Select.tsx +1 -3
  368. package/select/lib/SelectBase.tsx +3 -5
  369. package/select/lib/SelectMenu.tsx +1 -3
  370. package/select/lib/SelectOption.tsx +1 -3
  371. package/side-panel/index.ts +0 -4
  372. package/side-panel/lib/SidePanel.tsx +119 -170
  373. package/side-panel/lib/SidePanelToggleButton.tsx +78 -0
  374. package/side-panel/lib/hooks.ts +20 -0
  375. package/status-indicator/LICENSE +52 -0
  376. package/status-indicator/README.md +12 -0
  377. package/status-indicator/index.ts +3 -0
  378. package/status-indicator/lib/StatusIndicator.tsx +75 -0
  379. package/status-indicator/lib/StatusIndicatorIcon.tsx +88 -0
  380. package/status-indicator/lib/StatusIndicatorLabel.tsx +28 -0
  381. package/status-indicator/lib/hooks/index.ts +1 -0
  382. package/status-indicator/lib/hooks/useStatusIndicatorModel.tsx +29 -0
  383. package/status-indicator/package.json +6 -0
  384. package/{breadcrumbs → table}/LICENSE +0 -1
  385. package/table/README.md +5 -0
  386. package/table/index.ts +1 -0
  387. package/table/lib/Table.tsx +236 -0
  388. package/table/lib/TableBody.tsx +35 -0
  389. package/table/lib/TableCaption.tsx +22 -0
  390. package/table/lib/TableCell.tsx +27 -0
  391. package/table/lib/TableFooter.tsx +14 -0
  392. package/table/lib/TableHead.tsx +23 -0
  393. package/table/lib/TableHeader.tsx +28 -0
  394. package/table/lib/TableRow.tsx +26 -0
  395. package/table/package.json +6 -0
  396. package/text-area/lib/TextArea.tsx +9 -6
  397. package/text-area/lib/TextAreaField.tsx +7 -3
  398. package/text-input/lib/TextInput.tsx +9 -6
  399. package/text-input/lib/TextInputField.tsx +10 -6
  400. package/text-input/lib/hooks/useTextInputModel.ts +1 -0
  401. package/breadcrumbs/README.md +0 -7
  402. package/breadcrumbs/index.ts +0 -5
  403. package/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.tsx +0 -85
  404. package/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.tsx +0 -152
  405. package/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.tsx +0 -63
  406. package/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.ts +0 -109
  407. package/breadcrumbs/lib/Breadcrumbs/Dropdown/index.tsx +0 -38
  408. package/breadcrumbs/lib/Breadcrumbs/List/Collapsible.tsx +0 -66
  409. package/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.tsx +0 -64
  410. package/breadcrumbs/lib/Breadcrumbs/List/Link.tsx +0 -88
  411. package/breadcrumbs/lib/Breadcrumbs/List/ListItem.tsx +0 -30
  412. package/breadcrumbs/lib/Breadcrumbs/List/hooks.ts +0 -114
  413. package/breadcrumbs/lib/Breadcrumbs/List/index.tsx +0 -28
  414. package/breadcrumbs/lib/Breadcrumbs/List/styles.ts +0 -12
  415. package/breadcrumbs/lib/Breadcrumbs/Nav.tsx +0 -14
  416. package/breadcrumbs/lib/Breadcrumbs/hooks.ts +0 -13
  417. package/breadcrumbs/lib/Breadcrumbs/index.tsx +0 -15
  418. package/breadcrumbs/lib/Breadcrumbs/types.ts +0 -7
  419. package/breadcrumbs/package.json +0 -6
  420. package/dist/commonjs/breadcrumbs/index.d.ts +0 -5
  421. package/dist/commonjs/breadcrumbs/index.d.ts.map +0 -1
  422. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +0 -20
  423. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts.map +0 -1
  424. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.js +0 -69
  425. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -38
  426. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +0 -1
  427. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +0 -94
  428. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.d.ts +0 -14
  429. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.d.ts.map +0 -1
  430. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.js +0 -73
  431. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +0 -13
  432. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +0 -1
  433. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.js +0 -77
  434. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts +0 -8
  435. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts.map +0 -1
  436. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Dropdown/index.js +0 -37
  437. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts +0 -16
  438. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +0 -1
  439. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Collapsible.js +0 -78
  440. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts +0 -11
  441. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts.map +0 -1
  442. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.js +0 -49
  443. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts +0 -19
  444. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts.map +0 -1
  445. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/Link.js +0 -66
  446. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -4
  447. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts.map +0 -1
  448. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +0 -43
  449. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +0 -19
  450. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts.map +0 -1
  451. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/hooks.js +0 -116
  452. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +0 -4
  453. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +0 -1
  454. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.js +0 -38
  455. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +0 -3
  456. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts.map +0 -1
  457. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/styles.js +0 -16
  458. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.d.ts +0 -11
  459. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.d.ts.map +0 -1
  460. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/Nav.js +0 -34
  461. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/hooks.d.ts +0 -5
  462. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/hooks.d.ts.map +0 -1
  463. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/hooks.js +0 -12
  464. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts +0 -9
  465. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.d.ts.map +0 -1
  466. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/index.js +0 -17
  467. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/types.d.ts +0 -8
  468. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/types.d.ts.map +0 -1
  469. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/types.js +0 -2
  470. package/dist/commonjs/text-area/lib/hooks/index.d.ts +0 -2
  471. package/dist/commonjs/text-area/lib/hooks/index.d.ts.map +0 -1
  472. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts +0 -28
  473. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.d.ts.map +0 -1
  474. package/dist/commonjs/text-area/lib/hooks/useTextAreaModel.js +0 -5
  475. package/dist/es6/breadcrumbs/index.d.ts +0 -5
  476. package/dist/es6/breadcrumbs/index.d.ts.map +0 -1
  477. package/dist/es6/breadcrumbs/index.js +0 -4
  478. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts +0 -20
  479. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.d.ts.map +0 -1
  480. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Button.js +0 -63
  481. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts +0 -38
  482. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.d.ts.map +0 -1
  483. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/Menu.js +0 -87
  484. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.d.ts +0 -14
  485. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.d.ts.map +0 -1
  486. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/MenuItemLink.js +0 -51
  487. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts +0 -13
  488. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.d.ts.map +0 -1
  489. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/hooks.js +0 -72
  490. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts +0 -8
  491. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/index.d.ts.map +0 -1
  492. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Dropdown/index.js +0 -30
  493. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts +0 -16
  494. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.d.ts.map +0 -1
  495. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Collapsible.js +0 -55
  496. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts +0 -11
  497. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.d.ts.map +0 -1
  498. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/CurrentItem.js +0 -42
  499. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts +0 -19
  500. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Link.d.ts.map +0 -1
  501. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/Link.js +0 -59
  502. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts +0 -4
  503. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.d.ts.map +0 -1
  504. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/ListItem.js +0 -36
  505. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts +0 -19
  506. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.d.ts.map +0 -1
  507. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/hooks.js +0 -91
  508. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts +0 -4
  509. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +0 -1
  510. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.js +0 -32
  511. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts +0 -3
  512. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.d.ts.map +0 -1
  513. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/styles.js +0 -12
  514. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Nav.d.ts +0 -11
  515. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Nav.d.ts.map +0 -1
  516. package/dist/es6/breadcrumbs/lib/Breadcrumbs/Nav.js +0 -27
  517. package/dist/es6/breadcrumbs/lib/Breadcrumbs/hooks.d.ts +0 -5
  518. package/dist/es6/breadcrumbs/lib/Breadcrumbs/hooks.d.ts.map +0 -1
  519. package/dist/es6/breadcrumbs/lib/Breadcrumbs/hooks.js +0 -8
  520. package/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts +0 -9
  521. package/dist/es6/breadcrumbs/lib/Breadcrumbs/index.d.ts.map +0 -1
  522. package/dist/es6/breadcrumbs/lib/Breadcrumbs/index.js +0 -14
  523. package/dist/es6/breadcrumbs/lib/Breadcrumbs/types.d.ts +0 -8
  524. package/dist/es6/breadcrumbs/lib/Breadcrumbs/types.d.ts.map +0 -1
  525. package/dist/es6/breadcrumbs/lib/Breadcrumbs/types.js +0 -1
  526. package/dist/es6/text-area/lib/hooks/index.d.ts +0 -2
  527. package/dist/es6/text-area/lib/hooks/index.d.ts.map +0 -1
  528. package/dist/es6/text-area/lib/hooks/index.js +0 -1
  529. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts +0 -28
  530. package/dist/es6/text-area/lib/hooks/useTextAreaModel.d.ts.map +0 -1
  531. package/dist/es6/text-area/lib/hooks/useTextAreaModel.js +0 -2
  532. package/text-area/lib/hooks/index.ts +0 -1
  533. package/text-area/lib/hooks/useTextAreaModel.ts +0 -3
@@ -1,82 +1,72 @@
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
1
  import * as React from 'react';
37
2
  import styled from '@emotion/styled';
38
3
  import { Card } from '@workday/canvas-kit-react/card';
39
4
  import { commonColors, space, borderRadius } from '@workday/canvas-kit-react/tokens';
40
5
  import { hideMouseFocus, generateUniqueId } from '@workday/canvas-kit-react/common';
41
- var List = styled('ul')(__assign({ background: commonColors.background, borderRadius: borderRadius.m, padding: 0, margin: space.xxs + " 0", '&:focus': {
6
+ const List = styled('ul')({
7
+ background: commonColors.background,
8
+ borderRadius: borderRadius.m,
9
+ padding: 0,
10
+ margin: `${space.xxs} 0`,
11
+ '&:focus': {
42
12
  outline: 'none',
43
- } }, hideMouseFocus));
44
- var Menu = /** @class */ (function (_super) {
45
- __extends(Menu, _super);
46
- function Menu(props) {
47
- var _this = _super.call(this, props) || this;
48
- _this.id = generateUniqueId();
49
- _this.getNormalizedItemIndex = function (index) {
50
- var itemCount = React.Children.count(_this.props.children);
51
- var firstItem = 0;
52
- var lastItem = itemCount - 1;
13
+ },
14
+ ...hideMouseFocus,
15
+ });
16
+ /**
17
+ * As of Canvas Kit v8, Menu is being deprecated.
18
+ * It will be removed in v10. Please see the [upgrade
19
+ * guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page) for
20
+ * more information.
21
+ *
22
+ * `DeprecatedMenu` renders a styled `<ul role="menu">` element within a {@link Card} and follows
23
+ * the [Active Menu
24
+ * pattern](https://www.w3.org/TR/wai-aria-practices/examples/menu-button/menu-button-actions-active-descendant.html)
25
+ * using `aria-activedescendant`.
26
+ *
27
+ * Undocumented props are spread to the underlying `<ul>` element.
28
+ *
29
+ * @deprecated
30
+ */
31
+ export class DeprecatedMenu extends React.Component {
32
+ constructor(props) {
33
+ super(props);
34
+ this.id = generateUniqueId();
35
+ this.getNormalizedItemIndex = (index) => {
36
+ const itemCount = React.Children.count(this.props.children);
37
+ const firstItem = 0;
38
+ const lastItem = itemCount - 1;
53
39
  if (!index) {
54
40
  return firstItem;
55
41
  }
56
42
  return index < 0 ? firstItem : index >= itemCount ? lastItem : index;
57
43
  };
58
- _this.setNormalizedItemIndex = function (index) {
59
- _this.setState({ selectedItemIndex: _this.getNormalizedItemIndex(index) });
44
+ this.setNormalizedItemIndex = (index) => {
45
+ this.setState({ selectedItemIndex: this.getNormalizedItemIndex(index) });
60
46
  };
61
- _this.handleKeyboardShortcuts = function (event) {
47
+ this.handleKeyboardShortcuts = (event) => {
62
48
  if (event.ctrlKey || event.altKey || event.metaKey) {
63
49
  return;
64
50
  }
65
- var children = React.Children.toArray(_this.props.children);
66
- var nextSelectedIndex = 0;
67
- var isShortcut = false;
68
- var itemCount = children.length;
69
- var firstItem = 0;
70
- var lastItem = itemCount - 1;
51
+ const children = React.Children.toArray(this.props.children);
52
+ let nextSelectedIndex = 0;
53
+ let isShortcut = false;
54
+ const interactiveItems = children.filter(child => {
55
+ var _a, _b;
56
+ return !((_b = (_a = child) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.isHeader);
57
+ });
58
+ const interactiveItemCount = interactiveItems.length;
59
+ const firstIndex = 0;
60
+ const lastIndex = interactiveItemCount - 1;
71
61
  if (event.key.length === 1 && event.key.match(/\S/)) {
72
- var start = _this.state.selectedItemIndex + 1;
73
- var searchIndex = void 0;
62
+ let start = this.state.selectedItemIndex + 1;
63
+ let searchIndex;
74
64
  if (start === children.length) {
75
65
  start = 0;
76
66
  }
77
- searchIndex = _this.getIndexFirstChars(start, event.key.toLowerCase());
67
+ searchIndex = this.getIndexFirstChars(start, event.key.toLowerCase());
78
68
  if (searchIndex === -1) {
79
- searchIndex = _this.getIndexFirstChars(0, event.key.toLowerCase(), start);
69
+ searchIndex = this.getIndexFirstChars(0, event.key.toLowerCase(), start);
80
70
  }
81
71
  if (searchIndex > -1) {
82
72
  isShortcut = true;
@@ -87,80 +77,77 @@ var Menu = /** @class */ (function (_super) {
87
77
  switch (event.key) {
88
78
  case 'ArrowUp':
89
79
  case 'ArrowDown':
90
- case 'Down': // IE/Edge specific value
91
- case 'Up': // IE/Edge specific value
92
- var direction = event.key === 'ArrowUp' ? -1 : 1;
80
+ const direction = event.key === 'ArrowUp' ? -1 : 1;
93
81
  isShortcut = true;
94
- var nextIndex = _this.state.selectedItemIndex + direction;
82
+ const nextIndex = this.state.selectedItemIndex + direction;
95
83
  nextSelectedIndex =
96
- nextIndex < 0 ? lastItem : nextIndex >= itemCount ? firstItem : nextIndex;
84
+ nextIndex < 0 ? lastIndex : nextIndex >= interactiveItemCount ? firstIndex : nextIndex;
97
85
  break;
98
86
  case 'Home':
99
87
  case 'End':
100
- var skipTo = event.key === 'Home' ? firstItem : lastItem;
88
+ const skipTo = event.key === 'Home' ? firstIndex : lastIndex;
101
89
  isShortcut = true;
102
90
  nextSelectedIndex = skipTo;
103
91
  break;
104
92
  case 'Tab':
105
- if (_this.props.onClose) {
106
- _this.props.onClose();
93
+ if (this.props.onClose) {
94
+ this.props.onClose();
107
95
  }
108
96
  break;
109
97
  case 'Escape':
110
98
  case 'Esc': // IE/Edge specific value
111
99
  isShortcut = true;
112
- if (_this.props.onClose) {
113
- _this.props.onClose();
100
+ if (this.props.onClose) {
101
+ this.props.onClose();
114
102
  }
115
103
  break;
116
104
  case 'Spacebar':
117
105
  case ' ':
118
106
  case 'Enter':
119
- nextSelectedIndex = _this.state.selectedItemIndex;
120
- var child = children[_this.state.selectedItemIndex];
121
- _this.handleClick(event, child.props);
107
+ nextSelectedIndex = this.state.selectedItemIndex;
108
+ const child = interactiveItems[this.state.selectedItemIndex];
109
+ this.handleClick(event, child.props);
122
110
  isShortcut = true;
123
111
  break;
124
112
  default:
125
113
  }
126
114
  }
127
115
  if (isShortcut) {
128
- _this.setNormalizedItemIndex(nextSelectedIndex);
116
+ this.setNormalizedItemIndex(nextSelectedIndex);
129
117
  event.stopPropagation();
130
118
  event.preventDefault();
131
119
  }
132
120
  };
133
- _this.handleClick = function (event, menuItemProps) {
121
+ this.handleClick = (event, menuItemProps) => {
134
122
  /* istanbul ignore next line for coverage */
135
123
  if (menuItemProps.isDisabled) {
136
- // You should only hit this point if you are using a custom MenuItem implementation.
124
+ // You should only hit this point if you are using a custom DeprecatedMenuItem implementation.
137
125
  return;
138
126
  }
139
127
  if (menuItemProps.onClick) {
140
128
  menuItemProps.onClick(event);
141
129
  }
142
- if (_this.props.onSelect) {
143
- _this.props.onSelect();
130
+ if (this.props.onSelect) {
131
+ this.props.onSelect();
144
132
  }
145
- if (_this.props.onClose) {
133
+ if (this.props.onClose) {
146
134
  if (menuItemProps.shouldClose) {
147
- _this.props.onClose();
135
+ this.props.onClose();
148
136
  }
149
137
  }
150
138
  };
151
- _this.getIndexFirstChars = function (startIndex, character, lastIndex) {
152
- if (lastIndex === void 0) { lastIndex = _this.firstCharacters.length; }
153
- for (var i = startIndex; i < lastIndex; i++) {
154
- if (character === _this.firstCharacters[i]) {
139
+ this.getIndexFirstChars = (startIndex, character, lastIndex = this.firstCharacters.length) => {
140
+ for (let i = startIndex; i < lastIndex; i++) {
141
+ if (character === this.firstCharacters[i]) {
155
142
  return i;
156
143
  }
157
144
  }
158
145
  return -1;
159
146
  };
160
- _this.setFirstCharacters = function () {
161
- var getFirstCharacter = function (child) {
162
- var character = '';
163
- if (!child || typeof child === 'boolean' || child === {}) {
147
+ this.setFirstCharacters = () => {
148
+ const getFirstCharacter = (child) => {
149
+ let character = '';
150
+ if (!child || typeof child === 'boolean') {
164
151
  character = '';
165
152
  }
166
153
  else if (typeof child === 'string' || typeof child === 'number') {
@@ -175,7 +162,7 @@ var Menu = /** @class */ (function (_super) {
175
162
  character = getFirstCharacter(child[0]);
176
163
  }
177
164
  else if ('props' in child) {
178
- var children = child.props.children;
165
+ const { children } = child.props;
179
166
  if (Array.isArray(children)) {
180
167
  character = getFirstCharacter(children[0]);
181
168
  }
@@ -185,39 +172,41 @@ var Menu = /** @class */ (function (_super) {
185
172
  }
186
173
  return character;
187
174
  };
188
- var firstCharacters = React.Children.map(_this.props.children, function (child) {
175
+ const firstCharacters = React.Children.map(this.props.children, child => {
176
+ var _a, _b;
177
+ if ((_b = (_a = child) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.isHeader) {
178
+ return;
179
+ }
189
180
  return getFirstCharacter(child);
190
181
  });
191
- _this.firstCharacters = firstCharacters;
182
+ this.firstCharacters = firstCharacters;
192
183
  };
193
- _this.getInitialSelectedItem = function () {
194
- var selected = _this.props.initialSelectedItem || 0;
195
- selected = selected < 0 ? React.Children.count(_this.props.children) + selected : selected;
184
+ this.getInitialSelectedItem = () => {
185
+ let selected = this.props.initialSelectedItem || 0;
186
+ selected = selected < 0 ? React.Children.count(this.props.children) + selected : selected;
196
187
  if (selected < 0) {
197
188
  selected = 0;
198
189
  }
199
- else if (selected > React.Children.count(_this.props.children) - 1) {
200
- selected = React.Children.count(_this.props.children) - 1;
190
+ else if (selected > React.Children.count(this.props.children) - 1) {
191
+ selected = React.Children.count(this.props.children) - 1;
201
192
  }
202
193
  return selected;
203
194
  };
204
- _this.setInitialSelectedItem = function () {
205
- var selected = _this.getInitialSelectedItem();
206
- _this.setState({ selectedItemIndex: selected });
195
+ this.setInitialSelectedItem = () => {
196
+ const selected = this.getInitialSelectedItem();
197
+ this.setState({ selectedItemIndex: selected });
207
198
  };
208
- _this.menuRef = React.createRef();
209
- var selected = _this.getInitialSelectedItem();
199
+ this.menuRef = React.createRef();
200
+ const selected = this.getInitialSelectedItem();
210
201
  // We track the active menu item by index so we can avoid setting a bunch of refs
211
202
  // for doing things like selecting an item by first character (or really calling .focus() at all)
212
203
  // It allows us to use the activedescendant design pattern
213
204
  // https://www.w3.org/TR/wai-aria-practices/examples/menu-button/menu-button-actions-active-descendant.html
214
- _this.state = {
205
+ this.state = {
215
206
  selectedItemIndex: selected,
216
207
  };
217
- return _this;
218
208
  }
219
- Menu.prototype.componentDidUpdate = function (prevProps) {
220
- var _this = this;
209
+ componentDidUpdate(prevProps) {
221
210
  if (this.props.children !== prevProps.children) {
222
211
  this.setFirstCharacters();
223
212
  this.setInitialSelectedItem();
@@ -225,39 +214,45 @@ var Menu = /** @class */ (function (_super) {
225
214
  if (this.props.isOpen && !prevProps.isOpen) {
226
215
  this.setInitialSelectedItem();
227
216
  }
228
- this.animateId = requestAnimationFrame(function () {
229
- if (_this.props.isOpen && _this.menuRef.current) {
230
- _this.menuRef.current.focus();
217
+ this.animateId = requestAnimationFrame(() => {
218
+ if (this.props.isOpen && this.menuRef.current) {
219
+ this.menuRef.current.focus();
231
220
  }
232
221
  });
233
- };
234
- Menu.prototype.componentDidMount = function () {
222
+ }
223
+ componentDidMount() {
224
+ console.warn(`This component is being deprecated and will be removed in Canvas Kit V9.\n
225
+ For more information, please see the V8 upgrade guide:\n
226
+ https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page
227
+ `);
235
228
  this.setFirstCharacters();
236
229
  this.setInitialSelectedItem();
237
- };
238
- Menu.prototype.componentWillUnmount = function () {
230
+ }
231
+ componentWillUnmount() {
239
232
  cancelAnimationFrame(this.animateId);
240
- };
241
- Menu.prototype.render = function () {
242
- var _this = this;
233
+ }
234
+ render() {
243
235
  // TODO: Standardize on prop spread location (see #150)
244
- var _a = this.props, _b = _a.id, id = _b === void 0 ? this.id : _b, _c = _a.isOpen, isOpen = _c === void 0 ? true : _c, children = _a.children, ariaLabelledby = _a["aria-labelledby"], grow = _a.grow, width = _a.width, onSelect = _a.onSelect, onClose = _a.onClose, initialSelectedItem = _a.initialSelectedItem, elemProps = __rest(_a, ["id", "isOpen", "children", 'aria-labelledby', "grow", "width", "onSelect", "onClose", "initialSelectedItem"]);
245
- var selectedItemIndex = this.state.selectedItemIndex;
246
- var cardWidth = grow ? '100%' : width;
236
+ const { id = this.id, isOpen = true, children, 'aria-labelledby': ariaLabelledby, grow, width, onSelect, onClose, initialSelectedItem, ...elemProps } = this.props;
237
+ const { selectedItemIndex } = this.state;
238
+ const cardWidth = grow ? '100%' : width;
239
+ let interactiveItemIndex = null;
247
240
  return (React.createElement(Card, { display: "inline-block", padding: space.zero, width: cardWidth, depth: 3 },
248
241
  React.createElement(Card.Body, null,
249
- React.createElement(List, __assign({ role: "menu", tabIndex: 0, id: id, "aria-labelledby": ariaLabelledby, "aria-activedescendant": id + "-" + selectedItemIndex, onKeyDown: this.handleKeyboardShortcuts, ref: this.menuRef }, elemProps), React.Children.map(children, function (menuItem, index) {
242
+ React.createElement(List, Object.assign({ role: "menu", tabIndex: 0, id: id, "aria-labelledby": ariaLabelledby, "aria-activedescendant": `${id}-${selectedItemIndex}`, onKeyDown: this.handleKeyboardShortcuts, ref: this.menuRef }, elemProps), React.Children.map(children, menuItem => {
250
243
  if (!React.isValidElement(menuItem)) {
251
244
  return;
252
245
  }
253
- var itemId = id + "-" + index;
246
+ let itemId;
247
+ if (!menuItem.props.isHeader) {
248
+ interactiveItemIndex = (interactiveItemIndex !== null && interactiveItemIndex !== void 0 ? interactiveItemIndex : -1) + 1;
249
+ itemId = `${id}-${interactiveItemIndex}`;
250
+ }
254
251
  return (React.createElement(React.Fragment, { key: itemId }, React.cloneElement(menuItem, {
255
- onClick: function (event) { return _this.handleClick(event, menuItem.props); },
252
+ onClick: (event) => this.handleClick(event, menuItem.props),
256
253
  id: itemId,
257
- isFocused: selectedItemIndex === index,
254
+ isFocused: selectedItemIndex === interactiveItemIndex && !menuItem.props.isHeader,
258
255
  })));
259
256
  })))));
260
- };
261
- return Menu;
262
- }(React.Component));
263
- export default Menu;
257
+ }
258
+ }
@@ -1,53 +1,84 @@
1
1
  import * as React from 'react';
2
2
  import { CanvasSystemIcon } from '@workday/design-assets-types';
3
- export interface MenuItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
3
+ /**
4
+ * ### Deprecated Menu Item Props
5
+ *
6
+ * As of Canvas Kit v8, Menu is being deprecated.
7
+ * It will be removed in v10. Please see the
8
+ * [upgrade guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page)
9
+ * for more information.
10
+ */
11
+ export interface DeprecatedMenuItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
4
12
  /**
5
- * The function called when the MenuItem is clicked. If the item is a child of the Menu component, this callback will be decorated with the onSelect and onClose Menu callbacks. This callback will not fire if the item is disabled (see below).
13
+ * The function called when the DeprecatedMenuItem is clicked. If the item is a child of the DeprecatedMenu component, this callback will be decorated with the onSelect and onClose DeprecatedMenu callbacks. This callback will not fire if the item is disabled (see below).
6
14
  */
7
15
  onClick?: (event: React.MouseEvent) => void;
8
16
  /**
9
- * The unique id for the MenuItem used for ARIA attributes. If the item is a child of the `Menu` component, this property will be generated and overridden.
17
+ * The unique id for the DeprecatedMenuItem used for ARIA attributes. If the item is a child of the `DeprecatedMenu` component, this property will be generated and overridden.
10
18
  */
11
19
  id?: string;
12
20
  /**
13
- * The icon of the MenuItem. This icon is displayed before what you supplied for the children.
21
+ * The icon of the DeprecatedMenuItem. This icon is displayed before what you supplied for the children.
14
22
  */
15
23
  icon?: CanvasSystemIcon;
16
24
  /**
17
- * The secondary icon of the MenuItem. This icon is displayed after what you supplied for the children.
25
+ * The secondary icon of the DeprecatedMenuItem. This icon is displayed after what you supplied for the children.
18
26
  */
19
27
  secondaryIcon?: CanvasSystemIcon;
20
28
  /**
21
- * If true, render a top border on the MenuItem.
29
+ * If true, render a top border on the DeprecatedMenuItem.
22
30
  * @default false
23
31
  */
24
32
  hasDivider?: boolean;
25
33
  /**
26
- * If true, set the MenuItem to the disabled state so it is not clickable.
34
+ * If true, render a header to group data, this menu item will not be intractable.
35
+ * @default false
36
+ */
37
+ isHeader?: boolean;
38
+ /**
39
+ * If true, set the DeprecatedMenuItem to the disabled state so it is not clickable.
27
40
  * @default false
28
41
  */
29
42
  isDisabled?: boolean;
30
43
  /**
31
- * If true, set the MenuItem to be the currently selected item. If the item is a child of the Menu component, this property will be generated and overridden.
44
+ * If true, set the DeprecatedMenuItem to be the currently selected item. If the item is a child of the DeprecatedMenu component, this property will be generated and overridden.
32
45
  * @default false
33
46
  */
34
47
  isFocused?: boolean;
35
48
  /**
36
- * The role of the MenuItem. Use this to override the role of the item (e.g. you can use this element as an option in a Combobox).
49
+ * The role of the DeprecatedMenuItem. Use this to override the role of the item (e.g. you can use this element as an option in a Combobox).
37
50
  * @default menuItem
38
51
  */
39
52
  role?: string;
40
53
  /**
41
- * If true, allow the onClose Menu callback to be fired after the MenuItem has been clicked.
54
+ * If true, allow the onClose DeprecatedMenu callback to be fired after the DeprecatedMenuItem has been clicked.
42
55
  * @default true
43
56
  */
44
57
  shouldClose?: boolean;
45
58
  }
46
- declare class MenuItem extends React.Component<MenuItemProps> {
59
+ /**
60
+ * `DeprecatedMenuItem` renders an `<li>` element with the correct attributes to ensure it is
61
+ * accessible. If you choose to implement your own custom menu items, be sure to use semantic `<li>`
62
+ * elements with the following attributes:
63
+ *
64
+ * - `role="menuitem"`
65
+ * - `tabindex={-1}`
66
+ * - `id`s following this pattern: `${MenuId}-${index}`
67
+ *
68
+ * As of Canvas Kit v8, Menu is being deprecated.
69
+ * It will be removed in v10. Please see the [upgrade
70
+ * guide](https://workday.github.io/canvas-kit/?path=/story/welcome-upgrade-guides-v8-0--page) for
71
+ * more information.
72
+ *
73
+ * Undocumented props are spread to the underlying `<li>` element.
74
+ *
75
+ * @deprecated
76
+ */
77
+ export declare class DeprecatedMenuItem extends React.Component<DeprecatedMenuItemProps> {
47
78
  ref: React.RefObject<HTMLLIElement>;
48
- componentDidUpdate: (prevProps: MenuItemProps) => void;
49
- render(): React.ReactNode;
79
+ componentDidMount(): void;
80
+ componentDidUpdate: (prevProps: DeprecatedMenuItemProps) => void;
81
+ render(): JSX.Element;
50
82
  private handleClick;
51
83
  }
52
- export default MenuItem;
53
84
  //# sourceMappingURL=MenuItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../menu/lib/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAG9D,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IAC1E;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAwLD,cAAM,QAAS,SAAQ,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IACnD,GAAG,iCAAoC;IAEvC,kBAAkB,cAAe,aAAa,UAM5C;IAEF,MAAM,IAAI,KAAK,CAAC,SAAS;IAyCzB,OAAO,CAAC,WAAW,CAOjB;CACH;AAcD,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../menu/lib/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAG9D;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IACpF;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA2LD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,kBAAmB,SAAQ,KAAK,CAAC,SAAS,CAAC,uBAAuB,CAAC;IAC9E,GAAG,iCAAoC;IAEvC,iBAAiB;IASjB,kBAAkB,cAAe,uBAAuB,UAMtD;IAEF,MAAM;IA4CN,OAAO,CAAC,WAAW,CAOjB;CACH"}