@arkyn/templates 3.0.1-beta.20 → 3.0.1-beta.201
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/LICENSE.txt +24 -0
- package/README.md +153 -0
- package/dist/countries.d.ts +9 -1710
- package/dist/countries.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1911 -4
- package/dist/modules/brazilianStates.js +113 -0
- package/dist/modules/countries.js +1713 -0
- package/dist/modules/countryCurrencies.js +93 -0
- package/dist/modules/index.js +5 -0
- package/dist/modules/maximumFractionDigits.js +4 -0
- package/package.json +74 -8
- package/dist/brazilianStates.js +0 -30
- package/dist/countries.js +0 -1955
- package/dist/countryCurrencies.js +0 -25
- package/dist/maximumFractionDigits.js +0 -2
- package/src/brazilianStates.ts +0 -31
- package/src/countries.ts +0 -1956
- package/src/countryCurrencies.ts +0 -26
- package/src/index.ts +0 -4
- package/src/maximumFractionDigits.ts +0 -3
- package/tsconfig.json +0 -20
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
//#region src/countryCurrencies.ts
|
|
2
|
+
var e = {
|
|
3
|
+
USD: {
|
|
4
|
+
countryLanguage: "en-US",
|
|
5
|
+
countryCurrency: "USD"
|
|
6
|
+
},
|
|
7
|
+
EUR: {
|
|
8
|
+
countryLanguage: "de-DE",
|
|
9
|
+
countryCurrency: "EUR"
|
|
10
|
+
},
|
|
11
|
+
JPY: {
|
|
12
|
+
countryLanguage: "ja-JP",
|
|
13
|
+
countryCurrency: "JPY"
|
|
14
|
+
},
|
|
15
|
+
GBP: {
|
|
16
|
+
countryLanguage: "en-GB",
|
|
17
|
+
countryCurrency: "GBP"
|
|
18
|
+
},
|
|
19
|
+
AUD: {
|
|
20
|
+
countryLanguage: "en-AU",
|
|
21
|
+
countryCurrency: "AUD"
|
|
22
|
+
},
|
|
23
|
+
CAD: {
|
|
24
|
+
countryLanguage: "en-CA",
|
|
25
|
+
countryCurrency: "CAD"
|
|
26
|
+
},
|
|
27
|
+
CHF: {
|
|
28
|
+
countryLanguage: "de-CH",
|
|
29
|
+
countryCurrency: "CHF"
|
|
30
|
+
},
|
|
31
|
+
CNY: {
|
|
32
|
+
countryLanguage: "zh-CN",
|
|
33
|
+
countryCurrency: "CNY"
|
|
34
|
+
},
|
|
35
|
+
SEK: {
|
|
36
|
+
countryLanguage: "sv-SE",
|
|
37
|
+
countryCurrency: "SEK"
|
|
38
|
+
},
|
|
39
|
+
NZD: {
|
|
40
|
+
countryLanguage: "en-NZ",
|
|
41
|
+
countryCurrency: "NZD"
|
|
42
|
+
},
|
|
43
|
+
BRL: {
|
|
44
|
+
countryLanguage: "pt-BR",
|
|
45
|
+
countryCurrency: "BRL"
|
|
46
|
+
},
|
|
47
|
+
INR: {
|
|
48
|
+
countryLanguage: "en-IN",
|
|
49
|
+
countryCurrency: "INR"
|
|
50
|
+
},
|
|
51
|
+
RUB: {
|
|
52
|
+
countryLanguage: "ru-RU",
|
|
53
|
+
countryCurrency: "RUB"
|
|
54
|
+
},
|
|
55
|
+
ZAR: {
|
|
56
|
+
countryLanguage: "en-ZA",
|
|
57
|
+
countryCurrency: "ZAR"
|
|
58
|
+
},
|
|
59
|
+
MXN: {
|
|
60
|
+
countryLanguage: "es-MX",
|
|
61
|
+
countryCurrency: "MXN"
|
|
62
|
+
},
|
|
63
|
+
SGD: {
|
|
64
|
+
countryLanguage: "en-SG",
|
|
65
|
+
countryCurrency: "SGD"
|
|
66
|
+
},
|
|
67
|
+
HKD: {
|
|
68
|
+
countryLanguage: "zh-HK",
|
|
69
|
+
countryCurrency: "HKD"
|
|
70
|
+
},
|
|
71
|
+
NOK: {
|
|
72
|
+
countryLanguage: "nb-NO",
|
|
73
|
+
countryCurrency: "NOK"
|
|
74
|
+
},
|
|
75
|
+
KRW: {
|
|
76
|
+
countryLanguage: "ko-KR",
|
|
77
|
+
countryCurrency: "KRW"
|
|
78
|
+
},
|
|
79
|
+
TRY: {
|
|
80
|
+
countryLanguage: "tr-TR",
|
|
81
|
+
countryCurrency: "TRY"
|
|
82
|
+
},
|
|
83
|
+
IDR: {
|
|
84
|
+
countryLanguage: "id-ID",
|
|
85
|
+
countryCurrency: "IDR"
|
|
86
|
+
},
|
|
87
|
+
THB: {
|
|
88
|
+
countryLanguage: "th-TH",
|
|
89
|
+
countryCurrency: "THB"
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
export { e as countryCurrencies };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { brazilianStates as e } from "./brazilianStates.js";
|
|
2
|
+
import { countries as t } from "./countries.js";
|
|
3
|
+
import { countryCurrencies as n } from "./countryCurrencies.js";
|
|
4
|
+
import { maximumFractionDigits as r } from "./maximumFractionDigits.js";
|
|
5
|
+
export { e as brazilianStates, t as countries, n as countryCurrencies, r as maximumFractionDigits };
|
package/package.json
CHANGED
|
@@ -1,19 +1,85 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkyn/templates",
|
|
3
|
-
"version": "3.0.1-beta.
|
|
4
|
-
"main": "./dist/
|
|
5
|
-
"module": "./
|
|
3
|
+
"version": "3.0.1-beta.201",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"author": "Arkyn | Lucas Gonçalves",
|
|
10
|
+
"description": "Ready-to-use data templates including countries, Brazilian states, currencies, and locale information.",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"templates",
|
|
13
|
+
"data",
|
|
14
|
+
"countries",
|
|
15
|
+
"brazilian-states",
|
|
16
|
+
"currencies",
|
|
17
|
+
"locale",
|
|
18
|
+
"internationalization",
|
|
19
|
+
"typescript"
|
|
20
|
+
],
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=24.16.0",
|
|
23
|
+
"bun": ">=1.3.14"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://docs.arkyn.dev/docs/templates/introduction",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/Lucas-Eduardo-Goncalves/arkyn-library.git",
|
|
29
|
+
"directory": "packages/templates"
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"files": [
|
|
33
|
+
"dist",
|
|
34
|
+
"README.md",
|
|
35
|
+
"LICENSE.txt"
|
|
36
|
+
],
|
|
8
37
|
"scripts": {
|
|
9
|
-
"
|
|
10
|
-
"build": "
|
|
38
|
+
"audit": "bun audit --workspace packages/templates",
|
|
39
|
+
"build": "bunx vite build && bunx tsc --project tsconfig.json --emitDeclarationOnly && bun ./generate-exports.ts",
|
|
40
|
+
"prebuild": "rm -rf dist",
|
|
41
|
+
"publish:beta": "npm publish --tag beta",
|
|
42
|
+
"publish:latest": "npm publish --tag latest",
|
|
43
|
+
"release:beta": "bun ./generate-version.ts beta",
|
|
44
|
+
"release:patch": "bun ./generate-version.ts patch",
|
|
45
|
+
"release:minor": "bun ./generate-version.ts minor",
|
|
46
|
+
"release:major": "bun ./generate-version.ts major",
|
|
47
|
+
"test": "bunx vitest --config vitest.config.ts --run",
|
|
48
|
+
"test:watch": "bunx vitest --config vitest.config.ts --watch",
|
|
11
49
|
"typecheck": "bunx tsc --project tsconfig.json --noEmit"
|
|
12
50
|
},
|
|
13
51
|
"dependencies": {},
|
|
14
52
|
"devDependencies": {
|
|
15
|
-
"@types/
|
|
16
|
-
"
|
|
17
|
-
"
|
|
53
|
+
"@types/bun": "catalog:",
|
|
54
|
+
"@types/node": "catalog:",
|
|
55
|
+
"vite": "catalog:",
|
|
56
|
+
"vitest": "catalog:"
|
|
57
|
+
},
|
|
58
|
+
"exports": {
|
|
59
|
+
".": {
|
|
60
|
+
"import": "./dist/index.js",
|
|
61
|
+
"types": "./dist/index.d.ts",
|
|
62
|
+
"default": "./dist/index.js"
|
|
63
|
+
},
|
|
64
|
+
"./brazilianStates": {
|
|
65
|
+
"import": "./dist/modules/brazilianStates.js",
|
|
66
|
+
"types": "./dist/brazilianStates.d.ts",
|
|
67
|
+
"default": "./dist/modules/brazilianStates.js"
|
|
68
|
+
},
|
|
69
|
+
"./countries": {
|
|
70
|
+
"import": "./dist/modules/countries.js",
|
|
71
|
+
"types": "./dist/countries.d.ts",
|
|
72
|
+
"default": "./dist/modules/countries.js"
|
|
73
|
+
},
|
|
74
|
+
"./countryCurrencies": {
|
|
75
|
+
"import": "./dist/modules/countryCurrencies.js",
|
|
76
|
+
"types": "./dist/countryCurrencies.d.ts",
|
|
77
|
+
"default": "./dist/modules/countryCurrencies.js"
|
|
78
|
+
},
|
|
79
|
+
"./maximumFractionDigits": {
|
|
80
|
+
"import": "./dist/modules/maximumFractionDigits.js",
|
|
81
|
+
"types": "./dist/maximumFractionDigits.d.ts",
|
|
82
|
+
"default": "./dist/modules/maximumFractionDigits.js"
|
|
83
|
+
}
|
|
18
84
|
}
|
|
19
85
|
}
|
package/dist/brazilianStates.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const brazilianStates = [
|
|
2
|
-
{ label: "Acre", value: "AC" },
|
|
3
|
-
{ label: "Alagoas", value: "AL" },
|
|
4
|
-
{ label: "Amapá", value: "AP" },
|
|
5
|
-
{ label: "Amazonas", value: "AM" },
|
|
6
|
-
{ label: "Bahia", value: "BA" },
|
|
7
|
-
{ label: "Ceará", value: "CE" },
|
|
8
|
-
{ label: "Distrito Federal", value: "DF" },
|
|
9
|
-
{ label: "Espírito Santo", value: "ES" },
|
|
10
|
-
{ label: "Goiás", value: "GO" },
|
|
11
|
-
{ label: "Maranhão", value: "MA" },
|
|
12
|
-
{ label: "Mato Grosso", value: "MT" },
|
|
13
|
-
{ label: "Mato Grosso do Sul", value: "MS" },
|
|
14
|
-
{ label: "Minas Gerais", value: "MG" },
|
|
15
|
-
{ label: "Pará", value: "PA" },
|
|
16
|
-
{ label: "Paraíba", value: "PB" },
|
|
17
|
-
{ label: "Paraná", value: "PR" },
|
|
18
|
-
{ label: "Pernambuco", value: "PE" },
|
|
19
|
-
{ label: "Piauí", value: "PI" },
|
|
20
|
-
{ label: "Rio de Janeiro", value: "RJ" },
|
|
21
|
-
{ label: "Rio Grande do Norte", value: "RN" },
|
|
22
|
-
{ label: "Rio Grande do Sul", value: "RS" },
|
|
23
|
-
{ label: "Rondônia", value: "RO" },
|
|
24
|
-
{ label: "Roraima", value: "RR" },
|
|
25
|
-
{ label: "Santa Catarina", value: "SC" },
|
|
26
|
-
{ label: "São Paulo", value: "SP" },
|
|
27
|
-
{ label: "Sergipe", value: "SE" },
|
|
28
|
-
{ label: "Tocantins", value: "TO" },
|
|
29
|
-
];
|
|
30
|
-
export { brazilianStates };
|