@vtex/faststore-plugin-buyer-portal 1.1.74 → 1.1.76
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/public/buyer-portal-icons.svg +86 -46
- package/src/features/addresses/layouts/AddressDetailsLayout/address-details-layout.scss +0 -1
- package/src/features/addresses/layouts/AddressesLayout/addresses-layout.scss +0 -1
- package/src/features/collections/layouts/CollectionsLayout/collections-layout.scss +0 -1
- package/src/features/credit-cards/layouts/CreditCardsLayout/credit-card-layout.scss +0 -2
- package/src/features/custom-fields/layouts/CustomFieldsLayout/custom-fields-layout.scss +0 -1
- package/src/features/org-units/layouts/OrgUnitsLayout/org-units-layout.scss +0 -5
- package/src/features/payment-methods/layouts/PaymentMethodsLayout/payment-methods-layout.scss +0 -2
- package/src/features/profile/layouts/ProfileLayout/profile-layout.scss +0 -1
- package/src/features/roles/layout/RolesLayout/roles-layout.scss +0 -2
- package/src/features/shared/layouts/BaseTabsLayout/BaseTabsLayout.tsx +2 -0
- package/src/features/shared/layouts/BaseTabsLayout/Container.tsx +5 -0
- package/src/features/shared/layouts/BaseTabsLayout/SidebarMenu.tsx +5 -14
- package/src/features/shared/layouts/BaseTabsLayout/base-tabs-layout.scss +28 -25
- package/src/features/shared/layouts/ContractTabsLayout/ContractTabsLayout.tsx +14 -12
- package/src/features/shared/layouts/FinanceTabsLayout/FinanceTabsLayout.tsx +8 -6
- package/src/features/shared/layouts/OrgUnitTabsLayout/OrgUnitTabLayout.tsx +8 -6
- package/src/features/shared/utils/getFinanceSettingsLinks.ts +18 -2
- package/src/features/users/components/CreateUserDrawer/CreateUserDrawer.tsx +77 -57
- package/src/features/users/components/CreateUserDrawer/create-user-drawer.scss +51 -0
- package/src/features/users/layouts/UserDetailsLayout/user-details-layout.scss +0 -2
- package/src/features/users/layouts/UsersLayout/UsersLayout.tsx +3 -3
- package/src/features/users/layouts/UsersLayout/users-layout.scss +0 -2
- package/src/pages/users.tsx +26 -13
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
1
|
<svg style="display:none">
|
|
3
2
|
<symbol
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
id="Shapes"
|
|
4
|
+
viewBox="0 0 19 20"
|
|
5
|
+
fill="currentColor"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
7
|
>
|
|
9
|
-
|
|
8
|
+
<path fill="currentColor"
|
|
9
|
+
d="M3.5 9L9 0L14.5 9H3.5ZM14.5 20C13.25 20 12.1875 19.5625 11.3125 18.6875C10.4375 17.8125 10 16.75 10 15.5C10 14.25 10.4375 13.1875 11.3125 12.3125C12.1875 11.4375 13.25 11 14.5 11C15.75 11 16.8125 11.4375 17.6875 12.3125C18.5625 13.1875 19 14.25 19 15.5C19 16.75 18.5625 17.8125 17.6875 18.6875C16.8125 19.5625 15.75 20 14.5 20ZM0 19.5V11.5H8V19.5H0ZM14.5 18C15.2 18 15.7917 17.7583 16.275 17.275C16.7583 16.7917 17 16.2 17 15.5C17 14.8 16.7583 14.2083 16.275 13.725C15.7917 13.2417 15.2 13 14.5 13C13.8 13 13.2083 13.2417 12.725 13.725C12.2417 14.2083 12 14.8 12 15.5C12 16.2 12.2417 16.7917 12.725 17.275C13.2083 17.7583 13.8 18 14.5 18ZM2 17.5H6V13.5H2V17.5ZM7.05 7H10.95L9 3.85L7.05 7Z" />
|
|
10
10
|
</symbol>
|
|
11
11
|
|
|
12
12
|
<symbol id="Active" xmlns="http://www.w3.org/2000/svg" fill="currentColor"
|
|
@@ -25,9 +25,11 @@
|
|
|
25
25
|
</symbol>
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
<symbol id="DoNotDisturb" fill="currentColor"
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
<symbol id="DoNotDisturb" fill="currentColor" viewBox="0 0 20 20"
|
|
29
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
30
|
+
<path
|
|
31
|
+
d="M5 11H15V9H5V11ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM10 18C12.2333 18 14.125 17.225 15.675 15.675C17.225 14.125 18 12.2333 18 10C18 7.76667 17.225 5.875 15.675 4.325C14.125 2.775 12.2333 2 10 2C7.76667 2 5.875 2.775 4.325 4.325C2.775 5.875 2 7.76667 2 10C2 12.2333 2.775 14.125 4.325 15.675C5.875 17.225 7.76667 18 10 18Z" />
|
|
32
|
+
</symbol>
|
|
31
33
|
|
|
32
34
|
<symbol
|
|
33
35
|
id="Address" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"
|
|
@@ -114,7 +116,9 @@
|
|
|
114
116
|
viewBox="0 0 24 24"
|
|
115
117
|
fill="currentColor"
|
|
116
118
|
>
|
|
117
|
-
<path
|
|
119
|
+
<path
|
|
120
|
+
d="M5 13H11V9H5V13ZM5 7H19V5H5V7ZM5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V11.3C20.6833 11.1667 20.3542 11.0792 20.0125 11.0375C19.6708 10.9958 19.3333 11 19 11.05C18.65 11.1167 18.3125 11.2292 17.9875 11.3875C17.6625 11.5458 17.3667 11.7583 17.1 12.025L16.125 13L11 18.1V21H5ZM5 19H11V15H5V19ZM13 13H16.125L17.1 12.025C17.3667 11.7583 17.6625 11.5458 17.9875 11.3875C18.3125 11.2292 18.65 11.1167 19 11.05V9H13V13ZM13 22V18.925L18.525 13.425C18.675 13.275 18.8417 13.1667 19.025 13.1C19.2083 13.0333 19.3917 13 19.575 13C19.775 13 19.9667 13.0375 20.15 13.1125C20.3333 13.1875 20.5 13.3 20.65 13.45L21.575 14.375C21.7083 14.525 21.8125 14.6917 21.8875 14.875C21.9625 15.0583 22 15.2417 22 15.425C22 15.6083 21.9667 15.7958 21.9 15.9875C21.8333 16.1792 21.725 16.35 21.575 16.5L16.075 22H13ZM14.5 20.5H15.45L18.475 17.45L17.55 16.525L14.5 19.55V20.5ZM18.025 16.975L17.55 16.525L18.475 17.45L18.025 16.975Z"
|
|
121
|
+
fill="currentColor" />
|
|
118
122
|
</symbol>
|
|
119
123
|
|
|
120
124
|
<symbol
|
|
@@ -150,9 +154,12 @@
|
|
|
150
154
|
d="M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" />
|
|
151
155
|
</symbol>
|
|
152
156
|
|
|
153
|
-
<symbol id="InfoFilled" xmlns="http://www.w3.org/2000/svg"
|
|
157
|
+
<symbol id="InfoFilled" xmlns="http://www.w3.org/2000/svg" width="16" height="16"
|
|
158
|
+
viewBox="0 0 16 16"
|
|
154
159
|
fill="currentColor">
|
|
155
|
-
<path
|
|
160
|
+
<path
|
|
161
|
+
d="M7.25 12H8.75V7H7.25V12ZM7.99563 5.5C8.20688 5.5 8.38542 5.42854 8.53125 5.28563C8.67708 5.14271 8.75 4.96563 8.75 4.75438C8.75 4.54313 8.67854 4.36458 8.53563 4.21875C8.39271 4.07292 8.21563 4 8.00438 4C7.79313 4 7.61458 4.07146 7.46875 4.21437C7.32292 4.35729 7.25 4.53437 7.25 4.74562C7.25 4.95687 7.32146 5.13542 7.46438 5.28125C7.60729 5.42708 7.78438 5.5 7.99563 5.5ZM8.00583 16C6.90472 16 5.86806 15.7917 4.89583 15.375C3.92361 14.9583 3.07292 14.3854 2.34375 13.6562C1.61458 12.9271 1.04167 12.0767 0.625 11.105C0.208333 10.1333 0 9.09514 0 7.99042C0 6.88569 0.208333 5.85069 0.625 4.88542C1.04167 3.92014 1.61458 3.07292 2.34375 2.34375C3.07292 1.61458 3.92333 1.04167 4.895 0.625C5.86667 0.208333 6.90486 0 8.00958 0C9.11431 0 10.1493 0.208333 11.1146 0.625C12.0799 1.04167 12.9271 1.61458 13.6562 2.34375C14.3854 3.07292 14.9583 3.92167 15.375 4.89C15.7917 5.85847 16 6.89319 16 7.99417C16 9.09528 15.7917 10.1319 15.375 11.1042C14.9583 12.0764 14.3854 12.9271 13.6562 13.6562C12.9271 14.3854 12.0783 14.9583 11.11 15.375C10.1415 15.7917 9.10681 16 8.00583 16Z"
|
|
162
|
+
fill="#ADADAD" />
|
|
156
163
|
</symbol>
|
|
157
164
|
|
|
158
165
|
<symbol id="Link" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="currentColor">
|
|
@@ -227,7 +234,8 @@
|
|
|
227
234
|
viewBox="0 0 24 24"
|
|
228
235
|
fill="currentColor"
|
|
229
236
|
>
|
|
230
|
-
<path
|
|
237
|
+
<path
|
|
238
|
+
d="M4 12C4 11.45 4.19583 10.9792 4.5875 10.5875C4.97917 10.1958 5.45 10 6 10C6.55 10 7.02083 10.1958 7.4125 10.5875C7.80417 10.9792 8 11.45 8 12C8 12.55 7.80417 13.0208 7.4125 13.4125C7.02083 13.8042 6.55 14 6 14C5.45 14 4.97917 13.8042 4.5875 13.4125C4.19583 13.0208 4 12.55 4 12ZM10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12ZM16 12C16 11.45 16.1958 10.9792 16.5875 10.5875C16.9792 10.1958 17.45 10 18 10C18.55 10 19.0208 10.1958 19.4125 10.5875C19.8042 10.9792 20 11.45 20 12C20 12.55 19.8042 13.0208 19.4125 13.4125C19.0208 13.8042 18.55 14 18 14C17.45 14 16.9792 13.8042 16.5875 13.4125C16.1958 13.0208 16 12.55 16 12Z" />
|
|
231
239
|
</symbol>
|
|
232
240
|
|
|
233
241
|
|
|
@@ -294,30 +302,39 @@
|
|
|
294
302
|
d="M3 18C2.45 18 1.97917 17.8042 1.5875 17.4125C1.19583 17.0208 1 16.55 1 16V3H0V1H5V0H11V1H16V3H15V16C15 16.55 14.8042 17.0208 14.4125 17.4125C14.0208 17.8042 13.55 18 13 18H3ZM13 3H3V16H13V3ZM5 14H7V5H5V14ZM9 14H11V5H9V14Z"
|
|
295
303
|
fill="currentColor" />
|
|
296
304
|
</symbol>
|
|
297
|
-
|
|
298
|
-
<symbol id="Settings" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
299
|
-
<path
|
|
300
|
-
d="M9.25019 22L8.85019 18.8C8.63353 18.7167 8.42936 18.6167 8.23769 18.5C8.04603 18.3833 7.85853 18.2583 7.67519 18.125L4.70019 19.375L1.9502 14.625L4.52519 12.675C4.50853 12.5583 4.50019 12.4458 4.50019 12.3375V11.6625C4.50019 11.5542 4.50853 11.4417 4.52519 11.325L1.9502 9.375L4.70019 4.625L7.67519 5.875C7.85853 5.74167 8.05019 5.61667 8.25019 5.5C8.45019 5.38333 8.65019 5.28333 8.85019 5.2L9.25019 2H14.7502L15.1502 5.2C15.3669 5.28333 15.571 5.38333 15.7627 5.5C15.9544 5.61667 16.1419 5.74167 16.3252 5.875L19.3002 4.625L22.0502 9.375L19.4752 11.325C19.4919 11.4417 19.5002 11.5542 19.5002 11.6625V12.3375C19.5002 12.4458 19.4835 12.5583 19.4502 12.675L22.0252 14.625L19.2752 19.375L16.3252 18.125C16.1419 18.2583 15.9502 18.3833 15.7502 18.5C15.5502 18.6167 15.3502 18.7167 15.1502 18.8L14.7502 22H9.25019ZM11.0002 20H12.9752L13.3252 17.35C13.8419 17.2167 14.321 17.0208 14.7627 16.7625C15.2044 16.5042 15.6085 16.1917 15.9752 15.825L18.4502 16.85L19.4252 15.15L17.2752 13.525C17.3585 13.2917 17.4169 13.0458 17.4502 12.7875C17.4835 12.5292 17.5002 12.2667 17.5002 12C17.5002 11.7333 17.4835 11.4708 17.4502 11.2125C17.4169 10.9542 17.3585 10.7083 17.2752 10.475L19.4252 8.85L18.4502 7.15L15.9752 8.2C15.6085 7.81667 15.2044 7.49583 14.7627 7.2375C14.321 6.97917 13.8419 6.78333 13.3252 6.65L13.0002 4H11.0252L10.6752 6.65C10.1585 6.78333 9.67936 6.97917 9.23769 7.2375C8.79603 7.49583 8.39186 7.80833 8.02519 8.175L5.55019 7.15L4.57519 8.85L6.72519 10.45C6.64186 10.7 6.58353 10.95 6.55019 11.2C6.51686 11.45 6.50019 11.7167 6.50019 12C6.50019 12.2667 6.51686 12.525 6.55019 12.775C6.58353 13.025 6.64186 13.275 6.72519 13.525L4.57519 15.15L5.55019 16.85L8.02519 15.8C8.39186 16.1833 8.79603 16.5042 9.23769 16.7625C9.67936 17.0208 10.1585 17.2167 10.6752 17.35L11.0002 20ZM12.0502 15.5C13.0169 15.5 13.8419 15.1583 14.5252 14.475C15.2085 13.7917 15.5502 12.9667 15.5502 12C15.5502 11.0333 15.2085 10.2083 14.5252 9.525C13.8419 8.84167 13.0169 8.5 12.0502 8.5C11.0669 8.5 10.2377 8.84167 9.56269 9.525C8.88769 10.2083 8.55019 11.0333 8.55019 12C8.55019 12.9667 8.88769 13.7917 9.56269 14.475C10.2377 15.1583 11.0669 15.5 12.0502 15.5Z"
|
|
305
|
+
|
|
306
|
+
<symbol id="Settings" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
307
|
+
<path
|
|
308
|
+
d="M9.25019 22L8.85019 18.8C8.63353 18.7167 8.42936 18.6167 8.23769 18.5C8.04603 18.3833 7.85853 18.2583 7.67519 18.125L4.70019 19.375L1.9502 14.625L4.52519 12.675C4.50853 12.5583 4.50019 12.4458 4.50019 12.3375V11.6625C4.50019 11.5542 4.50853 11.4417 4.52519 11.325L1.9502 9.375L4.70019 4.625L7.67519 5.875C7.85853 5.74167 8.05019 5.61667 8.25019 5.5C8.45019 5.38333 8.65019 5.28333 8.85019 5.2L9.25019 2H14.7502L15.1502 5.2C15.3669 5.28333 15.571 5.38333 15.7627 5.5C15.9544 5.61667 16.1419 5.74167 16.3252 5.875L19.3002 4.625L22.0502 9.375L19.4752 11.325C19.4919 11.4417 19.5002 11.5542 19.5002 11.6625V12.3375C19.5002 12.4458 19.4835 12.5583 19.4502 12.675L22.0252 14.625L19.2752 19.375L16.3252 18.125C16.1419 18.2583 15.9502 18.3833 15.7502 18.5C15.5502 18.6167 15.3502 18.7167 15.1502 18.8L14.7502 22H9.25019ZM11.0002 20H12.9752L13.3252 17.35C13.8419 17.2167 14.321 17.0208 14.7627 16.7625C15.2044 16.5042 15.6085 16.1917 15.9752 15.825L18.4502 16.85L19.4252 15.15L17.2752 13.525C17.3585 13.2917 17.4169 13.0458 17.4502 12.7875C17.4835 12.5292 17.5002 12.2667 17.5002 12C17.5002 11.7333 17.4835 11.4708 17.4502 11.2125C17.4169 10.9542 17.3585 10.7083 17.2752 10.475L19.4252 8.85L18.4502 7.15L15.9752 8.2C15.6085 7.81667 15.2044 7.49583 14.7627 7.2375C14.321 6.97917 13.8419 6.78333 13.3252 6.65L13.0002 4H11.0252L10.6752 6.65C10.1585 6.78333 9.67936 6.97917 9.23769 7.2375C8.79603 7.49583 8.39186 7.80833 8.02519 8.175L5.55019 7.15L4.57519 8.85L6.72519 10.45C6.64186 10.7 6.58353 10.95 6.55019 11.2C6.51686 11.45 6.50019 11.7167 6.50019 12C6.50019 12.2667 6.51686 12.525 6.55019 12.775C6.58353 13.025 6.64186 13.275 6.72519 13.525L4.57519 15.15L5.55019 16.85L8.02519 15.8C8.39186 16.1833 8.79603 16.5042 9.23769 16.7625C9.67936 17.0208 10.1585 17.2167 10.6752 17.35L11.0002 20ZM12.0502 15.5C13.0169 15.5 13.8419 15.1583 14.5252 14.475C15.2085 13.7917 15.5502 12.9667 15.5502 12C15.5502 11.0333 15.2085 10.2083 14.5252 9.525C13.8419 8.84167 13.0169 8.5 12.0502 8.5C11.0669 8.5 10.2377 8.84167 9.56269 9.525C8.88769 10.2083 8.55019 11.0333 8.55019 12C8.55019 12.9667 8.88769 13.7917 9.56269 14.475C10.2377 15.1583 11.0669 15.5 12.0502 15.5Z"
|
|
309
|
+
fill="currentColor" />
|
|
301
310
|
</symbol>
|
|
302
311
|
|
|
303
312
|
<symbol id="FormatSize" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none">
|
|
304
|
-
<path d="M12 16V6H8V4H18V6H14V16H12ZM4.5 16V10H2V8H9V10H6.5V16H4.5Z" fill="currentColor"/>
|
|
313
|
+
<path d="M12 16V6H8V4H18V6H14V16H12ZM4.5 16V10H2V8H9V10H6.5V16H4.5Z" fill="currentColor" />
|
|
305
314
|
</symbol>
|
|
306
315
|
|
|
307
316
|
<symbol id="BookmarkAdd" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none">
|
|
308
|
-
<path
|
|
317
|
+
<path
|
|
318
|
+
d="M5 17V4.5C5 4.08181 5.14583 3.72375 5.4375 3.42583C5.72917 3.12806 6.08333 2.98611 6.5 3H11V4.5H6.5V14.7708L10 13.375L13.5 14.7708V9H15V17L10 15L5 17ZM14.25 7.25V5.75H12.75V4.25H14.25V2.75H15.75V4.25H17.25V5.75H15.75V7.25H14.25Z"
|
|
319
|
+
fill="currentColor" />
|
|
309
320
|
</symbol>
|
|
310
321
|
|
|
311
322
|
<symbol id="BookmarkRemove" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none">
|
|
312
|
-
<path
|
|
323
|
+
<path
|
|
324
|
+
d="M17.25 5.74995H12.75V4.24995H17.25V5.74995ZM5 17V4.49995C5 4.08176 5.14583 3.7237 5.4375 3.42579C5.72917 3.12801 6.08333 2.98606 6.5 2.99995H11V4.49995H6.5V14.7708L10 13.375L13.5 14.7708V8.99995H15V17L10 15L5 17Z"
|
|
325
|
+
fill="currentColor" />
|
|
313
326
|
</symbol>
|
|
314
327
|
|
|
315
328
|
<symbol id="CircleRemove" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none">
|
|
316
|
-
<path
|
|
329
|
+
<path
|
|
330
|
+
d="M5.83317 10.8332H14.1665V9.1665H5.83317V10.8332ZM9.99984 18.3332C8.84706 18.3332 7.76373 18.1144 6.74984 17.6769C5.73595 17.2394 4.854 16.6457 4.104 15.8957C3.354 15.1457 2.76025 14.2637 2.32275 13.2498C1.88525 12.2359 1.6665 11.1526 1.6665 9.99984C1.6665 8.84706 1.88525 7.76373 2.32275 6.74984C2.76025 5.73595 3.354 4.854 4.104 4.104C4.854 3.354 5.73595 2.76025 6.74984 2.32275C7.76373 1.88525 8.84706 1.6665 9.99984 1.6665C11.1526 1.6665 12.2359 1.88525 13.2498 2.32275C14.2637 2.76025 15.1457 3.354 15.8957 4.104C16.6457 4.854 17.2394 5.73595 17.6769 6.74984C18.1144 7.76373 18.3332 8.84706 18.3332 9.99984C18.3332 11.1526 18.1144 12.2359 17.6769 13.2498C17.2394 14.2637 16.6457 15.1457 15.8957 15.8957C15.1457 16.6457 14.2637 17.2394 13.2498 17.6769C12.2359 18.1144 11.1526 18.3332 9.99984 18.3332ZM9.99984 16.6665C11.8609 16.6665 13.4373 16.0207 14.729 14.729C16.0207 13.4373 16.6665 11.8609 16.6665 9.99984C16.6665 8.13873 16.0207 6.56234 14.729 5.27067C13.4373 3.979 11.8609 3.33317 9.99984 3.33317C8.13873 3.33317 6.56234 3.979 5.27067 5.27067C3.979 6.56234 3.33317 8.13873 3.33317 9.99984C3.33317 11.8609 3.979 13.4373 5.27067 14.729C6.56234 16.0207 8.13873 16.6665 9.99984 16.6665Z"
|
|
331
|
+
fill="currentColor" />
|
|
317
332
|
</symbol>
|
|
318
333
|
|
|
319
334
|
<symbol id="Default" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
320
|
-
<path
|
|
335
|
+
<path
|
|
336
|
+
d="M5 21V5C5 4.45 5.19583 3.97917 5.5875 3.5875C5.97917 3.19583 6.45 3 7 3H17C17.55 3 18.0208 3.19583 18.4125 3.5875C18.8042 3.97917 19 4.45 19 5V21L12 18L5 21ZM7 17.95L12 15.8L17 17.95V5H7V17.95Z"
|
|
337
|
+
fill="currentColor" />
|
|
321
338
|
</symbol>
|
|
322
339
|
|
|
323
340
|
<symbol
|
|
@@ -330,7 +347,9 @@
|
|
|
330
347
|
</symbol>
|
|
331
348
|
|
|
332
349
|
<symbol id="Bookmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 18" fill="currentColor">
|
|
333
|
-
<path
|
|
350
|
+
<path
|
|
351
|
+
d="M0 18V2C0 1.45 0.195833 0.979167 0.5875 0.5875C0.979167 0.195833 1.45 0 2 0H12C12.55 0 13.0208 0.195833 13.4125 0.5875C13.8042 0.979167 14 1.45 14 2V18L7 15L0 18ZM2 14.95L7 12.8L12 14.95V2H2V14.95Z"
|
|
352
|
+
fill="currentColor" />
|
|
334
353
|
</symbol>
|
|
335
354
|
|
|
336
355
|
<symbol
|
|
@@ -345,10 +364,12 @@
|
|
|
345
364
|
|
|
346
365
|
<symbol
|
|
347
366
|
id="BookmarkRemove"
|
|
348
|
-
|
|
367
|
+
viewBox="0 0 13 14"
|
|
349
368
|
fill="currentColor"
|
|
350
369
|
xmlns="http://www.w3.org/2000/svg">
|
|
351
|
-
<path
|
|
370
|
+
<path
|
|
371
|
+
d="M12.25 2.75093H7.75V1.25093H12.25V2.75093ZM0 14.0009V1.50093C0 1.08273 0.145833 0.724679 0.4375 0.426762C0.729167 0.128984 1.08333 -0.0129605 1.5 0.000928401H6V1.50093H1.5V11.7718L5 10.3759L8.5 11.7718V6.00093H10V14.0009L5 12.0009L0 14.0009Z"
|
|
372
|
+
fill="currentColor" />
|
|
352
373
|
</symbol>
|
|
353
374
|
|
|
354
375
|
|
|
@@ -381,7 +402,7 @@
|
|
|
381
402
|
</symbol>
|
|
382
403
|
|
|
383
404
|
<svg id="Menu" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 12" fill="none">
|
|
384
|
-
<path d="M0 12V10H18V12H0ZM0 7V5H18V7H0ZM0 2V0H18V2H0Z" fill="#1F1F1F"/>
|
|
405
|
+
<path d="M0 12V10H18V12H0ZM0 7V5H18V7H0ZM0 2V0H18V2H0Z" fill="#1F1F1F" />
|
|
385
406
|
</svg>
|
|
386
407
|
|
|
387
408
|
<symbol id="TableEdit" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none">
|
|
@@ -434,54 +455,67 @@
|
|
|
434
455
|
viewBox="0 0 19 18"
|
|
435
456
|
fill="none"
|
|
436
457
|
xmlns="http://www.w3.org/2000/svg">
|
|
437
|
-
<path
|
|
458
|
+
<path
|
|
459
|
+
d="M2 18C1.45 18 0.979167 17.8042 0.5875 17.4125C0.195833 17.0208 0 16.55 0 16V2C0 1.45 0.195833 0.979167 0.5875 0.5875C0.979167 0.195833 1.45 0 2 0H16C16.55 0 17.0208 0.195833 17.4125 0.5875C17.8042 0.979167 18 1.45 18 2V4.5H16V2H2V16H16V13.5H18V16C18 16.55 17.8042 17.0208 17.4125 17.4125C17.0208 17.8042 16.55 18 16 18H2ZM10 14C9.45 14 8.97917 13.8042 8.5875 13.4125C8.19583 13.0208 8 12.55 8 12V6C8 5.45 8.19583 4.97917 8.5875 4.5875C8.97917 4.19583 9.45 4 10 4H17C17.55 4 18.0208 4.19583 18.4125 4.5875C18.8042 4.97917 19 5.45 19 6V12C19 12.55 18.8042 13.0208 18.4125 13.4125C18.0208 13.8042 17.55 14 17 14H10ZM17 12V6H10V12H17ZM13 10.5C13.4167 10.5 13.7708 10.3542 14.0625 10.0625C14.3542 9.77083 14.5 9.41667 14.5 9C14.5 8.58333 14.3542 8.22917 14.0625 7.9375C13.7708 7.64583 13.4167 7.5 13 7.5C12.5833 7.5 12.2292 7.64583 11.9375 7.9375C11.6458 8.22917 11.5 8.58333 11.5 9C11.5 9.41667 11.6458 9.77083 11.9375 10.0625C12.2292 10.3542 12.5833 10.5 13 10.5Z"
|
|
460
|
+
fill="currentColor" />
|
|
438
461
|
</symbol>
|
|
439
462
|
|
|
440
|
-
<symbol id="Information" xmlns="http://www.w3.org/2000/svg"
|
|
463
|
+
<symbol id="Information" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"
|
|
441
464
|
fill="currentColor">
|
|
442
|
-
<path
|
|
465
|
+
<path
|
|
466
|
+
d="M8.16797 13.1667H9.83463V8.16675H8.16797V13.1667ZM9.0013 6.50008C9.23741 6.50008 9.43533 6.42022 9.59505 6.2605C9.75477 6.10078 9.83463 5.90286 9.83463 5.66675C9.83463 5.43064 9.75477 5.23272 9.59505 5.073C9.43533 4.91328 9.23741 4.83341 9.0013 4.83341C8.76519 4.83341 8.56727 4.91328 8.40755 5.073C8.24783 5.23272 8.16797 5.43064 8.16797 5.66675C8.16797 5.90286 8.24783 6.10078 8.40755 6.2605C8.56727 6.42022 8.76519 6.50008 9.0013 6.50008ZM9.0013 17.3334C7.84852 17.3334 6.76519 17.1147 5.7513 16.6772C4.73741 16.2397 3.85547 15.6459 3.10547 14.8959C2.35547 14.1459 1.76172 13.264 1.32422 12.2501C0.886719 11.2362 0.667969 10.1529 0.667969 9.00008C0.667969 7.8473 0.886719 6.76397 1.32422 5.75008C1.76172 4.73619 2.35547 3.85425 3.10547 3.10425C3.85547 2.35425 4.73741 1.7605 5.7513 1.323C6.76519 0.885498 7.84852 0.666748 9.0013 0.666748C10.1541 0.666748 11.2374 0.885498 12.2513 1.323C13.2652 1.7605 14.1471 2.35425 14.8971 3.10425C15.6471 3.85425 16.2409 4.73619 16.6784 5.75008C17.1159 6.76397 17.3346 7.8473 17.3346 9.00008C17.3346 10.1529 17.1159 11.2362 16.6784 12.2501C16.2409 13.264 15.6471 14.1459 14.8971 14.8959C14.1471 15.6459 13.2652 16.2397 12.2513 16.6772C11.2374 17.1147 10.1541 17.3334 9.0013 17.3334ZM9.0013 15.6667C10.8624 15.6667 12.4388 15.0209 13.7305 13.7292C15.0221 12.4376 15.668 10.8612 15.668 9.00008C15.668 7.13897 15.0221 5.56258 13.7305 4.27091C12.4388 2.97925 10.8624 2.33341 9.0013 2.33341C7.14019 2.33341 5.5638 2.97925 4.27214 4.27091C2.98047 5.56258 2.33464 7.13897 2.33464 9.00008C2.33464 10.8612 2.98047 12.4376 4.27214 13.7292C5.5638 15.0209 7.14019 15.6667 9.0013 15.6667Z"
|
|
467
|
+
fill="#ADADAD" />
|
|
443
468
|
</symbol>
|
|
444
469
|
|
|
445
|
-
<symbol id="CheckSuccess" xmlns="http://www.w3.org/2000/svg"
|
|
470
|
+
<symbol id="CheckSuccess" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"
|
|
446
471
|
fill="currentColor">
|
|
447
|
-
<path
|
|
448
|
-
|
|
472
|
+
<path
|
|
473
|
+
d="M29.9815 60C25.7706 60 21.8412 59.2339 18.193 57.7018C14.5449 56.1692 11.3667 54.0482 8.65831 51.3387C5.94944 48.6292 3.8293 45.4497 2.29789 41.8003C0.765965 38.1508 0 34.2192 0 30.0055C0 25.8239 0.765701 21.9076 2.2971 18.2566C3.82851 14.6055 5.94812 11.4245 8.65595 8.71342C11.3638 6.00289 14.5412 3.87289 18.1883 2.32342C21.8354 0.774473 25.7646 0 29.9759 0C33.684 0 37.1547 0.596314 40.3879 1.78895C43.6205 2.98105 46.5334 4.62158 49.1266 6.71053L46.5842 9.31579C44.3108 7.47368 41.7765 6.05763 38.9813 5.06763C36.1867 4.07816 33.1849 3.58342 29.9759 3.58342C22.5324 3.58342 16.2722 6.12368 11.1952 11.2042C6.11877 16.2853 3.58055 22.5505 3.58055 30C3.58055 37.4495 6.11877 43.7147 11.1952 48.7958C16.2722 53.8763 22.5324 56.4166 29.9759 56.4166C37.4194 56.4166 43.6797 53.8763 48.7567 48.7958C53.8331 43.7147 56.3713 37.4495 56.3713 30C56.3713 28.4211 56.248 26.8887 56.0014 25.4029C55.7547 23.9171 55.3948 22.4697 54.9214 21.0608L57.6398 18.3095C58.4002 20.1153 58.9758 21.9939 59.3666 23.9455C59.7568 25.8971 59.9519 27.9153 59.9519 30C59.9519 34.2147 59.1783 38.1471 57.6311 41.7971C56.0839 45.4471 53.9567 48.6271 51.2494 51.3371C48.5416 54.0471 45.3646 56.1684 41.7186 57.7011C38.0721 59.2337 34.1597 60 29.9815 60Z"
|
|
474
|
+
fill="#E0E0E0" />
|
|
475
|
+
<path
|
|
476
|
+
d="M25.3218 43.3059L13.307 31.2333L15.9772 28.5309L25.3218 37.883L57.2517 5.92749L60 8.59907L25.3218 43.3059Z"
|
|
477
|
+
fill="#08A822" />
|
|
449
478
|
</symbol>
|
|
450
479
|
|
|
451
|
-
<symbol id="ArrowPointLeft" xmlns="http://www.w3.org/2000/svg"
|
|
480
|
+
<symbol id="ArrowPointLeft" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"
|
|
452
481
|
fill="currentColor">
|
|
453
|
-
|
|
482
|
+
<path d="M3.825 9L9.425 14.6L8 16L0 8L8 0L9.425 1.4L3.825 7H16V9H3.825Z" fill="currentColor" />
|
|
454
483
|
</symbol>
|
|
455
|
-
|
|
484
|
+
|
|
456
485
|
<symbol id="MinusCircle" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
457
486
|
<path
|
|
458
487
|
d="M7 13H17V11H7V13ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z"
|
|
459
488
|
fill="currentColor" />
|
|
460
489
|
</symbol>
|
|
461
|
-
|
|
462
|
-
<symbol id="EditSettings" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 20" fill="none">
|
|
463
|
-
<path
|
|
490
|
+
|
|
491
|
+
<symbol id="EditSettings" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 20" fill="none">
|
|
492
|
+
<path
|
|
493
|
+
d="M8.24995 20L7.84995 16.8C7.63328 16.7167 7.42912 16.6167 7.23745 16.5C7.04578 16.3833 6.85828 16.2583 6.67495 16.125L3.69995 17.375L0.949951 12.625L3.52495 10.675C3.50828 10.5583 3.49995 10.4458 3.49995 10.3375V9.6625C3.49995 9.55417 3.50828 9.44167 3.52495 9.325L0.949951 7.375L3.69995 2.625L6.67495 3.875C6.85828 3.74167 7.04995 3.61667 7.24995 3.5C7.44995 3.38333 7.64995 3.28333 7.84995 3.2L8.24995 0H13.7499L14.1499 3.2C14.3666 3.28333 14.5708 3.38333 14.7624 3.5C14.9541 3.61667 15.1416 3.74167 15.3249 3.875L18.2999 2.625L21.0499 7.375L18.4749 9.325C18.4916 9.44167 18.4999 9.55417 18.4999 9.6625V10.3375C18.4999 10.4458 18.4833 10.5583 18.4499 10.675L21.0249 12.625L18.2749 17.375L15.3249 16.125C15.1416 16.2583 14.9499 16.3833 14.7499 16.5C14.5499 16.6167 14.3499 16.7167 14.1499 16.8L13.7499 20H8.24995ZM9.99995 18H11.9749L12.3249 15.35C12.8416 15.2167 13.3208 15.0208 13.7624 14.7625C14.2041 14.5042 14.6083 14.1917 14.9749 13.825L17.4499 14.85L18.4249 13.15L16.2749 11.525C16.3583 11.2917 16.4166 11.0458 16.4499 10.7875C16.4833 10.5292 16.4999 10.2667 16.4999 10C16.4999 9.73333 16.4833 9.47083 16.4499 9.2125C16.4166 8.95417 16.3583 8.70833 16.2749 8.475L18.4249 6.85L17.4499 5.15L14.9749 6.2C14.6083 5.81667 14.2041 5.49583 13.7624 5.2375C13.3208 4.97917 12.8416 4.78333 12.3249 4.65L11.9999 2H10.0249L9.67495 4.65C9.15828 4.78333 8.67912 4.97917 8.23745 5.2375C7.79578 5.49583 7.39162 5.80833 7.02495 6.175L4.54995 5.15L3.57495 6.85L5.72495 8.45C5.64162 8.7 5.58328 8.95 5.54995 9.2C5.51662 9.45 5.49995 9.71667 5.49995 10C5.49995 10.2667 5.51662 10.525 5.54995 10.775C5.58328 11.025 5.64162 11.275 5.72495 11.525L3.57495 13.15L4.54995 14.85L7.02495 13.8C7.39162 14.1833 7.79578 14.5042 8.23745 14.7625C8.67912 15.0208 9.15828 15.2167 9.67495 15.35L9.99995 18ZM11.0499 13.5C12.0166 13.5 12.8416 13.1583 13.5249 12.475C14.2083 11.7917 14.5499 10.9667 14.5499 10C14.5499 9.03333 14.2083 8.20833 13.5249 7.525C12.8416 6.84167 12.0166 6.5 11.0499 6.5C10.0666 6.5 9.23745 6.84167 8.56245 7.525C7.88745 8.20833 7.54995 9.03333 7.54995 10C7.54995 10.9667 7.88745 11.7917 8.56245 12.475C9.23745 13.1583 10.0666 13.5 11.0499 13.5Z"
|
|
494
|
+
fill="currentColor" />
|
|
464
495
|
</symbol>
|
|
465
496
|
|
|
466
497
|
<symbol id="ChevronRight" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
467
|
-
<path d="M12.6 12L8 7.4L9.4 6L15.4 12L9.4 18L8 16.6L12.6 12Z" fill="currentColor"/>
|
|
498
|
+
<path d="M12.6 12L8 7.4L9.4 6L15.4 12L9.4 18L8 16.6L12.6 12Z" fill="currentColor" />
|
|
468
499
|
</symbol>
|
|
469
500
|
|
|
470
501
|
<symbol id="IdCard" viewBox="0 0 20 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
471
|
-
<path
|
|
472
|
-
|
|
502
|
+
<path
|
|
503
|
+
d="M12 9H17V7H12V9ZM12 6H17V4H12V6ZM3 12H11V11.45C11 10.7 10.6333 10.1042 9.9 9.6625C9.16667 9.22083 8.2 9 7 9C5.8 9 4.83333 9.22083 4.1 9.6625C3.36667 10.1042 3 10.7 3 11.45V12ZM7 8C7.55 8 8.02083 7.80417 8.4125 7.4125C8.80417 7.02083 9 6.55 9 6C9 5.45 8.80417 4.97917 8.4125 4.5875C8.02083 4.19583 7.55 4 7 4C6.45 4 5.97917 4.19583 5.5875 4.5875C5.19583 4.97917 5 5.45 5 6C5 6.55 5.19583 7.02083 5.5875 7.4125C5.97917 7.80417 6.45 8 7 8ZM2 16C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14V2C0 1.45 0.195833 0.979167 0.5875 0.5875C0.979167 0.195833 1.45 0 2 0H18C18.55 0 19.0208 0.195833 19.4125 0.5875C19.8042 0.979167 20 1.45 20 2V14C20 14.55 19.8042 15.0208 19.4125 15.4125C19.0208 15.8042 18.55 16 18 16H2ZM2 14H18V2H2V14Z"
|
|
504
|
+
fill="currentColor" />
|
|
473
505
|
</symbol>
|
|
474
506
|
|
|
475
507
|
|
|
476
508
|
<symbol id="CheckCircle" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
477
|
-
<path
|
|
478
|
-
|
|
509
|
+
<path
|
|
510
|
+
d="M8.6 14.6L15.65 7.55L14.25 6.15L8.6 11.8L5.75 8.95L4.35 10.35L8.6 14.6ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z"
|
|
511
|
+
fill="currentColor" />
|
|
479
512
|
</symbol>
|
|
480
513
|
|
|
481
514
|
|
|
482
515
|
<symbol id="Block" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
483
|
-
<path
|
|
484
|
-
|
|
516
|
+
<path
|
|
517
|
+
d="M10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM10 18C10.9 18 11.7667 17.8542 12.6 17.5625C13.4333 17.2708 14.2 16.85 14.9 16.3L3.7 5.1C3.15 5.8 2.72917 6.56667 2.4375 7.4C2.14583 8.23333 2 9.1 2 10C2 12.2333 2.775 14.125 4.325 15.675C5.875 17.225 7.76667 18 10 18ZM16.3 14.9C16.85 14.2 17.2708 13.4333 17.5625 12.6C17.8542 11.7667 18 10.9 18 10C18 7.76667 17.225 5.875 15.675 4.325C14.125 2.775 12.2333 2 10 2C9.1 2 8.23333 2.14583 7.4 2.4375C6.56667 2.72917 5.8 3.15 5.1 3.7L16.3 14.9Z"
|
|
518
|
+
fill="currentColor" />
|
|
485
519
|
</symbol>
|
|
486
520
|
|
|
487
521
|
<symbol id="EmptyState" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -491,10 +525,16 @@
|
|
|
491
525
|
/>
|
|
492
526
|
</symbol>
|
|
493
527
|
|
|
528
|
+
<symbol id="Warning" viewBox="0 0 44 38" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
529
|
+
<path
|
|
530
|
+
d="M0 38L22 0L44 38H0ZM5.2 35H38.8L22 6L5.2 35ZM22.209 32.15C22.6363 32.15 22.9917 32.0053 23.275 31.716C23.5583 31.427 23.7 31.0687 23.7 30.641C23.7 30.2137 23.5553 29.8583 23.266 29.575C22.977 29.2917 22.6187 29.15 22.191 29.15C21.7637 29.15 21.4083 29.2947 21.125 29.584C20.8417 29.873 20.7 30.2313 20.7 30.659C20.7 31.0863 20.8447 31.4417 21.134 31.725C21.423 32.0083 21.7813 32.15 22.209 32.15ZM20.7 26.6H23.7V15.4H20.7V26.6Z"
|
|
531
|
+
fill="currentColor" />
|
|
532
|
+
</symbol>
|
|
533
|
+
|
|
494
534
|
<symbol id="Group" viewBox="0 0 38 27" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
495
535
|
<path
|
|
496
536
|
d="M0.583252 26.333V22.4163C0.583252 21.4441 0.833252 20.5622 1.33325 19.7705C1.83325 18.9788 2.5277 18.3886 3.41659 17.9997C5.44436 17.1108 7.27075 16.4719 8.89575 16.083C10.5208 15.6941 12.1944 15.4997 13.9166 15.4997C15.6388 15.4997 17.3055 15.6941 18.9166 16.083C20.5277 16.4719 22.3471 17.1108 24.3749 17.9997C25.2638 18.3886 25.9652 18.9788 26.4791 19.7705C26.993 20.5622 27.2499 21.4441 27.2499 22.4163V26.333H0.583252ZM29.7499 26.333V22.4163C29.7499 20.6663 29.3055 19.2288 28.4166 18.1038C27.5277 16.9788 26.361 16.0691 24.9166 15.3747C26.8333 15.5969 28.6388 15.9233 30.3333 16.3538C32.0277 16.7844 33.4027 17.2775 34.4583 17.833C35.3749 18.3608 36.0971 19.0136 36.6249 19.7913C37.1527 20.5691 37.4166 21.4441 37.4166 22.4163V26.333H29.7499ZM13.9166 12.958C12.0833 12.958 10.5833 12.3747 9.41659 11.208C8.24992 10.0413 7.66659 8.54134 7.66659 6.70801C7.66659 4.87467 8.24992 3.37467 9.41659 2.20801C10.5833 1.04134 12.0833 0.458008 13.9166 0.458008C15.7499 0.458008 17.2499 1.04134 18.4166 2.20801C19.5833 3.37467 20.1666 4.87467 20.1666 6.70801C20.1666 8.54134 19.5833 10.0413 18.4166 11.208C17.2499 12.3747 15.7499 12.958 13.9166 12.958ZM28.9166 6.70801C28.9166 8.54134 28.3333 10.0413 27.1666 11.208C25.9999 12.3747 24.4999 12.958 22.6666 12.958C22.361 12.958 22.0208 12.9372 21.6458 12.8955C21.2708 12.8538 20.9305 12.7775 20.6249 12.6663C21.2916 11.9719 21.7985 11.1177 22.1458 10.1038C22.493 9.08995 22.6666 7.95801 22.6666 6.70801C22.6666 5.45801 22.493 4.35384 22.1458 3.39551C21.7985 2.43717 21.2916 1.55523 20.6249 0.749674C20.9305 0.666341 21.2708 0.596897 21.6458 0.541341C22.0208 0.485786 22.361 0.458008 22.6666 0.458008C24.4999 0.458008 25.9999 1.04134 27.1666 2.20801C28.3333 3.37467 28.9166 4.87467 28.9166 6.70801ZM3.08325 23.833H24.7499V22.4163C24.7499 21.9719 24.618 21.5413 24.3541 21.1247C24.0902 20.708 23.7638 20.4163 23.3749 20.2497C21.3749 19.3608 19.6944 18.7636 18.3333 18.458C16.9721 18.1525 15.4999 17.9997 13.9166 17.9997C12.3333 17.9997 10.8541 18.1525 9.47909 18.458C8.10409 18.7636 6.41659 19.3608 4.41659 20.2497C4.0277 20.4163 3.70825 20.708 3.45825 21.1247C3.20825 21.5413 3.08325 21.9719 3.08325 22.4163V23.833ZM13.9166 10.458C14.9999 10.458 15.8958 10.1038 16.6041 9.39551C17.3124 8.68717 17.6666 7.79134 17.6666 6.70801C17.6666 5.62467 17.3124 4.72884 16.6041 4.02051C15.8958 3.31217 14.9999 2.95801 13.9166 2.95801C12.8333 2.95801 11.9374 3.31217 11.2291 4.02051C10.5208 4.72884 10.1666 5.62467 10.1666 6.70801C10.1666 7.79134 10.5208 8.68717 11.2291 9.39551C11.9374 10.1038 12.8333 10.458 13.9166 10.458Z"
|
|
497
537
|
fill="currentColor"
|
|
498
538
|
/>
|
|
499
539
|
</symbol>
|
|
500
|
-
</svg>
|
|
540
|
+
</svg>
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
@import "../../../shared/components/EmptyState/empty-state.scss";
|
|
21
21
|
@import "../../../shared/components/Paginator/paginator.scss";
|
|
22
22
|
|
|
23
|
-
padding: calc(var(--fs-spacing-9) - var(--fs-spacing-0));
|
|
24
23
|
padding-top: 0;
|
|
25
24
|
display: flex;
|
|
26
25
|
flex-direction: column;
|
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
@import "../../../shared/components/HeaderInside/header-inside.scss";
|
|
11
11
|
@import "../../../shared/components/EmptyState/empty-state.scss";
|
|
12
12
|
|
|
13
|
-
padding: 0 calc(var(--fs-spacing-9) - var(--fs-spacing-0));
|
|
14
|
-
|
|
15
13
|
[data-fs-topbar-actions-wrapper] {
|
|
16
14
|
display: flex;
|
|
17
15
|
flex-direction: row;
|
|
@@ -16,11 +16,6 @@
|
|
|
16
16
|
@import "../../../shared/components/HierarchyTree/hierarchy-tree.scss";
|
|
17
17
|
@import "../../../shared/components/InternalSearch/internal-search.scss";
|
|
18
18
|
|
|
19
|
-
padding: 0 calc(var(--fs-spacing-9) - var(--fs-spacing-0));
|
|
20
|
-
height: 100%;
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
|
|
24
19
|
[data-fs-hierarchy-tree-wrapper] {
|
|
25
20
|
flex: 1;
|
|
26
21
|
display: flex;
|
package/src/features/payment-methods/layouts/PaymentMethodsLayout/payment-methods-layout.scss
CHANGED
|
@@ -86,8 +86,6 @@
|
|
|
86
86
|
@import "../../../shared/components/Table/table.scss";
|
|
87
87
|
@import "../../../shared/components/EmptyState/empty-state.scss";
|
|
88
88
|
|
|
89
|
-
padding: 0 calc(var(--fs-spacing-9) - var(--fs-spacing-0));
|
|
90
|
-
|
|
91
89
|
[data-fs-payment-methods-divider] {
|
|
92
90
|
border: calc(var(--fs-border-width) / 2) solid #e0e0e0;
|
|
93
91
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
|
|
3
|
+
import { Container } from "./Container";
|
|
3
4
|
import { Content } from "./Content";
|
|
4
5
|
import { Navbar } from "./Navbar";
|
|
5
6
|
import { SidebarMenu } from "./SidebarMenu";
|
|
@@ -22,3 +23,4 @@ export const BaseTabsLayout = ({
|
|
|
22
23
|
BaseTabsLayout.Content = Content;
|
|
23
24
|
BaseTabsLayout.Navbar = Navbar;
|
|
24
25
|
BaseTabsLayout.SidebarMenu = SidebarMenu;
|
|
26
|
+
BaseTabsLayout.Container = Container;
|
|
@@ -52,20 +52,11 @@ export const SidebarMenu = ({ ...otherProps }: SidebarMenuProps) => {
|
|
|
52
52
|
{getFinanceSettingsLinks({
|
|
53
53
|
orgUnitId: currentOrgUnit?.id ?? "",
|
|
54
54
|
contractId: idContract,
|
|
55
|
-
}).map((option) =>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
if (parts.length === 3) {
|
|
61
|
-
finalLink = `${option.link}${idContract}/`;
|
|
62
|
-
}
|
|
63
|
-
return (
|
|
64
|
-
<VerticalNav.Link key={option.name} link={finalLink}>
|
|
65
|
-
{option.name}
|
|
66
|
-
</VerticalNav.Link>
|
|
67
|
-
);
|
|
68
|
-
})}
|
|
55
|
+
}).map((option) => (
|
|
56
|
+
<VerticalNav.Link key={option.name} link={option.link}>
|
|
57
|
+
{option.name}
|
|
58
|
+
</VerticalNav.Link>
|
|
59
|
+
))}
|
|
69
60
|
</VerticalNav.Menu>
|
|
70
61
|
</aside>
|
|
71
62
|
);
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
@import "./sidebar-drawer/sidebar-drawer.scss";
|
|
2
2
|
|
|
3
3
|
[data-fs-bp-base-tabs-layout] {
|
|
4
|
-
--fs-bp-nav-height: 4.25rem;
|
|
5
|
-
|
|
6
|
-
min-height: 100vh;
|
|
7
|
-
|
|
8
4
|
display: grid;
|
|
9
|
-
grid-template-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
grid-template-columns: 26.25rem 1fr;
|
|
14
|
-
grid-template-rows: var(--fs-bp-nav-height) 1fr;
|
|
5
|
+
grid-template-rows: auto 1fr;
|
|
6
|
+
height: 100vh;
|
|
7
|
+
overflow: hidden;
|
|
15
8
|
|
|
16
9
|
[data-fs-bp-nav] {
|
|
17
|
-
grid-area: navbar;
|
|
18
|
-
|
|
19
10
|
display: flex;
|
|
20
11
|
width: 100%;
|
|
21
12
|
align-items: center;
|
|
@@ -109,12 +100,29 @@
|
|
|
109
100
|
}
|
|
110
101
|
}
|
|
111
102
|
|
|
103
|
+
[data-fs-bp-base-tabs-layout-container] {
|
|
104
|
+
display: grid;
|
|
105
|
+
grid-template-columns: 26.25rem 1fr;
|
|
106
|
+
width: 100%;
|
|
107
|
+
max-width: var(--fs-grid-breakpoint-desktop);
|
|
108
|
+
margin: 0 auto;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
|
|
111
|
+
@include media("<notebook") {
|
|
112
|
+
grid-template-columns: 1fr;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
112
116
|
[data-fs-bp-sidebar-menu] {
|
|
113
117
|
@import "../../components/LetterHighlight/letter-highlight.scss";
|
|
114
118
|
@import "../../components/VerticalNav/vertical-nav.scss";
|
|
115
119
|
|
|
116
|
-
grid-area: sidebar;
|
|
117
120
|
padding: var(--fs-spacing-6);
|
|
121
|
+
overflow-y: auto;
|
|
122
|
+
|
|
123
|
+
@include media("<notebook") {
|
|
124
|
+
display: none;
|
|
125
|
+
}
|
|
118
126
|
|
|
119
127
|
[data-fs-bp-letter-highlight] {
|
|
120
128
|
margin-left: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
@@ -122,6 +130,7 @@
|
|
|
122
130
|
|
|
123
131
|
[data-fs-vertical-nav-menu] {
|
|
124
132
|
padding-bottom: var(--fs-spacing-2);
|
|
133
|
+
|
|
125
134
|
[data-fs-vertical-nav-menu-list] {
|
|
126
135
|
[data-fs-vertical-nav-menu-link] {
|
|
127
136
|
padding: var(--fs-spacing-2)
|
|
@@ -145,21 +154,15 @@
|
|
|
145
154
|
}
|
|
146
155
|
|
|
147
156
|
[data-fs-bp-base-tabs-layout-content] {
|
|
148
|
-
grid-area: content;
|
|
149
|
-
|
|
150
|
-
max-height: calc(100vh - var(--fs-bp-nav-height));
|
|
151
157
|
overflow-y: auto;
|
|
152
|
-
padding: 0 var(--fs-
|
|
153
|
-
}
|
|
158
|
+
padding: 0 calc(var(--fs-spacing-8) + var(--fs-spacing-0));
|
|
154
159
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
"content";
|
|
159
|
-
grid-template-columns: 1fr;
|
|
160
|
+
@include media("<notebook") {
|
|
161
|
+
padding: 0 var(--fs-spacing-7);
|
|
162
|
+
}
|
|
160
163
|
|
|
161
|
-
|
|
162
|
-
|
|
164
|
+
@include media("<tablet") {
|
|
165
|
+
padding: 0 calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
}
|
|
@@ -46,18 +46,20 @@ export const ContractTabsLayout = ({
|
|
|
46
46
|
}}
|
|
47
47
|
loading={loading}
|
|
48
48
|
/>
|
|
49
|
-
<BaseTabsLayout.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
49
|
+
<BaseTabsLayout.Container>
|
|
50
|
+
<BaseTabsLayout.SidebarMenu
|
|
51
|
+
loading={loading}
|
|
52
|
+
dropdownOptions={
|
|
53
|
+
<DropdownItem>
|
|
54
|
+
<Icon name="DoNotDisturbOn" width={20} height={20} />
|
|
55
|
+
Remove from unit
|
|
56
|
+
</DropdownItem>
|
|
57
|
+
}
|
|
58
|
+
verticalLinks={verticalLinks}
|
|
59
|
+
name={currentContract?.name ?? ""}
|
|
60
|
+
/>
|
|
61
|
+
<BaseTabsLayout.Content>{children}</BaseTabsLayout.Content>
|
|
62
|
+
</BaseTabsLayout.Container>
|
|
61
63
|
</BaseTabsLayout>
|
|
62
64
|
);
|
|
63
65
|
};
|
|
@@ -33,12 +33,14 @@ export const FinanceTabsLayout = ({
|
|
|
33
33
|
}}
|
|
34
34
|
loading={loading}
|
|
35
35
|
/>
|
|
36
|
-
<BaseTabsLayout.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
<BaseTabsLayout.Container>
|
|
37
|
+
<BaseTabsLayout.SidebarMenu
|
|
38
|
+
verticalLinks={verticalLinks}
|
|
39
|
+
showLetterHighlight={false}
|
|
40
|
+
loading={loading}
|
|
41
|
+
/>
|
|
42
|
+
<BaseTabsLayout.Content>{children}</BaseTabsLayout.Content>
|
|
43
|
+
</BaseTabsLayout.Container>
|
|
42
44
|
</BaseTabsLayout>
|
|
43
45
|
);
|
|
44
46
|
};
|
|
@@ -30,12 +30,14 @@ export const OrgUnitTabsLayout = ({
|
|
|
30
30
|
}}
|
|
31
31
|
loading={loading}
|
|
32
32
|
/>
|
|
33
|
-
<BaseTabsLayout.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
<BaseTabsLayout.Container>
|
|
34
|
+
<BaseTabsLayout.SidebarMenu
|
|
35
|
+
verticalLinks={verticalLinks}
|
|
36
|
+
showLetterHighlight={false}
|
|
37
|
+
loading={loading}
|
|
38
|
+
/>
|
|
39
|
+
<BaseTabsLayout.Content>{children}</BaseTabsLayout.Content>
|
|
40
|
+
</BaseTabsLayout.Container>
|
|
39
41
|
</BaseTabsLayout>
|
|
40
42
|
);
|
|
41
43
|
};
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { buyerPortalRoutes } from "./buyerPortalRoutes";
|
|
2
2
|
|
|
3
|
+
const normalizeFinanceLinks = (route: string, contracId: string) => {
|
|
4
|
+
const parts = route.split("/").filter(Boolean);
|
|
5
|
+
|
|
6
|
+
if (parts.length === 3) {
|
|
7
|
+
route += `${contracId}`;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
return route;
|
|
11
|
+
};
|
|
12
|
+
|
|
3
13
|
export const getFinanceSettingsLinks = ({
|
|
4
14
|
orgUnitId,
|
|
5
15
|
contractId,
|
|
@@ -9,10 +19,16 @@ export const getFinanceSettingsLinks = ({
|
|
|
9
19
|
}) => [
|
|
10
20
|
{
|
|
11
21
|
name: "Budgets",
|
|
12
|
-
link:
|
|
22
|
+
link: normalizeFinanceLinks(
|
|
23
|
+
buyerPortalRoutes.budgets({ orgUnitId, contractId }),
|
|
24
|
+
contractId
|
|
25
|
+
),
|
|
13
26
|
},
|
|
14
27
|
{
|
|
15
28
|
name: "Buying Policies",
|
|
16
|
-
link:
|
|
29
|
+
link: normalizeFinanceLinks(
|
|
30
|
+
buyerPortalRoutes.buyingPolicies({ orgUnitId, contractId }),
|
|
31
|
+
contractId
|
|
32
|
+
),
|
|
17
33
|
},
|
|
18
34
|
];
|
|
@@ -2,7 +2,7 @@ import { useState } from "react";
|
|
|
2
2
|
|
|
3
3
|
import { useRouter } from "next/router";
|
|
4
4
|
|
|
5
|
-
import { useUI } from "@faststore/ui";
|
|
5
|
+
import { Button, useUI } from "@faststore/ui";
|
|
6
6
|
|
|
7
7
|
import { RoleData } from "../../../roles/types";
|
|
8
8
|
import {
|
|
@@ -156,6 +156,12 @@ export const CreateUserDrawer = ({
|
|
|
156
156
|
});
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
+
const hasRolesError = !rolesOptions || rolesOptions.length === 0;
|
|
160
|
+
|
|
161
|
+
const handleRetryRoles = () => {
|
|
162
|
+
router.reload();
|
|
163
|
+
};
|
|
164
|
+
|
|
159
165
|
return (
|
|
160
166
|
<BasicDrawer data-fs-bp-create-user-drawer close={close} {...props}>
|
|
161
167
|
<BasicDrawer.Heading
|
|
@@ -181,66 +187,80 @@ export const CreateUserDrawer = ({
|
|
|
181
187
|
{drawerState === "CREATE_USER" && (
|
|
182
188
|
<>
|
|
183
189
|
<BasicDrawer.Body>
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
{hasRolesError ? (
|
|
191
|
+
<div data-fs-bp-create-user-error-state>
|
|
192
|
+
<Icon name="Warning" height={48} width={48} />
|
|
193
|
+
<h3>Something went wrong</h3>
|
|
194
|
+
<p>The add user form could not be loaded.</p>
|
|
195
|
+
<Button variant="secondary" onClick={handleRetryRoles}>
|
|
196
|
+
Try again
|
|
197
|
+
</Button>
|
|
198
|
+
</div>
|
|
199
|
+
) : (
|
|
200
|
+
<>
|
|
201
|
+
<InputText
|
|
202
|
+
label="Full Name"
|
|
203
|
+
value={name}
|
|
204
|
+
hasError={isTouched && !name?.trim()}
|
|
205
|
+
onChange={(event) => updateField("name", event.target.value)}
|
|
206
|
+
/>
|
|
190
207
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
208
|
+
<ErrorMessage
|
|
209
|
+
show={isTouched && !name?.trim()}
|
|
210
|
+
message="Full name is required"
|
|
211
|
+
/>
|
|
195
212
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
213
|
+
<InputText
|
|
214
|
+
label="Email"
|
|
215
|
+
value={email}
|
|
216
|
+
wrapperProps={{ style: { marginTop: 16, marginBottom: 16 } }}
|
|
217
|
+
hasError={isTouched && !email?.trim()}
|
|
218
|
+
onChange={(event) => updateField("email", event.target.value)}
|
|
219
|
+
/>
|
|
220
|
+
|
|
221
|
+
<ErrorMessage
|
|
222
|
+
show={isTouched && !name?.trim()}
|
|
223
|
+
message="Email is required"
|
|
224
|
+
/>
|
|
203
225
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
message="Email is required"
|
|
207
|
-
/>
|
|
226
|
+
<div data-fs-bp-create-user-roles>
|
|
227
|
+
<span data-fs-bp-create-user-roles-label>Roles</span>
|
|
208
228
|
|
|
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
|
-
</div>
|
|
229
|
+
{rolesOptions &&
|
|
230
|
+
rolesOptions.map((role) => {
|
|
231
|
+
const id = `role-${role.roleName
|
|
232
|
+
.toLowerCase()
|
|
233
|
+
.replace(" ", "-")}`;
|
|
234
|
+
return (
|
|
235
|
+
<span
|
|
236
|
+
data-fs-bp-create-user-role-wrapper
|
|
237
|
+
key={role.roleName}
|
|
238
|
+
>
|
|
239
|
+
<input
|
|
240
|
+
type="checkbox"
|
|
241
|
+
key={role.roleName}
|
|
242
|
+
value={role.roleName}
|
|
243
|
+
id={id}
|
|
244
|
+
checked={roles?.includes(role.roleId)}
|
|
245
|
+
onChange={(event) => {
|
|
246
|
+
const newRoles = event.target.checked
|
|
247
|
+
? [...(roles ?? []), role.roleId]
|
|
248
|
+
: roles?.filter((r) => r !== role.roleId) ?? [];
|
|
249
|
+
updateField("roles", newRoles);
|
|
250
|
+
}}
|
|
251
|
+
/>
|
|
252
|
+
<label htmlFor={id}>{role.roleName}</label>
|
|
253
|
+
</span>
|
|
254
|
+
);
|
|
255
|
+
})}
|
|
256
|
+
</div>
|
|
239
257
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
258
|
+
<ErrorMessage
|
|
259
|
+
show={isTouched && !roles?.length}
|
|
260
|
+
message="Role is required"
|
|
261
|
+
/>
|
|
262
|
+
</>
|
|
263
|
+
)}
|
|
244
264
|
</BasicDrawer.Body>
|
|
245
265
|
<BasicDrawer.Footer>
|
|
246
266
|
<BasicDrawer.Button variant="ghost" onClick={close}>
|
|
@@ -248,7 +268,7 @@ export const CreateUserDrawer = ({
|
|
|
248
268
|
</BasicDrawer.Button>
|
|
249
269
|
<BasicDrawer.Button
|
|
250
270
|
variant="confirm"
|
|
251
|
-
disabled={!isConfirmButtonEnabled}
|
|
271
|
+
disabled={!isConfirmButtonEnabled || hasRolesError}
|
|
252
272
|
onClick={handleConfirmClick}
|
|
253
273
|
isLoading={isAddUserToOrgUnitLoading}
|
|
254
274
|
>
|
|
@@ -37,4 +37,55 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
[data-fs-bp-roles-error-container] {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
align-items: flex-start;
|
|
45
|
+
gap: var(--fs-spacing-2);
|
|
46
|
+
|
|
47
|
+
[data-fs-button] {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
font-weight: var(--fs-text-weight-semibold);
|
|
50
|
+
font-size: var(--fs-text-size-0);
|
|
51
|
+
color: #1f1f1f;
|
|
52
|
+
padding: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[data-fs-bp-create-user-error-state] {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
text-align: center;
|
|
62
|
+
padding: var(--fs-spacing-8) var(--fs-spacing-4);
|
|
63
|
+
gap: var(--fs-spacing-3);
|
|
64
|
+
min-height: 12.5rem;
|
|
65
|
+
|
|
66
|
+
[data-fs-icon] {
|
|
67
|
+
color: #d31a15;
|
|
68
|
+
margin-bottom: var(--fs-spacing-2);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
h3 {
|
|
72
|
+
font-size: var(--fs-text-size-3);
|
|
73
|
+
font-weight: var(--fs-text-weight-semibold);
|
|
74
|
+
color: var(--fs-color-text);
|
|
75
|
+
margin: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
p {
|
|
79
|
+
font-size: var(--fs-text-size-1);
|
|
80
|
+
color: var(--fs-color-text-light);
|
|
81
|
+
margin: 0;
|
|
82
|
+
margin-bottom: var(--fs-spacing-2);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
button {
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
font-size: var(--fs-text-size-1);
|
|
88
|
+
font-weight: var(--fs-text-weight-semibold);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
40
91
|
}
|
|
@@ -61,8 +61,6 @@
|
|
|
61
61
|
@import "../../../shared/components/HeaderInside/header-inside.scss";
|
|
62
62
|
@import "../../../shared/components/Tag/tag.scss";
|
|
63
63
|
|
|
64
|
-
padding: 0 calc(var(--fs-spacing-9) - var(--fs-spacing-0));
|
|
65
|
-
|
|
66
64
|
[data-fs-user-details-header-status] {
|
|
67
65
|
display: flex;
|
|
68
66
|
align-items: center;
|
|
@@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
|
|
|
2
2
|
|
|
3
3
|
import { Tooltip } from "@faststore/ui";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { RoleData } from "../../../roles/types";
|
|
6
6
|
import {
|
|
7
7
|
InternalSearch,
|
|
8
8
|
HeaderInside,
|
|
@@ -30,11 +30,12 @@ export type UsersLayoutProps = {
|
|
|
30
30
|
total: number;
|
|
31
31
|
search: string;
|
|
32
32
|
page: number;
|
|
33
|
+
rolesOptions: RoleData[];
|
|
33
34
|
};
|
|
34
35
|
};
|
|
35
36
|
|
|
36
37
|
export const UsersLayout = ({
|
|
37
|
-
data: { users, search, total, page },
|
|
38
|
+
data: { users, search, total, page, rolesOptions },
|
|
38
39
|
}: UsersLayoutProps) => {
|
|
39
40
|
const [totalUsers, setTotalUsers] = useState(total);
|
|
40
41
|
const { isLoading, items, increasePage, searchTerm, setSearchTerm } =
|
|
@@ -45,7 +46,6 @@ export const UsersLayout = ({
|
|
|
45
46
|
});
|
|
46
47
|
|
|
47
48
|
const { currentOrgUnit } = useBuyerPortal();
|
|
48
|
-
const { rolesOptions } = useGetRolesOptions(currentOrgUnit?.id ?? "");
|
|
49
49
|
|
|
50
50
|
const {
|
|
51
51
|
open: openCreateUserDrawer,
|
package/src/pages/users.tsx
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { getOrgUnitBasicDataService } from "../features/org-units/services";
|
|
2
|
+
import { getRolesIdsService } from "../features/roles/services";
|
|
3
|
+
import { RoleData } from "../features/roles/types";
|
|
2
4
|
import { BuyerPortalProvider } from "../features/shared/components";
|
|
3
5
|
import {
|
|
4
6
|
type ClientContext,
|
|
@@ -24,11 +26,13 @@ export type UsersPageData = {
|
|
|
24
26
|
total: number;
|
|
25
27
|
search: string;
|
|
26
28
|
page: number;
|
|
29
|
+
rolesOptions: RoleData[];
|
|
27
30
|
};
|
|
28
31
|
context: {
|
|
29
32
|
clientContext: ClientContext;
|
|
30
33
|
currentOrgUnit: OrgUnitBasicData | null;
|
|
31
34
|
currentUser: UserData | null;
|
|
35
|
+
rolesOptions: RoleData[];
|
|
32
36
|
};
|
|
33
37
|
};
|
|
34
38
|
|
|
@@ -46,19 +50,26 @@ export async function loader(
|
|
|
46
50
|
const { orgUnitId, search = "", page = "1" } = data.query;
|
|
47
51
|
const validPage = getValidPage(page);
|
|
48
52
|
|
|
49
|
-
const [currentOrgUnit, usersResponse, user] = await Promise.all(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
const [currentOrgUnit, usersResponse, user, rolesOptions] = await Promise.all(
|
|
54
|
+
[
|
|
55
|
+
getOrgUnitBasicDataService({
|
|
56
|
+
id: orgUnitId,
|
|
57
|
+
cookie,
|
|
58
|
+
}),
|
|
59
|
+
getUsersByOrgUnitIdService({
|
|
60
|
+
cookie,
|
|
61
|
+
orgUnitId,
|
|
62
|
+
search: search ?? "",
|
|
63
|
+
page: validPage ?? 1,
|
|
64
|
+
}),
|
|
65
|
+
getUserByIdService({ orgUnitId, userId, cookie }),
|
|
66
|
+
getRolesIdsService({
|
|
67
|
+
unitId: orgUnitId,
|
|
68
|
+
cookie,
|
|
69
|
+
customerId: clientContext.customerId,
|
|
70
|
+
}),
|
|
71
|
+
]
|
|
72
|
+
);
|
|
62
73
|
|
|
63
74
|
const { users, total } = usersResponse;
|
|
64
75
|
|
|
@@ -77,11 +88,13 @@ export async function loader(
|
|
|
77
88
|
total,
|
|
78
89
|
search: search,
|
|
79
90
|
page: validPage,
|
|
91
|
+
rolesOptions,
|
|
80
92
|
},
|
|
81
93
|
context: {
|
|
82
94
|
clientContext: { cookie, userId, ...clientContext },
|
|
83
95
|
currentOrgUnit,
|
|
84
96
|
currentUser: user,
|
|
97
|
+
rolesOptions,
|
|
85
98
|
},
|
|
86
99
|
};
|
|
87
100
|
}
|