@hashicorp/react-components 0.0.0-canary.1da3dd5 → 0.0.0-canary.29ac326
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/package.json
CHANGED
|
@@ -18,8 +18,15 @@ const PRODUCT_LOGO_MAP = new Map([
|
|
|
18
18
|
['Nomad', 'nomad-fill-color'],
|
|
19
19
|
['Waypoint', 'waypoint-fill-color'],
|
|
20
20
|
['Vagrant', 'vagrant-fill-color'],
|
|
21
|
+
['HCP Vault Secrets', 'vault-secrets'],
|
|
22
|
+
['HCP Vault Radar', 'vault-radar'],
|
|
21
23
|
])
|
|
22
24
|
|
|
25
|
+
const PRODUCT_LOGO_EXCEPTION_CLASSNAMES = {
|
|
26
|
+
'HCP Vault Secrets': 'hcpVaultSecrets',
|
|
27
|
+
'HCP Vault Radar': 'hcpVaultRadar',
|
|
28
|
+
}
|
|
29
|
+
|
|
23
30
|
export interface ProductsPanelProps {
|
|
24
31
|
productCategories: any
|
|
25
32
|
promo?: PromoProps
|
|
@@ -125,6 +132,11 @@ function NavProduct({ url, product, description }: NavProductProps) {
|
|
|
125
132
|
<div className={s.productLogo}>
|
|
126
133
|
<FlightIcon
|
|
127
134
|
name={PRODUCT_LOGO_MAP.get(product) ?? 'hashicorp-fill-color'}
|
|
135
|
+
className={
|
|
136
|
+
PRODUCT_LOGO_EXCEPTION_CLASSNAMES[product]
|
|
137
|
+
? s[PRODUCT_LOGO_EXCEPTION_CLASSNAMES[product]]
|
|
138
|
+
: undefined
|
|
139
|
+
}
|
|
128
140
|
/>
|
|
129
141
|
</div>
|
|
130
142
|
<div className={s.productTextContent}>
|
|
@@ -191,3 +191,20 @@ packages/react-components/src/components/nav-panel/components/link-list/style.mo
|
|
|
191
191
|
line-height: 18px;
|
|
192
192
|
color: var(--token-color-foreground-primary);
|
|
193
193
|
}
|
|
194
|
+
|
|
195
|
+
/* Branding exception classnames */
|
|
196
|
+
|
|
197
|
+
.hcpVaultSecrets,
|
|
198
|
+
.hcpVaultRadar {
|
|
199
|
+
padding: var(--hdsplus-spacing-01);
|
|
200
|
+
border: 2px solid var(--token-color-vault-brand);
|
|
201
|
+
border-radius: 3px;
|
|
202
|
+
|
|
203
|
+
& use {
|
|
204
|
+
fill: var(--token-color-foreground-strong);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
& path {
|
|
208
|
+
fill: inherit;
|
|
209
|
+
}
|
|
210
|
+
}
|