@openshift-assisted/ui-lib 2.46.2 → 2.47.0

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 (393) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.d.ts.map +1 -1
  2. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
  4. package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
  5. package/build/@types/cim/components/common/ResourceAlerts.d.ts.map +1 -1
  6. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +1 -0
  7. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
  8. package/build/@types/common/api/assisted-service/BundleAPI.d.ts +2 -2
  9. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts +25 -25
  10. package/build/@types/common/api/assisted-service/ComponentVersionsAPI.d.ts +1 -1
  11. package/build/@types/common/api/assisted-service/EventsAPI.d.ts +1 -1
  12. package/build/@types/common/api/assisted-service/HostsAPI.d.ts +6 -6
  13. package/build/@types/common/api/assisted-service/InfraEnvsAPI.d.ts +7 -7
  14. package/build/@types/common/api/assisted-service/ManagedDomainsAPI.d.ts +1 -1
  15. package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts +2 -2
  16. package/build/@types/common/api/assisted-service/OperatorsAPI.d.ts +1 -1
  17. package/build/@types/common/api/assisted-service/SupportedOpenshiftVersionsAPI.d.ts +1 -1
  18. package/build/@types/common/api/assisted-service/UISettingsAPI.d.ts +2 -2
  19. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts +2 -1
  20. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  21. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
  22. package/build/@types/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.d.ts.map +1 -1
  23. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.d.ts.map +1 -1
  24. package/build/@types/common/components/clusterConfiguration/DownloadIpxeScript.d.ts.map +1 -1
  25. package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts.map +1 -1
  26. package/build/@types/common/components/clusterConfiguration/DownloadIsoModal.d.ts.map +1 -1
  27. package/build/@types/common/components/clusterConfiguration/OcmTNADisclaimer.d.ts.map +1 -0
  28. package/build/@types/common/components/clusterConfiguration/utils.d.ts +3 -1
  29. package/build/@types/common/components/clusterConfiguration/utils.d.ts.map +1 -1
  30. package/build/@types/common/components/clusterConfiguration/utils.test.d.ts +2 -0
  31. package/build/@types/common/components/clusterConfiguration/utils.test.d.ts.map +1 -0
  32. package/build/@types/common/components/clusterDetail/ConsoleModal.d.ts.map +1 -1
  33. package/build/@types/common/components/clusterDetail/FinalizingProgress.d.ts.map +1 -1
  34. package/build/@types/common/components/clusterWizard/ClusterWizardStepHeader.d.ts.map +1 -1
  35. package/build/@types/common/components/hosts/AITableMemo.d.ts.map +1 -1
  36. package/build/@types/common/components/hosts/AdditionalNTPSourcesDialog.d.ts.map +1 -1
  37. package/build/@types/common/components/hosts/EditHostForm.d.ts.map +1 -1
  38. package/build/@types/common/components/hosts/EditHostModal.d.ts.map +1 -1
  39. package/build/@types/common/components/hosts/HostRequirements.d.ts.map +1 -1
  40. package/build/@types/common/components/hosts/MassChangeHostnameModal.d.ts.map +1 -1
  41. package/build/@types/common/components/hosts/MassDeleteHostModal.d.ts.map +1 -1
  42. package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
  43. package/build/@types/common/components/storage/StorageUtils.d.ts.map +1 -1
  44. package/build/@types/common/components/ui/ConfirmationModal.d.ts +2 -3
  45. package/build/@types/common/components/ui/ConfirmationModal.d.ts.map +1 -1
  46. package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts.map +1 -1
  47. package/build/@types/common/components/ui/SectionTitle.d.ts.map +1 -1
  48. package/build/@types/common/components/ui/StaticTextField.d.ts.map +1 -1
  49. package/build/@types/common/components/ui/eventsModal.d.ts.map +1 -1
  50. package/build/@types/common/components/ui/formik/AlertFormikError.d.ts.map +1 -1
  51. package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
  52. package/build/@types/common/components/ui/formik/TextAreaField.d.ts.map +1 -1
  53. package/build/@types/common/components/ui/formik/validationSchemas.d.ts +1 -1
  54. package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
  55. package/build/@types/common/config/constants.d.ts.map +1 -1
  56. package/build/@types/ocm/components/AddHosts/InventoryAddHost.d.ts.map +1 -1
  57. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.d.ts.map +1 -1
  58. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2Wizard.d.ts.map +1 -1
  59. package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageModal.d.ts.map +1 -1
  60. package/build/@types/ocm/components/clusterConfiguration/HostInventory.d.ts.map +1 -1
  61. package/build/@types/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.d.ts.map +1 -1
  62. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.d.ts.map +1 -1
  63. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.d.ts.map +1 -1
  64. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.d.ts.map +1 -1
  65. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts +2 -1
  66. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts.map +1 -1
  67. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
  68. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  69. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.d.ts.map +1 -1
  70. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.d.ts +2 -1
  71. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.d.ts.map +1 -1
  72. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.d.ts.map +1 -1
  73. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts +1 -1
  74. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
  75. package/build/@types/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.d.ts.map +1 -1
  76. package/build/@types/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.d.ts.map +1 -1
  77. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.d.ts.map +1 -1
  78. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.d.ts.map +1 -1
  79. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.d.ts.map +1 -1
  80. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.d.ts.map +1 -1
  81. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.d.ts.map +1 -1
  82. package/build/@types/ocm/components/clusterDetail/CancelInstallationModal.d.ts.map +1 -1
  83. package/build/@types/ocm/components/clusterDetail/ClusterDetail.d.ts.map +1 -1
  84. package/build/@types/ocm/components/clusterDetail/ClusterDetailStatusMessages.d.ts.map +1 -1
  85. package/build/@types/ocm/components/clusterDetail/ClusterInstallationError.d.ts.map +1 -1
  86. package/build/@types/ocm/components/clusterDetail/ClusterPollingErrorModal.d.ts.map +1 -1
  87. package/build/@types/ocm/components/clusterDetail/ClusterProperties.d.ts.map +1 -1
  88. package/build/@types/ocm/components/clusterDetail/ClusterProperties.test.d.ts +2 -0
  89. package/build/@types/ocm/components/clusterDetail/ClusterProperties.test.d.ts.map +1 -0
  90. package/build/@types/ocm/components/clusterDetail/ClusterUpdateErrorModal.d.ts.map +1 -1
  91. package/build/@types/ocm/components/clusterDetail/OpenShiftVersionDetail.d.ts.map +1 -1
  92. package/build/@types/ocm/components/clusterDetail/ProgressBarAlerts.d.ts.map +1 -1
  93. package/build/@types/ocm/components/clusterDetail/ResetClusterModal.d.ts.map +1 -1
  94. package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts.map +1 -1
  95. package/build/@types/ocm/components/clusterWizard/disconnected/ReviewStep.d.ts.map +1 -1
  96. package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
  97. package/build/@types/ocm/components/clusters/Clusters.d.ts.map +1 -1
  98. package/build/@types/ocm/components/clusters/DeleteClusterModal.d.ts.map +1 -1
  99. package/build/@types/ocm/components/hosts/DeleteHostModal.d.ts.map +1 -1
  100. package/build/@types/ocm/components/hosts/HostRequirementsContent.d.ts.map +1 -1
  101. package/build/@types/ocm/components/hosts/ResetHostModal.d.ts.map +1 -1
  102. package/build/@types/ocm/components/hosts/UpdateDay2ApiVipForm.d.ts.map +1 -1
  103. package/build/@types/ocm/components/hosts/UpdateDay2ApiVipModal.d.ts.map +1 -1
  104. package/build/@types/ocm/components/ui/InfoLinkWithModal.d.ts +1 -2
  105. package/build/@types/ocm/components/ui/InfoLinkWithModal.d.ts.map +1 -1
  106. package/build/@types/ocm/services/ClustersService.d.ts +5 -5
  107. package/build/@types/ocm/services/HostsService.d.ts +11 -11
  108. package/build/@types/ocm/services/InfraEnvsService.d.ts +2 -2
  109. package/build/@types/ocm/services/UISettingsService.d.ts +1 -1
  110. package/build/@types/ocm/store/slices/infra-envs/thunks.d.ts +1 -1
  111. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js +2 -3
  112. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js.map +1 -1
  113. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js +4 -6
  114. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js.map +1 -1
  115. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +9 -5
  116. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
  117. package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +1 -2
  118. package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js.map +1 -1
  119. package/build/cjs/cim/components/common/ResourceAlerts.js +15 -16
  120. package/build/cjs/cim/components/common/ResourceAlerts.js.map +1 -1
  121. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +23 -6
  122. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  123. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +2 -3
  124. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
  125. package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js +1 -1
  126. package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js.map +1 -1
  127. package/build/cjs/common/components/clusterConfiguration/DiscoveryIpxeInstructions.js +1 -1
  128. package/build/cjs/common/components/clusterConfiguration/DiscoveryIpxeInstructions.js.map +1 -1
  129. package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js +7 -6
  130. package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
  131. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js +1 -2
  132. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js.map +1 -1
  133. package/build/cjs/common/components/clusterConfiguration/DownloadIpxeScript.js +2 -3
  134. package/build/cjs/common/components/clusterConfiguration/DownloadIpxeScript.js.map +1 -1
  135. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +5 -6
  136. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
  137. package/build/cjs/common/components/clusterConfiguration/DownloadIsoModal.js +3 -2
  138. package/build/cjs/common/components/clusterConfiguration/DownloadIsoModal.js.map +1 -1
  139. package/build/cjs/{ocm → common}/components/clusterConfiguration/OcmTNADisclaimer.js +1 -1
  140. package/build/cjs/common/components/clusterConfiguration/OcmTNADisclaimer.js.map +1 -0
  141. package/build/cjs/common/components/clusterConfiguration/utils.js +23 -12
  142. package/build/cjs/common/components/clusterConfiguration/utils.js.map +1 -1
  143. package/build/cjs/common/components/clusterConfiguration/utils.test.js +242 -0
  144. package/build/cjs/common/components/clusterConfiguration/utils.test.js.map +1 -0
  145. package/build/cjs/common/components/clusterDetail/ConsoleModal.js +5 -3
  146. package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
  147. package/build/cjs/common/components/clusterDetail/FinalizingProgress.js +1 -2
  148. package/build/cjs/common/components/clusterDetail/FinalizingProgress.js.map +1 -1
  149. package/build/cjs/common/components/clusterWizard/ClusterWizardStepHeader.js +1 -2
  150. package/build/cjs/common/components/clusterWizard/ClusterWizardStepHeader.js.map +1 -1
  151. package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +1 -1
  152. package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
  153. package/build/cjs/common/components/clusterWizard/networkingSteps/UserManagedNetworkingTextContent.js +1 -1
  154. package/build/cjs/common/components/clusterWizard/networkingSteps/UserManagedNetworkingTextContent.js.map +1 -1
  155. package/build/cjs/common/components/hosts/AITableMemo.js +2 -1
  156. package/build/cjs/common/components/hosts/AITableMemo.js.map +1 -1
  157. package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js +4 -4
  158. package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js.map +1 -1
  159. package/build/cjs/common/components/hosts/EditHostForm.js +2 -3
  160. package/build/cjs/common/components/hosts/EditHostForm.js.map +1 -1
  161. package/build/cjs/common/components/hosts/EditHostModal.js +3 -2
  162. package/build/cjs/common/components/hosts/EditHostModal.js.map +1 -1
  163. package/build/cjs/common/components/hosts/HostRequirements.js +1 -2
  164. package/build/cjs/common/components/hosts/HostRequirements.js.map +1 -1
  165. package/build/cjs/common/components/hosts/HostStatus.js +2 -2
  166. package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
  167. package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +4 -4
  168. package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
  169. package/build/cjs/common/components/hosts/MassDeleteHostModal.js +4 -4
  170. package/build/cjs/common/components/hosts/MassDeleteHostModal.js.map +1 -1
  171. package/build/cjs/common/components/storage/DisksTable.js +1 -2
  172. package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
  173. package/build/cjs/common/components/storage/StorageUtils.js +1 -2
  174. package/build/cjs/common/components/storage/StorageUtils.js.map +1 -1
  175. package/build/cjs/common/components/ui/ConfirmationModal.js +5 -4
  176. package/build/cjs/common/components/ui/ConfirmationModal.js.map +1 -1
  177. package/build/cjs/common/components/ui/OpenShiftVersionModal.js +7 -6
  178. package/build/cjs/common/components/ui/OpenShiftVersionModal.js.map +1 -1
  179. package/build/cjs/common/components/ui/SectionTitle.js +1 -2
  180. package/build/cjs/common/components/ui/SectionTitle.js.map +1 -1
  181. package/build/cjs/common/components/ui/StaticTextField.js +1 -2
  182. package/build/cjs/common/components/ui/StaticTextField.js.map +1 -1
  183. package/build/cjs/common/components/ui/eventsModal.js +9 -9
  184. package/build/cjs/common/components/ui/eventsModal.js.map +1 -1
  185. package/build/cjs/common/components/ui/formik/AlertFormikError.js +1 -2
  186. package/build/cjs/common/components/ui/formik/AlertFormikError.js.map +1 -1
  187. package/build/cjs/common/components/ui/formik/RichInputField.css +0 -7
  188. package/build/cjs/common/components/ui/formik/RichInputField.js +1 -1
  189. package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
  190. package/build/cjs/common/components/ui/formik/TextAreaField.js +2 -1
  191. package/build/cjs/common/components/ui/formik/TextAreaField.js.map +1 -1
  192. package/build/cjs/common/components/ui/formik/validationSchemas.js +13 -3
  193. package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
  194. package/build/cjs/common/config/constants.js +5 -10
  195. package/build/cjs/common/config/constants.js.map +1 -1
  196. package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js +3 -4
  197. package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js.map +1 -1
  198. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.js +1 -2
  199. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.js.map +1 -1
  200. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2Wizard.js +1 -2
  201. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2Wizard.js.map +1 -1
  202. package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js +1 -1
  203. package/build/cjs/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  204. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js +2 -2
  205. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js.map +1 -1
  206. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js +3 -5
  207. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js.map +1 -1
  208. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js +11 -9
  209. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
  210. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.js +7 -7
  211. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.js.map +1 -1
  212. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.js +0 -1
  213. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.js.map +1 -1
  214. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js +60 -18
  215. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js.map +1 -1
  216. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +49 -12
  217. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +1 -1
  218. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +3 -3
  219. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
  220. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +2 -3
  221. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  222. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js +67 -7
  223. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js.map +1 -1
  224. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js +31 -6
  225. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js.map +1 -1
  226. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js +7 -16
  227. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js.map +1 -1
  228. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +8 -8
  229. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
  230. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js +26 -8
  231. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js.map +1 -1
  232. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js +5 -5
  233. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js.map +1 -1
  234. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.js +1 -2
  235. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.js.map +1 -1
  236. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.js +4 -4
  237. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.js.map +1 -1
  238. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js +1 -2
  239. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js.map +1 -1
  240. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js +1 -1
  241. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js.map +1 -1
  242. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.js +6 -7
  243. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.js.map +1 -1
  244. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js +6 -6
  245. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js.map +1 -1
  246. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js +1 -2
  247. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
  248. package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js +17 -14
  249. package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js.map +1 -1
  250. package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js +4 -5
  251. package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js.map +1 -1
  252. package/build/cjs/ocm/components/clusterDetail/ClusterPollingErrorModal.js +5 -4
  253. package/build/cjs/ocm/components/clusterDetail/ClusterPollingErrorModal.js.map +1 -1
  254. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js +3 -4
  255. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js.map +1 -1
  256. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.test.js +180 -0
  257. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.test.js.map +1 -0
  258. package/build/cjs/ocm/components/clusterDetail/ClusterUpdateErrorModal.js +5 -4
  259. package/build/cjs/ocm/components/clusterDetail/ClusterUpdateErrorModal.js.map +1 -1
  260. package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js +1 -2
  261. package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js.map +1 -1
  262. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js +4 -5
  263. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
  264. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +5 -3
  265. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
  266. package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js +1 -2
  267. package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js.map +1 -1
  268. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js +1 -2
  269. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js.map +1 -1
  270. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +1 -1
  271. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -1
  272. package/build/cjs/ocm/components/clusters/ClusterPage.js +1 -2
  273. package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
  274. package/build/cjs/ocm/components/clusters/Clusters.js +1 -2
  275. package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
  276. package/build/cjs/ocm/components/clusters/DeleteClusterModal.js +8 -7
  277. package/build/cjs/ocm/components/clusters/DeleteClusterModal.js.map +1 -1
  278. package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +1 -1
  279. package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map +1 -1
  280. package/build/cjs/ocm/components/hosts/DeleteHostModal.js +5 -4
  281. package/build/cjs/ocm/components/hosts/DeleteHostModal.js.map +1 -1
  282. package/build/cjs/ocm/components/hosts/HostRequirementsContent.js +1 -2
  283. package/build/cjs/ocm/components/hosts/HostRequirementsContent.js.map +1 -1
  284. package/build/cjs/ocm/components/hosts/ResetHostModal.js +8 -7
  285. package/build/cjs/ocm/components/hosts/ResetHostModal.js.map +1 -1
  286. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js +2 -3
  287. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js.map +1 -1
  288. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipModal.js +3 -2
  289. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipModal.js.map +1 -1
  290. package/build/cjs/ocm/components/ui/InfoLinkWithModal.js +5 -4
  291. package/build/cjs/ocm/components/ui/InfoLinkWithModal.js.map +1 -1
  292. package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx +3 -5
  293. package/lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.tsx +8 -12
  294. package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +17 -35
  295. package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +1 -5
  296. package/lib/cim/components/common/ResourceAlerts.tsx +26 -28
  297. package/lib/cim/types/k8s/agent-cluster-install.ts +1 -0
  298. package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +61 -31
  299. package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +14 -6
  300. package/lib/common/components/clusterConfiguration/DiscoveryInstructions.tsx +2 -2
  301. package/lib/common/components/clusterConfiguration/DiscoveryIpxeInstructions.tsx +2 -2
  302. package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +15 -12
  303. package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.tsx +1 -3
  304. package/lib/common/components/clusterConfiguration/DownloadIpxeScript.tsx +6 -5
  305. package/lib/common/components/clusterConfiguration/DownloadIso.tsx +13 -7
  306. package/lib/common/components/clusterConfiguration/DownloadIsoModal.tsx +2 -3
  307. package/lib/{ocm → common}/components/clusterConfiguration/OcmTNADisclaimer.tsx +1 -1
  308. package/lib/common/components/clusterConfiguration/utils.test.ts +275 -0
  309. package/lib/common/components/clusterConfiguration/utils.ts +28 -9
  310. package/lib/common/components/clusterDetail/ConsoleModal.tsx +17 -10
  311. package/lib/common/components/clusterDetail/FinalizingProgress.tsx +4 -6
  312. package/lib/common/components/clusterWizard/ClusterWizardStepHeader.tsx +1 -3
  313. package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +1 -1
  314. package/lib/common/components/clusterWizard/networkingSteps/UserManagedNetworkingTextContent.tsx +2 -2
  315. package/lib/common/components/hosts/AITableMemo.tsx +1 -0
  316. package/lib/common/components/hosts/AdditionalNTPSourcesDialog.tsx +11 -10
  317. package/lib/common/components/hosts/EditHostForm.tsx +6 -5
  318. package/lib/common/components/hosts/EditHostModal.tsx +2 -3
  319. package/lib/common/components/hosts/HostRequirements.tsx +2 -4
  320. package/lib/common/components/hosts/HostStatus.tsx +5 -5
  321. package/lib/common/components/hosts/MassChangeHostnameModal.tsx +9 -7
  322. package/lib/common/components/hosts/MassDeleteHostModal.tsx +15 -9
  323. package/lib/common/components/storage/DisksTable.tsx +1 -3
  324. package/lib/common/components/storage/StorageUtils.tsx +1 -3
  325. package/lib/common/components/ui/ConfirmationModal.tsx +18 -15
  326. package/lib/common/components/ui/OpenShiftVersionModal.tsx +32 -22
  327. package/lib/common/components/ui/SectionTitle.tsx +2 -4
  328. package/lib/common/components/ui/StaticTextField.tsx +2 -4
  329. package/lib/common/components/ui/eventsModal.tsx +29 -20
  330. package/lib/common/components/ui/formik/AlertFormikError.tsx +8 -10
  331. package/lib/common/components/ui/formik/RichInputField.css +0 -7
  332. package/lib/common/components/ui/formik/RichInputField.tsx +2 -1
  333. package/lib/common/components/ui/formik/TextAreaField.tsx +13 -4
  334. package/lib/common/components/ui/formik/_validationSchemas.test.ts +82 -0
  335. package/lib/common/components/ui/formik/validationSchemas.ts +16 -10
  336. package/lib/common/config/constants.ts +5 -11
  337. package/lib/ocm/components/AddHosts/InventoryAddHost.tsx +4 -6
  338. package/lib/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.tsx +1 -5
  339. package/lib/ocm/components/AddHosts/day2Wizard/Day2Wizard.tsx +2 -4
  340. package/lib/ocm/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +1 -1
  341. package/lib/ocm/components/clusterConfiguration/DiscoveryImageModal.tsx +6 -7
  342. package/lib/ocm/components/clusterConfiguration/HostInventory.tsx +7 -11
  343. package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +43 -25
  344. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.tsx +22 -16
  345. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.tsx +1 -7
  346. package/lib/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.tsx +64 -18
  347. package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +98 -36
  348. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +3 -2
  349. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +4 -5
  350. package/lib/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.tsx +78 -11
  351. package/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx +79 -11
  352. package/lib/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.tsx +4 -9
  353. package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +17 -6
  354. package/lib/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.tsx +34 -4
  355. package/lib/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.tsx +7 -9
  356. package/lib/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.tsx +1 -3
  357. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.tsx +15 -9
  358. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.tsx +1 -3
  359. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.tsx +10 -3
  360. package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.tsx +6 -8
  361. package/lib/ocm/components/clusterDetail/CancelInstallationModal.tsx +19 -17
  362. package/lib/ocm/components/clusterDetail/ClusterDetail.tsx +1 -3
  363. package/lib/ocm/components/clusterDetail/ClusterDetailStatusMessages.tsx +34 -26
  364. package/lib/ocm/components/clusterDetail/ClusterInstallationError.tsx +5 -7
  365. package/lib/ocm/components/clusterDetail/ClusterPollingErrorModal.tsx +15 -13
  366. package/lib/ocm/components/clusterDetail/ClusterProperties.test.ts +215 -0
  367. package/lib/ocm/components/clusterDetail/ClusterProperties.tsx +3 -5
  368. package/lib/ocm/components/clusterDetail/ClusterUpdateErrorModal.tsx +17 -13
  369. package/lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx +2 -4
  370. package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +5 -7
  371. package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +16 -12
  372. package/lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx +1 -3
  373. package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +1 -3
  374. package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +2 -2
  375. package/lib/ocm/components/clusters/ClusterPage.tsx +1 -3
  376. package/lib/ocm/components/clusters/Clusters.tsx +1 -3
  377. package/lib/ocm/components/clusters/DeleteClusterModal.tsx +16 -11
  378. package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +2 -2
  379. package/lib/ocm/components/hosts/DeleteHostModal.tsx +18 -9
  380. package/lib/ocm/components/hosts/HostRequirementsContent.tsx +3 -5
  381. package/lib/ocm/components/hosts/ResetHostModal.tsx +16 -13
  382. package/lib/ocm/components/hosts/UpdateDay2ApiVipForm.tsx +12 -6
  383. package/lib/ocm/components/hosts/UpdateDay2ApiVipModal.tsx +2 -3
  384. package/lib/ocm/components/ui/InfoLinkWithModal.tsx +16 -13
  385. package/package.json +3 -3
  386. package/build/@types/ocm/components/clusterConfiguration/OcmTNADisclaimer.d.ts.map +0 -1
  387. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/UserManagedNetworkingTextContent.d.ts +0 -6
  388. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/UserManagedNetworkingTextContent.d.ts.map +0 -1
  389. package/build/cjs/ocm/components/clusterConfiguration/OcmTNADisclaimer.js.map +0 -1
  390. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/UserManagedNetworkingTextContent.js +0 -25
  391. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/UserManagedNetworkingTextContent.js.map +0 -1
  392. package/lib/ocm/components/clusterConfiguration/networkConfiguration/UserManagedNetworkingTextContent.tsx +0 -30
  393. /package/build/@types/{ocm → common}/components/clusterConfiguration/OcmTNADisclaimer.d.ts +0 -0
