@cyrilld/zestds 0.1.0 → 1.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/README.md +1156 -48
- package/dist/cursors.cjs +2 -1
- package/dist/cursors.cjs.map +1 -1
- package/dist/cursors.d.cts +0 -1
- package/dist/cursors.d.ts +0 -1
- package/dist/cursors.js +2 -1
- package/dist/cursors.js.map +1 -1
- package/dist/flags.cjs +2 -1
- package/dist/flags.cjs.map +1 -1
- package/dist/flags.d.cts +1 -2
- package/dist/flags.d.ts +1 -2
- package/dist/flags.js +2 -1
- package/dist/flags.js.map +1 -1
- package/dist/index.cjs +704 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1498 -5
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +665 -6
- package/dist/index.d.ts +665 -6
- package/dist/index.js +684 -7
- package/dist/index.js.map +1 -1
- package/package.json +12 -4
package/dist/flags.cjs
CHANGED
|
@@ -270,10 +270,11 @@ var FLAG_ALIAS = {
|
|
|
270
270
|
"GB-2": "GB-ENG",
|
|
271
271
|
"ENG": "GB-ENG"
|
|
272
272
|
};
|
|
273
|
+
var ZEST_FLAG_BY_CODE = new Map(ZEST_FLAGS.map((flag) => [flag.code.toUpperCase(), flag]));
|
|
273
274
|
var findFlag = (code) => {
|
|
274
275
|
const c = code.trim().toUpperCase();
|
|
275
276
|
const cible = FLAG_ALIAS[c] ?? c;
|
|
276
|
-
return
|
|
277
|
+
return ZEST_FLAG_BY_CODE.get(cible);
|
|
277
278
|
};
|
|
278
279
|
|
|
279
280
|
// src/components/foundations/flag-icons/index.tsx
|