@tectra-ng/flags 0.2.2 → 0.2.4
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 +25 -0
- package/package.json +1 -1
- package/types/tectra-ng-flags.d.ts +0 -5
- package/types/tectra-ng-flags.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://tectra-ng.com">
|
|
3
|
+
<img src="https://tectra-ng.com/images/social-preview.png" alt="tectra — Angular UI component library" width="100%" />
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://www.npmjs.com/package/@tectra-ng/flags"><img src="https://img.shields.io/npm/v/%40tectra-ng%2Fflags?color=2560e4&label=npm" alt="npm version" /></a>
|
|
9
|
+
<a href="https://www.npmjs.com/package/@tectra-ng/flags"><img src="https://img.shields.io/npm/dm/%40tectra-ng%2Fflags?color=2560e4" alt="npm downloads" /></a>
|
|
10
|
+
<a href="https://github.com/kulakovskyi/tectra-ng/actions/workflows/ci.yml"><img src="https://github.com/kulakovskyi/tectra-ng/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
|
|
11
|
+
<a href="https://github.com/kulakovskyi/tectra-ng/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-2560e4" alt="MIT license" /></a>
|
|
12
|
+
<a href="https://angular.dev"><img src="https://img.shields.io/badge/Angular-22-dd0031?logo=angular&logoColor=white" alt="Angular 22" /></a>
|
|
13
|
+
<a href="https://www.bestpractices.dev/projects/16576"><img src="https://www.bestpractices.dev/projects/16576/badge" alt="OpenSSF Best Practices" /></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://tectra-ng.com"><b>Documentation</b></a>
|
|
18
|
+
·
|
|
19
|
+
<a href="https://tectra-ng.com/getting-started">Getting started</a>
|
|
20
|
+
·
|
|
21
|
+
<a href="https://www.npmjs.com/package/tectra-ng">The whole kit: tectra-ng</a>
|
|
22
|
+
·
|
|
23
|
+
<a href="https://github.com/kulakovskyi/tectra-ng">GitHub</a>
|
|
24
|
+
</p>
|
|
25
|
+
|
|
1
26
|
# @tectra-ng/flags
|
|
2
27
|
|
|
3
28
|
Country flags as SVG for `<tx-country>` and `<tx-country-select>`: every ISO 3166-1 country in two shapes — `rectangle` (4:3) and `circle` (1:1 artwork for round flags).
|
package/package.json
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
export declare const TX_FLAG_CODES: readonly ["ad", "ae", "af", "ag", "ai", "al", "am", "ao", "aq", "ar", "arab", "as", "asean", "at", "au", "aw", "ax", "az", "ba", "bb", "bd", "be", "bf", "bg", "bh", "bi", "bj", "bl", "bm", "bn", "bo", "bq", "br", "bs", "bt", "bv", "bw", "by", "bz", "ca", "cc", "cd", "cefta", "cf", "cg", "ch", "ci", "ck", "cl", "cm", "cn", "co", "cp", "cr", "cu", "cv", "cw", "cx", "cy", "cz", "de", "dg", "dj", "dk", "dm", "do", "dz", "eac", "ec", "ee", "eg", "eh", "er", "es", "es-ct", "es-ga", "es-pv", "et", "eu", "fi", "fj", "fk", "fm", "fo", "fr", "ga", "gb", "gb-eng", "gb-nir", "gb-sct", "gb-wls", "gd", "ge", "gf", "gg", "gh", "gi", "gl", "gm", "gn", "gp", "gq", "gr", "gs", "gt", "gu", "gw", "gy", "hk", "hm", "hn", "hr", "ht", "hu", "ic", "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", "mr", "ms", "mt", "mu", "mv", "mw", "mx", "my", "mz", "na", "nc", "ne", "nf", "ng", "ni", "nl", "no", "np", "nr", "nu", "nz", "om", "pa", "pc", "pe", "pf", "pg", "ph", "pk", "pl", "pm", "pn", "pr", "ps", "pt", "pw", "py", "qa", "re", "ro", "rs", "ru", "rw", "sa", "sb", "sc", "sd", "se", "sg", "sh", "sh-ac", "sh-hl", "sh-ta", "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", "un", "us", "uy", "uz", "va", "vc", "ve", "vg", "vi", "vn", "vu", "wf", "ws", "xk", "xx", "ye", "yt", "za", "zm", "zw"];
|
|
2
2
|
type TxFlagCode = (typeof TX_FLAG_CODES)[number];
|
|
3
|
-
type TxFlagModule = () => Promise<{
|
|
4
|
-
default: string;
|
|
5
|
-
}>;
|
|
6
|
-
declare const TX_FLAG_RECTANGLES: Record<TxFlagCode, TxFlagModule>;
|
|
7
|
-
declare const TX_FLAG_CIRCLES: Record<TxFlagCode, TxFlagModule>;
|
|
8
3
|
export type TxFlagSetShape = 'rectangle' | 'circle';
|
|
9
4
|
export declare function isTxFlagCode(code: string): code is TxFlagCode;
|
|
10
5
|
export declare function loadTxFlagSvg(code: string, shape?: TxFlagSetShape): Promise<string | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-flags.d.ts","names":[],"sources":["../../../../packages/flags/src/generated/flag-loaders.ts","../../../../packages/flags/src/load-flag.ts"],"mappings":"AAAA,qBAAa;KAkRD,qBAAqB;
|
|
1
|
+
{"version":3,"file":"tectra-ng-flags.d.ts","names":[],"sources":["../../../../packages/flags/src/generated/flag-loaders.ts","../../../../packages/flags/src/load-flag.ts"],"mappings":"AAAA,qBAAa;KAkRD,qBAAqB;YChRrB;wBAKI,aAAa,eAAe,QAAQ;wBAIpC,cAAc,cAAc,QAAO,iBAA+B;wBAQlE,WAAW,cAAc,QAAO,iBAA+B"}
|