@patternfly/react-core 5.0.0-alpha.47 → 5.0.0-alpha.49

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 (521) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.d.ts +1 -1
  3. package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +1 -1
  4. package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js +2 -2
  5. package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js.map +1 -1
  6. package/dist/esm/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts +1 -1
  7. package/dist/esm/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts.map +1 -1
  8. package/dist/esm/components/ApplicationLauncher/ApplicationLauncherGroup.js +1 -1
  9. package/dist/esm/components/ApplicationLauncher/ApplicationLauncherGroup.js.map +1 -1
  10. package/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.d.ts +1 -1
  11. package/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.d.ts.map +1 -1
  12. package/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js +1 -1
  13. package/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js.map +1 -1
  14. package/dist/esm/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts +1 -1
  15. package/dist/esm/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts.map +1 -1
  16. package/dist/esm/components/ApplicationLauncher/ApplicationLauncherSeparator.js +1 -1
  17. package/dist/esm/components/ApplicationLauncher/ApplicationLauncherSeparator.js.map +1 -1
  18. package/dist/esm/components/Backdrop/Backdrop.d.ts +2 -2
  19. package/dist/esm/components/Backdrop/Backdrop.d.ts.map +1 -1
  20. package/dist/esm/components/Dropdown/Dropdown.d.ts +24 -55
  21. package/dist/esm/components/Dropdown/Dropdown.d.ts.map +1 -1
  22. package/dist/esm/components/Dropdown/Dropdown.js +53 -12
  23. package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
  24. package/dist/esm/components/Dropdown/DropdownGroup.d.ts +8 -7
  25. package/dist/esm/components/Dropdown/DropdownGroup.d.ts.map +1 -1
  26. package/dist/esm/components/Dropdown/DropdownGroup.js +4 -9
  27. package/dist/esm/components/Dropdown/DropdownGroup.js.map +1 -1
  28. package/dist/esm/components/Dropdown/DropdownItem.d.ts +8 -41
  29. package/dist/esm/components/Dropdown/DropdownItem.d.ts.map +1 -1
  30. package/dist/esm/components/Dropdown/DropdownItem.js +5 -8
  31. package/dist/esm/components/Dropdown/DropdownItem.js.map +1 -1
  32. package/dist/esm/{next/components → components}/Dropdown/DropdownList.d.ts +1 -1
  33. package/dist/esm/components/Dropdown/DropdownList.d.ts.map +1 -0
  34. package/dist/esm/{next/components → components}/Dropdown/DropdownList.js +1 -1
  35. package/dist/esm/components/Dropdown/DropdownList.js.map +1 -0
  36. package/dist/esm/components/Dropdown/index.d.ts +1 -9
  37. package/dist/esm/components/Dropdown/index.d.ts.map +1 -1
  38. package/dist/esm/components/Dropdown/index.js +1 -9
  39. package/dist/esm/components/Dropdown/index.js.map +1 -1
  40. package/dist/esm/components/OverflowMenu/OverflowMenuDropdownItem.d.ts +1 -1
  41. package/dist/esm/components/OverflowMenu/OverflowMenuDropdownItem.d.ts.map +1 -1
  42. package/dist/esm/components/OverflowMenu/OverflowMenuDropdownItem.js +2 -2
  43. package/dist/esm/components/OverflowMenu/OverflowMenuDropdownItem.js.map +1 -1
  44. package/dist/esm/components/Progress/ProgressContainer.d.ts.map +1 -1
  45. package/dist/esm/components/Progress/ProgressContainer.js +5 -4
  46. package/dist/esm/components/Progress/ProgressContainer.js.map +1 -1
  47. package/dist/esm/{components → deprecated/components}/Dropdown/BadgeToggle.d.ts +1 -1
  48. package/dist/esm/deprecated/components/Dropdown/BadgeToggle.d.ts.map +1 -0
  49. package/dist/esm/{components → deprecated/components}/Dropdown/BadgeToggle.js +1 -1
  50. package/dist/esm/deprecated/components/Dropdown/BadgeToggle.js.map +1 -0
  51. package/dist/esm/deprecated/components/Dropdown/Dropdown.d.ts +66 -0
  52. package/dist/esm/deprecated/components/Dropdown/Dropdown.d.ts.map +1 -0
  53. package/dist/esm/deprecated/components/Dropdown/Dropdown.js +16 -0
  54. package/dist/esm/deprecated/components/Dropdown/Dropdown.js.map +1 -0
  55. package/dist/esm/deprecated/components/Dropdown/DropdownGroup.d.ts +11 -0
  56. package/dist/esm/deprecated/components/Dropdown/DropdownGroup.d.ts.map +1 -0
  57. package/dist/esm/deprecated/components/Dropdown/DropdownGroup.js +15 -0
  58. package/dist/esm/deprecated/components/Dropdown/DropdownGroup.js.map +1 -0
  59. package/dist/esm/deprecated/components/Dropdown/DropdownItem.d.ts +52 -0
  60. package/dist/esm/deprecated/components/Dropdown/DropdownItem.d.ts.map +1 -0
  61. package/dist/esm/deprecated/components/Dropdown/DropdownItem.js +15 -0
  62. package/dist/esm/deprecated/components/Dropdown/DropdownItem.js.map +1 -0
  63. package/dist/esm/deprecated/components/Dropdown/DropdownMenu.d.ts.map +1 -0
  64. package/dist/esm/{components → deprecated/components}/Dropdown/DropdownMenu.js +7 -7
  65. package/dist/esm/deprecated/components/Dropdown/DropdownMenu.js.map +1 -0
  66. package/dist/esm/{components → deprecated/components}/Dropdown/DropdownSeparator.d.ts +1 -1
  67. package/dist/esm/deprecated/components/Dropdown/DropdownSeparator.d.ts.map +1 -0
  68. package/dist/esm/{components → deprecated/components}/Dropdown/DropdownSeparator.js +3 -3
  69. package/dist/esm/deprecated/components/Dropdown/DropdownSeparator.js.map +1 -0
  70. package/dist/{js → esm/deprecated}/components/Dropdown/DropdownToggle.d.ts +1 -1
  71. package/dist/esm/deprecated/components/Dropdown/DropdownToggle.d.ts.map +1 -0
  72. package/dist/esm/{components → deprecated/components}/Dropdown/DropdownToggle.js +1 -1
  73. package/dist/esm/deprecated/components/Dropdown/DropdownToggle.js.map +1 -0
  74. package/dist/esm/deprecated/components/Dropdown/DropdownToggleAction.d.ts.map +1 -0
  75. package/dist/esm/deprecated/components/Dropdown/DropdownToggleAction.js.map +1 -0
  76. package/dist/{js → esm/deprecated}/components/Dropdown/DropdownToggleCheckbox.d.ts +2 -2
  77. package/dist/esm/deprecated/components/Dropdown/DropdownToggleCheckbox.d.ts.map +1 -0
  78. package/dist/esm/{components → deprecated/components}/Dropdown/DropdownToggleCheckbox.js +2 -2
  79. package/dist/esm/deprecated/components/Dropdown/DropdownToggleCheckbox.js.map +1 -0
  80. package/dist/{js → esm/deprecated}/components/Dropdown/DropdownWithContext.d.ts +2 -2
  81. package/dist/esm/deprecated/components/Dropdown/DropdownWithContext.d.ts.map +1 -0
  82. package/dist/esm/{components → deprecated/components}/Dropdown/DropdownWithContext.js +2 -2
  83. package/dist/esm/deprecated/components/Dropdown/DropdownWithContext.js.map +1 -0
  84. package/dist/esm/deprecated/components/Dropdown/InternalDropdownItem.d.ts.map +1 -0
  85. package/dist/esm/{components → deprecated/components}/Dropdown/InternalDropdownItem.js +3 -3
  86. package/dist/esm/deprecated/components/Dropdown/InternalDropdownItem.js.map +1 -0
  87. package/dist/esm/deprecated/components/Dropdown/KebabToggle.d.ts.map +1 -0
  88. package/dist/esm/deprecated/components/Dropdown/KebabToggle.js.map +1 -0
  89. package/dist/{js → esm/deprecated}/components/Dropdown/Toggle.d.ts +1 -1
  90. package/dist/esm/deprecated/components/Dropdown/Toggle.d.ts.map +1 -0
  91. package/dist/esm/{components → deprecated/components}/Dropdown/Toggle.js +2 -2
  92. package/dist/esm/deprecated/components/Dropdown/Toggle.js.map +1 -0
  93. package/dist/esm/{components → deprecated/components}/Dropdown/dropdownConstants.d.ts +1 -1
  94. package/dist/esm/deprecated/components/Dropdown/dropdownConstants.d.ts.map +1 -0
  95. package/dist/esm/deprecated/components/Dropdown/dropdownConstants.js.map +1 -0
  96. package/dist/esm/deprecated/components/Dropdown/index.d.ts +13 -0
  97. package/dist/esm/deprecated/components/Dropdown/index.d.ts.map +1 -0
  98. package/dist/esm/deprecated/components/Dropdown/index.js +13 -0
  99. package/dist/esm/deprecated/components/Dropdown/index.js.map +1 -0
  100. package/dist/esm/deprecated/components/OptionsMenu/OptionsMenu.js +2 -2
  101. package/dist/esm/deprecated/components/OptionsMenu/OptionsMenu.js.map +1 -1
  102. package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItem.js +1 -1
  103. package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItem.js.map +1 -1
  104. package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggle.js +1 -1
  105. package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggle.js.map +1 -1
  106. package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js +2 -2
  107. package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js.map +1 -1
  108. package/dist/esm/deprecated/components/index.d.ts +1 -0
  109. package/dist/esm/deprecated/components/index.d.ts.map +1 -1
  110. package/dist/esm/deprecated/components/index.js +1 -0
  111. package/dist/esm/deprecated/components/index.js.map +1 -1
  112. package/dist/esm/next/components/index.d.ts +0 -1
  113. package/dist/esm/next/components/index.d.ts.map +1 -1
  114. package/dist/esm/next/components/index.js +0 -1
  115. package/dist/esm/next/components/index.js.map +1 -1
  116. package/dist/js/components/ApplicationLauncher/ApplicationLauncher.d.ts +1 -1
  117. package/dist/js/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +1 -1
  118. package/dist/js/components/ApplicationLauncher/ApplicationLauncher.js +2 -2
  119. package/dist/js/components/ApplicationLauncher/ApplicationLauncher.js.map +1 -1
  120. package/dist/js/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts +1 -1
  121. package/dist/js/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts.map +1 -1
  122. package/dist/js/components/ApplicationLauncher/ApplicationLauncherGroup.js +1 -1
  123. package/dist/js/components/ApplicationLauncher/ApplicationLauncherGroup.js.map +1 -1
  124. package/dist/js/components/ApplicationLauncher/ApplicationLauncherItem.d.ts +1 -1
  125. package/dist/js/components/ApplicationLauncher/ApplicationLauncherItem.d.ts.map +1 -1
  126. package/dist/js/components/ApplicationLauncher/ApplicationLauncherItem.js +1 -1
  127. package/dist/js/components/ApplicationLauncher/ApplicationLauncherItem.js.map +1 -1
  128. package/dist/js/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts +1 -1
  129. package/dist/js/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts.map +1 -1
  130. package/dist/js/components/ApplicationLauncher/ApplicationLauncherSeparator.js +1 -1
  131. package/dist/js/components/ApplicationLauncher/ApplicationLauncherSeparator.js.map +1 -1
  132. package/dist/js/components/Backdrop/Backdrop.d.ts +2 -2
  133. package/dist/js/components/Backdrop/Backdrop.d.ts.map +1 -1
  134. package/dist/js/components/Dropdown/Dropdown.d.ts +24 -55
  135. package/dist/js/components/Dropdown/Dropdown.d.ts.map +1 -1
  136. package/dist/js/components/Dropdown/Dropdown.js +52 -12
  137. package/dist/js/components/Dropdown/Dropdown.js.map +1 -1
  138. package/dist/js/components/Dropdown/DropdownGroup.d.ts +8 -7
  139. package/dist/js/components/Dropdown/DropdownGroup.d.ts.map +1 -1
  140. package/dist/js/components/Dropdown/DropdownGroup.js +4 -9
  141. package/dist/js/components/Dropdown/DropdownGroup.js.map +1 -1
  142. package/dist/js/components/Dropdown/DropdownItem.d.ts +8 -41
  143. package/dist/js/components/Dropdown/DropdownItem.d.ts.map +1 -1
  144. package/dist/js/components/Dropdown/DropdownItem.js +5 -8
  145. package/dist/js/components/Dropdown/DropdownItem.js.map +1 -1
  146. package/dist/js/{next/components → components}/Dropdown/DropdownList.d.ts +1 -1
  147. package/dist/js/components/Dropdown/DropdownList.d.ts.map +1 -0
  148. package/dist/js/{next/components → components}/Dropdown/DropdownList.js +1 -1
  149. package/dist/js/components/Dropdown/DropdownList.js.map +1 -0
  150. package/dist/js/components/Dropdown/index.d.ts +1 -9
  151. package/dist/js/components/Dropdown/index.d.ts.map +1 -1
  152. package/dist/js/components/Dropdown/index.js +1 -9
  153. package/dist/js/components/Dropdown/index.js.map +1 -1
  154. package/dist/js/components/OverflowMenu/OverflowMenuDropdownItem.d.ts +1 -1
  155. package/dist/js/components/OverflowMenu/OverflowMenuDropdownItem.d.ts.map +1 -1
  156. package/dist/js/components/OverflowMenu/OverflowMenuDropdownItem.js +2 -2
  157. package/dist/js/components/OverflowMenu/OverflowMenuDropdownItem.js.map +1 -1
  158. package/dist/js/components/Progress/ProgressContainer.d.ts.map +1 -1
  159. package/dist/js/components/Progress/ProgressContainer.js +5 -4
  160. package/dist/js/components/Progress/ProgressContainer.js.map +1 -1
  161. package/dist/js/{components → deprecated/components}/Dropdown/BadgeToggle.d.ts +1 -1
  162. package/dist/js/deprecated/components/Dropdown/BadgeToggle.d.ts.map +1 -0
  163. package/dist/js/{components → deprecated/components}/Dropdown/BadgeToggle.js +1 -1
  164. package/dist/js/deprecated/components/Dropdown/BadgeToggle.js.map +1 -0
  165. package/dist/js/deprecated/components/Dropdown/Dropdown.d.ts +66 -0
  166. package/dist/js/deprecated/components/Dropdown/Dropdown.d.ts.map +1 -0
  167. package/dist/js/deprecated/components/Dropdown/Dropdown.js +20 -0
  168. package/dist/js/deprecated/components/Dropdown/Dropdown.js.map +1 -0
  169. package/dist/js/deprecated/components/Dropdown/DropdownGroup.d.ts +11 -0
  170. package/dist/js/deprecated/components/Dropdown/DropdownGroup.d.ts.map +1 -0
  171. package/dist/js/deprecated/components/Dropdown/DropdownGroup.js +19 -0
  172. package/dist/js/deprecated/components/Dropdown/DropdownGroup.js.map +1 -0
  173. package/dist/js/deprecated/components/Dropdown/DropdownItem.d.ts +52 -0
  174. package/dist/js/deprecated/components/Dropdown/DropdownItem.d.ts.map +1 -0
  175. package/dist/js/deprecated/components/Dropdown/DropdownItem.js +19 -0
  176. package/dist/js/deprecated/components/Dropdown/DropdownItem.js.map +1 -0
  177. package/dist/js/deprecated/components/Dropdown/DropdownMenu.d.ts.map +1 -0
  178. package/dist/js/{components → deprecated/components}/Dropdown/DropdownMenu.js +7 -7
  179. package/dist/js/deprecated/components/Dropdown/DropdownMenu.js.map +1 -0
  180. package/dist/js/{components → deprecated/components}/Dropdown/DropdownSeparator.d.ts +1 -1
  181. package/dist/js/deprecated/components/Dropdown/DropdownSeparator.d.ts.map +1 -0
  182. package/dist/js/{components → deprecated/components}/Dropdown/DropdownSeparator.js +3 -3
  183. package/dist/js/deprecated/components/Dropdown/DropdownSeparator.js.map +1 -0
  184. package/dist/{esm → js/deprecated}/components/Dropdown/DropdownToggle.d.ts +1 -1
  185. package/dist/js/deprecated/components/Dropdown/DropdownToggle.d.ts.map +1 -0
  186. package/dist/js/{components → deprecated/components}/Dropdown/DropdownToggle.js +1 -1
  187. package/dist/js/deprecated/components/Dropdown/DropdownToggle.js.map +1 -0
  188. package/dist/js/deprecated/components/Dropdown/DropdownToggleAction.d.ts.map +1 -0
  189. package/dist/js/deprecated/components/Dropdown/DropdownToggleAction.js.map +1 -0
  190. package/dist/{esm → js/deprecated}/components/Dropdown/DropdownToggleCheckbox.d.ts +2 -2
  191. package/dist/js/deprecated/components/Dropdown/DropdownToggleCheckbox.d.ts.map +1 -0
  192. package/dist/js/{components → deprecated/components}/Dropdown/DropdownToggleCheckbox.js +2 -2
  193. package/dist/js/deprecated/components/Dropdown/DropdownToggleCheckbox.js.map +1 -0
  194. package/dist/{esm → js/deprecated}/components/Dropdown/DropdownWithContext.d.ts +2 -2
  195. package/dist/js/deprecated/components/Dropdown/DropdownWithContext.d.ts.map +1 -0
  196. package/dist/js/{components → deprecated/components}/Dropdown/DropdownWithContext.js +2 -2
  197. package/dist/js/deprecated/components/Dropdown/DropdownWithContext.js.map +1 -0
  198. package/dist/js/deprecated/components/Dropdown/InternalDropdownItem.d.ts.map +1 -0
  199. package/dist/js/{components → deprecated/components}/Dropdown/InternalDropdownItem.js +3 -3
  200. package/dist/js/deprecated/components/Dropdown/InternalDropdownItem.js.map +1 -0
  201. package/dist/js/deprecated/components/Dropdown/KebabToggle.d.ts.map +1 -0
  202. package/dist/js/deprecated/components/Dropdown/KebabToggle.js.map +1 -0
  203. package/dist/{esm → js/deprecated}/components/Dropdown/Toggle.d.ts +1 -1
  204. package/dist/js/deprecated/components/Dropdown/Toggle.d.ts.map +1 -0
  205. package/dist/js/{components → deprecated/components}/Dropdown/Toggle.js +2 -2
  206. package/dist/js/deprecated/components/Dropdown/Toggle.js.map +1 -0
  207. package/dist/js/{components → deprecated/components}/Dropdown/dropdownConstants.d.ts +1 -1
  208. package/dist/js/deprecated/components/Dropdown/dropdownConstants.d.ts.map +1 -0
  209. package/dist/js/deprecated/components/Dropdown/dropdownConstants.js.map +1 -0
  210. package/dist/js/deprecated/components/Dropdown/index.d.ts +13 -0
  211. package/dist/js/deprecated/components/Dropdown/index.d.ts.map +1 -0
  212. package/dist/js/deprecated/components/Dropdown/index.js +16 -0
  213. package/dist/js/deprecated/components/Dropdown/index.js.map +1 -0
  214. package/dist/js/deprecated/components/OptionsMenu/OptionsMenu.js +2 -2
  215. package/dist/js/deprecated/components/OptionsMenu/OptionsMenu.js.map +1 -1
  216. package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItem.js +1 -1
  217. package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItem.js.map +1 -1
  218. package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggle.js +1 -1
  219. package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggle.js.map +1 -1
  220. package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js +2 -2
  221. package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js.map +1 -1
  222. package/dist/js/deprecated/components/index.d.ts +1 -0
  223. package/dist/js/deprecated/components/index.d.ts.map +1 -1
  224. package/dist/js/deprecated/components/index.js +1 -0
  225. package/dist/js/deprecated/components/index.js.map +1 -1
  226. package/dist/js/next/components/index.d.ts +0 -1
  227. package/dist/js/next/components/index.d.ts.map +1 -1
  228. package/dist/js/next/components/index.js +0 -1
  229. package/dist/js/next/components/index.js.map +1 -1
  230. package/dist/umd/react-core.min.js +5 -35
  231. package/package.json +5 -5
  232. package/src/components/ActionList/examples/ActionList.md +10 -0
  233. package/src/components/ActionList/examples/ActionListSingleGroup.tsx +15 -17
  234. package/src/components/ApplicationLauncher/ApplicationLauncher.tsx +8 -9
  235. package/src/components/ApplicationLauncher/ApplicationLauncherGroup.tsx +1 -1
  236. package/src/components/ApplicationLauncher/ApplicationLauncherItem.tsx +1 -1
  237. package/src/components/ApplicationLauncher/ApplicationLauncherSeparator.tsx +1 -1
  238. package/src/components/ApplicationLauncher/__tests__/ApplicationLauncher.test.tsx +1 -1
  239. package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherSeparator.test.tsx +1 -1
  240. package/src/components/ApplicationLauncher/examples/ApplicationLauncher.md +12 -0
  241. package/src/components/ApplicationLauncher/examples/ApplicationLauncherAlignRight.tsx +3 -2
  242. package/src/components/ApplicationLauncher/examples/ApplicationLauncherAlignTop.tsx +3 -2
  243. package/src/components/Backdrop/Backdrop.tsx +2 -2
  244. package/src/components/Backdrop/examples/Backdrop.md +0 -5
  245. package/src/components/Breadcrumb/examples/Breadcrumb.md +9 -0
  246. package/src/components/Breadcrumb/examples/BreadcrumbDropdown.tsx +11 -13
  247. package/src/components/CalendarMonth/examples/CalendarMonth.md +1 -0
  248. package/src/components/Card/examples/Card.md +35 -17
  249. package/src/components/Card/examples/CardExpandable.tsx +18 -16
  250. package/src/components/Card/examples/CardExpandableWithIcon.tsx +16 -21
  251. package/src/components/Card/examples/CardHeaderInCardHead.tsx +16 -21
  252. package/src/components/Card/examples/CardLegacySelectable.tsx +16 -19
  253. package/src/components/Card/examples/CardOnlyActionsInCardHead.tsx +17 -20
  254. package/src/components/Card/examples/CardSelectable.tsx +16 -19
  255. package/src/components/Card/examples/CardWithImageAndActions.tsx +16 -22
  256. package/src/components/Checkbox/examples/Checkbox.md +1 -0
  257. package/src/components/DataList/__tests__/DataList.test.tsx +10 -10
  258. package/src/components/DataList/examples/DataList.md +18 -1
  259. package/src/components/DataList/examples/DataListActions.tsx +12 -10
  260. package/src/components/DataList/examples/DataListCheckboxes.tsx +26 -24
  261. package/src/components/DataList/examples/DataListExpandable.tsx +25 -23
  262. package/src/components/DataList/examples/DataListMixedExpandable.tsx +25 -23
  263. package/src/components/DataList/examples/DataListSelectableRows.tsx +18 -16
  264. package/src/components/DataList/examples/DataListWidthModifiers.tsx +18 -16
  265. package/src/components/DatePicker/examples/DatePicker.md +1 -0
  266. package/src/components/Dropdown/Dropdown.tsx +113 -98
  267. package/src/components/Dropdown/DropdownGroup.tsx +15 -26
  268. package/src/components/Dropdown/DropdownItem.tsx +14 -90
  269. package/src/{next/components → components}/Dropdown/DropdownList.tsx +1 -1
  270. package/src/components/Dropdown/__tests__/Dropdown.test.tsx +208 -270
  271. package/src/components/Dropdown/__tests__/DropdownGroup.test.tsx +68 -9
  272. package/src/{next/components → components}/Dropdown/__tests__/DropdownItem.test.tsx +1 -1
  273. package/src/{next/components → components}/Dropdown/__tests__/DropdownList.test.tsx +1 -1
  274. package/src/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +32 -963
  275. package/src/components/Dropdown/__tests__/__snapshots__/DropdownGroup.test.tsx.snap +14 -15
  276. package/src/components/Dropdown/examples/Dropdown.md +21 -149
  277. package/src/components/Dropdown/examples/DropdownBasic.tsx +35 -43
  278. package/src/{next/components → components}/Dropdown/examples/DropdownWithDescriptions.tsx +1 -2
  279. package/src/{next/components → components}/Dropdown/examples/DropdownWithGroups.tsx +4 -5
  280. package/src/{next/components → components}/Dropdown/examples/DropdownWithKebabToggle.tsx +2 -3
  281. package/src/components/Dropdown/index.ts +1 -9
  282. package/src/components/DualListSelector/examples/DualListSelector.md +14 -1
  283. package/src/components/DualListSelector/examples/DualListSelectorComplexOptionsActions.tsx +11 -14
  284. package/src/components/FileUpload/examples/FileUpload.md +3 -2
  285. package/src/components/Form/examples/Form.md +1 -0
  286. package/src/components/FormSelect/examples/FormSelect.md +1 -0
  287. package/src/components/Hint/examples/Hint.md +9 -0
  288. package/src/components/Hint/examples/HintBasicWithTitle.tsx +15 -19
  289. package/src/components/Hint/examples/HintBasicWithoutTitle.tsx +15 -18
  290. package/src/components/InputGroup/examples/InputGroup.md +17 -0
  291. package/src/components/InputGroup/examples/InputGroupWithDropdown.tsx +13 -8
  292. package/src/components/Menu/examples/Menu.md +28 -0
  293. package/src/components/Menu/examples/MenuWithDrilldownBreadcrumbs.tsx +30 -28
  294. package/src/components/MenuToggle/examples/MenuToggle.md +1 -0
  295. package/src/components/Modal/examples/Modal.md +24 -4
  296. package/src/components/Modal/examples/ModalWithDropdown.tsx +14 -9
  297. package/src/components/MultipleFileUpload/examples/MultipleFileUpload.md +3 -2
  298. package/src/components/NotificationDrawer/examples/NotificationDrawer.md +12 -1
  299. package/src/components/NotificationDrawer/examples/NotificationDrawerBasic.tsx +20 -18
  300. package/src/components/NotificationDrawer/examples/NotificationDrawerGroups.tsx +22 -20
  301. package/src/components/OverflowMenu/OverflowMenuDropdownItem.tsx +2 -2
  302. package/src/components/OverflowMenu/examples/OverflowMenu.md +20 -17
  303. package/src/components/OverflowMenu/examples/OverflowMenuBreakpointOnContainer.tsx +7 -6
  304. package/src/components/Progress/ProgressContainer.tsx +19 -16
  305. package/src/components/Progress/__tests__/__snapshots__/Progress.test.tsx.snap +0 -104
  306. package/src/components/Radio/examples/Radio.md +1 -0
  307. package/src/components/Select/examples/Select.md +1 -0
  308. package/src/components/TextArea/examples/TextArea.md +1 -0
  309. package/src/components/TextInput/examples/TextInput.md +1 -0
  310. package/src/components/TimePicker/examples/TimePicker.md +1 -0
  311. package/src/components/Toolbar/examples/Toolbar.md +20 -1
  312. package/src/components/Toolbar/examples/ToolbarStacked.tsx +43 -39
  313. package/src/components/Toolbar/examples/ToolbarWithFilters.tsx +19 -23
  314. package/src/components/TreeView/examples/TreeView.md +59 -59
  315. package/src/demos/AlertGroup.md +8 -2
  316. package/src/demos/Card/Card.md +39 -24
  317. package/src/demos/CardDemos.md +15 -12
  318. package/src/demos/ComposableMenu/ComposableMenu.md +4 -3
  319. package/src/demos/DataListDemo.md +37 -29
  320. package/src/demos/DatePicker/DatePicker.md +2 -1
  321. package/src/demos/DateTimePicker.md +8 -1
  322. package/src/demos/Filters/FilterDemos.md +1 -1
  323. package/src/demos/Masthead.md +8 -0
  324. package/src/demos/MultipleFileUploadDemos.md +2 -1
  325. package/src/demos/Nav.md +86 -78
  326. package/src/demos/NotificationDrawer/NotificationDrawer.md +94 -80
  327. package/src/demos/Page.md +12 -1
  328. package/src/demos/PasswordGenerator.md +1 -1
  329. package/src/demos/PasswordStrength.md +1 -1
  330. package/src/demos/PrimaryDetail.md +52 -35
  331. package/src/demos/Tabs.md +5 -2
  332. package/src/demos/Toolbar.md +53 -43
  333. package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +16 -14
  334. package/src/demos/examples/DashboardHeader.js +31 -28
  335. package/src/demos/examples/DateTimePicker/DateTimePicker.tsx +8 -12
  336. package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +31 -28
  337. package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +31 -28
  338. package/src/demos/examples/Page/PageStickySectionGroup.tsx +31 -28
  339. package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +31 -28
  340. package/src/demos/examples/Page/PageStickySectionGroupUsingPageHeader.tsx +31 -28
  341. package/src/demos/examples/Tabs/TabsAndTable.tsx +15 -14
  342. package/src/deprecated/components/ContextSelector/examples/ContextSelector.md +1 -0
  343. package/src/{components → deprecated/components}/Dropdown/BadgeToggle.tsx +1 -1
  344. package/src/deprecated/components/Dropdown/Dropdown.tsx +115 -0
  345. package/src/deprecated/components/Dropdown/DropdownGroup.tsx +36 -0
  346. package/src/deprecated/components/Dropdown/DropdownItem.tsx +113 -0
  347. package/src/{components → deprecated/components}/Dropdown/DropdownMenu.tsx +11 -18
  348. package/src/{components → deprecated/components}/Dropdown/DropdownSeparator.tsx +3 -3
  349. package/src/{components → deprecated/components}/Dropdown/DropdownToggle.tsx +1 -1
  350. package/src/{components → deprecated/components}/Dropdown/DropdownToggleCheckbox.tsx +3 -3
  351. package/src/{components → deprecated/components}/Dropdown/DropdownWithContext.tsx +3 -3
  352. package/src/{components → deprecated/components}/Dropdown/InternalDropdownItem.tsx +3 -3
  353. package/src/{components → deprecated/components}/Dropdown/Toggle.tsx +4 -4
  354. package/src/deprecated/components/Dropdown/__tests__/Dropdown.test.tsx +278 -0
  355. package/src/deprecated/components/Dropdown/__tests__/DropdownGroup.test.tsx +10 -0
  356. package/src/deprecated/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +978 -0
  357. package/src/deprecated/components/Dropdown/__tests__/__snapshots__/DropdownGroup.test.tsx.snap +21 -0
  358. package/src/{components → deprecated/components}/Dropdown/dropdownConstants.tsx +1 -1
  359. package/src/deprecated/components/Dropdown/examples/Dropdown.md +212 -0
  360. package/src/{components → deprecated/components}/Dropdown/examples/DropdownAlignmentOnBreakpoints.tsx +1 -1
  361. package/src/{components → deprecated/components}/Dropdown/examples/DropdownAppendBodyVsParent.tsx +2 -1
  362. package/src/{components → deprecated/components}/Dropdown/examples/DropdownBadge.tsx +1 -1
  363. package/src/deprecated/components/Dropdown/examples/DropdownBasic.tsx +59 -0
  364. package/src/{components → deprecated/components}/Dropdown/examples/DropdownBasicPanel.tsx +1 -1
  365. package/src/{components → deprecated/components}/Dropdown/examples/DropdownDescriptions.tsx +1 -1
  366. package/src/{components → deprecated/components}/Dropdown/examples/DropdownDirectionUp.tsx +7 -1
  367. package/src/{components → deprecated/components}/Dropdown/examples/DropdownDisabled.tsx +1 -1
  368. package/src/{components → deprecated/components}/Dropdown/examples/DropdownGroups.tsx +1 -1
  369. package/src/{components → deprecated/components}/Dropdown/examples/DropdownIconOnly.tsx +1 -1
  370. package/src/{components → deprecated/components}/Dropdown/examples/DropdownImageAndText.tsx +3 -3
  371. package/src/{components → deprecated/components}/Dropdown/examples/DropdownInitialSelection.tsx +1 -1
  372. package/src/{components → deprecated/components}/Dropdown/examples/DropdownKebab.tsx +1 -1
  373. package/src/{components → deprecated/components}/Dropdown/examples/DropdownPlainTextToggle.tsx +1 -1
  374. package/src/{components → deprecated/components}/Dropdown/examples/DropdownPositionRight.tsx +7 -1
  375. package/src/{components → deprecated/components}/Dropdown/examples/DropdownPrimaryToggle.tsx +1 -1
  376. package/src/{components → deprecated/components}/Dropdown/examples/DropdownRouterLink.tsx +1 -1
  377. package/src/{components → deprecated/components}/Dropdown/examples/DropdownSecondaryToggle.tsx +1 -1
  378. package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButton.tsx +1 -1
  379. package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButtonAction.tsx +1 -1
  380. package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButtonActionPrimary.tsx +1 -1
  381. package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButtonActionSecondary.tsx +1 -1
  382. package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButtonDisabled.tsx +1 -1
  383. package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButtonProgressCheckbox.tsx +1 -1
  384. package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButtonText.tsx +1 -1
  385. package/src/deprecated/components/Dropdown/index.ts +12 -0
  386. package/src/deprecated/components/OptionsMenu/OptionsMenu.tsx +2 -2
  387. package/src/deprecated/components/OptionsMenu/OptionsMenuItem.tsx +1 -1
  388. package/src/deprecated/components/OptionsMenu/OptionsMenuToggle.tsx +1 -1
  389. package/src/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.tsx +2 -2
  390. package/src/deprecated/components/OptionsMenu/__tests__/Generated/OptionsMenuItem.test.tsx +1 -1
  391. package/src/deprecated/components/OptionsMenu/examples/OptionsMenu.md +1 -0
  392. package/src/deprecated/components/index.ts +1 -0
  393. package/src/next/components/Select/examples/Select.md +1 -0
  394. package/src/next/components/index.ts +0 -1
  395. package/dist/esm/components/Dropdown/BadgeToggle.d.ts.map +0 -1
  396. package/dist/esm/components/Dropdown/BadgeToggle.js.map +0 -1
  397. package/dist/esm/components/Dropdown/DropdownMenu.d.ts.map +0 -1
  398. package/dist/esm/components/Dropdown/DropdownMenu.js.map +0 -1
  399. package/dist/esm/components/Dropdown/DropdownSeparator.d.ts.map +0 -1
  400. package/dist/esm/components/Dropdown/DropdownSeparator.js.map +0 -1
  401. package/dist/esm/components/Dropdown/DropdownToggle.d.ts.map +0 -1
  402. package/dist/esm/components/Dropdown/DropdownToggle.js.map +0 -1
  403. package/dist/esm/components/Dropdown/DropdownToggleAction.d.ts.map +0 -1
  404. package/dist/esm/components/Dropdown/DropdownToggleAction.js.map +0 -1
  405. package/dist/esm/components/Dropdown/DropdownToggleCheckbox.d.ts.map +0 -1
  406. package/dist/esm/components/Dropdown/DropdownToggleCheckbox.js.map +0 -1
  407. package/dist/esm/components/Dropdown/DropdownWithContext.d.ts.map +0 -1
  408. package/dist/esm/components/Dropdown/DropdownWithContext.js.map +0 -1
  409. package/dist/esm/components/Dropdown/InternalDropdownItem.d.ts.map +0 -1
  410. package/dist/esm/components/Dropdown/InternalDropdownItem.js.map +0 -1
  411. package/dist/esm/components/Dropdown/KebabToggle.d.ts.map +0 -1
  412. package/dist/esm/components/Dropdown/KebabToggle.js.map +0 -1
  413. package/dist/esm/components/Dropdown/Toggle.d.ts.map +0 -1
  414. package/dist/esm/components/Dropdown/Toggle.js.map +0 -1
  415. package/dist/esm/components/Dropdown/dropdownConstants.d.ts.map +0 -1
  416. package/dist/esm/components/Dropdown/dropdownConstants.js.map +0 -1
  417. package/dist/esm/next/components/Dropdown/Dropdown.d.ts +0 -35
  418. package/dist/esm/next/components/Dropdown/Dropdown.d.ts.map +0 -1
  419. package/dist/esm/next/components/Dropdown/Dropdown.js +0 -57
  420. package/dist/esm/next/components/Dropdown/Dropdown.js.map +0 -1
  421. package/dist/esm/next/components/Dropdown/DropdownGroup.d.ts +0 -12
  422. package/dist/esm/next/components/Dropdown/DropdownGroup.d.ts.map +0 -1
  423. package/dist/esm/next/components/Dropdown/DropdownGroup.js +0 -10
  424. package/dist/esm/next/components/Dropdown/DropdownGroup.js.map +0 -1
  425. package/dist/esm/next/components/Dropdown/DropdownItem.d.ts +0 -19
  426. package/dist/esm/next/components/Dropdown/DropdownItem.d.ts.map +0 -1
  427. package/dist/esm/next/components/Dropdown/DropdownItem.js +0 -12
  428. package/dist/esm/next/components/Dropdown/DropdownItem.js.map +0 -1
  429. package/dist/esm/next/components/Dropdown/DropdownList.d.ts.map +0 -1
  430. package/dist/esm/next/components/Dropdown/DropdownList.js.map +0 -1
  431. package/dist/esm/next/components/Dropdown/index.d.ts +0 -5
  432. package/dist/esm/next/components/Dropdown/index.d.ts.map +0 -1
  433. package/dist/esm/next/components/Dropdown/index.js +0 -5
  434. package/dist/esm/next/components/Dropdown/index.js.map +0 -1
  435. package/dist/js/components/Dropdown/BadgeToggle.d.ts.map +0 -1
  436. package/dist/js/components/Dropdown/BadgeToggle.js.map +0 -1
  437. package/dist/js/components/Dropdown/DropdownMenu.d.ts.map +0 -1
  438. package/dist/js/components/Dropdown/DropdownMenu.js.map +0 -1
  439. package/dist/js/components/Dropdown/DropdownSeparator.d.ts.map +0 -1
  440. package/dist/js/components/Dropdown/DropdownSeparator.js.map +0 -1
  441. package/dist/js/components/Dropdown/DropdownToggle.d.ts.map +0 -1
  442. package/dist/js/components/Dropdown/DropdownToggle.js.map +0 -1
  443. package/dist/js/components/Dropdown/DropdownToggleAction.d.ts.map +0 -1
  444. package/dist/js/components/Dropdown/DropdownToggleAction.js.map +0 -1
  445. package/dist/js/components/Dropdown/DropdownToggleCheckbox.d.ts.map +0 -1
  446. package/dist/js/components/Dropdown/DropdownToggleCheckbox.js.map +0 -1
  447. package/dist/js/components/Dropdown/DropdownWithContext.d.ts.map +0 -1
  448. package/dist/js/components/Dropdown/DropdownWithContext.js.map +0 -1
  449. package/dist/js/components/Dropdown/InternalDropdownItem.d.ts.map +0 -1
  450. package/dist/js/components/Dropdown/InternalDropdownItem.js.map +0 -1
  451. package/dist/js/components/Dropdown/KebabToggle.d.ts.map +0 -1
  452. package/dist/js/components/Dropdown/KebabToggle.js.map +0 -1
  453. package/dist/js/components/Dropdown/Toggle.d.ts.map +0 -1
  454. package/dist/js/components/Dropdown/Toggle.js.map +0 -1
  455. package/dist/js/components/Dropdown/dropdownConstants.d.ts.map +0 -1
  456. package/dist/js/components/Dropdown/dropdownConstants.js.map +0 -1
  457. package/dist/js/next/components/Dropdown/Dropdown.d.ts +0 -35
  458. package/dist/js/next/components/Dropdown/Dropdown.d.ts.map +0 -1
  459. package/dist/js/next/components/Dropdown/Dropdown.js +0 -60
  460. package/dist/js/next/components/Dropdown/Dropdown.js.map +0 -1
  461. package/dist/js/next/components/Dropdown/DropdownGroup.d.ts +0 -12
  462. package/dist/js/next/components/Dropdown/DropdownGroup.d.ts.map +0 -1
  463. package/dist/js/next/components/Dropdown/DropdownGroup.js +0 -14
  464. package/dist/js/next/components/Dropdown/DropdownGroup.js.map +0 -1
  465. package/dist/js/next/components/Dropdown/DropdownItem.d.ts +0 -19
  466. package/dist/js/next/components/Dropdown/DropdownItem.d.ts.map +0 -1
  467. package/dist/js/next/components/Dropdown/DropdownItem.js +0 -16
  468. package/dist/js/next/components/Dropdown/DropdownItem.js.map +0 -1
  469. package/dist/js/next/components/Dropdown/DropdownList.d.ts.map +0 -1
  470. package/dist/js/next/components/Dropdown/DropdownList.js.map +0 -1
  471. package/dist/js/next/components/Dropdown/index.d.ts +0 -5
  472. package/dist/js/next/components/Dropdown/index.d.ts.map +0 -1
  473. package/dist/js/next/components/Dropdown/index.js +0 -8
  474. package/dist/js/next/components/Dropdown/index.js.map +0 -1
  475. package/src/components/Backdrop/examples/BackdropSpinner.tsx +0 -10
  476. package/src/next/components/Dropdown/Dropdown.tsx +0 -130
  477. package/src/next/components/Dropdown/DropdownGroup.tsx +0 -25
  478. package/src/next/components/Dropdown/DropdownItem.tsx +0 -37
  479. package/src/next/components/Dropdown/__tests__/Dropdown.test.tsx +0 -216
  480. package/src/next/components/Dropdown/__tests__/DropdownGroup.test.tsx +0 -69
  481. package/src/next/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +0 -47
  482. package/src/next/components/Dropdown/__tests__/__snapshots__/DropdownGroup.test.tsx.snap +0 -20
  483. package/src/next/components/Dropdown/examples/Dropdown.md +0 -45
  484. package/src/next/components/Dropdown/examples/DropdownBasic.tsx +0 -52
  485. package/src/next/components/Dropdown/index.ts +0 -4
  486. /package/dist/esm/{components → deprecated/components}/Dropdown/DropdownMenu.d.ts +0 -0
  487. /package/dist/esm/{components → deprecated/components}/Dropdown/DropdownToggleAction.d.ts +0 -0
  488. /package/dist/esm/{components → deprecated/components}/Dropdown/DropdownToggleAction.js +0 -0
  489. /package/dist/esm/{components → deprecated/components}/Dropdown/InternalDropdownItem.d.ts +0 -0
  490. /package/dist/esm/{components → deprecated/components}/Dropdown/KebabToggle.d.ts +0 -0
  491. /package/dist/esm/{components → deprecated/components}/Dropdown/KebabToggle.js +0 -0
  492. /package/dist/esm/{components → deprecated/components}/Dropdown/dropdownConstants.js +0 -0
  493. /package/dist/js/{components → deprecated/components}/Dropdown/DropdownMenu.d.ts +0 -0
  494. /package/dist/js/{components → deprecated/components}/Dropdown/DropdownToggleAction.d.ts +0 -0
  495. /package/dist/js/{components → deprecated/components}/Dropdown/DropdownToggleAction.js +0 -0
  496. /package/dist/js/{components → deprecated/components}/Dropdown/InternalDropdownItem.d.ts +0 -0
  497. /package/dist/js/{components → deprecated/components}/Dropdown/KebabToggle.d.ts +0 -0
  498. /package/dist/js/{components → deprecated/components}/Dropdown/KebabToggle.js +0 -0
  499. /package/dist/js/{components → deprecated/components}/Dropdown/dropdownConstants.js +0 -0
  500. /package/src/{next/components → components}/Dropdown/__tests__/__snapshots__/DropdownItem.test.tsx.snap +0 -0
  501. /package/src/{next/components → components}/Dropdown/__tests__/__snapshots__/DropdownList.test.tsx.snap +0 -0
  502. /package/src/{components → deprecated/components}/Dropdown/DropdownToggleAction.tsx +0 -0
  503. /package/src/{components → deprecated/components}/Dropdown/KebabToggle.tsx +0 -0
  504. /package/src/{components → deprecated/components}/Dropdown/__tests__/DropdownToggle.test.tsx +0 -0
  505. /package/src/{components → deprecated/components}/Dropdown/__tests__/DropdownToggleAction.test.tsx +0 -0
  506. /package/src/{components → deprecated/components}/Dropdown/__tests__/DropdownToggleCheckbox.test.tsx +0 -0
  507. /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/DropdownItem.test.tsx +0 -0
  508. /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/DropdownMenu.test.tsx +0 -0
  509. /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/DropdownSeparator.test.tsx +0 -0
  510. /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/KebabToggle.test.tsx +0 -0
  511. /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/__snapshots__/DropdownItem.test.tsx.snap +0 -0
  512. /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/__snapshots__/DropdownMenu.test.tsx.snap +0 -0
  513. /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/__snapshots__/DropdownSeparator.test.tsx.snap +0 -0
  514. /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/__snapshots__/KebabToggle.test.tsx.snap +0 -0
  515. /package/src/{components → deprecated/components}/Dropdown/__tests__/InternalDropdownItem.test.tsx +0 -0
  516. /package/src/{components → deprecated/components}/Dropdown/__tests__/Toggle.test.tsx +0 -0
  517. /package/src/{components → deprecated/components}/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +0 -0
  518. /package/src/{components → deprecated/components}/Dropdown/__tests__/__snapshots__/DropdownToggleAction.test.tsx.snap +0 -0
  519. /package/src/{components → deprecated/components}/Dropdown/__tests__/__snapshots__/DropdownToggleCheckbox.test.tsx.snap +0 -0
  520. /package/src/{components → deprecated/components}/Dropdown/__tests__/__snapshots__/InternalDropdownItem.test.tsx.snap +0 -0
  521. /package/src/{components → deprecated/components}/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +0 -0
