@hashicorp/react-components 0.0.0-canary.91072b5 → 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
|
@@ -29,6 +29,7 @@ export interface ProductsPanelProps {
|
|
|
29
29
|
icon: string
|
|
30
30
|
title: string
|
|
31
31
|
description: string
|
|
32
|
+
url: string
|
|
32
33
|
}[]
|
|
33
34
|
}
|
|
34
35
|
}
|
|
@@ -69,23 +70,31 @@ const ProductPanel = ({
|
|
|
69
70
|
<TextPlus.Body size="200" weight="semibold">
|
|
70
71
|
{sidePanel.label}
|
|
71
72
|
</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
|
+
*/}
|
|
72
79
|
<ul className={s.sidePanelItems}>
|
|
73
|
-
{sidePanel.navItems.map(({ icon, title, description }) => {
|
|
80
|
+
{sidePanel.navItems.map(({ icon, title, description, url }) => {
|
|
74
81
|
return (
|
|
75
|
-
<li key={title}
|
|
76
|
-
<
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
<li key={title}>
|
|
83
|
+
<Link href={parseUrl(url).href} className={s.sidePanelItem}>
|
|
84
|
+
<div className={s.iconBackground}>
|
|
85
|
+
<FlightIcon
|
|
86
|
+
size={16}
|
|
87
|
+
name={icon}
|
|
88
|
+
color="var(--token-color-foreground-faint)"
|
|
89
|
+
/>
|
|
90
|
+
</div>
|
|
91
|
+
<div className={s.sidePanelItemContent}>
|
|
92
|
+
<TextPlus.Body size="200" weight="semibold" tag="span">
|
|
93
|
+
{title}
|
|
94
|
+
</TextPlus.Body>
|
|
95
|
+
<span className={s.sidePanelItemDesc}>{description}</span>
|
|
96
|
+
</div>
|
|
97
|
+
</Link>
|
|
89
98
|
</li>
|
|
90
99
|
)
|
|
91
100
|
})}
|