@patternfly/react-core 5.0.0-alpha.84 → 5.0.0-alpha.86

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 (333) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/components/index.d.ts +0 -1
  3. package/components/index.d.ts.map +1 -1
  4. package/components/index.js +0 -1
  5. package/components/index.js.map +1 -1
  6. package/dist/esm/components/AboutModal/package.json +1 -1
  7. package/dist/esm/components/Accordion/package.json +1 -1
  8. package/dist/esm/components/ActionList/package.json +1 -1
  9. package/dist/esm/components/Alert/package.json +1 -1
  10. package/dist/esm/components/Avatar/package.json +1 -1
  11. package/dist/esm/components/BackToTop/package.json +1 -1
  12. package/dist/esm/components/Backdrop/package.json +1 -1
  13. package/dist/esm/components/BackgroundImage/package.json +1 -1
  14. package/dist/esm/components/Badge/package.json +1 -1
  15. package/dist/esm/components/Banner/package.json +1 -1
  16. package/dist/esm/components/Brand/package.json +1 -1
  17. package/dist/esm/components/Breadcrumb/package.json +1 -1
  18. package/dist/esm/components/Button/package.json +1 -1
  19. package/dist/esm/components/CalendarMonth/package.json +1 -1
  20. package/dist/esm/components/Card/package.json +1 -1
  21. package/dist/esm/components/Checkbox/package.json +1 -1
  22. package/dist/esm/components/Chip/ChipGroup.d.ts.map +1 -0
  23. package/dist/esm/components/{ChipGroup → Chip}/ChipGroup.js +1 -1
  24. package/dist/esm/components/Chip/ChipGroup.js.map +1 -0
  25. package/dist/esm/components/Chip/index.d.ts +1 -0
  26. package/dist/esm/components/Chip/index.d.ts.map +1 -1
  27. package/dist/esm/components/Chip/index.js +1 -0
  28. package/dist/esm/components/Chip/index.js.map +1 -1
  29. package/dist/esm/components/Chip/package.json +1 -1
  30. package/dist/esm/components/ClipboardCopy/package.json +1 -1
  31. package/dist/esm/components/CodeBlock/package.json +1 -1
  32. package/dist/esm/components/DataList/package.json +1 -1
  33. package/dist/esm/components/DatePicker/package.json +1 -1
  34. package/dist/esm/components/DescriptionList/package.json +1 -1
  35. package/dist/esm/components/Divider/package.json +1 -1
  36. package/dist/esm/components/DragDrop/package.json +1 -1
  37. package/dist/esm/components/Drawer/Drawer.d.ts +2 -2
  38. package/dist/esm/components/Drawer/Drawer.d.ts.map +1 -1
  39. package/dist/esm/components/Drawer/DrawerPanelContent.js +1 -1
  40. package/dist/esm/components/Drawer/DrawerPanelContent.js.map +1 -1
  41. package/dist/esm/components/Drawer/package.json +1 -1
  42. package/dist/esm/components/Dropdown/package.json +1 -1
  43. package/dist/esm/components/DualListSelector/package.json +1 -1
  44. package/dist/esm/components/EmptyState/package.json +1 -1
  45. package/dist/esm/components/ExpandableSection/package.json +1 -1
  46. package/dist/esm/components/FileUpload/package.json +1 -1
  47. package/dist/esm/components/Form/package.json +1 -1
  48. package/dist/esm/components/FormSelect/package.json +1 -1
  49. package/dist/esm/components/HelperText/package.json +1 -1
  50. package/dist/esm/components/Hint/package.json +1 -1
  51. package/dist/esm/components/Icon/package.json +1 -1
  52. package/dist/esm/components/InputGroup/package.json +1 -1
  53. package/dist/esm/components/JumpLinks/package.json +1 -1
  54. package/dist/esm/components/Label/package.json +1 -1
  55. package/dist/esm/components/LabelGroup/package.json +1 -1
  56. package/dist/esm/components/List/package.json +1 -1
  57. package/dist/esm/components/LoginPage/package.json +1 -1
  58. package/dist/esm/components/Masthead/package.json +1 -1
  59. package/dist/esm/components/Menu/package.json +1 -1
  60. package/dist/esm/components/MenuToggle/package.json +1 -1
  61. package/dist/esm/components/Modal/package.json +1 -1
  62. package/dist/esm/components/MultipleFileUpload/MultipleFileUpload.d.ts +2 -2
  63. package/dist/esm/components/MultipleFileUpload/MultipleFileUpload.d.ts.map +1 -1
  64. package/dist/esm/components/MultipleFileUpload/MultipleFileUpload.js +2 -2
  65. package/dist/esm/components/MultipleFileUpload/MultipleFileUpload.js.map +1 -1
  66. package/dist/esm/components/MultipleFileUpload/package.json +1 -1
  67. package/dist/esm/components/Nav/package.json +1 -1
  68. package/dist/esm/components/NotificationBadge/package.json +1 -1
  69. package/dist/esm/components/NotificationDrawer/package.json +1 -1
  70. package/dist/esm/components/NumberInput/package.json +1 -1
  71. package/dist/esm/components/OverflowMenu/package.json +1 -1
  72. package/dist/esm/components/Page/Page.d.ts +3 -3
  73. package/dist/esm/components/Page/Page.d.ts.map +1 -1
  74. package/dist/esm/components/Page/Page.js +3 -3
  75. package/dist/esm/components/Page/Page.js.map +1 -1
  76. package/dist/esm/components/Page/package.json +1 -1
  77. package/dist/esm/components/Pagination/package.json +1 -1
  78. package/dist/esm/components/Panel/package.json +1 -1
  79. package/dist/esm/components/Popover/package.json +1 -1
  80. package/dist/esm/components/Progress/package.json +1 -1
  81. package/dist/esm/components/ProgressStepper/package.json +1 -1
  82. package/dist/esm/components/Radio/package.json +1 -1
  83. package/dist/esm/components/SearchInput/package.json +1 -1
  84. package/dist/esm/components/Select/package.json +1 -1
  85. package/dist/esm/components/Sidebar/package.json +1 -1
  86. package/dist/esm/components/SimpleList/package.json +1 -1
  87. package/dist/esm/components/Skeleton/package.json +1 -1
  88. package/dist/esm/components/SkipToContent/package.json +1 -1
  89. package/dist/esm/components/Slider/Slider.d.ts +2 -1
  90. package/dist/esm/components/Slider/Slider.d.ts.map +1 -1
  91. package/dist/esm/components/Slider/Slider.js +7 -7
  92. package/dist/esm/components/Slider/Slider.js.map +1 -1
  93. package/dist/esm/components/Slider/package.json +1 -1
  94. package/dist/esm/components/Spinner/package.json +1 -1
  95. package/dist/esm/components/Switch/package.json +1 -1
  96. package/dist/esm/components/Tabs/package.json +1 -1
  97. package/dist/esm/components/Text/package.json +1 -1
  98. package/dist/esm/components/TextArea/package.json +1 -1
  99. package/dist/esm/components/TextInput/package.json +1 -1
  100. package/dist/esm/components/TextInputGroup/package.json +1 -1
  101. package/dist/esm/components/Tile/package.json +1 -1
  102. package/dist/esm/components/TimePicker/package.json +1 -1
  103. package/dist/esm/components/Timestamp/package.json +1 -1
  104. package/dist/esm/components/Title/package.json +1 -1
  105. package/dist/esm/components/ToggleGroup/package.json +1 -1
  106. package/dist/esm/components/Toolbar/ToolbarFilter.js +1 -1
  107. package/dist/esm/components/Toolbar/ToolbarFilter.js.map +1 -1
  108. package/dist/esm/components/Toolbar/package.json +1 -1
  109. package/dist/esm/components/Tooltip/package.json +1 -1
  110. package/dist/esm/components/TreeView/package.json +1 -1
  111. package/dist/esm/components/Truncate/package.json +1 -1
  112. package/dist/esm/components/Wizard/hooks/package.json +1 -1
  113. package/dist/esm/components/Wizard/package.json +1 -1
  114. package/dist/esm/components/index.d.ts +0 -1
  115. package/dist/esm/components/index.d.ts.map +1 -1
  116. package/dist/esm/components/index.js +0 -1
  117. package/dist/esm/components/index.js.map +1 -1
  118. package/dist/esm/components/package.json +1 -1
  119. package/dist/esm/deprecated/components/ApplicationLauncher/package.json +1 -1
  120. package/dist/esm/deprecated/components/ContextSelector/package.json +1 -1
  121. package/dist/esm/deprecated/components/Dropdown/package.json +1 -1
  122. package/dist/esm/deprecated/components/OptionsMenu/package.json +1 -1
  123. package/dist/esm/deprecated/components/PageHeader/package.json +1 -1
  124. package/dist/esm/deprecated/components/Select/Select.d.ts +1 -1
  125. package/dist/esm/deprecated/components/Select/Select.d.ts.map +1 -1
  126. package/dist/esm/deprecated/components/Select/Select.js +1 -1
  127. package/dist/esm/deprecated/components/Select/Select.js.map +1 -1
  128. package/dist/esm/deprecated/components/Select/package.json +1 -1
  129. package/dist/esm/deprecated/components/Wizard/package.json +1 -1
  130. package/dist/esm/deprecated/components/package.json +1 -1
  131. package/dist/esm/deprecated/package.json +1 -1
  132. package/dist/esm/helpers/Popper/thirdparty/popper-core/package.json +1 -1
  133. package/dist/esm/helpers/package.json +1 -1
  134. package/dist/esm/layouts/Bullseye/package.json +1 -1
  135. package/dist/esm/layouts/Flex/package.json +1 -1
  136. package/dist/esm/layouts/Gallery/package.json +1 -1
  137. package/dist/esm/layouts/Grid/package.json +1 -1
  138. package/dist/esm/layouts/Level/package.json +1 -1
  139. package/dist/esm/layouts/Split/package.json +1 -1
  140. package/dist/esm/layouts/Stack/package.json +1 -1
  141. package/dist/esm/layouts/package.json +1 -1
  142. package/dist/esm/next/components/package.json +1 -1
  143. package/dist/esm/next/package.json +1 -1
  144. package/dist/esm/package.json +1 -1
  145. package/dist/js/components/AboutModal/package.json +1 -1
  146. package/dist/js/components/Accordion/package.json +1 -1
  147. package/dist/js/components/ActionList/package.json +1 -1
  148. package/dist/js/components/Alert/package.json +1 -1
  149. package/dist/js/components/Avatar/package.json +1 -1
  150. package/dist/js/components/BackToTop/package.json +1 -1
  151. package/dist/js/components/Backdrop/package.json +1 -1
  152. package/dist/js/components/BackgroundImage/package.json +1 -1
  153. package/dist/js/components/Badge/package.json +1 -1
  154. package/dist/js/components/Banner/package.json +1 -1
  155. package/dist/js/components/Brand/package.json +1 -1
  156. package/dist/js/components/Breadcrumb/package.json +1 -1
  157. package/dist/js/components/Button/package.json +1 -1
  158. package/dist/js/components/CalendarMonth/package.json +1 -1
  159. package/dist/js/components/Card/package.json +1 -1
  160. package/dist/js/components/Checkbox/package.json +1 -1
  161. package/dist/js/components/Chip/ChipGroup.d.ts.map +1 -0
  162. package/dist/js/components/{ChipGroup → Chip}/ChipGroup.js +1 -1
  163. package/dist/js/components/Chip/ChipGroup.js.map +1 -0
  164. package/dist/js/components/Chip/index.d.ts +1 -0
  165. package/dist/js/components/Chip/index.d.ts.map +1 -1
  166. package/dist/js/components/Chip/index.js +1 -0
  167. package/dist/js/components/Chip/index.js.map +1 -1
  168. package/dist/js/components/Chip/package.json +1 -1
  169. package/dist/js/components/ClipboardCopy/package.json +1 -1
  170. package/dist/js/components/CodeBlock/package.json +1 -1
  171. package/dist/js/components/DataList/package.json +1 -1
  172. package/dist/js/components/DatePicker/package.json +1 -1
  173. package/dist/js/components/DescriptionList/package.json +1 -1
  174. package/dist/js/components/Divider/package.json +1 -1
  175. package/dist/js/components/DragDrop/package.json +1 -1
  176. package/dist/js/components/Drawer/Drawer.d.ts +2 -2
  177. package/dist/js/components/Drawer/Drawer.d.ts.map +1 -1
  178. package/dist/js/components/Drawer/DrawerPanelContent.js +1 -1
  179. package/dist/js/components/Drawer/DrawerPanelContent.js.map +1 -1
  180. package/dist/js/components/Drawer/package.json +1 -1
  181. package/dist/js/components/Dropdown/package.json +1 -1
  182. package/dist/js/components/DualListSelector/package.json +1 -1
  183. package/dist/js/components/EmptyState/package.json +1 -1
  184. package/dist/js/components/ExpandableSection/package.json +1 -1
  185. package/dist/js/components/FileUpload/package.json +1 -1
  186. package/dist/js/components/Form/package.json +1 -1
  187. package/dist/js/components/FormSelect/package.json +1 -1
  188. package/dist/js/components/HelperText/package.json +1 -1
  189. package/dist/js/components/Hint/package.json +1 -1
  190. package/dist/js/components/Icon/package.json +1 -1
  191. package/dist/js/components/InputGroup/package.json +1 -1
  192. package/dist/js/components/JumpLinks/package.json +1 -1
  193. package/dist/js/components/Label/package.json +1 -1
  194. package/dist/js/components/LabelGroup/package.json +1 -1
  195. package/dist/js/components/List/package.json +1 -1
  196. package/dist/js/components/LoginPage/package.json +1 -1
  197. package/dist/js/components/Masthead/package.json +1 -1
  198. package/dist/js/components/Menu/package.json +1 -1
  199. package/dist/js/components/MenuToggle/package.json +1 -1
  200. package/dist/js/components/Modal/package.json +1 -1
  201. package/dist/js/components/MultipleFileUpload/MultipleFileUpload.d.ts +2 -2
  202. package/dist/js/components/MultipleFileUpload/MultipleFileUpload.d.ts.map +1 -1
  203. package/dist/js/components/MultipleFileUpload/MultipleFileUpload.js +2 -2
  204. package/dist/js/components/MultipleFileUpload/MultipleFileUpload.js.map +1 -1
  205. package/dist/js/components/MultipleFileUpload/package.json +1 -1
  206. package/dist/js/components/Nav/package.json +1 -1
  207. package/dist/js/components/NotificationBadge/package.json +1 -1
  208. package/dist/js/components/NotificationDrawer/package.json +1 -1
  209. package/dist/js/components/NumberInput/package.json +1 -1
  210. package/dist/js/components/OverflowMenu/package.json +1 -1
  211. package/dist/js/components/Page/Page.d.ts +3 -3
  212. package/dist/js/components/Page/Page.d.ts.map +1 -1
  213. package/dist/js/components/Page/Page.js +3 -3
  214. package/dist/js/components/Page/Page.js.map +1 -1
  215. package/dist/js/components/Page/package.json +1 -1
  216. package/dist/js/components/Pagination/package.json +1 -1
  217. package/dist/js/components/Panel/package.json +1 -1
  218. package/dist/js/components/Popover/package.json +1 -1
  219. package/dist/js/components/Progress/package.json +1 -1
  220. package/dist/js/components/ProgressStepper/package.json +1 -1
  221. package/dist/js/components/Radio/package.json +1 -1
  222. package/dist/js/components/SearchInput/package.json +1 -1
  223. package/dist/js/components/Select/package.json +1 -1
  224. package/dist/js/components/Sidebar/package.json +1 -1
  225. package/dist/js/components/SimpleList/package.json +1 -1
  226. package/dist/js/components/Skeleton/package.json +1 -1
  227. package/dist/js/components/SkipToContent/package.json +1 -1
  228. package/dist/js/components/Slider/Slider.d.ts +2 -1
  229. package/dist/js/components/Slider/Slider.d.ts.map +1 -1
  230. package/dist/js/components/Slider/Slider.js +7 -7
  231. package/dist/js/components/Slider/Slider.js.map +1 -1
  232. package/dist/js/components/Slider/package.json +1 -1
  233. package/dist/js/components/Spinner/package.json +1 -1
  234. package/dist/js/components/Switch/package.json +1 -1
  235. package/dist/js/components/Tabs/package.json +1 -1
  236. package/dist/js/components/Text/package.json +1 -1
  237. package/dist/js/components/TextArea/package.json +1 -1
  238. package/dist/js/components/TextInput/package.json +1 -1
  239. package/dist/js/components/TextInputGroup/package.json +1 -1
  240. package/dist/js/components/Tile/package.json +1 -1
  241. package/dist/js/components/TimePicker/package.json +1 -1
  242. package/dist/js/components/Timestamp/package.json +1 -1
  243. package/dist/js/components/Title/package.json +1 -1
  244. package/dist/js/components/ToggleGroup/package.json +1 -1
  245. package/dist/js/components/Toolbar/ToolbarFilter.js +2 -2
  246. package/dist/js/components/Toolbar/ToolbarFilter.js.map +1 -1
  247. package/dist/js/components/Toolbar/package.json +1 -1
  248. package/dist/js/components/Tooltip/package.json +1 -1
  249. package/dist/js/components/TreeView/package.json +1 -1
  250. package/dist/js/components/Truncate/package.json +1 -1
  251. package/dist/js/components/Wizard/hooks/package.json +1 -1
  252. package/dist/js/components/Wizard/package.json +1 -1
  253. package/dist/js/components/index.d.ts +0 -1
  254. package/dist/js/components/index.d.ts.map +1 -1
  255. package/dist/js/components/index.js +0 -1
  256. package/dist/js/components/index.js.map +1 -1
  257. package/dist/js/components/package.json +1 -1
  258. package/dist/js/deprecated/components/ApplicationLauncher/package.json +1 -1
  259. package/dist/js/deprecated/components/ContextSelector/package.json +1 -1
  260. package/dist/js/deprecated/components/Dropdown/package.json +1 -1
  261. package/dist/js/deprecated/components/OptionsMenu/package.json +1 -1
  262. package/dist/js/deprecated/components/PageHeader/package.json +1 -1
  263. package/dist/js/deprecated/components/Select/Select.d.ts +1 -1
  264. package/dist/js/deprecated/components/Select/Select.d.ts.map +1 -1
  265. package/dist/js/deprecated/components/Select/Select.js +3 -3
  266. package/dist/js/deprecated/components/Select/Select.js.map +1 -1
  267. package/dist/js/deprecated/components/Select/package.json +1 -1
  268. package/dist/js/deprecated/components/Wizard/package.json +1 -1
  269. package/dist/js/deprecated/components/package.json +1 -1
  270. package/dist/js/deprecated/package.json +1 -1
  271. package/dist/js/helpers/Popper/thirdparty/popper-core/package.json +1 -1
  272. package/dist/js/helpers/package.json +1 -1
  273. package/dist/js/layouts/Bullseye/package.json +1 -1
  274. package/dist/js/layouts/Flex/package.json +1 -1
  275. package/dist/js/layouts/Gallery/package.json +1 -1
  276. package/dist/js/layouts/Grid/package.json +1 -1
  277. package/dist/js/layouts/Level/package.json +1 -1
  278. package/dist/js/layouts/Split/package.json +1 -1
  279. package/dist/js/layouts/Stack/package.json +1 -1
  280. package/dist/js/layouts/package.json +1 -1
  281. package/dist/js/next/components/package.json +1 -1
  282. package/dist/js/next/package.json +1 -1
  283. package/dist/js/package.json +1 -1
  284. package/dist/umd/react-core.min.js +1 -1
  285. package/package.json +2 -2
  286. package/src/components/{ChipGroup → Chip}/ChipGroup.tsx +1 -1
  287. package/src/components/Chip/examples/Chip.md +20 -2
  288. package/src/components/Chip/index.ts +1 -0
  289. package/src/components/Drawer/Drawer.tsx +2 -2
  290. package/src/components/Drawer/DrawerPanelContent.tsx +1 -1
  291. package/src/components/MultipleFileUpload/MultipleFileUpload.tsx +3 -3
  292. package/src/components/MultipleFileUpload/examples/MultipleFileUpload.md +14 -0
  293. package/src/components/MultipleFileUpload/examples/MultipleFileUploadBasic.tsx +2 -1
  294. package/src/components/OverflowMenu/examples/OverflowMenuBreakpointOnContainer.tsx +2 -1
  295. package/src/components/Page/Page.tsx +5 -5
  296. package/src/components/Slider/Slider.tsx +15 -7
  297. package/src/components/Slider/examples/Slider.md +26 -0
  298. package/src/components/Slider/examples/SliderActions.tsx +3 -2
  299. package/src/components/Slider/examples/SliderContinuous.tsx +8 -4
  300. package/src/components/Slider/examples/SliderDisabled.tsx +8 -3
  301. package/src/components/Slider/examples/SliderDiscrete.tsx +8 -8
  302. package/src/components/Slider/examples/SliderThumbValueInput.tsx +2 -1
  303. package/src/components/Slider/examples/SliderValueInput.tsx +8 -5
  304. package/src/components/Toolbar/ToolbarFilter.tsx +1 -1
  305. package/src/components/index.ts +0 -1
  306. package/src/demos/Nav.md +2 -2
  307. package/src/demos/NotificationDrawer/NotificationDrawer.md +4 -4
  308. package/src/demos/examples/DashboardWrapper.js +1 -1
  309. package/src/demos/examples/MultipleFileUpload/MultipleFileUploadRejectedFile.tsx +13 -12
  310. package/src/deprecated/components/Select/Select.tsx +1 -1
  311. package/dist/esm/components/ChipGroup/ChipGroup.d.ts.map +0 -1
  312. package/dist/esm/components/ChipGroup/ChipGroup.js.map +0 -1
  313. package/dist/esm/components/ChipGroup/index.d.ts +0 -2
  314. package/dist/esm/components/ChipGroup/index.d.ts.map +0 -1
  315. package/dist/esm/components/ChipGroup/index.js +0 -2
  316. package/dist/esm/components/ChipGroup/index.js.map +0 -1
  317. package/dist/esm/components/ChipGroup/package.json +0 -1
  318. package/dist/js/components/ChipGroup/ChipGroup.d.ts.map +0 -1
  319. package/dist/js/components/ChipGroup/ChipGroup.js.map +0 -1
  320. package/dist/js/components/ChipGroup/index.d.ts +0 -2
  321. package/dist/js/components/ChipGroup/index.d.ts.map +0 -1
  322. package/dist/js/components/ChipGroup/index.js +0 -5
  323. package/dist/js/components/ChipGroup/index.js.map +0 -1
  324. package/dist/js/components/ChipGroup/package.json +0 -1
  325. package/src/components/ChipGroup/examples/ChipGroup.md +0 -24
  326. package/src/components/ChipGroup/index.ts +0 -1
  327. /package/dist/esm/components/{ChipGroup → Chip}/ChipGroup.d.ts +0 -0
  328. /package/dist/js/components/{ChipGroup → Chip}/ChipGroup.d.ts +0 -0
  329. /package/src/components/{ChipGroup → Chip}/__tests__/ChipGroup.test.tsx +0 -0
  330. /package/src/components/{ChipGroup → Chip}/__tests__/__snapshots__/ChipGroup.test.tsx.snap +0 -0
  331. /package/src/components/{ChipGroup → Chip}/examples/ChipGroupInline.tsx +0 -0
  332. /package/src/components/{ChipGroup → Chip}/examples/ChipGroupRemovableCategories.tsx +0 -0
  333. /package/src/components/{ChipGroup → Chip}/examples/ChipGroupWithCategories.tsx +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "5.0.0-alpha.84",
