@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 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
- delete countries.CA;
9378
- delete countries.US;
9379
- for (const abbr in countries) {
9380
- sortable.push([abbr, countries[abbr]]);
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", "United States"], ["CA", "Canada"]);
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
- delete countries.CA;
9348
- delete countries.US;
9349
- for (const abbr in countries) {
9350
- sortable.push([abbr, countries[abbr]]);
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", "United States"], ["CA", "Canada"]);
9359
+ sortable.unshift(["US", US], ["CA", CA]);
9357
9360
  return sortable;
9358
9361
  };
9359
9362
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "3.23.0-beta.10",
4
+ "version": "3.23.0-beta.11",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",