@vtex/faststore-plugin-buyer-portal 1.3.24 → 1.3.25
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 +12 -2
- package/package.json +1 -1
- package/src/features/budgets/components/BudgetDeleteDrawer/budget-delete-drawer.scss +0 -13
- package/src/features/budgets/components/BudgetEditNotificationDrawer/budget-edit-notification-drawer.scss +0 -13
- package/src/features/budgets/components/CreateBudgetAllocationDrawer/CreateBudgetAllocationDrawer.tsx +6 -1
- package/src/features/budgets/components/CreateBudgetAllocationDrawer/create-budget-allocation-drawer.scss +0 -12
- package/src/features/budgets/components/CreateBudgetDrawer/CreateBudgetDrawer.tsx +6 -1
- package/src/features/budgets/components/DeleteBudgetAllocationDrawer/delete-budget-allocations.scss +0 -14
- package/src/features/budgets/components/EditBudgetDrawer/EditBudgetDrawer.tsx +6 -1
- package/src/features/budgets/components/EditBudgetDrawer/edit-budget-drawer.scss +0 -3
- package/src/features/budgets/layouts/BudgetsDetailsLayout/budget-details-layout.scss +0 -2
- package/src/features/buying-policies/components/BasicBuyingPolicyDrawer/BasicBuyingPolicyDrawer.tsx +6 -1
- package/src/features/buying-policies/components/BasicBuyingPolicyDrawer/basic-buying-policy-drawer.scss +0 -5
- package/src/features/org-units/components/DeleteOrgUnitDrawer/DeleteOrgUnitDrawer.tsx +2 -1
- package/src/features/org-units/components/DeleteOrgUnitDrawer/delete-org-unit-drawer.scss +0 -8
- package/src/features/payment-methods/components/AddPaymentMethodsDrawer/AddPaymentMethodsDrawer.tsx +6 -1
- package/src/features/payment-methods/components/AddPaymentMethodsDrawer/add-payment-methods-drawer.scss +0 -11
- package/src/features/product-assortment/components/AddProductAssortmentDrawer/AddProductAssortmentDrawer.tsx +2 -1
- package/src/features/product-assortment/components/AddProductAssortmentDrawer/add-product-assortment-drawer.scss +0 -5
- package/src/features/shared/components/BasicDrawer/BasicDrawer.tsx +5 -1
- package/src/features/shared/components/BasicDrawer/basic-drawer.scss +10 -2
- package/src/features/shared/layouts/BaseTabsLayout/sidebar-drawer/sidebar-drawer.scss +0 -9
- package/src/features/shared/utils/constants.ts +1 -1
- package/src/features/users/components/CreateUserDrawer/CreateUserDrawer.tsx +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.3.25] - 2025-11-25
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add default `size` prop to `BasicDrawer` component
|
|
15
|
+
- Set default size to `"partial"` - min-width with 30rem (480px)
|
|
16
|
+
- Added CSS rules to apply max-width of 960px for large-sized drawers
|
|
17
|
+
- Updated existing drawer components to explicitly specify `size="large"`
|
|
18
|
+
- Improved drawer sizing consistency across the application
|
|
19
|
+
|
|
10
20
|
## [1.3.24] - 2025-11-25
|
|
11
21
|
|
|
12
22
|
### Added
|
|
@@ -102,7 +112,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
102
112
|
## [1.3.9] - 2025-10-21
|
|
103
113
|
|
|
104
114
|
### Added
|
|
105
|
-
|
|
106
115
|
- Add Changelog entry check on actions
|
|
107
116
|
|
|
108
117
|
## [1.3.8] - 2025-10-17
|
|
@@ -247,7 +256,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
247
256
|
- Add CHANGELOG file
|
|
248
257
|
- Add README file
|
|
249
258
|
|
|
250
|
-
[unreleased]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.
|
|
259
|
+
[unreleased]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.25...HEAD
|
|
251
260
|
[1.2.3]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.2.2...1.2.3
|
|
252
261
|
[1.2.3]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.2.3
|
|
253
262
|
[1.2.4]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.2.4
|
|
@@ -262,6 +271,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
262
271
|
|
|
263
272
|
# <<<<<<< HEAD
|
|
264
273
|
|
|
274
|
+
[1.3.25]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.24...v1.3.25
|
|
265
275
|
[1.3.24]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.23...v1.3.24
|
|
266
276
|
[1.3.23]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.22...v1.3.23
|
|
267
277
|
[1.3.22]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.21...v1.3.22
|
package/package.json
CHANGED
|
@@ -4,19 +4,6 @@
|
|
|
4
4
|
@import "../../../shared/components/InputText/input-text.scss";
|
|
5
5
|
@import "../../../shared/components/ErrorMessage/error-message.scss";
|
|
6
6
|
|
|
7
|
-
&[data-fs-bp-basic-drawer][data-fs-slide-over-size="partial"] {
|
|
8
|
-
width: 100%;
|
|
9
|
-
max-width: none;
|
|
10
|
-
|
|
11
|
-
@include media(">=tablet") {
|
|
12
|
-
max-width: 30rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@include media(">=notebook") {
|
|
16
|
-
max-width: 40rem;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
7
|
[data-fs-bp-basic-drawer-body] {
|
|
21
8
|
overflow-y: auto;
|
|
22
9
|
}
|
|
@@ -11,19 +11,6 @@
|
|
|
11
11
|
gap: var(--fs-spacing-1);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
&[data-fs-bp-basic-drawer][data-fs-slide-over-size="partial"] {
|
|
15
|
-
width: 100%;
|
|
16
|
-
max-width: none;
|
|
17
|
-
|
|
18
|
-
@include media(">=tablet") {
|
|
19
|
-
max-width: 30rem;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@include media(">=notebook") {
|
|
23
|
-
max-width: 40rem;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
14
|
[data-fs-bp-basic-drawer-body] {
|
|
28
15
|
overflow-y: auto;
|
|
29
16
|
}
|
|
@@ -95,7 +95,12 @@ export const CreateBudgetAllocationDrawer = ({
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
return (
|
|
98
|
-
<BasicDrawer
|
|
98
|
+
<BasicDrawer
|
|
99
|
+
data-fs-bp-create-budget-drawer
|
|
100
|
+
close={close}
|
|
101
|
+
size="large"
|
|
102
|
+
{...props}
|
|
103
|
+
>
|
|
99
104
|
<BasicDrawer.Heading
|
|
100
105
|
title={
|
|
101
106
|
<div data-fs-bp-create-budget-drawer-header-arrow>
|
|
@@ -16,18 +16,6 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
&[data-fs-bp-basic-drawer] {
|
|
19
|
-
width: 100% !important;
|
|
20
|
-
max-width: none !important;
|
|
21
|
-
|
|
22
|
-
@include media(">=tablet") {
|
|
23
|
-
max-width: 32rem !important;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@include media(">=notebook") {
|
|
27
|
-
max-width: 60rem !important;
|
|
28
|
-
width: 100% !important;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
19
|
& > [data-fs-bp-basic-drawer-footer] {
|
|
32
20
|
justify-content: flex-end !important;
|
|
33
21
|
gap: var(--fs-spacing-1);
|
|
@@ -278,7 +278,12 @@ export const CreateBudgetDrawer = ({
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
return (
|
|
281
|
-
<BasicDrawer
|
|
281
|
+
<BasicDrawer
|
|
282
|
+
data-fs-bp-create-budget-drawer
|
|
283
|
+
close={close}
|
|
284
|
+
size="large"
|
|
285
|
+
{...props}
|
|
286
|
+
>
|
|
282
287
|
<BasicDrawer.Heading
|
|
283
288
|
data-fs-bp-create-budget-drawer-step-success={step === "confirmation"}
|
|
284
289
|
title={
|
package/src/features/budgets/components/DeleteBudgetAllocationDrawer/delete-budget-allocations.scss
CHANGED
|
@@ -2,18 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
[data-fs-bp-delete-allocation-drawer] {
|
|
4
4
|
@import "../../../shared/components/InputText/input-text.scss";
|
|
5
|
-
|
|
6
|
-
&[data-fs-bp-basic-drawer] {
|
|
7
|
-
width: 100%;
|
|
8
|
-
max-width: none;
|
|
9
|
-
|
|
10
|
-
@include media(">=tablet") {
|
|
11
|
-
max-width: 30rem;
|
|
12
|
-
min-width: 30rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@include media(">=notebook") {
|
|
16
|
-
max-width: 40rem;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
5
|
}
|
|
@@ -171,7 +171,12 @@ export const EditBudgetDrawer = ({
|
|
|
171
171
|
};
|
|
172
172
|
|
|
173
173
|
return (
|
|
174
|
-
<BasicDrawer
|
|
174
|
+
<BasicDrawer
|
|
175
|
+
data-fs-bp-edit-budget-drawer
|
|
176
|
+
close={close}
|
|
177
|
+
size="large"
|
|
178
|
+
{...props}
|
|
179
|
+
>
|
|
175
180
|
<BasicDrawer.Heading title="Edit Budget Settings" onClose={close} />
|
|
176
181
|
|
|
177
182
|
<BasicDrawer.Body>
|
package/src/features/buying-policies/components/BasicBuyingPolicyDrawer/BasicBuyingPolicyDrawer.tsx
CHANGED
|
@@ -192,7 +192,12 @@ export const BasicBuyingPolicyDrawer = ({
|
|
|
192
192
|
const isConfirmButtonEnabled = isAllFieldsFilled && !isLoading;
|
|
193
193
|
|
|
194
194
|
return (
|
|
195
|
-
<BasicDrawer
|
|
195
|
+
<BasicDrawer
|
|
196
|
+
data-fs-bp-basic-buying-policy-drawer
|
|
197
|
+
close={close}
|
|
198
|
+
size="large"
|
|
199
|
+
{...props}
|
|
200
|
+
>
|
|
196
201
|
<BasicDrawer.Heading title={drawerTitle} onClose={close} />
|
|
197
202
|
|
|
198
203
|
<BasicDrawer.Body>
|
|
@@ -10,11 +10,6 @@
|
|
|
10
10
|
@import "@faststore/ui/src/components/molecules/Tooltip/styles.scss";
|
|
11
11
|
@import "@faststore/ui/src/components/molecules/Dropdown/styles.scss";
|
|
12
12
|
|
|
13
|
-
&[data-fs-bp-basic-drawer][data-fs-slide-over-size="partial"] {
|
|
14
|
-
--fs-slide-over-partial-max-width-notebook: 60rem;
|
|
15
|
-
min-width: var(--fs-slide-over-partial-max-width-notebook);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
13
|
[data-fs-bp-autocomplete-dropdown] {
|
|
19
14
|
[data-fs-bp-input-text-input] {
|
|
20
15
|
top: 0;
|
|
@@ -73,6 +73,7 @@ export const DeleteOrgUnitDrawer = ({
|
|
|
73
73
|
data-fs-bp-delete-org-unit-drawer
|
|
74
74
|
data-fs-bp-delete-org-unit-drawer-has-content={hasChildren}
|
|
75
75
|
close={close}
|
|
76
|
+
size={hasChildren ? "large" : "partial"}
|
|
76
77
|
{...props}
|
|
77
78
|
>
|
|
78
79
|
<BasicDrawer.Heading title="Delete organizational unit" onClose={close} />
|
|
@@ -112,7 +113,7 @@ export const DeleteOrgUnitDrawer = ({
|
|
|
112
113
|
<p data-fs-bp-delete-org-unit-drawer-message>
|
|
113
114
|
Before deleting
|
|
114
115
|
<span data-fs-bp-delete-org-unit-drawer-message-name>
|
|
115
|
-
{` ${name}
|
|
116
|
+
{` ${name}`}
|
|
116
117
|
</span>
|
|
117
118
|
, you must first remove all child organizational units{" "}
|
|
118
119
|
{users?.length ? "and users" : ""}.
|
|
@@ -6,14 +6,6 @@
|
|
|
6
6
|
@import "../../../shared/components/ErrorMessage/error-message.scss";
|
|
7
7
|
@import "../OrgUnitsHierarchyTree/org-units-hierarchy-tree.scss";
|
|
8
8
|
|
|
9
|
-
&[data-fs-bp-delete-org-unit-drawer-has-content="true"] {
|
|
10
|
-
@include media(">=tablet") {
|
|
11
|
-
width: 75vw !important;
|
|
12
|
-
min-width: 31.25rem !important;
|
|
13
|
-
max-width: 75vw !important;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
9
|
[data-fs-bp-delete-org-unit-drawer-message] {
|
|
18
10
|
font-weight: var(--fs-text-weight-regular);
|
|
19
11
|
font-size: var(--fs-text-size-1);
|
package/src/features/payment-methods/components/AddPaymentMethodsDrawer/AddPaymentMethodsDrawer.tsx
CHANGED
|
@@ -205,7 +205,12 @@ export const AddPaymentMethodsDrawer = ({
|
|
|
205
205
|
};
|
|
206
206
|
|
|
207
207
|
return (
|
|
208
|
-
<BasicDrawer
|
|
208
|
+
<BasicDrawer
|
|
209
|
+
data-fs-bp-add-payment-methods-drawer
|
|
210
|
+
close={close}
|
|
211
|
+
size="large"
|
|
212
|
+
{...props}
|
|
213
|
+
>
|
|
209
214
|
<BasicDrawer.Heading title="Add payment methods" onClose={close} />
|
|
210
215
|
|
|
211
216
|
<BasicDrawer.Body>
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
@import "../SearchPaymentMethods/search-payment-methods.scss";
|
|
2
2
|
|
|
3
3
|
[data-fs-bp-add-payment-methods-drawer] {
|
|
4
|
-
&[data-fs-bp-basic-drawer][data-fs-slide-over-size="partial"] {
|
|
5
|
-
width: 66%;
|
|
6
|
-
min-width: 66%;
|
|
7
|
-
|
|
8
|
-
@include media(">=notebook") {
|
|
9
|
-
width: 60rem;
|
|
10
|
-
min-width: 60rem;
|
|
11
|
-
max-width: 60rem;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
4
|
[data-fs-payment-methods-drawer] {
|
|
16
5
|
@import "../../../shared/components/EmptyState/empty-state.scss";
|
|
17
6
|
@import "../../../shared/components/Table/table.scss";
|
|
@@ -70,8 +70,9 @@ export const AddProductAssortmentDrawer = ({
|
|
|
70
70
|
return (
|
|
71
71
|
<BasicDrawer
|
|
72
72
|
data-fs-bp-add-product-assortment-drawer
|
|
73
|
-
id="
|
|
73
|
+
id="add-product-assortment-drawer"
|
|
74
74
|
close={close}
|
|
75
|
+
size="large"
|
|
75
76
|
{...props}
|
|
76
77
|
>
|
|
77
78
|
<BasicDrawer.Heading title="Add product assortment" onClose={close} />
|
|
@@ -7,11 +7,6 @@
|
|
|
7
7
|
@import "../../../shared/components/Paginator/paginator.scss";
|
|
8
8
|
@import "../../components/table/add-product-assortment-drawer-table.scss";
|
|
9
9
|
|
|
10
|
-
&[data-fs-bp-basic-drawer] {
|
|
11
|
-
max-width: 60rem !important;
|
|
12
|
-
width: 100%;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
10
|
[data-fs-bp-add-product-assortment-text-drawer] {
|
|
16
11
|
display: block;
|
|
17
12
|
color: var(--fs-color-neutral-5);
|
|
@@ -14,6 +14,7 @@ export type BasicDrawerProps = Omit<DrawerProps, "open"> & {
|
|
|
14
14
|
id?: string;
|
|
15
15
|
isOpen: boolean;
|
|
16
16
|
onDismiss?: () => void;
|
|
17
|
+
size?: "full" | "partial" | "large";
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export const BasicDrawer = ({
|
|
@@ -21,16 +22,19 @@ export const BasicDrawer = ({
|
|
|
21
22
|
onDismiss,
|
|
22
23
|
id,
|
|
23
24
|
children,
|
|
25
|
+
size = "partial",
|
|
24
26
|
...props
|
|
25
27
|
}: BasicDrawerProps) => {
|
|
26
28
|
const { fadeOut } = useFadeEffect();
|
|
29
|
+
const isSizeLarge = size === "large";
|
|
27
30
|
return (
|
|
28
31
|
<SlideOver
|
|
29
32
|
isOpen={isOpen}
|
|
30
33
|
direction="rightSide"
|
|
31
|
-
size="
|
|
34
|
+
size={isSizeLarge ? "full" : size}
|
|
32
35
|
data-fs-bp-basic-drawer
|
|
33
36
|
data-fs-mobile-bottom-sheet
|
|
37
|
+
data-fs-bp-basic-drawer-large={isSizeLarge}
|
|
34
38
|
id={id}
|
|
35
39
|
onDismiss={onDismiss ?? fadeOut}
|
|
36
40
|
{...props}
|
|
@@ -64,12 +64,20 @@
|
|
|
64
64
|
width: 100%;
|
|
65
65
|
|
|
66
66
|
@include media(">=tablet") {
|
|
67
|
-
width:
|
|
68
|
-
min-width:
|
|
67
|
+
width: 30rem; // 480px
|
|
68
|
+
min-width: 3rem;
|
|
69
69
|
max-width: 100vw;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
&[data-fs-slide-over-size="full"] {
|
|
74
|
+
&[data-fs-bp-basic-drawer-large="true"] {
|
|
75
|
+
--fs-slide-over-partial-max-width-notebook: 60rem; // 960px
|
|
76
|
+
max-width: var(--fs-slide-over-partial-max-width-notebook);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
73
81
|
[data-fs-bp-basic-drawer-heading] {
|
|
74
82
|
width: 100%;
|
|
75
83
|
display: flex;
|
|
@@ -53,16 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
@include media(">=tablet") {
|
|
57
|
-
width: 30rem !important;
|
|
58
|
-
min-width: 30rem !important;
|
|
59
|
-
max-width: 30rem !important;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
56
|
@include media("<=tablet") {
|
|
63
|
-
width: 19rem !important;
|
|
64
|
-
min-width: 19rem !important;
|
|
65
|
-
max-width: 19rem !important;
|
|
66
57
|
height: 100% !important;
|
|
67
58
|
border-radius: 0 !important;
|
|
68
59
|
& > [data-fs-bp-basic-drawer-heading] {
|
|
@@ -298,9 +298,9 @@ export const CreateUserDrawer = ({
|
|
|
298
298
|
<br />
|
|
299
299
|
<p>
|
|
300
300
|
Users can only belong to one organizational unit at a time. To add
|
|
301
|
-
<a
|
|
302
|
-
{
|
|
303
|
-
</a>{" "}
|
|
301
|
+
<a
|
|
302
|
+
href={`/user/${userAlreadyInUse?.id}`}
|
|
303
|
+
>{` ${userAlreadyInUse?.name}`}</a>{" "}
|
|
304
304
|
to {orgUnitName}, go to their profile and move them from
|
|
305
305
|
{` ${userAlreadyInUse?.orgUnit}`}.
|
|
306
306
|
</p>
|