@pelcro/react-pelcro-js 3.23.0-beta.10 → 3.23.0-beta.11
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.cjs.js +8 -5
- package/dist/index.esm.js +8 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -9374,16 +9374,19 @@ const ZERO_DECIMAL_CURRENCIES = ["BIF", "CLP", "DJF", "GNF", "JPY", "KMF", "KRW"
|
|
|
9374
9374
|
const isCurrencyZeroDecimal = currency => ZERO_DECIMAL_CURRENCIES.includes(currency.toUpperCase());
|
|
9375
9375
|
const sortCountries = countries => {
|
|
9376
9376
|
const sortable = [];
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9377
|
+
const {
|
|
9378
|
+
CA,
|
|
9379
|
+
US,
|
|
9380
|
+
...rest
|
|
9381
|
+
} = countries;
|
|
9382
|
+
for (const abbr in rest) {
|
|
9383
|
+
sortable.push([abbr, rest[abbr]]);
|
|
9381
9384
|
}
|
|
9382
9385
|
sortable.sort((a, b) => {
|
|
9383
9386
|
if (a[1] > b[1]) return 1;
|
|
9384
9387
|
return -1;
|
|
9385
9388
|
});
|
|
9386
|
-
sortable.unshift(["US",
|
|
9389
|
+
sortable.unshift(["US", US], ["CA", CA]);
|
|
9387
9390
|
return sortable;
|
|
9388
9391
|
};
|
|
9389
9392
|
|
package/dist/index.esm.js
CHANGED
|
@@ -9344,16 +9344,19 @@ const ZERO_DECIMAL_CURRENCIES = ["BIF", "CLP", "DJF", "GNF", "JPY", "KMF", "KRW"
|
|
|
9344
9344
|
const isCurrencyZeroDecimal = currency => ZERO_DECIMAL_CURRENCIES.includes(currency.toUpperCase());
|
|
9345
9345
|
const sortCountries = countries => {
|
|
9346
9346
|
const sortable = [];
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9347
|
+
const {
|
|
9348
|
+
CA,
|
|
9349
|
+
US,
|
|
9350
|
+
...rest
|
|
9351
|
+
} = countries;
|
|
9352
|
+
for (const abbr in rest) {
|
|
9353
|
+
sortable.push([abbr, rest[abbr]]);
|
|
9351
9354
|
}
|
|
9352
9355
|
sortable.sort((a, b) => {
|
|
9353
9356
|
if (a[1] > b[1]) return 1;
|
|
9354
9357
|
return -1;
|
|
9355
9358
|
});
|
|
9356
|
-
sortable.unshift(["US",
|
|
9359
|
+
sortable.unshift(["US", US], ["CA", CA]);
|
|
9357
9360
|
return sortable;
|
|
9358
9361
|
};
|
|
9359
9362
|
|