@hashicorp/react-components 0.0.0-canary.dc549d6 → 0.0.0-canary.e8d8096

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashicorp/react-components",
3
- "version": "0.0.0-canary.dc549d6",
3
+ "version": "0.0.0-canary.e8d8096",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "lint": "next-hashicorp lint",
@@ -18,10 +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-square-color'],
22
- ['HCP Vault Radar', 'vault-radar-square-color'],
21
+ ['HCP Vault Secrets', 'vault-secrets'],
22
+ ['HCP Vault Radar', 'vault-radar'],
23
23
  ])
24
24
 
25
+ const PRODUCT_LOGO_EXCEPTION_CLASSNAMES = {
26
+ 'HCP Vault Secrets': 'hcpVaultSecrets',
27
+ 'HCP Vault Radar': 'hcpVaultRadar',
28
+ }
29
+
25
30
  export interface ProductsPanelProps {
26
31
  productCategories: any
27
32
  promo?: PromoProps
@@ -127,6 +132,11 @@ function NavProduct({ url, product, description }: NavProductProps) {
127
132
  <div className={s.productLogo}>
128
133
  <FlightIcon
129
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
+ }
130
140
  />
131
141
  </div>
132
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
+ }