@omniumretail/shared-resources 0.0.11 → 0.0.12
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/dist/bundle.js +180 -59
- package/dist/types/components/Button/index.d.ts +1 -5
- package/dist/types/hooks/index.d.ts +8 -0
- package/dist/types/hooks/useAllRolesQuery.hook.d.ts +11 -0
- package/dist/types/hooks/useAllStoreQuery.hook.d.ts +11 -0
- package/dist/types/hooks/useAnswersUserSupervisorQuery.hook.d.ts +7 -0
- package/dist/types/hooks/useCountriesQuery.hook.d.ts +7 -0
- package/dist/types/hooks/useCustomersQuery.hook.d.ts +138 -0
- package/dist/types/hooks/useProductsQuery.hook.d.ts +7 -0
- package/dist/types/hooks/useSingleUserIdMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/useSingleUserIdQuery.hook.d.ts +2 -0
- package/dist/types/interfaces/AnswersUserSupervisor.d.ts +42 -0
- package/dist/types/interfaces/Cart.d.ts +9 -0
- package/dist/types/interfaces/Countries.d.ts +10 -0
- package/dist/types/interfaces/Product.d.ts +2 -0
- package/dist/types/interfaces/Roles.d.ts +5 -0
- package/dist/types/interfaces/User.d.ts +47 -0
- package/dist/types/interfaces/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/components/Button/index.tsx +2 -17
- package/src/hooks/index.ts +8 -0
- package/src/hooks/useAllRolesQuery.hook.ts +21 -0
- package/src/hooks/useAllStoreQuery.hook.ts +27 -0
- package/src/hooks/useAnswersUserSupervisorQuery.hook.tsx +21 -0
- package/src/hooks/useCountriesQuery.hook.ts +14 -0
- package/src/hooks/useCustomersQuery.hook.ts +30 -0
- package/src/hooks/useProductsQuery.hook.ts +12 -0
- package/src/hooks/useSingleUserIdMutateQuery.hook.ts +17 -0
- package/src/hooks/useSingleUserIdQuery.hook.ts +14 -0
- package/src/interfaces/AnswersUserSupervisor.ts +45 -0
- package/src/interfaces/Cart.ts +12 -0
- package/src/interfaces/Countries.ts +10 -0
- package/src/interfaces/Product.ts +2 -0
- package/src/interfaces/Roles.ts +5 -0
- package/src/interfaces/User.ts +50 -0
- package/src/interfaces/index.ts +5 -1
- package/src/components/Button/styles.module.scss +0 -67
package/src/interfaces/User.ts
CHANGED
|
@@ -17,3 +17,53 @@ export interface User {
|
|
|
17
17
|
Team: string;
|
|
18
18
|
UserName: string;
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
interface JobTitle {
|
|
22
|
+
Id: string;
|
|
23
|
+
Name: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface ContractState {
|
|
27
|
+
Id: string;
|
|
28
|
+
Name: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface Roles {
|
|
32
|
+
Id: string;
|
|
33
|
+
Name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface SingleUser {
|
|
37
|
+
UserId: string;
|
|
38
|
+
FullName: string;
|
|
39
|
+
Email: string;
|
|
40
|
+
DisplayName: string;
|
|
41
|
+
PhoneNumber: number;
|
|
42
|
+
Code: string;
|
|
43
|
+
Birthday: number;
|
|
44
|
+
AdmissionData: number;
|
|
45
|
+
ResignDate: number;
|
|
46
|
+
Address: string;
|
|
47
|
+
ZipCode: string;
|
|
48
|
+
City: string;
|
|
49
|
+
CountryIso02: string;
|
|
50
|
+
JobTitle: JobTitle;
|
|
51
|
+
ContractState: ContractState;
|
|
52
|
+
Stores: string[];
|
|
53
|
+
SupervisorId: string;
|
|
54
|
+
ImageUrl: string;
|
|
55
|
+
Tags: string[];
|
|
56
|
+
Roles: Roles;
|
|
57
|
+
IdentityCardNumber: number | string;
|
|
58
|
+
IdentityCardExpirationDate: number | string;
|
|
59
|
+
PlaceOfBirth: string;
|
|
60
|
+
MaritalStatus: string;
|
|
61
|
+
NumberOfChildren: number;
|
|
62
|
+
Qualifications: string;
|
|
63
|
+
TaxNumber: string;
|
|
64
|
+
SocialSecurityNumber: string;
|
|
65
|
+
IBAN: string;
|
|
66
|
+
CreateDate: number;
|
|
67
|
+
UpdateDate: string
|
|
68
|
+
ContractStatusId: string;
|
|
69
|
+
}
|
package/src/interfaces/index.ts
CHANGED
|
@@ -9,4 +9,8 @@ export * from './User';
|
|
|
9
9
|
export * from './Questionnaire';
|
|
10
10
|
export * from './AnalyticsEvaluationCycle';
|
|
11
11
|
export * from './Answer';
|
|
12
|
-
export * from './AnalyticsUserId';
|
|
12
|
+
export * from './AnalyticsUserId';
|
|
13
|
+
export * from './Countries';
|
|
14
|
+
export * from './Roles';
|
|
15
|
+
export * from './AnswersUserSupervisor';
|
|
16
|
+
export * from './Cart';
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
.button {
|
|
2
|
-
padding: 12px 24px;
|
|
3
|
-
border-radius: 4px;
|
|
4
|
-
min-width: 100px;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
align-self: flex-start;
|
|
9
|
-
text-decoration: none;
|
|
10
|
-
border: none;
|
|
11
|
-
font-size: 14px;
|
|
12
|
-
line-height: 16.8px;
|
|
13
|
-
font-weight: 700;
|
|
14
|
-
font-family: 'Silka', sans-serif;
|
|
15
|
-
background-color: var(--button-default-background);
|
|
16
|
-
color: var(--button-default-text-color);
|
|
17
|
-
|
|
18
|
-
&:hover {
|
|
19
|
-
background-color: var(--button-default-background-hover-color);
|
|
20
|
-
//override ANTD default colors
|
|
21
|
-
color: var(--button-default-text-hover-color) !important;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:focus,
|
|
25
|
-
&:active,
|
|
26
|
-
&:focus:active {
|
|
27
|
-
background-color: var(--button-default-background-focus-color);
|
|
28
|
-
color: var(--button-default-text-focus-color);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:disabled,
|
|
32
|
-
&.disabled {
|
|
33
|
-
background-color: var(--button-disabled-background-color);
|
|
34
|
-
color: var(--button-disabled-default-text-color);
|
|
35
|
-
pointer-events: none;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&--iconPositionStyle {
|
|
39
|
-
flex-direction: row-reverse;
|
|
40
|
-
gap: 5px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&--style1 {
|
|
44
|
-
background-color: var(--button-style-1-background);
|
|
45
|
-
color: var(--button-style-1-text-color);
|
|
46
|
-
|
|
47
|
-
&:hover {
|
|
48
|
-
background-color: var(--button-style-1-background-hover-color);
|
|
49
|
-
//override ANTD default colors
|
|
50
|
-
color: var(--button-style-1-text-hover-color) !important;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:focus,
|
|
54
|
-
&:active,
|
|
55
|
-
&:focus:active {
|
|
56
|
-
background-color: var(--button-style-1-background-focus-color);
|
|
57
|
-
color: var(--button-style-1-text-focus-color);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&:disabled,
|
|
61
|
-
&.disabled {
|
|
62
|
-
background-color: var(--button-disabled-background-color);
|
|
63
|
-
color: var(--button-disabled-default-text-color);
|
|
64
|
-
pointer-events: none;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|