react-gldn-kit 0.1.1 → 0.1.2

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 (54) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/components/Banners/components/BannerTemplate/index.d.ts +2 -2
  3. package/dist/lib/components/Banners/types.d.ts +2 -2
  4. package/dist/lib/components/Modals/Alert/components/Auth/Credentials/index.d.ts +4 -0
  5. package/dist/lib/components/Modals/Alert/components/Auth/Credentials/index.js +57 -0
  6. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/CountrySelector/constants.d.ts +7 -0
  7. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/CountrySelector/constants.js +815 -0
  8. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/CountrySelector/index.d.ts +5 -0
  9. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/CountrySelector/index.js +35 -0
  10. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/CurrencySelector/index.d.ts +7 -0
  11. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/CurrencySelector/index.js +59 -0
  12. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/DocsCheckBox/index.d.ts +7 -0
  13. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/DocsCheckBox/index.js +35 -0
  14. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/EmailSignUp/index.d.ts +9 -0
  15. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/EmailSignUp/index.js +130 -0
  16. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/OneClickKit/index.d.ts +2 -0
  17. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/OneClickKit/index.js +60 -0
  18. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/Phone/constants.d.ts +2 -0
  19. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/Phone/constants.js +14 -0
  20. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/Phone/index.d.ts +5 -0
  21. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/Forms/Phone/index.js +129 -0
  22. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/PromoCode/index.d.ts +6 -0
  23. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/components/PromoCode/index.js +65 -0
  24. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/index.d.ts +9 -0
  25. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/index.js +75 -0
  26. package/dist/lib/components/Modals/Alert/index.d.ts +3 -1
  27. package/dist/lib/components/Modals/Alert/index.js +16 -13
  28. package/dist/lib/components/ui/Headers/PopUpHeader/index.js +2 -1
  29. package/dist/lib/components/ui/Inputs/PhoneInput/index.d.ts +23 -0
  30. package/dist/lib/components/ui/Inputs/PhoneInput/index.js +125 -0
  31. package/dist/lib/components/ui/Tabs/index.js +2 -1
  32. package/dist/lib/hooks/useHookFabric.d.ts +6 -0
  33. package/dist/lib/hooks/useHookFabric.js +24 -0
  34. package/dist/lib/index.d.ts +9 -3
  35. package/dist/lib/index.js +34 -20
  36. package/dist/lib/utils/shared.d.ts +8 -0
  37. package/dist/lib/utils/shared.js +192 -0
  38. package/dist/lib/zustandStore/alerts/modal/constants.js +3 -3
  39. package/dist/lib/zustandStore/alerts/modal/store.js +3 -3
  40. package/dist/lib/zustandStore/forms/signUp/constants.d.ts +10 -0
  41. package/dist/lib/zustandStore/forms/signUp/constants.js +40 -0
  42. package/dist/lib/zustandStore/forms/signUp/selectors.d.ts +23 -0
  43. package/dist/lib/zustandStore/forms/signUp/selectors.js +84 -0
  44. package/dist/lib/zustandStore/forms/signUp/store.d.ts +2 -0
  45. package/dist/lib/zustandStore/forms/signUp/store.js +62 -0
  46. package/dist/lib/zustandStore/forms/signUp/types.d.ts +34 -0
  47. package/dist/lib/zustandStore/forms/signUp/types.js +10 -0
  48. package/dist/lib/zustandStore/forms/signUp/utils.d.ts +36 -0
  49. package/dist/lib/zustandStore/forms/signUp/utils.js +48 -0
  50. package/dist/lib/zustandStore/languages/selectors.d.ts +1 -1
  51. package/dist/main.css +223 -85
  52. package/package.json +8 -6
  53. package/dist/lib/zustandStore/alerts/modal/utils.d.ts +0 -2
  54. package/dist/lib/zustandStore/alerts/modal/utils.js +0 -11
@@ -1,5 +1,5 @@
1
- import { Banner } from '../../types';
2
- type Props = Banner & {
1
+ import { BannerType } from '../../types';
2
+ type Props = BannerType & {
3
3
  handleClick: () => void;
4
4
  isMobile: boolean;
5
5
  language: string;
@@ -1,4 +1,4 @@
1
- export type Banner = {
1
+ export type BannerType = {
2
2
  desktop: string;
3
3
  mobile: string;
4
4
  id: string;
@@ -12,7 +12,7 @@ export type Banner = {
12
12
  };
13
13
  export type BannerProps = {
14
14
  language: string;
15
- banners: Banner[];
15
+ banners: BannerType[];
16
16
  handleClick: (id: string) => () => void;
17
17
  isMobile: boolean;
18
18
  };
@@ -0,0 +1,4 @@
1
+ declare const Credentials: ({ sendCommand, }: {
2
+ sendCommand: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default Credentials;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ var jsx_runtime_1 = require("react/jsx-runtime");
38
+ var selectors_1 = require("zustandStore/alerts/modal/selectors");
39
+ var store_1 = require("zustandStore/alerts/modal/store");
40
+ var Text_1 = require("components/Text");
41
+ var Buttons_1 = require("components/ui/Buttons");
42
+ var styles = __importStar(require("./Credentials.module.css"));
43
+ var types_1 = require("react-memory-optimization/dist/lib/binary/types");
44
+ var utils_1 = require("zustandStore/forms/signUp/utils");
45
+ var shared_1 = require("utils/shared");
46
+ var Credentials = function (_a) {
47
+ var sendCommand = _a.sendCommand;
48
+ var data = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
49
+ var _b = data.login, login = _b === void 0 ? '' : _b, _c = data.password, password = _c === void 0 ? '' : _c;
50
+ var handleSignIn = function () {
51
+ var data = (0, utils_1.getAuthorizationData)(login, password, types_1.ERequestIds.AuthorizeByEmail);
52
+ console.log('🚀 ~ handleSignIn ~ data:', data);
53
+ sendCommand('x02', data, true);
54
+ };
55
+ return ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.wrapperReferralFailure }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperCredentials }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.infoRow }, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.username }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "popUp.credentials.username" }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.result }, { children: login }))] }), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { color: "secondary", size: "--button-xl", buttonHeight: "--button-height-xs", text: "copy", handleClick: (0, shared_1.copyToClipboard)("login: ".concat(login, "\npassword: ").concat(password)), centreText: true })] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.infoRow }, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.username }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "popUp.credentials.password" }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.result }, { children: password }))] }), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { color: "secondary", size: "--button-xl", buttonHeight: "--button-height-xs", text: "copy", handleClick: (0, shared_1.copyToClipboard)("login: ".concat(login, "\npassword: ").concat(password)), centreText: true })] })), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { color: "primary", handleClick: handleSignIn, size: "--button-full", buttonHeight: "--button-height-l", text: "popUp.credentials.submitBtn", centreText: true })] })) })));
56
+ };
57
+ exports.default = Credentials;
@@ -0,0 +1,7 @@
1
+ export declare const COUNTRY_MOCK: {
2
+ id: number;
3
+ code: string;
4
+ name: string;
5
+ dialCode: string;
6
+ imageCode: string;
7
+ }[];