livevegas-ui-kit 1.0.81 → 1.0.83

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.
@@ -0,0 +1,3 @@
1
+ export declare const i18n: import('i18next').i18n;
2
+ export declare function initI18n(): import('i18next').i18n;
3
+ export default i18n;
@@ -0,0 +1,6 @@
1
+ export declare enum Language {
2
+ English = "en",
3
+ Armenian = "hy",
4
+ Russia = "ru",
5
+ Turkey = "tr"
6
+ }
@@ -0,0 +1,11 @@
1
+ export declare const LS_ITEMS: {
2
+ readonly language: "language";
3
+ };
4
+ export declare const SS_ITEMS: {
5
+ readonly tableId: "tableId";
6
+ };
7
+ declare const STORAGE_ITEMS: {
8
+ readonly tableId: "tableId";
9
+ readonly language: "language";
10
+ };
11
+ export default STORAGE_ITEMS;
@@ -0,0 +1,14 @@
1
+ import { default as STORAGE_ITEMS } from './constants';
2
+
3
+ type StorageKey = keyof typeof STORAGE_ITEMS;
4
+ declare const storage: {
5
+ set: (key: StorageKey, value: string) => void;
6
+ get: (key: StorageKey) => string | null;
7
+ remove: (key: StorageKey) => void;
8
+ activate: (key: StorageKey) => void;
9
+ deactivate: (key: StorageKey) => void;
10
+ isActive: (key: StorageKey, defaultValue?: boolean) => boolean;
11
+ tableId: "tableId";
12
+ language: "language";
13
+ };
14
+ export default storage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livevegas-ui-kit",
3
- "version": "1.0.81",
3
+ "version": "1.0.83",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -24,8 +24,10 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@microsoft/signalr": "^8.0.0",
27
+ "i18next": "^25.4.0",
27
28
  "react": "^18.2.0",
28
- "react-dom": "^18.2.0"
29
+ "react-dom": "^18.2.0",
30
+ "react-i18next": "^15.7.1"
29
31
  },
30
32
  "devDependencies": {
31
33
  "@chromatic-com/storybook": "^1.5.0",
@@ -1,12 +0,0 @@
1
- import { BET_TYPE } from 'src/components/History/helpers';
2
- import { ISizeIcon } from '../BlackJackAction/helper';
3
-
4
- export interface IActionButton {
5
- buttonType?: BET_TYPE;
6
- icon: (size: ISizeIcon) => JSX.Element;
7
- onClick: () => void;
8
- isDisabled: boolean;
9
- size?: number;
10
- customColor?: string;
11
- }
12
- export declare const ActionButton: ({ buttonType, icon, onClick, isDisabled, size, customColor, }: IActionButton) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { ISize } from '../BlackJackAction/helper';
2
-
3
- interface IButtonWrapper {
4
- $color: string;
5
- $size: ISize;
6
- $isDisabled: boolean;
7
- }
8
- export declare const ButtonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, IButtonWrapper>> & string;
9
- export {};