@opfr/utils-type 0.0.0
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/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +17 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.js +1 -0
- package/dist/ranks/constants.d.ts +4 -0
- package/dist/ranks/constants.d.ts.map +1 -0
- package/dist/ranks/constants.js +15 -0
- package/dist/ranks/constants.js.map +1 -0
- package/dist/ranks/index.d.ts +3 -0
- package/dist/ranks/index.d.ts.map +1 -0
- package/dist/ranks/index.js +2 -0
- package/dist/ranks/index.js.map +1 -0
- package/dist/ranks/types.d.ts +8 -0
- package/dist/ranks/types.d.ts.map +1 -0
- package/dist/ranks/types.js +2 -0
- package/dist/ranks/types.js.map +1 -0
- package/package.json +33 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const o = [
|
|
2
|
+
"Bronze",
|
|
3
|
+
"Silver",
|
|
4
|
+
"Gold",
|
|
5
|
+
"Platinum",
|
|
6
|
+
"Diamond"
|
|
7
|
+
], r = {
|
|
8
|
+
Bronze: { color: "#813D31", strength: 1, id: "Bronze" },
|
|
9
|
+
Silver: { color: "#5B6870", strength: 2, id: "Silver" },
|
|
10
|
+
Gold: { color: "#C46619", strength: 3, id: "Gold" },
|
|
11
|
+
Platinum: { color: "#88A3CB", strength: 4, id: "Platinum" },
|
|
12
|
+
Diamond: { color: "#F6bF62", strength: 5, id: "Diamond" }
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
r as RANKS,
|
|
16
|
+
o as RANK_IDS
|
|
17
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(e=typeof globalThis<"u"?globalThis:e||self,o(e.utils={}))})(this,function(e){"use strict";const o=["Bronze","Silver","Gold","Platinum","Diamond"],n={Bronze:{color:"#813D31",strength:1,id:"Bronze"},Silver:{color:"#5B6870",strength:2,id:"Silver"},Gold:{color:"#C46619",strength:3,id:"Gold"},Platinum:{color:"#88A3CB",strength:4,id:"Platinum"},Diamond:{color:"#F6bF62",strength:5,id:"Diamond"}};e.RANKS=n,e.RANK_IDS=o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/ranks/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,QAAQ,8DAMX,CAAC;AAEX,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAM7B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const RANK_IDS = [
|
|
2
|
+
'Bronze',
|
|
3
|
+
'Silver',
|
|
4
|
+
'Gold',
|
|
5
|
+
'Platinum',
|
|
6
|
+
'Diamond',
|
|
7
|
+
];
|
|
8
|
+
export const RANKS = {
|
|
9
|
+
Bronze: { color: '#813D31', strength: 1, id: 'Bronze' },
|
|
10
|
+
Silver: { color: '#5B6870', strength: 2, id: 'Silver' },
|
|
11
|
+
Gold: { color: '#C46619', strength: 3, id: 'Gold' },
|
|
12
|
+
Platinum: { color: '#88A3CB', strength: 4, id: 'Platinum' },
|
|
13
|
+
Diamond: { color: '#F6bF62', strength: 5, id: 'Diamond' },
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/ranks/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,UAAU;IACV,SAAS;CACD,CAAC;AAEX,MAAM,CAAC,MAAM,KAAK,GAAyB;IACzC,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE;IACvD,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE;IACvD,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE;IACnD,QAAQ,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE;IAC3D,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE;CACjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ranks/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ranks/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ranks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/C,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/ranks/types.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@opfr/utils-type",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "OPFR utils-type",
|
|
6
|
+
"author": "Matthieu VEIGA",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"prepublish": "npm run build",
|
|
9
|
+
"build": " vite build && tsc",
|
|
10
|
+
"test": "vitest",
|
|
11
|
+
"test:ci": "vitest run"
|
|
12
|
+
},
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"react": "17.x || 18.x",
|
|
15
|
+
"react-dom": "17.x || 18.x"
|
|
16
|
+
},
|
|
17
|
+
"main": "dist/index.umd.js",
|
|
18
|
+
"module": "dist/index.es.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"import": "./dist/index.es.js",
|
|
23
|
+
"require": "./dist/index.umd.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"eslintIgnore": [
|
|
30
|
+
"node_modules",
|
|
31
|
+
"dist"
|
|
32
|
+
]
|
|
33
|
+
}
|