@@ -1,66 +1,35 @@
1
- import * as React from 'react';
2
- import { DropdownPosition, DropdownDirection, DropdownContext } from './dropdownConstants';
1
+ import React from 'react';
2
+ import { MenuProps } from '../Menu';
3
+ import { PopperProps } from '../../helpers/Popper/Popper';
3
4
  import { OUIAProps } from '../../helpers';
4
- export interface DropdownProps extends React.HTMLProps<HTMLDivElement>, OUIAProps {
5
- /** Anything which can be rendered in a dropdown */
5
+ export interface DropdownProps extends MenuProps, OUIAProps {
6
+ /** Anything which can be rendered in a dropdown. */
6
7
  children?: React.ReactNode;
7
- /** Classes applied to root element of dropdown */
8
+ /** Classes applied to root element of dropdown. */
8
9
  className?: string;
9
- /** Array of DropdownItem nodes that will be rendered in the dropdown Menu list */
10
- dropdownItems?: any[];
11
- /** Flag to indicate if menu is opened */
10
+ /** Renderer for a custom dropdown toggle. Forwards a ref to the toggle. */
11
+ toggle: (toggleRef: React.RefObject<any>) => React.ReactNode;
12
+ /** Flag to indicate if menu is opened.*/
12
13
  isOpen?: boolean;
13
- /** Display the toggle with no border or background */
14
+ /** Function callback called when user selects item. */
15
+ onSelect?: (event?: React.MouseEvent<Element, MouseEvent>, itemId?: string | number) => void;
16
+ /** Callback to allow the dropdown component to change the open state of the menu.
17
+ * Triggered by clicking outside of the menu, or by pressing either tab or escape. */
18
+ onOpenChange?: (isOpen: boolean) => void;
19
+ /** Indicates if the menu should be without the outer box-shadow. */
14
20
  isPlain?: boolean;
15
- /** Display the toggle in text only mode */
16
- isText?: boolean;
17
- /** Flag indicating that the dropdown should expand to full height */
18
- isFullHeight?: boolean;
19
- /** Indicates where menu will be aligned horizontally */
20
- position?: DropdownPosition | 'right' | 'left';
21
- /** Indicates how the menu will align at screen size breakpoints. Default alignment is set via the position property. */
22
- alignments?: {
23
- sm?: 'right' | 'left';
24
- md?: 'right' | 'left';
25
- lg?: 'right' | 'left';
26
- xl?: 'right' | 'left';
27
- '2xl'?: 'right' | 'left';
28
- };
29
- /** Display menu above or below dropdown toggle */
30
- direction?: DropdownDirection | 'up' | 'down';
31
- /** Minimum width of the dropdown menu. If set to "trigger", the minimum width will be set to the toggle width. */
32
- minWidth?: string | 'trigger';
33
- /** The container to append the menu to. Defaults to 'inline'.
34
- * If your menu is being cut off you can append it to an element higher up the DOM tree.
35
- * Some examples:
36
- * menuAppendTo="parent"
37
- * menuAppendTo={() => document.body}
38
- * menuAppendTo={document.getElementById('target')}
39
- */
40
- menuAppendTo?: HTMLElement | (() => HTMLElement) | 'inline' | 'parent';
41
- /** Flag to indicate if dropdown has groups */
42
- isGrouped?: boolean;
43
- /** Toggle for the dropdown, examples: <DropdownToggle> or <DropdownToggleCheckbox> */
44
- toggle: React.ReactElement<any>;
45
- /** Function callback called when user selects item */
46
- onSelect?: (event?: React.SyntheticEvent<HTMLDivElement>) => void;
47
- /** Flag to indicate if the first dropdown item should gain initial focus, set false when adding
48
- * a specific auto-focus item (like a current selection) otherwise leave as true
49
- */
50
- autoFocus?: boolean;
51
- /** Props for extreme customization of dropdown */
52
- contextProps?: typeof DropdownContext;
53
- /** Flag for indicating that the dropdown menu should automatically flip vertically when
54
- * it reaches the boundary. This prop can only be used when the dropdown component is not
55
- * appended inline, e.g. `menuAppendTo="parent"`
56
- */
57
- isFlipEnabled?: boolean;
58
- /** z-index of the dropdown when menuAppendTo is not inline. */
59
- zIndex?: number;
21
+ /** Indicates if the menu should be scrollable. */
22
+ isScrollable?: boolean;
23
+ /** @hide Forwarded ref */
24
+ innerRef?: React.Ref<any>;
60
25
  /** Value to overwrite the randomly generated data-ouia-component-id.*/
61
26
  ouiaId?: number | string;
62
27
  /** Set the value of data-ouia-safe. Only set to true when the component is in a static state, i.e. no animations are occurring. At all other times, this value must be false. */
63
28
  ouiaSafe?: boolean;
29
+ /** z-index of the dropdown menu */
30
+ zIndex?: number;
31
+ /** Additional properties to pass to the Popper */
32
+ popperProps?: Partial<PopperProps>;
64
33
  }
65
- export declare const Dropdown: React.FunctionComponent<DropdownProps>;
34
+ export declare const Dropdown: React.ForwardRefExoticComponent<DropdownProps & React.RefAttributes<any>>;
66
35
  //# sourceMappingURL=Dropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3F,OAAO,EAAE,SAAS,EAAa,MAAM,eAAe,CAAC;AAErD,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,SAAS;IAC/E,mDAAmD;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qEAAqE;IACrE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,gBAAgB,GAAG,OAAO,GAAG,MAAM,CAAC;IAC/C,wHAAwH;IACxH,UAAU,CAAC,EAAE;QACX,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QACtB,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QACtB,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QACtB,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QACtB,KAAK,CAAC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,WAAW,aAAc,SAAQ,SAAS,EAAE,SAAS;IACzD,oDAAoD;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,MAAM,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IAC7D,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC7F;yFACqF;IACrF,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1B,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,iLAAiL;IACjL,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CACpC;AA4FD,eAAO,MAAM,QAAQ,2EAEnB,CAAC"}
@@ -2,19 +2,59 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Dropdown = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const dropdown_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Dropdown/dropdown"));
7
- const dropdownConstants_1 = require("./dropdownConstants");
8
- const DropdownWithContext_1 = require("./DropdownWithContext");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
+ const react_styles_1 = require("@patternfly/react-styles");
7
+ const Menu_1 = require("../Menu");
8
+ const Popper_1 = require("../../helpers/Popper/Popper");
9
9
  const helpers_1 = require("../../helpers");
10
- const Dropdown = (_a) => {
11
- var { onSelect,
12
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
13
- ref, // Types of Ref are different for React.FunctionComponent vs React.Component
14
- ouiaId, ouiaSafe, alignments, contextProps, minWidth, menuAppendTo = 'inline', isFlipEnabled = true, zIndex = 9999 } = _a, props = tslib_1.__rest(_a, ["onSelect", "ref", "ouiaId", "ouiaSafe", "alignments", "contextProps", "minWidth", "menuAppendTo", "isFlipEnabled", "zIndex"]);
15
- return (React.createElement(dropdownConstants_1.DropdownContext.Provider, { value: Object.assign({ onSelect: (event) => onSelect && onSelect(event), toggleTextClass: dropdown_1.default.dropdownToggleText, toggleIconClass: dropdown_1.default.dropdownToggleImage, toggleIndicatorClass: dropdown_1.default.dropdownToggleIcon, menuClass: dropdown_1.default.dropdownMenu, itemClass: dropdown_1.default.dropdownMenuItem, toggleClass: dropdown_1.default.dropdownToggle, baseClass: dropdown_1.default.dropdown, baseComponent: 'div', sectionClass: dropdown_1.default.dropdownGroup, sectionTitleClass: dropdown_1.default.dropdownGroupTitle, sectionComponent: 'section', disabledClass: dropdown_1.default.modifiers.disabled, plainTextClass: dropdown_1.default.modifiers.text, ouiaId: (0, helpers_1.useOUIAId)(exports.Dropdown.displayName, ouiaId), ouiaSafe, ouiaComponentType: exports.Dropdown.displayName, alignments }, contextProps) },
16
- React.createElement(DropdownWithContext_1.DropdownWithContext, Object.assign({ menuAppendTo: menuAppendTo, isFlipEnabled: isFlipEnabled, zIndex: zIndex, minWidth: minWidth }, props))));
10
+ const DropdownBase = (_a) => {
11
+ var { children, className, onSelect, isOpen, toggle, onOpenChange, isPlain, isScrollable, innerRef, ouiaId, ouiaSafe = true, zIndex = 9999, popperProps } = _a, props = tslib_1.__rest(_a, ["children", "className", "onSelect", "isOpen", "toggle", "onOpenChange", "isPlain", "isScrollable", "innerRef", "ouiaId", "ouiaSafe", "zIndex", "popperProps"]);
12
+ const localMenuRef = react_1.default.useRef();
13
+ const toggleRef = react_1.default.useRef();
14
+ const containerRef = react_1.default.useRef();
15
+ const ouiaProps = (0, helpers_1.useOUIAProps)(exports.Dropdown.displayName, ouiaId, ouiaSafe);
16
+ const menuRef = innerRef || localMenuRef;
17
+ react_1.default.useEffect(() => {
18
+ const handleMenuKeys = (event) => {
19
+ var _a, _b, _c;
20
+ // Close the menu on tab or escape if onOpenChange is provided
21
+ if ((isOpen && onOpenChange && ((_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target))) ||
22
+ ((_b = toggleRef.current) === null || _b === void 0 ? void 0 : _b.contains(event.target))) {
23
+ if (event.key === 'Escape' || event.key === 'Tab') {
24
+ onOpenChange(false);
25
+ (_c = toggleRef.current) === null || _c === void 0 ? void 0 : _c.focus();
26
+ }
27
+ }
28
+ };
29
+ const handleClick = (event) => {
30
+ var _a, _b, _c;
31
+ // toggle was clicked open via keyboard, focus on first menu item
32
+ if (isOpen && ((_a = toggleRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target)) && event.detail === 0) {
33
+ setTimeout(() => {
34
+ var _a;
35
+ const firstElement = (_a = menuRef === null || menuRef === void 0 ? void 0 : menuRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('li button:not(:disabled),li input:not(:disabled)');
36
+ firstElement && firstElement.focus();
37
+ }, 0);
38
+ }
39
+ // If the event is not on the toggle and onOpenChange callback is provided, close the menu
40
+ if (isOpen && onOpenChange && !((_b = toggleRef === null || toggleRef === void 0 ? void 0 : toggleRef.current) === null || _b === void 0 ? void 0 : _b.contains(event.target))) {
41
+ if (isOpen && !((_c = menuRef.current) === null || _c === void 0 ? void 0 : _c.contains(event.target))) {
42
+ onOpenChange(false);
43
+ }
44
+ }
45
+ };
46
+ window.addEventListener('keydown', handleMenuKeys);
47
+ window.addEventListener('click', handleClick);
48
+ return () => {
49
+ window.removeEventListener('keydown', handleMenuKeys);
50
+ window.removeEventListener('click', handleClick);
51
+ };
52
+ }, [isOpen, menuRef, onOpenChange]);
53
+ const menu = (react_1.default.createElement(Menu_1.Menu, Object.assign({ className: (0, react_styles_1.css)(className), ref: menuRef, onSelect: (event, itemId) => onSelect && onSelect(event, itemId), isPlain: isPlain, isScrollable: isScrollable }, props),
54
+ react_1.default.createElement(Menu_1.MenuContent, null, children)));
55
+ return (react_1.default.createElement("div", Object.assign({ ref: containerRef }, ouiaProps),
56
+ react_1.default.createElement(Popper_1.Popper, Object.assign({ trigger: toggle(toggleRef), triggerRef: toggleRef, popper: menu, popperRef: menuRef, appendTo: containerRef.current || undefined, isVisible: isOpen, zIndex: zIndex }, popperProps))));
17
57
  };
18
- exports.Dropdown = Dropdown;
58
+ exports.Dropdown = react_1.default.forwardRef((props, ref) => (react_1.default.createElement(DropdownBase, Object.assign({ innerRef: ref }, props))));
19
59
  exports.Dropdown.displayName = 'Dropdown';
20
60
  //# sourceMappingURL=Dropdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,iHAA+E;AAC/E,2DAA2F;AAC3F,+DAA4D;AAC5D,2CAAqD;AAgE9C,MAAM,QAAQ,GAA2C,CAAC,EAajD,EAAE,EAAE;QAb6C,EAC/D,QAAQ;IACR,6DAA6D;IAC7D,GAAG,EAAE,4EAA4E;IACjF,MAAM,EACN,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,YAAY,GAAG,QAAQ,EACvB,aAAa,GAAG,IAAI,EACpB,MAAM,GAAG,IAAI,OAEC,EADX,KAAK,sBAZuD,8HAahE,CADS;IACW,OAAA,CACnB,oBAAC,m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M,CAAC,EAChE,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,IACtB,KAAK;QAET,8BAAC,kBAAW,QAAE,QAAQ,CAAe,CAChC,CACR,CAAC;IACF,OAAO,CACL,qDAAK,GAAG,EAAE,YAAY,IAAM,SAAS;QACnC,8BAAC,eAAM,kBACL,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,EAC1B,UAAU,EAAE,SAAS,EACrB,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,YAAY,CAAC,OAAO,IAAI,SAAS,EAC3C,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,IACV,WAAW,EACf,CACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,QAAQ,GAAG,eAAK,CAAC,UAAU,CAAC,CAAC,KAAoB,EAAE,GAAmB,EAAE,EAAE,CAAC,CACtF,8BAAC,YAAY,kBAAC,QAAQ,EAAE,GAAG,IAAM,KAAK,EAAI,CAC3C,CAAC,CAAC;AACH,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC"}
@@ -1,11 +1,12 @@
1
- import * as React from 'react';
2
- export interface DropdownGroupProps extends Omit<React.HTMLProps<HTMLDivElement>, 'label'> {
3
- /** Checkboxes within group */
4
- children?: React.ReactNode;
5
- /** Additional classes added to the DropdownGroup control */
1
+ import React from 'react';
2
+ import { MenuGroupProps } from '../Menu';
3
+ export interface DropdownGroupProps extends Omit<MenuGroupProps, 'ref'> {
4
+ /** Anything which can be rendered in a dropdown group. */
5
+ children: React.ReactNode;
6
+ /** Classes applied to root element of dropdown group */
6
7
  className?: string;
7
- /** Group label */
8
- label?: React.ReactNode;
8
+ /** Label of the dropdown group */
9
+ label?: string;
9
10
  }
10
11
  export declare const DropdownGroup: React.FunctionComponent<DropdownGroupProps>;
11
12
  //# sourceMappingURL=DropdownGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/DropdownGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IACxF,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAqBrE,CAAC"}
1
+ {"version":3,"file":"DropdownGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/DropdownGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAa,MAAM,SAAS,CAAC;AAEpD,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC;IACrE,0DAA0D;IAC1D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAUrE,CAAC"}
@@ -2,17 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DropdownGroup = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const react_styles_1 = require("@patternfly/react-styles");
7
- const dropdownConstants_1 = require("./dropdownConstants");
7
+ const Menu_1 = require("../Menu");
8
8
  const DropdownGroup = (_a) => {
9
- var { children = null, className = '', label = '' } = _a, props = tslib_1.__rest(_a, ["children", "className", "label"]);
10
- return (React.createElement(dropdownConstants_1.DropdownContext.Consumer, null, ({ sectionClass, sectionTitleClass, sectionComponent }) => {
11
- const SectionComponent = sectionComponent;
12
- return (React.createElement(SectionComponent, Object.assign({ className: (0, react_styles_1.css)(sectionClass, className) }, props),
13
- label && (React.createElement("h1", { className: (0, react_styles_1.css)(sectionTitleClass), "aria-hidden": true }, label)),
14
- React.createElement("ul", { role: "none" }, children)));
15
- }));
9
+ var { children, className, label, labelHeadingLevel = 'h1' } = _a, props = tslib_1.__rest(_a, ["children", "className", "label", "labelHeadingLevel"]);
10
+ return (react_1.default.createElement(Menu_1.MenuGroup, Object.assign({ className: (0, react_styles_1.css)(className), label: label, labelHeadingLevel: labelHeadingLevel }, props), children));
16
11
  };
17
12
  exports.DropdownGroup = DropdownGroup;
18
13
  exports.DropdownGroup.displayName = 'DropdownGroup';
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownGroup.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/DropdownGroup.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,2DAAsD;AAW/C,MAAM,aAAa,GAAgD,CAAC,EAKtD,EAAE,EAAE;QALkD,EACzE,QAAQ,GAAG,IAAI,EACf,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,EAAE,OAES,EADhB,KAAK,sBAJiE,kCAK1E,CADS;IACgB,OAAA,CACxB,oBAAC,mCAAe,CAAC,QAAQ,QACtB,CAAC,EAAE,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,EAAE,EAAE;QACzD,MAAM,gBAAgB,GAAG,gBAAuB,CAAC;QACjD,OAAO,CACL,oBAAC,gBAAgB,kBAAC,SAAS,EAAE,IAAA,kBAAG,EAAC,YAAY,EAAE,SAAS,CAAC,IAAM,KAAK;YACjE,KAAK,IAAI,CACR,4BAAI,SAAS,EAAE,IAAA,kBAAG,EAAC,iBAAiB,CAAC,yBAClC,KAAK,CACH,CACN;YACD,4BAAI,IAAI,EAAC,MAAM,IAAE,QAAQ,CAAM,CACd,CACpB,CAAC;IACJ,CAAC,CACwB,CAC5B,CAAA;CAAA,CAAC;AArBW,QAAA,aAAa,iBAqBxB;AACF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC"}
1
+ {"version":3,"file":"DropdownGroup.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/DropdownGroup.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,2DAA+C;AAC/C,kCAAoD;AAW7C,MAAM,aAAa,GAAgD,CAAC,EAMtD,EAAE,EAAE;QANkD,EACzE,QAAQ,EACR,SAAS,EACT,KAAK,EACL,iBAAiB,GAAG,IAAI,OAEL,EADhB,KAAK,sBALiE,uDAM1E,CADS;IACgB,OAAA,CACxB,8BAAC,gBAAS,kBAAC,SAAS,EAAE,IAAA,kBAAG,EAAC,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,IAAM,KAAK,GAChG,QAAQ,CACC,CACb,CAAA;CAAA,CAAC;AAVW,QAAA,aAAa,iBAUxB;AACF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC"}
@@ -1,52 +1,19 @@
1
- import * as React from 'react';
2
- import { InternalDropdownItemProps } from './InternalDropdownItem';
1
+ import React from 'react';
2
+ import { MenuItemProps } from '../Menu';
3
3
  import { OUIAProps } from '../../helpers';
4
- export interface DropdownItemProps extends Omit<InternalDropdownItemProps, 'tabIndex'>, OUIAProps {
5
- /** Anything which can be rendered as dropdown item */
4
+ export interface DropdownItemProps extends Omit<MenuItemProps, 'ref'>, OUIAProps {
5
+ /** Anything which can be rendered in a dropdown item */
6
6
  children?: React.ReactNode;
7
7
  /** Classes applied to root element of dropdown item */
8
8
  className?: string;
9
- /** Class to be applied to list item */
10
- listItemClassName?: string;
11
- /**
12
- * A ReactElement to render, or a string to use as the component tag.
13
- * Example: component={<Link to="/components/alert/">Alert</Link>}
14
- * Example: component="button"
15
- * If React.isValidElement(component) the className prop will be injected unless styleChildren="false"
16
- */
17
- component?: React.ReactNode;
18
- /** ID for the component element */
19
- componentID?: string;
20
- /** Whether to set className on component when React.isValidElement(component) */
21
- styleChildren?: boolean;
22
- /** Render dropdown item as disabled option */
23
- isDisabled?: boolean;
24
- /** Render dropdown item as aria-disabled option */
25
- isAriaDisabled?: boolean;
26
- /** Render dropdown item as non-interactive item */
27
- isPlainText?: boolean;
28
- /** Default hyperlink location */
29
- href?: string;
30
- /** Tooltip to display when hovered over the item */
31
- tooltip?: React.ReactNode;
32
- /** Additional tooltip props forwarded to the Tooltip component */
33
- tooltipProps?: any;
34
- /** Additional node to include alongside item within the <li> */
35
- additionalChild?: React.ReactNode;
36
- /** Custom item rendering that receives the DropdownContext */
37
- customChild?: React.ReactNode;
38
- /** tabIndex to use, null to unset it */
39
- tabIndex?: number | null;
40
- /** An image to display within the DropdownItem, appearing before any component children */
41
- icon?: React.ReactNode;
42
- /** Initial focus on the item when the menu is opened (Note: Only applicable to one of the items) */
43
- autoFocus?: boolean;
44
- /** A short description of the dropdown item, displayed under the dropdown item content */
9
+ /** Description of the dropdown item */
45
10
  description?: React.ReactNode;
11
+ /** Identifies the component in the dropdown onSelect callback */
12
+ itemId?: any;
46
13
  /** Value to overwrite the randomly generated data-ouia-component-id.*/
47
14
  ouiaId?: number | string;
48
15
  /** Set the value of data-ouia-safe. Only set to true when the component is in a static state, i.e. no animations are occurring. At all other times, this value must be false. */
49
16
  ouiaSafe?: boolean;
50
17
  }
51
- export declare const DropdownItem: React.FunctionComponent<DropdownItemProps>;
18
+ export declare const DropdownItem: React.FunctionComponent<MenuItemProps>;
52
19
  //# sourceMappingURL=DropdownItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/DropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM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,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,iLAAiL;IACjL,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAyDnE,CAAC"}
1
+ {"version":3,"file":"DropdownItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/DropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAY,MAAM,SAAS,CAAC;AAClD,OAAO,EAAgB,SAAS,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,EAAE,SAAS;IAC9E,wDAAwD;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,iEAAiE;IACjE,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,iLAAiL;IACjL,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAe/D,CAAC"}
@@ -2,17 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DropdownItem = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const InternalDropdownItem_1 = require("./InternalDropdownItem");
7
- const dropdownConstants_1 = require("./dropdownConstants");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
+ const react_styles_1 = require("@patternfly/react-styles");
7
+ const Menu_1 = require("../Menu");
8
8
  const helpers_1 = require("../../helpers");
9
9
  const DropdownItem = (_a) => {
10
- var { children, className, component = 'a', isDisabled = false, isAriaDisabled = false, isPlainText = false, href, tooltip, tooltipProps = {}, listItemClassName, onClick,
11
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
12
- ref, // Types of Ref are different for React.FunctionComponent vs React.Component
13
- additionalChild, customChild, tabIndex = -1, icon = null, autoFocus, description = null, styleChildren, ouiaId, ouiaSafe } = _a, props = tslib_1.__rest(_a, ["children", "className", "component", "isDisabled", "isAriaDisabled", "isPlainText", "href", "tooltip", "tooltipProps", "listItemClassName", "onClick", "ref", "additionalChild", "customChild", "tabIndex", "icon", "autoFocus", "description", "styleChildren", "ouiaId", "ouiaSafe"]);
10
+ var { children, className, description, itemId, ouiaId, ouiaSafe } = _a, props = tslib_1.__rest(_a, ["children", "className", "description", "itemId", "ouiaId", "ouiaSafe"]);
14
11
  const ouiaProps = (0, helpers_1.useOUIAProps)(exports.DropdownItem.displayName, ouiaId, ouiaSafe);
15
- return (React.createElement(dropdownConstants_1.DropdownArrowContext.Consumer, null, context => (React.createElement(InternalDropdownItem_1.InternalDropdownItem, Object.assign({ context: context, role: "menuitem", tabIndex: tabIndex, className: className, component: component, isDisabled: isDisabled, isAriaDisabled: isAriaDisabled, isPlainText: isPlainText, href: href, tooltip: tooltip, tooltipProps: tooltipProps, listItemClassName: listItemClassName, onClick: onClick, additionalChild: additionalChild, customChild: customChild, icon: icon, autoFocus: autoFocus, styleChildren: styleChildren, description: description }, ouiaProps, props), children))));
12
+ return (react_1.default.createElement(Menu_1.MenuItem, Object.assign({ className: (0, react_styles_1.css)(className), description: description, itemId: itemId }, ouiaProps, props), children));
16
13
  };
17
14
  exports.DropdownItem = DropdownItem;
18
15
  exports.DropdownItem.displayName = 'DropdownItem';
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownItem.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/DropdownItem.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,iE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CACjC,CAAC;AACJ,CAAC,CAAC;AAzDW,QAAA,YAAY,gBAyDvB;AAEF,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
1
+ {"version":3,"file":"DropdownItem.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/DropdownItem.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,2DAA+C;AAC/C,kCAAkD;AAClD,2CAAwD;AAiBjD,MAAM,YAAY,GAA2C,CAAC,EAQjD,EAAE,EAAE;QAR6C,EACnE,QAAQ,EACR,SAAS,EACT,WAAW,EACX,MAAM,EACN,MAAM,EACN,QAAQ,OAEU,EADf,KAAK,sBAP2D,wEAQpE,CADS;IAER,MAAM,SAAS,GAAG,IAAA,sBAAY,EAAC,oBAAY,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC3E,OAAO,CACL,8BAAC,eAAQ,kBAAC,SAAS,EAAE,IAAA,kBAAG,EAAC,SAAS,CAAC,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,IAAM,SAAS,EAAM,KAAK,GACpG,QAAQ,CACA,CACZ,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,YAAY,gBAevB;AACF,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { MenuListProps } from '../../../components/Menu';
2
+ import { MenuListProps } from '../Menu';
3
3
  export interface DropdownListProps extends MenuListProps {
4
4
  /** Anything which can be rendered in a dropdown list */
5
5
  children: React.ReactNode;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownList.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/DropdownList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAY,MAAM,SAAS,CAAC;AAElD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,wDAAwD;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAQ/D,CAAC"}
@@ -4,7 +4,7 @@ exports.DropdownList = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const react_styles_1 = require("@patternfly/react-styles");
7
- const Menu_1 = require("../../../components/Menu");
7
+ const Menu_1 = require("../Menu");
8
8
  const DropdownList = (_a) => {
9
9
  var { children, className } = _a, props = tslib_1.__rest(_a, ["children", "className"]);
10
10
  return (react_1.default.createElement(Menu_1.MenuList, Object.assign({ className: (0, react_styles_1.css)(className) }, props), children));
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownList.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/DropdownList.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,2DAA+C;AAC/C,kCAAkD;AAS3C,MAAM,YAAY,GAA2C,CAAC,EAIjD,EAAE,EAAE;QAJ6C,EACnE,QAAQ,EACR,SAAS,OAES,EADf,KAAK,sBAH2D,yBAIpE,CADS;IACe,OAAA,CACvB,8BAAC,eAAQ,kBAAC,SAAS,EAAE,IAAA,kBAAG,EAAC,SAAS,CAAC,IAAM,KAAK,GAC3C,QAAQ,CACA,CACZ,CAAA;CAAA,CAAC;AARW,QAAA,YAAY,gBAQvB;AACF,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
@@ -1,13 +1,5 @@
1
1
  export * from './Dropdown';
2
- export * from './DropdownMenu';
3
- export * from './DropdownWithContext';
4
- export * from './dropdownConstants';
5
2
  export * from './DropdownGroup';
6
3
  export * from './DropdownItem';
7
- export * from './DropdownSeparator';
8
- export * from './BadgeToggle';
9
- export * from './KebabToggle';
10
- export * from './DropdownToggle';
11
- export * from './DropdownToggleCheckbox';
12
- export * from './DropdownToggleAction';
4
+ export * from './DropdownList';
13
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
@@ -2,15 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Dropdown"), exports);
5
- tslib_1.__exportStar(require("./DropdownMenu"), exports);
6
- tslib_1.__exportStar(require("./DropdownWithContext"), exports);
7
- tslib_1.__exportStar(require("./dropdownConstants"), exports);
8
5
  tslib_1.__exportStar(require("./DropdownGroup"), exports);
9
6
  tslib_1.__exportStar(require("./DropdownItem"), exports);
10
- tslib_1.__exportStar(require("./DropdownSeparator"), exports);
11
- tslib_1.__exportStar(require("./BadgeToggle"), exports);
12
- tslib_1.__exportStar(require("./KebabToggle"), exports);
13
- tslib_1.__exportStar(require("./DropdownToggle"), exports);
14
- tslib_1.__exportStar(require("./DropdownToggleCheckbox"), exports);
15
- tslib_1.__exportStar(require("./DropdownToggleAction"), exports);
7
+ tslib_1.__exportStar(require("./DropdownList"), exports);
16
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,yDAA+B;AAC/B,gEAAsC;AACtC,8DAAoC;AACpC,0DAAgC;AAChC,yDAA+B;AAC/B,8DAAoC;AACpC,wDAA8B;AAC9B,wDAA8B;AAC9B,2DAAiC;AACjC,mEAAyC;AACzC,iEAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,0DAAgC;AAChC,yDAA+B;AAC/B,yDAA+B"}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { DropdownItemProps } from '../../next/components/Dropdown';
2
+ import { DropdownItemProps } from '../Dropdown';
3
3
  export interface OverflowMenuDropdownItemProps extends Omit<DropdownItemProps, 'ref'> {
4
4
  /** Indicates when a dropdown item shows and hides the corresponding list item */
5
5
  isShared?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"OverflowMenuDropdownItem.d.ts","sourceRoot":"","sources":["../../../../src/components/OverflowMenu/OverflowMenuDropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAgB,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGjF,MAAM,WAAW,6BAA8B,SAAQ,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC;IACnF,iFAAiF;IACjF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,iBAAiB,CAAC,6BAA6B,CAe3F,CAAC"}
1
+ {"version":3,"file":"OverflowMenuDropdownItem.d.ts","sourceRoot":"","sources":["../../../../src/components/OverflowMenu/OverflowMenuDropdownItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAgB,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAG9D,MAAM,WAAW,6BAA8B,SAAQ,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC;IACnF,iFAAiF;IACjF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,iBAAiB,CAAC,6BAA6B,CAe3F,CAAC"}
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OverflowMenuDropdownItem = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
- const Dropdown_1 = require("../../next/components/Dropdown");
6
+ const Dropdown_1 = require("../Dropdown");
7
7
  const OverflowMenuContext_1 = require("./OverflowMenuContext");
8
8
  const OverflowMenuDropdownItem = (_a) => {
9
9
  var { children, isShared = false, itemId } = _a, additionalProps = tslib_1.__rest(_a, ["children", "isShared", "itemId"]);
10
- return (React.createElement(OverflowMenuContext_1.OverflowMenuContext.Consumer, null, value => (!isShared || value.isBelowBreakpoint) && (React.createElement(Dropdown_1.DropdownItem, Object.assign({ component: "button", itemId: itemId }, additionalProps), children))));
10
+ return (React.createElement(OverflowMenuContext_1.OverflowMenuContext.Consumer, null, (value) => (!isShared || value.isBelowBreakpoint) && (React.createElement(Dropdown_1.DropdownItem, Object.assign({ component: "button", itemId: itemId }, additionalProps), children))));
11
11
  };
12
12
  exports.OverflowMenuDropdownItem = OverflowMenuDropdownItem;
13
13
  exports.OverflowMenuDropdownItem.displayName = 'OverflowMenuDropdownItem';
@@ -1 +1 @@
1
- {"version":3,"file":"OverflowMenuDropdownItem.js","sourceRoot":"","sources":["../../../../src/components/OverflowMenu/OverflowMenuDropdownItem.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,6DAAiF;AACjF,+DAA4D;AASrD,MAAM,wBAAwB,GAA2D,CAAC,EAKjE,EAAE,EAAE;QAL6D,EAC/F,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,MAAM,OAEwB,EAD3B,eAAe,sBAJ6E,kCAKhG,CADmB;IACiB,OAAA,CACnC,oBAAC,yCAAmB,CAAC,QAAQ,QAC1B,KAAK,CAAC,EAAE,CACP,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,iBAAiB,CAAC,IAAI,CACxC,oBAAC,uBAAY,kBAAC,SAAS,EAAC,QAAQ,EAAC,MAAM,EAAE,MAAM,IAAM,eAAe,GACjE,QAAQ,CACI,CAChB,CAE0B,CAChC,CAAA;CAAA,CAAC;AAfW,QAAA,wBAAwB,4BAenC;AACF,gCAAwB,CAAC,WAAW,GAAG,0BAA0B,CAAC"}
1
+ {"version":3,"file":"OverflowMenuDropdownItem.js","sourceRoot":"","sources":["../../../../src/components/OverflowMenu/OverflowMenuDropdownItem.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,0CAA8D;AAC9D,+DAA4D;AASrD,MAAM,wBAAwB,GAA2D,CAAC,EAKjE,EAAE,EAAE;QAL6D,EAC/F,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,MAAM,OAEwB,EAD3B,eAAe,sBAJ6E,kCAKhG,CADmB;IACiB,OAAA,CACnC,oBAAC,yCAAmB,CAAC,QAAQ,QAC1B,CAAC,KAAK,EAAE,EAAE,CACT,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,iBAAiB,CAAC,IAAI,CACxC,oBAAC,uBAAY,kBAAC,SAAS,EAAC,QAAQ,EAAC,MAAM,EAAE,MAAM,IAAM,eAAe,GACjE,QAAQ,CACI,CAChB,CAE0B,CAChC,CAAA;CAAA,CAAC;AAfW,QAAA,wBAAwB,4BAenC;AACF,gCAAwB,CAAC,WAAW,GAAG,0BAA0B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/Progress/ProgressContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAW,eAAe,EAAE,MAAM,YAAY,CAAC;AAItD,OAAO,EAAE,SAAS,EAAe,MAAM,eAAe,CAAC;AAGvD,oBAAY,uBAAuB;IACjC,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACtG,yCAAyC;IACzC,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,oIAAoI;IACpI,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,kDAAkD;IAClD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IAC3C,kCAAkC;IAClC,eAAe,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;IACxD,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uEAAuE;IACvE,eAAe,CAAC,EACZ,eAAe,GACf,MAAM,GACN,KAAK,GACL,QAAQ,GACR,MAAM,GACN,OAAO,GACP,WAAW,GACX,SAAS,GACT,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,UAAU,GACV,aAAa,GACb,WAAW,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAQD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC,sBAAsB,CA4D7E,CAAC"}
1
+ {"version":3,"file":"ProgressContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/Progress/ProgressContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAW,eAAe,EAAE,MAAM,YAAY,CAAC;AAItD,OAAO,EAAE,SAAS,EAAe,MAAM,eAAe,CAAC;AAGvD,oBAAY,uBAAuB;IACjC,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACtG,yCAAyC;IACzC,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,oIAAoI;IACpI,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,kDAAkD;IAClD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IAC3C,kCAAkC;IAClC,eAAe,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;IACxD,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uEAAuE;IACvE,eAAe,CAAC,EACZ,eAAe,GACf,MAAM,GACN,KAAK,GACL,QAAQ,GACR,MAAM,GACN,OAAO,GACP,WAAW,GACX,SAAS,GACT,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,UAAU,GACV,aAAa,GACb,WAAW,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAQD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC,sBAAsB,CA+D7E,CAAC"}
@@ -42,11 +42,12 @@ const ProgressContainer = ({ progressBarAriaProps, value, title = '', parentId,
42
42
  };
43
43
  const Title = (React.createElement("div", { className: (0, react_styles_1.css)(progress_1.default.progressDescription, isTitleTruncated && typeof title === 'string' && progress_1.default.modifiers.truncate), id: `${parentId}-description`, "aria-hidden": "true", onMouseEnter: isTitleTruncated && typeof title === 'string' ? onMouseEnter : null }, title));
44
44
  return (React.createElement(React.Fragment, null,
45
- tooltip ? (React.createElement(Tooltip_1.Tooltip, { position: tooltipPosition, content: tooltip, isVisible: true }, Title)) : (Title),
46
- React.createElement("div", { className: (0, react_styles_1.css)(progress_1.default.progressStatus), "aria-hidden": "true" },
45
+ title &&
46
+ (tooltip ? (React.createElement(Tooltip_1.Tooltip, { position: tooltipPosition, content: tooltip, isVisible: true }, Title)) : (Title)),
47
+ (measureLocation !== ProgressMeasureLocation.none || StatusIcon) && (React.createElement("div", { className: (0, react_styles_1.css)(progress_1.default.progressStatus), "aria-hidden": "true" },
47
48
  (measureLocation === ProgressMeasureLocation.top || measureLocation === ProgressMeasureLocation.outside) && (React.createElement("span", { className: (0, react_styles_1.css)(progress_1.default.progressMeasure) }, label || `${value}%`)),
48
- variantToIcon.hasOwnProperty(variant) && (React.createElement("span", { className: (0, react_styles_1.css)(progress_1.default.progressStatusIcon) },
49
- React.createElement(StatusIcon, null)))),
49
+ StatusIcon && (React.createElement("span", { className: (0, react_styles_1.css)(progress_1.default.progressStatusIcon) },
50
+ React.createElement(StatusIcon, null))))),
50
51
  React.createElement(ProgressBar_1.ProgressBar, { role: "progressbar", progressBarAriaProps: progressBarAriaProps, value: value }, measureLocation === ProgressMeasureLocation.inside && `${value}%`),
51
52
  helperText && React.createElement(ProgressHelperText_1.ProgressHelperText, null, helperText)));
52
53
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressContainer.js","sourceRoot":"","sources":["../../../../src/components/Progress/ProgressContainer.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,iHAAsF;AACtF,2DAA+C;AAC/C,wCAAsD;AACtD,wHAAuF;AACvF,wHAAuF;AACvF,wIAAuG;AACvG,+CAAuD;AACvD,6DAA0D;AAE1D,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,4CAAiB,CAAA;IACjB,sCAAW,CAAA;IACX,wCAAa,CAAA;AACf,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;AACrB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAyCD,MAAM,aAAa,GAAG;IACpB,MAAM,EAAE,2BAAe;IACvB,OAAO,EAAE,2BAAe;IACxB,OAAO,EAAE,mCAAuB;CACjC,CAAC;AAEK,MAAM,iBAAiB,GAAoD,CAAC,EACjF,oBAAoB,EACpB,KAAK,EACL,KAAK,GAAG,EAAE,EACV,QAAQ,EACR,KAAK,GAAG,IAAI,EACZ,OAAO,GAAG,IAAI,EACd,eAAe,GAAG,uBAAuB,CAAC,GAAG,EAC7C,gBAAgB,GAAG,KAAK,EACxB,eAAe,EACf,UAAU,EACa,EAAE,EAAE;IAC3B,MAAM,UAAU,GAAG,aAAa,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;IACnF,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACjD,M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AAa,CAAC,kBAAkB,CAAC;gBACpD,oBAAC,UAAU,OAAG,CACT,CACR,CACG;QACN,oBAAC,yBAAW,IAAC,IAAI,EAAC,aAAa,EAAC,oBAAoB,EAAE,oBAAoB,EAAE,KAAK,EAAE,KAAK,IACrF,eAAe,KAAK,uBAAuB,CAAC,MAAM,IAAI,GAAG,KAAK,GAAG,CACtD;QACb,UAAU,IAAI,oBAAC,uCAAkB,QAAE,UAAU,CAAsB,CACrD,CAClB,CAAC;AACJ,CAAC,CAAC;AA5DW,QAAA,iBAAiB,qBA4D5B;AACF,yBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC"}
1
+ {"version":3,"file":"ProgressContainer.js","sourceRoot":"","sources":["../../../../src/components/Progress/ProgressContainer.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,iHAAsF;AACtF,2DAA+C;AAC/C,wCAAsD;AACtD,wHAAuF;AACvF,wHAAuF;AACvF,wIAAuG;AACvG,+CAAuD;AACvD,6DAA0D;AAE1D,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,4CAAiB,CAAA;IACjB,sCAAW,CAAA;IACX,wCAAa,CAAA;AACf,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;AACrB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAyCD,MAAM,aAAa,GAAG;IACpB,MAAM,EAAE,2BAAe;IACvB,OAAO,EAAE,2BAAe;IACxB,OAAO,EAAE,mCAAuB;CACjC,CAAC;AAEK,MAAM,iBAAiB,GAAoD,CAAC,EACjF,oBAAoB,EACpB,KAAK,EACL,KAAK,GAAG,EAAE,EACV,QAAQ,EACR,KAAK,GAAG,IAAI,EACZ,OAAO,GAAG,IAAI,EACd,eAAe,GAAG,uB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,EAAE,IAAA,kBAAG,EAAC,kBAAa,CAAC,cAAc,CAAC,iBAAc,MAAM;YAClE,CAAC,eAAe,KAAK,uBAAuB,CAAC,GAAG,IAAI,eAAe,KAAK,uBAAuB,CAAC,OAAO,CAAC,IAAI,CAC3G,8BAAM,SAAS,EAAE,IAAA,kBAAG,EAAC,kBAAa,CAAC,eAAe,CAAC,IAAG,KAAK,IAAI,GAAG,KAAK,GAAG,CAAQ,CACnF;YACA,UAAU,IAAI,CACb,8BAAM,SAAS,EAAE,IAAA,kBAAG,EAAC,kBAAa,CAAC,kBAAkB,CAAC;gBACpD,oBAAC,UAAU,OAAG,CACT,CACR,CACG,CACP;QACD,oBAAC,yBAAW,IAAC,IAAI,EAAC,aAAa,EAAC,oBAAoB,EAAE,oBAAoB,EAAE,KAAK,EAAE,KAAK,IACrF,eAAe,KAAK,uBAAuB,CAAC,MAAM,IAAI,GAAG,KAAK,GAAG,CACtD;QACb,UAAU,IAAI,oBAAC,uCAAkB,QAAE,UAAU,CAAsB,CACrD,CAClB,CAAC;AACJ,CAAC,CAAC;AA/DW,QAAA,iBAAiB,qBA+D5B;AACF,yBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { DropdownToggleProps } from './DropdownToggle';
3
- import { BadgeProps } from '../Badge';
3
+ import { BadgeProps } from '../../../components/Badge';
4
4
  export interface BadgeToggleProps extends DropdownToggleProps {
5
5
  /** HTML ID of dropdown toggle */
6
6
  id?: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BadgeToggle.d.ts","sourceRoot":"","sources":["../../../../../src/deprecated/components/Dropdown/BadgeToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAS,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D,iCAAiC;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,wDAAwD;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,gCAAgC;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAC/G,MAAM,EAAE,OAAO,KACZ,IAAI,CAAC;IACV,iCAAiC;IACjC,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,uBAAuB;IACvB,UAAU,CAAC,EAAE,MAAM,WAAW,CAAC;IAC/B,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gCAAgC;IAChC,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,+CAA+C;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAuCjE,CAAC"}
@@ -7,7 +7,7 @@ const react_styles_1 = require("@patternfly/react-styles");
7
7
  const dropdown_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Dropdown/dropdown"));
8
8
  const caret_down_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/caret-down-icon'));
9
9
  const Toggle_1 = require("./Toggle");
10
- const Badge_1 = require("../Badge");
10
+ const Badge_1 = require("../../../components/Badge");
11
11
  const BadgeToggle = (_a) => {
12
12
  var { id = '', children = null, badgeProps = { isRead: true }, className = '', isOpen = false, 'aria-label': ariaLabel = 'Actions', parentRef = null, getMenuRef = null, isActive = false, isPlain = null, isDisabled = false, bubbleEvent = false, onToggle = () => undefined,
13
13
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BadgeToggle.js","sourceRoot":"","sources":["../../../../../src/deprecated/components/Dropdown/BadgeToggle.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,iHAA+E;AAE/E,oHAAmF;AACnF,qCAAkC;AAClC,qDAA8D;AAoCvD,MAAM,WAAW,GAA8C,CAAC,EAiBpD,EAAE,EAAE;QAjBgD,EACrE,EAAE,GAAG,EAAE,EACP,QAAQ,GAAG,IAAI,EACf,UAAU,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAC7B,SAAS,GAAG,EAAE,EACd,MAAM,GAAG,KAAK,EACd,YAAY,EAAE,SAAS,GAAG,SAAS,EACnC,SAAS,GAAG,IAAI,EAChB,UAAU,GAAG,IAAI,EACjB,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,IAAI,EACd,UAAU,GAAG,KAAK,EAClB,WAAW,GAAG,KAAK,EACnB,QAAQ,GAAG,GAAG,EAAE,CAAC,SAAiB;IAClC,6DAA6D;IAC7D,GAAG,OAEc,EAFZ,4EAA4E;IAC9E,KAAK,sBAhB6D,uKAiBtE,CADS;IACc,OAAA,CACtB,oBAAC,eAAM,kBACL,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,gBACF,SAAS,EACrB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,IAAI,IAAI,EAC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