@patternfly/react-core 5.0.0-alpha.83 → 5.0.0-alpha.85

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 (316) hide show
  1. package/CHANGELOG.md +8 -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/package.json +1 -1
  63. package/dist/esm/components/Nav/package.json +1 -1
  64. package/dist/esm/components/NotificationBadge/package.json +1 -1
  65. package/dist/esm/components/NotificationDrawer/NotificationDrawerHeader.d.ts +1 -1
  66. package/dist/esm/components/NotificationDrawer/NotificationDrawerHeader.d.ts.map +1 -1
  67. package/dist/esm/components/NotificationDrawer/NotificationDrawerHeader.js +1 -1
  68. package/dist/esm/components/NotificationDrawer/NotificationDrawerHeader.js.map +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/package.json +1 -1
  90. package/dist/esm/components/Spinner/package.json +1 -1
  91. package/dist/esm/components/Switch/package.json +1 -1
  92. package/dist/esm/components/Tabs/package.json +1 -1
  93. package/dist/esm/components/Text/package.json +1 -1
  94. package/dist/esm/components/TextArea/package.json +1 -1
  95. package/dist/esm/components/TextInput/package.json +1 -1
  96. package/dist/esm/components/TextInputGroup/package.json +1 -1
  97. package/dist/esm/components/Tile/package.json +1 -1
  98. package/dist/esm/components/TimePicker/package.json +1 -1
  99. package/dist/esm/components/Timestamp/package.json +1 -1
  100. package/dist/esm/components/Title/package.json +1 -1
  101. package/dist/esm/components/ToggleGroup/package.json +1 -1
  102. package/dist/esm/components/Toolbar/ToolbarFilter.js +1 -1
  103. package/dist/esm/components/Toolbar/ToolbarFilter.js.map +1 -1
  104. package/dist/esm/components/Toolbar/package.json +1 -1
  105. package/dist/esm/components/Tooltip/package.json +1 -1
  106. package/dist/esm/components/TreeView/package.json +1 -1
  107. package/dist/esm/components/Truncate/package.json +1 -1
  108. package/dist/esm/components/Wizard/hooks/package.json +1 -1
  109. package/dist/esm/components/Wizard/package.json +1 -1
  110. package/dist/esm/components/index.d.ts +0 -1
  111. package/dist/esm/components/index.d.ts.map +1 -1
  112. package/dist/esm/components/index.js +0 -1
  113. package/dist/esm/components/index.js.map +1 -1
  114. package/dist/esm/components/package.json +1 -1
  115. package/dist/esm/deprecated/components/ApplicationLauncher/package.json +1 -1
  116. package/dist/esm/deprecated/components/ContextSelector/package.json +1 -1
  117. package/dist/esm/deprecated/components/Dropdown/package.json +1 -1
  118. package/dist/esm/deprecated/components/OptionsMenu/package.json +1 -1
  119. package/dist/esm/deprecated/components/PageHeader/package.json +1 -1
  120. package/dist/esm/deprecated/components/Select/Select.d.ts +1 -1
  121. package/dist/esm/deprecated/components/Select/Select.d.ts.map +1 -1
  122. package/dist/esm/deprecated/components/Select/Select.js +1 -1
  123. package/dist/esm/deprecated/components/Select/Select.js.map +1 -1
  124. package/dist/esm/deprecated/components/Select/package.json +1 -1
  125. package/dist/esm/deprecated/components/Wizard/package.json +1 -1
  126. package/dist/esm/deprecated/components/package.json +1 -1
  127. package/dist/esm/deprecated/package.json +1 -1
  128. package/dist/esm/helpers/Popper/thirdparty/popper-core/package.json +1 -1
  129. package/dist/esm/helpers/package.json +1 -1
  130. package/dist/esm/layouts/Bullseye/package.json +1 -1
  131. package/dist/esm/layouts/Flex/package.json +1 -1
  132. package/dist/esm/layouts/Gallery/package.json +1 -1
  133. package/dist/esm/layouts/Grid/package.json +1 -1
  134. package/dist/esm/layouts/Level/package.json +1 -1
  135. package/dist/esm/layouts/Split/package.json +1 -1
  136. package/dist/esm/layouts/Stack/package.json +1 -1
  137. package/dist/esm/layouts/package.json +1 -1
  138. package/dist/esm/next/components/package.json +1 -1
  139. package/dist/esm/next/package.json +1 -1
  140. package/dist/esm/package.json +1 -1
  141. package/dist/js/components/AboutModal/package.json +1 -1
  142. package/dist/js/components/Accordion/package.json +1 -1
  143. package/dist/js/components/ActionList/package.json +1 -1
  144. package/dist/js/components/Alert/package.json +1 -1
  145. package/dist/js/components/Avatar/package.json +1 -1
  146. package/dist/js/components/BackToTop/package.json +1 -1
  147. package/dist/js/components/Backdrop/package.json +1 -1
  148. package/dist/js/components/BackgroundImage/package.json +1 -1
  149. package/dist/js/components/Badge/package.json +1 -1
  150. package/dist/js/components/Banner/package.json +1 -1
  151. package/dist/js/components/Brand/package.json +1 -1
  152. package/dist/js/components/Breadcrumb/package.json +1 -1
  153. package/dist/js/components/Button/package.json +1 -1
  154. package/dist/js/components/CalendarMonth/package.json +1 -1
  155. package/dist/js/components/Card/package.json +1 -1
  156. package/dist/js/components/Checkbox/package.json +1 -1
  157. package/dist/js/components/Chip/ChipGroup.d.ts.map +1 -0
  158. package/dist/js/components/{ChipGroup → Chip}/ChipGroup.js +1 -1
  159. package/dist/js/components/Chip/ChipGroup.js.map +1 -0
  160. package/dist/js/components/Chip/index.d.ts +1 -0
  161. package/dist/js/components/Chip/index.d.ts.map +1 -1
  162. package/dist/js/components/Chip/index.js +1 -0
  163. package/dist/js/components/Chip/index.js.map +1 -1
  164. package/dist/js/components/Chip/package.json +1 -1
  165. package/dist/js/components/ClipboardCopy/package.json +1 -1
  166. package/dist/js/components/CodeBlock/package.json +1 -1
  167. package/dist/js/components/DataList/package.json +1 -1
  168. package/dist/js/components/DatePicker/package.json +1 -1
  169. package/dist/js/components/DescriptionList/package.json +1 -1
  170. package/dist/js/components/Divider/package.json +1 -1
  171. package/dist/js/components/DragDrop/package.json +1 -1
  172. package/dist/js/components/Drawer/Drawer.d.ts +2 -2
  173. package/dist/js/components/Drawer/Drawer.d.ts.map +1 -1
  174. package/dist/js/components/Drawer/DrawerPanelContent.js +1 -1
  175. package/dist/js/components/Drawer/DrawerPanelContent.js.map +1 -1
  176. package/dist/js/components/Drawer/package.json +1 -1
  177. package/dist/js/components/Dropdown/package.json +1 -1
  178. package/dist/js/components/DualListSelector/package.json +1 -1
  179. package/dist/js/components/EmptyState/package.json +1 -1
  180. package/dist/js/components/ExpandableSection/package.json +1 -1
  181. package/dist/js/components/FileUpload/package.json +1 -1
  182. package/dist/js/components/Form/package.json +1 -1
  183. package/dist/js/components/FormSelect/package.json +1 -1
  184. package/dist/js/components/HelperText/package.json +1 -1
  185. package/dist/js/components/Hint/package.json +1 -1
  186. package/dist/js/components/Icon/package.json +1 -1
  187. package/dist/js/components/InputGroup/package.json +1 -1
  188. package/dist/js/components/JumpLinks/package.json +1 -1
  189. package/dist/js/components/Label/package.json +1 -1
  190. package/dist/js/components/LabelGroup/package.json +1 -1
  191. package/dist/js/components/List/package.json +1 -1
  192. package/dist/js/components/LoginPage/package.json +1 -1
  193. package/dist/js/components/Masthead/package.json +1 -1
  194. package/dist/js/components/Menu/package.json +1 -1
  195. package/dist/js/components/MenuToggle/package.json +1 -1
  196. package/dist/js/components/Modal/package.json +1 -1
  197. package/dist/js/components/MultipleFileUpload/package.json +1 -1
  198. package/dist/js/components/Nav/package.json +1 -1
  199. package/dist/js/components/NotificationBadge/package.json +1 -1
  200. package/dist/js/components/NotificationDrawer/NotificationDrawerHeader.d.ts +1 -1
  201. package/dist/js/components/NotificationDrawer/NotificationDrawerHeader.d.ts.map +1 -1
  202. package/dist/js/components/NotificationDrawer/NotificationDrawerHeader.js +1 -1
  203. package/dist/js/components/NotificationDrawer/NotificationDrawerHeader.js.map +1 -1
  204. package/dist/js/components/NotificationDrawer/package.json +1 -1
  205. package/dist/js/components/NumberInput/package.json +1 -1
  206. package/dist/js/components/OverflowMenu/package.json +1 -1
  207. package/dist/js/components/Page/Page.d.ts +3 -3
  208. package/dist/js/components/Page/Page.d.ts.map +1 -1
  209. package/dist/js/components/Page/Page.js +3 -3
  210. package/dist/js/components/Page/Page.js.map +1 -1
  211. package/dist/js/components/Page/package.json +1 -1
  212. package/dist/js/components/Pagination/package.json +1 -1
  213. package/dist/js/components/Panel/package.json +1 -1
  214. package/dist/js/components/Popover/package.json +1 -1
  215. package/dist/js/components/Progress/package.json +1 -1
  216. package/dist/js/components/ProgressStepper/package.json +1 -1
  217. package/dist/js/components/Radio/package.json +1 -1
  218. package/dist/js/components/SearchInput/package.json +1 -1
  219. package/dist/js/components/Select/package.json +1 -1
  220. package/dist/js/components/Sidebar/package.json +1 -1
  221. package/dist/js/components/SimpleList/package.json +1 -1
  222. package/dist/js/components/Skeleton/package.json +1 -1
  223. package/dist/js/components/SkipToContent/package.json +1 -1
  224. package/dist/js/components/Slider/package.json +1 -1
  225. package/dist/js/components/Spinner/package.json +1 -1
  226. package/dist/js/components/Switch/package.json +1 -1
  227. package/dist/js/components/Tabs/package.json +1 -1
  228. package/dist/js/components/Text/package.json +1 -1
  229. package/dist/js/components/TextArea/package.json +1 -1
  230. package/dist/js/components/TextInput/package.json +1 -1
  231. package/dist/js/components/TextInputGroup/package.json +1 -1
  232. package/dist/js/components/Tile/package.json +1 -1
  233. package/dist/js/components/TimePicker/package.json +1 -1
  234. package/dist/js/components/Timestamp/package.json +1 -1
  235. package/dist/js/components/Title/package.json +1 -1
  236. package/dist/js/components/ToggleGroup/package.json +1 -1
  237. package/dist/js/components/Toolbar/ToolbarFilter.js +2 -2
  238. package/dist/js/components/Toolbar/ToolbarFilter.js.map +1 -1
  239. package/dist/js/components/Toolbar/package.json +1 -1
  240. package/dist/js/components/Tooltip/package.json +1 -1
  241. package/dist/js/components/TreeView/package.json +1 -1
  242. package/dist/js/components/Truncate/package.json +1 -1
  243. package/dist/js/components/Wizard/hooks/package.json +1 -1
  244. package/dist/js/components/Wizard/package.json +1 -1
  245. package/dist/js/components/index.d.ts +0 -1
  246. package/dist/js/components/index.d.ts.map +1 -1
  247. package/dist/js/components/index.js +0 -1
  248. package/dist/js/components/index.js.map +1 -1
  249. package/dist/js/components/package.json +1 -1
  250. package/dist/js/deprecated/components/ApplicationLauncher/package.json +1 -1
  251. package/dist/js/deprecated/components/ContextSelector/package.json +1 -1
  252. package/dist/js/deprecated/components/Dropdown/package.json +1 -1
  253. package/dist/js/deprecated/components/OptionsMenu/package.json +1 -1
  254. package/dist/js/deprecated/components/PageHeader/package.json +1 -1
  255. package/dist/js/deprecated/components/Select/Select.d.ts +1 -1
  256. package/dist/js/deprecated/components/Select/Select.d.ts.map +1 -1
  257. package/dist/js/deprecated/components/Select/Select.js +3 -3
  258. package/dist/js/deprecated/components/Select/Select.js.map +1 -1
  259. package/dist/js/deprecated/components/Select/package.json +1 -1
  260. package/dist/js/deprecated/components/Wizard/package.json +1 -1
  261. package/dist/js/deprecated/components/package.json +1 -1
  262. package/dist/js/deprecated/package.json +1 -1
  263. package/dist/js/helpers/Popper/thirdparty/popper-core/package.json +1 -1
  264. package/dist/js/helpers/package.json +1 -1
  265. package/dist/js/layouts/Bullseye/package.json +1 -1
  266. package/dist/js/layouts/Flex/package.json +1 -1
  267. package/dist/js/layouts/Gallery/package.json +1 -1
  268. package/dist/js/layouts/Grid/package.json +1 -1
  269. package/dist/js/layouts/Level/package.json +1 -1
  270. package/dist/js/layouts/Split/package.json +1 -1
  271. package/dist/js/layouts/Stack/package.json +1 -1
  272. package/dist/js/layouts/package.json +1 -1
  273. package/dist/js/next/components/package.json +1 -1
  274. package/dist/js/next/package.json +1 -1
  275. package/dist/js/package.json +1 -1
  276. package/dist/umd/react-core.min.js +1 -1
  277. package/package.json +2 -2
  278. package/src/components/{ChipGroup → Chip}/ChipGroup.tsx +1 -1
  279. package/src/components/Chip/examples/Chip.md +20 -2
  280. package/src/components/Chip/index.ts +1 -0
  281. package/src/components/Drawer/Drawer.tsx +2 -2
  282. package/src/components/Drawer/DrawerPanelContent.tsx +1 -1
  283. package/src/components/NotificationDrawer/NotificationDrawerHeader.tsx +2 -2
  284. package/src/components/NotificationDrawer/examples/NotificationDrawerBasic.tsx +2 -2
  285. package/src/components/NotificationDrawer/examples/NotificationDrawerLightweight.tsx +2 -2
  286. package/src/components/Page/Page.tsx +5 -5
  287. package/src/components/Toolbar/ToolbarFilter.tsx +1 -1
  288. package/src/components/index.ts +0 -1
  289. package/src/demos/Nav.md +2 -2
  290. package/src/demos/NotificationDrawer/NotificationDrawer.md +10 -10
  291. package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +1 -1
  292. package/src/demos/examples/DashboardWrapper.js +1 -1
  293. package/src/deprecated/components/Select/Select.tsx +1 -1
  294. package/dist/esm/components/ChipGroup/ChipGroup.d.ts.map +0 -1
  295. package/dist/esm/components/ChipGroup/ChipGroup.js.map +0 -1
  296. package/dist/esm/components/ChipGroup/index.d.ts +0 -2
  297. package/dist/esm/components/ChipGroup/index.d.ts.map +0 -1
  298. package/dist/esm/components/ChipGroup/index.js +0 -2
  299. package/dist/esm/components/ChipGroup/index.js.map +0 -1
  300. package/dist/esm/components/ChipGroup/package.json +0 -1
  301. package/dist/js/components/ChipGroup/ChipGroup.d.ts.map +0 -1
  302. package/dist/js/components/ChipGroup/ChipGroup.js.map +0 -1
  303. package/dist/js/components/ChipGroup/index.d.ts +0 -2
  304. package/dist/js/components/ChipGroup/index.d.ts.map +0 -1
  305. package/dist/js/components/ChipGroup/index.js +0 -5
  306. package/dist/js/components/ChipGroup/index.js.map +0 -1
  307. package/dist/js/components/ChipGroup/package.json +0 -1
  308. package/src/components/ChipGroup/examples/ChipGroup.md +0 -24
  309. package/src/components/ChipGroup/index.ts +0 -1
  310. /package/dist/esm/components/{ChipGroup → Chip}/ChipGroup.d.ts +0 -0
  311. /package/dist/js/components/{ChipGroup → Chip}/ChipGroup.d.ts +0 -0
  312. /package/src/components/{ChipGroup → Chip}/__tests__/ChipGroup.test.tsx +0 -0
  313. /package/src/components/{ChipGroup → Chip}/__tests__/__snapshots__/ChipGroup.test.tsx.snap +0 -0
  314. /package/src/components/{ChipGroup → Chip}/examples/ChipGroupInline.tsx +0 -0
  315. /package/src/components/{ChipGroup → Chip}/examples/ChipGroupRemovableCategories.tsx +0 -0
  316. /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.83",