3
+ "version": "5.0.0-alpha.86",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -71,5 +71,5 @@
71
71
  "react": "^17 || ^18",
72
72
  "react-dom": "^17 || ^18"
73
73
  },
74
- "gitHead": "ccc411cf45e6becc43211d3aad5e6da4062b14c5"
74
+ "gitHead": "ba1717602667f1cba6fe191e752264c78327ae4b"
75
75
  }
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import styles from '@patternfly/react-styles/css/components/ChipGroup/chip-group';
3
3
  import { css } from '@patternfly/react-styles';
4
4
  import { Button } from '../Button';
5
- import { Chip } from '../Chip';
5
+ import { Chip } from './Chip';
6
6
  import { Tooltip, TooltipPosition } from '../Tooltip';
7
7
  import TimesCircleIcon from '@patternfly/react-icons/dist/esm/icons/times-circle-icon';
8
8
  import { fillTemplate } from '../../helpers';
@@ -2,13 +2,31 @@
2
2
  id: Chip
3
3
  section: components
4
4
  cssPrefix: pf-c-chip
5
- propComponents: ['Chip']
5
+ propComponents: ['Chip', 'ChipGroup']
6
6
  ouia: true
7
7
  ---
8
8
 
9
9
  ## Examples
10
10
 
11
- ### Default
11
+ ### Chip variants
12
+ Chips can be removable or read-only. The Overflow chip is a special chip that is used to expand or collapse the content of a chip group.
12
13
 
