@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.d.cts
CHANGED
|
@@ -102,13 +102,12 @@ declare const ZEST_FLAGS: ZestFlag[];
|
|
|
102
102
|
* chose plutôt qu'un trou.
|
|
103
103
|
*/
|
|
104
104
|
declare const FLAG_ALIAS: Record<string, string>;
|
|
105
|
-
/** Un drapeau par son code, insensible à la casse, alias compris. */
|
|
106
105
|
declare const findFlag: (code: string) => ZestFlag | undefined;
|
|
107
106
|
|
|
108
107
|
/**
|
|
109
108
|
* Les drapeaux, en composant.
|
|
110
109
|
*
|
|
111
|
-
* ⚠️ UN SEUL COMPOSANT, PAS 234. Les
|
|
110
|
+
* ⚠️ UN SEUL COMPOSANT, PAS 234. Les 135 icônes du design system ont chacune
|
|
112
111
|
* la leur parce qu'un écran les cite par leur nom, à l'écriture. Un drapeau se
|
|
113
112
|
* choisit À L'EXÉCUTION — depuis la langue du navigateur, le pays d'une
|
|
114
113
|
* adresse, une liste d'indicatifs téléphoniques. `<FlagIcon code={pays} />` le
|
package/dist/flags.d.ts
CHANGED
|
@@ -102,13 +102,12 @@ declare const ZEST_FLAGS: ZestFlag[];
|
|
|
102
102
|
* chose plutôt qu'un trou.
|
|
103
103
|
*/
|
|
104
104
|
declare const FLAG_ALIAS: Record<string, string>;
|
|
105
|
-
/** Un drapeau par son code, insensible à la casse, alias compris. */
|
|
106
105
|
declare const findFlag: (code: string) => ZestFlag | undefined;
|
|
107
106
|
|
|
108
107
|
/**
|
|
109
108
|
* Les drapeaux, en composant.
|
|
110
109
|
*
|
|
111
|
-
* ⚠️ UN SEUL COMPOSANT, PAS 234. Les
|
|
110
|
+
* ⚠️ UN SEUL COMPOSANT, PAS 234. Les 135 icônes du design system ont chacune
|
|
112
111
|
* la leur parce qu'un écran les cite par leur nom, à l'écriture. Un drapeau se
|
|
113
112
|
* choisit À L'EXÉCUTION — depuis la langue du navigateur, le pays d'une
|
|
114
113
|
* adresse, une liste d'indicatifs téléphoniques. `<FlagIcon code={pays} />` le
|
package/dist/flags.js
CHANGED
|
@@ -241,10 +241,11 @@ var FLAG_ALIAS = {
|
|
|
241
241
|
"GB-2": "GB-ENG",
|
|
242
242
|
"ENG": "GB-ENG"
|
|
243
243
|
};
|
|
244
|
+
var ZEST_FLAG_BY_CODE = new Map(ZEST_FLAGS.map((flag) => [flag.code.toUpperCase(), flag]));
|
|
244
245
|
var findFlag = (code) => {
|
|
245
246
|
const c = code.trim().toUpperCase();
|
|
246
247
|
const cible = FLAG_ALIAS[c] ?? c;
|
|
247
|
-
return
|
|
248
|
+
return ZEST_FLAG_BY_CODE.get(cible);
|
|
248
249
|
};
|
|
249
250
|
|
|
250
251
|
// src/components/foundations/flag-icons/index.tsx
|