@designcrowd/fe-shared-lib 1.2.25-MP-4369.0 → 1.2.25-gt-8827

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.
@@ -0,0 +1,10 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npm config:*)",
5
+ "Bash(ls:*)",
6
+ "Bash(npm run build:*)"
7
+ ],
8
+ "deny": []
9
+ }
10
+ }
@@ -717,6 +717,9 @@ video {
717
717
  .tw-ml-4 {
718
718
  margin-left: 1rem;
719
719
  }
720
+ .tw-ml-6 {
721
+ margin-left: 1.5rem;
722
+ }
720
723
  .tw-ml-auto {
721
724
  margin-left: auto;
722
725
  }
@@ -717,6 +717,9 @@ video {
717
717
  .tw-ml-4 {
718
718
  margin-left: 1rem;
719
719
  }
720
+ .tw-ml-6 {
721
+ margin-left: 1.5rem;
722
+ }
720
723
  .tw-ml-auto {
721
724
  margin-left: auto;
722
725
  }
@@ -717,6 +717,9 @@ video {
717
717
  .tw-ml-4 {
718
718
  margin-left: 1rem;
719
719
  }
720
+ .tw-ml-6 {
721
+ margin-left: 1.5rem;
722
+ }
720
723
  .tw-ml-auto {
721
724
  margin-left: auto;
722
725
  }
@@ -717,6 +717,9 @@ video {
717
717
  .tw-ml-4 {
718
718
  margin-left: 1rem;
719
719
  }
720
+ .tw-ml-6 {
721
+ margin-left: 1.5rem;
722
+ }
720
723
  .tw-ml-auto {
721
724
  margin-left: auto;
722
725
  }
@@ -717,6 +717,9 @@ video {
717
717
  .tw-ml-4 {
718
718
  margin-left: 1rem;
719
719
  }
720
+ .tw-ml-6 {
721
+ margin-left: 1.5rem;
722
+ }
720
723
  .tw-ml-auto {
721
724
  margin-left: auto;
722
725
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.25-MP-4369.0",
3
+ "version": "1.2.25-gt-8827",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -3,6 +3,8 @@ const fs = require('fs');
3
3
 
4
4
  const localeSuffixes = ['.de-DE', '.fr-FR', '.fr-CA', '.es-ES', '.pt-PT', '.pt-BR', ''];
5
5
 
6
+ const suffixRe = /\.[a-z]{2}-[a-z]{2}\.json$/i;
7
+
6
8
  const findTranslationFiles = (dir, localeString) => {
7
9
  const files = [];
8
10
  const entries = fs.readdirSync(dir);
@@ -17,14 +19,7 @@ const findTranslationFiles = (dir, localeString) => {
17
19
  .readdirSync(fullPath)
18
20
  .filter((file) => {
19
21
  if (localeString === '') {
20
- return (
21
- !file.includes('.de-DE') &&
22
- !file.includes('.fr-FR') &&
23
- !file.includes('.fr-CA') &&
24
- !file.includes('.es-ES') &&
25
- !file.includes('.pt-PT') &&
26
- !file.includes('.pt-BR')
27
- );
22
+ return !suffixRe.test(file);
28
23
  }
29
24
  return file.endsWith(`${localeString}.json`);
30
25
  })
@@ -101,6 +101,7 @@ import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
101
101
  const ACCEPTED_MIME_TYPES = ['image/jpeg', 'image/png', 'image/svg+xml', 'application/postscript'];
102
102
 
103
103
  const ACCEPTED_FILE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'svg', 'eps'];
104
+
104
105
  const UNSUPPORTED_FILE_ERROR_MSG = () => uploadYourLogoTr(`wrongUploadType`);
105
106
 
106
107
  export default {
@@ -89,6 +89,11 @@ const formatCurrency = (amount, locale, currency, fraction = 0, showAbbreviation
89
89
  if (localeAmount.includes(currency.iso4127Code)) {
90
90
  localeAmount = localeAmount.replace(currency.iso4127Code, symbolTrimmed);
91
91
  }
92
+
93
+ // For EUR currency, always use comma as decimal separator regardless of locale
94
+ if (currency.iso4127Code === 'EUR') {
95
+ localeAmount = localeAmount.replace('.', ',');
96
+ }
92
97
 
93
98
  // show abbreviation locale logic
94
99
  // note: showAbbreviation is only passed as true for symbol = "$"