@@ -1,25 +1,29 @@
1
1
  import React from 'react';
2
- import { Button, ButtonVariant } from '@patternfly/react-core';
3
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
2
+ import {
3
+ Button,
4
+ ButtonVariant,
5
+ Modal,
6
+ ModalBody,
7
+ ModalFooter,
8
+ ModalHeader,
9
+ ModalVariant,
10
+ } from '@patternfly/react-core';
4
11
 
5
12
  const ClusterUpdateErrorModal = () => (
6
- <Modal
7
- title="Unable to update cluster"
8
- isOpen
9
- variant={ModalVariant.small}
10
- showClose={false}
11
- titleIconVariant="danger"
12
- actions={[
13
+ <Modal isOpen variant={ModalVariant.small} onClose={undefined}>
14
+ <ModalHeader title="Unable to update cluster" titleIconVariant="danger" />
15
+ <ModalBody>
16
+ The service is down, undergoing maintenance, or experiencing another issue.
17
+ </ModalBody>
18
+ <ModalFooter>
13
19
  <Button
14
20
  key="refresh"
15
21
  variant={ButtonVariant.primary}
16
22
  onClick={() => window.location.reload()}
17
23
  >
18
24
  Refresh page
19
- </Button>,
20
- ]}
21
- >
22
- The service is down, undergoing maintenance, or experiencing another issue.
25
+ </Button>
26
+ </ModalFooter>
23
27
  </Modal>
24
28
  );
