@vtex/faststore-plugin-buyer-portal 1.1.94 → 1.1.96
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/features/addresses/clients/AddressesClient.ts +2 -2
- package/src/features/addresses/components/AddressForm/AddressForm.tsx +0 -15
- package/src/features/addresses/components/AddressInfoDisplay/AddressInfoDisplay.tsx +0 -1
- package/src/features/addresses/components/AddressLocationsList/AddressLocationsList.tsx +28 -39
- package/src/features/addresses/components/AddressRecipientsList/AddressRecipientsList.tsx +42 -42
- package/src/features/addresses/components/CreateAddressDrawer/CreateAddressDrawer.tsx +0 -2
- package/src/features/addresses/layouts/AddressDetailsLayout/address-details-layout.scss +285 -286
- package/src/features/addresses/layouts/AddressesLayout/AddressesLayout.tsx +26 -29
- package/src/features/addresses/layouts/AddressesLayout/addresses-layout.scss +144 -151
- package/src/features/addresses/types/AddressData.ts +3 -3
- package/src/features/budgets/components/BudgetAllocationsSelection/BudgetAllocationsSelection.tsx +61 -57
- package/src/features/budgets/components/BudgetAllocationsSelection/budget-allocations-selection.scss +131 -232
- package/src/features/budgets/components/BudgetAllocationsTable/BudgetAllocationsTable.tsx +104 -91
- package/src/features/budgets/components/BudgetAllocationsTable/budget-allocations-table.scss +80 -182
- package/src/features/budgets/components/BudgetsTable/BudgetsTable.tsx +90 -107
- package/src/features/budgets/components/BudgetsTable/budgets-table.scss +128 -126
- package/src/features/budgets/layouts/BudgetsLayout/BudgetsLayout.tsx +0 -15
- package/src/features/buying-policies/layouts/BuyingPoliciesLayout/BuyingPoliciesLayout.tsx +61 -46
- package/src/features/buying-policies/layouts/BuyingPoliciesLayout/buying-policies-layout.scss +64 -70
- package/src/features/collections/components/CollectionsTable/CollectionsTable.tsx +12 -18
- package/src/features/collections/components/CollectionsTable/collections-table.scss +138 -118
- package/src/features/collections/components/table/AddCollectionsDrawerTable.tsx +48 -54
- package/src/features/collections/components/table/add-collections-drawer-table.scss +57 -56
- package/src/features/credit-cards/layouts/CreditCardsLayout/CreditCardLayout.tsx +55 -61
- package/src/features/credit-cards/layouts/CreditCardsLayout/credit-card-layout.scss +63 -153
- package/src/features/payment-methods/components/AddPaymentMethodsDrawer/AddPaymentMethodsDrawer.tsx +58 -49
- package/src/features/payment-methods/components/AddPaymentMethodsDrawer/add-payment-methods-drawer.scss +58 -63
- package/src/features/payment-methods/layouts/PaymentMethodsLayout/PaymentMethodsLayout.tsx +15 -12
- package/src/features/roles/layout/RoleDetailsLayout/RoleDetailsLayout.tsx +57 -26
- package/src/features/roles/layout/RoleDetailsLayout/role-details-layout.scss +77 -0
- package/src/features/roles/layout/RolesLayout/RolesLayout.tsx +4 -12
- package/src/features/roles/layout/RolesLayout/roles-layout.scss +8 -22
- package/src/features/shared/components/CustomField/table/CustomFieldTable.tsx +67 -110
- package/src/features/shared/components/CustomField/table/custom-field-table.scss +39 -144
- package/src/features/shared/components/IconBookmarked/IconBookmarked.tsx +9 -0
- package/src/features/shared/components/IconBookmarked/icon-bookmarked.scss +9 -0
- package/src/features/shared/components/Table/Table.tsx +7 -2
- package/src/features/shared/components/Table/TableCell/TableCell.tsx +15 -3
- package/src/features/shared/components/Table/TableCell/table-cell.scss +34 -0
- package/src/features/shared/components/Table/TableHead/TableHead.tsx +34 -6
- package/src/features/shared/components/Table/TableHead/table-head.scss +53 -49
- package/src/features/shared/components/Table/TableLoading/TableLoading.tsx +16 -6
- package/src/features/shared/components/Table/TableLoading/table-loading.scss +13 -8
- package/src/features/shared/components/Table/TableRow/TableRow.tsx +65 -42
- package/src/features/shared/components/Table/TableRow/table-row.scss +104 -68
- package/src/features/shared/components/Table/table.scss +11 -6
- package/src/features/shared/components/Table/utils/tableColumns.ts +30 -33
- package/src/features/shared/components/index.ts +1 -0
- package/src/features/shared/utils/addresLabelToPropMapping.ts +0 -1
- package/src/features/users/layouts/UsersLayout/UsersLayout.tsx +20 -27
- package/src/themes/layouts.scss +1 -0
|
@@ -1,291 +1,290 @@
|
|
|
1
1
|
[data-fs-address-details-section] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
2
|
+
@import "@faststore/ui/src/components/molecules/Toggle/styles.scss";
|
|
3
|
+
@import "../../../shared/components/InternalTopbar/internal-top-bar.scss";
|
|
4
|
+
@import "../../components/EditAddressDrawer/edit-address-drawer.scss";
|
|
5
|
+
@import "../../../shared/components/HeaderInside/header-inside.scss";
|
|
6
|
+
@import "../../../shared/components/InternalSearch/internal-search.scss";
|
|
7
|
+
@import "../../../shared/components/Table/table.scss";
|
|
8
|
+
@import "../../../shared/components/EmptyState/empty-state.scss";
|
|
9
|
+
@import "../../../shared/components/Paginator/paginator.scss";
|
|
10
|
+
@import "../../components//AddressForm/address-form.scss";
|
|
11
|
+
|
|
12
|
+
height: 100%;
|
|
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
|
+
|
|
25
|
+
[data-fs-address-details-actions-wrapper] {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: var(--fs-spacing-1);
|
|
29
|
+
|
|
30
|
+
[data-fs-address-details-status-label] {
|
|
31
|
+
font-weight: var(--fs-text-weight-medium);
|
|
32
|
+
font-size: var(--fs-text-size-1);
|
|
33
|
+
line-height: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-fs-address-details-dropdown-trigger] {
|
|
37
|
+
margin-left: var(--fs-spacing-1);
|
|
38
|
+
[data-fs-address-details-dropdown-trigger-icon] {
|
|
39
|
+
color: #858585;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-fs-address-details-section-header] {
|
|
45
|
+
width: 100%;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
padding: var(--fs-spacing-4) 0;
|
|
50
|
+
|
|
51
|
+
[data-fs-address-details-title] {
|
|
52
|
+
font-weight: var(--fs-text-weight-semibold);
|
|
53
|
+
font-size: var(--fs-text-size-2);
|
|
54
|
+
line-height: var(--fs-spacing-4);
|
|
55
|
+
|
|
56
|
+
[data-fs-address-details-complement] {
|
|
57
|
+
color: #707070;
|
|
58
|
+
margin-left: var(--fs-spacing-1);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[data-fs-address-details-info-wrapper] {
|
|
64
|
+
height: 100%;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
|
|
68
|
+
[data-fs-address-details-actions] {
|
|
69
|
+
display: flex;
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
align-items: center;
|
|
72
|
+
flex-direction: row;
|
|
73
|
+
margin-bottom: var(--fs-text-size-7);
|
|
74
|
+
@include media("<=tablet") {
|
|
75
|
+
flex-direction: column-reverse;
|
|
76
|
+
gap: 0.625rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[data-fs-bp-tab-bar] {
|
|
80
|
+
width: fit-content;
|
|
81
|
+
border-radius: var(--fs-border-radius-pill);
|
|
82
|
+
border: var(--fs-border-width);
|
|
83
|
+
padding: var(--fs-spacing-0);
|
|
84
|
+
gap: var(--fs-spacing-0);
|
|
85
|
+
border-style: solid;
|
|
86
|
+
border-color: #e0e0e0;
|
|
87
|
+
|
|
88
|
+
[data-fs-bp-tab-option] {
|
|
89
|
+
padding: 0.375rem var(--fs-text-size-3);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-fs-bp-tab-option-is-active="true"] {
|
|
93
|
+
background-color: #ebebeb;
|
|
94
|
+
color: black !important;
|
|
95
|
+
border-radius: var(--fs-border-radius-pill);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[data-fs-address-details-button] {
|
|
100
|
+
padding: var(--fs-spacing-1) var(--fs-spacing-3);
|
|
101
|
+
color: #0366dd;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
background-color: white;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
|
|
107
|
+
font-weight: var(--fs-text-weight-semibold);
|
|
108
|
+
font-size: var(--fs-text-size-2);
|
|
109
|
+
line-height: var(--fs-spacing-4);
|
|
110
|
+
|
|
111
|
+
border-radius: var(--fs-border-radius-pill);
|
|
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
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[data-fs-address-details-info-line] {
|
|
123
|
+
padding: 1.375rem 0;
|
|
124
|
+
border-bottom: var(--fs-border-width) solid #e5e5e5;
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
|
|
128
|
+
font-weight: var(--fs-text-weight-medium);
|
|
129
|
+
font-size: var(--fs-text-size-1);
|
|
130
|
+
line-height: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
131
|
+
|
|
132
|
+
@include media("<=tablet") {
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
align-items: normal;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&[data-fs-address-details-info-line-first="true"] {
|
|
138
|
+
border-top: var(--fs-border-width) solid #e5e5e5;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[data-fs-address-details-info-line-label] {
|
|
142
|
+
color: #707070;
|
|
143
|
+
width: calc(var(--fs-spacing-13) * 2);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[data-fs-address-details-info-line-value] {
|
|
147
|
+
color: #000000;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
[data-fs-address-details-locations] {
|
|
152
|
+
border: var(--fs-border-width) solid #e5e5e5;
|
|
153
|
+
border-radius: var(--fs-border-radius-medium);
|
|
154
|
+
margin-bottom: var(--fs-spacing-8);
|
|
155
|
+
|
|
156
|
+
[data-fs-address-details-location] {
|
|
157
|
+
padding: var(--fs-spacing-2) var(--fs-spacing-3);
|
|
158
|
+
border-bottom: var(--fs-border-width) solid #e5e5e5;
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
justify-content: space-between;
|
|
162
|
+
|
|
163
|
+
font-weight: var(--fs-text-weight-medium);
|
|
164
|
+
font-size: var(--fs-text-size-1);
|
|
165
|
+
line-height: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
166
|
+
color: #000000;
|
|
167
|
+
|
|
168
|
+
[data-fs-address-details-location-actions] {
|
|
169
|
+
display: flex;
|
|
170
|
+
align-items: center;
|
|
171
|
+
gap: calc(var(--fs-spacing-2) - var(--fs-spacing-0));
|
|
172
|
+
|
|
173
|
+
button {
|
|
174
|
+
height: var(--fs-spacing-6);
|
|
175
|
+
width: var(--fs-spacing-6);
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
justify-content: center;
|
|
179
|
+
|
|
180
|
+
&:hover {
|
|
181
|
+
background-color: #f5f5f5;
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
border-radius: var(--fs-border-radius-pill);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
svg {
|
|
187
|
+
color: #707070;
|
|
188
|
+
min-height: var(--fs-spacing-4);
|
|
189
|
+
min-width: var(--fs-spacing-4);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
[data-fs-bp-address-tabs-list] {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
199
|
+
@import "@faststore/ui/src/components/atoms/Icon/styles.scss";
|
|
200
|
+
@import "@faststore/ui/src/components/atoms/Button/styles.scss";
|
|
201
|
+
@import "../../components/EditRecipientAddressDrawer/edit-recipient-address-drawer.scss";
|
|
202
|
+
|
|
203
|
+
height: 100%;
|
|
204
|
+
display: flex;
|
|
205
|
+
flex-direction: column;
|
|
206
|
+
flex: 1;
|
|
207
|
+
|
|
208
|
+
[data-fs-bp-address-tabs-filter] {
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
justify-content: space-between;
|
|
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
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
[data-fs-bp-address-tabs-table] {
|
|
226
|
+
padding-bottom: var(--fs-spacing-9);
|
|
227
|
+
|
|
228
|
+
[data-fs-bp-address-tabs-actions] {
|
|
229
|
+
display: flex;
|
|
230
|
+
align-items: flex-end;
|
|
231
|
+
justify-self: flex-end;
|
|
232
|
+
|
|
233
|
+
[data-fs-button][data-fs-button-variant="tertiary"]:hover {
|
|
234
|
+
[data-fs-button-wrapper] {
|
|
235
|
+
background-color: #f5f5f5;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
[data-fs-button][data-fs-button-variant="tertiary"]:focus {
|
|
240
|
+
[data-fs-button-wrapper] {
|
|
241
|
+
background-color: unset;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
[data-fs-bp-address-tabs-actions-icon] {
|
|
247
|
+
flex: none;
|
|
248
|
+
--fs-button-height: var(--fs-spacing-6);
|
|
249
|
+
--fs-button-border-radius: 50%;
|
|
250
|
+
|
|
251
|
+
[data-fs-button-icon] {
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
color: #1f1f1f;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
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] {
|
|
268
|
+
display: flex;
|
|
269
|
+
justify-content: flex-end;
|
|
270
|
+
align-items: center;
|
|
271
|
+
|
|
272
|
+
margin-top: var(--fs-spacing-0);
|
|
273
|
+
padding: var(--fs-spacing-2) 0;
|
|
274
|
+
|
|
275
|
+
@include media(">=tablet") {
|
|
276
|
+
display: none;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
[data-fs-bp-address-tabs-empty-state] {
|
|
281
|
+
--fs-button-border-radius: 24px;
|
|
282
|
+
--fs-button-padding: calc(var(--fs-spacing-1) * 1.25) calc(var(--fs-spacing-3) * 1.25);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&[data-fs-bp-address-location-list] {
|
|
286
|
+
[data-fs-empty-state-section] {
|
|
287
|
+
gap: var(--fs-spacing-4);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
291
290
|
}
|
|
@@ -4,7 +4,7 @@ import { useRouter } from "next/router";
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
HeaderInside,
|
|
7
|
-
|
|
7
|
+
IconBookmarked,
|
|
8
8
|
InternalSearch,
|
|
9
9
|
Paginator,
|
|
10
10
|
} from "../../../shared/components";
|
|
@@ -88,6 +88,20 @@ export const AddressLayout = ({
|
|
|
88
88
|
currentContract: contract,
|
|
89
89
|
} = useBuyerPortal();
|
|
90
90
|
|
|
91
|
+
const columns = getTableColumns({
|
|
92
|
+
nameColumnSize: "18.125rem",
|
|
93
|
+
actionsLength: 2,
|
|
94
|
+
extraColumns: [
|
|
95
|
+
{
|
|
96
|
+
key: "type",
|
|
97
|
+
label: "Type",
|
|
98
|
+
align: "left",
|
|
99
|
+
hideOnScreenSize: "phonemid",
|
|
100
|
+
size: "100%",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
});
|
|
104
|
+
|
|
91
105
|
return (
|
|
92
106
|
<GlobalLayout>
|
|
93
107
|
<ContractTabsLayout
|
|
@@ -135,17 +149,12 @@ export const AddressLayout = ({
|
|
|
135
149
|
/>
|
|
136
150
|
) : (
|
|
137
151
|
<div data-fs-addresses-table>
|
|
138
|
-
<Table>
|
|
139
|
-
<Table.Head
|
|
140
|
-
columns={getTableColumns({
|
|
141
|
-
withType: true,
|
|
142
|
-
withActions: true,
|
|
143
|
-
})}
|
|
144
|
-
/>
|
|
152
|
+
<Table layoutFixed>
|
|
153
|
+
<Table.Head columns={columns} />
|
|
145
154
|
|
|
146
155
|
<Table.Body>
|
|
147
156
|
{isLoading ? (
|
|
148
|
-
<Table.Loading />
|
|
157
|
+
<Table.Loading columns={columns.length} />
|
|
149
158
|
) : (
|
|
150
159
|
addresses.map(({ id, ...address }) => (
|
|
151
160
|
<Table.Row
|
|
@@ -155,32 +164,20 @@ export const AddressLayout = ({
|
|
|
155
164
|
iconName="LocalPostOffice"
|
|
156
165
|
iconSize={20}
|
|
157
166
|
children={
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
))
|
|
165
|
-
: null
|
|
167
|
+
<Table.Cell hideOnScreenSize="phonemid">
|
|
168
|
+
{Array.isArray(address.types) &&
|
|
169
|
+
address.types.length > 0 ? (
|
|
170
|
+
<span>{address.types.join(", ")}</span>
|
|
171
|
+
) : null}
|
|
172
|
+
</Table.Cell>
|
|
166
173
|
}
|
|
167
174
|
href={buyerPortalRoutes.addressDetails({
|
|
168
175
|
orgUnitId: orgUnit?.id ?? "",
|
|
169
176
|
contractId: contract?.id ?? "",
|
|
170
177
|
addressId: id,
|
|
171
178
|
})}
|
|
172
|
-
|
|
173
|
-
address.isDefault ?
|
|
174
|
-
<div data-fs-bp-table-row-default-icon>
|
|
175
|
-
<Icon
|
|
176
|
-
name="Bookmark"
|
|
177
|
-
width={20}
|
|
178
|
-
height={20}
|
|
179
|
-
/>
|
|
180
|
-
</div>
|
|
181
|
-
) : (
|
|
182
|
-
<br />
|
|
183
|
-
)
|
|
179
|
+
actionIcons={
|
|
180
|
+
address.isDefault ? <IconBookmarked /> : null
|
|
184
181
|
}
|
|
185
182
|
dropdownMenu={
|
|
186
183
|
<AddressDropdownMenu
|