fansunited-frontend-core 0.0.1-RC1
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/components/Spinner.d.ts +8 -0
- package/components/Spinner.d.ts.map +1 -0
- package/constants/constants.d.ts +5 -0
- package/constants/constants.d.ts.map +1 -0
- package/declarations.d.ts +18 -0
- package/enums/enums.d.ts +6 -0
- package/enums/enums.d.ts.map +1 -0
- package/functions/functions.d.ts +4 -0
- package/functions/functions.d.ts.map +1 -0
- package/functions/helpers.d.ts +4 -0
- package/functions/helpers.d.ts.map +1 -0
- package/functions/i18n.d.ts +2 -0
- package/functions/i18n.d.ts.map +1 -0
- package/functions/theme.d.ts +34 -0
- package/functions/theme.d.ts.map +1 -0
- package/hooks/hooks.d.ts +4 -0
- package/hooks/hooks.d.ts.map +1 -0
- package/hooks/useConstantContext.d.ts +4 -0
- package/hooks/useConstantContext.d.ts.map +1 -0
- package/hooks/useImageUrl.d.ts +10 -0
- package/hooks/useImageUrl.d.ts.map +1 -0
- package/hooks/useThemeMode.d.ts +10 -0
- package/hooks/useThemeMode.d.ts.map +1 -0
- package/index.d.ts +9 -0
- package/index.d.ts.map +1 -0
- package/index.es.js +7676 -0
- package/interfaces/interfaces.d.ts +245 -0
- package/interfaces/interfaces.d.ts.map +1 -0
- package/locales/bg.json.d.ts +93 -0
- package/locales/de.json.d.ts +93 -0
- package/locales/en.json.d.ts +97 -0
- package/locales/fr-be.json.d.ts +93 -0
- package/locales/fr.json.d.ts +93 -0
- package/locales/it.json.d.ts +93 -0
- package/locales/pl.json.d.ts +93 -0
- package/locales/pt-br.json.d.ts +93 -0
- package/locales/pt.json.d.ts +93 -0
- package/locales/ro.json.d.ts +93 -0
- package/locales/sr.json.d.ts +93 -0
- package/package.json +20 -0
- package/providers/ConstantsProvider.d.ts +16 -0
- package/providers/ConstantsProvider.d.ts.map +1 -0
- package/providers/FontProvider.d.ts +9 -0
- package/providers/FontProvider.d.ts.map +1 -0
- package/providers/ThemeProvider.d.ts +13 -0
- package/providers/ThemeProvider.d.ts.map +1 -0
- package/providers/providers.d.ts +3 -0
- package/providers/providers.d.ts.map +1 -0
- package/types/types.d.ts +12 -0
- package/types/types.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/components/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,YAAY,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAsBnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,eAAO,MAAM,gBAAgB,EAAE,UAAU,EAUxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAAyC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// declare module "@mui/joy/styles" {
|
|
2
|
+
// interface PaletteRange {
|
|
3
|
+
// plainColor: string;
|
|
4
|
+
// outlinedBorder: string;
|
|
5
|
+
// onPrimary: string;
|
|
6
|
+
// primaryContainer: string;
|
|
7
|
+
// }
|
|
8
|
+
// }
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
// declare module "@mui/joy/styles" {
|
|
12
|
+
// interface ColorSystem {
|
|
13
|
+
// textColor: string;
|
|
14
|
+
// outlinedBorder: string;
|
|
15
|
+
// onPrimary: string;
|
|
16
|
+
// primaryContainer: string;
|
|
17
|
+
// }
|
|
18
|
+
// }
|
package/enums/enums.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/enums/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { useSpacingScale, getSpacing, isMobile, useFontFamily, useCornerRadius, useColors, useBorderSize, useInternalTheme, } from './theme';
|
|
2
|
+
export { stripHtmlTags, hexToRgb, isAndroid } from './helpers';
|
|
3
|
+
export { initializeI18n } from './i18n';
|
|
4
|
+
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/functions/functions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,UAAU,EACV,QAAQ,EACR,aAAa,EACb,eAAe,EACf,SAAS,EACT,aAAa,EACb,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/functions/helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,SAAU,MAAM,KAAG,MAK5C,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAS,MAAM,KAAG,MAUtC,CAAC;AAGF,eAAO,MAAM,SAAS,QAAO,OAE5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/functions/i18n.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,cAAc,aAAc,MAAM,mEAwE9C,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Theme } from '@mui/joy/styles';
|
|
2
|
+
import { CustomSpacingScale, CustomThemeOptions, EnhancedCustomThemeOptions, InternalCustomThemeOptions, ThemeMode } from '../interfaces/interfaces';
|
|
3
|
+
|
|
4
|
+
export declare const createCustomTheme: (customOptions?: CustomThemeOptions) => Theme;
|
|
5
|
+
export declare const createEnhancedTheme: (customOptions?: EnhancedCustomThemeOptions) => Theme;
|
|
6
|
+
/**
|
|
7
|
+
* Custom hook to access spacing scale values from the theme
|
|
8
|
+
* @returns Spacing scale object or undefined if not available in the theme
|
|
9
|
+
*/
|
|
10
|
+
export declare const useSpacingScale: () => CustomSpacingScale;
|
|
11
|
+
/**
|
|
12
|
+
* Function to get a spacing value from the spacing scale
|
|
13
|
+
*/
|
|
14
|
+
export declare const getSpacing: (size: keyof CustomSpacingScale) => string;
|
|
15
|
+
export declare const isMobile: () => boolean;
|
|
16
|
+
export declare const isTablet: () => boolean;
|
|
17
|
+
export declare const isDesktop: () => boolean;
|
|
18
|
+
export declare const useInternalTheme: () => InternalCustomThemeOptions;
|
|
19
|
+
export declare const useThemeWithMode: () => {
|
|
20
|
+
theme: InternalCustomThemeOptions;
|
|
21
|
+
mode: ThemeMode;
|
|
22
|
+
};
|
|
23
|
+
export declare const useFontFamily: () => {
|
|
24
|
+
primary: string;
|
|
25
|
+
secondary: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const useCornerRadius: () => import('..').CustomBorderRadius;
|
|
28
|
+
export declare const useColors: () => import('..').InternalCustomColors;
|
|
29
|
+
export declare const useBorderSize: () => {
|
|
30
|
+
size: string;
|
|
31
|
+
} | {
|
|
32
|
+
size: string;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/functions/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EAIN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,0BAA0B,EAC1B,0BAA0B,EAC1B,SAAS,EACV,MAAM,0BAA0B,CAAC;AAgJlC,eAAO,MAAM,iBAAiB,mBACZ,kBAAkB,KACjC,KAyEF,CAAC;AAEF,eAAO,MAAM,mBAAmB,mBACd,0BAA0B,KACzC,KAeF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,QAEG,kBAC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,SAAU,MAAM,kBAAkB,KAAG,MAK3D,CAAC;AAGF,eAAO,MAAM,QAAQ,eAGpB,CAAC;AAEF,eAAO,MAAM,QAAQ,eAGpB,CAAC;AAEF,eAAO,MAAM,SAAS,eAGrB,CAAC;AAGF,eAAO,MAAM,gBAAgB,kCAI5B,CAAC;AAGF,eAAO,MAAM,gBAAgB;;;CAQ5B,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAOzB,CAAC;AAEF,eAAO,MAAM,eAAe,uCAG3B,CAAC;AAEF,eAAO,MAAM,SAAS,yCAGrB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;CAGzB,CAAC"}
|
package/hooks/hooks.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/hooks/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConstantContext.d.ts","sourceRoot":"","sources":["../../src/hooks/useConstantContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAc,MAAM,OAAO,CAAC;AAE5C,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,mBAQxD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ImagesModel, MiniGameImages } from 'fansunited-sdk-esm';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook to determine the appropriate image URL based on position and device type
|
|
5
|
+
* @param images The images model containing various image URLs
|
|
6
|
+
* @param imagePosition The desired position for the image
|
|
7
|
+
* @returns The appropriate image URL or null
|
|
8
|
+
*/
|
|
9
|
+
export declare const useImageUrl: (images: ImagesModel | MiniGameImages | null) => string | null;
|
|
10
|
+
//# sourceMappingURL=useImageUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useImageUrl.d.ts","sourceRoot":"","sources":["../../src/hooks/useImageUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGjE;;;;;GAKG;AACH,eAAO,MAAM,WAAW,WACd,WAAW,GAAG,cAAc,GAAG,IAAI,KAC1C,MAAM,GAAG,IAQX,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ThemeMode } from '../interfaces/interfaces';
|
|
2
|
+
|
|
3
|
+
export interface UseThemeModeReturn {
|
|
4
|
+
mode: ThemeMode;
|
|
5
|
+
toggleMode: () => void;
|
|
6
|
+
setMode: (mode: ThemeMode) => void;
|
|
7
|
+
systemPreference: ThemeMode;
|
|
8
|
+
}
|
|
9
|
+
export declare const useThemeMode: (clientMode: ThemeMode, storageKey?: string) => UseThemeModeReturn;
|
|
10
|
+
//# sourceMappingURL=useThemeMode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThemeMode.d.ts","sourceRoot":"","sources":["../../src/hooks/useThemeMode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAWrD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACnC,gBAAgB,EAAE,SAAS,CAAC;CAC7B;AAED,eAAO,MAAM,YAAY,eACX,SAAS,eACT,MAAM,KACjB,kBAyDF,CAAC"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './constants/constants';
|
|
2
|
+
export * from './functions/functions';
|
|
3
|
+
export * from './interfaces/interfaces';
|
|
4
|
+
export * from './types/types';
|
|
5
|
+
export * from './enums/enums';
|
|
6
|
+
export * from './components/Spinner';
|
|
7
|
+
export * from './hooks/hooks';
|
|
8
|
+
export * from './providers/providers';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC"}
|