@commercetools-uikit/password-input 19.25.1 → 20.0.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.
@@ -12,7 +12,6 @@ var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/ob
12
12
  var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
13
13
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
15
- var _pt = require('prop-types');
16
15
  var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
17
16
  var utils = require('@commercetools-uikit/utils');
18
17
  var Constraints = require('@commercetools-uikit/constraints');
@@ -29,7 +28,6 @@ var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachIns
29
28
  var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
30
29
  var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
31
30
  var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
32
- var _pt__default = /*#__PURE__*/_interopDefault(_pt);
33
31
  var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceProperty);
34
32
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
35
33
 
@@ -77,31 +75,12 @@ const PasswordInput = _ref => {
77
75
  }))
78
76
  });
79
77
  };
80
- PasswordInput.propTypes = process.env.NODE_ENV !== "production" ? {
81
- id: _pt__default["default"].string,
82
- name: _pt__default["default"].string,
83
- 'aria-invalid': _pt__default["default"].bool,
84
- 'aria-errormessage': _pt__default["default"].string,
85
- value: _pt__default["default"].string.isRequired,
86
- placeholder: _pt__default["default"].string,
87
- onChange: _pt__default["default"].func,
88
- onBlur: _pt__default["default"].func,
89
- onFocus: _pt__default["default"].func,
90
- isAutofocussed: _pt__default["default"].bool,
91
- isDisabled: _pt__default["default"].bool,
92
- isReadOnly: _pt__default["default"].bool,
93
- hasError: _pt__default["default"].bool,
94
- hasWarning: _pt__default["default"].bool,
95
- isPasswordVisible: _pt__default["default"].bool,
96
- horizontalConstraint: _pt__default["default"].oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
97
- autoComplete: _pt__default["default"].oneOf(['on', 'off', 'current-password', 'new-password'])
98
- } : {};
99
78
  PasswordInput.displayName = 'PasswordInput';
100
79
  PasswordInput.isEmpty = value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
101
80
  var PasswordInput$1 = PasswordInput;
102
81
 
103
82
  // NOTE: This string will be replaced on build time with the package version.
104
- var version = "19.25.1";
83
+ var version = "20.0.0";
105
84
 
106
85
  exports["default"] = PasswordInput$1;
107
86
  exports.version = version;
@@ -12,7 +12,6 @@ var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/ob
12
12
  var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
13
13
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
15
- require('prop-types');
16
15
  var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
17
16
  var utils = require('@commercetools-uikit/utils');
18
17
  var Constraints = require('@commercetools-uikit/constraints');
@@ -73,13 +72,12 @@ const PasswordInput = _ref => {
73
72
  }))
74
73
  });
75
74
  };
76
- PasswordInput.propTypes = {};
77
75
  PasswordInput.displayName = 'PasswordInput';
78
76
  PasswordInput.isEmpty = value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
79
77
  var PasswordInput$1 = PasswordInput;
80
78
 
81
79
  // NOTE: This string will be replaced on build time with the package version.
82
- var version = "19.25.1";
80
+ var version = "20.0.0";
83
81
 
84
82
  exports["default"] = PasswordInput$1;
85
83
  exports.version = version;
@@ -8,7 +8,6 @@ import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/obje
8
8
  import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
9
9
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
10
10
  import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
11
- import _pt from 'prop-types';
12
11
  import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
13
12
  import { warning, filterDataAttributes } from '@commercetools-uikit/utils';
14
13
  import Constraints from '@commercetools-uikit/constraints';
@@ -59,30 +58,11 @@ const PasswordInput = _ref => {
59
58
  }))
60
59
  });
61
60
  };
62
- PasswordInput.propTypes = process.env.NODE_ENV !== "production" ? {
63
- id: _pt.string,
64
- name: _pt.string,
65
- 'aria-invalid': _pt.bool,
66
- 'aria-errormessage': _pt.string,
67
- value: _pt.string.isRequired,
68
- placeholder: _pt.string,
69
- onChange: _pt.func,
70
- onBlur: _pt.func,
71
- onFocus: _pt.func,
72
- isAutofocussed: _pt.bool,
73
- isDisabled: _pt.bool,
74
- isReadOnly: _pt.bool,
75
- hasError: _pt.bool,
76
- hasWarning: _pt.bool,
77
- isPasswordVisible: _pt.bool,
78
- horizontalConstraint: _pt.oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
79
- autoComplete: _pt.oneOf(['on', 'off', 'current-password', 'new-password'])
80
- } : {};
81
61
  PasswordInput.displayName = 'PasswordInput';
82
62
  PasswordInput.isEmpty = value => !value || _trimInstanceProperty(value).call(value).length === 0;
83
63
  var PasswordInput$1 = PasswordInput;
84
64
 
85
65
  // NOTE: This string will be replaced on build time with the package version.
86
- var version = "19.25.1";
66
+ var version = "20.0.0";
87
67
 
88
68
  export { PasswordInput$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/password-input",
3
3
  "description": "A controlled password input component.",
4
- "version": "19.25.1",
4
+ "version": "20.0.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,18 +21,17 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/constraints": "19.25.1",
25
- "@commercetools-uikit/design-system": "19.25.1",
26
- "@commercetools-uikit/input-utils": "19.25.1",
27
- "@commercetools-uikit/utils": "19.25.1",
24
+ "@commercetools-uikit/constraints": "20.0.0",
25
+ "@commercetools-uikit/design-system": "20.0.0",
26
+ "@commercetools-uikit/input-utils": "20.0.0",
27
+ "@commercetools-uikit/utils": "20.0.0",
28
28
  "@emotion/react": "^11.10.5",
29
- "@emotion/styled": "^11.10.5",
30
- "prop-types": "15.8.1"
29
+ "@emotion/styled": "^11.10.5"
31
30
  },
32
31
  "devDependencies": {
33
- "react": "17.0.2"
32
+ "react": "19.0.0"
34
33
  },
35
34
  "peerDependencies": {
36
- "react": "17.x"
35
+ "react": "19.x"
37
36
  }
38
37
  }