fansunited-frontend-core 0.0.8 → 0.0.10

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.
@@ -1,4 +1,4 @@
1
- export { useSpacingScale, getSpacing, isMobile, useFontFamily, useCornerRadius, useColors, useBorderSize, useInternalTheme, useImageBackgroundGradient, } from "./theme";
2
- export { stripHtmlTags, hexToRgb, isAndroid, getDefaultCountryByCode, getDefaultCountryByLanguage, extractBrandingProperties, sanitizeBackgroundUrl, } from "./helpers";
3
- export { initializeI18n } from "./i18n";
1
+ export { useSpacingScale, getSpacing, isMobile, useFontFamily, useCornerRadius, useColors, useBorderSize, useInternalTheme, useImageBackgroundGradient, } from './theme';
2
+ export { stripHtmlTags, hexToRgb, isAndroid, getDefaultCountryByCode, getDefaultCountryByLanguage, extractBrandingProperties, sanitizeBackgroundUrl, } from './helpers';
3
+ export { initializeI18n } from './i18n';
4
4
  //# sourceMappingURL=functions.d.ts.map
@@ -1,9 +1,10 @@
1
- import { BrandingColorsModel, BrandingModel } from "fansunited-sdk-esm";
1
+ import { BrandingColorsModel, BrandingModel } from 'fansunited-sdk-esm';
2
+
2
3
  export declare const stripHtmlTags: (html: string) => string;
3
4
  export declare const hexToRgb: (hex: string) => string;
4
5
  export declare const isAndroid: () => boolean;
5
- export declare const getDefaultCountryByCode: (phoneCountryCode: string | null) => import("..").CountryType | null;
6
- export declare const getDefaultCountryByLanguage: (language: string | null) => import("..").CountryType | null;
6
+ export declare const getDefaultCountryByCode: (phoneCountryCode: string | null) => import('..').CountryType | null;
7
+ export declare const getDefaultCountryByLanguage: (language: string | null) => import('..').CountryType | null;
7
8
  export declare const extractBrandingProperties: (branding: BrandingModel) => {
8
9
  brandingImage: string | null;
9
10
  brandingColors: BrandingColorsModel | null;
package/hooks/hooks.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { useImageUrl } from './useImageUrl';
2
2
  export { useThemeMode } from './useThemeMode';
3
3
  export { useConstantContext } from './useConstantContext';
4
+ export { useImageVariant } from './useImageVariant';
4
5
  //# sourceMappingURL=hooks.d.ts.map
@@ -1 +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"}
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;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ImagesModel } from 'fansunited-sdk-esm';
2
+ import { WidgetTemplate } from '../enums/enums';
3
+
4
+ type ImageEntity = {
5
+ images: ImagesModel | null;
6
+ imagePlaceholder: string;
7
+ };
8
+ export declare const useImageVariant: (entity: ImageEntity, variant: WidgetTemplate) => string;
9
+ export {};
10
+ //# sourceMappingURL=useImageVariant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useImageVariant.d.ts","sourceRoot":"","sources":["../../src/hooks/useImageVariant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,eAAe,WAClB,WAAW,WACV,cAAc,WAexB,CAAC"}