@opexa/portal-components 0.0.60 → 0.0.62
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/useGlobalStore.d.ts +2 -0
- package/dist/client/hooks/useGlobalStore.js +9 -0
- package/dist/components/Cashback/Cashback.client.d.ts +2 -0
- package/dist/components/Cashback/Cashback.client.js +9 -0
- package/dist/components/Cashback/Cashback.d.ts +10 -0
- package/dist/components/Cashback/Cashback.js +5 -0
- package/dist/components/Cashback/index.d.ts +1 -0
- package/dist/components/Cashback/index.js +1 -0
- package/dist/components/Promo/Promo.client.js +19 -1
- package/dist/components/Promo/Promo.js +11 -4
- package/dist/components/Promos/PromoItem.d.ts +1 -1
- package/dist/components/Promos/PromoItem.js +12 -6
- package/dist/components/Rewards/Rewards.client.d.ts +2 -0
- package/dist/components/Rewards/Rewards.client.js +25 -0
- package/dist/components/Rewards/Rewards.d.ts +15 -0
- package/dist/components/Rewards/Rewards.js +7 -0
- package/dist/components/Rewards/index.d.ts +1 -0
- package/dist/components/Rewards/index.js +1 -0
- package/dist/components/SignIn/MobileNumberSignIn.d.ts +1 -0
- package/dist/components/SignIn/MobileNumberSignIn.js +117 -0
- package/dist/components/SignIn/NameAndPasswordSignIn.d.ts +1 -0
- package/dist/components/SignIn/NameAndPasswordSignIn.js +53 -0
- package/dist/components/SignIn/SignIn.js +1 -1
- package/dist/components/SignIn/SignInContext.d.ts +12 -0
- package/dist/components/SignIn/SignInContext.js +18 -0
- package/dist/components/SignIn/SignInForm.js +7 -115
- package/dist/components/SignIn/SignInMethod.d.ts +1 -0
- package/dist/components/SignIn/SignInMethod.js +19 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +2 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/ui/AlertDialog/AlertDialog.d.ts +154 -154
- package/dist/ui/AlertDialog/alertDialog.recipe.d.ts +14 -14
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.anatomy.js +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Clipboard/Clipboard.d.ts +18 -18
- package/dist/ui/Clipboard/clipboard.recipe.d.ts +3 -3
- package/dist/ui/Collapsible/Collapsible.d.ts +20 -20
- package/dist/ui/Collapsible/collapsible.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/DatePicker/DatePicker.d.ts +192 -192
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +8 -8
- package/dist/ui/Dialog/Dialog.d.ts +154 -154
- package/dist/ui/Dialog/dialog.recipe.d.ts +14 -14
- package/dist/ui/Drawer/Drawer.d.ts +33 -33
- package/dist/ui/Drawer/drawer.recipe.d.ts +3 -3
- package/dist/ui/PasswordInput/PasswordInput.d.ts +18 -18
- package/dist/ui/PasswordInput/passwordInput.recipe.d.ts +3 -3
- package/dist/ui/Popover/Popover.d.ts +88 -88
- package/dist/ui/Popover/popover.recipe.d.ts +8 -8
- 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.anatomy.js +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/dist/utils/anatomyToRecipeSlots.d.ts +1 -1
- package/dist/utils/anatomyToRecipeSlots.js +3 -1
- package/package.json +8 -8
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { SegmentGroup } from '../../ui/index.js';
|
|
4
|
+
import { useSignInContext } from './SignInContext.js';
|
|
5
|
+
const METHODS = [
|
|
6
|
+
'MOBILE_NUMBER',
|
|
7
|
+
'NAME_AND_PASSWORD',
|
|
8
|
+
];
|
|
9
|
+
const METHOD_LABEL_MAP = {
|
|
10
|
+
MOBILE_NUMBER: 'Mobile',
|
|
11
|
+
NAME_AND_PASSWORD: 'Username',
|
|
12
|
+
};
|
|
13
|
+
export function SignInMethod() {
|
|
14
|
+
const context = useSignInContext();
|
|
15
|
+
return (_jsxs(SegmentGroup.Root, { value: context.type, onValueChange: (details) => {
|
|
16
|
+
context.setStep(1);
|
|
17
|
+
context.setType(z.enum(METHODS).parse(details.value));
|
|
18
|
+
}, className: "mt-5 w-full", children: [_jsx(SegmentGroup.Indicator, {}), METHODS.map((method) => (_jsxs(SegmentGroup.Item, { value: method, className: "w-full", children: [_jsx(SegmentGroup.ItemText, { children: METHOD_LABEL_MAP[method] }), _jsx(SegmentGroup.ItemControl, {}), _jsx(SegmentGroup.ItemHiddenInput, {})] }, method)))] }));
|
|
19
|
+
}
|
|
@@ -5,7 +5,7 @@ export * from './AccountVerification';
|
|
|
5
5
|
export * from './Banner';
|
|
6
6
|
export * from './BetRecords';
|
|
7
7
|
export * from './Bonus';
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './Cashback';
|
|
9
9
|
export * from './DepositWithdrawal';
|
|
10
10
|
export * from './Disclaimer';
|
|
11
11
|
export * from './FavoriteGames';
|
|
@@ -23,6 +23,7 @@ export * from './Promo';
|
|
|
23
23
|
export * from './Promos';
|
|
24
24
|
export * from './Protected';
|
|
25
25
|
export * from './Quests';
|
|
26
|
+
export * from './Rewards';
|
|
26
27
|
export * from './Search';
|
|
27
28
|
export * from './SignIn';
|
|
28
29
|
export * from './SignUp';
|
package/dist/components/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export * from './AccountVerification/index.js';
|
|
|
5
5
|
export * from './Banner/index.js';
|
|
6
6
|
export * from './BetRecords/index.js';
|
|
7
7
|
export * from './Bonus/index.js';
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './Cashback/index.js';
|
|
9
9
|
export * from './DepositWithdrawal/index.js';
|
|
10
10
|
export * from './Disclaimer/index.js';
|
|
11
11
|
export * from './FavoriteGames/index.js';
|
|
@@ -23,6 +23,7 @@ export * from './Promo/index.js';
|
|
|
23
23
|
export * from './Promos/index.js';
|
|
24
24
|
export * from './Protected/index.js';
|
|
25
25
|
export * from './Quests/index.js';
|
|
26
|
+
export * from './Rewards/index.js';
|
|
26
27
|
export * from './Search/index.js';
|
|
27
28
|
export * from './SignIn/index.js';
|
|
28
29
|
export * from './SignUp/index.js';
|
package/dist/types/index.d.ts
CHANGED