@hashicorp/react-components 0.0.0-canary.e8d8096 → 0.0.0-canary.f090ec2
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
|
|
@@ -77,12 +70,6 @@ const ProductPanel = ({
|
|
|
77
70
|
<TextPlus.Body size="200" weight="semibold">
|
|
78
71
|
{sidePanel.label}
|
|
79
72
|
</TextPlus.Body>
|
|
80
|
-
|
|
81
|
-
{/* ! TODO Replace the below list with the <LinkList /> component,
|
|
82
|
-
That component will require a refactor to support greater customization
|
|
83
|
-
Ticket:
|
|
84
|
-
https://app.asana.com/0/1206176289707208/1208162145034615/f
|
|
85
|
-
*/}
|
|
86
73
|
<ul className={s.sidePanelItems}>
|
|
87
74
|
{sidePanel.navItems.map(({ icon, title, description, url }) => {
|
|
88
75
|
return (
|
|
@@ -132,11 +119,6 @@ function NavProduct({ url, product, description }: NavProductProps) {
|
|
|
132
119
|
<div className={s.productLogo}>
|
|
133
120
|
<FlightIcon
|
|
134
121
|
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
122
|
/>
|
|
141
123
|
</div>
|
|
142
124
|
<div className={s.productTextContent}>
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
|
|
125
125
|
.sidePanel {
|
|
126
126
|
height: 100%;
|
|
127
|
-
background: var(--token-color-surface-
|
|
127
|
+
background: var(--token-color-surface-strong);
|
|
128
128
|
display: flex;
|
|
129
129
|
flex-direction: column;
|
|
130
130
|
gap: var(--hdsplus-spacing-05);
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
margin-bottom: 0;
|
|
158
158
|
|
|
159
159
|
&:hover {
|
|
160
|
-
background-color: var(--token-color-surface-interactive-
|
|
160
|
+
background-color: var(--token-color-surface-interactive-active);
|
|
161
161
|
border-radius: var(--hdsplus-spacing-01);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
@@ -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-
|
|
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;
|
|
@@ -175,7 +175,6 @@ packages/react-components/src/components/nav-panel/components/link-list/style.mo
|
|
|
175
175
|
border-radius: 3px;
|
|
176
176
|
flex: none;
|
|
177
177
|
margin-top: 3px;
|
|
178
|
-
border: 1px solid var(--token-color-border-primary);
|
|
179
178
|
}
|
|
180
179
|
|
|
181
180
|
/* Lifted from .productTextContent */
|
|
@@ -191,20 +190,3 @@ packages/react-components/src/components/nav-panel/components/link-list/style.mo
|
|
|
191
190
|
line-height: 18px;
|
|
192
191
|
color: var(--token-color-foreground-primary);
|
|
193
192
|
}
|
|
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
|
-
}
|