@opexa/portal-components 0.0.580 → 0.0.582
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/components/SignIn/MobileNumberSignIn.js +1 -1
- package/dist/components/SignIn/NameAndPasswordSignIn.js +1 -1
- package/dist/components/SignUp/SignUpDefault/SignUpDefaultForm.js +3 -2
- package/dist/components/SignUp/SignUpKYC/SignUpKYCForm.js +3 -2
- package/dist/components/SignUp/SignUpNameAndPassword/SignUpNameAndPasswordForm.js +3 -2
- package/dist/ui/AlertDialog/AlertDialog.d.ts +121 -121
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +11 -11
- package/dist/ui/Carousel/Carousel.d.ts +45 -45
- package/dist/ui/Carousel/carousel.recipe.d.ts +5 -5
- package/dist/ui/Checkbox/Checkbox.d.ts +21 -0
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -0
- package/dist/ui/Checkbox/checkbox.recipe.js +10 -0
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Dialog/Dialog.d.ts +33 -33
- package/dist/ui/Dialog/dialog.recipe.d.ts +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/Field/Field.d.ts +21 -21
- package/dist/ui/Field/field.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +90 -90
- package/dist/ui/Menu/menu.recipe.d.ts +5 -5
- package/dist/ui/Popover/Popover.d.ts +88 -88
- package/dist/ui/Popover/popover.recipe.d.ts +8 -8
- package/dist/ui/Progress/Progress.d.ts +27 -27
- package/dist/ui/Progress/progress.recipe.d.ts +3 -3
- package/dist/ui/QrCode/QrCode.d.ts +25 -25
- package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/table.anatomy.d.ts +1 -1
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/package.json +1 -1
- package/dist/components/AccountInfo/GoogleDisconnect.d.ts +0 -7
- package/dist/components/AccountInfo/GoogleDisconnect.js +0 -11
- 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/PortalProvider/CXDTokenObserver.d.ts +0 -1
- package/dist/components/PortalProvider/CXDTokenObserver.js +0 -30
- package/dist/icons/LinkBrokenIcon.d.ts +0 -2
- package/dist/icons/LinkBrokenIcon.js +0 -4
- package/dist/images/responsible-gaming-yellow.png +0 -0
|
@@ -133,7 +133,7 @@ export function MobileNumberSignIn() {
|
|
|
133
133
|
});
|
|
134
134
|
}), children: [_jsxs(Field.Root, { invalid: !!step1Form.formState.errors.mobileNumber, children: [_jsx(Field.Label, { children: "Mobile Number" }), _jsxs("div", { className: "relative", children: [_jsxs("div", { className: "-translate-y-1/2 absolute top-1/2 left-3.5 flex shrink-0 items-center gap-md", children: [_jsx(localeInfo.country.flag, { className: "size-5" }), _jsx("span", { className: "text-text-placeholder", children: localeInfo.mobileNumber.areaCode })] }), _jsx(Field.Input, { style: {
|
|
135
135
|
paddingLeft: `calc(2.75rem + ${localeInfo.mobileNumber.areaCode.length}ch)`,
|
|
136
|
-
}, ...step1Form.register('mobileNumber') })] }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.mobileNumber?.message })] }), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: step1Form.formState.isSubmitting, children: "Log In" }), _jsx(Controller, { control: step1Form.control, name: "termsAccepted", render: (o) => (_jsxs(Field.Root, { invalid: o.fieldState.invalid, className: "mt-xl", children: [_jsxs(Checkbox.Root, { checked: o.field.value, onCheckedChange: (details) => {
|
|
136
|
+
}, ...step1Form.register('mobileNumber') })] }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.mobileNumber?.message })] }), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: step1Form.formState.isSubmitting, children: "Log In" }), _jsx(Controller, { control: step1Form.control, name: "termsAccepted", render: (o) => (_jsxs(Field.Root, { invalid: o.fieldState.invalid, className: "mt-xl", children: [_jsxs(Checkbox.Root, { variant: "outline", colorScheme: "neutral", checked: o.field.value, onCheckedChange: (details) => {
|
|
137
137
|
if (details.checked === 'indeterminate')
|
|
138
138
|
return;
|
|
139
139
|
o.field.onChange(details.checked);
|
|
@@ -148,7 +148,7 @@ export function NameAndPasswordSignIn() {
|
|
|
148
148
|
}) }), _jsx(Field.ErrorText, { children: form.formState.errors.name?.message })] }), _jsx(Field.Root, { disabled: !!signInMutation.data, invalid: !!form.formState.errors.password, className: "mt-xl", children: _jsxs(PasswordInput.Root, { children: [_jsx(PasswordInput.Label, { children: "Password" }), _jsxs("div", { children: [_jsxs(PasswordInput.Control, { children: [_jsx(PasswordInput.Input, { placeholder: "Enter your password", ...form.register('password') }), _jsx(PasswordInput.VisibilityTrigger, { children: _jsx(PasswordInput.Indicator, { fallback: _jsx(EyeOffIcon, {}), asChild: true, children: _jsx(EyeIcon, {}) }) })] }), _jsx(Field.ErrorText, { children: form.formState.errors.password?.message })] }), _jsx("div", { className: "mt-2 flex justify-end", children: _jsx("button", { type: "button", tabIndex: -1, className: "font-semibold text-button-tertiary-fg text-sm", onClick: () => {
|
|
149
149
|
globalStore.forgotPassword.setOpen(true);
|
|
150
150
|
dialog.setOpen(false);
|
|
151
|
-
}, children: "Forgot Password" }) })] }) }), signInMutation.data && (_jsxs(Field.Root, { invalid: !!form.formState.errors.secretAnswer, className: "mt-xl", children: [_jsx(Field.Label, { children: secretQuestion }), _jsx(Field.Input, { placeholder: "Answer the security question", ...form.register('secretAnswer') }), _jsx(Field.ErrorText, { children: form.formState.errors.secretAnswer?.message })] })), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: signInMutation.isPending || authenticateMutation.isPending, children: "Log In" }), _jsx(Controller, { control: form.control, name: "termsAccepted", render: (o) => (_jsxs(Field.Root, { invalid: o.fieldState.invalid, className: "mt-xl", children: [_jsxs(Checkbox.Root, { checked: o.field.value, onCheckedChange: (details) => {
|
|
151
|
+
}, children: "Forgot Password" }) })] }) }), signInMutation.data && (_jsxs(Field.Root, { invalid: !!form.formState.errors.secretAnswer, className: "mt-xl", children: [_jsx(Field.Label, { children: secretQuestion }), _jsx(Field.Input, { placeholder: "Answer the security question", ...form.register('secretAnswer') }), _jsx(Field.ErrorText, { children: form.formState.errors.secretAnswer?.message })] })), _jsx(Button, { type: "submit", className: "mt-3xl", disabled: signInMutation.isPending || authenticateMutation.isPending, children: "Log In" }), _jsx(Controller, { control: form.control, name: "termsAccepted", render: (o) => (_jsxs(Field.Root, { invalid: o.fieldState.invalid, className: "mt-xl", children: [_jsxs(Checkbox.Root, { variant: "outline", colorScheme: "neutral", checked: o.field.value, onCheckedChange: (details) => {
|
|
152
152
|
if (details.checked === 'indeterminate')
|
|
153
153
|
return;
|
|
154
154
|
o.field.onChange(details.checked);
|
|
@@ -13,6 +13,7 @@ import { z } from 'zod';
|
|
|
13
13
|
import { useShallow } from 'zustand/shallow';
|
|
14
14
|
import { useControllableState } from '../../../client/hooks/useControllableState.js';
|
|
15
15
|
import { useCooldown } from '../../../client/hooks/useCooldown.js';
|
|
16
|
+
import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
|
|
16
17
|
import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
|
|
17
18
|
import { useLocaleInfo } from '../../../client/hooks/useLocaleInfo.js';
|
|
18
19
|
import { useMobileNumberParser } from '../../../client/hooks/useMobileNumberParser.js';
|
|
@@ -39,7 +40,6 @@ import { Select } from '../../../ui/Select/index.js';
|
|
|
39
40
|
import { Tooltip } from '../../../ui/Tooltip/index.js';
|
|
40
41
|
import { createPoll } from '../../../utils/createPoll.js';
|
|
41
42
|
import { useSignUpDefaultPropsContext } from './SignUpDefaultContext.js';
|
|
42
|
-
import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
|
|
43
43
|
export function SignUpDefaultForm() {
|
|
44
44
|
const signUpProps = useSignUpDefaultPropsContext();
|
|
45
45
|
const featureFlag = useFeatureFlag();
|
|
@@ -204,7 +204,7 @@ export function SignUpDefaultForm() {
|
|
|
204
204
|
}, children: [_jsx(Tooltip.Trigger, { asChild: true, children: _jsx(HelpCircleIcon, { className: "size-4 text-text-nav-item-button-icon" }) }), _jsx(Tooltip.Positioner, { children: _jsxs(Tooltip.Content, { children: [_jsx(Tooltip.Arrow, { children: _jsx(Tooltip.ArrowTip, {}) }), "Choose branch closest to your residence."] }) })] })] }), _jsxs(Select.Trigger, { children: [_jsx(Select.ValueText, {}), _jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })] }), _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: branchCollection.items.map((item) => {
|
|
205
205
|
const label = branchCollection.stringifyItem(item) ?? '';
|
|
206
206
|
return (_jsx(Select.Item, { item: item, "aria-disabled": item.disabled, className: twMerge(item.disabled && 'text-border-disabled'), children: _jsx("div", { title: label, className: "line-clamp-1", children: label }) }, item.code));
|
|
207
|
-
}) }) })] }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.branchCode?.message })] })), _jsx(Controller, { control: step1Form.control, name: "termsAccepted", render: (o) => (_jsxs(Field.Root, { className: "mt-2xl", invalid: o.fieldState.invalid, children: [_jsxs(Checkbox.Root, { checked: o.field.value, onCheckedChange: (details) => {
|
|
207
|
+
}) }) })] }), _jsx(Field.ErrorText, { children: step1Form.formState.errors.branchCode?.message })] })), _jsx(Controller, { control: step1Form.control, name: "termsAccepted", render: (o) => (_jsxs(Field.Root, { className: "mt-2xl", invalid: o.fieldState.invalid, children: [_jsxs(Checkbox.Root, { variant: "outline", colorScheme: "neutral", checked: o.field.value, onCheckedChange: (details) => {
|
|
208
208
|
if (details.checked === 'indeterminate')
|
|
209
209
|
return;
|
|
210
210
|
o.field.onChange(details.checked);
|
|
@@ -264,6 +264,7 @@ export function SignUpDefaultForm() {
|
|
|
264
264
|
}
|
|
265
265
|
}, {
|
|
266
266
|
until: (ok) => ok,
|
|
267
|
+
interval: 1500,
|
|
267
268
|
maxAttempt: 5,
|
|
268
269
|
});
|
|
269
270
|
const ok = await pollLogin();
|
|
@@ -15,6 +15,7 @@ import { useShallow } from 'zustand/shallow';
|
|
|
15
15
|
import { useControllableState } from '../../../client/hooks/useControllableState.js';
|
|
16
16
|
import { useCooldown } from '../../../client/hooks/useCooldown.js';
|
|
17
17
|
import { useCreateMemberVerificationMutation } from '../../../client/hooks/useCreateMemberVerificationMutation.js';
|
|
18
|
+
import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
|
|
18
19
|
import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
|
|
19
20
|
import { useLocaleInfo } from '../../../client/hooks/useLocaleInfo.js';
|
|
20
21
|
import { useMemberVerificationQuery } from '../../../client/hooks/useMemberVerificationQuery.js';
|
|
@@ -50,7 +51,6 @@ import { getMemberVerificationQueryKey } from '../../../utils/queryKeys.js';
|
|
|
50
51
|
import { IdFrontImageField } from './IdFrontImageField/index.js';
|
|
51
52
|
import { SelfieImageField } from './SelfieImageField/index.js';
|
|
52
53
|
import { useSignUpKYCPropsContext } from './SignUpKYCContext.js';
|
|
53
|
-
import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
|
|
54
54
|
export function SignUpKYCForm() {
|
|
55
55
|
const props = useSignUpKYCPropsContext();
|
|
56
56
|
const branchCollection = createListCollection({
|
|
@@ -334,7 +334,8 @@ export function SignUpKYCForm() {
|
|
|
334
334
|
}
|
|
335
335
|
}, {
|
|
336
336
|
until: (ok) => ok,
|
|
337
|
-
|
|
337
|
+
interval: 1500,
|
|
338
|
+
maxAttempt: 5,
|
|
338
339
|
});
|
|
339
340
|
const ok = await pollLogin();
|
|
340
341
|
if (!ok) {
|
|
@@ -11,6 +11,7 @@ import { twMerge } from 'tailwind-merge';
|
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
import { useShallow } from 'zustand/shallow';
|
|
13
13
|
import { useControllableState } from '../../../client/hooks/useControllableState.js';
|
|
14
|
+
import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
|
|
14
15
|
import { useGlobalStore } from '../../../client/hooks/useGlobalStore.js';
|
|
15
16
|
import { useSignInMutation } from '../../../client/hooks/useSignInMutation.js';
|
|
16
17
|
import { useSignUpByNameMutation } from '../../../client/hooks/useSignUpByNameMutation.js';
|
|
@@ -35,7 +36,6 @@ import { Select } from '../../../ui/Select/index.js';
|
|
|
35
36
|
import { Tooltip } from '../../../ui/Tooltip/index.js';
|
|
36
37
|
import { createPoll } from '../../../utils/createPoll.js';
|
|
37
38
|
import { useSignUpNameAndPasswordPropsContext } from './SignUpNameAndPasswordContext.js';
|
|
38
|
-
import { useFeatureFlag } from '../../../client/hooks/useFeatureFlag.js';
|
|
39
39
|
export function SignUpNameAndPasswordForm() {
|
|
40
40
|
const signUpProps = useSignUpNameAndPasswordPropsContext();
|
|
41
41
|
const signInMutation = useSignInMutation();
|
|
@@ -158,6 +158,7 @@ export function SignUpNameAndPasswordForm() {
|
|
|
158
158
|
}
|
|
159
159
|
}, {
|
|
160
160
|
until: (ok) => ok,
|
|
161
|
+
interval: 1500,
|
|
161
162
|
maxAttempt: 5,
|
|
162
163
|
});
|
|
163
164
|
const ok = await pollLogin();
|
|
@@ -203,7 +204,7 @@ export function SignUpNameAndPasswordForm() {
|
|
|
203
204
|
}, children: [_jsx(Tooltip.Trigger, { asChild: true, children: _jsx(HelpCircleIcon, { className: "size-4 text-text-nav-item-button-icon" }) }), _jsx(Tooltip.Positioner, { children: _jsxs(Tooltip.Content, { children: [_jsx(Tooltip.Arrow, { children: _jsx(Tooltip.ArrowTip, {}) }), "Choose branch closest to your residence."] }) })] })] }), _jsxs(Select.Trigger, { children: [_jsx(Select.ValueText, {}), _jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })] }), _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: branchCollection.items.map((item) => {
|
|
204
205
|
const label = branchCollection.stringifyItem(item) ?? '';
|
|
205
206
|
return (_jsx(Select.Item, { item: item, "aria-disabled": item.disabled, className: twMerge(item.disabled && 'text-border-disabled'), children: _jsx("div", { title: label, className: "line-clamp-1", children: label }) }, item.code));
|
|
206
|
-
}) }) })] }), _jsx(Field.ErrorText, { children: form.formState.errors.branchCode?.message })] })), _jsx(Controller, { control: form.control, name: "termsAccepted", render: (o) => (_jsxs(Field.Root, { className: "mt-2xl", invalid: o.fieldState.invalid, children: [_jsxs(Checkbox.Root, { checked: o.field.value, onCheckedChange: (details) => {
|
|
207
|
+
}) }) })] }), _jsx(Field.ErrorText, { children: form.formState.errors.branchCode?.message })] })), _jsx(Controller, { control: form.control, name: "termsAccepted", render: (o) => (_jsxs(Field.Root, { className: "mt-2xl", invalid: o.fieldState.invalid, children: [_jsxs(Checkbox.Root, { variant: "outline", colorScheme: "neutral", checked: o.field.value, onCheckedChange: (details) => {
|
|
207
208
|
if (details.checked === 'indeterminate')
|
|
208
209
|
return;
|
|
209
210
|
o.field.onChange(details.checked);
|