@commercetools-uikit/localized-money-input 20.2.3 → 20.3.1

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.
@@ -51,19 +51,37 @@ var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
51
51
 
52
52
  var messages = reactIntl.defineMessages({
53
53
  missingRequiredField: {
54
- id: 'UIKit.LocalizedMoneyInput.missingRequiredField',
55
- description: 'Error message for missing required value',
56
- defaultMessage: 'This field is required. Provide at least one value.'
54
+ id: "UIKit.LocalizedMoneyInput.missingRequiredField",
55
+ defaultMessage: [{
56
+ "type": 0,
57
+ "value": "This field is required. Provide at least one value."
58
+ }]
57
59
  },
58
60
  show: {
59
- id: 'UIKit.LocalizedMoneyInput.show',
60
- description: 'Show all currencies button',
61
- defaultMessage: 'Show all currencies ({remainingCurrencies})'
61
+ id: "UIKit.LocalizedMoneyInput.show",
62
+ defaultMessage: [{
63
+ "type": 0,
64
+ "value": "Show all currencies ("
65
+ }, {
66
+ "type": 1,
67
+ "value": "remainingCurrencies"
68
+ }, {
69
+ "type": 0,
70
+ "value": ")"
71
+ }]
62
72
  },
63
73
  hide: {
64
- id: 'UIKit.LocalizedMoneyInput.hide',
65
- description: 'Hide currencies button',
66
- defaultMessage: 'Hide currencies ({remainingCurrencies})'
74
+ id: "UIKit.LocalizedMoneyInput.hide",
75
+ defaultMessage: [{
76
+ "type": 0,
77
+ "value": "Hide currencies ("
78
+ }, {
79
+ "type": 1,
80
+ "value": "remainingCurrencies"
81
+ }, {
82
+ "type": 0,
83
+ "value": ")"
84
+ }]
67
85
  }
68
86
  });
69
87
 
@@ -103,7 +121,7 @@ const LocalizedInput = props => {
103
121
  // the input name anymore.
104
122
  //
105
123
  event.target.currency = props.currency;
106
- onChange?.(event);
124
+ onChange === null || onChange === void 0 || onChange(event);
107
125
  }, [props.currency, onChange]);
