@commercetools-uikit/localized-money-input 20.5.0 → 20.6.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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <!-- THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -->
2
- <!-- This file is created by the `yarn generate-readme` script. -->
2
+ <!-- This file is created by the `pnpm generate-readme` script. -->
3
3
 
4
4
  # LocalizedMoneyInput
5
5
 
@@ -10,7 +10,7 @@ A controlled input component for localized money values with validation states.
10
10
  ## Installation
11
11
 
12
12
  ```
13
- yarn add @commercetools-uikit/localized-money-input
13
+ pnpm add @commercetools-uikit/localized-money-input
14
14
  ```
15
15
 
16
16
  ```
@@ -20,7 +20,7 @@ npm --save install @commercetools-uikit/localized-money-input
20
20
  Additionally install the peer dependencies (if not present)
21
21
 
22
22
  ```
23
- yarn add react react-dom react-intl
23
+ pnpm add react react-dom react-intl
24
24
  ```
25
25
 
26
26
  ```
@@ -121,7 +121,7 @@ const LocalizedInput = props => {
121
121
  // the input name anymore.
122
122
  //
123
123
  event.target.currency = props.currency;
124
- onChange === null || onChange === void 0 || onChange(event);
124
+ onChange?.(event);
125
125
  }, [props.currency, onChange]);
126
126
  return jsxRuntime.jsxs(Stack__default["default"], {
127
127
  scale: "xs",
@@ -252,7 +252,7 @@ LocalizedMoneyInput.getEmptyCurrencies = values => {
252
252
  var LocalizedMoneyInput$1 = LocalizedMoneyInput;
253
253
 
254
254
  // NOTE: This string will be replaced on build time with the package version.
255
- var version = "20.5.0";
255
+ var version = "20.6.1";
256
256
 
257
257
  exports["default"] = LocalizedMoneyInput$1;
258
258
  exports.version = version;
@@ -116,7 +116,7 @@ const LocalizedInput = props => {
116
116
  // the input name anymore.
117
117
  //
118
118
  event.target.currency = props.currency;
119
- onChange === null || onChange === void 0 || onChange(event);
119
+ onChange?.(event);
120
120
  }, [props.currency, onChange]);
121
121
  return jsxRuntime.jsxs(Stack__default["default"], {
122
122
  scale: "xs",
@@ -245,7 +245,7 @@ LocalizedMoneyInput.getEmptyCurrencies = values => {
245
245
  var LocalizedMoneyInput$1 = LocalizedMoneyInput;
246
246
 
247
247
  // NOTE: This string will be replaced on build time with the package version.
248
- var version = "20.5.0";
248
+ var version = "20.6.1";
249
249
 
250
250
  exports["default"] = LocalizedMoneyInput$1;
251
251
  exports.version = version;
@@ -99,7 +99,7 @@ const LocalizedInput = props => {
99
99
  // the input name anymore.
100
100
  //
101
101
  event.target.currency = props.currency;
102
- onChange === null || onChange === void 0 || onChange(event);
102
+ onChange?.(event);
103
103
  }, [props.currency, onChange]);
104
104
  return jsxs(Stack, {
105
105
  scale: "xs",
@@ -230,6 +230,6 @@ LocalizedMoneyInput.getEmptyCurrencies = values => {
230
230
  var LocalizedMoneyInput$1 = LocalizedMoneyInput;
231
231
 
232
232
  // NOTE: This string will be replaced on build time with the package version.
233
- var version = "20.5.0";
233
+ var version = "20.6.1";
234
234
 
235
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.5.0",
4
+ "version": "20.6.1",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -9,7 +9,13 @@
9
9
  "directory": "packages/components/inputs/localized-money-input"
10
10
  },
11
11
  "homepage": "https://uikit.commercetools.com",
12
- "keywords": ["javascript", "typescript", "design-system", "react", "uikit"],
12
+ "keywords": [
13
+ "javascript",
14
+ "typescript",
15
+ "design-system",
16
+ "react",
17
+ "uikit"
18
+ ],
13
19
  "license": "MIT",
14
20
  "publishConfig": {
15
21
  "access": "public"
@@ -17,30 +23,33 @@
17
23
  "sideEffects": false,
18
24
  "main": "dist/commercetools-uikit-localized-money-input.cjs.js",
19
25
  "module": "dist/commercetools-uikit-localized-money-input.esm.js",
20
- "files": ["dist"],
26
+ "files": [
27
+ "dist"
28
+ ],
21
29
  "dependencies": {
22
30
  "@babel/runtime": "^7.20.13",
23
31
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/constraints": "20.5.0",
25
- "@commercetools-uikit/design-system": "20.5.0",
26
- "@commercetools-uikit/flat-button": "20.5.0",
27
- "@commercetools-uikit/hooks": "20.5.0",
28
- "@commercetools-uikit/icons": "20.5.0",
29
- "@commercetools-uikit/input-utils": "20.5.0",
30
- "@commercetools-uikit/localized-utils": "20.5.0",
31
- "@commercetools-uikit/messages": "20.5.0",
32
- "@commercetools-uikit/money-input": "20.5.0",
33
- "@commercetools-uikit/select-utils": "20.5.0",
34
- "@commercetools-uikit/spacings-stack": "20.5.0",
35
- "@commercetools-uikit/tooltip": "20.5.0",
36
- "@commercetools-uikit/utils": "20.5.0",
37
32
  "@emotion/react": "^11.10.5",
38
33
  "@emotion/styled": "^11.10.5",
39
- "react-select": "5.10.2"
34
+ "react-select": "5.10.2",
35
+ "@commercetools-uikit/constraints": "^20.6.1",
36
+ "@commercetools-uikit/design-system": "^20.6.1",
37
+ "@commercetools-uikit/hooks": "^20.6.1",
38
+ "@commercetools-uikit/icons": "^20.6.1",
39
+ "@commercetools-uikit/input-utils": "^20.6.1",
40
+ "@commercetools-uikit/localized-utils": "^20.6.1",
41
+ "@commercetools-uikit/money-input": "^20.6.1",
42
+ "@commercetools-uikit/flat-button": "^20.6.1",
43
+ "@commercetools-uikit/messages": "^20.6.1",
44
+ "@commercetools-uikit/select-utils": "^20.6.1",
45
+ "@commercetools-uikit/spacings-stack": "^20.6.1",
46
+ "@commercetools-uikit/utils": "^20.6.1",
47
+ "@commercetools-uikit/tooltip": "^20.6.1"
40
48
  },
41
49
  "devDependencies": {
42
- "react": "19.2.0",
43
- "react-dom": "19.2.0",
50
+ "prop-types": "^15.8.1",
51
+ "react": "19.2.6",
52
+ "react-dom": "19.2.6",
44
53
  "react-intl": "^7.1.4"
45
54
  },
46
55
  "peerDependencies": {
@@ -48,4 +57,4 @@
48
57
  "react-dom": "19.x",
49
58
  "react-intl": "7.x"
50
59
  }
51
- }
60
+ }