@redhat-cloud-services/frontend-components 3.9.1 → 3.9.4

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 (354) hide show
  1. package/BulkSelect/BulkSelect.d.ts +1 -1
  2. package/BulkSelect/bulk-select.scss +13 -13
  3. package/ConditionalFilter/ConditionalFilter.d.ts +4 -4
  4. package/ConditionalFilter/conditional-filter.css +1 -1
  5. package/ConditionalFilter/conditional-filter.scss +78 -87
  6. package/CullingInfo/CullingInformation.scss +4 -4
  7. package/DownloadButton/DownloadButton.d.ts +2 -2
  8. package/DownloadButton/DownloadButton.js +1 -1
  9. package/DownloadButton/DownloadButton.spec.ct.d.ts +1 -0
  10. package/DownloadButton/DownloadButton.spec.ct.js +24 -0
  11. package/EmptyTable/EmptyTable.scss +7 -7
  12. package/ErrorState/error-state.scss +3 -3
  13. package/FilterChips/filter-chips.scss +9 -10
  14. package/FilterHooks/tagFilterHook.scss +15 -16
  15. package/InsightsLabel/labels.scss +14 -12
  16. package/InvalidObject/icon-404.scss +5 -9
  17. package/LongTextTooltip/index.d.ts +1 -1
  18. package/LongTextTooltip/index.js +2 -2
  19. package/Main/main.scss +1 -1
  20. package/Maintenance/maintenance.scss +5 -5
  21. package/NotAuthorized/NotAuthorized.scss +5 -5
  22. package/PageHeader/page-header.scss +5 -5
  23. package/Pagination/pagination.scss +5 -6
  24. package/PrimaryToolbar/PrimaryToolbar.d.ts +3 -2
  25. package/PrimaryToolbar/PrimaryToolbar.js +1 -1
  26. package/PrimaryToolbar/primary-toolbar.scss +40 -51
  27. package/Reboot/reboot.scss +7 -7
  28. package/SimpleTableFilter/simple-table-filter.scss +10 -10
  29. package/Skeleton/skeleton.scss +16 -16
  30. package/SkeletonTable/SkeletonTable.scss +1 -1
  31. package/Spinner/spinner.scss +15 -17
  32. package/TableToolbar/TableToolbar.scss +9 -9
  33. package/TagCount/tagCount.scss +4 -4
  34. package/TagModal/TableWithFilter.d.ts +29 -44
  35. package/TagModal/TableWithFilter.js +3 -30
  36. package/TagModal/TagModal.d.ts +32 -52
  37. package/TagModal/TagModal.js +13 -43
  38. package/TagModal/index.d.ts +3 -2
  39. package/TagModal/tagModal.scss +1 -1
  40. package/Unavailable/Unavailable.scss +1 -1
  41. package/cypress/cypress.webpack.config.js +37 -0
  42. package/cypress/fixtures/example.json +5 -0
  43. package/cypress/plugins/index.js +30 -0
  44. package/cypress/support/commands.js +25 -0
  45. package/cypress/support/index.js +21 -0
  46. package/cypress.json +9 -0
  47. package/esm/BulkSelect/bulk-select.scss +13 -13
  48. package/esm/ConditionalFilter/conditional-filter.css +1 -1
  49. package/esm/ConditionalFilter/conditional-filter.scss +78 -87
  50. package/esm/CullingInfo/CullingInformation.scss +4 -4
  51. package/esm/DownloadButton/DownloadButton.js +1 -1
  52. package/esm/DownloadButton/DownloadButton.spec.ct.js +19 -0
  53. package/esm/EmptyTable/EmptyTable.scss +7 -7
  54. package/esm/ErrorState/error-state.scss +3 -3
  55. package/esm/FilterChips/filter-chips.scss +9 -10
  56. package/esm/FilterHooks/tagFilterHook.scss +15 -16
  57. package/esm/InsightsLabel/labels.scss +14 -12
  58. package/esm/InvalidObject/icon-404.scss +5 -9
  59. package/esm/LongTextTooltip/index.js +1 -1
  60. package/esm/Main/main.scss +1 -1
  61. package/esm/Maintenance/maintenance.scss +5 -5
  62. package/esm/NotAuthorized/NotAuthorized.scss +5 -5
  63. package/esm/PageHeader/page-header.scss +5 -5
  64. package/esm/Pagination/pagination.scss +5 -6
  65. package/esm/PrimaryToolbar/PrimaryToolbar.js +1 -1
  66. package/esm/PrimaryToolbar/primary-toolbar.scss +40 -51
  67. package/esm/Reboot/reboot.scss +7 -7
  68. package/esm/SimpleTableFilter/simple-table-filter.scss +10 -10
  69. package/esm/Skeleton/skeleton.scss +16 -16
  70. package/esm/SkeletonTable/SkeletonTable.scss +1 -1
  71. package/esm/Spinner/spinner.scss +15 -17
  72. package/esm/TableToolbar/TableToolbar.scss +9 -9
  73. package/esm/TagCount/tagCount.scss +4 -4
  74. package/esm/TagModal/TableWithFilter.js +3 -30
  75. package/esm/TagModal/TagModal.js +13 -43
  76. package/esm/TagModal/tagModal.scss +1 -1
  77. package/esm/Unavailable/Unavailable.scss +1 -1
  78. package/esm/index.css +1 -1
  79. package/esm/usePendoFeedback/usePendoFeedback.js +1 -5
  80. package/index.css +1 -1
  81. package/package.json +10 -2
  82. package/useChrome/useChrome.d.ts +1 -1
  83. package/usePendoFeedback/usePendoFeedback.d.ts +1 -1
  84. package/usePendoFeedback/usePendoFeedback.js +1 -5
  85. package/Ansible/Ansible.js.map +0 -1
  86. package/Ansible/index.js.map +0 -1
  87. package/AsyncComponent/index.js.map +0 -1
  88. package/Battery/Battery.js.map +0 -1
  89. package/Battery/CriticalBattery.js.map +0 -1
  90. package/Battery/HighBattery.js.map +0 -1
  91. package/Battery/LowBattery.js.map +0 -1
  92. package/Battery/MediumBattery.js.map +0 -1
  93. package/Battery/NullBattery.js.map +0 -1
  94. package/Battery/index.js.map +0 -1
  95. package/Breadcrumbs/Breadcrumbs.js.map +0 -1
  96. package/Breadcrumbs/ConnectedBreadcrumbs.js.map +0 -1
  97. package/Breadcrumbs/index.js.map +0 -1
  98. package/BulkSelect/BulkSelect.js.map +0 -1
  99. package/BulkSelect/index.js.map +0 -1
  100. package/ConditionalFilter/CheckboxFilter.js.map +0 -1
  101. package/ConditionalFilter/ConditionalFilter.js.map +0 -1
  102. package/ConditionalFilter/GroupFilter.js.map +0 -1
  103. package/ConditionalFilter/RadioFilter.js.map +0 -1
  104. package/ConditionalFilter/TextFilter.js.map +0 -1
  105. package/ConditionalFilter/conditionalFilterConstants.js.map +0 -1
  106. package/ConditionalFilter/groupFilterConstants.js.map +0 -1
  107. package/ConditionalFilter/groupType.js.map +0 -1
  108. package/ConditionalFilter/index.js.map +0 -1
  109. package/CullingInfo/CullingInformation.js.map +0 -1
  110. package/CullingInfo/index.js.map +0 -1
  111. package/CullingInfo/utils.js.map +0 -1
  112. package/Dark/Dark.js.map +0 -1
  113. package/Dark/DarkContext.js.map +0 -1
  114. package/Dark/index.js.map +0 -1
  115. package/DateFormat/DateFormat.js.map +0 -1
  116. package/DateFormat/helper.js.map +0 -1
  117. package/DateFormat/index.js.map +0 -1
  118. package/DownloadButton/DownloadButton.js.map +0 -1
  119. package/DownloadButton/index.js.map +0 -1
  120. package/EmptyTable/EmptyTable.js.map +0 -1
  121. package/EmptyTable/index.js.map +0 -1
  122. package/ErrorBoundary/ErrorBoundary.js.map +0 -1
  123. package/ErrorBoundary/ErrorStack.js.map +0 -1
  124. package/ErrorBoundary/index.js.map +0 -1
  125. package/ErrorState/DefaultErrorMessage.js.map +0 -1
  126. package/ErrorState/ErrorState.js.map +0 -1
  127. package/ErrorState/index.js.map +0 -1
  128. package/FilterChips/FilterChips.js.map +0 -1
  129. package/FilterChips/index.js.map +0 -1
  130. package/FilterHooks/constants.js.map +0 -1
  131. package/FilterHooks/index.js.map +0 -1
  132. package/FilterHooks/tagFilterHook.js.map +0 -1
  133. package/Filters/FilterDropdown.js.map +0 -1
  134. package/Filters/FilterInput.js.map +0 -1
  135. package/Filters/index.js.map +0 -1
  136. package/Input/Input.js.map +0 -1
  137. package/Input/LabeledInput.js.map +0 -1
  138. package/Input/index.js.map +0 -1
  139. package/InsightsLabel/InsightsLabel.js.map +0 -1
  140. package/InsightsLabel/index.js.map +0 -1
  141. package/InvalidObject/InvalidObject.js.map +0 -1
  142. package/InvalidObject/icon-404.js.map +0 -1
  143. package/InvalidObject/index.js.map +0 -1
  144. package/Inventory/AppInfo.js.map +0 -1
  145. package/Inventory/DetailWrapper.js.map +0 -1
  146. package/Inventory/InventoryDetail.js.map +0 -1
  147. package/Inventory/InventoryDetailHead.js.map +0 -1
  148. package/Inventory/InventoryLoadError.js.map +0 -1
  149. package/Inventory/InventoryTable.js.map +0 -1
  150. package/Inventory/TagWithDialog.js.map +0 -1
  151. package/Inventory/index.js.map +0 -1
  152. package/LongTextTooltip/LongTextTooltip.js.map +0 -1
  153. package/LongTextTooltip/index.js.map +0 -1
  154. package/Main/Main.js.map +0 -1
  155. package/Main/index.js.map +0 -1
  156. package/Maintenance/Maintenance.js.map +0 -1
  157. package/Maintenance/index.js.map +0 -1
  158. package/NotAuthorized/NotAuthorized.js.map +0 -1
  159. package/NotAuthorized/index.js.map +0 -1
  160. package/NotConnected/NotConnected.js.map +0 -1
  161. package/NotConnected/index.js.map +0 -1
  162. package/Ouia/Ouia.js.map +0 -1
  163. package/Ouia/WithOuia.js.map +0 -1
  164. package/Ouia/index.js.map +0 -1
  165. package/Ouia/useOuia.js.map +0 -1
  166. package/PageHeader/PageHeader.js.map +0 -1
  167. package/PageHeader/PageHeaderTitle.js.map +0 -1
  168. package/PageHeader/index.js.map +0 -1
  169. package/Pagination/Pagination.js.map +0 -1
  170. package/Pagination/PaginationMenu.js.map +0 -1
  171. package/Pagination/PaginationNav.js.map +0 -1
  172. package/Pagination/PaginationNext.js.map +0 -1
  173. package/Pagination/index.js.map +0 -1
  174. package/PrimaryToolbar/Actions.js.map +0 -1
  175. package/PrimaryToolbar/PrimaryToolbar.js.map +0 -1
  176. package/PrimaryToolbar/SortBy.js.map +0 -1
  177. package/PrimaryToolbar/index.js.map +0 -1
  178. package/Reboot/Reboot.js.map +0 -1
  179. package/Reboot/index.js.map +0 -1
  180. package/Section/Section.js.map +0 -1
  181. package/Section/index.js.map +0 -1
  182. package/Shield/Shield.js.map +0 -1
  183. package/Shield/consts.js.map +0 -1
  184. package/Shield/index.js.map +0 -1
  185. package/SimpleTableFilter/SimpleTableFilter.js.map +0 -1
  186. package/SimpleTableFilter/index.js.map +0 -1
  187. package/Skeleton/Skeleton.js.map +0 -1
  188. package/Skeleton/index.js.map +0 -1
  189. package/SkeletonTable/SkeletonTable.js.map +0 -1
  190. package/SkeletonTable/index.js.map +0 -1
  191. package/Spinner/Spinner.js.map +0 -1
  192. package/Spinner/index.js.map +0 -1
  193. package/TabLayout/TabLayout.js.map +0 -1
  194. package/TabLayout/index.js.map +0 -1
  195. package/TableToolbar/TableToolbar.js.map +0 -1
  196. package/TableToolbar/index.js.map +0 -1
  197. package/TagCount/TagCount.js.map +0 -1
  198. package/TagCount/index.js.map +0 -1
  199. package/TagModal/TableWithFilter.js.map +0 -1
  200. package/TagModal/TagModal.js.map +0 -1
  201. package/TagModal/index.js.map +0 -1
  202. package/TreeTable/decorator.js.map +0 -1
  203. package/TreeTable/helpers.js.map +0 -1
  204. package/TreeTable/index.js.map +0 -1
  205. package/TreeTable/rowWrapper.js.map +0 -1
  206. package/Truncate/Truncate.js.map +0 -1
  207. package/Truncate/index.js.map +0 -1
  208. package/Unavailable/Unavailable.js.map +0 -1
  209. package/Unavailable/index.js.map +0 -1
  210. package/esm/Ansible/Ansible.js.map +0 -1
  211. package/esm/Ansible/index.js.map +0 -1
  212. package/esm/AsyncComponent/index.js.map +0 -1
  213. package/esm/Battery/Battery.js.map +0 -1
  214. package/esm/Battery/CriticalBattery.js.map +0 -1
  215. package/esm/Battery/HighBattery.js.map +0 -1
  216. package/esm/Battery/LowBattery.js.map +0 -1
  217. package/esm/Battery/MediumBattery.js.map +0 -1
  218. package/esm/Battery/NullBattery.js.map +0 -1
  219. package/esm/Battery/index.js.map +0 -1
  220. package/esm/Breadcrumbs/Breadcrumbs.js.map +0 -1
  221. package/esm/Breadcrumbs/ConnectedBreadcrumbs.js.map +0 -1
  222. package/esm/Breadcrumbs/index.js.map +0 -1
  223. package/esm/BulkSelect/BulkSelect.js.map +0 -1
  224. package/esm/BulkSelect/index.js.map +0 -1
  225. package/esm/ConditionalFilter/CheckboxFilter.js.map +0 -1
  226. package/esm/ConditionalFilter/ConditionalFilter.js.map +0 -1
  227. package/esm/ConditionalFilter/GroupFilter.js.map +0 -1
  228. package/esm/ConditionalFilter/RadioFilter.js.map +0 -1
  229. package/esm/ConditionalFilter/TextFilter.js.map +0 -1
  230. package/esm/ConditionalFilter/conditionalFilterConstants.js.map +0 -1
  231. package/esm/ConditionalFilter/groupFilterConstants.js.map +0 -1
  232. package/esm/ConditionalFilter/groupType.js.map +0 -1
  233. package/esm/ConditionalFilter/index.js.map +0 -1
  234. package/esm/CullingInfo/CullingInformation.js.map +0 -1
  235. package/esm/CullingInfo/index.js.map +0 -1
  236. package/esm/CullingInfo/utils.js.map +0 -1
  237. package/esm/Dark/Dark.js.map +0 -1
  238. package/esm/Dark/DarkContext.js.map +0 -1
  239. package/esm/Dark/index.js.map +0 -1
  240. package/esm/DateFormat/DateFormat.js.map +0 -1
  241. package/esm/DateFormat/helper.js.map +0 -1
  242. package/esm/DateFormat/index.js.map +0 -1
  243. package/esm/DownloadButton/DownloadButton.js.map +0 -1
  244. package/esm/DownloadButton/index.js.map +0 -1
  245. package/esm/EmptyTable/EmptyTable.js.map +0 -1
  246. package/esm/EmptyTable/index.js.map +0 -1
  247. package/esm/ErrorBoundary/ErrorBoundary.js.map +0 -1
  248. package/esm/ErrorBoundary/ErrorStack.js.map +0 -1
  249. package/esm/ErrorBoundary/index.js.map +0 -1
  250. package/esm/ErrorState/DefaultErrorMessage.js.map +0 -1
  251. package/esm/ErrorState/ErrorState.js.map +0 -1
  252. package/esm/ErrorState/index.js.map +0 -1
  253. package/esm/FilterChips/FilterChips.js.map +0 -1
  254. package/esm/FilterChips/index.js.map +0 -1
  255. package/esm/FilterHooks/constants.js.map +0 -1
  256. package/esm/FilterHooks/index.js.map +0 -1
  257. package/esm/FilterHooks/tagFilterHook.js.map +0 -1
  258. package/esm/Filters/FilterDropdown.js.map +0 -1
  259. package/esm/Filters/FilterInput.js.map +0 -1
  260. package/esm/Filters/index.js.map +0 -1
  261. package/esm/Input/Input.js.map +0 -1
  262. package/esm/Input/LabeledInput.js.map +0 -1
  263. package/esm/Input/index.js.map +0 -1
  264. package/esm/InsightsLabel/InsightsLabel.js.map +0 -1
  265. package/esm/InsightsLabel/index.js.map +0 -1
  266. package/esm/InvalidObject/InvalidObject.js.map +0 -1
  267. package/esm/InvalidObject/icon-404.js.map +0 -1
  268. package/esm/InvalidObject/index.js.map +0 -1
  269. package/esm/Inventory/AppInfo.js.map +0 -1
  270. package/esm/Inventory/DetailWrapper.js.map +0 -1
  271. package/esm/Inventory/InventoryDetail.js.map +0 -1
  272. package/esm/Inventory/InventoryDetailHead.js.map +0 -1
  273. package/esm/Inventory/InventoryLoadError.js.map +0 -1
  274. package/esm/Inventory/InventoryTable.js.map +0 -1
  275. package/esm/Inventory/TagWithDialog.js.map +0 -1
  276. package/esm/Inventory/index.js.map +0 -1
  277. package/esm/LongTextTooltip/LongTextTooltip.js.map +0 -1
  278. package/esm/LongTextTooltip/index.js.map +0 -1
  279. package/esm/Main/Main.js.map +0 -1
  280. package/esm/Main/index.js.map +0 -1
  281. package/esm/Maintenance/Maintenance.js.map +0 -1
  282. package/esm/Maintenance/index.js.map +0 -1
  283. package/esm/NotAuthorized/NotAuthorized.js.map +0 -1
  284. package/esm/NotAuthorized/index.js.map +0 -1
  285. package/esm/NotConnected/NotConnected.js.map +0 -1
  286. package/esm/NotConnected/index.js.map +0 -1
  287. package/esm/Ouia/Ouia.js.map +0 -1
  288. package/esm/Ouia/WithOuia.js.map +0 -1
  289. package/esm/Ouia/index.js.map +0 -1
  290. package/esm/Ouia/useOuia.js.map +0 -1
  291. package/esm/PageHeader/PageHeader.js.map +0 -1
  292. package/esm/PageHeader/PageHeaderTitle.js.map +0 -1
  293. package/esm/PageHeader/index.js.map +0 -1
  294. package/esm/Pagination/Pagination.js.map +0 -1
  295. package/esm/Pagination/PaginationMenu.js.map +0 -1
  296. package/esm/Pagination/PaginationNav.js.map +0 -1
  297. package/esm/Pagination/PaginationNext.js.map +0 -1
  298. package/esm/Pagination/index.js.map +0 -1
  299. package/esm/PrimaryToolbar/Actions.js.map +0 -1
  300. package/esm/PrimaryToolbar/PrimaryToolbar.js.map +0 -1
  301. package/esm/PrimaryToolbar/SortBy.js.map +0 -1
  302. package/esm/PrimaryToolbar/index.js.map +0 -1
  303. package/esm/Reboot/Reboot.js.map +0 -1
  304. package/esm/Reboot/index.js.map +0 -1
  305. package/esm/Section/Section.js.map +0 -1
  306. package/esm/Section/index.js.map +0 -1
  307. package/esm/Shield/Shield.js.map +0 -1
  308. package/esm/Shield/consts.js.map +0 -1
  309. package/esm/Shield/index.js.map +0 -1
  310. package/esm/SimpleTableFilter/SimpleTableFilter.js.map +0 -1
  311. package/esm/SimpleTableFilter/index.js.map +0 -1
  312. package/esm/Skeleton/Skeleton.js.map +0 -1
  313. package/esm/Skeleton/index.js.map +0 -1
  314. package/esm/SkeletonTable/SkeletonTable.js.map +0 -1
  315. package/esm/SkeletonTable/index.js.map +0 -1
  316. package/esm/Spinner/Spinner.js.map +0 -1
  317. package/esm/Spinner/index.js.map +0 -1
  318. package/esm/TabLayout/TabLayout.js.map +0 -1
  319. package/esm/TabLayout/index.js.map +0 -1
  320. package/esm/TableToolbar/TableToolbar.js.map +0 -1
  321. package/esm/TableToolbar/index.js.map +0 -1
  322. package/esm/TagCount/TagCount.js.map +0 -1
  323. package/esm/TagCount/index.js.map +0 -1
  324. package/esm/TagModal/TableWithFilter.js.map +0 -1
  325. package/esm/TagModal/TagModal.js.map +0 -1
  326. package/esm/TagModal/index.js.map +0 -1
  327. package/esm/TreeTable/decorator.js.map +0 -1
  328. package/esm/TreeTable/helpers.js.map +0 -1
  329. package/esm/TreeTable/index.js.map +0 -1
  330. package/esm/TreeTable/rowWrapper.js.map +0 -1
  331. package/esm/Truncate/Truncate.js.map +0 -1
  332. package/esm/Truncate/index.js.map +0 -1
  333. package/esm/Unavailable/Unavailable.js.map +0 -1
  334. package/esm/Unavailable/index.js.map +0 -1
  335. package/esm/index.js.map +0 -1
  336. package/esm/useChrome/index.js.map +0 -1
  337. package/esm/useChrome/useChrome.js.map +0 -1
  338. package/esm/usePendoFeedback/index.js.map +0 -1
  339. package/esm/usePendoFeedback/usePendoFeedback.js.map +0 -1
  340. package/esm/useScreenSize/breakpoints.js.map +0 -1
  341. package/esm/useScreenSize/getVariant.js.map +0 -1
  342. package/esm/useScreenSize/index.js.map +0 -1
  343. package/esm/useScreenSize/isSmallScreen.js.map +0 -1
  344. package/esm/useScreenSize/useScreenSize.js.map +0 -1
  345. package/index.js.map +0 -1
  346. package/useChrome/index.js.map +0 -1
  347. package/useChrome/useChrome.js.map +0 -1
  348. package/usePendoFeedback/index.js.map +0 -1
  349. package/usePendoFeedback/usePendoFeedback.js.map +0 -1
  350. package/useScreenSize/breakpoints.js.map +0 -1
  351. package/useScreenSize/getVariant.js.map +0 -1
  352. package/useScreenSize/index.js.map +0 -1
  353. package/useScreenSize/isSmallScreen.js.map +0 -1
  354. package/useScreenSize/useScreenSize.js.map +0 -1
