@opexa/portal-components 0.0.154 → 0.0.158

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.
Files changed (83) hide show
  1. package/dist/client/hooks/useBonusesQuery.d.ts +2 -1
  2. package/dist/client/hooks/useBonusesQuery.js +3 -3
  3. package/dist/client/hooks/useMarkMessageAsReadMutation.js +5 -1
  4. package/dist/client/hooks/useMessagesQuery.js +1 -0
  5. package/dist/client/hooks/useUnreadMessagesCountQuery.js +1 -0
  6. package/dist/components/AccountVerification/AccountVerification.js +1 -5
  7. package/dist/components/Bonuses/Bonuses.client.js +29 -17
  8. package/dist/components/Bonuses/Bonuses.js +2 -1
  9. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
  10. package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
  11. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
  12. package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
  13. package/dist/components/KYC/AutoOpen.d.ts +1 -0
  14. package/dist/components/KYC/AutoOpen.js +25 -0
  15. package/dist/components/KYC/BasicInformation.js +6 -4
  16. package/dist/components/KYC/CaptureSelfie.js +1 -2
  17. package/dist/components/KYC/FileUpload.js +29 -3
  18. package/dist/components/KYC/KYC.js +2 -1
  19. package/dist/components/KYC/KYC.lazy.js +3 -26
  20. package/dist/components/KYC/useKYC.d.ts +1 -0
  21. package/dist/components/KYC/useKYC.js +8 -0
  22. package/dist/components/KYC/utils.d.ts +1 -0
  23. package/dist/components/KYC/utils.js +9 -0
  24. package/dist/components/Messages/Messages.lazy.js +2 -2
  25. package/dist/components/Messages/MessagesPopup.js +19 -14
  26. package/dist/components/News/News.js +1 -1
  27. package/dist/components/PortalProvider/PortalProvider.js +2 -1
  28. package/dist/components/PortalProvider/WebVitals.d.ts +1 -0
  29. package/dist/components/PortalProvider/WebVitals.js +8 -0
  30. package/dist/components/Search/Search.lazy.js +2 -2
  31. package/dist/components/SignUp/SignUpForm.js +0 -4
  32. package/dist/constants/EnvVar.d.ts +1 -0
  33. package/dist/constants/EnvVar.js +5 -0
  34. package/dist/handlers.js +1 -4
  35. package/dist/server/utils/prefetchBonusesQuery.d.ts +2 -1
  36. package/dist/server/utils/prefetchBonusesQuery.js +3 -3
  37. package/dist/services/graphqlRequest.js +3 -1
  38. package/dist/services/httpRequest.js +3 -1
  39. package/dist/services/queries.d.ts +1 -1
  40. package/dist/services/queries.js +2 -2
  41. package/dist/services/wallet.d.ts +11 -2
  42. package/dist/services/wallet.js +2 -2
  43. package/dist/ui/Carousel/Carousel.d.ts +72 -72
  44. package/dist/ui/Carousel/carousel.recipe.d.ts +8 -8
  45. package/dist/ui/Tooltip/Tooltip.d.ts +48 -48
  46. package/dist/ui/Tooltip/tooltip.recipe.d.ts +8 -8
  47. package/dist/utils/queryKeys.d.ts +2 -2
  48. package/dist/utils/queryKeys.js +1 -1
  49. package/package.json +1 -1
  50. package/dist/components/KYC/backup/Header.d.ts +0 -1
  51. package/dist/components/KYC/backup/Header.js +0 -8
  52. package/dist/components/KYC/backup/Indicator.d.ts +0 -1
  53. package/dist/components/KYC/backup/Indicator.js +0 -9
  54. package/dist/components/KYC/backup/KYC.d.ts +0 -1
  55. package/dist/components/KYC/backup/KYC.js +0 -14
  56. package/dist/components/KYC/backup/KYC.lazy.d.ts +0 -1
  57. package/dist/components/KYC/backup/KYC.lazy.js +0 -26
  58. package/dist/components/KYC/backup/KYCContext.d.ts +0 -6
  59. package/dist/components/KYC/backup/KYCContext.js +0 -2
  60. package/dist/components/KYC/backup/Step1.d.ts +0 -1
  61. package/dist/components/KYC/backup/Step1.js +0 -13
  62. package/dist/components/KYC/backup/Step2.d.ts +0 -1
  63. package/dist/components/KYC/backup/Step2.js +0 -13
  64. package/dist/components/KYC/backup/Step3.d.ts +0 -1
  65. package/dist/components/KYC/backup/Step3.js +0 -13
  66. package/dist/components/KYC/backup/Step4.d.ts +0 -1
  67. package/dist/components/KYC/backup/Step4.js +0 -7
  68. package/dist/components/KYC/backup/useKYC.d.ts +0 -10
  69. package/dist/components/KYC/backup/useKYC.js +0 -8
  70. package/dist/components/KYC/loadModels.d.ts +0 -1
  71. package/dist/components/KYC/loadModels.js +0 -9
  72. package/dist/components/Messages/Message.d.ts +0 -1
  73. package/dist/components/Messages/Message.js +0 -37
  74. package/dist/components/Messages/MessageContext.d.ts +0 -6
  75. package/dist/components/Messages/MessageContext.js +0 -2
  76. package/dist/components/Messages/MessagePopup.d.ts +0 -1
  77. package/dist/components/Messages/MessagePopup.js +0 -24
  78. package/dist/components/Messages/MessageTrigger.d.ts +0 -8
  79. package/dist/components/Messages/MessageTrigger.js +0 -19
  80. package/dist/constants/BranchCode.d.ts +0 -4
  81. package/dist/constants/BranchCode.js +0 -42
  82. package/dist/icons/BellRingIcon.d.ts +0 -2
  83. package/dist/icons/BellRingIcon.js +0 -4
