1
- import type { HTMLAttributes , DetailedHTMLProps , FunctionComponent , CSSProperties } from 'react' ;
1
+ import type { FunctionComponent , CSSProperties } from 'react' ;
2
2
import { Fragment } from 'react' ;
3
3
import clsx from 'clsx' ;
4
4
import { createUseStyles } from 'react-jss' ;
5
5
6
- export interface AnsibleProps extends DetailedHTMLProps < HTMLAttributes < HTMLElement > , HTMLElement > {
6
+ export interface AnsibleProps extends React . DetailedHTMLProps < React . HTMLAttributes < HTMLElement > , HTMLElement > {
7
7
/** Supported/unsupported variant flag */
8
8
isSupported ?: boolean ;
9
9
/** Red Hat Ansible Automation Platform technology icon */
@@ -14,22 +14,30 @@ export interface AnsibleProps extends DetailedHTMLProps<HTMLAttributes<HTMLEleme
14
14
ouiaId ?: string | number ;
15
15
}
16
16
17
- const RHAAPTechnologyIcon =
18
- < svg
19
- width = "24" height = "24" viewBox = "0 0 38 38"
20
- xmlns = "http://www.w3.org/2000/svg" >
21
- < defs >
22
- < style >
23
- { `.uuid-6998fa22-ec9a-4e2f-9d0d-f4bc3361e80e{fill:#e00;}` }
24
- { `.uuid-2a01d04c-89d4-48ba-a2d8-51034215da9b{fill:#fff;}` }
25
- { `.uuid-a19226e8-b71f-481c-815f-1ed60f4363a6{fill:#4d4d4d;}` }
26
- </ style >
27
- </ defs >
28
- < rect x = "1" y = "1" width = "36" height = "36" rx = "9" ry = "9" />
29
- < path className = "uuid-a19226e8-b71f-481c-815f-1ed60f4363a6" d = "m28,2.25c4.27338,0,7.75,3.47664,7.75,7.75v18c0,4.27336-3.47662,7.75-7.75,7.75H10c-4.27338,0-7.75-3.47664-7.75-7.75V10c0-4.27336,3.47662-7.75,7.75-7.75h18m0-1.25H10C5.02942,1,1,5.02944,1,10v18c0,4.97057,4.02942,9,9,9h18c4.97058,0,9-4.02943,9-9V10c0-4.97056-4.02942-9-9-9h0Z" />
30
- < path className = "uuid-2a01d04c-89d4-48ba-a2d8-51034215da9b" d = "m15,23.625c-.08594,0-.17383-.01758-.25684-.05566-.31445-.1416-.45508-.51172-.3125-.82617l2.02051-4.48145c.00293-.00586.00586-.01172.00781-.01758l1.97168-4.36914c.20117-.44922.9375-.44922,1.13867,0l4,8.86816c.11814.25977.04395.56641-.17871.74512-.22266.17773-.53613.18262-.7666.01172l-5.34961-4.02148-1.70508,3.77832c-.10352.23145-.33105.36816-.56934.36816Zm2.80078-5.31445l3.62891,2.72754-2.42969-5.38574-1.19922,2.6582Z" />
31
- < path className = "uuid-6998fa22-ec9a-4e2f-9d0d-f4bc3361e80e" d = "m19,30.125c-6.13477,0-11.125-4.99023-11.125-11.125s4.99023-11.125,11.125-11.125,11.125,4.99023,11.125,11.125-4.99023,11.125-11.125,11.125Zm0-21c-5.44531,0-9.875,4.42969-9.875,9.875s4.42969,9.875,9.875,9.875,9.875-4.42969,9.875-9.875-4.42969-9.875-9.875-9.875Z" />
32
- </ svg >
17
+ const RHAAPTechnologyIcon = (
18
+ < svg width = "24" height = "24" viewBox = "0 0 38 38" xmlns = "http://www.w3.org/2000/svg" >
19
+ < defs >
20
+ < style >
21
+ { `.uuid-6998fa22-ec9a-4e2f-9d0d-f4bc3361e80e{fill:#e00;}` }
22
+ { `.uuid-2a01d04c-89d4-48ba-a2d8-51034215da9b{fill:#fff;}` }
23
+ { `.uuid-a19226e8-b71f-481c-815f-1ed60f4363a6{fill:#4d4d4d;}` }
24
+ </ style >
25
+ </ defs >
26
+ < rect x = "1" y = "1" width = "36" height = "36" rx = "9" ry = "9" />
27
+ < path
28
+ className = "uuid-a19226e8-b71f-481c-815f-1ed60f4363a6"
29
+ d = "m28,2.25c4.27338,0,7.75,3.47664,7.75,7.75v18c0,4.27336-3.47662,7.75-7.75,7.75H10c-4.27338,0-7.75-3.47664-7.75-7.75V10c0-4.27336,3.47662-7.75,7.75-7.75h18m0-1.25H10C5.02942,1,1,5.02944,1,10v18c0,4.97057,4.02942,9,9,9h18c4.97058,0,9-4.02943,9-9V10c0-4.97056-4.02942-9-9-9h0Z"
30
+ />
31
+ < path
32
+ className = "uuid-2a01d04c-89d4-48ba-a2d8-51034215da9b"
33
+ d = "m15,23.625c-.08594,0-.17383-.01758-.25684-.05566-.31445-.1416-.45508-.51172-.3125-.82617l2.02051-4.48145c.00293-.00586.00586-.01172.00781-.01758l1.97168-4.36914c.20117-.44922.9375-.44922,1.13867,0l4,8.86816c.11814.25977.04395.56641-.17871.74512-.22266.17773-.53613.18262-.7666.01172l-5.34961-4.02148-1.70508,3.77832c-.10352.23145-.33105.36816-.56934.36816Zm2.80078-5.31445l3.62891,2.72754-2.42969-5.38574-1.19922,2.6582Z"
34
+ />
35
+ < path
36
+ className = "uuid-6998fa22-ec9a-4e2f-9d0d-f4bc3361e80e"
37
+ d = "m19,30.125c-6.13477,0-11.125-4.99023-11.125-11.125s4.99023-11.125,11.125-11.125,11.125,4.99023,11.125,11.125-4.99023,11.125-11.125,11.125Zm0-21c-5.44531,0-9.875,4.42969-9.875,9.875s4.42969,9.875,9.875,9.875,9.875-4.42969,9.875-9.875-4.42969-9.875-9.875-9.875Z"
38
+ />
39
+ </ svg >
40
+ ) ;
33
41
34
42
const useStyles = createUseStyles ( {
35
43
ansible : {
@@ -41,18 +49,24 @@ const useStyles = createUseStyles({
41
49
} ,
42
50
ansibleSupported : {
43
51
'& .st0' : {
44
- fill : 'var(--pf-t-global--icon--color--regular)' ,
52
+ fill : 'var(--pf-t-global--icon--color--regular)'
45
53
}
46
54
} ,
47
55
ansibleUnsupported : {
48
56
'& .st0, .st1, .st2' : {
49
57
fill : 'var(--pf-t--global--icon--color--disabled)' ,
50
- cursor : 'not-allowed' ,
58
+ cursor : 'not-allowed'
51
59
}
52
60
}
53
- } )
61
+ } ) ;
54
62
55
- const Ansible : FunctionComponent < AnsibleProps > = ( { isSupported = true , isRHAAP, className, ouiaId = "Ansible-icon" , ...props } : AnsibleProps ) => {
63
+ const Ansible : FunctionComponent < AnsibleProps > = ( {
64
+ isSupported = true ,
65
+ isRHAAP,
66
+ className,
67
+ ouiaId = 'Ansible-icon' ,
68
+ ...props
69
+ } : AnsibleProps ) => {
56
70
const classes = useStyles ( ) ;
57
71
const ansibleLogoClass = clsx (
58
72
classes . ansible ,
@@ -71,7 +85,7 @@ const Ansible: FunctionComponent<AnsibleProps> = ({ isSupported = true, isRHAAP,
71
85
width = "803.8"
72
86
height = "221.5"
73
87
/>
74
-
88
+
75
89
< rect
76
90
x = "-279.7"
77
91
y = "904"
@@ -80,7 +94,7 @@ const Ansible: FunctionComponent<AnsibleProps> = ({ isSupported = true, isRHAAP,
80
94
width = "2590.2"
81
95
height = "221.5"
82
96
/>
83
-
97
+
84
98
< rect
85
99
x = "17.1"
86
100
y = "1620.5"
@@ -93,13 +107,18 @@ const Ansible: FunctionComponent<AnsibleProps> = ({ isSupported = true, isRHAAP,
93
107
) ;
94
108
95
109
return (
96
- ( < Fragment >
110
+ < Fragment >
97
111
{ isRHAAP ? (
98
112
< i title = "Red Hat Ansible Automation Platform" data-ouia-component-id = { ouiaId } { ...props } >
99
113
{ RHAAPTechnologyIcon }
100
114
</ i >
101
115
) : (
102
- < i className = { ansibleLogoClass } title = { isSupported ? "Ansible supported" : "Ansible is not supported" } data-ouia-component-id = { ouiaId } { ...props } >
116
+ < i
117
+ className = { ansibleLogoClass }
118
+ title = { isSupported ? 'Ansible supported' : 'Ansible is not supported' }
119
+ data-ouia-component-id = { ouiaId }
120
+ { ...props }
121
+ >
103
122
< svg
104
123
version = "1.1"
105
124
x = "0px"
@@ -117,8 +136,8 @@ const Ansible: FunctionComponent<AnsibleProps> = ({ isSupported = true, isRHAAP,
117
136
{ isSupported ? null : unsupportedSlash }
118
137
</ svg >
119
138
</ i >
120
- ) }
121
- </ Fragment > )
139
+ ) }
140
+ </ Fragment >
122
141
) ;
123
142
} ;
124
143
0 commit comments