@@ -11,7 +11,7 @@ export interface BulkSelectProps {
11
11
  count?: number;
12
12
  className?: string;
13
13
  items?: BulkSelectItem[];
14
- checked?: boolean;
14
+ checked?: boolean | null;
15
15
  id?: string;
16
16
  onSelect?: DropdownToggleCheckboxProps['onChange'];
17
17
  toggleProps?: DropdownToggleProps;
@@ -1,19 +1,19 @@
1
1
  .ins-c-bulk-select {
2
- .pf-c-dropdown__toggle-check span.pf-c-dropdown__toggle-text {
3
- display: initial;
4
- }
5
- .ins-c-bulk-select__selected {
6
- display: none;
7
- }
2
+ .pf-c-dropdown__toggle-check span.pf-c-dropdown__toggle-text {
3
+ display: initial;
4
+ }
5
+ .ins-c-bulk-select__selected {
6
+ display: none;
7
+ }
8
8
  }
9
9
 
10
10
  @media only screen and (max-width: 768px) {
11
- .ins-c-bulk-select {
12
- .pf-c-dropdown__toggle-check span.pf-c-dropdown__toggle-text {
13
- display: none;
14
- }
15
- .ins-c-bulk-select__selected {
16
- display: initial;
17
- }
11
+ .ins-c-bulk-select {
12
+ .pf-c-dropdown__toggle-check span.pf-c-dropdown__toggle-text {
13
+ display: none;
14
+ }
15
+ .ins-c-bulk-select__selected {
16
+ display: initial;
18
17
  }
18
+ }
19
19
  }
@@ -23,11 +23,11 @@ export interface ConditionalFilterItem {
23
23
  placeholder?: string;
24
24
  }
25
25
  export interface ConditionalFilterProps extends TextInputProps {
26
- hideLabel: boolean;
26
+ hideLabel?: boolean;
27
27
  items: ConditionalFilterItem[];
28
- id: string;
29
- isDisabled: boolean;
30
- useMobileLayout: boolean;
28
+ id?: string;
29
+ isDisabled?: boolean;
30
+ useMobileLayout?: boolean;
31
31
  }
32
32
  declare const ConditionalFilter: React.FunctionComponent<ConditionalFilterProps>;
33
33
  export default ConditionalFilter;
@@ -11,7 +11,7 @@
11
11
  max-width: 9.375rem;
12
12
  }
13
13
  .ins-c-conditional-filter .ins-c-conditional-filter__group .pf-c-dropdown__toggle-text {
14
- width: 102px;
14
+ width: auto;
15
15
  text-align: left;
16
16
  }
17
17
  .ins-c-conditional-filter .ins-c-conditional-filter__group .pf-c-dropdown__toggle-text > svg {
@@ -1,110 +1,101 @@
1
1
  @import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
2
2
 
3
3
  .ins-c-conditional-filter {
4
- &.mobile {
5
- display: none !important;
6
- visibility: hidden !important;
7
- }
8
- .pf-c-select__toggle-wrapper .pf-c-select__toggle-text {
9
- @include rem('max-width', 150px);
10
- }
11
-
12
- .ins-c-conditional-filter__group {
13
- .pf-c-dropdown__toggle-text {
14
- width: 102px;
15
- text-align: left;
16
-
17
- & > svg {
18
- margin-right: var(--pf-global--spacer--xs);
19
- }
20
- }
21
-
22
- .ins-c-conditional-filter__no-label .pf-c-dropdown__toggle-text {
23
- width: auto;
4
+ &.mobile {
5
+ display: none !important;
6
+ visibility: hidden !important;
7
+ }
8
+ .pf-c-select__toggle-wrapper .pf-c-select__toggle-text {
9
+ @include rem('max-width', 150px);
10
+ }
11
+ .ins-c-conditional-filter__group {
12
+ .pf-c-dropdown__toggle-text {
13
+ width: auto;
14
+ text-align: left;
15
+ & > svg {
16
+ margin-right: var(--pf-global--spacer--xs);
24
17
  }
18
+ }
19
+ .ins-c-conditional-filter__no-label .pf-c-dropdown__toggle-text {
20
+ width: auto;
25
21
  }
22
+ }
26
23
 
27
- .pf-l-split__item {
28
- .pf-c-select__menu-group {
29
- .pf-c-select__menu-group-title:empty {
30
- display: none;
31
- }
32
-
33
- padding: 0;
34
- }
35
-
36
- .pf-c-select__option-button {
37
- padding: 0;
38
- }
39
-
40
- .pf-c-select__menu-item-icon {
41
- display: none;
42
- }
43
- }
44
-
45
- input.ins-c-conditional-filter[type="text"] {
46
- @include rem('padding-right', 35px);
47
- @include rem('margin-right', -23px);
48
-
49
- & + svg {
50
- position: relative;
51
- @include rem('left', -5px);
52
- @include rem('top', 2px);
53
- }
24
+ .pf-l-split__item {
25
+ .pf-c-select__menu-group {
26
+ .pf-c-select__menu-group-title:empty {
27
+ display: none;
28
+ }
29
+ padding: 0;
54
30
  }
55
-
56
- .pf-c-select__toggle-text {
57
- margin-right: 0;
31
+ .pf-c-select__option-button {
32
+ padding: 0;
58
33
  }
59
- .pf-c-select__toggle-badge {
60
- display: none;
34
+ .pf-c-select__menu-item-icon {
35
+ display: none;
61
36
  }
37
+ }
38
+ input.ins-c-conditional-filter[type="text"] {
39
+ @include rem('padding-right', 35px);
40
+ @include rem('margin-right', -23px);
62
41
 
63
- .pf-c-menu-toggle {
64
- .pf-c-menu-toggle__text {
65
- flex: 1;
66
- input { border: none; }
67
- }
42
+ & + svg {
43
+ position: relative;
44
+ @include rem('left', -5px);
45
+ @include rem('top', 2px);
46
+ }
47
+ }
48
+ .pf-c-select__toggle-text {
49
+ margin-right: 0;
50
+ }
51
+ .pf-c-select__toggle-badge {
52
+ display: none;
53
+ }
54
+ .pf-c-menu-toggle {
55
+ .pf-c-menu-toggle__text {
56
+ flex: 1;
57
+ input { border: none; }
68
58
  }
59
+ }
69
60
  }
70
61
 
71
62
  .pf-c-menu {
72
- &.ins-c-menu__scrollable {
73
- max-height: 416px;
74
- overflow-y: auto;
75
- min-width: initial;
76
- }
77
- .ins-c-menu__show--more {
78
- background: none;
79
- .pf-c-menu__item-text{ color: var(--pf-global--active-color--100); }
80
- }
63
+ &.ins-c-menu__scrollable {
64
+ max-height: 416px;
65
+ overflow-y: auto;
66
+ min-width: initial;
67
+ }
68
+ .ins-c-menu__show--more {
69
+ background: none;
70
+ .pf-c-menu__item-text{ color: var(--pf-global--active-color--100); }
71
+ }
81
72
  }
82
73
 
83
74
  @media only screen and (max-width: 768px) {
84
- .ins-c-conditional-filter {
85
- &.mobile {
86
- visibility: visible !important;
87
- display: grid !important;
88
- }
89
- &.desktop {
90
- visibility: hidden;
91
- display: none;
92
- }
75
+ .ins-c-conditional-filter {
76
+ &.mobile {
77
+ visibility: visible !important;
78
+ display: grid !important;
79
+ }
80
+ &.desktop {
81
+ visibility: hidden;
82
+ display: none;
93
83
  }
84
+ }
94
85
  }
95
86
 
96
87
  @media only screen and (max-width: 884px) {
97
- .ins-c-conditional-filter {
98
- .ins-c-conditional-filter__group {
99
- .pf-c-dropdown__toggle-text {
100
- width: auto;
101
- }
102
- .ins-c-conditional-filter__value-selector {
103
- display: none;
104
- }
105
- .ins-c-conditional-filter__group {
106
- width: initial;
107
- }
108
- }
88
+ .ins-c-conditional-filter {
89
+ .ins-c-conditional-filter__group {
90
+ .pf-c-dropdown__toggle-text {
91
+ width: auto;
92
+ }
93
+ .ins-c-conditional-filter__value-selector {
94
+ display: none;
95
+ }
96
+ .ins-c-conditional-filter__group {
97
+ width: initial;
98
+ }
109
99
  }
100
+ }
110
101
  }
@@ -3,8 +3,8 @@
3
3
  .ins-c-inventory__culling-danger { color: var(--pf-global--danger-color--100); }
4
4
 
5
5
  .ins-c-inventory__culling-danger, .ins-c-inventory__culling-warning {
6
- font-weight: var(--pf-global--FontWeight--bold);
7
- svg {
8
- margin-right: var(--pf-global--spacer--sm);
9
- }
6
+ font-weight: var(--pf-global--FontWeight--bold);
7
+ svg {
8
+ margin-right: var(--pf-global--spacer--sm);
9
+ }
10
10
  }
@@ -1,7 +1,7 @@
1
1
  import { DropdownProps } from '@patternfly/react-core';
2
2
  import React from 'react';
3
- export interface DownloadButtonProps extends Omit<DropdownProps, 'onSelect'> {
4
- extraItems?: any[];
3
+ export interface DownloadButtonProps extends Omit<DropdownProps, 'onSelect' | 'toggle' | 'dropdownItems'> {
4
+ extraItems?: React.ReactElement[];
5
5
  tooltipText?: React.ReactNode;
6
6
  onSelect?: (event: MouseEvent | React.MouseEvent<any, MouseEvent> | React.KeyboardEvent<Element>, format: 'csv' | 'json') => void;
7
7
  isDisabled?: boolean;
@@ -61,7 +61,7 @@ var DownloadButton = function (_a) {
61
61
  var conditionallyTooltip = function (children) {
62
62
  return react_1.default.createElement(react_1.default.Fragment, null, tooltipText ? react_1.default.createElement(react_core_1.Tooltip, { content: tooltipText }, children) : children);
63
63
  };
64
- return (react_1.default.createElement(react_1.default.Fragment, null, conditionallyTooltip(react_1.default.createElement(react_core_1.Dropdown, __assign({}, props, { isPlain: true, onSelect: internalOnSelect, toggle: react_1.default.createElement(react_core_1.DropdownToggle, { "aria-label": "Export", toggleIndicator: null, onToggle: onToggle, isDisabled: isDisabled, ouiaId: "Export" },
64
+ return (react_1.default.createElement(react_1.default.Fragment, null, conditionallyTooltip(react_1.default.createElement(react_core_1.Dropdown, __assign({ isPlain: true }, props, { onSelect: internalOnSelect, toggle: react_1.default.createElement(react_core_1.DropdownToggle, { "aria-label": "Export", toggleIndicator: null, onToggle: onToggle, isDisabled: isDisabled, ouiaId: "Export" },
65
65
  react_1.default.createElement(react_icons_1.ExportIcon, { size: "sm" })), isOpen: isOpen, ouiaId: "Export", dropdownItems: __spreadArray([
66
66
  react_1.default.createElement(react_core_1.DropdownItem, { key: "download-csv", ouiaId: "DownloadCSV", component: "button", onClick: function (event) { return onSelect(event, 'csv'); }, isDisabled: isDisabled }, "Export to CSV"),
67
67
  react_1.default.createElement(react_core_1.DropdownItem, { key: "download-json", ouiaId: "DownloadJSON", component: "button", onClick: function (event) { return onSelect(event, 'json'); }, isDisabled: isDisabled }, "Export to JSON")
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var react_1 = __importDefault(require("react"));
7
+ var react_2 = require("@cypress/react");
8
+ var __1 = require("..");
9
+ describe('DownloadButton component', function () {
10
+ beforeEach(function () {
11
+ (0, react_2.mount)(react_1.default.createElement(__1.DownloadButton, null));
12
+ });
13
+ it('renders the dropdown', function () {
14
+ cy.get('.pf-c-dropdown');
15
+ });
16
+ it('on download callback fired', function () {
17
+ var onSelectSpy = cy.spy().as('onSelectSpy');
18
+ (0, react_2.mount)(react_1.default.createElement(__1.DownloadButton, { onSelect: onSelectSpy }));
19
+ cy.get('div[data-ouia-component-id="Export"] > button').click();
20
+ cy.get('div[data-ouia-component-id="Export"] > ul > li > button[data-ouia-component-id="DownloadCSV"]').click();
21
+ cy.get('@onSelectSpy').should('have.been.called.with', 'csv');
22
+ });
23
+ });
24
+ //# sourceMappingURL=DownloadButton.spec.ct.js.map
@@ -1,11 +1,11 @@
1
1
  @import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
2
2
 
3
3
  .ins-c-table__empty {
4
- background: var(--pf-global--Color--light-100);
5
- border-bottom: 1px solid var(--pf-global--BorderColor--light-200);
6
- @include rem('padding', 20px);
7
- &.is-centered {
8
- display: flex;
9
- justify-content: center;
10
- }
4
+ background: var(--pf-global--Color--light-100);
5
+ border-bottom: 1px solid var(--pf-global--BorderColor--light-200);
6
+ @include rem('padding', 20px);
7
+ &.is-centered {
8
+ display: flex;
9
+ justify-content: center;
10
+ }
11
11
  }
@@ -1,5 +1,5 @@
1
1
  .ins-c-error-state.pf-c-empty-state {
2
- .pf-c-empty-state__icon {
3
- fill: var(--pf-global--danger-color--100);
4
- }
2
+ .pf-c-empty-state__icon {
3
+ fill: var(--pf-global--danger-color--100);
4
+ }
5
5
  }
@@ -1,15 +1,14 @@
1
1
  .ins-c-chip-filters .ins-c-chip-group__plain.pf-m-toolbar > li:not(.pf-m-overflow) {
2
- background: none;
3
- padding: 0;
4
- background-color: initial;
5
-
6
- h4 {
7
- display: none;
8
- }
2
+ background: none;
3
+ padding: 0;
4
+ background-color: initial;
5
+ h4 {
6
+ display: none;
7
+ }
9
8
  }
10
9
 
11
10
  .ins-c-chip-filters {
12
- .pf-c-chip-group:not(:last-child) {
13
- margin-right: var(--pf-global--spacer--sm);
14
- }
11
+ .pf-c-chip-group:not(:last-child) {
12
+ margin-right: var(--pf-global--spacer--sm);
13
+ }
15
14
  }
@@ -1,21 +1,20 @@
1
1
  .ins-c-tagfilter {
2
- .ins-c-tagfilter__option label {
3
- display: flex;
4
- width: 100%;
5
-
6
- .ins-c-tagfilter__option-value {
7
- max-width: 12.5rem;
8
- overflow: hidden;
9
- text-overflow: ellipsis;
10
- }
11
- .pf-c-badge {
12
- margin-left: auto;
13
- padding-top: 0.2;
14
- }
2
+ .ins-c-tagfilter__option label {
3
+ display: flex;
4
+ width: 100%;
5
+ .ins-c-tagfilter__option-value {
6
+ max-width: 12.5rem;
7
+ overflow: hidden;
8
+ text-overflow: ellipsis;
9
+ }
10
+ .pf-c-badge {
11
+ margin-left: auto;
12
+ padding-top: 0.2;
15
13
  }
16
- .pf-c-select__menu-group-title:empty { display: none; }
14
+ }
15
+ .pf-c-select__menu-group-title:empty { display: none; }
17
16
 
18
- .pf-c-select__menu > div { padding-top: 0; }
17
+ .pf-c-select__menu > div { padding-top: 0; }
19
18
 
20
- &.pf-m-expanded { width: 18.75rem !important; }
19
+ &.pf-m-expanded { width: 18.75rem !important; }
21
20
  }
@@ -1,19 +1,21 @@
1
1
  .pf-c-label {
2
- --ins-c-label--gold-bg: #fdf7e7;
3
- --inc-c-label--content-gold: var(--pf-global--palette--gold-700);
4
- --inc-c-label--icon-gold: #F4C145;
5
- --inc-c-label--border-gold: var(--pf-global--palette--gold-100)
2
+ --ins-c-label--gold-bg: #fdf7e7;
3
+ --inc-c-label--content-gold: var(--pf-global--palette--gold-700);
4
+ --inc-c-label--icon-gold: #F4C145;
5
+ --inc-c-label--border-gold: var(--pf-global--palette--gold-100)
6
6
  }
7
7
 
8
8
  .ins-c-label-2.pf-c-label {
9
- background-color: var(--ins-c-label--gold-bg);
10
- .pf-c-label__content {
11
- color: var(--inc-c-label--content-gold);
12
- .pf-c-label__icon {
13
- color: var(--inc-c-label--icon-gold);
14
- }
9
+ background-color: var(--ins-c-label--gold-bg);
10
+ .pf-c-label__content {
11
+ color: var(--inc-c-label--content-gold);
12
+ .pf-c-label__icon {
13
+ color: var(--inc-c-label--icon-gold);
15
14
  }
15
+ }
16
16
  }
17
- .ins-c-label-2.pf-c-label {.pf-c-label__content::before {
17
+ .ins-c-label-2.pf-c-label {
18
+ .pf-c-label__content::before {
18
19
  border: 1px solid var(--inc-c-label--border-gold);
19
- }}
20
+ }
21
+ }
@@ -1,11 +1,7 @@
1
1
  .Icon404 {
2
- height: 150px;
3
-
4
- .cls-1 { fill:#fff; }
5
-
6
- .cls-1,.cls-3{ fill-rule:evenodd;}
7
-
8
- .cls-2{ opacity:0.5;}
9
-
10
- .cls-4{ mask:url(#mask); }
2
+ height: 150px;
3
+ .cls-1 { fill:#fff; }
4
+ .cls-1,.cls-3{ fill-rule:evenodd;}
5
+ .cls-2{ opacity:0.5;}
6
+ .cls-4{ mask:url(#mask); }
11
7
  }
@@ -1,3 +1,3 @@
1
1
  export { default } from './LongTextTooltip';
2
- export { default as LongTextTooltip } from './LongTextTooltip.js';
2
+ export { default as LongTextTooltip } from './LongTextTooltip';
3
3
  export * from './LongTextTooltip';
@@ -16,7 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.LongTextTooltip = exports.default = void 0;
17
17
  var LongTextTooltip_1 = require("./LongTextTooltip");
18
18
  Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(LongTextTooltip_1).default; } });
19
- var LongTextTooltip_js_1 = require("./LongTextTooltip.js");
20
- Object.defineProperty(exports, "LongTextTooltip", { enumerable: true, get: function () { return __importDefault(LongTextTooltip_js_1).default; } });
19
+ var LongTextTooltip_2 = require("./LongTextTooltip");
20
+ Object.defineProperty(exports, "LongTextTooltip", { enumerable: true, get: function () { return __importDefault(LongTextTooltip_2).default; } });
21
21
  __exportStar(require("./LongTextTooltip"), exports);
22
22
  //# sourceMappingURL=index.js.map
package/Main/main.scss CHANGED
@@ -1,3 +1,3 @@
1
1
  .pf-l-page__main .pf-l-page__main-section.pf-m-dark:not(:first-child) {
2
- background: var(--pf-global--BackgroundColor--dark-transparent-100);
2
+ background: var(--pf-global--BackgroundColor--dark-transparent-100);
3
3
  }
@@ -1,7 +1,7 @@
1
1
  .ins-c-empty-state__maintenance {
2
- .pf-c-empty-state__body {
3
- color: var(--pf-global--Color--100);
4
- }
5
- .pf-c-empty-state__icon { fill: #EE0000; } // This is Red Hat's red, not Patternfly's red.
6
- .pf-c-title { font-weight: 500; }
2
+ .pf-c-empty-state__body {
3
+ color: var(--pf-global--Color--100);
4
+ }
5
+ .pf-c-empty-state__icon { fill: #EE0000; } // This is Red Hat's red, not Patternfly's red.
6
+ .pf-c-title { font-weight: 500; }
7
7
  }
@@ -1,7 +1,7 @@
1
1
  .ins-c-not-authorized {
2
- .pf-c-title {
3
- max-width: 540px;
4
- margin-left: auto;
5
- margin-right: auto;
6
- }
2
+ .pf-c-title {
3
+ max-width: 540px;
4
+ margin-left: auto;
5
+ margin-right: auto;
6
+ }
7
7
  }
@@ -1,12 +1,12 @@
1
1
  @import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
2
2
 
3
3
  .pf-l-page__main-section.pf-l-page-header.pf-m-dark-200 {
4
- h1.pf-c-title.pf-m-2xl, * { color: #fff; }
4
+ h1.pf-c-title.pf-m-2xl, * { color: #fff; }
5
5
  }
6
6
 
7
7
  .pf-l-page__main-section.pf-l-page-header {
8
- .pf-c-breadcrumb {
9
- display: block;
10
- @include rem('margin-bottom', 15px);
11
- }
8
+ .pf-c-breadcrumb {
9
+ display: block;
10
+ @include rem('margin-bottom', 15px);
11
+ }
12
12
  }
@@ -3,13 +3,12 @@
3
3
  @import '~@patternfly/patternfly/components/OptionsMenu/options-menu.scss';
4
4
 
5
5
  .ins-c-pagination-next .pf-c-options-menu {
6
- .pf-c-dropdown__menu .pf-c-dropdown__menu-item {
7
- display: flex;
8
-
9
- .pf-c-options-menu__menu-item-icon {
10
- padding-left: 0;
11
- }
6
+ .pf-c-dropdown__menu .pf-c-dropdown__menu-item {
7
+ display: flex;
8
+ .pf-c-options-menu__menu-item-icon {
9
+ padding-left: 0;
12
10
  }
11
+ }
13
12
  }
14
13
 
15
14
  .pf-c-pagination .pf-c-pagination__nav .pf-c-pagination__nav-page-select input { width: 75px; }
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { PaginationProps, ButtonProps } from '@patternfly/react-core';
3
3
  import { ActionsProps } from './Actions';
4
4
  import { BulkSelectProps } from '../BulkSelect';
5
+ import { ConditionalFilterProps } from '../ConditionalFilter';
5
6
  import { DownloadButtonProps } from '../DownloadButton';
6
7
  import { FilterChipsProps } from '../FilterChips';
7
8
  import { SortByProps } from './SortBy';
@@ -15,9 +16,9 @@ export declare type PrimaryToolbarExpandAllObject = {
15
16
  export interface PrimaryToolbarProps {
16
17
  id?: string | number;
17
18
  className?: string;
18
- toggleIsExpanded?: () => 'bla';
19
+ toggleIsExpanded?: () => void;
19
20
  bulkSelect?: BulkSelectProps;
20
- filterConfig?: any;
21
+ filterConfig?: ConditionalFilterProps;
21
22
  dedicatedAction?: React.ReactNode;
22
23
  pagination?: Omit<PaginationProps, 'ref'>;
23
24
  sortByConfig?: SortByProps;
@@ -48,7 +48,7 @@ function isPrimaryToolbarExpandAllObject(node) {
48
48
  return !react_1.default.isValidElement(node);
49
49
  }
50
50
  var PrimaryToolbar = function (_a) {
51
- var id = _a.id, className = _a.className, toggleIsExpanded = _a.toggleIsExpanded, bulkSelect = _a.bulkSelect, filterConfig = _a.filterConfig, dedicatedAction = _a.dedicatedAction, actionsConfig = _a.actionsConfig, sortByConfig = _a.sortByConfig, pagination = _a.pagination, activeFiltersConfig = _a.activeFiltersConfig, children = _a.children, exportConfig = _a.exportConfig, expandAll = _a.expandAll, useMobileLayout = _a.useMobileLayout, props = __rest(_a, ["id", "className", "toggleIsExpanded", "bulkSelect", "filterConfig", "dedicatedAction", "actionsConfig", "sortByConfig", "pagination", "activeFiltersConfig", "children", "exportConfig", "expandAll", "useMobileLayout"]);
51
+ var id = _a.id, className = _a.className, _b = _a.toggleIsExpanded, toggleIsExpanded = _b === void 0 ? function () { return undefined; } : _b, bulkSelect = _a.bulkSelect, filterConfig = _a.filterConfig, dedicatedAction = _a.dedicatedAction, actionsConfig = _a.actionsConfig, sortByConfig = _a.sortByConfig, pagination = _a.pagination, activeFiltersConfig = _a.activeFiltersConfig, children = _a.children, exportConfig = _a.exportConfig, expandAll = _a.expandAll, useMobileLayout = _a.useMobileLayout, props = __rest(_a, ["id", "className", "toggleIsExpanded", "bulkSelect", "filterConfig", "dedicatedAction", "actionsConfig", "sortByConfig", "pagination", "activeFiltersConfig", "children", "exportConfig", "expandAll", "useMobileLayout"]);
52
52
  var overflowActions = __spreadArray([], (sortByConfig
53
53
  ? [
54
54
  {