25
29
 
@@ -10,10 +10,8 @@ const UnsupportedVersion = ({ version }: { version: string }) => {
10
10
  const { t } = useTranslation();
11
11
 
12
12
  const hint = (
13
- <Content>
14
- <Content component={ContentVariants.p}>
15
- {t('ai:Please note that this version is not production-ready.')}
16
- </Content>
13
+ <Content component={ContentVariants.p}>
14
+ {t('ai:Please note that this version is not production-ready.')}
17
15
  </Content>
18
16
  );
19
17
  return (
@@ -124,13 +124,11 @@ export const HostsInstallationFailed = ({
124
124
  } else {
125
125
  title = 'Initialization failed';
126
126
  message = (
127
- <Content>
128
- <Content component="p">
129
- {toSentence(cluster.statusInfo)}
130
- <br />
131
- Reset the installation process to return to the configuration and try again. Some hosts
132
- may need to be re-registered by rebooting into the Discovery ISO.
133
- </Content>
127
+ <Content component="p">
128
+ {toSentence(cluster.statusInfo)}
129
+ <br />
130
+ Reset the installation process to return to the configuration and try again. Some hosts may
131
+ need to be re-registered by rebooting into the Discovery ISO.
134
132
  </Content>
135
133
  );
136
134
  }
@@ -1,7 +1,15 @@
1
1
  import React from 'react';
2
2
  import { useDispatch } from 'react-redux';
3
- import { Button, ButtonVariant, Content } from '@patternfly/react-core';
4
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
3
+ import {
4
+ Button,
5
+ ButtonVariant,
6
+ Content,
7
+ Modal,
8
+ ModalBody,
9
+ ModalFooter,
10
+ ModalHeader,
11
+ ModalVariant,
12
+ } from '@patternfly/react-core';
5
13
  import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
6
14
 
7
15
  import { getApiErrorMessage, handleApiError } from '../../../common/api';
@@ -64,7 +72,7 @@ const ResetClusterModal: React.FC = () => {
64
72
  }
65
73
 
66
74
  return (
67
- <Content>
75
+ <>
68
76
  <Content component="p">
69
77
  This will reset the installation and return to the cluster configuration. Some hosts may
70
78
  need to be re-registered by rebooting into the Discovery ISO.
@@ -83,7 +91,7 @@ const ResetClusterModal: React.FC = () => {
83
91
  </Content>
84
92
 
85
93
  <Content component="p">Are you sure you want to reset the cluster?</Content>
86
- </Content>
94
+ </>
87
95
  );
88
96
  };
89
97
 
@@ -110,14 +118,10 @@ const ResetClusterModal: React.FC = () => {
110
118
  );
111
119
 
112
120
  return (
113
- <Modal
114
- title="Reset Cluster Installation"
115
- isOpen={isOpen}
116
- variant={ModalVariant.small}
117
- actions={actions}
118
- onClose={handleClose}
119
- >
120
- {getModalContent()}
121
+ <Modal isOpen={isOpen} variant={ModalVariant.small} onClose={handleClose}>
122
+ <ModalHeader title="Reset Cluster Installation" />
123
+ <ModalBody>{getModalContent()}</ModalBody>
124
+ <ModalFooter>{actions}</ModalFooter>
121
125
  </Modal>
122
126
  );
123
127
  };
@@ -36,9 +36,7 @@ const BasicStep = () => {
36
36
  <GridItem>
37
37
  <Split>
38
38
  <SplitItem>
39
- <Content>
40
- <Content component="h2">Basic information</Content>
41
- </Content>
39
+ <Content component="h2">Basic information</Content>
42
40
  </SplitItem>
43
41
  <SplitItem>
44
42
  <DeveloperPreview />
@@ -62,9 +62,7 @@ const ReviewStep = () => {
62
62
  <Grid hasGutter>
63
63
  <Split>
64
64
  <SplitItem>
65
- <Content>
66
- <Content component="h2">Review and download ISO</Content>
67
- </Content>
65
+ <Content component="h2">Review and download ISO</Content>
68
66
  </SplitItem>
69
67
  <SplitItem>
70
68
  <DeveloperPreview />
@@ -11,7 +11,7 @@ import { useFeature } from '../../hooks/use-feature';
11
11
  export const AssistedInstallerHeader = () => {
12
12
  const isSingleClusterFeatureEnabled = useFeature('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
13
13
  return (
14
- <Content>
14
+ <>
15
15
  <Content component="h1" className="pf-v6-u-display-inline">
16
16
  Install OpenShift with the Assisted Installer
17
17
  </Content>
@@ -30,6 +30,6 @@ export const AssistedInstallerHeader = () => {
30
30
  </SplitItem>
31
31
  )}
32
32
  </Split>
33
- </Content>
33
+ </>
34
34
  );
35
35
  };
@@ -91,9 +91,7 @@ const ClusterPageGeneric = ({
91
91
  <>
92
92
  {showBreadcrumbs && <ClusterBreadcrumbs clusterName={cluster.name} />}
93
93
  <PageSection hasBodyWrapper={false}>
94
- <Content>
95
- <Content component="h1">{cluster.name}</Content>
96
- </Content>
94
+ <Content component="h1">{cluster.name}</Content>
97
95
  </PageSection>
98
96
  <PageSection hasBodyWrapper={false} isFilled>
99
97
  <ClusterDetail cluster={cluster} />
@@ -108,9 +108,7 @@ const Clusters = () => {
108
108
  <>
109
109
  <ClusterBreadcrumbs />
110
110
  <PageSection hasBodyWrapper={false}>
111
- <Content>
112
- <Content component="h1">Assisted Clusters</Content>
113
- </Content>
111
+ <Content component="h1">Assisted Clusters</Content>
114
112
  </PageSection>
115
113
  <PageSection hasBodyWrapper={false} isFilled>
116
114
  <Alerts />
@@ -1,6 +1,12 @@
1
1
  import * as React from 'react';
2
- import { Button } from '@patternfly/react-core';
3
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
2
+ import {
3
+ Button,
4
+ Modal,
5
+ ModalBody,
6
+ ModalFooter,
7
+ ModalHeader,
8
+ ModalVariant,
9
+ } from '@patternfly/react-core';
4
10
 
5
11
  type DeleteClusterModalProps = {
6
12
  name: string;
@@ -18,12 +24,13 @@ const DeleteClusterModal: React.FC<DeleteClusterModalProps> = ({
18
24
  isOpen,
19
25
  }) => (
20
26
  <Modal
21
- title="Delete cluster"
22
27
  isOpen={isOpen}
23
- onClose={onClose}
28
+ onClose={isDeleteInProgress ? undefined : () => onClose()}
24
29
  variant={ModalVariant.small}
25
- showClose={!isDeleteInProgress}
26
- actions={[
30
+ >
31
+ <ModalHeader title="Delete cluster" />
32
+ <ModalBody>Are you sure you want to delete cluster {name} ?</ModalBody>
33
+ <ModalFooter>
27
34
  <Button
28
35
  data-testid="delete-cluster-submit"
29
36
  key="confirm"
@@ -33,13 +40,11 @@ const DeleteClusterModal: React.FC<DeleteClusterModalProps> = ({
33
40
  isLoading={isDeleteInProgress}
34
41
  >
35
42
  Delete
36
- </Button>,
43
+ </Button>
37
44
  <Button key="cancel" variant="link" onClick={onClose} isDisabled={isDeleteInProgress}>
38
45
  Cancel
39
- </Button>,
40
- ]}
41
- >
42
- Are you sure you want to delete cluster {name} ?
46
+ </Button>
47
+ </ModalFooter>
43
48
  </Modal>
44
49
  );
45
50
 
@@ -86,7 +86,7 @@ export const LimitedSupportedCluster = ({
86
86
  clusterFeatureSupportLevels: FeatureIdToSupportLevel;
87
87
  showVersionWarning: boolean;
88
88
  }) => (
89
- <Content>
89
+ <>
90
90
  {showVersionWarning && (
91
91
  <Content component="p">
92
92
  <UiIcon size="sm" icon={<InfoCircleIcon color={infoColor.var} />} />
@@ -100,7 +100,7 @@ export const LimitedSupportedCluster = ({
100
100
  <Content component="ul">{getPreviewFeatureList(clusterFeatureSupportLevels)}</Content>
101
101
  </>
102
102
  )}
103
- </Content>
103
+ </>
104
104
  );
105
105
 
106
106
  export const FullySupportedCluster = () => (
@@ -1,6 +1,13 @@
1
1
  import React from 'react';
2
- import { Button, ButtonVariant } from '@patternfly/react-core';
3
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
2
+ import {
3
+ Button,
4
+ ButtonVariant,
5
+ Modal,
6
+ ModalBody,
7
+ ModalFooter,
8
+ ModalHeader,
9
+ ModalVariant,
10
+ } from '@patternfly/react-core';
4
11
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
5
12
 
6
13
  type DeleteHostModalProps = {
@@ -18,8 +25,12 @@ const DeleteHostModal = ({ isOpen, hostname, onClose, onDelete }: DeleteHostModa
18
25
  isOpen={isOpen}
19
26
  onClose={onClose}
20
27
  variant={ModalVariant.small}
21
- titleIconVariant="warning"
22
- actions={[
28
+ >
29
+ <ModalHeader title={t('ai:Remove host?')} titleIconVariant="warning" />
30
+ <ModalBody>
31
+ {t('ai:Host {{hostname}} will be removed', { hostname: hostname || '' })}
32
+ </ModalBody>
33
+ <ModalFooter>
23
34
  <Button
24
35
  data-testid="delete-host-submit"
25
36
  key="confirm"
@@ -27,13 +38,11 @@ const DeleteHostModal = ({ isOpen, hostname, onClose, onDelete }: DeleteHostModa
27
38
  onClick={onDelete}
28
39
  >
29
40
  {t('ai:Remove host')}
30
- </Button>,
41
+ </Button>
31
42
  <Button key="cancel" variant={ButtonVariant.link} onClick={onClose}>
32
43
  {t('ai:Cancel')}
33
- </Button>,
34
- ]}
35
- >
36
- {t('ai:Host {{hostname}} will be removed', { hostname: hostname || '' })}
44
+ </Button>
45
+ </ModalFooter>
37
46
  </Modal>
38
47
  );
39
48
  };
@@ -41,11 +41,9 @@ const HostRequirementsContent = ({
41
41
 
42
42
  if (isAddingHosts) {
43
43
  return (
44
- <Content>
45
- <Content
46
- component={'p'}
47
- >{`Worker hosts must have at least ${contentForWorkerNodes}`}</Content>
48
- </Content>
44
+ <Content
45
+ component={'p'}
46
+ >{`Worker hosts must have at least ${contentForWorkerNodes}`}</Content>
49
47
  );
50
48
  }
51
49
 
@@ -1,6 +1,13 @@
1
1
  import React from 'react';
2
- import { Button, ButtonVariant } from '@patternfly/react-core';
3
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
2
+ import {
3
+ Button,
4
+ ButtonVariant,
5
+ Modal,
6
+ ModalBody,
7
+ ModalFooter,
8
+ ModalHeader,
9
+ ModalVariant,
10
+ } from '@patternfly/react-core';
4
11
 
5
12
  type ResetHostModalProps = {
6
13
  hostname?: string;
@@ -10,12 +17,10 @@ type ResetHostModalProps = {
10
17
  };
11
18
 
12
19
  const ResetHostModal: React.FC<ResetHostModalProps> = ({ isOpen, hostname, onClose, onReset }) => (
13
- <Modal
14
- title="Reset Host"
15
- isOpen={isOpen}
16
- onClose={onClose}
17
- variant={ModalVariant.small}
18
- actions={[
20
+ <Modal isOpen={isOpen} onClose={onClose} variant={ModalVariant.small}>
21
+ <ModalHeader title="Reset Host" />
22
+ <ModalBody>Are you sure you want to reset host{` ${hostname || ''}`} ?</ModalBody>
23
+ <ModalFooter>
19
24
  <Button
20
25
  data-testid="reset-host-submit"
21
26
  key="confirm"
@@ -23,13 +28,11 @@ const ResetHostModal: React.FC<ResetHostModalProps> = ({ isOpen, hostname, onClo
23
28
  onClick={onReset}
24
29
  >
25
30
  Reset
26
- </Button>,
31
+ </Button>
27
32
  <Button key="cancel" variant={ButtonVariant.link} onClick={onClose}>
28
33
  Cancel
29
- </Button>,
30
- ]}
31
- >
32
- Are you sure you want to reset host{` ${hostname || ''}`} ?
34
+ </Button>
35
+ </ModalFooter>
33
36
  </Modal>
34
37
  );
35
38
 
@@ -1,7 +1,13 @@
1
1
  import React from 'react';
2
2
  import * as Yup from 'yup';
3
- import { Button, ButtonVariant, ButtonType, Form } from '@patternfly/react-core';
4
- import { ModalBoxBody, ModalBoxFooter } from '@patternfly/react-core/deprecated';
3
+ import {
4
+ Button,
5
+ ButtonVariant,
6
+ ButtonType,
7
+ Form,
8
+ ModalBody,
9
+ ModalFooter,
10
+ } from '@patternfly/react-core';
5
11
  import { Formik } from 'formik';
6
12
  import {
7
13
  AlertFormikError,
@@ -69,7 +75,7 @@ const UpdateDay2ApiVipForm: React.FC<UpdateDay2ApiVipFormProps> = ({
69
75
  {({ handleSubmit, status, setStatus, isSubmitting, isValid, dirty }) => {
70
76
  return (
71
77
  <Form onSubmit={handleSubmit}>
72
- <ModalBoxBody>
78
+ <ModalBody>
73
79
  <GridGap>
74
80
  <AlertFormikError
75
81
  status={status as StatusErrorType}
@@ -83,8 +89,8 @@ const UpdateDay2ApiVipForm: React.FC<UpdateDay2ApiVipFormProps> = ({
83
89
  isRequired
84
90
  />
85
91
  </GridGap>
86
- </ModalBoxBody>
87
- <ModalBoxFooter>
92
+ </ModalBody>
93
+ <ModalFooter>
88
94
  <Button
89
95
  key="submit"
90
96
  type={ButtonType.submit}
@@ -95,7 +101,7 @@ const UpdateDay2ApiVipForm: React.FC<UpdateDay2ApiVipFormProps> = ({
95
101
  <Button key="cancel" variant={ButtonVariant.link} onClick={onClose}>
96
102
  Cancel
97
103
  </Button>
98
- </ModalBoxFooter>
104
+ </ModalFooter>
99
105
  </Form>
100
106
  );
101
107
  }}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
3
2
  import UpdateDay2ApiVipForm, { UpdateDay2ApiVipFormProps } from './UpdateDay2ApiVipForm';
3
+ import { Modal, ModalHeader, ModalVariant } from '@patternfly/react-core';
4
4
 
5
5
  type UpdateDay2ApiVipModalProps = {
6
6
  isOpen: boolean;
@@ -13,12 +13,11 @@ const UpdateDay2ApiVipModal: React.FC<UpdateDay2ApiVipModalProps> = ({
13
13
  }) => (
14
14
  <Modal
15
15
  aria-label="Update cluster hostname"
16
- title="Update cluster hostname"
17
16
  isOpen={isOpen}
18
17
  variant={ModalVariant.small}
19
- hasNoBodyWrapper
20
18
  onClose={onClose}
21
19
  >
20
+ <ModalHeader title="Update cluster hostname" />
22
21
  <UpdateDay2ApiVipForm {...props} onClose={onClose} />
23
22
  </Modal>
24
23
  );
@@ -1,6 +1,14 @@
1
1
  import React from 'react';
2
- import { Button, ButtonVariant, IconComponentProps } from '@patternfly/react-core';
3
- import { Modal, ModalProps } from '@patternfly/react-core/deprecated';
2
+ import {
3
+ Button,
4
+ ButtonVariant,
5
+ IconComponentProps,
6
+ Modal,
7
+ ModalBody,
8
+ ModalFooter,
9
+ ModalHeader,
10
+ ModalProps,
11
+ } from '@patternfly/react-core';
4
12
  import { InfoCircleIcon } from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
5
13
  import { UiIcon } from '../../../common';
6
14
 
@@ -41,11 +49,10 @@ const InfoLinkWithModal = ({
41
49
  )}
42
50
  {linkText}
43
51
  </Button>
44
- <Modal
45
- title={modalTitle}
46
- id={modalId}
47
- isOpen={isModalOpen}
48
- actions={[
52
+ <Modal id={modalId} isOpen={isModalOpen} onClose={handleModalClose} variant={modalVariant}>
53
+ <ModalHeader title={modalTitle} />
54
+ <ModalBody>{children}</ModalBody>
55
+ <ModalFooter>
49
56
  <Button
50
57
  id={closebuttonId}
51
58
  key="close"
@@ -53,12 +60,8 @@ const InfoLinkWithModal = ({
53
60
  onClick={handleModalClose}
54
61
  >
55
62
  Close
56
- </Button>,
57
- ]}
58
- onClose={handleModalClose}
59
- variant={modalVariant}
60
- >
61
- {children}
63
+ </Button>
64
+ </ModalFooter>
62
65
  </Modal>
63
66
  </>
64
67
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@openshift-assisted/locales": "2.46.2",
4
- "@openshift-assisted/types": "2.46.2",
3
+ "@openshift-assisted/locales": "2.47.0",
4
+ "@openshift-assisted/types": "2.47.0",
5
5
  "@openshift-console/dynamic-plugin-sdk": "0.0.3",
6
6
  "@patternfly/patternfly": "6.2.3",
7
7
  "@patternfly/react-code-editor": "6.2.2",
@@ -140,5 +140,5 @@
140
140
  ]
141
141
  }
142
142
  },
143
- "version": "2.46.2"
143
+ "version": "2.47.0"
144
144
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"OcmTNADisclaimer.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterConfiguration/OcmTNADisclaimer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,QAAA,MAAM,gBAAgB,yBAgBrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export interface UserManagedNetworkingTextContentProps {
3
- shouldDisplayLoadBalancersBullet?: boolean;
4
- }
5
- export declare const UserManagedNetworkingTextContent: ({ shouldDisplayLoadBalancersBullet, }: UserManagedNetworkingTextContentProps) => React.JSX.Element;
6
- //# sourceMappingURL=UserManagedNetworkingTextContent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserManagedNetworkingTextContent.d.ts","sourceRoot":"","sources":["../../../../../../lib/ocm/components/clusterConfiguration/networkConfiguration/UserManagedNetworkingTextContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,qCAAqC;IACpD,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C;AAED,eAAO,MAAM,gCAAgC,0CAE1C,qCAAqC,sBAkBvC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"OcmTNADisclaimer.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterConfiguration/OcmTNADisclaimer.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,uDAA6E;AAC7E,2FAA+E;AAE/E,MAAM,gBAAgB,GAAG,GAAG,EAAE;IAC5B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAE/B,OAAO,CACL,8BAAC,kBAAK,IACJ,OAAO,EAAE,yBAAY,CAAC,IAAI,EAC1B,KAAK,EAAE,CAAC,CAAC,sDAAsD,CAAC,EAChE,QAAQ;QAER,8BAAC,iBAAI;YACH,8BAAC,qBAAQ,QACN,CAAC,CAAC,+EAA+E,CAAC,CAC1E,CACN,CACD,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserManagedNetworkingTextContent = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const react_core_1 = require("@patternfly/react-core");
7
- const ui_1 = require("../../../../common/components/ui");
8
- const docs_links_1 = require("../../../../common/config/docs_links");
9
- const UserManagedNetworkingTextContent = ({ shouldDisplayLoadBalancersBullet = false, }) => {
10
- return (react_1.default.createElement(react_core_1.Content, null,
11
- react_1.default.createElement(react_core_1.Content, { component: 'p' },
12
- "Please refer to the",
13
- ' ',
14
- react_1.default.createElement(ui_1.ExternalLink, { href: (0, docs_links_1.getOpenShiftNetworkingDocsLink)() }, "OpenShift networking documentation"),
15
- ' ',
16
- "to configure your cluster's networking, including:",
17
- ' '),
18
- react_1.default.createElement(react_core_1.List, null,
19
- react_1.default.createElement(react_core_1.ListItem, null, "DHCP or static IP Addresses"),
20
- shouldDisplayLoadBalancersBullet && react_1.default.createElement(react_core_1.ListItem, null, "Load balancers"),
21
- react_1.default.createElement(react_core_1.ListItem, null, "Network ports"),
22
- react_1.default.createElement(react_core_1.ListItem, null, "DNS"))));
23
- };
24
- exports.UserManagedNetworkingTextContent = UserManagedNetworkingTextContent;
25
- //# sourceMappingURL=UserManagedNetworkingTextContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserManagedNetworkingTextContent.js","sourceRoot":"","sources":["../../../../../../lib/ocm/components/clusterConfiguration/networkConfiguration/UserManagedNetworkingTextContent.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAAiE;AACjE,yDAAgE;AAChE,qEAAsF;AAM/E,MAAM,gCAAgC,GAAG,CAAC,EAC/C,gCAAgC,GAAG,KAAK,GACF,EAAE,EAAE;IAC1C,OAAO,CACL,8BAAC,oBAAO;QACN,8BAAC,oBAAO,IAAC,SAAS,EAAE,GAAG;;YACD,GAAG;YACvB,8BAAC,iBAAY,IAAC,IAAI,EAAE,IAAA,2CAA8B,GAAE,yCAErC;YAAC,GAAG;;YACgC,GAAG,CAC9C;QACV,8BAAC,iBAAI;YACH,8BAAC,qBAAQ,sCAAuC;YAC/C,gCAAgC,IAAI,8BAAC,qBAAQ,yBAA0B;YACxE,8BAAC,qBAAQ,wBAAyB;YAClC,8BAAC,qBAAQ,cAAe,CACnB,CACC,CACX,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,gCAAgC,oCAoB3C"}
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import { List, ListItem, Content } from '@patternfly/react-core';
3
- import { ExternalLink } from '../../../../common/components/ui';
4
- import { getOpenShiftNetworkingDocsLink } from '../../../../common/config/docs_links';
5
-
6
- export interface UserManagedNetworkingTextContentProps {
7
- shouldDisplayLoadBalancersBullet?: boolean;
8
- }
9
-
10
- export const UserManagedNetworkingTextContent = ({
11
- shouldDisplayLoadBalancersBullet = false,
12
- }: UserManagedNetworkingTextContentProps) => {
13
- return (
14
- <Content>
15
- <Content component={'p'}>
16
- Please refer to the{' '}
17
- <ExternalLink href={getOpenShiftNetworkingDocsLink()}>
18
- OpenShift networking documentation
19
- </ExternalLink>{' '}
20
- to configure your cluster's networking, including:{' '}
21
- </Content>
22
- <List>
23
- <ListItem>DHCP or static IP Addresses</ListItem>
24
- {shouldDisplayLoadBalancersBullet && <ListItem>Load balancers</ListItem>}
25
- <ListItem>Network ports</ListItem>
26
- <ListItem>DNS</ListItem>
27
- </List>
28
- </Content>
29
- );
30
- };