@edvisor/product-language 0.10.18 → 0.10.19
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/index.js +91 -64
- package/lib/components/flag/flag-size-flags.d.ts +11 -1
- package/lib/components/flag/flag.d.ts +1 -6
- package/lib/components/flag/helpers/flag-sprite-sheet.d.ts +5 -0
- package/lib/components/flag/helpers/index.d.ts +1 -0
- package/lib/components/flag/types.d.ts +5 -0
- package/package.json +1 -1
- package/lib/components/flag/flag.list.d.ts +0 -782
|
@@ -5,8 +5,18 @@ export declare const enum FlagSize {
|
|
|
5
5
|
large = 4
|
|
6
6
|
}
|
|
7
7
|
declare type FlagSizes<T> = MappedEnum<typeof FlagSize, T>;
|
|
8
|
+
export declare const FlagWidthValues: {
|
|
9
|
+
1: number;
|
|
10
|
+
2: number;
|
|
11
|
+
4: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const FlagHeightValues: {
|
|
14
|
+
1: number;
|
|
15
|
+
2: number;
|
|
16
|
+
4: number;
|
|
17
|
+
};
|
|
8
18
|
export declare type FlagProps = Partial<RequireOnlyOne<FlagSizes<boolean>>> & PropsWithChildren;
|
|
9
|
-
export declare function
|
|
19
|
+
export declare function getHeightBySize(props: FlagProps): string;
|
|
10
20
|
export declare function getWidthBySize(props: FlagProps): string;
|
|
11
21
|
export declare function getFlagSize(props: FlagProps): FlagSize;
|
|
12
22
|
export {};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { FC } from '@helpers';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
3
2
|
import { FlagProps } from './flag-size-flags';
|
|
4
|
-
import {
|
|
5
|
-
interface IFlagProperties extends HTMLAttributes<SVGElement> {
|
|
6
|
-
code: CountryCodes;
|
|
7
|
-
}
|
|
3
|
+
import { IFlagProperties } from './types';
|
|
8
4
|
export declare const Flag: FC<IFlagProperties & FlagProps>;
|
|
9
|
-
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FlagProps } from '../flag-size-flags';
|
|
2
|
+
import { IFlagProperties } from '../types';
|
|
3
|
+
export declare function getSheetDimensionByCode(props: IFlagProperties): "209px 545px" | "329px 649px";
|
|
4
|
+
export declare function getFlagAssetByCode(props: IFlagProperties): string;
|
|
5
|
+
export declare function getPositionByCode(props: IFlagProperties & FlagProps): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './flag-sprite-sheet';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare type CountryCodes = 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ-BO' | 'BQ-SA' | 'BQ-SE' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB-ENG' | 'GB-NIR' | 'GB-SCT' | 'GB' | 'GB-WLS' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GP-FR' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MQ-FR' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PM-FR' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'YE' | 'YT-UNF' | 'ZA' | 'ZM' | 'ZW';
|
|
3
|
+
export interface IFlagProperties extends HTMLAttributes<SVGElement> {
|
|
4
|
+
code: CountryCodes;
|
|
5
|
+
}
|