@commercetools-uikit/text-field 20.4.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
  # TextField
5
5
 
@@ -10,7 +10,7 @@ A controlled text input component for single-line strings with validation states
10
10
  ## Installation
11
11
 
12
12
  ```
13
- yarn add @commercetools-uikit/text-field
13
+ pnpm add @commercetools-uikit/text-field
14
14
  ```
15
15
 
16
16
  ```
@@ -20,7 +20,7 @@ npm --save install @commercetools-uikit/text-field
20
20
  Additionally install the peer dependencies (if not present)
21
21
 
22
22
  ```
23
- yarn add react
23
+ pnpm add react
24
24
  ```
25
25
 
26
26
  ```
@@ -92,8 +92,8 @@ let TextField = /*#__PURE__*/function (_Component) {
92
92
  }
93
93
  const hasError = this.props.touched && hasErrors(this.props.errors);
94
94
  const hasWarning = this.props.touched && hasWarnings(this.props.warnings);
95
- const errorsContainerId = "".concat(this.state.id, "-errors");
96
- const warningsContainerId = "".concat(this.state.id, "-warnings");
95
+ const errorsContainerId = `${this.state.id}-errors`;
96
+ const warningsContainerId = `${this.state.id}-warnings`;
97
97
  return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
98
98
  max: this.props.horizontalConstraint,
99
99
  children: jsxRuntime.jsxs(Stack__default["default"], {
@@ -167,7 +167,7 @@ TextField.getDerivedStateFromProps = (props, state) => ({
167
167
  var TextField$1 = TextField;
168
168
 
169
169
  // NOTE: This string will be replaced on build time with the package version.
170
- var version = "20.4.0";
170
+ var version = "20.6.0";
171
171
 
172
172
  exports["default"] = TextField$1;
173
173
  exports.version = version;
@@ -88,8 +88,8 @@ let TextField = /*#__PURE__*/function (_Component) {
88
88
  if (this.props.hintIcon) ;
89
89
  const hasError = this.props.touched && hasErrors(this.props.errors);
90
90
  const hasWarning = this.props.touched && hasWarnings(this.props.warnings);
91
- const errorsContainerId = "".concat(this.state.id, "-errors");
92
- const warningsContainerId = "".concat(this.state.id, "-warnings");
91
+ const errorsContainerId = `${this.state.id}-errors`;
92
+ const warningsContainerId = `${this.state.id}-warnings`;
93
93
  return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
94
94
  max: this.props.horizontalConstraint,
95
95
  children: jsxRuntime.jsxs(Stack__default["default"], {
@@ -163,7 +163,7 @@ TextField.getDerivedStateFromProps = (props, state) => ({
163
163
  var TextField$1 = TextField;
164
164
 
165
165
  // NOTE: This string will be replaced on build time with the package version.
166
- var version = "20.4.0";
166
+ var version = "20.6.0";
167
167
 
168
168
  exports["default"] = TextField$1;
169
169
  exports.version = version;
@@ -68,8 +68,8 @@ let TextField = /*#__PURE__*/function (_Component) {
68
68
  }
69
69
  const hasError = this.props.touched && hasErrors(this.props.errors);
70
70
  const hasWarning = this.props.touched && hasWarnings(this.props.warnings);
71
- const errorsContainerId = "".concat(this.state.id, "-errors");
72
- const warningsContainerId = "".concat(this.state.id, "-warnings");
71
+ const errorsContainerId = `${this.state.id}-errors`;
72
+ const warningsContainerId = `${this.state.id}-warnings`;
73
73
  return jsx(Constraints.Horizontal, {
74
74
  max: this.props.horizontalConstraint,
75
75
  children: jsxs(Stack, {
@@ -143,6 +143,6 @@ TextField.getDerivedStateFromProps = (props, state) => ({
143
143
  var TextField$1 = TextField;
144
144
 
145
145
  // NOTE: This string will be replaced on build time with the package version.
146
- var version = "20.4.0";
146
+ var version = "20.6.0";
147
147
 
148
148
  export { TextField$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/text-field",
3
3
  "description": "A controlled text input component for single-line strings with validation states.",
4
- "version": "20.4.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/text-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,30 @@
17
23
  "sideEffects": false,
18
24
  "main": "dist/commercetools-uikit-text-field.cjs.js",
19
25
  "module": "dist/commercetools-uikit-text-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.4.0",
25
- "@commercetools-uikit/design-system": "20.4.0",
26
- "@commercetools-uikit/field-errors": "20.4.0",
27
- "@commercetools-uikit/field-label": "20.4.0",
28
- "@commercetools-uikit/field-warnings": "20.4.0",
29
- "@commercetools-uikit/messages": "20.4.0",
30
- "@commercetools-uikit/spacings-stack": "20.4.0",
31
- "@commercetools-uikit/text-input": "20.4.0",
32
- "@commercetools-uikit/utils": "20.4.0",
33
32
  "@emotion/react": "^11.10.5",
34
33
  "@emotion/styled": "^11.10.5",
35
- "react-intl": "^7.1.4"
34
+ "react-intl": "^7.1.4",
35
+ "@commercetools-uikit/constraints": "^20.6.0",
36
+ "@commercetools-uikit/design-system": "^20.6.0",
37
+ "@commercetools-uikit/field-errors": "^20.6.0",
38
+ "@commercetools-uikit/field-label": "^20.6.0",
39
+ "@commercetools-uikit/field-warnings": "^20.6.0",
40
+ "@commercetools-uikit/messages": "^20.6.0",
41
+ "@commercetools-uikit/spacings-stack": "^20.6.0",
42
+ "@commercetools-uikit/text-input": "^20.6.0",
43
+ "@commercetools-uikit/utils": "^20.6.0"
36
44
  },
37
45
  "devDependencies": {
46
+ "prop-types": "^15.8.1",
38
47
  "react": "19.2.0"
39
48
  },
40
49
  "peerDependencies": {
41
50
  "react": "19.x"
42
51
  }
43
- }
52
+ }