livevegas-ui-kit 1.0.309 → 1.0.310
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/README.md +69 -69
- package/dist/components/ActionButton/index.d.ts +1 -1
- package/dist/components/BalanceAndBet/index.d.ts +1 -4
- package/dist/components/History/History.stories.d.ts +12 -0
- package/dist/components/History/index.d.ts +2 -1
- package/dist/components/MobileBottomInfo/index.d.ts +1 -4
- package/dist/components/MobileMenu/helper.d.ts +1 -1
- package/dist/components/MobileMenu/index.d.ts +2 -3
- package/dist/components/ToLobby/index.d.ts +2 -3
- package/dist/components/ToLobby/styled.d.ts +1 -4
- package/dist/components/ToastMessages/index.d.ts +1 -1
- package/dist/components/TopIcons/Elements.d.ts +1 -2
- package/dist/components/TopIcons/helper.d.ts +13 -2
- package/dist/components/TopIcons/index.d.ts +1 -3
- package/dist/components/index.d.ts +2 -2
- package/dist/livevegas-ui-kit.es.js +7202 -1352
- package/dist/livevegas-ui-kit.umd.js +242 -250
- package/dist/services/i18n/config.d.ts +1 -3
- package/dist/services/i18n/translations/en.json.d.ts +832 -832
- package/dist/services/i18n/translations/es.json.d.ts +834 -0
- package/dist/services/i18n/translations/fa.json.d.ts +837 -0
- package/dist/services/i18n/translations/hy.json.d.ts +842 -0
- package/dist/services/i18n/translations/ka.json.d.ts +808 -0
- package/dist/services/i18n/translations/ru.json.d.ts +853 -0
- package/dist/services/i18n/translations/tr.json.d.ts +858 -0
- package/dist/services/i18n/translations/uz.json.d.ts +839 -0
- package/dist/utils/helpers.d.ts +1 -49
- package/package.json +77 -77
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -10,37 +10,6 @@ export interface IUrlParam {
|
|
|
10
10
|
exitUrl: string;
|
|
11
11
|
hasLobby: string;
|
|
12
12
|
}
|
|
13
|
-
export declare enum BUTTONS_TYPE {
|
|
14
|
-
Message = 1,
|
|
15
|
-
Support = 2,
|
|
16
|
-
Tip = 3,
|
|
17
|
-
History = 4,
|
|
18
|
-
Info = 5,
|
|
19
|
-
Settings = 6,
|
|
20
|
-
VolumeOn = 7,
|
|
21
|
-
FullScreen = 8,
|
|
22
|
-
Tournament = 9,
|
|
23
|
-
closeMenu = 10,
|
|
24
|
-
Limit = 11,
|
|
25
|
-
BackToLobby = 12
|
|
26
|
-
}
|
|
27
|
-
export declare enum ActiveElements {
|
|
28
|
-
Message = 1,
|
|
29
|
-
Support = 2,
|
|
30
|
-
Tip = 3,
|
|
31
|
-
History = 4,
|
|
32
|
-
Info = 5,
|
|
33
|
-
Settings = 6,
|
|
34
|
-
VolumeOn = 7,
|
|
35
|
-
FullScreen = 8,
|
|
36
|
-
Tournament = 9,
|
|
37
|
-
closeMenu = 10,
|
|
38
|
-
Limit = 11,
|
|
39
|
-
BackToLobby = 12,
|
|
40
|
-
CloseLogo = 13,
|
|
41
|
-
CloseBalance = 14,
|
|
42
|
-
CloseBet = 15
|
|
43
|
-
}
|
|
44
13
|
export declare const closeGame: (partnerId: number, socket: HubConnection | null, urlParam: IUrlParam, name?: string) => void;
|
|
45
14
|
export declare const formatBalanceSmart: (balance: number) => string;
|
|
46
15
|
export declare const mockTournamentData: {
|
|
@@ -70,24 +39,6 @@ export declare const mockTournamentData: {
|
|
|
70
39
|
currencyId: string;
|
|
71
40
|
}[];
|
|
72
41
|
};
|
|
73
|
-
export type IActiveElements = {
|
|
74
|
-
[ActiveElements.Message]: boolean;
|
|
75
|
-
[ActiveElements.Support]: boolean;
|
|
76
|
-
[ActiveElements.Tip]: boolean;
|
|
77
|
-
[ActiveElements.History]: boolean;
|
|
78
|
-
[ActiveElements.Info]: boolean;
|
|
79
|
-
[ActiveElements.Settings]: boolean;
|
|
80
|
-
[ActiveElements.VolumeOn]: boolean;
|
|
81
|
-
[ActiveElements.FullScreen]: boolean;
|
|
82
|
-
[ActiveElements.Tournament]: boolean;
|
|
83
|
-
[ActiveElements.closeMenu]: boolean;
|
|
84
|
-
[ActiveElements.Limit]: boolean;
|
|
85
|
-
[ActiveElements.BackToLobby]: boolean;
|
|
86
|
-
[ActiveElements.CloseLogo]: boolean;
|
|
87
|
-
[ActiveElements.CloseBalance]: boolean;
|
|
88
|
-
[ActiveElements.CloseBet]: boolean;
|
|
89
|
-
};
|
|
90
|
-
export declare const IsActiveElementsDefault: IActiveElements;
|
|
91
42
|
export declare const calculateTimeLeft: (tournamentData: TournamentData) => {
|
|
92
43
|
days: number;
|
|
93
44
|
hours: number;
|
|
@@ -176,3 +127,4 @@ export declare enum VIP_SELECTED_GAME {
|
|
|
176
127
|
OASIS = 3,
|
|
177
128
|
SIXCARD = 4
|
|
178
129
|
}
|
|
130
|
+
export declare const TIP_HIDDEN_PARTNER_IDS: Set<number>;
|
package/package.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "livevegas-ui-kit",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"files": [
|
|
6
|
-
"dist"
|
|
7
|
-
],
|
|
8
|
-
"types": "./dist/livevegas-ui-kit.es.d.ts",
|
|
9
|
-
"main": "./dist/livevegas-ui-kit.umd.js",
|
|
10
|
-
"module": "./dist/livevegas-ui-kit.es.js",
|
|
11
|
-
"exports": {
|
|
12
|
-
"./package.json": "./package.json",
|
|
13
|
-
".": {
|
|
14
|
-
"types": "./dist/livevegas-ui-kit.es.d.ts",
|
|
15
|
-
"import": "./dist/livevegas-ui-kit.es.js",
|
|
16
|
-
"require": "./dist/livevegas-ui-kit.umd.js",
|
|
17
|
-
"default": "./dist/livevegas-ui-kit.es.js"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"dev": "vite",
|
|
22
|
-
"build": "tsc && vite build",
|
|
23
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
24
|
-
"preview": "vite preview",
|
|
25
|
-
"storybook": "storybook dev -p 6006 --host 0.0.0.0",
|
|
26
|
-
"build-storybook": "storybook build",
|
|
27
|
-
"test": "vitest",
|
|
28
|
-
"test:ui": "vitest --ui"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@microsoft/signalr": "^8.0.0",
|
|
32
|
-
"i18next": "^25.4.0",
|
|
33
|
-
"latest": "^0.2.0",
|
|
34
|
-
"react-i18next": "^15.7.1",
|
|
35
|
-
"styled-components": "^6.1.11"
|
|
36
|
-
},
|
|
37
|
-
"peerDependencies": {
|
|
38
|
-
"react": "^18.2.0",
|
|
39
|
-
"react-dom": "^18.2.0",
|
|
40
|
-
"styled-components": "^6.1.11"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@chromatic-com/storybook": "^1.5.0",
|
|
44
|
-
"@storybook/addon-essentials": "^8.1.4",
|
|
45
|
-
"@storybook/addon-interactions": "^8.1.4",
|
|
46
|
-
"@storybook/addon-links": "^8.1.4",
|
|
47
|
-
"@storybook/addon-onboarding": "^8.1.4",
|
|
48
|
-
"@storybook/blocks": "^8.1.4",
|
|
49
|
-
"@storybook/react": "^8.1.4",
|
|
50
|
-
"@storybook/react-vite": "^8.1.4",
|
|
51
|
-
"@storybook/test": "^8.1.4",
|
|
52
|
-
"@testing-library/jest-dom": "^6.9.1",
|
|
53
|
-
"@testing-library/react": "^16.3.2",
|
|
54
|
-
"@testing-library/user-event": "^14.6.1",
|
|
55
|
-
"@types/react": "^18.2.66",
|
|
56
|
-
"@types/react-dom": "^18.2.22",
|
|
57
|
-
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
58
|
-
"@typescript-eslint/parser": "^7.2.0",
|
|
59
|
-
"@vitejs/plugin-react": "^4.2.1",
|
|
60
|
-
"@vitest/coverage-v8": "4.1.6",
|
|
61
|
-
"@vitest/ui": "4.1.6",
|
|
62
|
-
"eslint": "^8.57.0",
|
|
63
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
64
|
-
"eslint-plugin-react-refresh": "^0.4.6",
|
|
65
|
-
"eslint-plugin-storybook": "^0.8.0",
|
|
66
|
-
"jsdom": "^29.1.1",
|
|
67
|
-
"prettier": "^3.6.2",
|
|
68
|
-
"react": "^18.2.0",
|
|
69
|
-
"react-dom": "^18.2.0",
|
|
70
|
-
"storybook": "^8.1.4",
|
|
71
|
-
"styled-components": "^6.1.11",
|
|
72
|
-
"typescript": "^5.2.2",
|
|
73
|
-
"vite": "^8.0.13",
|
|
74
|
-
"vite-plugin-dts": "^3.9.1",
|
|
75
|
-
"vitest": "^4.1.6"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "livevegas-ui-kit",
|
|
3
|
+
"version": "1.0.310",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"types": "./dist/livevegas-ui-kit.es.d.ts",
|
|
9
|
+
"main": "./dist/livevegas-ui-kit.umd.js",
|
|
10
|
+
"module": "./dist/livevegas-ui-kit.es.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": "./package.json",
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/livevegas-ui-kit.es.d.ts",
|
|
15
|
+
"import": "./dist/livevegas-ui-kit.es.js",
|
|
16
|
+
"require": "./dist/livevegas-ui-kit.umd.js",
|
|
17
|
+
"default": "./dist/livevegas-ui-kit.es.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"dev": "vite",
|
|
22
|
+
"build": "tsc && vite build",
|
|
23
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
24
|
+
"preview": "vite preview",
|
|
25
|
+
"storybook": "storybook dev -p 6006 --host 0.0.0.0",
|
|
26
|
+
"build-storybook": "storybook build",
|
|
27
|
+
"test": "vitest",
|
|
28
|
+
"test:ui": "vitest --ui"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@microsoft/signalr": "^8.0.0",
|
|
32
|
+
"i18next": "^25.4.0",
|
|
33
|
+
"latest": "^0.2.0",
|
|
34
|
+
"react-i18next": "^15.7.1",
|
|
35
|
+
"styled-components": "^6.1.11"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"react": "^18.2.0",
|
|
39
|
+
"react-dom": "^18.2.0",
|
|
40
|
+
"styled-components": "^6.1.11"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@chromatic-com/storybook": "^1.5.0",
|
|
44
|
+
"@storybook/addon-essentials": "^8.1.4",
|
|
45
|
+
"@storybook/addon-interactions": "^8.1.4",
|
|
46
|
+
"@storybook/addon-links": "^8.1.4",
|
|
47
|
+
"@storybook/addon-onboarding": "^8.1.4",
|
|
48
|
+
"@storybook/blocks": "^8.1.4",
|
|
49
|
+
"@storybook/react": "^8.1.4",
|
|
50
|
+
"@storybook/react-vite": "^8.1.4",
|
|
51
|
+
"@storybook/test": "^8.1.4",
|
|
52
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
53
|
+
"@testing-library/react": "^16.3.2",
|
|
54
|
+
"@testing-library/user-event": "^14.6.1",
|
|
55
|
+
"@types/react": "^18.2.66",
|
|
56
|
+
"@types/react-dom": "^18.2.22",
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
58
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
59
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
60
|
+
"@vitest/coverage-v8": "4.1.6",
|
|
61
|
+
"@vitest/ui": "4.1.6",
|
|
62
|
+
"eslint": "^8.57.0",
|
|
63
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
64
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
65
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
66
|
+
"jsdom": "^29.1.1",
|
|
67
|
+
"prettier": "^3.6.2",
|
|
68
|
+
"react": "^18.2.0",
|
|
69
|
+
"react-dom": "^18.2.0",
|
|
70
|
+
"storybook": "^8.1.4",
|
|
71
|
+
"styled-components": "^6.1.11",
|
|
72
|
+
"typescript": "^5.2.2",
|
|
73
|
+
"vite": "^8.0.13",
|
|
74
|
+
"vite-plugin-dts": "^3.9.1",
|
|
75
|
+
"vitest": "^4.1.6"
|
|
76
|
+
}
|
|
77
|
+
}
|