@hashicorp/react-components 1.2.3 → 1.2.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashicorp/react-components",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "lint": "npm run lint:js",
@@ -3,10 +3,22 @@
3
3
  */
4
4
 
5
5
  @custom-media --dev-dot-viewport (min-width: 924px);
6
+ @custom-media --dev-dot-show-mobile-menu (max-width: 923px);
7
+ @custom-media --dev-dot-mobile only screen and (max-width: 728px);
8
+ @custom-media --dev-dot-tablet only screen and (min-width: 729px) and (max-width: 1000px);
9
+ @custom-media --dev-dot-tablet-down only screen and (max-width: 1000px);
6
10
 
7
11
  .productPanel {
8
12
  height: 100%;
9
13
 
14
+ @nest &.isDevPortal {
15
+ justify-content: flex-start;
16
+
17
+ @media (--dev-dot-tablet-down) {
18
+ padding-top: 24px;
19
+ }
20
+ }
21
+
10
22
  @media (--large) {
11
23
  &:not(.isDevPortal) {
12
24
  display: grid;
@@ -58,6 +70,16 @@
58
70
  border-bottom: 1px solid var(--mds-color-border-primary);
59
71
  margin-bottom: var(--mds-spacing-05);
60
72
  padding-bottom: var(--mds-spacing-05);
73
+
74
+ @nest .isDevPortal & {
75
+ margin-bottom: var(--mds-spacing-08) !important;
76
+ padding-bottom: var(--mds-spacing-08) !important;
77
+
78
+ @media (--dev-dot-mobile) {
79
+ margin-bottom: var(--mds-spacing-07) !important;
80
+ padding-bottom: var(--mds-spacing-05) !important;
81
+ }
82
+ }
61
83
  }
62
84
  }
63
85
 
@@ -66,6 +88,14 @@
66
88
  color: var(--mds-color-foreground-strong);
67
89
  font-weight: var(--mds-typography-font-weight-semibold);
68
90
 
91
+ @nest .isDevPortal & {
92
+ padding-bottom: var(--mds-spacing-05);
93
+
94
+ @media (--dev-dot-mobile) {
95
+ padding-bottom: var(--mds-spacing-07);
96
+ }
97
+ }
98
+
69
99
  @media (--large) {
70
100
  @nest :not(.isDevPortal) & {
71
101
  padding-bottom: 0;
@@ -88,6 +118,22 @@
88
118
  margin: 0;
89
119
  padding: 0;
90
120
 
121
+ @nest .isDevPortal & {
122
+ @media (--dev-dot-show-mobile-menu) {
123
+ grid-template-columns: repeat(2, 1fr);
124
+ }
125
+
126
+ @media (--dev-dot-mobile) {
127
+ grid-template-columns: 1fr;
128
+ }
129
+
130
+ & > li {
131
+ @media (--dev-dot-mobile) {
132
+ margin-bottom: 8px;
133
+ }
134
+ }
135
+ }
136
+
91
137
  @media (--large) {
92
138
  @nest :not(.isDevPortal) & {
93
139
  padding: var(--mds-spacing-06) var(--mds-spacing-05) var(--mds-spacing-04);
@@ -201,6 +247,34 @@
201
247
  justify-content: space-between;
202
248
  flex-direction: column;
203
249
 
250
+ @nest .isDevPortal & {
251
+ background: none;
252
+ padding-top: 0;
253
+ gap: 0;
254
+
255
+ @media (--dev-dot-tablet) {
256
+ display: flex;
257
+ flex-direction: column-reverse;
258
+ }
259
+ }
260
+
261
+ /* Product Grid Section Sides */
262
+ @nest .isDevPortal & > div:first-child {
263
+ margin: 0 var(--mds-spacing-10);
264
+
265
+ @media (--dev-dot-mobile) {
266
+ margin: 0 var(--mds-spacing-07);
267
+ }
268
+ }
269
+
270
+ /* Promo Banner within Product */
271
+ @nest .isDevPortal & > div:nth-child(2) {
272
+ @media (--dev-dot-tablet) {
273
+ margin-top: 0;
274
+ margin-bottom: var(--mds-spacing-08);
275
+ }
276
+ }
277
+
204
278
  @nest .topPromo & {
205
279
  justify-content: flex-start;
206
280
  }
@@ -11,4 +11,7 @@ export const allSupportedLocales = [
11
11
  'ko',
12
12
  'pt',
13
13
  'id',
14
+ 'zh',
15
+ 'it',
16
+ 'ar',
14
17
  ]