@opexa/portal-components 0.0.331 → 0.0.333
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/client/hooks/useGoogleClientIdQuery.d.ts +2 -0
- package/dist/client/hooks/useGoogleClientIdQuery.js +13 -0
- package/dist/client/hooks/useUnlinkGoogleMutation.d.ts +3 -0
- package/dist/client/hooks/useUnlinkGoogleMutation.js +31 -0
- package/dist/components/AccountInfo/AccountInfo.d.ts +2 -0
- package/dist/components/AccountInfo/AccountInfo.js +32 -4
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +1 -0
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +23 -0
- package/dist/components/PortalProvider/PortalProvider.js +3 -1
- package/dist/components/PortalProvider/SessionWatcher.d.ts +1 -0
- package/dist/components/PortalProvider/SessionWatcher.js +22 -0
- package/dist/components/SignIn/GoogleSignInTrigger.d.ts +5 -0
- package/dist/components/SignIn/GoogleSignInTrigger.js +46 -0
- package/dist/components/SignIn/MobileNumberSignIn.js +6 -1
- package/dist/components/SignIn/SignIn.lazy.d.ts +1 -0
- package/dist/components/SignIn/index.d.ts +1 -0
- package/dist/components/SignIn/index.js +1 -0
- package/dist/components/SignUp/SignUpTrigger.d.ts +1 -2
- package/dist/handlers/getSession.js +8 -0
- package/dist/handlers/index.d.ts +7 -7
- package/dist/handlers/postAuthenticate.js +3 -0
- package/dist/handlers/postSession.js +3 -0
- package/dist/services/account.d.ts +10 -0
- package/dist/services/account.js +4 -1
- package/dist/services/queries.d.ts +2 -1
- package/dist/services/queries.js +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +55 -55
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +5 -5
- package/dist/ui/Carousel/Carousel.d.ts +45 -45
- package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +55 -55
- package/dist/ui/Dialog/dialog.recipe.d.ts +5 -5
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +198 -198
- package/dist/ui/Menu/menu.recipe.d.ts +11 -11
- package/dist/ui/Popover/Popover.d.ts +88 -88
- package/dist/ui/Popover/popover.recipe.d.ts +8 -8
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Tooltip/Tooltip.d.ts +30 -30
- package/dist/ui/Tooltip/tooltip.recipe.d.ts +5 -5
- package/dist/utils/mutationKeys.d.ts +1 -0
- package/dist/utils/mutationKeys.js +4 -0
- package/dist/utils/queryKeys.d.ts +1 -0
- package/dist/utils/queryKeys.js +1 -0
- package/package.json +1 -1
- package/dist/components/Banner/Banner.client.d.ts +0 -12
- package/dist/components/Banner/Banner.client.js +0 -49
- package/dist/components/DigitainLauncher/Loading.d.ts +0 -1
- package/dist/components/DigitainLauncher/Loading.js +0 -5
- package/dist/components/KYC/BasicInformation.d.ts +0 -1
- package/dist/components/KYC/BasicInformation.js +0 -101
- package/dist/components/KYC/IdentityVerification.d.ts +0 -1
- package/dist/components/KYC/IdentityVerification.js +0 -120
- package/dist/components/KYC/Indicator.d.ts +0 -1
- package/dist/components/KYC/Indicator.js +0 -8
- package/dist/components/KYC/KYC.lazy.d.ts +0 -6
- package/dist/components/KYC/KYC.lazy.js +0 -45
- package/dist/components/KYC/KYCContext.d.ts +0 -6
- package/dist/components/KYC/KYCContext.js +0 -2
- package/dist/components/KYC/PersonalInformation.d.ts +0 -1
- package/dist/components/KYC/PersonalInformation.js +0 -122
- package/dist/components/KYC/useKYC.d.ts +0 -25
- package/dist/components/KYC/useKYC.js +0 -38
- package/dist/components/SignIn/utils.d.ts +0 -8
- package/dist/components/SignIn/utils.js +0 -26
- package/dist/constants/Branches.d.ts +0 -2
- package/dist/constants/Branches.js +0 -42
- package/dist/images/responsible-gaming-yellow.png +0 -0
- package/dist/third-parties/FacebookPixel/FacebookPixel.d.ts +0 -4
- package/dist/third-parties/FacebookPixel/FacebookPixel.js +0 -4
- package/dist/third-parties/FacebookPixel/api.d.ts +0 -0
- package/dist/third-parties/FacebookPixel/api.js +0 -1
- package/dist/third-parties/FacebookPixel/index.d.ts +0 -1
- package/dist/third-parties/FacebookPixel/index.js +0 -1
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.d.ts +0 -4
- package/dist/third-parties/GoogleRecaptcha/GoogleRecaptcha.js +0 -4
- package/dist/third-parties/GoogleRecaptcha/api.d.ts +0 -0
- package/dist/third-parties/GoogleRecaptcha/api.js +0 -1
- package/dist/third-parties/GoogleRecaptcha/index.d.ts +0 -1
- package/dist/third-parties/GoogleRecaptcha/index.js +0 -1
- package/dist/third-parties/index.d.ts +0 -2
- package/dist/third-parties/index.js +0 -2
|
@@ -4,9 +4,9 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
|
|
|
4
4
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
5
5
|
content?: import("tailwind-variants").ClassValue;
|
|
6
6
|
trigger?: import("tailwind-variants").ClassValue;
|
|
7
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
8
7
|
arrow?: import("tailwind-variants").ClassValue;
|
|
9
8
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
9
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
} | {
|
|
@@ -14,30 +14,30 @@ export declare const Root: import("react").ComponentType<import("@ark-ui/react")
|
|
|
14
14
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
15
15
|
content?: import("tailwind-variants").ClassValue;
|
|
16
16
|
trigger?: import("tailwind-variants").ClassValue;
|
|
17
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
18
17
|
arrow?: import("tailwind-variants").ClassValue;
|
|
19
18
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
19
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
} | {}, Record<"content" | "trigger" | "
|
|
22
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, undefined, {
|
|
23
23
|
[key: string]: {
|
|
24
24
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
25
25
|
content?: import("tailwind-variants").ClassValue;
|
|
26
26
|
trigger?: import("tailwind-variants").ClassValue;
|
|
27
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
28
27
|
arrow?: import("tailwind-variants").ClassValue;
|
|
29
28
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
29
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
} | {}, Record<"content" | "trigger" | "
|
|
32
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", 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
37
|
trigger?: import("tailwind-variants").ClassValue;
|
|
38
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
39
38
|
arrow?: import("tailwind-variants").ClassValue;
|
|
40
39
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
40
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
} | {
|
|
@@ -45,30 +45,30 @@ export declare const Arrow: import("react").ComponentType<import("@ark-ui/react"
|
|
|
45
45
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
46
46
|
content?: import("tailwind-variants").ClassValue;
|
|
47
47
|
trigger?: import("tailwind-variants").ClassValue;
|
|
48
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
49
48
|
arrow?: import("tailwind-variants").ClassValue;
|
|
50
49
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
50
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
-
} | {}, Record<"content" | "trigger" | "
|
|
53
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, undefined, {
|
|
54
54
|
[key: string]: {
|
|
55
55
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
56
56
|
content?: import("tailwind-variants").ClassValue;
|
|
57
57
|
trigger?: import("tailwind-variants").ClassValue;
|
|
58
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
59
58
|
arrow?: import("tailwind-variants").ClassValue;
|
|
60
59
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
60
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
|
-
} | {}, Record<"content" | "trigger" | "
|
|
63
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", 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
68
|
trigger?: import("tailwind-variants").ClassValue;
|
|
69
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
70
69
|
arrow?: import("tailwind-variants").ClassValue;
|
|
71
70
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
71
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
} | {
|
|
@@ -76,30 +76,30 @@ export declare const ArrowTip: import("react").ComponentType<import("@ark-ui/rea
|
|
|
76
76
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
77
77
|
content?: import("tailwind-variants").ClassValue;
|
|
78
78
|
trigger?: import("tailwind-variants").ClassValue;
|
|
79
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
80
79
|
arrow?: import("tailwind-variants").ClassValue;
|
|
81
80
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
81
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
|
-
} | {}, Record<"content" | "trigger" | "
|
|
84
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, undefined, {
|
|
85
85
|
[key: string]: {
|
|
86
86
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
87
87
|
content?: import("tailwind-variants").ClassValue;
|
|
88
88
|
trigger?: import("tailwind-variants").ClassValue;
|
|
89
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
90
89
|
arrow?: import("tailwind-variants").ClassValue;
|
|
91
90
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
91
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
-
} | {}, Record<"content" | "trigger" | "
|
|
94
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", 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
99
|
trigger?: import("tailwind-variants").ClassValue;
|
|
100
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
101
100
|
arrow?: import("tailwind-variants").ClassValue;
|
|
102
101
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
102
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
105
|
} | {
|
|
@@ -107,30 +107,30 @@ export declare const Content: import("react").ComponentType<import("@ark-ui/reac
|
|
|
107
107
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
108
108
|
content?: import("tailwind-variants").ClassValue;
|
|
109
109
|
trigger?: import("tailwind-variants").ClassValue;
|
|
110
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
111
110
|
arrow?: import("tailwind-variants").ClassValue;
|
|
112
111
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
112
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
|
-
} | {}, Record<"content" | "trigger" | "
|
|
115
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, undefined, {
|
|
116
116
|
[key: string]: {
|
|
117
117
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
118
118
|
content?: import("tailwind-variants").ClassValue;
|
|
119
119
|
trigger?: import("tailwind-variants").ClassValue;
|
|
120
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
121
120
|
arrow?: import("tailwind-variants").ClassValue;
|
|
122
121
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
122
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
-
} | {}, Record<"content" | "trigger" | "
|
|
125
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", 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
130
|
trigger?: import("tailwind-variants").ClassValue;
|
|
131
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
132
131
|
arrow?: import("tailwind-variants").ClassValue;
|
|
133
132
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
133
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
136
|
} | {
|
|
@@ -138,30 +138,30 @@ export declare const Positioner: import("react").ComponentType<import("@ark-ui/r
|
|
|
138
138
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
139
139
|
content?: import("tailwind-variants").ClassValue;
|
|
140
140
|
trigger?: import("tailwind-variants").ClassValue;
|
|
141
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
142
141
|
arrow?: import("tailwind-variants").ClassValue;
|
|
143
142
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
143
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
|
-
} | {}, Record<"content" | "trigger" | "
|
|
146
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, undefined, {
|
|
147
147
|
[key: string]: {
|
|
148
148
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
149
149
|
content?: import("tailwind-variants").ClassValue;
|
|
150
150
|
trigger?: import("tailwind-variants").ClassValue;
|
|
151
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
152
151
|
arrow?: import("tailwind-variants").ClassValue;
|
|
153
152
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
153
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
154
154
|
};
|
|
155
155
|
};
|
|
156
|
-
} | {}, Record<"content" | "trigger" | "
|
|
156
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", 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
161
|
trigger?: import("tailwind-variants").ClassValue;
|
|
162
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
163
162
|
arrow?: import("tailwind-variants").ClassValue;
|
|
164
163
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
164
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
167
|
} | {
|
|
@@ -169,20 +169,20 @@ export declare const Trigger: import("react").ComponentType<import("@ark-ui/reac
|
|
|
169
169
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
170
170
|
content?: import("tailwind-variants").ClassValue;
|
|
171
171
|
trigger?: import("tailwind-variants").ClassValue;
|
|
172
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
173
172
|
arrow?: import("tailwind-variants").ClassValue;
|
|
174
173
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
174
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
175
175
|
};
|
|
176
176
|
};
|
|
177
|
-
} | {}, Record<"content" | "trigger" | "
|
|
177
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, undefined, {
|
|
178
178
|
[key: string]: {
|
|
179
179
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
180
180
|
content?: import("tailwind-variants").ClassValue;
|
|
181
181
|
trigger?: import("tailwind-variants").ClassValue;
|
|
182
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
183
182
|
arrow?: import("tailwind-variants").ClassValue;
|
|
184
183
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
184
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
|
-
} | {}, Record<"content" | "trigger" | "
|
|
187
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, undefined, unknown, unknown, undefined>>>>>;
|
|
188
188
|
export declare const Context: (props: Tooltip.ContextProps) => import("react").ReactNode;
|
|
@@ -3,9 +3,9 @@ export declare const tooltipRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
3
3
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
4
|
content?: import("tailwind-variants").ClassValue;
|
|
5
5
|
trigger?: import("tailwind-variants").ClassValue;
|
|
6
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
7
6
|
arrow?: import("tailwind-variants").ClassValue;
|
|
8
7
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
8
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
} | {
|
|
@@ -13,19 +13,19 @@ export declare const tooltipRecipe: import("tailwind-variants").TVReturnType<{
|
|
|
13
13
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
14
14
|
content?: import("tailwind-variants").ClassValue;
|
|
15
15
|
trigger?: import("tailwind-variants").ClassValue;
|
|
16
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
17
16
|
arrow?: import("tailwind-variants").ClassValue;
|
|
18
17
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
18
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
} | {}, Record<"content" | "trigger" | "
|
|
21
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, undefined, {
|
|
22
22
|
[key: string]: {
|
|
23
23
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
24
24
|
content?: import("tailwind-variants").ClassValue;
|
|
25
25
|
trigger?: import("tailwind-variants").ClassValue;
|
|
26
|
-
positioner?: import("tailwind-variants").ClassValue;
|
|
27
26
|
arrow?: import("tailwind-variants").ClassValue;
|
|
28
27
|
arrowTip?: import("tailwind-variants").ClassValue;
|
|
28
|
+
positioner?: import("tailwind-variants").ClassValue;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
} | {}, Record<"content" | "trigger" | "
|
|
31
|
+
} | {}, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, import("tailwind-variants").TVReturnType<unknown, Record<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", string | string[]>, undefined, unknown, unknown, undefined>>;
|
|
@@ -38,4 +38,5 @@ export declare const getUploadImageFileMutationKey: () => MutationKey;
|
|
|
38
38
|
export declare const getUploadPrivateImageFileMutationKey: () => MutationKey;
|
|
39
39
|
export declare const getResetPasswordMutationKey: () => MutationKey;
|
|
40
40
|
export declare const getUpdateSessionMutationKey: () => MutationKey;
|
|
41
|
+
export declare const getUnlinkGoogleMutationKey: () => MutationKey;
|
|
41
42
|
export declare const getGenerateSumsubVerificationTokenMutationKey: () => MutationKey;
|
|
@@ -143,4 +143,8 @@ export const getUpdateSessionMutationKey = () => [
|
|
|
143
143
|
PARENT_KEY,
|
|
144
144
|
'updateSession',
|
|
145
145
|
];
|
|
146
|
+
export const getUnlinkGoogleMutationKey = () => [
|
|
147
|
+
PARENT_KEY,
|
|
148
|
+
'unlinkGoogle',
|
|
149
|
+
];
|
|
146
150
|
export const getGenerateSumsubVerificationTokenMutationKey = () => [PARENT_KEY, 'generateSumsubVerificationToken'];
|
|
@@ -46,3 +46,4 @@ export declare const getRecommendedGamesQueryKey: () => QueryKey;
|
|
|
46
46
|
export declare const getFileQueryKey: (id: string) => QueryKey;
|
|
47
47
|
export declare const getSiteQueryKey: () => QueryKey;
|
|
48
48
|
export declare const getSessionHealthQueryKey: () => QueryKey;
|
|
49
|
+
export declare const getGoogleClientIdQueryKey: () => QueryKey;
|
package/dist/utils/queryKeys.js
CHANGED
|
@@ -43,3 +43,4 @@ export const getRecommendedGamesQueryKey = () => [PARENT_KEY, 'recommendedGames'
|
|
|
43
43
|
export const getFileQueryKey = (id) => [PARENT_KEY, 'file', id].filter(Boolean);
|
|
44
44
|
export const getSiteQueryKey = () => [PARENT_KEY, 'site', SITE_ID].filter(Boolean);
|
|
45
45
|
export const getSessionHealthQueryKey = () => [PARENT_KEY, 'sessionHealth'].filter(Boolean);
|
|
46
|
+
export const getGoogleClientIdQueryKey = () => [PARENT_KEY, 'googleClientId'].filter(Boolean);
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ImageProps } from 'next/image';
|
|
2
|
-
export interface BannerEntry {
|
|
3
|
-
src: ImageProps['src'];
|
|
4
|
-
redirectUrl?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface BannerProps {
|
|
7
|
-
banners: BannerEntry[];
|
|
8
|
-
imageWidth?: number | [mobile: number, desktop: number];
|
|
9
|
-
imageHeight?: number | [mobile: number, desktop: number];
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function Banner__client(props: BannerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import emblaCarouselAutoplay from 'embla-carousel-autoplay';
|
|
4
|
-
import useEmblaCarousel, {} from 'embla-carousel-react';
|
|
5
|
-
import isMobile from 'is-mobile';
|
|
6
|
-
import Image from 'next/image';
|
|
7
|
-
import Link from 'next/link';
|
|
8
|
-
import { Fragment, useEffect, useState } from 'react';
|
|
9
|
-
import { twMerge } from 'tailwind-merge';
|
|
10
|
-
import { dataAttr } from '../../utils/dataAttr.js';
|
|
11
|
-
export function Banner__client(props) {
|
|
12
|
-
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
13
|
-
loop: true,
|
|
14
|
-
align: 'start',
|
|
15
|
-
}, [
|
|
16
|
-
emblaCarouselAutoplay({
|
|
17
|
-
playOnInit: true,
|
|
18
|
-
delay: 5000,
|
|
19
|
-
}),
|
|
20
|
-
]);
|
|
21
|
-
const [currentIndex, setCurrentIndex] = useState(0);
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
function handler(detail) {
|
|
24
|
-
setCurrentIndex(detail?.selectedScrollSnap() ?? 0);
|
|
25
|
-
}
|
|
26
|
-
emblaApi?.on('scroll', handler);
|
|
27
|
-
emblaApi?.on('init', handler);
|
|
28
|
-
return () => {
|
|
29
|
-
emblaApi?.on('init', handler);
|
|
30
|
-
emblaApi?.off('scroll', handler);
|
|
31
|
-
};
|
|
32
|
-
}, [emblaApi]);
|
|
33
|
-
const imageWidth = !props.imageWidth
|
|
34
|
-
? [400, 1200]
|
|
35
|
-
: Array.isArray(props.imageWidth)
|
|
36
|
-
? props.imageWidth
|
|
37
|
-
: [props.imageWidth, props.imageWidth];
|
|
38
|
-
const imageHeight = !props.imageHeight
|
|
39
|
-
? [225, 300]
|
|
40
|
-
: Array.isArray(props.imageHeight)
|
|
41
|
-
? props.imageHeight
|
|
42
|
-
: [props.imageHeight, props.imageHeight];
|
|
43
|
-
return (_jsxs("div", { className: twMerge('relative', props.className), children: [_jsx("div", { ref: emblaRef, className: "overflow-hidden", children: _jsx("div", { className: "flex gap-2", children: props.banners.map((banner, index) => {
|
|
44
|
-
const img = (_jsx(Image, { src: banner.src, alt: "", width: isMobile() ? imageWidth[0] : imageWidth[1], height: isMobile() ? imageHeight[0] : imageHeight[1], className: "block h-auto w-full", priority: index === 0 }));
|
|
45
|
-
return (_jsx(Fragment, { children: !banner.redirectUrl ? (_jsx("div", { className: "w-full shrink-0", children: img })) : (_jsx(Link, { href: banner.redirectUrl, className: "block w-full shrink-0", "aria-label": `Open ${banner.redirectUrl}`, children: img })) }, index));
|
|
46
|
-
}) }) }), _jsx("div", { className: "absolute bottom-lg left-1/2 flex w-fit -translate-x-1/2 gap-2", children: props.banners.map((_, index) => (_jsx("button", { type: "button", className: "ui-active:bg-brand-500 bg-gray-300 size-3 shrink-0 rounded-full border border-white transition-all duration-300 ui-active:w-9", onClick: () => {
|
|
47
|
-
emblaApi?.scrollTo(index);
|
|
48
|
-
}, "aria-label": `Go to slide ${index + 1}`, "data-active": dataAttr(index === currentIndex) }, index))) })] }));
|
|
49
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function Loading(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
export function Loading() {
|
|
4
|
-
return (_jsx("div", { className: "flex h-[calc(100vh-400px)] w-full items-center justify-center px-4", children: _jsxs("div", { className: "flex flex-col items-center space-y-4", children: [_jsx("div", { className: "h-10 w-10 animate-spin rounded-full border-4 border-blue-500 border-t-transparent" }), _jsx("p", { className: "font-medium text-gray-700 text-lg", children: "Loading Sports Book\u2026" })] }) }));
|
|
5
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function BasicInformation(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { zodResolver } from '@hookform/resolvers/zod';
|
|
3
|
-
import { differenceInYears, format, isSameDay, isValid, parse } from 'date-fns';
|
|
4
|
-
import { isNil, omitBy, size } from 'lodash-es';
|
|
5
|
-
import { useEffect } from 'react';
|
|
6
|
-
import { useForm } from 'react-hook-form';
|
|
7
|
-
import invariant from 'tiny-invariant';
|
|
8
|
-
import { z } from 'zod';
|
|
9
|
-
import { useAccountQuery } from '../../client/hooks/useAccountQuery.js';
|
|
10
|
-
import { useUpdateAccountMutation } from '../../client/hooks/useUpdateAccountMutation.js';
|
|
11
|
-
import { toaster } from '../../client/utils/toaster.js';
|
|
12
|
-
import { Button } from '../../ui/Button/index.js';
|
|
13
|
-
import { Dialog } from '../../ui/Dialog/index.js';
|
|
14
|
-
import { Field } from '../../ui/Field/index.js';
|
|
15
|
-
import { useKYCContext } from './KYCContext.js';
|
|
16
|
-
const definition = z.object({
|
|
17
|
-
realName: z
|
|
18
|
-
.string()
|
|
19
|
-
.min(3, 'Name must be 3 or more characters')
|
|
20
|
-
.max(50, 'Name must not be more than 50 characters')
|
|
21
|
-
.regex(/^[a-z0-9 ]+$/gi, 'Name must not contain special characters')
|
|
22
|
-
.trim(),
|
|
23
|
-
birthDay: z
|
|
24
|
-
.string()
|
|
25
|
-
.min(1, 'Date of birth is required')
|
|
26
|
-
.superRefine((value, ctx) => {
|
|
27
|
-
const dob = parse(value, 'yyyy-MM-dd', new Date());
|
|
28
|
-
if (!isValid(dob)) {
|
|
29
|
-
return ctx.addIssue({
|
|
30
|
-
code: z.ZodIssueCode.invalid_date,
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
const now = new Date();
|
|
34
|
-
const age = differenceInYears(now, dob);
|
|
35
|
-
if (age < 21) {
|
|
36
|
-
return ctx.addIssue({
|
|
37
|
-
code: z.ZodIssueCode.custom,
|
|
38
|
-
message: 'You must be at least 21 years old',
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}),
|
|
42
|
-
branchCode: z.string().min(4).max(10).optional().or(z.literal('')),
|
|
43
|
-
});
|
|
44
|
-
export function BasicInformation() {
|
|
45
|
-
const kyc = useKYCContext();
|
|
46
|
-
const form = useForm({
|
|
47
|
-
resolver: zodResolver(definition),
|
|
48
|
-
mode: 'all',
|
|
49
|
-
defaultValues: {
|
|
50
|
-
birthDay: '',
|
|
51
|
-
branchCode: '',
|
|
52
|
-
realName: '',
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
const accountQuery = useAccountQuery();
|
|
56
|
-
const account = accountQuery.data;
|
|
57
|
-
const stepCompleted = account != null && account.realName != null && account.birthDay != null;
|
|
58
|
-
useEffect(() => {
|
|
59
|
-
if (stepCompleted)
|
|
60
|
-
kyc.setStep(2);
|
|
61
|
-
}, [stepCompleted, kyc]);
|
|
62
|
-
useEffect(() => {
|
|
63
|
-
if (account) {
|
|
64
|
-
form.reset({
|
|
65
|
-
realName: account.realName ?? '',
|
|
66
|
-
birthDay: account.birthDay
|
|
67
|
-
? format(account.birthDay, 'yyyy-MM-dd')
|
|
68
|
-
: '',
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}, [account, form]);
|
|
72
|
-
const updateAccountMutation = useUpdateAccountMutation({
|
|
73
|
-
onError(error) {
|
|
74
|
-
toaster.error({
|
|
75
|
-
title: 'Error',
|
|
76
|
-
description: error.message,
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
onSuccess() {
|
|
80
|
-
kyc.setStep(2);
|
|
81
|
-
toaster.success({
|
|
82
|
-
title: 'Success',
|
|
83
|
-
description: 'Basic information has been set successfully.',
|
|
84
|
-
});
|
|
85
|
-
},
|
|
86
|
-
});
|
|
87
|
-
return (_jsxs("div", { children: [_jsx(Dialog.Title, { className: "text-center font-semibold text-lg", children: "Basic Information" }), _jsx(Dialog.Description, { className: "mt-xs text-center text-sm text-text-secondary-700", children: "Enter your basic details for identification and communication." }), _jsxs("form", { className: "mt-3", onSubmit: form.handleSubmit((data) => {
|
|
88
|
-
invariant(account);
|
|
89
|
-
const input = omitBy({
|
|
90
|
-
realName: account.realName === data.realName ? undefined : data.realName,
|
|
91
|
-
birthDay: account.birthDay && isSameDay(data.birthDay, account.birthDay)
|
|
92
|
-
? undefined
|
|
93
|
-
: format(data.birthDay, 'yyyy-MM-dd'),
|
|
94
|
-
}, isNil);
|
|
95
|
-
if (size(input) === 0)
|
|
96
|
-
return kyc.setStep(2);
|
|
97
|
-
updateAccountMutation.mutate(input);
|
|
98
|
-
}), children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.realName, readOnly: !!accountQuery.data?.realName, children: [_jsx(Field.Label, { children: "Real Name" }), _jsx(Field.Input, { placeholder: "Enter your real name", ...form.register('realName') }), _jsx(Field.ErrorText, { children: form.formState.errors.realName?.message })] }), _jsxs(Field.Root, { className: "mt-3", invalid: !!form.formState.errors.branchCode, readOnly: !!accountQuery.data?.birthDay, children: [_jsx(Field.Label, { children: "Date of Birth" }), _jsx(Field.Input, { type: "date", ...form.register('birthDay') }), _jsx(Field.ErrorText, { children: form.formState.errors.birthDay?.message })] }), _jsx(Button, { type: "submit", className: "mt-8", disabled: accountQuery.isLoading ||
|
|
99
|
-
updateAccountMutation.isPending ||
|
|
100
|
-
stepCompleted, children: "Continue" })] })] }));
|
|
101
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function IdentityVerification(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { zodResolver } from '@hookform/resolvers/zod';
|
|
4
|
-
import { useEffect } from 'react';
|
|
5
|
-
import { Controller, useForm } from 'react-hook-form';
|
|
6
|
-
import { z } from 'zod';
|
|
7
|
-
import { useShallow } from 'zustand/shallow';
|
|
8
|
-
import { useCreateMemberVerificationMutation } from '../../client/hooks/useCreateMemberVerificationMutation.js';
|
|
9
|
-
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
10
|
-
import { useMemberVerificationQuery } from '../../client/hooks/useMemberVerificationQuery.js';
|
|
11
|
-
import { useUpdateMemberVerificationMutation } from '../../client/hooks/useUpdateMemberVerificationMutation.js';
|
|
12
|
-
import { toaster } from '../../client/utils/toaster.js';
|
|
13
|
-
import { Button } from '../../ui/Button/index.js';
|
|
14
|
-
import { Dialog } from '../../ui/Dialog/index.js';
|
|
15
|
-
import { Field } from '../../ui/Field/index.js';
|
|
16
|
-
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
17
|
-
import { getMemberVerificationQueryKey } from '../../utils/queryKeys.js';
|
|
18
|
-
import { IdFrontImageField } from '../shared/IdFrontImageField/index.js';
|
|
19
|
-
import { SelfieImageField } from '../shared/SelfieImageField/index.js';
|
|
20
|
-
import { useKYCContext } from './KYCContext.js';
|
|
21
|
-
const formSchema = z.object({
|
|
22
|
-
selfieImage: z.string().min(1, 'Selfie image is required.'),
|
|
23
|
-
idFrontImage: z.string().min(1, 'Front image of ID is required.'),
|
|
24
|
-
});
|
|
25
|
-
export function IdentityVerification() {
|
|
26
|
-
const kyc = useKYCContext();
|
|
27
|
-
const { mutate: createMemberVerification, isPending: createPending } = useCreateMemberVerificationMutation({
|
|
28
|
-
onSuccess: () => {
|
|
29
|
-
toaster.success({
|
|
30
|
-
title: 'ID Front Image & Selfie Image uploaded successfully',
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
onError: (error) => {
|
|
34
|
-
toaster.error({
|
|
35
|
-
title: 'Failed to upload ID Front Image & Selfie Image',
|
|
36
|
-
description: error.message,
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
const { mutate: updateMemberVerification, isPending: updatePending } = useUpdateMemberVerificationMutation({
|
|
41
|
-
onSuccess: () => {
|
|
42
|
-
const queryClient = getQueryClient();
|
|
43
|
-
toaster.success({
|
|
44
|
-
title: 'ID Front Image & Selfie Image updated successfully',
|
|
45
|
-
});
|
|
46
|
-
queryClient.setQueryData(getMemberVerificationQueryKey(), (prev) => {
|
|
47
|
-
if (!prev)
|
|
48
|
-
return prev;
|
|
49
|
-
return {
|
|
50
|
-
...prev,
|
|
51
|
-
status: 'CREATED',
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
},
|
|
55
|
-
onError: (error) => {
|
|
56
|
-
toaster.error({
|
|
57
|
-
title: 'Failed to upload ID Front Image & Selfie Image',
|
|
58
|
-
description: error.message,
|
|
59
|
-
});
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
const memberVerification = useMemberVerificationQuery();
|
|
63
|
-
const memberId = memberVerification.data?.id;
|
|
64
|
-
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
65
|
-
kyc: ctx.kyc,
|
|
66
|
-
})));
|
|
67
|
-
const form = useForm({
|
|
68
|
-
resolver: zodResolver(formSchema),
|
|
69
|
-
defaultValues: {
|
|
70
|
-
idFrontImage: '',
|
|
71
|
-
selfieImage: '',
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
function onSubmit(values) {
|
|
75
|
-
if (!memberId) {
|
|
76
|
-
createMemberVerification({
|
|
77
|
-
selfieImage: values.selfieImage,
|
|
78
|
-
idFrontImage: values.idFrontImage,
|
|
79
|
-
address: '',
|
|
80
|
-
nationality: '',
|
|
81
|
-
natureOfWork: '',
|
|
82
|
-
permanentAddress: '',
|
|
83
|
-
placeOfBirth: '',
|
|
84
|
-
sourceOfIncome: '',
|
|
85
|
-
});
|
|
86
|
-
kyc.setStep(3);
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
updateMemberVerification({
|
|
90
|
-
id: memberId,
|
|
91
|
-
data: {
|
|
92
|
-
selfieImage: values.selfieImage,
|
|
93
|
-
idFrontImage: values.idFrontImage,
|
|
94
|
-
},
|
|
95
|
-
});
|
|
96
|
-
kyc.setStep(3);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
useEffect(() => {
|
|
100
|
-
if (kyc.selfieImageId)
|
|
101
|
-
form.setValue('selfieImage', kyc.selfieImageId);
|
|
102
|
-
if (kyc.idFrontImageId)
|
|
103
|
-
form.setValue('idFrontImage', kyc.idFrontImageId);
|
|
104
|
-
}, [form, kyc.idFrontImageId, kyc.selfieImageId]);
|
|
105
|
-
return (_jsxs("div", { children: [_jsx(Dialog.Title, { className: "text-center font-semibold text-lg", children: "Verify your identity" }), _jsx(Dialog.Description, { className: "mt-xs text-center text-sm text-text-secondary-700", children: "Verify your details to confirm your identity and secure your access." }), _jsxs("div", { className: "mt-7 rounded-xl border border-border-primary bg-bg-primary p-lg text-text-placeholder text-xs leading-tight", children: [_jsx("h3", { className: "font-semibold", children: "Instructions" }), _jsxs("ol", { className: "mt-2 list-inside list-decimal", children: [_jsx("li", { children: "Upload a full photo of your ID." }), _jsx("li", { children: "Please ensure that all details in the uploaded image are legible." }), _jsx("li", { children: "Please ensure that the ID uploaded is within the validity period." })] })] }), _jsxs("form", { className: "mt-xl", onSubmit: form.handleSubmit(onSubmit), children: [_jsx(Controller, { control: form.control, name: "idFrontImage", render: (o) => (_jsxs(Field.Root, { invalid: o.fieldState.invalid, children: [_jsx(Field.Label, { children: "Front of your ID" }), _jsx(IdFrontImageField, { value: o.field.value, onChange: o.field.onChange, onError: (error) => {
|
|
106
|
-
form.setValue('idFrontImage', '');
|
|
107
|
-
form.setError('idFrontImage', {
|
|
108
|
-
type: 'validate',
|
|
109
|
-
message: error.message,
|
|
110
|
-
});
|
|
111
|
-
} }), _jsx(Field.ErrorText, { children: o.fieldState.error?.message })] })) }), _jsx(Controller, { control: form.control, name: "selfieImage", render: (o) => (_jsxs(Field.Root, { invalid: o.fieldState.invalid, className: "mt-3", children: [_jsx(Field.Label, { children: "Selfie holding your ID" }), _jsx(SelfieImageField, { value: o.field.value, onChange: o.field.onChange, onError: (error) => {
|
|
112
|
-
form.setValue('selfieImage', '');
|
|
113
|
-
form.setError('selfieImage', {
|
|
114
|
-
type: 'validate',
|
|
115
|
-
message: error.message,
|
|
116
|
-
});
|
|
117
|
-
} }), _jsx(Field.ErrorText, { children: o.fieldState.error?.message })] })) }), _jsx(Button, { type: "submit", className: "mt-6", disabled: createPending || updatePending, children: "Continue" }), _jsx(Button, { variant: "outline", colorScheme: "gray", className: "mt-lg", type: "button", onClick: () => {
|
|
118
|
-
globalStore.kyc.setOpen(false);
|
|
119
|
-
}, children: "Skip for now" })] })] }));
|
|
120
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function Indicator(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { noop } from 'lodash-es';
|
|
3
|
-
import { Progress } from '../../ui/Progress/index.js';
|
|
4
|
-
import { useKYCContext } from './KYCContext.js';
|
|
5
|
-
export function Indicator() {
|
|
6
|
-
const kyc = useKYCContext();
|
|
7
|
-
return (_jsxs("div", { className: "flex items-center justify-center gap-1.5 py-3", children: [_jsx(Progress.Root, { className: "w-10 shrink-0", value: kyc.step > 1 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-10 shrink-0", value: kyc.step > 2 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) }), _jsx(Progress.Root, { className: "w-10 shrink-0", value: kyc.step === 3 ? 100 : 0, onValueChange: noop, children: _jsx(Progress.Track, { className: "bg-bg-primary-hover", children: _jsx(Progress.Range, {}) }) })] }));
|
|
8
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ImageProps } from 'next/image';
|
|
2
|
-
import { type KYCReminderProps } from './KYCReminder.lazy';
|
|
3
|
-
export interface KYCProps extends KYCReminderProps {
|
|
4
|
-
logo: ImageProps['src'];
|
|
5
|
-
}
|
|
6
|
-
export declare function KYC(props: KYCProps): import("react/jsx-runtime").JSX.Element;
|