13
14
  ```ts file='./ChipDefault.tsx'
14
15
  ```
16
+
17
+ ### Chip groups
18
+
19
+ A chip group is a collection of chips that can be grouped by category and used to represent one or more values assigned to a single attribute. When the value of `numChips` is exceeded, additional chips will be hidden using an overflow chip.
20
+
21
+ ```ts file='./ChipGroupInline.tsx'
22
+ ```
23
+
24
+ ### Chip groups with categories
25
+
26
+ ```ts file='./ChipGroupWithCategories.tsx'
27
+ ```
28
+
29
+ ### Chip groups with removable categories
30
+
31
+ ```ts file='./ChipGroupRemovableCategories.tsx'
32
+ ```
@@ -1 +1,2 @@
1
1
  export * from './Chip';
2
+ export * from './ChipGroup';
@@ -21,13 +21,13 @@ export interface DrawerProps extends React.HTMLProps<HTMLDivElement> {
21
21
  /** Position of the drawer panel */
22
22
  position?: 'left' | 'right' | 'bottom';
23
23
  /** Callback when drawer panel is expanded after waiting 250ms for animation to complete. */
24
- onExpand?: () => void;
24
+ onExpand?: (event: KeyboardEvent | React.MouseEvent | React.TransitionEvent) => void;
25
25
  }
