@openshift-assisted/ui-lib 2.17.3-cim → 2.17.6-cim
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.
- package/build/@types/cim/components/Agent/BMHStatusInfo.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/MinimalHWRequirements.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +4 -4
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/ConditionsTable.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/HostedClusterProgress.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/NodePoolsProgress.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/utils/status.d.ts +2 -2
- package/build/@types/cim/components/Hypershift/utils/status.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agentStatus.d.ts +1 -1
- package/build/@types/cim/components/helpers/agentStatus.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationFormFields.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/types.d.ts +1 -1
- package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/FinalizingProgress.d.ts +1 -1
- package/build/@types/common/components/clusterDetail/FinalizingProgress.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/OperatorsProgressItem.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/ProgressBarTexts.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts +2 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts +2 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostPropertyValidationPopover.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostStatus.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostValidationGroups.d.ts.map +1 -1
- package/build/@types/common/components/hosts/Hostname.d.ts.map +1 -1
- package/build/@types/common/components/hosts/MassChangeHostnameModal.d.ts.map +1 -1
- package/build/@types/common/components/hosts/VMRebootConfigurationInfo.d.ts.map +1 -1
- package/build/@types/common/components/hosts/status.d.ts.map +1 -1
- package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
- package/build/@types/common/components/storage/StorageUtils.d.ts +1 -1
- package/build/@types/common/components/storage/StorageUtils.d.ts.map +1 -1
- package/build/@types/common/components/ui/WizardNavItem.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/RemovableField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/utils.d.ts +1 -0
- package/build/@types/common/components/ui/formik/utils.d.ts.map +1 -1
- package/build/@types/common/components/ui/index.d.ts +0 -1
- package/build/@types/common/components/ui/index.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts +2 -2
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/validationSchemas/addressValidation.d.ts.map +1 -1
- package/build/@types/common/validationSchemas/networkingValidation.d.ts +10 -0
- package/build/@types/common/validationSchemas/networkingValidation.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmOperatorProgressItem.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/HostInventoryExpandable.d.ts +1 -1
- package/build/@types/ocm/components/clusterDetail/HostInventoryExpandable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/OpenShiftVersionDetail.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ResetClusterModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClusterStatus.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.d.ts.map +1 -1
- package/build/@types/ocm/components/ui/InfoLinkWithModal.d.ts.map +1 -1
- package/build/cjs/cim/components/Agent/BMHStatusInfo.js +4 -4
- package/build/cjs/cim/components/Agent/BMHStatusInfo.js.map +1 -1
- package/build/cjs/cim/components/Agent/MinimalHWRequirements.js +2 -2
- package/build/cjs/cim/components/Agent/MinimalHWRequirements.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +44 -5
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +27 -11
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +13 -18
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/ConditionsTable.js +7 -6
- package/build/cjs/cim/components/Hypershift/DetailsPage/ConditionsTable.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/HostedClusterProgress.js +3 -2
- package/build/cjs/cim/components/Hypershift/DetailsPage/HostedClusterProgress.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsProgress.js +2 -2
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsProgress.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/utils/status.js +8 -7
- package/build/cjs/cim/components/Hypershift/utils/status.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +4 -4
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.js +3 -3
- package/build/cjs/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.js.map +1 -1
- package/build/cjs/cim/components/helpers/agentStatus.js +3 -2
- package/build/cjs/cim/components/helpers/agentStatus.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js +7 -3
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +4 -3
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/persist.js +7 -0
- package/build/cjs/cim/components/modals/CimConfiguration/persist.js.map +1 -1
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +2 -2
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js +2 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/FinalizingProgress.js +8 -7
- package/build/cjs/common/components/clusterDetail/FinalizingProgress.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js +4 -4
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ProgressBarTexts.js +5 -4
- package/build/cjs/common/components/clusterDetail/ProgressBarTexts.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js +7 -6
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +8 -2
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js +29 -19
- package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js +2 -2
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js.map +1 -1
- package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js +6 -6
- package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js.map +1 -1
- package/build/cjs/common/components/hosts/HostStatus.js +2 -1
- package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
- package/build/cjs/common/components/hosts/HostValidationGroups.js +6 -6
- package/build/cjs/common/components/hosts/HostValidationGroups.js.map +1 -1
- package/build/cjs/common/components/hosts/Hostname.js +4 -3
- package/build/cjs/common/components/hosts/Hostname.js.map +1 -1
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +2 -2
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
- package/build/cjs/common/components/hosts/VMRebootConfigurationInfo.js +2 -1
- package/build/cjs/common/components/hosts/VMRebootConfigurationInfo.js.map +1 -1
- package/build/cjs/common/components/hosts/status.js +19 -13
- package/build/cjs/common/components/hosts/status.js.map +1 -1
- package/build/cjs/common/components/storage/DisksTable.js +4 -2
- package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
- package/build/cjs/common/components/storage/StorageUtils.js +3 -2
- package/build/cjs/common/components/storage/StorageUtils.js.map +1 -1
- package/build/cjs/common/components/ui/WizardNavItem.js +2 -2
- package/build/cjs/common/components/ui/WizardNavItem.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RemovableField.js +3 -3
- package/build/cjs/common/components/ui/formik/RemovableField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RichInputField.js +4 -4
- package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/utils.js +5 -1
- package/build/cjs/common/components/ui/formik/utils.js.map +1 -1
- package/build/cjs/common/components/ui/index.js +1 -3
- package/build/cjs/common/components/ui/index.js.map +1 -1
- package/build/cjs/common/config/constants.js +9 -2
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/validationSchemas/addressValidation.js +16 -4
- package/build/cjs/common/validationSchemas/addressValidation.js.map +1 -1
- package/build/cjs/common/validationSchemas/networkingValidation.js +19 -1
- package/build/cjs/common/validationSchemas/networkingValidation.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js +4 -4
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.js +5 -2
- package/build/cjs/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +6 -3
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +4 -4
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js +5 -3
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js +11 -7
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/HostInventoryExpandable.js +5 -4
- package/build/cjs/ocm/components/clusterDetail/HostInventoryExpandable.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js +4 -3
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +4 -2
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterStatus.js +13 -7
- package/build/cjs/ocm/components/clusters/ClusterStatus.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +7 -6
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map +1 -1
- package/build/cjs/ocm/components/ui/InfoLinkWithModal.js +2 -2
- package/build/cjs/ocm/components/ui/InfoLinkWithModal.js.map +1 -1
- package/lib/cim/components/Agent/BMHStatusInfo.tsx +12 -4
- package/lib/cim/components/Agent/MinimalHWRequirements.tsx +4 -2
- package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +51 -3
- package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +22 -8
- package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +14 -22
- package/lib/cim/components/Hypershift/DetailsPage/ConditionsTable.tsx +13 -7
- package/lib/cim/components/Hypershift/DetailsPage/HostedClusterProgress.tsx +8 -4
- package/lib/cim/components/Hypershift/DetailsPage/NodePoolsProgress.tsx +6 -2
- package/lib/cim/components/Hypershift/utils/status.tsx +20 -9
- package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +11 -4
- package/lib/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.tsx +4 -6
- package/lib/cim/components/helpers/agentStatus.tsx +7 -3
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationFormFields.tsx +7 -5
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +4 -3
- package/lib/cim/components/modals/CimConfiguration/persist.ts +11 -0
- package/lib/cim/components/modals/CimConfiguration/types.ts +1 -1
- package/lib/cim/components/modals/MassDeleteAgentModal.tsx +12 -5
- package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +5 -2
- package/lib/common/components/clusterDetail/FinalizingProgress.tsx +21 -10
- package/lib/common/components/clusterDetail/OperatorsProgressItem.tsx +11 -5
- package/lib/common/components/clusterDetail/ProgressBarTexts.tsx +17 -5
- package/lib/common/components/clusterWizard/ReviewValidations.tsx +15 -6
- package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +8 -1
- package/lib/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx +37 -27
- package/lib/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.tsx +0 -2
- package/lib/common/components/hosts/HostPropertyValidationPopover.tsx +9 -5
- package/lib/common/components/hosts/HostStatus.tsx +14 -3
- package/lib/common/components/hosts/HostValidationGroups.tsx +9 -5
- package/lib/common/components/hosts/Hostname.tsx +7 -4
- package/lib/common/components/hosts/MassChangeHostnameModal.tsx +6 -2
- package/lib/common/components/hosts/VMRebootConfigurationInfo.tsx +12 -3
- package/lib/common/components/hosts/status.tsx +46 -13
- package/lib/common/components/storage/DisksTable.tsx +15 -4
- package/lib/common/components/storage/StorageUtils.tsx +6 -4
- package/lib/common/components/ui/WizardNavItem.tsx +4 -7
- package/lib/common/components/ui/formik/RemovableField.tsx +8 -4
- package/lib/common/components/ui/formik/RichInputField.tsx +10 -6
- package/lib/common/components/ui/formik/utils.ts +6 -0
- package/lib/common/components/ui/index.ts +0 -2
- package/lib/common/config/constants.ts +10 -1
- package/lib/common/validationSchemas/addressValidation.tsx +16 -11
- package/lib/common/validationSchemas/networkingValidation.tsx +39 -1
- package/lib/ocm/components/clusterConfiguration/OcmOperatorProgressItem.tsx +11 -5
- package/lib/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.tsx +8 -7
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +8 -5
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +6 -5
- package/lib/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.tsx +6 -3
- package/lib/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.tsx +28 -15
- package/lib/ocm/components/clusterDetail/HostInventoryExpandable.tsx +11 -5
- package/lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx +8 -5
- package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +6 -3
- package/lib/ocm/components/clusters/ClusterStatus.tsx +30 -8
- package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +12 -8
- package/lib/ocm/components/ui/InfoLinkWithModal.tsx +4 -2
- package/package.json +3 -3
- package/build/@types/common/components/ui/UiIcon.d.ts +0 -11
- package/build/@types/common/components/ui/UiIcon.d.ts.map +0 -1
- package/build/cjs/common/components/ui/UiIcon.js +0 -11
- package/build/cjs/common/components/ui/UiIcon.js.map +0 -1
- package/lib/common/components/ui/UiIcon.tsx +0 -21
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
serviceNetworkValidationSchema,
|
|
12
12
|
IPv4ValidationSchema,
|
|
13
13
|
sshPublicKeyValidationSchema,
|
|
14
|
-
|
|
14
|
+
SINGLE_STACK,
|
|
15
15
|
DUAL_STACK,
|
|
16
16
|
vipArrayValidationSchema,
|
|
17
17
|
NETWORK_TYPE_OVN,
|
|
@@ -50,7 +50,7 @@ export const getNetworkInitialValues = (
|
|
|
50
50
|
: 'clusterManaged',
|
|
51
51
|
networkType: cluster.networkType || NETWORK_TYPE_OVN,
|
|
52
52
|
machineNetworks: cluster.machineNetworks || [],
|
|
53
|
-
stackType: isDualStackType ? DUAL_STACK :
|
|
53
|
+
stackType: isDualStackType ? DUAL_STACK : SINGLE_STACK,
|
|
54
54
|
clusterNetworks:
|
|
55
55
|
cluster.clusterNetworks ||
|
|
56
56
|
(isDualStackType
|
|
@@ -85,7 +85,8 @@ export const getNetworkConfigurationValidationSchema = (
|
|
|
85
85
|
values.managedNetworkingType === 'userManaged'
|
|
86
86
|
? Yup.array()
|
|
87
87
|
: machineNetworksValidationSchema.when('stackType', {
|
|
88
|
-
is: (stackType: NetworkConfigurationValues['stackType']) =>
|
|
88
|
+
is: (stackType: NetworkConfigurationValues['stackType']) =>
|
|
89
|
+
stackType === SINGLE_STACK,
|
|
89
90
|
then: () => machineNetworksValidationSchema.concat(IPv4ValidationSchema),
|
|
90
91
|
otherwise: () =>
|
|
91
92
|
values.machineNetworks && values.machineNetworks?.length >= 2
|
|
@@ -95,13 +96,13 @@ export const getNetworkConfigurationValidationSchema = (
|
|
|
95
96
|
: Yup.array(),
|
|
96
97
|
}),
|
|
97
98
|
clusterNetworks: clusterNetworksValidationSchema(t).when('stackType', {
|
|
98
|
-
is: (stackType: NetworkConfigurationValues['stackType']) => stackType ===
|
|
99
|
+
is: (stackType: NetworkConfigurationValues['stackType']) => stackType === SINGLE_STACK,
|
|
99
100
|
then: (schema) => schema.concat(IPv4ValidationSchema),
|
|
100
101
|
otherwise: (schema) =>
|
|
101
102
|
schema.concat(dualStackValidationSchema('cluster network', t, openshiftVersion)),
|
|
102
103
|
}),
|
|
103
104
|
serviceNetworks: serviceNetworkValidationSchema(t).when('stackType', {
|
|
104
|
-
is: (stackType: NetworkConfigurationValues['stackType']) => stackType ===
|
|
105
|
+
is: (stackType: NetworkConfigurationValues['stackType']) => stackType === SINGLE_STACK,
|
|
105
106
|
then: (schema) => schema.concat(IPv4ValidationSchema),
|
|
106
107
|
otherwise: (schema) =>
|
|
107
108
|
schema.concat(dualStackValidationSchema('service network', t, openshiftVersion)),
|
package/lib/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.tsx
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Icon } from '@patternfly/react-core';
|
|
2
3
|
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
3
|
-
import {
|
|
4
|
+
import { SupportedPlatformType } from '../../../../common';
|
|
4
5
|
import { ExternalPlatformLinks } from './constants';
|
|
5
6
|
|
|
6
7
|
const PlatformIntegrationNote = ({ platformType }: { platformType: SupportedPlatformType }) => {
|
|
7
8
|
const integrationPlatformLink = ExternalPlatformLinks[platformType];
|
|
8
9
|
return (
|
|
9
10
|
<p>
|
|
10
|
-
<
|
|
11
|
-
|
|
11
|
+
<Icon status="warning">
|
|
12
|
+
<ExclamationTriangleIcon />
|
|
13
|
+
</Icon>{' '}
|
|
14
|
+
You will need to modify your platform configuration after cluster installation is completed.{' '}
|
|
12
15
|
{!!integrationPlatformLink && (
|
|
13
16
|
<a
|
|
14
17
|
href={integrationPlatformLink || ''}
|
|
@@ -6,20 +6,13 @@ import {
|
|
|
6
6
|
Grid,
|
|
7
7
|
GridItem,
|
|
8
8
|
gridSpans,
|
|
9
|
+
Icon,
|
|
9
10
|
} from '@patternfly/react-core';
|
|
10
11
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
11
12
|
import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
12
13
|
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
13
14
|
import { InfoCircleIcon } from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
14
|
-
import {
|
|
15
|
-
import { t_global_color_status_info_100 as infoColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_info_100';
|
|
16
|
-
import {
|
|
17
|
-
ClusterValidations,
|
|
18
|
-
DetailItem,
|
|
19
|
-
DetailList,
|
|
20
|
-
HostsValidations,
|
|
21
|
-
UiIcon,
|
|
22
|
-
} from '../../../../common';
|
|
15
|
+
import { ClusterValidations, DetailItem, DetailList, HostsValidations } from '../../../../common';
|
|
23
16
|
import { useClusterWizardContext } from '../../clusterWizard/ClusterWizardContext';
|
|
24
17
|
import { useOpenShiftVersionsContext } from '../../clusterWizard/OpenShiftVersionsContext';
|
|
25
18
|
import { wizardStepNames } from '../../clusterWizard/constants';
|
|
@@ -102,13 +95,29 @@ const PreflightCheckInfo = ({
|
|
|
102
95
|
|
|
103
96
|
const getCheckIcon = (validationStatuses: string[]) => {
|
|
104
97
|
if (validationStatuses.includes('failure') || validationStatuses.includes('error')) {
|
|
105
|
-
return
|
|
98
|
+
return (
|
|
99
|
+
<Icon size="sm" status="danger">
|
|
100
|
+
<ExclamationCircleIcon />
|
|
101
|
+
</Icon>
|
|
102
|
+
);
|
|
106
103
|
} else if (validationStatuses.includes('warning')) {
|
|
107
|
-
return
|
|
104
|
+
return (
|
|
105
|
+
<Icon size="sm" status="warning">
|
|
106
|
+
<ExclamationTriangleIcon />
|
|
107
|
+
</Icon>
|
|
108
|
+
);
|
|
108
109
|
} else if (validationStatuses.includes('pending')) {
|
|
109
|
-
return
|
|
110
|
+
return (
|
|
111
|
+
<Icon size="sm" status="info">
|
|
112
|
+
<InfoCircleIcon />
|
|
113
|
+
</Icon>
|
|
114
|
+
);
|
|
110
115
|
}
|
|
111
|
-
return
|
|
116
|
+
return (
|
|
117
|
+
<Icon status="success" size="sm">
|
|
118
|
+
<CheckCircleIcon />
|
|
119
|
+
</Icon>
|
|
120
|
+
);
|
|
112
121
|
};
|
|
113
122
|
|
|
114
123
|
const PreflightChecksDetailCollapsed = ({ cluster }: { cluster: Cluster }) => {
|
|
@@ -122,9 +131,13 @@ const PreflightChecksDetailCollapsed = ({ cluster }: { cluster: Cluster }) => {
|
|
|
122
131
|
);
|
|
123
132
|
|
|
124
133
|
const supportLevelIcon = isFullySupported ? (
|
|
125
|
-
<
|
|
134
|
+
<Icon status="success" size="sm">
|
|
135
|
+
<CheckCircleIcon />
|
|
136
|
+
</Icon>
|
|
126
137
|
) : (
|
|
127
|
-
<
|
|
138
|
+
<Icon status="info" size="sm">
|
|
139
|
+
<InfoCircleIcon />
|
|
140
|
+
</Icon>
|
|
128
141
|
);
|
|
129
142
|
|
|
130
143
|
const clusterValidations = React.useMemo(
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ExpandableSection, Icon } from '@patternfly/react-core';
|
|
3
|
+
import ExclamationTriangleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
4
|
+
|
|
5
|
+
import { hostStatus } from '../../../common';
|
|
3
6
|
import ClusterHostsTable from '../hosts/ClusterHostsTable';
|
|
4
7
|
import { getHostsWithTimeout, getMostSevereHostStatus } from './utils';
|
|
5
|
-
import { ExpandableSection } from '@patternfly/react-core';
|
|
6
|
-
import './HostInventoryExpandable.css';
|
|
7
8
|
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
8
9
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
import './HostInventoryExpandable.css';
|
|
10
12
|
|
|
11
13
|
type HostInventoryExpandableProps = {
|
|
12
14
|
cluster: Cluster;
|
|
@@ -33,7 +35,11 @@ const HostInventoryExpandable = ({ cluster }: HostInventoryExpandableProps) => {
|
|
|
33
35
|
const mostSevereHostStatus = getMostSevereHostStatus(hosts);
|
|
34
36
|
const hostStatusDef = mostSevereHostStatus ? hostStatus(t)[mostSevereHostStatus] : null;
|
|
35
37
|
const someHostHasTimeout = getHostsWithTimeout(hosts);
|
|
36
|
-
const warningIcon =
|
|
38
|
+
const warningIcon = (
|
|
39
|
+
<Icon size="sm" status="warning">
|
|
40
|
+
<ExclamationTriangleIcon />
|
|
41
|
+
</Icon>
|
|
42
|
+
);
|
|
37
43
|
return (
|
|
38
44
|
<ExpandableSection
|
|
39
45
|
toggleContent={
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { useOpenShiftVersionsContext } from '../clusterWizard/OpenShiftVersionsContext';
|
|
2
|
+
import { Popover, Content, ContentVariants, Icon } from '@patternfly/react-core';
|
|
4
3
|
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
5
|
-
|
|
6
|
-
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
4
|
+
|
|
7
5
|
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
6
|
+
import { getOpenshiftVersionText } from '../../../common';
|
|
7
|
+
import { useOpenShiftVersionsContext } from '../clusterWizard/OpenShiftVersionsContext';
|
|
8
|
+
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
8
9
|
|
|
9
10
|
const UnsupportedVersion = ({ version }: { version: string }) => {
|
|
10
11
|
const { t } = useTranslation();
|
|
@@ -18,7 +19,9 @@ const UnsupportedVersion = ({ version }: { version: string }) => {
|
|
|
18
19
|
<Content component="p">
|
|
19
20
|
{version}
|
|
20
21
|
<Popover bodyContent={hint}>
|
|
21
|
-
<
|
|
22
|
+
<Icon size="sm" status="warning">
|
|
23
|
+
<ExclamationTriangleIcon />
|
|
24
|
+
</Icon>
|
|
22
25
|
</Popover>
|
|
23
26
|
</Content>
|
|
24
27
|
);
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
Button,
|
|
5
5
|
ButtonVariant,
|
|
6
6
|
Content,
|
|
7
|
+
Icon,
|
|
7
8
|
Modal,
|
|
8
9
|
ModalBody,
|
|
9
10
|
ModalFooter,
|
|
@@ -16,7 +17,7 @@ import { getApiErrorMessage, handleApiError } from '../../../common/api';
|
|
|
16
17
|
import { updateCluster } from '../../store/slices/current-cluster/slice';
|
|
17
18
|
import { calculateCollectedLogsCount } from '../clusters/utils';
|
|
18
19
|
import { useModalDialogsContext } from '../hosts/ModalDialogsContext';
|
|
19
|
-
import { ErrorState, LoadingState
|
|
20
|
+
import { ErrorState, LoadingState } from '../../../common';
|
|
20
21
|
import { ClustersAPI } from '../../services/apis';
|
|
21
22
|
|
|
22
23
|
const ResetClusterModal: React.FC = () => {
|
|
@@ -87,8 +88,10 @@ const ResetClusterModal: React.FC = () => {
|
|
|
87
88
|
</Content>
|
|
88
89
|
|
|
89
90
|
<Content component="p">
|
|
90
|
-
<
|
|
91
|
-
|
|
91
|
+
<Icon size="sm" status="warning">
|
|
92
|
+
<ExclamationTriangleIcon />
|
|
93
|
+
</Icon>{' '}
|
|
94
|
+
Logs won't be available after the installation is reset.
|
|
92
95
|
</Content>
|
|
93
96
|
|
|
94
97
|
<Content component="p">Are you sure you want to reset the cluster?</Content>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
3
2
|
import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
4
3
|
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
5
4
|
import { FileAltIcon } from '@patternfly/react-icons/dist/js/icons/file-alt-icon';
|
|
6
5
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
7
6
|
import { InProgressIcon } from '@patternfly/react-icons/dist/js/icons/in-progress-icon';
|
|
8
7
|
import { BanIcon } from '@patternfly/react-icons/dist/js/icons/ban-icon';
|
|
9
|
-
import { clusterStatusLabels,
|
|
8
|
+
import { clusterStatusLabels, WithTestID } from '../../../common';
|
|
10
9
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
11
10
|
import { TFunction } from 'i18next';
|
|
12
11
|
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
12
|
+
import { Icon } from '@patternfly/react-core';
|
|
13
13
|
|
|
14
14
|
type ClusterStatusProps = {
|
|
15
15
|
status: Cluster['status'];
|
|
@@ -24,25 +24,47 @@ type ClusterStatusIconProps = {
|
|
|
24
24
|
export const ClusterStatusIcon: React.FC<ClusterStatusIconProps> = ({ status, ...extraProps }) => {
|
|
25
25
|
switch (status) {
|
|
26
26
|
case 'cancelled':
|
|
27
|
-
return
|
|
27
|
+
return (
|
|
28
|
+
<Icon size="sm">
|
|
29
|
+
<BanIcon {...extraProps} />
|
|
30
|
+
</Icon>
|
|
31
|
+
);
|
|
28
32
|
case 'insufficient':
|
|
29
33
|
case 'pending-for-input':
|
|
30
34
|
case 'ready':
|
|
31
|
-
return
|
|
35
|
+
return (
|
|
36
|
+
<Icon size="sm">
|
|
37
|
+
<FileAltIcon {...extraProps} />
|
|
38
|
+
</Icon>
|
|
39
|
+
);
|
|
32
40
|
case 'error':
|
|
33
|
-
return
|
|
41
|
+
return (
|
|
42
|
+
<Icon size="sm" status="danger">
|
|
43
|
+
<ExclamationCircleIcon {...extraProps} />
|
|
44
|
+
</Icon>
|
|
45
|
+
);
|
|
34
46
|
case 'installed':
|
|
35
|
-
return
|
|
47
|
+
return (
|
|
48
|
+
<Icon status="success" size="sm">
|
|
49
|
+
<CheckCircleIcon {...extraProps} />
|
|
50
|
+
</Icon>
|
|
51
|
+
);
|
|
36
52
|
case 'installing-pending-user-action':
|
|
37
53
|
return (
|
|
38
|
-
<
|
|
54
|
+
<Icon size="sm" status="warning">
|
|
55
|
+
<ExclamationTriangleIcon {...extraProps} />
|
|
56
|
+
</Icon>
|
|
39
57
|
);
|
|
40
58
|
|
|
41
59
|
case 'preparing-for-installation':
|
|
42
60
|
case 'installing':
|
|
43
61
|
case 'finalizing':
|
|
44
62
|
case 'adding-hosts':
|
|
45
|
-
return
|
|
63
|
+
return (
|
|
64
|
+
<Icon size="sm">
|
|
65
|
+
<InProgressIcon {...extraProps} />
|
|
66
|
+
</Icon>
|
|
67
|
+
);
|
|
46
68
|
default:
|
|
47
69
|
return <></>;
|
|
48
70
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
2
3
|
import { InfoCircleIcon } from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
3
|
-
import
|
|
4
|
-
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
5
|
-
import { t_global_color_status_info_100 as infoColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_info_100';
|
|
6
|
-
import { Content } from '@patternfly/react-core';
|
|
4
|
+
import { Content, Icon } from '@patternfly/react-core';
|
|
7
5
|
import {
|
|
8
6
|
FeatureId,
|
|
9
7
|
FeatureIdToSupportLevel,
|
|
@@ -13,7 +11,7 @@ import {
|
|
|
13
11
|
import { TECH_SUPPORT_LEVEL_LINK } from '../../../common/config/docs_links';
|
|
14
12
|
import ExternalLink from '../../../common/components/ui/ExternalLink';
|
|
15
13
|
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
16
|
-
import { DetailItem
|
|
14
|
+
import { DetailItem } from '../../../common';
|
|
17
15
|
import { getLimitedFeatureSupportLevels } from '../../../common/components/newFeatureSupportLevels/utils';
|
|
18
16
|
import { WithErrorBoundary } from '../../../common/components/ErrorHandling/WithErrorBoundary';
|
|
19
17
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
@@ -90,13 +88,17 @@ export const LimitedSupportedCluster = ({
|
|
|
90
88
|
<>
|
|
91
89
|
{showVersionWarning && (
|
|
92
90
|
<Content component="p">
|
|
93
|
-
<
|
|
91
|
+
<Icon status="info" size="sm">
|
|
92
|
+
<InfoCircleIcon />
|
|
93
|
+
</Icon>
|
|
94
94
|
The installed OpenShift version is not production-ready
|
|
95
95
|
</Content>
|
|
96
96
|
)}
|
|
97
97
|
{Object.keys(clusterFeatureSupportLevels).length > 0 && (
|
|
98
98
|
<>
|
|
99
|
-
<
|
|
99
|
+
<Icon status="info" size="sm">
|
|
100
|
+
<InfoCircleIcon />
|
|
101
|
+
</Icon>
|
|
100
102
|
Your cluster will be subject to support limitations because it includes:
|
|
101
103
|
<Content component="ul">{getPreviewFeatureList(clusterFeatureSupportLevels)}</Content>
|
|
102
104
|
</>
|
|
@@ -106,7 +108,9 @@ export const LimitedSupportedCluster = ({
|
|
|
106
108
|
|
|
107
109
|
export const FullySupportedCluster = () => (
|
|
108
110
|
<>
|
|
109
|
-
<
|
|
111
|
+
<Icon status="success">
|
|
112
|
+
<CheckCircleIcon />
|
|
113
|
+
</Icon>
|
|
110
114
|
Your installed cluster will be fully supported
|
|
111
115
|
</>
|
|
112
116
|
);
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
4
|
ButtonVariant,
|
|
5
|
+
Icon,
|
|
5
6
|
IconComponentProps,
|
|
6
7
|
Modal,
|
|
7
8
|
ModalBody,
|
|
@@ -10,7 +11,6 @@ import {
|
|
|
10
11
|
ModalProps,
|
|
11
12
|
} from '@patternfly/react-core';
|
|
12
13
|
import { InfoCircleIcon } from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
13
|
-
import { UiIcon } from '../../../common';
|
|
14
14
|
|
|
15
15
|
export interface InfoLinkWithModalProps {
|
|
16
16
|
linkText: string;
|
|
@@ -43,7 +43,9 @@ const InfoLinkWithModal = ({
|
|
|
43
43
|
<Button id={linkId} variant={ButtonVariant.link} onClick={handleLinkClick} isInline>
|
|
44
44
|
{!isInline && (
|
|
45
45
|
<>
|
|
46
|
-
<
|
|
46
|
+
<Icon size={infoCircleSize}>
|
|
47
|
+
<InfoCircleIcon />
|
|
48
|
+
</Icon>
|
|
47
49
|
|
|
48
50
|
</>
|
|
49
51
|
)}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@openshift-assisted/locales": "2.17.
|
|
4
|
-
"@openshift-assisted/types": "2.17.
|
|
3
|
+
"@openshift-assisted/locales": "2.17.6-cim",
|
|
4
|
+
"@openshift-assisted/types": "2.17.6-cim",
|
|
5
5
|
"@openshift-console/dynamic-plugin-sdk": "1.0.0",
|
|
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.17.
|
|
143
|
+
"version": "2.17.6-cim"
|
|
144
144
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { IconComponentProps } from '@patternfly/react-core';
|
|
3
|
-
export type UiIconProps = {
|
|
4
|
-
size?: IconComponentProps['size'];
|
|
5
|
-
status?: IconComponentProps['status'] | undefined;
|
|
6
|
-
icon?: ReactElement;
|
|
7
|
-
className?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const UiIcon: React.FC<UiIconProps>;
|
|
10
|
-
export default UiIcon;
|
|
11
|
-
//# sourceMappingURL=UiIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UiIcon.d.ts","sourceRoot":"","sources":["../../../../../lib/common/components/ui/UiIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAQ,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;IAClD,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAQjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const react_core_1 = require("@patternfly/react-core");
|
|
6
|
-
const UiIcon = (props) => {
|
|
7
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
8
|
-
react_1.default.createElement(react_core_1.Icon, { size: props.size ? props.size : 'md', status: props.status, className: props.className }, props.icon)));
|
|
9
|
-
};
|
|
10
|
-
exports.default = UiIcon;
|
|
11
|
-
//# sourceMappingURL=UiIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UiIcon.js","sourceRoot":"","sources":["../../../../../lib/common/components/ui/UiIcon.tsx"],"names":[],"mappings":";;;AAAA,0DAA4C;AAC5C,uDAAkE;AASlE,MAAM,MAAM,GAA0B,CAAC,KAAK,EAAE,EAAE;IAC9C,OAAO,CACL;QACE,8BAAC,iBAAI,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,IACzF,KAAK,CAAC,IAAI,CACN,CACN,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,MAAM,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { Icon, IconComponentProps } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export type UiIconProps = {
|
|
5
|
-
size?: IconComponentProps['size'];
|
|
6
|
-
status?: IconComponentProps['status'] | undefined;
|
|
7
|
-
icon?: ReactElement;
|
|
8
|
-
className?: string;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const UiIcon: React.FC<UiIconProps> = (props) => {
|
|
12
|
-
return (
|
|
13
|
-
<>
|
|
14
|
-
<Icon size={props.size ? props.size : 'md'} status={props.status} className={props.className}>
|
|
15
|
-
{props.icon}
|
|
16
|
-
</Icon>
|
|
17
|
-
</>
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export default UiIcon;
|