@hashicorp/react-components 0.0.0-canary.985995d → 0.0.0-canary.a825dab
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
|
@@ -29,7 +29,6 @@ export interface ProductsPanelProps {
|
|
|
29
29
|
icon: string
|
|
30
30
|
title: string
|
|
31
31
|
description: string
|
|
32
|
-
url: string
|
|
33
32
|
}[]
|
|
34
33
|
}
|
|
35
34
|
}
|
|
@@ -70,31 +69,23 @@ const ProductPanel = ({
|
|
|
70
69
|
<TextPlus.Body size="200" weight="semibold">
|
|
71
70
|
{sidePanel.label}
|
|
72
71
|
</TextPlus.Body>
|
|
73
|
-
|
|
74
|
-
{/* ! TODO Replace the below list with the <LinkList /> component,
|
|
75
|
-
That component will require a refactor to support greater customization
|
|
76
|
-
Ticket:
|
|
77
|
-
https://app.asana.com/0/1206176289707208/1208162145034615/f
|
|
78
|
-
*/}
|
|
79
72
|
<ul className={s.sidePanelItems}>
|
|
80
|
-
{sidePanel.navItems.map(({ icon, title, description
|
|
73
|
+
{sidePanel.navItems.map(({ icon, title, description }) => {
|
|
81
74
|
return (
|
|
82
|
-
<li key={title}>
|
|
83
|
-
<
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
</div>
|
|
97
|
-
</Link>
|
|
75
|
+
<li key={title} className={s.sidePanelItem}>
|
|
76
|
+
<div className={s.iconBackground}>
|
|
77
|
+
<FlightIcon
|
|
78
|
+
size={16}
|
|
79
|
+
name={icon}
|
|
80
|
+
color="var(--token-color-foreground-faint)"
|
|
81
|
+
/>
|
|
82
|
+
</div>
|
|
83
|
+
<div className={s.sidePanelItemContent}>
|
|
84
|
+
<TextPlus.Body size="200" weight="semibold" tag="span">
|
|
85
|
+
{title}
|
|
86
|
+
</TextPlus.Body>
|
|
87
|
+
<span className={s.sidePanelItemDesc}>{description}</span>
|
|
88
|
+
</div>
|
|
98
89
|
</li>
|
|
99
90
|
)
|
|
100
91
|
})}
|
|
@@ -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);
|
|
@@ -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 */
|