26
26
 
27
27
  export interface DrawerContextProps {
28
28
  isExpanded: boolean;
29
29
  isStatic: boolean;
30
- onExpand?: () => void;
30
+ onExpand?: (event: KeyboardEvent | React.MouseEvent | React.TransitionEvent) => void;
31
31
  position?: string;
32
32
  drawerRef?: React.RefObject<HTMLDivElement>;
33
33
  drawerContentRef?: React.RefObject<HTMLDivElement>;
@@ -263,7 +263,7 @@ export const DrawerPanelContent: React.FunctionComponent<DrawerPanelContentProps
263
263
  onTransitionEnd={(ev) => {
264
264
  if (ev.target as HTMLElement === panel.current) {
265
265
  if (!hidden && ev.nativeEvent.propertyName === 'transform') {
266
- onExpand();
266
+ onExpand(ev);
267
267
  }
268
268
  setIsExpandedInternal(!hidden);
269
269
  }
@@ -18,7 +18,7 @@ export interface MultipleFileUploadProps extends Omit<React.HTMLProps<HTMLDivEle
18
18
  /** Flag setting the component to horizontal styling mode */
19
19
  isHorizontal?: boolean;
20
20
  /** When files are dropped or uploaded this callback will be called with all accepted files */
21
- onFileDrop?: (data: File[]) => void;
21
+ onFileDrop?: (event: DropEvent, data: File[]) => void;
22
22
  }
23
23
 
24
24
  export const MultipleFileUploadContext = React.createContext({
@@ -34,7 +34,7 @@ export const MultipleFileUpload: React.FunctionComponent<MultipleFileUploadProps
34
34
  ...props
35
35
  }: MultipleFileUploadProps) => {
36
36
  const onDropAccepted = (acceptedFiles: File[], event: DropEvent) => {
37
- onFileDrop(acceptedFiles);
37
+ onFileDrop(event, acceptedFiles);
38
38
  // allow users to set a custom drop accepted handler rather than using on data change
39
39
  dropzoneProps.onDropAccepted && dropzoneProps.onDropAccepted(acceptedFiles, event);
40
40
  };
@@ -47,7 +47,7 @@ export const MultipleFileUpload: React.FunctionComponent<MultipleFileUploadProps
47
47
 
48
48
  const rootProps = getRootProps({
49
49
  ...props,
50
- onClick: event => event.preventDefault() // Prevents clicking TextArea from opening file dialog
50
+ onClick: (event) => event.preventDefault() // Prevents clicking TextArea from opening file dialog
51
51
  });
52
52
 
53
53
  return (
@@ -50,4 +50,18 @@ The "Show as horizontal" checkbox can be used to easily toggle the `isHorizontal
50
50
  The "Demonstrate error reporting by forcing uploads to fail" checkbox shows how our `progressHelperText` prop can be used to provide status messages to users, such as when a file fails to upload. While this checkbox is checked it will cause any file uploaded to automatically fail the file reading process, and helper text will be dynamically rendered which informs the user of that error.
51
51
 
52
52
  ```ts file="./MultipleFileUploadBasic.tsx"
53
+
53
54
  ```
55
+
56
+ ## Types
57
+
58
+ Multiple file upload uses both the `DropEvent` and `DropzoneOptions` types from react-dropzone. The `DropEvent` type is a union comprised of the following types:
59
+
60
+ ```noLive
61
+ React.DragEvent<HTMLElement>
62
+ | React.ChangeEvent<HTMLInputElement>
63
+ | DragEvent
64
+ | Event
65
+ ```
66
+
67
+ `DropzoneOptions` is comprised of additional props with their own types. For more information on using `DropzoneOptions` visit [react-dropzone props and methods](https://react-dropzone.js.org/#src).
@@ -8,6 +8,7 @@ import {
8
8
  HelperText,
9
9
  HelperTextItem
10
10
  } from '@patternfly/react-core';
11
+ import { DropEvent } from 'react-dropzone';
11
12
  import UploadIcon from '@patternfly/react-icons/dist/esm/icons/upload-icon';
12
13
 
13
14
  interface readFile {
@@ -68,7 +69,7 @@ export const MultipleFileUploadBasic: React.FunctionComponent = () => {
68
69
  };
69
70
 
70
71
  // callback that will be called by the react dropzone with the newly dropped file objects
71
- const handleFileDrop = (droppedFiles: File[]) => {
72
+ const handleFileDrop = (_event: DropEvent, droppedFiles: File[]) => {
72
73
  // identify what, if any, files are re-uploads of already uploaded files
73
74
  const currentFileNames = currentFiles.map((file) => file.name);
74
75
  const reUploads = droppedFiles.filter((droppedFile) => currentFileNames.includes(droppedFile.name));
@@ -8,6 +8,7 @@ import {
8
8
  OverflowMenuDropdownItem,
9
9
  MenuToggle,
10
10
  Slider,
11
+ SliderOnChangeEvent,
11
12
  Dropdown,
12
13
  DropdownList
13
14
  } from '@patternfly/react-core';
@@ -26,7 +27,7 @@ export const OverflowMenuBreakpointOnContainer: React.FunctionComponent = () =>
26
27
  setIsOpen(!isOpen);
27
28
  };
28
29
 
29
- const onChange = (value: number) => {
30
+ const onChange = (_event: SliderOnChangeEvent, value: number) => {
30
31
  setContainerWidth(value);
31
32
  };
32
33
 
@@ -30,7 +30,7 @@ export interface PageProps extends React.HTMLProps<HTMLDivElement> {
30
30
  /** Flag indicating if breadcrumb width should be limited */
31
31
  isBreadcrumbWidthLimited?: boolean;
32
32
  /** Callback when notification drawer panel is finished expanding. */
33
- onNotificationDrawerExpand?: () => void;
33
+ onNotificationDrawerExpand?: (event: KeyboardEvent | React.MouseEvent | React.TransitionEvent) => void;
34
34
  /** Skip to content component for the page */
35
35
  skipToContent?: React.ReactElement;
36
36
  /** Sets the value for role on the <main> element */
@@ -54,7 +54,7 @@ export interface PageProps extends React.HTMLProps<HTMLDivElement> {
54
54
  * Can add callback to be notified when resize occurs, for example to set the sidebar isSidebarOpen prop to false for a width < 768px
55
55
  * Returns object { mobileView: boolean, windowSize: number }
56
56
  */
57
- onPageResize?: ((object: any) => void) | null;
57
+ onPageResize?: ((event: MouseEvent | TouchEvent | React.KeyboardEvent, object: any) => void) | null;
58
58
  /**
59
59
  * The page resize observer uses the breakpoints returned from this function when adding the pf-m-breakpoint-[default|sm|md|lg|xl|2xl] class
60
60
  * You can override the default getBreakpoint function to return breakpoints at different sizes than the default
@@ -163,11 +163,11 @@ export class Page extends React.Component<PageProps, PageState> {
163
163
  // eslint-disable-next-line radix
164
164
  this.getWindowWidth() < Number.parseInt(globalBreakpointXl.value, 10);
165
165
 
166
- resize = () => {
166
+ resize = (_event?: MouseEvent | TouchEvent | React.KeyboardEvent<Element>) => {
167
167
  const { onPageResize } = this.props;
168
168
  const mobileView = this.isMobile();
169
169
  if (onPageResize) {
170
- onPageResize({ mobileView, windowSize: this.getWindowWidth() });
170
+ onPageResize(_event, { mobileView, windowSize: this.getWindowWidth() });
171
171
  }
172
172
  if (mobileView !== this.state.mobileView) {
173
173
  this.setState({ mobileView });
@@ -324,7 +324,7 @@ export class Page extends React.Component<PageProps, PageState> {
324
324
  {sidebar}
325
325
  {notificationDrawer && (
326
326
  <div className={css(styles.pageDrawer)}>
327
- <Drawer isExpanded={isNotificationDrawerExpanded} onExpand={onNotificationDrawerExpand}>
327
+ <Drawer isExpanded={isNotificationDrawerExpanded} onExpand={(event) => onNotificationDrawerExpand(event)}>
328
328
  <DrawerContent panelContent={panelContent}>
329
329
  <DrawerContentBody>{main}</DrawerContentBody>
330
330
  </DrawerContent>
@@ -19,6 +19,13 @@ export interface SliderStepObject {
19
19
  value: number;
20
20
  }
21
21
 
22
+ export type SliderOnChangeEvent =
23
+ | React.MouseEvent
24
+ | React.KeyboardEvent
25
+ | React.FormEvent<HTMLInputElement>
26
+ | React.TouchEvent
27
+ | React.FocusEvent<HTMLInputElement>;
28
+
22
29
  /** The main slider component. */
23
30
  export interface SliderProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onChange'> {
24
31
  /** Flag indicating if the slider is discrete for custom steps. This will cause the slider
@@ -55,6 +62,7 @@ export interface SliderProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onCh
55
62
  min?: number;
56
63
  /** Value change callback. This is called when the slider value changes. */
57
64
  onChange?: (
65
+ event: SliderOnChangeEvent,
58
66
  value: number,
59
67
  inputValue?: number,
60
68
  setLocalInputValue?: React.Dispatch<React.SetStateAction<number>>
@@ -131,7 +139,7 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
131
139
  if (event.key === 'Enter') {
132
140
  event.preventDefault();
133
141
  if (onChange) {
134
- onChange(localValue, localInputValue, setLocalInputValue);
142
+ onChange(event, localValue, localInputValue, setLocalInputValue);
135
143
  }
136
144
  }
137
145
  };
@@ -144,9 +152,9 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
144
152
  thumbRef.current.focus();
145
153
  };
146
154
 
147
- const onBlur = () => {
155
+ const onBlur = (event: React.FocusEvent<HTMLInputElement>) => {
148
156
  if (onChange) {
149
- onChange(localValue, localInputValue, setLocalInputValue);
157
+ onChange(event, localValue, localInputValue, setLocalInputValue);
150
158
  }
151
159
  };
152
160
 
@@ -196,7 +204,7 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
196
204
  thumbRef.current.style.setProperty('--pf-c-slider--value', `${snapValue}%`);
197
205
  setValue(snapValue);
198
206
  if (onChange) {
199
- onChange(snapValue);
207
+ onChange(e, snapValue);
200
208
  }
201
209
  }
202
210
  };
@@ -260,9 +268,9 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
260
268
  // Call onchange callback
261
269
  if (onChange) {
262
270
  if (snapValue !== undefined) {
263
- onChange(snapValue);
271
+ onChange(e, snapValue);
264
272
  } else {
265
- onChange(newValue);
273
+ onChange(e, newValue);
266
274
  }
267
275
  }
268
276
  };
@@ -302,7 +310,7 @@ export const Slider: React.FunctionComponent<SliderProps> = ({
302
310
  thumbRef.current.style.setProperty('--pf-c-slider--value', `${newValue}%`);
303
311
  setValue(newValue);
304
312
  if (onChange) {
305
- onChange(newValue);
313
+ onChange(e, newValue);
306
314
  }
307
315
  }
308
316
  };
@@ -16,29 +16,55 @@ import LockOpenIcon from '@patternfly/react-icons/dist/esm/icons/lock-open-icon'
16
16
  ### Discrete
17
17
 
18
18
  ```ts file="./SliderDiscrete.tsx"
19
+
19
20
  ```
20
21
 
21
22
  ### Continuous
22
23
 
23
24
  ```ts file="./SliderContinuous.tsx"
25
+
24
26
  ```
25
27
 
26
28
  ### Value input
27
29
 
28
30
  ```ts file="./SliderValueInput.tsx"
31
+
29
32
  ```
30
33
 
31
34
  ### Thumb value input
32
35
 
33
36
  ```ts file="./SliderThumbValueInput.tsx"
37
+
34
38
  ```
35
39
 
36
40
  ### Actions
37
41
 
38
42
  ```ts file="./SliderActions.tsx"
43
+
39
44
  ```
40
45
 
41
46
  ### Disabled
42
47
 
43
48
  ```ts file="./SliderDisabled.tsx"
49
+
50
+ ```
51
+
52
+ ## Types
53
+
54
+ ### SliderOnChangeEvent
55
+
56
+ The slider's `onChange` prop accepts an `event` parameter of the following types:
57
+
58
+ - `React.MouseEvent`
59
+ - `React.KeyboardEvent`
60
+ - `React.FormEvent<HTMLInputElement>`
61
+ - `React.TouchEvent`
62
+ - `React.FocusEvent<HTMLInputElement>`
63
+
64
+ The `SliderOnChangeEvent` type is a union of the above event types, and can be imported and used in your code like in the following code snippet:
65
+
66
+ ```noLive
67
+ import { Slider, SliderOnChangeEvent } from '@patternfly/react-core';
68
+
69
+ <Slider onChange={(event: SliderOnChangeEvent) => {}} />
44
70
  ```
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Slider, Button, Text, TextVariants } from '@patternfly/react-core';
2
+ import { Slider, SliderOnChangeEvent, Button, Text, TextVariants } from '@patternfly/react-core';
3
3
  import MinusIcon from '@patternfly/react-icons/dist/esm/icons/minus-icon';
4
4
  import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';
5
5
  import LockIcon from '@patternfly/react-icons/dist/esm/icons/lock-icon';
@@ -11,11 +11,12 @@ export const SliderActions: React.FunctionComponent = () => {
11
11
  const [inputValue, setInputValue] = React.useState(50);
12
12
  const [isDisabled, setIsDisabled] = React.useState(false);
13
13
 
14
- const onChange1 = (value: number) => {
14
+ const onChange1 = (_event: SliderOnChangeEvent, value: number) => {
15
15
  setValue1(Math.floor(Number(value)));
16
16
  };
17
17
 
18
18
  const onChange2 = (
19
+ _event: SliderOnChangeEvent,
19
20
  value: number,
20
21
  inputValue: number,
21
22
  setLocalInputValue: React.Dispatch<React.SetStateAction<number>>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Checkbox, Slider, Text, TextVariants } from '@patternfly/react-core';
2
+ import { Checkbox, Slider, SliderOnChangeEvent, Text, TextVariants } from '@patternfly/react-core';
3
3
 
4
4
  export const SliderContinuous: React.FunctionComponent = () => {
5
5
  const [hasTooltipOverThumb, setHasTooltipOverThumb] = React.useState(false);
@@ -12,15 +12,19 @@ export const SliderContinuous: React.FunctionComponent = () => {
12
12
  id="thumb-has-tooltip"
13
13
  label="hasTooltipOverThumb"
14
14
  isChecked={hasTooltipOverThumb}
15
- onChange={(_event, checked) => setHasTooltipOverThumb(checked)}
15
+ onChange={(_event: React.FormEvent<HTMLInputElement>, checked: boolean) => setHasTooltipOverThumb(checked)}
16
16
  style={{ marginBottom: 20 }}
17
17
  />
18
18
  <Text component={TextVariants.h3}>Slider Value is: {value}</Text>
19
- <Slider hasTooltipOverThumb={hasTooltipOverThumb} value={value} onChange={setValue} />
19
+ <Slider
20
+ hasTooltipOverThumb={hasTooltipOverThumb}
21
+ value={value}
22
+ onChange={(_event: SliderOnChangeEvent, value: number) => setValue(value)}
23
+ />
20
24
  <br />
21
25
  <Text component={TextVariants.h3}>Slider value is: {valueCustom}</Text>
22
26
  <Slider
23
- onChange={setValueCustom}
27
+ onChange={(_event: SliderOnChangeEvent, value: number) => setValueCustom(value)}
24
28
  value={valueCustom}
25
29
  areCustomStepsContinuous
26
30
  hasTooltipOverThumb={hasTooltipOverThumb}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Slider, Text, TextVariants } from '@patternfly/react-core';
2
+ import { Slider, SliderOnChangeEvent, Text, TextVariants } from '@patternfly/react-core';
3
3
 
4
4
  export const SliderDisabled: React.FunctionComponent = () => {
5
5
  const [value, setValue] = React.useState(50);
@@ -16,14 +16,19 @@ export const SliderDisabled: React.FunctionComponent = () => {
16
16
  ];
17
17
 
18
18
  const displayValue = () => {
19
- const step = steps.find(step => step.value === value);
19
+ const step = steps.find((step) => step.value === value);
20
20
  return step ? step.label : 0;
21
21
  };
22
22
 
23
23
  return (
24
24
  <>
25
25
  <Text component={TextVariants.h3}>Slider value is: {displayValue()}</Text>
26
- <Slider isDisabled value={value} onChange={setValue} customSteps={steps} />
26
+ <Slider
27
+ isDisabled
28
+ value={value}
29
+ onChange={(_event: SliderOnChangeEvent, value: number) => setValue(value)}
30
+ customSteps={steps}
31
+ />
27
32
  </>
28
33
  );
29
34
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Slider, Text, TextVariants } from '@patternfly/react-core';
2
+ import { Slider, SliderOnChangeEvent, Text, TextVariants } from '@patternfly/react-core';
3
3
 
4
4
  export const SliderDiscrete: React.FunctionComponent = () => {
5
5
  const initialValues = {
@@ -53,7 +53,7 @@ export const SliderDiscrete: React.FunctionComponent = () => {
53
53
  <Text component={TextVariants.h3}>Slider value is: {numValue.value1}</Text>
54
54
  <Slider
55
55
  value={initialValues.value1}
56
- onChange={(value: number) => handleChange(value, 'value1')}
56
+ onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value1')}
57
57
  customSteps={steps}
58
58
  />
59
59
  <br />
@@ -61,7 +61,7 @@ export const SliderDiscrete: React.FunctionComponent = () => {
61
61
  <Text component={TextVariants.small}>(min = 0, max = 200, step = 50) </Text>
62
62
  <Slider
63
63
  value={initialValues.value2}
64
- onChange={(value: number) => handleChange(value, 'value2')}
64
+ onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value2')}
65
65
  max={200}
66
66
  step={50}
67
67
  showTicks
@@ -71,7 +71,7 @@ export const SliderDiscrete: React.FunctionComponent = () => {
71
71
  <Text component={TextVariants.small}>(min = -25, max = 75, step = 10, boundaries not shown) </Text>
72
72
  <Slider
73
73
  value={initialValues.value3}
74
- onChange={(value: number) => handleChange(value, 'value3')}
74
+ onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value3')}
75
75
  min={-25}
76
76
  max={75}
77
77
  step={10}
@@ -83,7 +83,7 @@ export const SliderDiscrete: React.FunctionComponent = () => {
83
83
  <Text component={TextVariants.small}>(min = -25, max = 75, step = 10, boundaries shown) </Text>
84
84
  <Slider
85
85
  value={initialValues.value4}
86
- onChange={(value: number) => handleChange(value, 'value4')}
86
+ onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value4')}
87
87
  min={-25}
88
88
  max={75}
89
89
  step={10}
@@ -94,7 +94,7 @@ export const SliderDiscrete: React.FunctionComponent = () => {
94
94
  <Text component={TextVariants.small}>(min = -25, max = 75, step = 10, boundaries shown, ticks not shown) </Text>
95
95
  <Slider
96
96
  value={initialValues.value5}
97
- onChange={(value: number) => handleChange(value, 'value5')}
97
+ onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value5')}
98
98
  min={-25}
99
99
  max={75}
100
100
  step={10}
@@ -107,7 +107,7 @@ export const SliderDiscrete: React.FunctionComponent = () => {
107
107
  showTicks
108
108
  max={5}
109
109
  customSteps={stepsDiscreteWithMax}
110
- onChange={(value: number) => handleChange(value, 'value6')}
110
+ onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value6')}
111
111
  />
112
112
  <br />
113
113
  <Text component={TextVariants.h3}>Slider value is: {Math.floor(numValue.value7)}</Text>
@@ -116,7 +116,7 @@ export const SliderDiscrete: React.FunctionComponent = () => {
116
116
  value={initialValues.value7}
117
117
  showTicks
118
118
  customSteps={stepsDiscreteNoLinearWithMaxMin}
119
- onChange={(value: number) => handleChange(value, 'value7')}
119
+ onChange={(_event: SliderOnChangeEvent, value: number) => handleChange(value, 'value7')}
120
120
  min={12}
121
121
  max={86}
122
122
  />
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
- import { Slider } from '@patternfly/react-core';
2
+ import { Slider, SliderOnChangeEvent } from '@patternfly/react-core';
3
3
 
4
4
  export const SliderThumbValueInput: React.FunctionComponent = () => {
5
5
  const [value, setValue] = React.useState(50);
6
6
  const [inputValue, setInputValue] = React.useState(50);
7
7
 
8
8
  const onChange = (
9
+ _event: SliderOnChangeEvent,
9
10
  value: number,
10
11
  inputValue: number,
11
12
  setLocalInputValue: React.Dispatch<React.SetStateAction<number>>
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Slider } from '@patternfly/react-core';
2
+ import { Slider, SliderOnChangeEvent } from '@patternfly/react-core';
3
3
 
4
4
  export const SliderValueInput: React.FunctionComponent = () => {
5
5
  const [valueDiscrete, setValueDiscrete] = React.useState(62.5);
@@ -29,6 +29,7 @@ export const SliderValueInput: React.FunctionComponent = () => {
29
29
  ];
30
30
 
31
31
  const onChangeDiscrete = (
32
+ _event: SliderOnChangeEvent,
32
33
  value: number,
33
34
  inputValue: number,
34
35
  setLocalInputValue: React.Dispatch<React.SetStateAction<number>>
@@ -37,7 +38,7 @@ export const SliderValueInput: React.FunctionComponent = () => {
37
38
  let newInputValue;
38
39
 
39
40
  if (inputValue === undefined) {
40
- const step = stepsDiscrete.find(step => step.value === value);
41
+ const step = stepsDiscrete.find((step) => step.value === value);
41
42
  newInputValue = step ? step.label : 0;
42
43
  newInputValue = Number(newInputValue);
43
44
  newValue = value;
@@ -54,7 +55,7 @@ export const SliderValueInput: React.FunctionComponent = () => {
54
55
  newInputValue = minValue;
55
56
  setLocalInputValue(minValue);
56
57
  } else {
57
- const stepIndex = stepsDiscrete.findIndex(step => Number(step.label) >= inputValue);
58
+ const stepIndex = stepsDiscrete.findIndex((step) => Number(step.label) >= inputValue);
58
59
  if (Number(stepsDiscrete[stepIndex].label) === inputValue) {
59
60
  newValue = stepsDiscrete[stepIndex].value;
60
61
  newInputValue = inputValue;
@@ -77,6 +78,7 @@ export const SliderValueInput: React.FunctionComponent = () => {
77
78
  };
78
79
 
79
80
  const onChangePercent = (
81
+ _event: SliderOnChangeEvent,
80
82
  value: number,
81
83
  inputValue: number,
82
84
  setLocalInputValue: React.Dispatch<React.SetStateAction<number>>
@@ -85,7 +87,7 @@ export const SliderValueInput: React.FunctionComponent = () => {
85
87
  let newInputValue;
86
88
 
87
89
  if (inputValue === undefined) {
88
- const step = stepsPercent.find(step => step.value === value);
90
+ const step = stepsPercent.find((step) => step.value === value);
89
91
  newInputValue = step ? step.label.slice(0, -1) : 0;
90
92
  newInputValue = Number(newInputValue);
91
93
  newValue = value;
@@ -101,7 +103,7 @@ export const SliderValueInput: React.FunctionComponent = () => {
101
103
  newValue = minValue;
102
104
  setLocalInputValue(minValue);
103
105
  } else {
104
- const stepIndex = stepsPercent.findIndex(step => Number(step.label.slice(0, -1)) >= inputValue);
106
+ const stepIndex = stepsPercent.findIndex((step) => Number(step.label.slice(0, -1)) >= inputValue);
105
107
  if (Number(stepsPercent[stepIndex].label.slice(0, -1)) === inputValue) {
106
108
  newValue = stepsPercent[stepIndex].value;
107
109
  newInputValue = inputValue;
@@ -127,6 +129,7 @@ export const SliderValueInput: React.FunctionComponent = () => {
127
129
  };
128
130
 
129
131
  const onChangeContinuous = (
132
+ _event: SliderOnChangeEvent,
130
133
  value: number,
131
134
  inputValue: number,
132
135
  setLocalInputValue: React.Dispatch<React.SetStateAction<number>>
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import * as ReactDOM from 'react-dom';
3
3
  import { ToolbarItem, ToolbarItemProps } from './ToolbarItem';
4
- import { ChipGroup } from '../ChipGroup';
4
+ import { ChipGroup } from '../Chip';
5
5
  import { Chip } from '../Chip';
6
6
  import { ToolbarContentContext, ToolbarContext } from './ToolbarUtils';
7
7
  import { PickOptional } from '../../helpers/typeUtils';
@@ -16,7 +16,6 @@ export * from './CalendarMonth';
16
16
  export * from './Card';
17
17
  export * from './Checkbox';
18
18
  export * from './Chip';
19
- export * from './ChipGroup';
20
19
  export * from './ClipboardCopy';
21
20
  export * from './CodeBlock';
22
21
  export * from './DataList';
package/src/demos/Nav.md CHANGED
@@ -1305,7 +1305,7 @@ class PageLayoutManualNav extends React.Component {
1305
1305
  });
1306
1306
  };
1307
1307
 
1308
- this.onPageResize = ({ mobileView, windowSize }) => {
1308
+ this.onPageResize = (_event, { mobileView, windowSize }) => {
1309
1309
  this.setState({
1310
1310
  isMobileView: mobileView
1311
1311
  });
@@ -1428,7 +1428,7 @@ class PageLayoutManualNav extends React.Component {
1428
1428
  <Page
1429
1429
  header={Header}
1430
1430
  sidebar={Sidebar}
1431
- onPageResize={this.onPageResize}
1431
+ onPageResize={(event) => this.onPageResize(event)}
1432
1432
  skipToContent={PageSkipToContent}
1433
1433
  mainContainerId={pageId}
1434
1434
  >
@@ -194,7 +194,7 @@ class BasicNotificationDrawer extends React.Component {
194
194
  });
195
195
  };
196
196
 
197
- this.focusDrawer = () => {
197
+ this.focusDrawer = (_event) => {
198
198
  const firstTabbableItem = this.drawerRef.current.querySelector('a, button');
199
199
  firstTabbableItem.focus();
200
200
  };
@@ -549,7 +549,7 @@ class BasicNotificationDrawer extends React.Component {
549
549
  sidebar={Sidebar}
550
550
  isManagedSidebar
551
551
  notificationDrawer={notificationDrawer}
552
- onNotificationDrawerExpand={this.focusDrawer}
552
+ onNotificationDrawerExpand={(event) => this.focusDrawer(event)}
553
553
  isNotificationDrawerExpanded={isDrawerExpanded}
554
554
  skipToContent={PageSkipToContent}
555
555
  breadcrumb={PageBreadcrumb}
@@ -790,7 +790,7 @@ class GroupedNotificationDrawer extends React.Component {
790
790
  });
791
791
  };
792
792
 
793
- this.focusDrawer = () => {
793
+ this.focusDrawer = (_event) => {
794
794
  // Prevent the NotificationDrawer from receiving focus if a drawer group item is opened
795
795
  if (!document.activeElement.closest(`.${this.drawerRef.current.className}`)) {
796
796
  const firstTabbableItem = this.drawerRef.current.querySelector('a, button');
@@ -1313,7 +1313,7 @@ class GroupedNotificationDrawer extends React.Component {
1313
1313
  isManagedSidebar
1314
1314
  notificationDrawer={notificationDrawer}
1315
1315
  isNotificationDrawerExpanded={isDrawerExpanded}
1316
- onNotificationDrawerExpand={this.focusDrawer}
1316
+ onNotificationDrawerExpand={(event) => this.focusDrawer(event)}
1317
1317
  skipToContent={PageSkipToContent}
1318
1318
  breadcrumb={PageBreadcrumb}
1319
1319
  mainContainerId={pageId}
@@ -114,7 +114,7 @@ export default class DashboardWrapper extends React.Component {
114
114
  mainContainerId={mainContainerId ? mainContainerId : 'main-content-page-layout-default-nav'}
115
115
  notificationDrawer={notificationDrawer}
116
116
  isNotificationDrawerExpanded={isNotificationDrawerExpanded}
117
- onPageResize={onPageResize}
117
+ onPageResize={(event) => onPageResize(event)}
118
118
  {...pageProps}
119
119
  >
120
120
  {hasPageTemplateTitle && PageTemplateTitle}