@synerise/ds-format-picker 0.3.26 → 0.3.30

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/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.3.30](https://github.com/Synerise/synerise-design/compare/@synerise/ds-format-picker@0.3.29...@synerise/ds-format-picker@0.3.30) (2022-09-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **core:** register pt locale, currency formatting ([2b3d1d5](https://github.com/Synerise/synerise-design/commit/2b3d1d5e8d22b4158138a2a196c2d828e85594ce))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.3.29](https://github.com/Synerise/synerise-design/compare/@synerise/ds-format-picker@0.3.27...@synerise/ds-format-picker@0.3.29) (2022-09-07)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-format-picker
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.3.28](https://github.com/Synerise/synerise-design/compare/@synerise/ds-format-picker@0.3.27...@synerise/ds-format-picker@0.3.28) (2022-09-07)
26
+
27
+ **Note:** Version bump only for package @synerise/ds-format-picker
28
+
29
+
30
+
31
+
32
+
33
+ ## [0.3.27](https://github.com/Synerise/synerise-design/compare/@synerise/ds-format-picker@0.3.26...@synerise/ds-format-picker@0.3.27) (2022-09-06)
34
+
35
+ **Note:** Version bump only for package @synerise/ds-format-picker
36
+
37
+
38
+
39
+
40
+
6
41
  ## [0.3.26](https://github.com/Synerise/synerise-design/compare/@synerise/ds-format-picker@0.3.25...@synerise/ds-format-picker@0.3.26) (2022-09-05)
7
42
 
8
43
  **Note:** Version bump only for package @synerise/ds-format-picker
@@ -4,6 +4,24 @@ import numeral from 'numeral';
4
4
  import { range } from 'lodash';
5
5
  var CONTAINS_LETTERS = /[^0-9,.]/;
6
6
  var DIGITS = /[0-9,.]+/;
7
+ var ptConfig = {
8
+ delimiters: {
9
+ thousands: ' ',
10
+ decimal: ','
11
+ },
12
+ abbreviations: {
13
+ thousand: 'k',
14
+ million: 'm',
15
+ billion: 'b',
16
+ trillion: 't'
17
+ },
18
+ ordinal: function ordinal() {
19
+ return 'º';
20
+ },
21
+ currency: {
22
+ symbol: '€'
23
+ }
24
+ };
7
25
 
8
26
  if (numeral.locales.pl === undefined) {
9
27
  numeral.register('locale', 'pl', {
@@ -49,6 +67,35 @@ if (numeral.locales.es === undefined) {
49
67
  });
50
68
  }
51
69
 
70
+ if (numeral.locales.fr === undefined) {
71
+ numeral.register('locale', 'fr', {
72
+ delimiters: {
73
+ thousands: '.',
74
+ decimal: ','
75
+ },
76
+ abbreviations: {
77
+ thousand: 'k',
78
+ million: 'mm',
79
+ billion: 'b',
80
+ trillion: 't'
81
+ },
82
+ ordinal: function ordinal(number) {
83
+ return number === 1 ? 'er' : 'e';
84
+ },
85
+ currency: {
86
+ symbol: '$'
87
+ }
88
+ });
89
+ }
90
+
91
+ if (numeral.locales.pt === undefined) {
92
+ numeral.register('locale', 'pt', ptConfig);
93
+ }
94
+
95
+ if (numeral.locales['pt-pt'] === undefined) {
96
+ numeral.register('locale', 'pt-pt', ptConfig);
97
+ }
98
+
52
99
  if (numeral.locales['en-gb'] === undefined) {
53
100
  numeral.register('locale', 'en-gb', {
54
101
  delimiters: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-format-picker",
3
- "version": "0.3.26",
3
+ "version": "0.3.30",
4
4
  "description": "FormatPicker UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,11 +34,11 @@
34
34
  "dependencies": {
35
35
  "@synerise/ds-button": "^0.17.9",
36
36
  "@synerise/ds-button-group": "^0.6.16",
37
- "@synerise/ds-checkbox": "^0.11.20",
38
- "@synerise/ds-dropdown": "^0.17.31",
37
+ "@synerise/ds-checkbox": "^0.11.22",
38
+ "@synerise/ds-dropdown": "^0.17.35",
39
39
  "@synerise/ds-icon": "^0.51.0",
40
40
  "@synerise/ds-menu": "^0.15.8",
41
- "@synerise/ds-radio": "^0.11.20",
41
+ "@synerise/ds-radio": "^0.11.22",
42
42
  "@types/numeral": "^0.0.28",
43
43
  "numeral": "^2.0.6"
44
44
  },
@@ -46,5 +46,5 @@
46
46
  "@synerise/ds-core": "*",
47
47
  "react": ">=16.9.0 < 17.0.0"
48
48
  },
49
- "gitHead": "428157b5217485a8d335e54a54e95bec93a768a7"
49
+ "gitHead": "cbc61dede053605eb72b68b13a2e215eff859cef"
50
50
  }