@hashicorp/react-components 0.0.0-canary.29ac326 → 0.0.0-canary.33d6c97
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
|
@@ -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
|
|
@@ -132,11 +125,6 @@ function NavProduct({ url, product, description }: NavProductProps) {
|
|
|
132
125
|
<div className={s.productLogo}>
|
|
133
126
|
<FlightIcon
|
|
134
127
|
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
|
-
}
|
|
140
128
|
/>
|
|
141
129
|
</div>
|
|
142
130
|
<div className={s.productTextContent}>
|
|
@@ -191,20 +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
|
-
.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
|
-
}
|