@@ -3,186 +3,186 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
3
3
  [key: string]: {
4
4
  [key: string]: import("tailwind-variants").ClassValue | {
5
5
  content?: import("tailwind-variants").ClassValue;
6
- arrow?: import("tailwind-variants").ClassValue;
7
- arrowTip?: import("tailwind-variants").ClassValue;
8
6
  trigger?: import("tailwind-variants").ClassValue;
9
7
  positioner?: import("tailwind-variants").ClassValue;
8
+ arrow?: import("tailwind-variants").ClassValue;
9
+ arrowTip?: import("tailwind-variants").ClassValue;
10
10
  };
11
11
  };
12
12
  } | {
13
13
  [x: string]: {
14
14
  [x: string]: import("tailwind-variants").ClassValue | {
15
15
  content?: import("tailwind-variants").ClassValue;
16
- arrow?: import("tailwind-variants").ClassValue;
17
- arrowTip?: import("tailwind-variants").ClassValue;
18
16
  trigger?: import("tailwind-variants").ClassValue;
19
17
  positioner?: import("tailwind-variants").ClassValue;
18
+ arrow?: import("tailwind-variants").ClassValue;
19
+ arrowTip?: import("tailwind-variants").ClassValue;
20
20
  };
21
21
  };
22
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, {
22
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, {
23
23
  [key: string]: {
24
24
  [key: string]: import("tailwind-variants").ClassValue | {
25
25
  content?: import("tailwind-variants").ClassValue;
26
- arrow?: import("tailwind-variants").ClassValue;
27
- arrowTip?: import("tailwind-variants").ClassValue;
28
26
  trigger?: import("tailwind-variants").ClassValue;
29
27
  positioner?: import("tailwind-variants").ClassValue;
28
+ arrow?: import("tailwind-variants").ClassValue;
29
+ arrowTip?: import("tailwind-variants").ClassValue;
30
30
  };
31
31
  };
32
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
32
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
33
33
  export declare const Arrow: import("react").ComponentType<import("@ark-ui/react").Assign<Tooltip.ArrowProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
34
34
  [key: string]: {
35
35
  [key: string]: import("tailwind-variants").ClassValue | {
36
36
  content?: import("tailwind-variants").ClassValue;
37
- arrow?: import("tailwind-variants").ClassValue;
38
- arrowTip?: import("tailwind-variants").ClassValue;
39
37
  trigger?: import("tailwind-variants").ClassValue;
40
38
  positioner?: import("tailwind-variants").ClassValue;
39
+ arrow?: import("tailwind-variants").ClassValue;
40
+ arrowTip?: import("tailwind-variants").ClassValue;
41
41
  };
42
42
  };
43
43
  } | {
44
44
  [x: string]: {
45
45
  [x: string]: import("tailwind-variants").ClassValue | {
46
46
  content?: import("tailwind-variants").ClassValue;
47
- arrow?: import("tailwind-variants").ClassValue;
48
- arrowTip?: import("tailwind-variants").ClassValue;
49
47
  trigger?: import("tailwind-variants").ClassValue;
50
48
  positioner?: import("tailwind-variants").ClassValue;
49
+ arrow?: import("tailwind-variants").ClassValue;
50
+ arrowTip?: import("tailwind-variants").ClassValue;
51
51
  };
52
52
  };
53
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, {
53
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, {
54
54
  [key: string]: {
55
55
  [key: string]: import("tailwind-variants").ClassValue | {
56
56
  content?: import("tailwind-variants").ClassValue;
57
- arrow?: import("tailwind-variants").ClassValue;
58
- arrowTip?: import("tailwind-variants").ClassValue;
59
57
  trigger?: import("tailwind-variants").ClassValue;
60
58
  positioner?: import("tailwind-variants").ClassValue;
59
+ arrow?: import("tailwind-variants").ClassValue;
60
+ arrowTip?: import("tailwind-variants").ClassValue;
61
61
  };
62
62
  };
63
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
63
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
64
64
  export declare const ArrowTip: import("react").ComponentType<import("@ark-ui/react").Assign<Tooltip.ArrowTipProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
65
65
  [key: string]: {
66
66
  [key: string]: import("tailwind-variants").ClassValue | {
67
67
  content?: import("tailwind-variants").ClassValue;
68
- arrow?: import("tailwind-variants").ClassValue;
69
- arrowTip?: import("tailwind-variants").ClassValue;
70
68
  trigger?: import("tailwind-variants").ClassValue;
71
69
  positioner?: import("tailwind-variants").ClassValue;
70
+ arrow?: import("tailwind-variants").ClassValue;
71
+ arrowTip?: import("tailwind-variants").ClassValue;
72
72
  };
73
73
  };
74
74
  } | {
75
75
  [x: string]: {
76
76
  [x: string]: import("tailwind-variants").ClassValue | {
77
77
  content?: import("tailwind-variants").ClassValue;
78
- arrow?: import("tailwind-variants").ClassValue;
79
- arrowTip?: import("tailwind-variants").ClassValue;
80
78
  trigger?: import("tailwind-variants").ClassValue;
81
79
  positioner?: import("tailwind-variants").ClassValue;
80
+ arrow?: import("tailwind-variants").ClassValue;
81
+ arrowTip?: import("tailwind-variants").ClassValue;
82
82
  };
83
83
  };
84
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, {
84
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, {
85
85
  [key: string]: {
86
86
  [key: string]: import("tailwind-variants").ClassValue | {
87
87
  content?: import("tailwind-variants").ClassValue;
88
- arrow?: import("tailwind-variants").ClassValue;
89
- arrowTip?: import("tailwind-variants").ClassValue;
90
88
  trigger?: import("tailwind-variants").ClassValue;
91
89
  positioner?: import("tailwind-variants").ClassValue;
90
+ arrow?: import("tailwind-variants").ClassValue;
91
+ arrowTip?: import("tailwind-variants").ClassValue;
92
92
  };
93
93
  };
94
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
94
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
95
95
  export declare const Content: import("react").ComponentType<import("@ark-ui/react").Assign<Tooltip.ContentProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
96
96
  [key: string]: {
97
97
  [key: string]: import("tailwind-variants").ClassValue | {
98
98
  content?: import("tailwind-variants").ClassValue;
99
- arrow?: import("tailwind-variants").ClassValue;
100
- arrowTip?: import("tailwind-variants").ClassValue;
101
99
  trigger?: import("tailwind-variants").ClassValue;
102
100
  positioner?: import("tailwind-variants").ClassValue;
101
+ arrow?: import("tailwind-variants").ClassValue;
102
+ arrowTip?: import("tailwind-variants").ClassValue;
103
103
  };
104
104
  };
105
105
  } | {
106
106
  [x: string]: {
107
107
  [x: string]: import("tailwind-variants").ClassValue | {
108
108
  content?: import("tailwind-variants").ClassValue;
109
- arrow?: import("tailwind-variants").ClassValue;
110
- arrowTip?: import("tailwind-variants").ClassValue;
111
109
  trigger?: import("tailwind-variants").ClassValue;
112
110
  positioner?: import("tailwind-variants").ClassValue;
111
+ arrow?: import("tailwind-variants").ClassValue;
112
+ arrowTip?: import("tailwind-variants").ClassValue;
113
113
  };
114
114
  };
115
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, {
115
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, {
116
116
  [key: string]: {
117
117
  [key: string]: import("tailwind-variants").ClassValue | {
118
118
  content?: import("tailwind-variants").ClassValue;
119
- arrow?: import("tailwind-variants").ClassValue;
120
- arrowTip?: import("tailwind-variants").ClassValue;
121
119
  trigger?: import("tailwind-variants").ClassValue;
122
120
  positioner?: import("tailwind-variants").ClassValue;
121
+ arrow?: import("tailwind-variants").ClassValue;
122
+ arrowTip?: import("tailwind-variants").ClassValue;
123
123
  };
124
124
  };
125
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
125
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
126
126
  export declare const Positioner: import("react").ComponentType<import("@ark-ui/react").Assign<Tooltip.PositionerProps & import("react").RefAttributes<HTMLDivElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
127
127
  [key: string]: {
128
128
  [key: string]: import("tailwind-variants").ClassValue | {
129
129
  content?: import("tailwind-variants").ClassValue;
130
- arrow?: import("tailwind-variants").ClassValue;
131
- arrowTip?: import("tailwind-variants").ClassValue;
132
130
  trigger?: import("tailwind-variants").ClassValue;
133
131
  positioner?: import("tailwind-variants").ClassValue;
132
+ arrow?: import("tailwind-variants").ClassValue;
133
+ arrowTip?: import("tailwind-variants").ClassValue;
134
134
  };
135
135
  };
136
136
  } | {
137
137
  [x: string]: {
138
138
  [x: string]: import("tailwind-variants").ClassValue | {
139
139
  content?: import("tailwind-variants").ClassValue;
140
- arrow?: import("tailwind-variants").ClassValue;
141
- arrowTip?: import("tailwind-variants").ClassValue;
142
140
  trigger?: import("tailwind-variants").ClassValue;
143
141
  positioner?: import("tailwind-variants").ClassValue;
142
+ arrow?: import("tailwind-variants").ClassValue;
143
+ arrowTip?: import("tailwind-variants").ClassValue;
144
144
  };
145
145
  };
146
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, {
146
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, {
147
147
  [key: string]: {
148
148
  [key: string]: import("tailwind-variants").ClassValue | {
149
149
  content?: import("tailwind-variants").ClassValue;
150
- arrow?: import("tailwind-variants").ClassValue;
151
- arrowTip?: import("tailwind-variants").ClassValue;
152
150
  trigger?: import("tailwind-variants").ClassValue;
153
151
  positioner?: import("tailwind-variants").ClassValue;
152
+ arrow?: import("tailwind-variants").ClassValue;
153
+ arrowTip?: import("tailwind-variants").ClassValue;
154
154
  };
155
155
  };
156
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
156
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
157
157
  export declare const Trigger: import("react").ComponentType<import("@ark-ui/react").Assign<Tooltip.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
158
158
  [key: string]: {
159
159
  [key: string]: import("tailwind-variants").ClassValue | {
160
160
  content?: import("tailwind-variants").ClassValue;
161
- arrow?: import("tailwind-variants").ClassValue;
162
- arrowTip?: import("tailwind-variants").ClassValue;
163
161
  trigger?: import("tailwind-variants").ClassValue;
164
162
  positioner?: import("tailwind-variants").ClassValue;
163
+ arrow?: import("tailwind-variants").ClassValue;
164
+ arrowTip?: import("tailwind-variants").ClassValue;
165
165
  };
166
166
  };
167
167
  } | {
168
168
  [x: string]: {
169
169
  [x: string]: import("tailwind-variants").ClassValue | {
170
170
  content?: import("tailwind-variants").ClassValue;
171
- arrow?: import("tailwind-variants").ClassValue;
172
- arrowTip?: import("tailwind-variants").ClassValue;
173
171
  trigger?: import("tailwind-variants").ClassValue;
174
172
  positioner?: import("tailwind-variants").ClassValue;
173
+ arrow?: import("tailwind-variants").ClassValue;
174
+ arrowTip?: import("tailwind-variants").ClassValue;
175
175
  };
176
176
  };
177
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, {
177
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, {
178
178
  [key: string]: {
179
179
  [key: string]: import("tailwind-variants").ClassValue | {
180
180
  content?: import("tailwind-variants").ClassValue;
181
- arrow?: import("tailwind-variants").ClassValue;
182
- arrowTip?: import("tailwind-variants").ClassValue;
183
181
  trigger?: import("tailwind-variants").ClassValue;
184
182
  positioner?: import("tailwind-variants").ClassValue;
183
+ arrow?: import("tailwind-variants").ClassValue;
184
+ arrowTip?: import("tailwind-variants").ClassValue;
185
185
  };
186
186
  };
187
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
187
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
188
188
  export declare const Context: (props: Tooltip.ContextProps) => import("react").ReactNode;
@@ -2,30 +2,30 @@ export declare const tooltipRecipe: import("tailwind-variants").TVReturnType<{
2
2
  [key: string]: {
3
3
  [key: string]: import("tailwind-variants").ClassValue | {
4
4
  content?: import("tailwind-variants").ClassValue;
5
- arrow?: import("tailwind-variants").ClassValue;
6
- arrowTip?: import("tailwind-variants").ClassValue;
7
5
  trigger?: import("tailwind-variants").ClassValue;
8
6
  positioner?: import("tailwind-variants").ClassValue;
7
+ arrow?: import("tailwind-variants").ClassValue;
8
+ arrowTip?: import("tailwind-variants").ClassValue;
9
9
  };
10
10
  };
11
11
  } | {
12
12
  [x: string]: {
13
13
  [x: string]: import("tailwind-variants").ClassValue | {
14
14
  content?: import("tailwind-variants").ClassValue;
15
- arrow?: import("tailwind-variants").ClassValue;
16
- arrowTip?: import("tailwind-variants").ClassValue;
17
15
  trigger?: import("tailwind-variants").ClassValue;
18
16
  positioner?: import("tailwind-variants").ClassValue;
17
+ arrow?: import("tailwind-variants").ClassValue;
18
+ arrowTip?: import("tailwind-variants").ClassValue;
19
19
  };
20
20
  };
21
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, {
21
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, {
22
22
  [key: string]: {
23
23
  [key: string]: import("tailwind-variants").ClassValue | {
24
24
  content?: import("tailwind-variants").ClassValue;
25
- arrow?: import("tailwind-variants").ClassValue;
26
- arrowTip?: import("tailwind-variants").ClassValue;
27
25
  trigger?: import("tailwind-variants").ClassValue;
28
26
  positioner?: import("tailwind-variants").ClassValue;
27
+ arrow?: import("tailwind-variants").ClassValue;
28
+ arrowTip?: import("tailwind-variants").ClassValue;
29
29
  };
30
30
  };
31
- } | {}, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "arrow" | "arrowTip" | "trigger" | "positioner", string | string[]>, undefined, unknown, unknown, undefined>>;
31
+ } | {}, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", string | string[]>, undefined, unknown, unknown, undefined>>;
@@ -2,7 +2,7 @@ import type { QueryKey } from '@tanstack/react-query';
2
2
  import type { GamesInput__Next } from '../services/cmsPortal';
3
3
  import type { BetRecordsInput, DepositRecordsInput, JackpotPayoutsInput, JackpotsCountInput, JackpotsInput, TournamentsCountInput, TournamentsInput, TransactionRecordsInput, WithdrawalRecordsInput } from '../services/report';
4
4
  import type { MessagesInput, UnreadMessagesCountInput } from '../services/trigger';
5
- import type { AvailablePromosInput } from '../services/wallet';
5
+ import type { AvailablePromosInput, BonusesInput } from '../services/wallet';
6
6
  export declare const getAccountQueryKey: () => QueryKey;
7
7
  export declare const getProfileCompletionQueryKey: () => QueryKey;
8
8
  export declare const getAvailablePromosQueryKey: (input?: AvailablePromosInput) => QueryKey;
@@ -38,7 +38,7 @@ export declare const getWithdrawalRecordsQueryKey: (input?: WithdrawalRecordsInp
38
38
  export declare const getUnreadMessagesCountQueryKey: (input?: UnreadMessagesCountInput) => QueryKey;
39
39
  export declare const getBonusQueryKey: (id: string) => QueryKey;
40
40
  export declare const getCashbackBonusQueryKey: (id: string) => QueryKey;
41
- export declare const getBonusesQueryKey: () => QueryKey;
41
+ export declare const getBonusesQueryKey: (input?: BonusesInput) => QueryKey;
42
42
  export declare const getBonusesCountQueryKey: () => QueryKey;
43
43
  export declare const getAvailableQuestsCountQueryKey: () => QueryKey;
44
44
  export declare const getOnboardingStatusQueryKey: () => QueryKey;
@@ -35,7 +35,7 @@ export const getWithdrawalRecordsQueryKey = (input) => [PARENT_KEY, 'withdrawalR
35
35
  export const getUnreadMessagesCountQueryKey = (input) => [PARENT_KEY, 'unreadMessagesCount', input].filter(Boolean);
36
36
  export const getBonusQueryKey = (id) => [PARENT_KEY, 'bonus', id].filter(Boolean);
37
37
  export const getCashbackBonusQueryKey = (id) => [PARENT_KEY, 'cashbackBonus', id].filter(Boolean);
38
- export const getBonusesQueryKey = () => [PARENT_KEY, 'bonuses'].filter(Boolean);
38
+ export const getBonusesQueryKey = (input) => [PARENT_KEY, 'bonuses', input].filter(Boolean);
39
39
  export const getBonusesCountQueryKey = () => [PARENT_KEY, 'bonusesCount'].filter(Boolean);
40
40
  export const getAvailableQuestsCountQueryKey = () => [PARENT_KEY, 'availableQuestsCount'].filter(Boolean);
41
41
  export const getOnboardingStatusQueryKey = () => [PARENT_KEY, 'onboardingStatus'].filter(Boolean);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.154",
3
+ "version": "0.0.158",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",
@@ -1 +0,0 @@
1
- export declare function Header(): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ChevronLeftIcon } from '../../../icons/ChevronLeftIcon.js';
3
- import { XIcon } from '../../../icons/XIcon.js';
4
- import { Dialog } from '../../../ui/Dialog/index.js';
5
- import { IconButton } from '../../../ui/IconButton/index.js';
6
- export function Header() {
7
- return (_jsx(Dialog.Context, { children: (api) => (_jsxs("div", { className: "bg-bg-primary-alt relative flex items-center gap-xl px-xl py-md lg:justify-center lg:bg-transparent lg:p-0", children: [_jsx(IconButton, { size: "2xs", variant: "outline", colorScheme: "gray", className: "lg:hidden", onClick: () => api.setOpen(false), children: _jsx(ChevronLeftIcon, {}) }), _jsx(Dialog.Title, { className: "text-lg font-semibold", children: "Personal Verification" }), _jsx("button", { type: "button", className: "text-text-quinary absolute right-0 top-1/2 hidden -translate-y-1/2 lg:block", onClick: () => api.setOpen(false), children: _jsx(XIcon, { className: "size-6" }) })] })) }));
8
- }
@@ -1 +0,0 @@
1
- export declare function Indicator(): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { noop } from 'lodash-es';
3
- import { ArrowLeftIcon } from '../../../icons/ArrowLeftIcon.js';
4
- import { Progress } from '../../../ui/Progress/index.js';
5
- import { useKYCContext } from './KYCContext.js';
6
- export function Indicator() {
7
- const context = useKYCContext();
8
- return (_jsxs("div", { className: "mt-xl grid grid-cols-[max-content_auto_auto] items-center px-xl lg:mt-md lg:px-0", children: [_jsxs("button", { className: "text-text-tertiary-600 flex items-center gap-sm text-sm font-semibold", children: [_jsx(ArrowLeftIcon, { className: "size-5" }), "Back"] }), _jsxs("div", { className: "flex justify-center gap-2", children: [_jsx(Progress.Root, { className: "w-[5.625rem] shrink-0", value: context.step >= 2 ? 100 : 50, onValueChange: noop, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-[5.625rem] shrink-0", value: context.step >= 3 ? 50 : 0, onValueChange: noop, children: _jsx(Progress.Track, { children: _jsx(Progress.Range, {}) }) })] })] }));
9
- }
@@ -1 +0,0 @@
1
- export declare function KYC(): import("react/jsx-runtime").JSX.Element | undefined;
@@ -1,14 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import dynamic from 'next/dynamic';
4
- import { useShallow } from 'zustand/shallow';
5
- import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
6
- const Component = dynamic(() => import('./KYC.lazy.js').then((m) => m.KYC), {
7
- ssr: false,
8
- loading: () => null,
9
- });
10
- export function KYC() {
11
- const touched = useGlobalStore(useShallow((ctx) => ctx.kyc['~touched']));
12
- if (touched)
13
- return _jsx(Component, {});
14
- }
@@ -1 +0,0 @@
1
- export declare function KYC(): import("react/jsx-runtime").JSX.Element;
@@ -1,26 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { twMerge } from 'tailwind-merge';
4
- import { useShallow } from 'zustand/shallow';
5
- import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
6
- import { Dialog } from '../../../ui/Dialog/index.js';
7
- import { Portal } from '../../../ui/Portal/index.js';
8
- import { Header } from './Header.js';
9
- import { Indicator } from './Indicator.js';
10
- import { KYCContext } from './KYCContext.js';
11
- import { Step1 } from './Step1.js';
12
- import { Step2 } from './Step2.js';
13
- import { Step3 } from './Step3.js';
14
- import { Step4 } from './Step4.js';
15
- import { useKYC } from './useKYC.js';
16
- export function KYC() {
17
- const globalStore = useGlobalStore(useShallow((ctx) => ({
18
- kyc: ctx.kyc,
19
- })));
20
- const context = useKYC();
21
- return (_jsx(KYCContext, { value: context, children: _jsx(Dialog.Root, { open: globalStore.kyc.open, onOpenChange: (details) => {
22
- globalStore.kyc.setOpen(details.open);
23
- }, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { className: twMerge(context.step === 4 && 'flex items-center'), children: _jsxs(Dialog.Content, { className: twMerge(context.step < 4
24
- ? 'bg-bg-primary lg:bg-bg-primary-alt mx-auto h-full w-full lg:h-auto lg:w-[400px] lg:p-3xl'
25
- : 'mx-auto w-[25rem] max-w-[calc(100%-2rem)] p-3xl'), children: [context.step < 4 && _jsx(Header, {}), context.step < 4 && _jsx(Indicator, {}), context.step === 1 && _jsx(Step1, {}), context.step === 2 && _jsx(Step2, {}), context.step === 3 && _jsx(Step3, {}), context.step === 4 && _jsx(Step4, {})] }) })] }) }) }));
26
- }
@@ -1,6 +0,0 @@
1
- import type { UseKYCReturn } from './useKYC';
2
- export declare const KYCContext: (props: {
3
- value: UseKYCReturn;
4
- } & {
5
- children?: import("react").ReactNode | undefined;
6
- }) => React.ReactNode, useKYCContext: () => UseKYCReturn;
@@ -1,2 +0,0 @@
1
- import { createContext } from '../../../client/utils/createContext.js';
2
- export const [KYCContext, useKYCContext] = createContext();
@@ -1 +0,0 @@
1
- export declare function Step1(): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import Image from 'next/image';
3
- import { CheckIcon } from '../../../icons/CheckIcon.js';
4
- import { XIcon } from '../../../icons/XIcon.js';
5
- import uploadId from '../../../images/capture-id-banner.png';
6
- import { Button } from '../../../ui/Button/index.js';
7
- import { useKYCContext } from './KYCContext.js';
8
- export function Step1() {
9
- const context = useKYCContext();
10
- return (_jsxs("div", { className: "mt-2xl px-xl lg:mt-3xl lg:px-0", children: [_jsx("p", { className: "lg:text-text-secondary-700 text-center text-2xl font-semibold lg:text-base", children: "Prepare to upload your ID" }), _jsxs("div", { className: "border-border-secondary bg-bg-primary-alt mt-6 rounded-xl border p-4 lg:mt-2xl lg:border-0 lg:bg-transparent lg:p-0", children: [_jsx(Image, { src: uploadId, alt: "", className: "h-auto w-full", width: 600, height: 352 }), _jsxs("ul", { className: "mt-2xl space-y-3", children: [_jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(CheckIcon, { className: "text-text-featured-icon-light-success size-6" }), "Upload front side of your ID"] }), _jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(CheckIcon, { className: "text-text-featured-icon-light-success size-6" }), "Take a photo in a well lit room"] }), _jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(XIcon, { className: "text-text-featured-icon-light-error size-6" }), "Don't edit image of your ID"] })] }), _jsxs("div", { className: "mt-4xl space-y-lg", children: [_jsx(Button, { onClick: () => {
11
- context.setStep(2);
12
- }, children: "Continue" }), _jsx(Button, { variant: "outline", children: "Continue on phone" })] })] })] }));
13
- }
@@ -1 +0,0 @@
1
- export declare function Step2(): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import Image from 'next/image';
3
- import { CheckIcon } from '../../../icons/CheckIcon.js';
4
- import { XIcon } from '../../../icons/XIcon.js';
5
- import selfie from '../../../images/capture-selfie-banner.png';
6
- import { Button } from '../../../ui/Button/index.js';
7
- import { useKYCContext } from './KYCContext.js';
8
- export function Step2() {
9
- const context = useKYCContext();
10
- return (_jsxs("div", { className: "mt-2xl px-xl lg:mt-3xl lg:px-0", children: [_jsx("p", { className: "lg:text-text-secondary-700 text-center text-2xl font-semibold lg:text-base", children: "Take a selfie holding your ID" }), _jsxs("div", { className: "border-border-secondary bg-bg-primary-alt mt-6 rounded-xl border p-4 lg:mt-2xl lg:border-0 lg:bg-transparent lg:p-0", children: [_jsx(Image, { src: selfie, alt: "", className: "h-auto w-full", width: 600, height: 352 }), _jsxs("ul", { className: "mt-2xl space-y-3", children: [_jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(CheckIcon, { className: "text-text-featured-icon-light-success size-6" }), "Face and ID must be clearly visible"] }), _jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(CheckIcon, { className: "text-text-featured-icon-light-success size-6" }), "Take a photo in a well lit room"] }), _jsxs("li", { className: "text-text-secondary-700 flex items-center gap-lg", children: [_jsx(XIcon, { className: "text-text-featured-icon-light-error size-6" }), "No hats, sunglasses, or masks"] })] }), _jsxs("div", { className: "mt-4xl space-y-lg", children: [_jsx(Button, { size: "sm", onClick: () => {
11
- context.setStep(3);
12
- }, children: "Continue" }), _jsx(Button, { variant: "outline", children: "Continue on phone" })] })] })] }));
13
- }
@@ -1 +0,0 @@
1
- export declare function Step3(): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CheckIcon } from '../../../icons/CheckIcon.js';
3
- import { Button } from '../../../ui/Button/index.js';
4
- import { Checkbox } from '../../../ui/Checkbox/index.js';
5
- import { Field } from '../../../ui/Field/index.js';
6
- import { useKYCContext } from './KYCContext.js';
7
- export function Step3() {
8
- const context = useKYCContext();
9
- return (_jsxs("div", { className: "mt-2xl px-xl lg:mt-3xl lg:px-0", children: [_jsx("p", { className: "lg:text-text-secondary-700 text-center text-2xl font-semibold lg:text-base", children: "Enter your basic and work-related information" }), _jsxs("form", { className: "border-border-secondary bg-bg-primary-alt mt-6 rounded-xl border p-4 lg:mt-2xl lg:border-0 lg:bg-transparent lg:p-0", onSubmit: (e) => {
10
- e.preventDefault();
11
- context.setStep(4);
12
- }, children: [_jsxs(Field.Root, { children: [_jsx(Field.Label, { children: "Permanent address" }), _jsx(Field.Input, { placeholder: "Enter your permanent address" })] }), _jsxs(Checkbox.Root, { className: "mt-2xl", children: [_jsx(Checkbox.Control, { children: _jsx(Checkbox.Indicator, { asChild: true, children: _jsx(CheckIcon, {}) }) }), _jsx(Checkbox.Label, { children: "Same as permanent address" }), _jsx(Checkbox.HiddenInput, {})] }), _jsxs(Field.Root, { className: "mt-sm", children: [_jsx(Field.Label, { children: "Current address" }), _jsx(Field.Input, { placeholder: "Enter your current address" })] }), _jsxs(Field.Root, { className: "mt-2xl", children: [_jsx(Field.Label, { children: "Source of income" }), _jsx(Field.Input, { placeholder: "Enter your source of income" })] }), _jsxs(Field.Root, { className: "mt-2xl", children: [_jsx(Field.Label, { children: "Work Description" }), _jsx(Field.Input, { placeholder: "Enter your work description" })] }), _jsxs(Field.Root, { className: "mt-2xl", children: [_jsx(Field.Label, { children: "Place of birth" }), _jsx(Field.Input, { placeholder: "Enter your place of birth" })] }), _jsxs(Field.Root, { className: "mt-2xl", children: [_jsx(Field.Label, { children: "Nationality" }), _jsx(Field.Input, { placeholder: "Enter your nationality" })] }), _jsx(Button, { type: "submit", className: "mt-4xl", children: "Submit" })] })] }));
13
- }
@@ -1 +0,0 @@
1
- export declare function Step4(): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CheckCircleIcon } from '../../../icons/CheckCircleIcon.js';
3
- import { Button } from '../../../ui/Button/index.js';
4
- import { Dialog } from '../../../ui/Dialog/index.js';
5
- export function Step4() {
6
- return (_jsxs("div", { children: [_jsx("div", { className: "bg-bg-success-secondary text-text-featured-icon-light-success mx-auto flex size-12 items-center justify-center rounded-full", children: _jsx(CheckCircleIcon, {}) }), _jsx("h2", { className: "mt-3 text-center", children: "Submission Successful" }), _jsx("p", { className: "text-text-tertiary-600 text-center", children: "Your documents have been submitted successfully. They\u2019re now under review, and you\u2019ll receive a notification as soon as your account is verified." }), _jsx(Dialog.Context, { children: (api) => (_jsx(Button, { className: "mt-3xl", onClick: () => api.setOpen(false), children: "Ok" })) })] }));
7
- }
@@ -1,10 +0,0 @@
1
- type Step = 1 | 2 | 3 | 4;
2
- export interface UseKYCReturn {
3
- step: Step;
4
- setStep: (step: Step) => void;
5
- }
6
- export declare function useKYC(): {
7
- step: Step;
8
- setStep: import("react").Dispatch<import("react").SetStateAction<Step>>;
9
- };
10
- export {};
@@ -1,8 +0,0 @@
1
- import { useState } from 'react';
2
- export function useKYC() {
3
- const [step, setStep] = useState(1);
4
- return {
5
- step,
6
- setStep,
7
- };
8
- }
@@ -1 +0,0 @@
1
- export declare function loadFaceApiModels(): Promise<void>;
@@ -1,9 +0,0 @@
1
- import * as faceapi from 'face-api.js';
2
- export async function loadFaceApiModels() {
3
- const MODEL_URL = '/models';
4
- await Promise.all([
5
- faceapi.nets.tinyFaceDetector.loadFromUri(MODEL_URL),
6
- faceapi.nets.faceLandmark68Net.loadFromUri(MODEL_URL),
7
- faceapi.nets.faceRecognitionNet.loadFromUri(MODEL_URL),
8
- ]);
9
- }
@@ -1 +0,0 @@
1
- export declare function Message(): import("react/jsx-runtime").JSX.Element;
@@ -1,37 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { tz } from '@date-fns/tz';
3
- import { format } from 'date-fns';
4
- import Link from 'next/link';
5
- import { useShallow } from 'zustand/shallow';
6
- import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
7
- import { useLocaleInfo } from '../../client/hooks/useLocaleInfo.js';
8
- import { useMarkMessageAsReadMutation } from '../../client/hooks/useMarkMessageAsReadMutation.js';
9
- import { useMessageContext } from './MessageContext.js';
10
- import { MessageIcon } from './MessageIcon.js';
11
- import { useMessagesPropsContext } from './MessagesContext.js';
12
- import { normalizeActionUrl } from './utils.js';
13
- export function Message() {
14
- const messagesProps = useMessagesPropsContext();
15
- const transactionsPageUrl = messagesProps.transactionsPageUrl ?? '/transactions';
16
- const message = useMessageContext();
17
- const localeInfo = useLocaleInfo();
18
- const globalStore = useGlobalStore(useShallow((ctx) => ({
19
- message: ctx.message,
20
- messages: ctx.messages,
21
- })));
22
- const markMessageAsReadMutation = useMarkMessageAsReadMutation();
23
- const handleViewMessage = async () => {
24
- globalStore.message.setData(message);
25
- globalStore.message.setOpen(true);
26
- globalStore.messages.setOpen(false);
27
- if (!message.markedAsRead)
28
- markMessageAsReadMutation.mutate(message.id);
29
- };
30
- return (_jsxs("div", { role: "button", tabIndex: 0, className: "border-border-secondary rounded-xs bg-bg-secondary flex h-auto flex-shrink-0 cursor-pointer flex-col border px-3.5 py-2.5", onClick: handleViewMessage, "aria-pressed": "false", children: [_jsxs("div", { className: "flex items-center space-x-2", children: [_jsx("p", { className: "text-text-tertiary-600 text-xs font-normal", children: format(new Date(message.dateTimeCreated), 'M/d/yyyy - h:mma', {
31
- in: tz(localeInfo.timezone),
32
- }) }), !message.markedAsRead && (_jsx("div", { className: "bg-utility-success-500 h-2.5 w-2.5 rounded-full" }))] }), _jsxs("div", { className: "flex items-center space-x-2", children: [_jsx(MessageIcon, { type: message.icon, className: "text-brand-400 size-5" }), _jsx("p", { className: "text-text-primary-brand text-sm font-semibold", children: message.title })] }), message.content && (_jsx("p", { className: "mt-2 line-clamp-3 text-wrap text-sm font-normal", dangerouslySetInnerHTML: { __html: message.content } })), message.actions.length > 0 && (_jsx("div", { className: "mt-2 flex flex-wrap items-center justify-end gap-2", children: message.actions.map((action, index) => (_jsx(Link, { className: "border-button-secondary-border text-button-secondary-fg rounded-md border px-3 py-2 text-sm", href: normalizeActionUrl(transactionsPageUrl, action.url), onClick: (e) => {
33
- e.stopPropagation();
34
- globalStore.messages.setOpen(false);
35
- globalStore.messages.setTab('ALL');
36
- }, children: action.name }, index))) }))] }));
37
- }
@@ -1,6 +0,0 @@
1
- import type { Message } from '../../types';
2
- export declare const MessageProvider: (props: {
3
- value: Message;
4
- } & {
5
- children?: import("react").ReactNode | undefined;
6
- }) => React.ReactNode, useMessageContext: () => Message;
@@ -1,2 +0,0 @@
1
- import { createContext } from '../../client/utils/createContext.js';
2
- export const [MessageProvider, useMessageContext] = createContext();
@@ -1 +0,0 @@
1
- export declare function MessagePopup(): import("react/jsx-runtime").JSX.Element;