@commercetools-uikit/date-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
  # DateField
5
5
 
@@ -10,7 +10,7 @@ A controlled date input component for single date, with validation states and a
10
10
  ## Installation
11
11
 
12
12
  ```
13
- yarn add @commercetools-uikit/date-field
13
+ pnpm add @commercetools-uikit/date-field
14
14
  ```
15
15
 
16
16
  ```
@@ -20,7 +20,7 @@ npm --save install @commercetools-uikit/date-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 DateField = /*#__PURE__*/function (_Component) {
92
92
  if (this.props.hintIcon) {
93
93
  process.env.NODE_ENV !== "production" ? utils.warning(typeof this.props.hint === 'string' || /*#__PURE__*/react.isValidElement(this.props.hint), 'DateField: `hint` is required to be string or ReactNode if hintIcon is present') : void 0;
94
94
  }
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(Spacings__default["default"].Stack, {
@@ -164,7 +164,7 @@ DateField.getDerivedStateFromProps = (props, state) => ({
164
164
  var DateField$1 = DateField;
165
165
 
166
166
  // NOTE: This string will be replaced on build time with the package version.
167
- var version = "20.5.0";
167
+ var version = "20.6.0";
168
168
 
169
169
  exports["default"] = DateField$1;
170
170
  exports.version = version;
@@ -88,8 +88,8 @@ let DateField = /*#__PURE__*/function (_Component) {
88
88
  const hasWarning = this.props.touched && hasWarnings(this.props.warnings);
89
89
  if (!this.props.isReadOnly) ;
90
90
  if (this.props.hintIcon) ;
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(Spacings__default["default"].Stack, {
@@ -160,7 +160,7 @@ DateField.getDerivedStateFromProps = (props, state) => ({
160
160
  var DateField$1 = DateField;
161
161
 
162
162
  // NOTE: This string will be replaced on build time with the package version.
163
- var version = "20.5.0";
163
+ var version = "20.6.0";
164
164
 
165
165
  exports["default"] = DateField$1;
166
166
  exports.version = version;
@@ -68,8 +68,8 @@ let DateField = /*#__PURE__*/function (_Component) {
68
68
  if (this.props.hintIcon) {
69
69
  process.env.NODE_ENV !== "production" ? warning(typeof this.props.hint === 'string' || /*#__PURE__*/isValidElement(this.props.hint), 'DateField: `hint` is required to be string or ReactNode if hintIcon is present') : void 0;
70
70
  }
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(Spacings.Stack, {
@@ -140,6 +140,6 @@ DateField.getDerivedStateFromProps = (props, state) => ({
140
140
  var DateField$1 = DateField;
141
141
 
142
142
  // NOTE: This string will be replaced on build time with the package version.
143
- var version = "20.5.0";
143
+ var version = "20.6.0";
144
144
 
145
145
  export { DateField$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/date-field",
3
3
  "description": "A controlled date input component for single date, 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/date-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,26 +23,30 @@
17
23
  "sideEffects": false,
18
24
  "main": "dist/commercetools-uikit-date-field.cjs.js",
19
25
  "module": "dist/commercetools-uikit-date-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/date-input": "20.5.0",
26
- "@commercetools-uikit/design-system": "20.5.0",
27
- "@commercetools-uikit/field-errors": "20.5.0",
28
- "@commercetools-uikit/field-label": "20.5.0",
29
- "@commercetools-uikit/field-warnings": "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
- "react-intl": "^7.1.4"
34
+ "react-intl": "^7.1.4",
35
+ "@commercetools-uikit/constraints": "^20.6.0",
36
+ "@commercetools-uikit/date-input": "^20.6.0",
37
+ "@commercetools-uikit/design-system": "^20.6.0",
38
+ "@commercetools-uikit/field-errors": "^20.6.0",
39
+ "@commercetools-uikit/field-label": "^20.6.0",
40
+ "@commercetools-uikit/field-warnings": "^20.6.0",
41
+ "@commercetools-uikit/spacings": "^20.6.0",
42
+ "@commercetools-uikit/utils": "^20.6.0"
35
43
  },
36
44
  "devDependencies": {
37
- "react": "19.2.0"
45
+ "prop-types": "^15.8.1",
46
+ "react": "19.2.0",
47
+ "@commercetools-uikit/calendar-utils": "^20.6.0"
38
48
  },
39
49
  "peerDependencies": {
40
50
  "react": "19.x"
41
51
  }
42
- }
52
+ }