3
+ "version": "5.0.0-alpha.85",
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": "ce1afc78845fba2fd75a62f3ed440b289b4d5b56"
74
+ "gitHead": "2161ca8ccb09609f0a72a68e70bd86cda585ea97"
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
  }
@@ -19,7 +19,7 @@ export interface NotificationDrawerHeaderProps extends React.HTMLProps<HTMLDivEl
19
19
  /** Notification drawer heading custom text which can be used instead of providing count/unreadText */
20
20
  customText?: string;
21
21
  /** Callback for when close button is clicked */
22
- onClose?: () => void;
22
+ onClose?: (event: KeyboardEvent | React.MouseEvent) => void;
23
23
  /** Notification drawer heading title */
24
24
  title?: string;
25
25
  /** Notification drawer heading unread text used in combination with a count */
@@ -49,7 +49,7 @@ export const NotificationDrawerHeader: React.FunctionComponent<NotificationDrawe
49
49
  {children}
50
50
  {onClose && (
51
51
  <div>
52
- <Button variant={ButtonVariant.plain} aria-label={closeButtonAriaLabel} onClick={onClose}>
52
+ <Button variant={ButtonVariant.plain} aria-label={closeButtonAriaLabel} onClick={(event) => onClose(event)}>
53
53
  <TimesIcon aria-hidden="true" />
54
54
  </Button>
55
55
  </div>
@@ -29,7 +29,7 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
29
29
  setIsOpenMap(new Array(7).fill(false));
30
30
  };
31
31
 
32
- const onDrawerClose = () => {
32
+ const onDrawerClose = (_event: React.MouseEvent<Element, MouseEvent> | KeyboardEvent) => {
33
33
  setIsOpenMap(new Array(7).fill(false));
34
34
  };
35
35
 
@@ -47,7 +47,7 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
47
47
  ];
48
48
  return (
49
49
  <NotificationDrawer>
50
- <NotificationDrawerHeader count={3} onClose={onDrawerClose}>
50
+ <NotificationDrawerHeader count={3} onClose={(event) => onDrawerClose(event)}>
51
51
  <DropdownDeprecated
52
52
  onSelect={onSelect}
53
53
  toggle={<KebabToggle onToggle={onToggle(0)} id="basic-kebab-toggle" />}
@@ -43,13 +43,13 @@ export const NotificationDrawerLightweight: React.FunctionComponent = () => {
43
43
  setFirstGroupExpanded(false);
44
44
  };
45
45
 
46
- const onDrawerClose = () => {
46
+ const onDrawerClose = (_event: KeyboardEvent | React.MouseEvent<Element, MouseEvent>) => {
47
47
  // do something cool in a callback
48
48
  };
49
49
 
50
50
  return (
51
51
  <NotificationDrawer>
52
- <NotificationDrawerHeader onClose={onDrawerClose} />
52
+ <NotificationDrawerHeader onClose={(event) => onDrawerClose(event)} />
53
53
  <NotificationDrawerBody>
54
54
  <NotificationDrawerGroupList>
55
55
  <NotificationDrawerGroup
@@ -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>
@@ -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
  >
@@ -143,7 +143,7 @@ class BasicNotificationDrawer extends React.Component {
143
143
  });
144
144
  };
145
145
 
146
- this.onCloseNotificationDrawer = () => {
146
+ this.onCloseNotificationDrawer = (_event) => {
147
147
  this.setState((prevState) => {
148
148
  return {
149
149
  isDrawerExpanded: !prevState.isDrawerExpanded
@@ -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
  };
@@ -258,7 +258,7 @@ class BasicNotificationDrawer extends React.Component {
258
258
  <ToolbarItem visibility={{ default: 'visible' }} isSelected={isDrawerExpanded}>
259
259
  <NotificationBadge
260
260
  variant={this.getNumberUnread() === 0 ? 'read' : 'unread'}
261
- onClick={this.onCloseNotificationDrawer}
261
+ onClick={(event) => this.onCloseNotificationDrawer(event)}
262
262
  aria-label="Notifications"
263
263
  isExpanded={isDrawerExpanded}
264
264
  >
@@ -385,7 +385,7 @@ class BasicNotificationDrawer extends React.Component {
385
385
 
386
386
  const notificationDrawer = (
387
387
  <NotificationDrawer ref={this.drawerRef}>
388
- <NotificationDrawerHeader count={this.getNumberUnread()} onClose={this.onCloseNotificationDrawer}>
388
+ <NotificationDrawerHeader count={this.getNumberUnread()} onClose={(event) => this.onCloseNotificationDrawer(event)}>
389
389
  <DropdownDeprecated
390
390
  onSelect={this.onSelect}
391
391
  toggle={
@@ -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}
@@ -702,7 +702,7 @@ class GroupedNotificationDrawer extends React.Component {
702
702
  });
703
703
  };
704
704
 
705
- this.onCloseNotificationDrawer = () => {
705
+ this.onCloseNotificationDrawer = (_event) => {
706
706
  this.setState((prevState) => {
707
707
  return {
708
708
  isDrawerExpanded: !prevState.isDrawerExpanded
@@ -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');
@@ -860,7 +860,7 @@ class GroupedNotificationDrawer extends React.Component {
860
860
  <ToolbarItem visibility={{ default: 'visible' }} isSelected={isDrawerExpanded}>
861
861
  <NotificationBadge
862
862
  variant={this.getNumberUnread() === 0 ? 'read' : 'unread'}
863
- onClick={this.onCloseNotificationDrawer}
863
+ onClick={(event) => this.onCloseNotificationDrawer(event)}
864
864
  aria-label="Notifications"
865
865
  isExpanded={isDrawerExpanded}
866
866
  >
@@ -987,7 +987,7 @@ class GroupedNotificationDrawer extends React.Component {
987
987
 
988
988
  const notificationDrawer = (
989
989
  <NotificationDrawer ref={this.drawerRef}>
990
- <NotificationDrawerHeader count={this.getNumberUnread()} onClose={this.onCloseNotificationDrawer}>
990
+ <NotificationDrawerHeader count={this.getNumberUnread()} onClose={(event) => this.onCloseNotificationDrawer(event)}>
991
991
  <DropdownDeprecated
992
992
  onSelect={this.onSelect}
993
993
  toggle={
@@ -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}
@@ -238,7 +238,7 @@ export const AlertGroupToastWithNotificationDrawer: React.FunctionComponent = ()
238
238
 
239
239
  const notificationDrawer = (
240
240
  <NotificationDrawer>
241
- <NotificationDrawerHeader count={getUnreadNotificationsNumber()} onClose={() => setDrawerExpanded(false)}>
241
+ <NotificationDrawerHeader count={getUnreadNotificationsNumber()} onClose={(_event) => setDrawerExpanded(false)}>
242
242
  <DropdownDeprecated
243
243
  onSelect={onDropdownSelect}
244
244
  toggle={
@@ -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}
@@ -19,7 +19,7 @@ import {
19
19
  SelectDirection,
20
20
  SelectFooterTabbableItems
21
21
  } from './selectConstants';
22
- import { ChipGroup, ChipGroupProps } from '../../../components/ChipGroup';
22
+ import { ChipGroup, ChipGroupProps } from '../../../components/Chip';
23
23
  import { Chip } from '../../../components/Chip';
24
24
  import { Spinner } from '../../../components/Spinner';
25
25
  import {
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChipGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/ChipGroup/ChipGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAW,eAAe,EAAE,MAAM,YAAY,CAAC;AAItD,OAAO,EAAgB,SAAS,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,SAAS;IAClF,yEAAyE;IACzE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8IAA8I;IAC9I,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;I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../../../../src/components/ChipGroup/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './ChipGroup';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ChipGroup/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1 +0,0 @@
1
- {"name":"@patternfly/react-core-chipgroup-esm","main":"index.js","module":"./dist/esm/components/ChipGroup/index.js","typings":"index.d.ts","version":"5.0.0-alpha.82"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChipGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/ChipGroup/ChipGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAW,eAAe,EAAE,MAAM,YAAY,CAAC;AAItD,OAAO,EAAgB,SAAS,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,SAAS;IAClF,yEAAyE;IACzE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8IAA8I;IAC9I,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2EA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B,EAC7B,OAAO,EAAE,OAAO,EAChB,EAAE,EAAE,gBAAgB,EAAE,EAAE,qBACP,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAC3C,MAAM,EAAE,MAAM,IAAI,iBAAiB;wBAEnC,oBAAC,2BAAe,mBAAa,MAAM,GAAG,CAC/B,CACL,CACP,CACG,CACP,CAAC;QACJ,CAAC,CAAC;QAEF,OAAO,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAC,uBAAU,QAAE,QAAQ,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,QAAQ,CAAC,CAAc,CAAC;IACtH,CAAC;;AAnJH,8BAoJC;AAnJQ,qBAAW,GAAG,WAAW,CAAC;AAU1B,sBAAY,GAAmB;IACpC,YAAY,EAAE,WAAW;IACzB,aAAa,EAAE,mBAAmB;IAClC,YAAY,EAAE,EAAE;IAChB,aAAa,EAAE,KAAK;IACpB,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE,KAAK;IACjB,6DAA6D;IAC7D,OAAO,EAAE,CAAC,EAAoB,EAAE,EAAE,CAAC,SAAgB;IACnD,mBAAmB,EAAE,CAAC,EAAoB,EAAE,EAAE,CAAC,SAAgB;IAC/D,iBAAiB,EAAE,kBAAkB;IACrC,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,qBAAqB;CACpC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './ChipGroup';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ChipGroup/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./ChipGroup"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ChipGroup/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B"}
@@ -1 +0,0 @@
1
- {"name":"@patternfly/react-core-chipgroup-cjs","main":"index.js","module":"./dist/js/components/ChipGroup/index.js","typings":"index.d.ts","version":"5.0.0-alpha.82"}
@@ -1,24 +0,0 @@
1
- ---
2
- id: Chip group
3
- section: components
4
- cssPrefix: pf-c-chip-group
5
- propComponents: ['Chip', 'ChipGroup']
6
- ouia: true
7
- ---
8
-
9
- ## Examples
10
-
11
- ### Simple inline
12
-
13
- ```ts file='./ChipGroupInline.tsx'
14
- ```
15
-
16
- ### With categories
17
-
18
- ```ts file='./ChipGroupWithCategories.tsx'
19
- ```
20
-
21
- ### With removable categories
22
-
23
- ```ts file='./ChipGroupRemovableCategories.tsx'
24
- ```
@@ -1 +0,0 @@
1
- export * from './ChipGroup';