@hashicorp/react-components 0.0.0-nightly.f8bc604 → 0.0.0-nightly.f8fa6d1
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 +1 -1
- package/src/components/nav-panel/components/flight-icon/style.module.css +1 -1
- package/src/components/nav-panel/components/promo/style.module.css +6 -2
- package/src/components/nav-panel/product-panel/index.tsx +6 -2
- package/src/components/nav-panel/product-panel/style.module.css +20 -6
- package/src/lib/parse-url/index.ts +0 -1
package/package.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
border-radius: var(--mds-spacing-01);
|
|
6
6
|
border: 1px solid var(--token-color-border-faint);
|
|
7
7
|
background-color: var(--token-color-surface-faint);
|
|
8
|
-
padding: var(--mds-spacing-05) var(--mds-spacing-08)
|
|
9
|
-
var(--mds-spacing-
|
|
8
|
+
padding: var(--mds-spacing-05) var(--mds-spacing-08) var(--mds-spacing-06)
|
|
9
|
+
var(--mds-spacing-08);
|
|
10
10
|
flex-direction: row;
|
|
11
11
|
gap: var(--mds-spacing-04);
|
|
12
12
|
margin: var(--mds-spacing-07);
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
margin-bottom: var(--mds-spacing-05);
|
|
29
29
|
}
|
|
30
30
|
&.hasSide {
|
|
31
|
+
&.topPromo {
|
|
32
|
+
margin-bottom: var(--mds-spacing-05);
|
|
33
|
+
}
|
|
34
|
+
|
|
31
35
|
margin: 0;
|
|
32
36
|
width: min-content;
|
|
33
37
|
min-width: 100%;
|
|
@@ -96,7 +96,7 @@ const ProductPanel = ({
|
|
|
96
96
|
|
|
97
97
|
{sidePanel ? (
|
|
98
98
|
<NavPanel.Column className={s.sidePanel}>
|
|
99
|
-
<Text size="200" weight="semibold">
|
|
99
|
+
<Text size="200" weight="semibold" className={s.sidePanelText}>
|
|
100
100
|
{sidePanel.label}
|
|
101
101
|
</Text>
|
|
102
102
|
|
|
@@ -122,7 +122,11 @@ const ProductPanel = ({
|
|
|
122
122
|
/>
|
|
123
123
|
</div>
|
|
124
124
|
<div className={s.sidePanelItemContent}>
|
|
125
|
-
<Text
|
|
125
|
+
<Text
|
|
126
|
+
size="200"
|
|
127
|
+
weight="semibold"
|
|
128
|
+
className={s.sidePanelText}
|
|
129
|
+
>
|
|
126
130
|
{title}
|
|
127
131
|
</Text>
|
|
128
132
|
<span className={s.sidePanelItemDesc}>{description}</span>
|
|
@@ -109,8 +109,7 @@
|
|
|
109
109
|
|
|
110
110
|
@media (--large) {
|
|
111
111
|
@nest .noSide & {
|
|
112
|
-
padding: var(--mds-spacing-06) var(--mds-spacing-05)
|
|
113
|
-
var(--mds-spacing-04);
|
|
112
|
+
padding: var(--mds-spacing-06) var(--mds-spacing-05) var(--mds-spacing-04);
|
|
114
113
|
grid-auto-flow: row;
|
|
115
114
|
grid-template-columns: repeat(2, 300px);
|
|
116
115
|
grid-template-rows: repeat(2, max-content);
|
|
@@ -120,8 +119,7 @@
|
|
|
120
119
|
|
|
121
120
|
@media (--dev-dot-viewport) {
|
|
122
121
|
@nest .hasSide & {
|
|
123
|
-
padding: var(--mds-spacing-06) var(--mds-spacing-05)
|
|
124
|
-
var(--mds-spacing-04);
|
|
122
|
+
padding: var(--mds-spacing-06) var(--mds-spacing-05) var(--mds-spacing-04);
|
|
125
123
|
grid-auto-flow: row;
|
|
126
124
|
grid-template-columns: repeat(2, 300px);
|
|
127
125
|
grid-template-rows: repeat(2, max-content);
|
|
@@ -222,11 +220,19 @@
|
|
|
222
220
|
justify-content: space-between;
|
|
223
221
|
flex-direction: column;
|
|
224
222
|
|
|
223
|
+
@nest .topPromo & {
|
|
224
|
+
justify-content: flex-start;
|
|
225
|
+
}
|
|
226
|
+
|
|
225
227
|
@media (--large) {
|
|
226
228
|
@nest .noSide & {
|
|
227
229
|
padding: var(--mds-spacing-07) 0 var(--mds-spacing-09)
|
|
228
230
|
var(--mds-spacing-04);
|
|
229
231
|
}
|
|
232
|
+
|
|
233
|
+
@nest .topPromo & {
|
|
234
|
+
padding-bottom: var(--mds-spacing-04);
|
|
235
|
+
}
|
|
230
236
|
}
|
|
231
237
|
|
|
232
238
|
@media (--dev-dot-viewport) {
|
|
@@ -234,6 +240,10 @@
|
|
|
234
240
|
padding: var(--mds-spacing-07) 0 var(--mds-spacing-09)
|
|
235
241
|
var(--mds-spacing-04);
|
|
236
242
|
}
|
|
243
|
+
|
|
244
|
+
@nest .topPromo & {
|
|
245
|
+
padding-bottom: var(--mds-spacing-04);
|
|
246
|
+
}
|
|
237
247
|
}
|
|
238
248
|
}
|
|
239
249
|
|
|
@@ -244,8 +254,8 @@
|
|
|
244
254
|
flex-direction: column;
|
|
245
255
|
gap: var(--mds-spacing-05);
|
|
246
256
|
margin: 0;
|
|
247
|
-
padding: var(--mds-spacing-07) var(--mds-spacing-04)
|
|
248
|
-
var(--mds-spacing-
|
|
257
|
+
padding: var(--mds-spacing-07) var(--mds-spacing-04) var(--mds-spacing-09)
|
|
258
|
+
var(--mds-spacing-07);
|
|
249
259
|
}
|
|
250
260
|
|
|
251
261
|
.sidePanelItems {
|
|
@@ -340,3 +350,7 @@ packages/react-components/src/components/nav-panel/components/link-list/style.mo
|
|
|
340
350
|
fill: inherit;
|
|
341
351
|
}
|
|
342
352
|
}
|
|
353
|
+
|
|
354
|
+
.sidePanelText {
|
|
355
|
+
font-weight: var(--mds-typography-font-weight-semibold);
|
|
356
|
+
}
|