@vtex/faststore-plugin-buyer-portal 1.3.23 → 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 +19 -2
- package/package.json +1 -1
- package/src/features/addresses/layouts/AddressesLayout/addresses-layout.scss +12 -10
- 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/budgets/layouts/BudgetsLayout/budgets-layout.scss +15 -0
- 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/buying-policies/layouts/BuyingPoliciesLayout/buying-policies-layout.scss +1 -1
- package/src/features/credit-cards/layouts/CreditCardsLayout/credit-card-layout.scss +15 -0
- package/src/features/custom-fields/layouts/CustomFieldsLayout/custom-fields-layout.scss +15 -0
- 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/org-units/layouts/OrgUnitsLayout/org-units-layout.scss +15 -0
- 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/payment-methods/layouts/PaymentMethodsLayout/payment-methods-layout.scss +7 -6
- 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/product-assortment/layouts/ProductAssortmentLayout/product-assortment-layout.scss +15 -0
- 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/src/features/users/layouts/UsersLayout/users-layout.scss +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,22 @@ 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
|
+
|
|
20
|
+
## [1.3.24] - 2025-11-25
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- Adjusts the position of the **“+”** button in the responsive layout
|
|
25
|
+
|
|
10
26
|
## [1.3.23] - 2025-11-25
|
|
11
27
|
|
|
12
28
|
### Changed
|
|
@@ -96,7 +112,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
96
112
|
## [1.3.9] - 2025-10-21
|
|
97
113
|
|
|
98
114
|
### Added
|
|
99
|
-
|
|
100
115
|
- Add Changelog entry check on actions
|
|
101
116
|
|
|
102
117
|
## [1.3.8] - 2025-10-17
|
|
@@ -241,7 +256,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
241
256
|
- Add CHANGELOG file
|
|
242
257
|
- Add README file
|
|
243
258
|
|
|
244
|
-
[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
|
|
245
260
|
[1.2.3]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.2.2...1.2.3
|
|
246
261
|
[1.2.3]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.2.3
|
|
247
262
|
[1.2.4]: https://github.com/vtex/faststore-plugin-buyer-portal/releases/tag/1.2.4
|
|
@@ -256,6 +271,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
256
271
|
|
|
257
272
|
# <<<<<<< HEAD
|
|
258
273
|
|
|
274
|
+
[1.3.25]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.24...v1.3.25
|
|
275
|
+
[1.3.24]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.23...v1.3.24
|
|
259
276
|
[1.3.23]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.22...v1.3.23
|
|
260
277
|
[1.3.22]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.21...v1.3.22
|
|
261
278
|
[1.3.21]: https://github.com/vtex/faststore-plugin-buyer-portal/compare/v1.3.20...v1.3.21
|
package/package.json
CHANGED
|
@@ -26,25 +26,27 @@
|
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
height: 100%;
|
|
28
28
|
|
|
29
|
-
@include media("<=
|
|
30
|
-
padding: 0;
|
|
31
|
-
}
|
|
29
|
+
@include media("<=phonemid") {
|
|
30
|
+
padding: 0 0 var(--fs-spacing-7) 0;
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
display: flex;
|
|
36
|
-
}
|
|
37
|
-
@include media("<=tablet") {
|
|
38
|
-
[data-fs-header-inside-button]:nth-child(3) {
|
|
32
|
+
[data-fs-bp-header-inside] {
|
|
33
|
+
[data-fs-header-inside-button] {
|
|
39
34
|
position: fixed;
|
|
40
35
|
bottom: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
41
36
|
right: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
37
|
+
padding: var(--fs-spacing-2);
|
|
42
38
|
cursor: pointer;
|
|
43
|
-
z-index:
|
|
39
|
+
z-index: 10;
|
|
44
40
|
}
|
|
45
41
|
}
|
|
46
42
|
}
|
|
47
43
|
|
|
44
|
+
[data-fs-bp-header-inside] {
|
|
45
|
+
[data-fs-bp-header-buttons] > button {
|
|
46
|
+
display: flex;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
48
50
|
[data-fs-bp-address-tabs-paginator-last] {
|
|
49
51
|
display: flex;
|
|
50
52
|
justify-content: flex-end;
|
|
@@ -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>
|
|
@@ -15,6 +15,21 @@
|
|
|
15
15
|
|
|
16
16
|
width: 100%;
|
|
17
17
|
|
|
18
|
+
@include media("<=phonemid") {
|
|
19
|
+
padding-bottom: var(--fs-spacing-7);
|
|
20
|
+
|
|
21
|
+
[data-fs-bp-header-inside] {
|
|
22
|
+
[data-fs-header-inside-button] {
|
|
23
|
+
position: fixed;
|
|
24
|
+
bottom: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
25
|
+
right: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
26
|
+
padding: var(--fs-spacing-2);
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
z-index: 10;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
18
33
|
[data-fs-button] {
|
|
19
34
|
border-radius: var(--fs-border-radius-circle);
|
|
20
35
|
padding: 0;
|
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;
|
|
@@ -18,6 +18,21 @@
|
|
|
18
18
|
padding: 0;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
@include media("<=phonemid") {
|
|
22
|
+
padding-bottom: var(--fs-spacing-7);
|
|
23
|
+
|
|
24
|
+
[data-fs-bp-header-inside] {
|
|
25
|
+
[data-fs-header-inside-button] {
|
|
26
|
+
position: fixed;
|
|
27
|
+
bottom: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
28
|
+
right: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
29
|
+
padding: var(--fs-spacing-2);
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
z-index: 10;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
21
36
|
[data-fs-topbar-actions-wrapper] {
|
|
22
37
|
display: flex;
|
|
23
38
|
flex-direction: row;
|
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
padding: 0;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
@include media("<=phonemid") {
|
|
17
|
+
padding-bottom: var(--fs-spacing-7);
|
|
18
|
+
|
|
19
|
+
[data-fs-bp-header-inside] {
|
|
20
|
+
[data-fs-header-inside-button] {
|
|
21
|
+
position: fixed;
|
|
22
|
+
bottom: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
23
|
+
right: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
24
|
+
padding: var(--fs-spacing-2);
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
z-index: 10;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
16
31
|
[data-fs-bp-header-inside] {
|
|
17
32
|
#header-inside-button-ghost {
|
|
18
33
|
background-color: transparent;
|
|
@@ -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);
|
|
@@ -16,6 +16,21 @@
|
|
|
16
16
|
@import "../../../shared/components/HierarchyTree/hierarchy-tree.scss";
|
|
17
17
|
@import "../../../shared/components/InternalSearch/internal-search.scss";
|
|
18
18
|
|
|
19
|
+
@include media("<=phonemid") {
|
|
20
|
+
padding-bottom: var(--fs-spacing-7);
|
|
21
|
+
|
|
22
|
+
[data-fs-bp-header-inside] {
|
|
23
|
+
[data-fs-header-inside-button] {
|
|
24
|
+
position: fixed;
|
|
25
|
+
bottom: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
26
|
+
right: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
27
|
+
padding: var(--fs-spacing-2);
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
z-index: 10;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
19
34
|
[data-fs-hierarchy-tree-wrapper] {
|
|
20
35
|
flex: 1;
|
|
21
36
|
display: flex;
|
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";
|
package/src/features/payment-methods/layouts/PaymentMethodsLayout/payment-methods-layout.scss
CHANGED
|
@@ -112,7 +112,9 @@
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
@include media("<=
|
|
115
|
+
@include media("<=phonemid") {
|
|
116
|
+
padding-bottom: var(--fs-spacing-7);
|
|
117
|
+
|
|
116
118
|
[data-fs-buyer-portal-internal-search] {
|
|
117
119
|
width: 100% !important;
|
|
118
120
|
}
|
|
@@ -120,12 +122,11 @@
|
|
|
120
122
|
[data-fs-bp-header-inside] {
|
|
121
123
|
[data-fs-header-inside-button] {
|
|
122
124
|
position: fixed;
|
|
123
|
-
bottom:
|
|
124
|
-
right:
|
|
125
|
-
|
|
126
|
-
border-radius: 50%;
|
|
125
|
+
bottom: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
126
|
+
right: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
127
|
+
padding: var(--fs-spacing-2);
|
|
127
128
|
cursor: pointer;
|
|
128
|
-
z-index:
|
|
129
|
+
z-index: 10;
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
}
|
|
@@ -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,21 @@
|
|
|
14
14
|
|
|
15
15
|
width: 100%;
|
|
16
16
|
|
|
17
|
+
@include media("<=phonemid") {
|
|
18
|
+
padding-bottom: var(--fs-spacing-7);
|
|
19
|
+
|
|
20
|
+
[data-fs-bp-header-inside] {
|
|
21
|
+
[data-fs-header-inside-button] {
|
|
22
|
+
position: fixed;
|
|
23
|
+
bottom: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
24
|
+
right: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
25
|
+
padding: var(--fs-spacing-2);
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
z-index: 10;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
17
32
|
[data-fs-bp-header] {
|
|
18
33
|
display: flex;
|
|
19
34
|
width: 100%;
|
|
@@ -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>
|
|
@@ -19,6 +19,21 @@
|
|
|
19
19
|
|
|
20
20
|
--data-fs-users-table-width: 11.875rem;
|
|
21
21
|
|
|
22
|
+
@include media("<=phonemid") {
|
|
23
|
+
padding-bottom: var(--fs-spacing-7);
|
|
24
|
+
|
|
25
|
+
[data-fs-bp-header-inside] {
|
|
26
|
+
[data-fs-header-inside-button] {
|
|
27
|
+
position: fixed;
|
|
28
|
+
bottom: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
29
|
+
right: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
30
|
+
padding: var(--fs-spacing-2);
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
z-index: 10;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
22
37
|
[data-fs-bp-header-inside-title] {
|
|
23
38
|
@include media("<=phonemid") {
|
|
24
39
|
font-size: var(--fs-text-size-1);
|