108
126
  return jsxRuntime.jsxs(Stack__default["default"], {
109
127
  scale: "xs",
@@ -234,7 +252,7 @@ LocalizedMoneyInput.getEmptyCurrencies = values => {
234
252
  var LocalizedMoneyInput$1 = LocalizedMoneyInput;
235
253
 
236
254
  // NOTE: This string will be replaced on build time with the package version.
237
- var version = "20.2.3";
255
+ var version = "20.3.1";
238
256
 
239
257
  exports["default"] = LocalizedMoneyInput$1;
240
258
  exports.version = version;
@@ -51,19 +51,37 @@ var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
51
51
 
52
52
  var messages = reactIntl.defineMessages({
53
53
  missingRequiredField: {
54
- id: 'UIKit.LocalizedMoneyInput.missingRequiredField',
55
- description: 'Error message for missing required value',
56
- defaultMessage: 'This field is required. Provide at least one value.'
54
+ id: "UIKit.LocalizedMoneyInput.missingRequiredField",
55
+ defaultMessage: [{
56
+ "type": 0,
57
+ "value": "This field is required. Provide at least one value."
58
+ }]
57
59
  },
58
60
  show: {
59
- id: 'UIKit.LocalizedMoneyInput.show',
60
- description: 'Show all currencies button',
61
- defaultMessage: 'Show all currencies ({remainingCurrencies})'
61
+ id: "UIKit.LocalizedMoneyInput.show",
62
+ defaultMessage: [{
63
+ "type": 0,
64
+ "value": "Show all currencies ("
65
+ }, {
66
+ "type": 1,
67
+ "value": "remainingCurrencies"
68
+ }, {
69
+ "type": 0,
70
+ "value": ")"
71
+ }]
62
72
  },
63
73
  hide: {
64
- id: 'UIKit.LocalizedMoneyInput.hide',
65
- description: 'Hide currencies button',
66
- defaultMessage: 'Hide currencies ({remainingCurrencies})'
74
+ id: "UIKit.LocalizedMoneyInput.hide",
75
+ defaultMessage: [{
76
+ "type": 0,
77
+ "value": "Hide currencies ("
78
+ }, {
79
+ "type": 1,
80
+ "value": "remainingCurrencies"
81
+ }, {
82
+ "type": 0,
83
+ "value": ")"
84
+ }]
67
85
  }
68
86
  });
69
87
 
@@ -98,7 +116,7 @@ const LocalizedInput = props => {
98
116
  // the input name anymore.
99
117
  //
100
118
  event.target.currency = props.currency;
101
- onChange?.(event);
119
+ onChange === null || onChange === void 0 || onChange(event);
102
120
  }, [props.currency, onChange]);
103
121
  return jsxRuntime.jsxs(Stack__default["default"], {
104
122
  scale: "xs",
@@ -227,7 +245,7 @@ LocalizedMoneyInput.getEmptyCurrencies = values => {
227
245
  var LocalizedMoneyInput$1 = LocalizedMoneyInput;
228
246
 
229
247
  // NOTE: This string will be replaced on build time with the package version.
230
- var version = "20.2.3";
248
+ var version = "20.3.1";
231
249
 
232
250
  exports["default"] = LocalizedMoneyInput$1;
233
251
  exports.version = version;
@@ -29,19 +29,37 @@ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
29
29
 
30
30
  var messages = defineMessages({
31
31
  missingRequiredField: {
32
- id: 'UIKit.LocalizedMoneyInput.missingRequiredField',
33
- description: 'Error message for missing required value',
34
- defaultMessage: 'This field is required. Provide at least one value.'
32
+ id: "UIKit.LocalizedMoneyInput.missingRequiredField",
33
+ defaultMessage: [{
34
+ "type": 0,
35
+ "value": "This field is required. Provide at least one value."
36
+ }]
35
37
  },
36
38
  show: {
37
- id: 'UIKit.LocalizedMoneyInput.show',
38
- description: 'Show all currencies button',
39
- defaultMessage: 'Show all currencies ({remainingCurrencies})'
39
+ id: "UIKit.LocalizedMoneyInput.show",
40
+ defaultMessage: [{
41
+ "type": 0,
42
+ "value": "Show all currencies ("
43
+ }, {
44
+ "type": 1,
45
+ "value": "remainingCurrencies"
46
+ }, {
47
+ "type": 0,
48
+ "value": ")"
49
+ }]
40
50
  },
41
51
  hide: {
42
- id: 'UIKit.LocalizedMoneyInput.hide',
43
- description: 'Hide currencies button',
44
- defaultMessage: 'Hide currencies ({remainingCurrencies})'
52
+ id: "UIKit.LocalizedMoneyInput.hide",
53
+ defaultMessage: [{
54
+ "type": 0,
55
+ "value": "Hide currencies ("
56
+ }, {
57
+ "type": 1,
58
+ "value": "remainingCurrencies"
59
+ }, {
60
+ "type": 0,
61
+ "value": ")"
62
+ }]
45
63
  }
46
64
  });
47
65
 
@@ -81,7 +99,7 @@ const LocalizedInput = props => {
81
99
  // the input name anymore.
82
100
  //
83
101
  event.target.currency = props.currency;
84
- onChange?.(event);
102
+ onChange === null || onChange === void 0 || onChange(event);
85
103
  }, [props.currency, onChange]);
86
104
  return jsxs(Stack, {
87
105
  scale: "xs",
@@ -212,6 +230,6 @@ LocalizedMoneyInput.getEmptyCurrencies = values => {
212
230
  var LocalizedMoneyInput$1 = LocalizedMoneyInput;
213
231
 
214
232
  // NOTE: This string will be replaced on build time with the package version.
215
- var version = "20.2.3";
233
+ var version = "20.3.1";
216
234
 
217
235
  export { LocalizedMoneyInput$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/localized-money-input",
3
3
  "description": "A controlled input component for localized money values with validation states.",
4
- "version": "20.2.3",
4
+ "version": "20.3.1",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,26 +21,26 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/constraints": "20.2.3",
25
- "@commercetools-uikit/design-system": "20.2.3",
26
- "@commercetools-uikit/flat-button": "20.2.3",
27
- "@commercetools-uikit/hooks": "20.2.3",
28
- "@commercetools-uikit/icons": "20.2.3",
29
- "@commercetools-uikit/input-utils": "20.2.3",
30
- "@commercetools-uikit/localized-utils": "20.2.3",
31
- "@commercetools-uikit/messages": "20.2.3",
32
- "@commercetools-uikit/money-input": "20.2.3",
33
- "@commercetools-uikit/select-utils": "20.2.3",
34
- "@commercetools-uikit/spacings-stack": "20.2.3",
35
- "@commercetools-uikit/tooltip": "20.2.3",
36
- "@commercetools-uikit/utils": "20.2.3",
24
+ "@commercetools-uikit/constraints": "20.3.1",
25
+ "@commercetools-uikit/design-system": "20.3.1",
26
+ "@commercetools-uikit/flat-button": "20.3.1",
27
+ "@commercetools-uikit/hooks": "20.3.1",
28
+ "@commercetools-uikit/icons": "20.3.1",
29
+ "@commercetools-uikit/input-utils": "20.3.1",
30
+ "@commercetools-uikit/localized-utils": "20.3.1",
31
+ "@commercetools-uikit/messages": "20.3.1",
32
+ "@commercetools-uikit/money-input": "20.3.1",
33
+ "@commercetools-uikit/select-utils": "20.3.1",
34
+ "@commercetools-uikit/spacings-stack": "20.3.1",
35
+ "@commercetools-uikit/tooltip": "20.3.1",
36
+ "@commercetools-uikit/utils": "20.3.1",
37
37
  "@emotion/react": "^11.10.5",
38
38
  "@emotion/styled": "^11.10.5",
39
39
  "react-select": "5.10.2"
40
40
  },
41
41
  "devDependencies": {
42
- "react": "19.1.0",
43
- "react-dom": "19.1.0",
42
+ "react": "19.2.0",
43
+ "react-dom": "19.2.0",
44
44
  "react-intl": "^7.1.4"
45
45
  },
46
46
  "peerDependencies": {