@commercetools-uikit/money-field 20.5.0 → 20.6.0

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
  # MoneyField
5
5
 
@@ -22,7 +22,7 @@ The amount can have an arbitrary precision. When the precision of the amount exc
22
22
  ## Installation
23
23
 
24
24
  ```
25
- yarn add @commercetools-uikit/money-field
25
+ pnpm add @commercetools-uikit/money-field
26
26
  ```
27
27
 
28
28
  ```
@@ -32,7 +32,7 @@ npm --save install @commercetools-uikit/money-field
32
32
  Additionally install the peer dependencies (if not present)
33
33
 
34
34
  ```
35
- yarn add react
35
+ pnpm add react
36
36
  ```
37
37
 
38
38
  ```
@@ -95,8 +95,8 @@ let MoneyField = /*#__PURE__*/function (_Component) {
95
95
  if (this.props.hintIcon) {
96
96
  process.env.NODE_ENV !== "production" ? utils.warning(typeof this.props.hint === 'string' || /*#__PURE__*/react.isValidElement(this.props.hint), 'MoneyField: `hint` is required to be string or ReactNode if hintIcon is present') : void 0;
97
97
  }
98
- const errorsContainerId = "".concat(this.state.id, "-errors");
99
- const warningsContainerId = "".concat(this.state.id, "-warnings");
98
+ const errorsContainerId = `${this.state.id}-errors`;
99
+ const warningsContainerId = `${this.state.id}-warnings`;
100
100
  return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
101
101
  max: this.props.horizontalConstraint,
102
102
  children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
@@ -169,7 +169,7 @@ MoneyField.getDerivedStateFromProps = (props, state) => ({
169
169
  var MoneyField$1 = MoneyField;
170
170
 
171
171
  // NOTE: This string will be replaced on build time with the package version.
172
- var version = "20.5.0";
172
+ var version = "20.6.0";
173
173
 
174
174
  exports["default"] = MoneyField$1;
175
175
  exports.version = version;
@@ -89,8 +89,8 @@ let MoneyField = /*#__PURE__*/function (_Component) {
89
89
  const hasWarning = MoneyInput__default["default"].isTouched(this.props.touched) && hasWarnings(this.props.warnings);
90
90
  if (!this.props.isReadOnly) ;
91
91
  if (this.props.hintIcon) ;
92
- const errorsContainerId = "".concat(this.state.id, "-errors");
93
- const warningsContainerId = "".concat(this.state.id, "-warnings");
92
+ const errorsContainerId = `${this.state.id}-errors`;
93
+ const warningsContainerId = `${this.state.id}-warnings`;
94
94
  return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
95
95
  max: this.props.horizontalConstraint,
96
96
  children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
@@ -163,7 +163,7 @@ MoneyField.getDerivedStateFromProps = (props, state) => ({
163
163
  var MoneyField$1 = MoneyField;
164
164
 
165
165
  // NOTE: This string will be replaced on build time with the package version.
166
- var version = "20.5.0";
166
+ var version = "20.6.0";
167
167
 
168
168
  exports["default"] = MoneyField$1;
169
169
  exports.version = version;
@@ -70,8 +70,8 @@ let MoneyField = /*#__PURE__*/function (_Component) {
70
70
  if (this.props.hintIcon) {
71
71
  process.env.NODE_ENV !== "production" ? warning(typeof this.props.hint === 'string' || /*#__PURE__*/isValidElement(this.props.hint), 'MoneyField: `hint` is required to be string or ReactNode if hintIcon is present') : void 0;
72
72
  }
73
- const errorsContainerId = "".concat(this.state.id, "-errors");
74
- const warningsContainerId = "".concat(this.state.id, "-warnings");
73
+ const errorsContainerId = `${this.state.id}-errors`;
74
+ const warningsContainerId = `${this.state.id}-warnings`;
75
75
  return jsx(Constraints.Horizontal, {
76
76
  max: this.props.horizontalConstraint,
77
77
  children: jsxs(Spacings.Stack, {
@@ -144,6 +144,6 @@ MoneyField.getDerivedStateFromProps = (props, state) => ({
144
144
  var MoneyField$1 = MoneyField;
145
145
 
146
146
  // NOTE: This string will be replaced on build time with the package version.
147
- var version = "20.5.0";
147
+ var version = "20.6.0";
148
148
 
149
149
  export { MoneyField$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/money-field",
3
3
  "description": "A controlled input component for money values with validation states and a label.",
4
- "version": "20.5.0",
4
+ "version": "20.6.0",
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/fields/money-field"
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,27 +23,31 @@
17
23
  "sideEffects": false,
18
24
  "main": "dist/commercetools-uikit-money-field.cjs.js",
19
25
  "module": "dist/commercetools-uikit-money-field.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/field-errors": "20.5.0",
27
- "@commercetools-uikit/field-label": "20.5.0",
28
- "@commercetools-uikit/field-warnings": "20.5.0",
29
- "@commercetools-uikit/money-input": "20.5.0",
30
- "@commercetools-uikit/spacings": "20.5.0",
31
- "@commercetools-uikit/utils": "20.5.0",
32
32
  "@emotion/react": "^11.10.5",
33
33
  "@emotion/styled": "^11.10.5",
34
- "lodash": "4.17.23",
35
- "react-intl": "^7.1.4"
34
+ "lodash": "4.18.1",
35
+ "react-intl": "^7.1.4",
36
+ "react-select": "5.10.2",
37
+ "@commercetools-uikit/constraints": "^20.6.0",
38
+ "@commercetools-uikit/design-system": "^20.6.0",
39
+ "@commercetools-uikit/field-errors": "^20.6.0",
40
+ "@commercetools-uikit/field-label": "^20.6.0",
41
+ "@commercetools-uikit/field-warnings": "^20.6.0",
42
+ "@commercetools-uikit/money-input": "^20.6.0",
43
+ "@commercetools-uikit/spacings": "^20.6.0",
44
+ "@commercetools-uikit/utils": "^20.6.0"
36
45
  },
37
46
  "devDependencies": {
47
+ "prop-types": "^15.8.1",
38
48
  "react": "19.2.0"
39
49
  },
40
50
  "peerDependencies": {
41
51
  "react": "19.x"
42
52
  }
43
- }
53
+ }