@hashicorp/react-components 0.0.0-canary.88aaf8d → 0.0.0-canary.9641ba1

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.88aaf8d",
3
+ "version": "0.0.0-canary.9641ba1",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "lint": "next-hashicorp lint",
@@ -426,10 +426,6 @@ export const resolverErrors = (
426
426
  * @returns MarketoFormField[] with columnSplit property set
427
427
  */
428
428
  export function setFieldsColumnSplit(fieldsArr: MarketoFormField[]) {
429
- if (!fieldsArr) {
430
- return []
431
- }
432
-
433
429
  return fieldsArr.map((f) => {
434
430
  const columnSplit = getFieldColumnSplit(fieldsArr, f)
435
431
  return { ...f, columnSplit }
@@ -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}>
@@ -166,7 +166,7 @@
166
166
  /* Lifted from:
167
167
  packages/react-components/src/components/nav-panel/components/link-list/style.module.css */
168
168
  .iconBackground {
169
- background: var(--token-color-foreground-high-contrast);
169
+ background: var(--token-color-page-primary);
170
170
  height: var(--hdsplus-spacing-08);
171
171
  width: var(--hdsplus-spacing-08);
172
172
  display: flex;
@@ -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
- }