@hashicorp/react-components 0.0.0-canary.1931511 → 0.0.0-canary.1da3dd5

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.1931511",
3
+ "version": "0.0.0-canary.1da3dd5",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "lint": "next-hashicorp lint",
@@ -18,15 +18,8 @@ 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'],
23
21
  ])
24
22
 
25
- const PRODUCT_LOGO_EXCEPTION_CLASSNAMES = {
26
- 'HCP Vault Secrets': 'hcpVaultSecrets',
27
- 'HCP Vault Radar': 'hcpVaultRadar',
28
- }
29
-
30
23
  export interface ProductsPanelProps {
31
24
  productCategories: any
32
25
  promo?: PromoProps
@@ -131,15 +124,7 @@ function NavProduct({ url, product, description }: NavProductProps) {
131
124
  <div className={s.productWrapper}>
132
125
  <div className={s.productLogo}>
133
126
  <FlightIcon
134
- name={
135
- PRODUCT_LOGO_MAP.get('HCP Vault Secrets') ??
136
- 'hashicorp-fill-color'
137
- }
138
- className={
139
- PRODUCT_LOGO_EXCEPTION_CLASSNAMES['HCP Vault Secrets']
140
- ? s[PRODUCT_LOGO_EXCEPTION_CLASSNAMES['HCP Vault Secrets']]
141
- : undefined
142
- }
127
+ name={PRODUCT_LOGO_MAP.get(product) ?? 'hashicorp-fill-color'}
143
128
  />
144
129
  </div>
145
130
  <div className={s.productTextContent}>
@@ -191,24 +191,3 @@ 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
- /* Styles for HCP Vault mimic the spec for `product-square` icons,
198
- while allowing the symbol inside the icon border to change color
199
- based on the site's theme
200
- */
201
- .hcpVaultSecrets,
202
- .hcpVaultRadar {
203
- padding: var(--hdsplus-spacing-01);
204
- border: 2px solid var(--token-color-vault-brand);
205
- border-radius: 3px;
206
-
207
- & use {
208
- fill: var(--token-color-foreground-strong);
209
- }
210
-
211
- & path {
212
- fill: inherit;
213
- }
214
- }