@vtex/faststore-plugin-buyer-portal 1.1.90 → 1.1.91
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/CHANGELOG.md +15 -0
- package/package.json +1 -1
- package/src/features/addresses/components/AddressLocationsList/AddressLocationsList.tsx +1 -1
- package/src/features/addresses/components/AddressRecipientsList/AddressRecipientsList.tsx +1 -7
- package/src/features/addresses/layouts/AddressDetailsLayout/address-details-layout.scss +57 -3
- package/src/features/addresses/layouts/AddressesLayout/AddressesLayout.tsx +16 -14
- package/src/features/addresses/layouts/AddressesLayout/addresses-layout.scss +62 -6
- package/src/features/shared/components/Pagination/Pagination.tsx +7 -17
- package/src/features/shared/components/Pagination/pagination.scss +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
|
+
- Responsiviness to Buying policies page
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- Credit card page responsiveness
|
|
16
|
+
- Change for the store title based on the SEO
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- Responsive design implementation for Addresses section
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- Standardization the sidebar menu throughout the navigation of the Organizational Account, regardless of the context.
|
|
25
|
+
|
|
26
|
+
### Added
|
|
12
27
|
- Added responsiveness to the Payment Methods list.
|
|
13
28
|
- Implemented responsiveness across all drawers in the Payment Methods flow.
|
|
14
29
|
- Ensured responsive behavior for toasts and empty states.
|
package/package.json
CHANGED
|
@@ -207,7 +207,7 @@ export const AddressLocationsList = forwardRef<
|
|
|
207
207
|
{...deleteLocationProps}
|
|
208
208
|
/>
|
|
209
209
|
)}
|
|
210
|
-
<div data-fs-bp-address-tabs-paginator>
|
|
210
|
+
<div data-fs-bp-address-tabs-paginator-last>
|
|
211
211
|
{totalLocations > locations.length && (
|
|
212
212
|
<Paginator.NextPageButton
|
|
213
213
|
onClick={increasePage}
|
|
@@ -168,12 +168,6 @@ export const AddressRecipientsList = forwardRef<
|
|
|
168
168
|
label: "Phone",
|
|
169
169
|
align: "left",
|
|
170
170
|
},
|
|
171
|
-
{
|
|
172
|
-
key: "actions",
|
|
173
|
-
label: "",
|
|
174
|
-
align: "right",
|
|
175
|
-
size: "large",
|
|
176
|
-
},
|
|
177
171
|
]}
|
|
178
172
|
/>
|
|
179
173
|
|
|
@@ -225,7 +219,7 @@ export const AddressRecipientsList = forwardRef<
|
|
|
225
219
|
/>
|
|
226
220
|
)}
|
|
227
221
|
|
|
228
|
-
<div data-fs-bp-address-tabs-paginator>
|
|
222
|
+
<div data-fs-bp-address-tabs-paginator-last>
|
|
229
223
|
{totalRecipients > recipients.length && (
|
|
230
224
|
<Paginator.NextPageButton
|
|
231
225
|
onClick={increasePage}
|
|
@@ -11,10 +11,22 @@
|
|
|
11
11
|
|
|
12
12
|
height: 100%;
|
|
13
13
|
|
|
14
|
+
@include media("<=tablet") {
|
|
15
|
+
padding: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-fs-bp-tab-bar] {
|
|
19
|
+
@include media("<=tablet") {
|
|
20
|
+
width: -webkit-fill-available !important;
|
|
21
|
+
justify-content: space-around;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
14
25
|
[data-fs-address-details-actions-wrapper] {
|
|
15
26
|
display: flex;
|
|
16
27
|
align-items: center;
|
|
17
28
|
gap: var(--fs-spacing-1);
|
|
29
|
+
|
|
18
30
|
[data-fs-address-details-status-label] {
|
|
19
31
|
font-weight: var(--fs-text-weight-medium);
|
|
20
32
|
font-size: var(--fs-text-size-1);
|
|
@@ -52,11 +64,17 @@
|
|
|
52
64
|
height: 100%;
|
|
53
65
|
display: flex;
|
|
54
66
|
flex-direction: column;
|
|
67
|
+
|
|
55
68
|
[data-fs-address-details-actions] {
|
|
56
69
|
display: flex;
|
|
57
70
|
justify-content: space-between;
|
|
58
71
|
align-items: center;
|
|
72
|
+
flex-direction: row;
|
|
59
73
|
margin-bottom: var(--fs-text-size-7);
|
|
74
|
+
@include media("<=tablet") {
|
|
75
|
+
flex-direction: column-reverse;
|
|
76
|
+
gap: 0.625rem;
|
|
77
|
+
}
|
|
60
78
|
|
|
61
79
|
[data-fs-bp-tab-bar] {
|
|
62
80
|
width: fit-content;
|
|
@@ -92,6 +110,12 @@
|
|
|
92
110
|
|
|
93
111
|
border-radius: var(--fs-border-radius-pill);
|
|
94
112
|
border: var(--fs-border-width) solid #e0e0e0;
|
|
113
|
+
|
|
114
|
+
@include media("<=tablet") {
|
|
115
|
+
width: 100%;
|
|
116
|
+
text-align: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
}
|
|
95
119
|
}
|
|
96
120
|
}
|
|
97
121
|
|
|
@@ -105,6 +129,11 @@
|
|
|
105
129
|
font-size: var(--fs-text-size-1);
|
|
106
130
|
line-height: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
107
131
|
|
|
132
|
+
@include media("<=tablet") {
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
align-items: normal;
|
|
135
|
+
}
|
|
136
|
+
|
|
108
137
|
&[data-fs-address-details-info-line-first="true"] {
|
|
109
138
|
border-top: var(--fs-border-width) solid #e5e5e5;
|
|
110
139
|
}
|
|
@@ -181,6 +210,16 @@
|
|
|
181
210
|
align-items: center;
|
|
182
211
|
justify-content: space-between;
|
|
183
212
|
padding: 0 0 var(--fs-spacing-4);
|
|
213
|
+
|
|
214
|
+
@include media("<=tablet") {
|
|
215
|
+
[data-fs-buyer-portal-internal-search] {
|
|
216
|
+
width: 100%;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
[data-fs-bp-paginator-counter] {
|
|
220
|
+
display: none;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
184
223
|
}
|
|
185
224
|
|
|
186
225
|
[data-fs-bp-address-tabs-table] {
|
|
@@ -216,17 +255,32 @@
|
|
|
216
255
|
}
|
|
217
256
|
}
|
|
218
257
|
|
|
219
|
-
[data-fs-
|
|
258
|
+
[data-fs-address-details-info-line-value] {
|
|
259
|
+
@include media("<=tablet") {
|
|
260
|
+
white-space: nowrap;
|
|
261
|
+
overflow: hidden;
|
|
262
|
+
text-overflow: ellipsis;
|
|
263
|
+
width: 12.5rem;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
[data-fs-bp-address-tabs-paginator-last] {
|
|
220
268
|
display: flex;
|
|
269
|
+
justify-content: flex-end;
|
|
221
270
|
align-items: center;
|
|
222
|
-
|
|
271
|
+
|
|
223
272
|
margin-top: var(--fs-spacing-0);
|
|
224
273
|
padding: var(--fs-spacing-2) 0;
|
|
274
|
+
|
|
275
|
+
@include media(">=tablet") {
|
|
276
|
+
display: none;
|
|
277
|
+
}
|
|
225
278
|
}
|
|
226
279
|
|
|
227
280
|
[data-fs-bp-address-tabs-empty-state] {
|
|
228
281
|
--fs-button-border-radius: 24px;
|
|
229
|
-
--fs-button-padding: calc(var(--fs-spacing-1) * 1.25)
|
|
282
|
+
--fs-button-padding: calc(var(--fs-spacing-1) * 1.25)
|
|
283
|
+
calc(var(--fs-spacing-3) * 1.25);
|
|
230
284
|
}
|
|
231
285
|
|
|
232
286
|
&[data-fs-bp-address-location-list] {
|
|
@@ -3,15 +3,15 @@ import { useEffect } from "react";
|
|
|
3
3
|
import { useRouter } from "next/router";
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
InternalSearch,
|
|
7
6
|
HeaderInside,
|
|
8
|
-
Paginator,
|
|
9
7
|
Icon,
|
|
8
|
+
InternalSearch,
|
|
9
|
+
Paginator,
|
|
10
10
|
} from "../../../shared/components";
|
|
11
11
|
import { EmptyState } from "../../../shared/components/EmptyState/EmptyState";
|
|
12
12
|
import { Table } from "../../../shared/components/Table/Table";
|
|
13
13
|
import { getTableColumns } from "../../../shared/components/Table/utils/tableColumns";
|
|
14
|
-
import {
|
|
14
|
+
import { useBuyerPortal, useDrawerProps } from "../../../shared/hooks";
|
|
15
15
|
import { usePageItems } from "../../../shared/hooks/usePageItems";
|
|
16
16
|
import { ContractTabsLayout, GlobalLayout } from "../../../shared/layouts";
|
|
17
17
|
import { buyerPortalRoutes } from "../../../shared/utils/buyerPortalRoutes";
|
|
@@ -95,7 +95,7 @@ export const AddressLayout = ({
|
|
|
95
95
|
orgUnitId={orgUnit?.id ?? ""}
|
|
96
96
|
contractName={contract?.name ?? ""}
|
|
97
97
|
contractId={contract?.id ?? ""}
|
|
98
|
-
pageName="
|
|
98
|
+
pageName=""
|
|
99
99
|
person={{
|
|
100
100
|
image: undefined,
|
|
101
101
|
name: user?.name ?? "",
|
|
@@ -121,11 +121,12 @@ export const AddressLayout = ({
|
|
|
121
121
|
defaultValue={searchTerm}
|
|
122
122
|
textSearch={setSearchTerm}
|
|
123
123
|
/>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
<div data-fs-bp-top-counter>
|
|
125
|
+
<Paginator.Counter
|
|
126
|
+
total={total}
|
|
127
|
+
itemsLength={addresses.length}
|
|
128
|
+
/>
|
|
129
|
+
</div>
|
|
129
130
|
</div>
|
|
130
131
|
{!isLoading && addresses.length === 0 && searchTerm.length > 0 ? (
|
|
131
132
|
<EmptyState
|
|
@@ -196,6 +197,12 @@ export const AddressLayout = ({
|
|
|
196
197
|
</Table.Body>
|
|
197
198
|
</Table>
|
|
198
199
|
|
|
200
|
+
{!isLoading && (
|
|
201
|
+
<p data-fs-bp-addresses-paginator-last>
|
|
202
|
+
{`${addresses.length} of ${total}`}
|
|
203
|
+
</p>
|
|
204
|
+
)}
|
|
205
|
+
|
|
199
206
|
<div data-fs-bp-addresses-paginator>
|
|
200
207
|
{total > addresses.length && (
|
|
201
208
|
<Paginator.NextPageButton
|
|
@@ -205,11 +212,6 @@ export const AddressLayout = ({
|
|
|
205
212
|
{isLoading ? "Loading" : "Load More"}
|
|
206
213
|
</Paginator.NextPageButton>
|
|
207
214
|
)}
|
|
208
|
-
|
|
209
|
-
<Paginator.Counter
|
|
210
|
-
total={total}
|
|
211
|
-
itemsLength={addresses.length}
|
|
212
|
-
/>
|
|
213
215
|
</div>
|
|
214
216
|
</div>
|
|
215
217
|
)}
|
|
@@ -25,6 +25,25 @@
|
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
height: 100%;
|
|
27
27
|
|
|
28
|
+
@include media("<=tablet") {
|
|
29
|
+
padding: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-fs-bp-header-inside] {
|
|
33
|
+
[data-fs-bp-header-buttons] > button {
|
|
34
|
+
display: flex;
|
|
35
|
+
}
|
|
36
|
+
@include media("<=tablet") {
|
|
37
|
+
[data-fs-header-inside-button]:nth-child(3) {
|
|
38
|
+
position: fixed;
|
|
39
|
+
bottom: 20px;
|
|
40
|
+
right: 20px;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
z-index: 1000;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
28
47
|
[data-fs-bp-table-row-default-icon] {
|
|
29
48
|
display: flex;
|
|
30
49
|
justify-content: flex-end;
|
|
@@ -32,6 +51,19 @@
|
|
|
32
51
|
color: #0366dd;
|
|
33
52
|
}
|
|
34
53
|
|
|
54
|
+
[data-fs-bp-address-tabs-paginator-last] {
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: flex-end;
|
|
57
|
+
align-items: center;
|
|
58
|
+
|
|
59
|
+
margin-top: var(--fs-spacing-0);
|
|
60
|
+
padding: var(--fs-spacing-2) 0;
|
|
61
|
+
|
|
62
|
+
@include media(">=tablet") {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
35
67
|
[data-fs-topbar-actions-wrapper] {
|
|
36
68
|
display: flex;
|
|
37
69
|
flex-direction: row;
|
|
@@ -73,19 +105,38 @@
|
|
|
73
105
|
}
|
|
74
106
|
}
|
|
75
107
|
}
|
|
108
|
+
|
|
76
109
|
[data-fs-buyer-portal-address-filter] {
|
|
77
110
|
display: flex;
|
|
78
111
|
justify-content: space-between;
|
|
79
112
|
padding: 0 0 var(--fs-spacing-4);
|
|
80
|
-
}
|
|
81
113
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
114
|
+
@include media("<=tablet") {
|
|
115
|
+
[data-fs-buyer-portal-internal-search] {
|
|
116
|
+
width: 100%;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[data-fs-bp-paginator-counter] {
|
|
120
|
+
display: none;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
85
123
|
}
|
|
86
124
|
|
|
87
125
|
[data-fs-addresses-table] {
|
|
88
126
|
padding-bottom: var(--fs-spacing-9);
|
|
127
|
+
|
|
128
|
+
[data-fs-bp-addresses-paginator-last] {
|
|
129
|
+
display: flex;
|
|
130
|
+
justify-content: flex-end;
|
|
131
|
+
align-items: center;
|
|
132
|
+
|
|
133
|
+
margin-top: var(--fs-spacing-0);
|
|
134
|
+
padding: var(--fs-spacing-2) 0;
|
|
135
|
+
|
|
136
|
+
@include media(">=tablet") {
|
|
137
|
+
display: none;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
89
140
|
}
|
|
90
141
|
|
|
91
142
|
[data-fs-bp-table-head] {
|
|
@@ -99,8 +150,13 @@
|
|
|
99
150
|
[data-fs-bp-addresses-paginator] {
|
|
100
151
|
display: flex;
|
|
101
152
|
align-items: center;
|
|
102
|
-
justify-content:
|
|
103
|
-
margin-top: var(--fs-spacing-
|
|
153
|
+
justify-content: flex-start;
|
|
154
|
+
margin-top: var(--fs-spacing-2);
|
|
104
155
|
padding: var(--fs-spacing-2) 0;
|
|
156
|
+
|
|
157
|
+
@include media("<=phonemid") {
|
|
158
|
+
padding: var(--fs-spacing-3) 0;
|
|
159
|
+
margin-bottom: 5rem;
|
|
160
|
+
}
|
|
105
161
|
}
|
|
106
162
|
}
|
|
@@ -23,23 +23,13 @@ export const Pagination = ({
|
|
|
23
23
|
</Button>
|
|
24
24
|
)}
|
|
25
25
|
|
|
26
|
-
{variant === "counter"
|
|
27
|
-
|
|
28
|
-
{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</span>
|
|
34
|
-
) : (
|
|
35
|
-
<span data-fs-bp-pagination-span>
|
|
36
|
-
{loading ? (
|
|
37
|
-
<Skeleton size={{ width: "3.75rem", height: "1.25rem" }} />
|
|
38
|
-
) : (
|
|
39
|
-
`${currentCount} of ${total}`
|
|
40
|
-
)}
|
|
41
|
-
</span>
|
|
42
|
-
)}
|
|
26
|
+
<span data-fs-bp-counter-bottom={variant === "counter"}>
|
|
27
|
+
{loading ? (
|
|
28
|
+
<Skeleton size={{ width: "3.75rem", height: "1.25rem" }} />
|
|
29
|
+
) : (
|
|
30
|
+
`${currentCount} of ${total}`
|
|
31
|
+
)}
|
|
32
|
+
</span>
|
|
43
33
|
</div>
|
|
44
34
|
);
|
|
45
35
|
};
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
[data-fs-bp-
|
|
20
|
+
[data-fs-bp-counter-bottom="false"] {
|
|
21
21
|
display: inline-block;
|
|
22
22
|
font-size: var(--fs-text-size-1);
|
|
23
23
|
font-weight: var(--fs-text-weight-medium);
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
[data-fs-buyer-portal-internal-search] {
|
|
30
30
|
width: 100% !important;
|
|
31
31
|
}
|
|
32
|
-
& > [data-fs-bp-counter-bottom] {
|
|
32
|
+
& > [data-fs-bp-counter-bottom="true"] {
|
|
33
33
|
display: none !important;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
& > [data-fs-bp-counter-bottom] {
|
|
37
|
+
& > [data-fs-bp-counter-bottom="true"] {
|
|
38
38
|
display: block;
|
|
39
39
|
text-align: end;
|
|
40
40
|
}
|