@commercetools-uikit/password-input 15.15.1 → 16.1.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.
|
@@ -33,7 +33,6 @@ var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceP
|
|
|
33
33
|
var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
|
|
34
34
|
|
|
35
35
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
36
|
-
|
|
37
36
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
38
37
|
const defaultProps = {
|
|
39
38
|
horizontalConstraint: 'scale',
|
|
@@ -41,12 +40,10 @@ const defaultProps = {
|
|
|
41
40
|
isReadOnly: false,
|
|
42
41
|
isPasswordVisible: false
|
|
43
42
|
};
|
|
44
|
-
|
|
45
43
|
const PasswordInput = props => {
|
|
46
44
|
if (!props.isReadOnly) {
|
|
47
45
|
process.env.NODE_ENV !== "production" ? utils.warning(Boolean(props.onChange), 'PasswordInput: `onChange` is required when is not read only.') : void 0;
|
|
48
46
|
}
|
|
49
|
-
|
|
50
47
|
return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
|
|
51
48
|
max: props.horizontalConstraint,
|
|
52
49
|
children: jsxRuntime.jsx("input", _objectSpread(_objectSpread({
|
|
@@ -72,7 +69,6 @@ const PasswordInput = props => {
|
|
|
72
69
|
}))
|
|
73
70
|
});
|
|
74
71
|
};
|
|
75
|
-
|
|
76
72
|
PasswordInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
77
73
|
id: _pt__default["default"].string,
|
|
78
74
|
name: _pt__default["default"].string,
|
|
@@ -94,13 +90,11 @@ PasswordInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
94
90
|
} : {};
|
|
95
91
|
PasswordInput.displayName = 'PasswordInput';
|
|
96
92
|
PasswordInput.defaultProps = defaultProps;
|
|
97
|
-
|
|
98
93
|
PasswordInput.isEmpty = value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
|
|
99
|
-
|
|
100
94
|
var PasswordInput$1 = PasswordInput;
|
|
101
95
|
|
|
102
96
|
// NOTE: This string will be replaced on build time with the package version.
|
|
103
|
-
var version = "
|
|
97
|
+
var version = "16.1.0";
|
|
104
98
|
|
|
105
99
|
exports["default"] = PasswordInput$1;
|
|
106
100
|
exports.version = version;
|
|
@@ -32,7 +32,6 @@ var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceP
|
|
|
32
32
|
var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
|
|
33
33
|
|
|
34
34
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
35
|
-
|
|
36
35
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
37
36
|
const defaultProps = {
|
|
38
37
|
horizontalConstraint: 'scale',
|
|
@@ -40,10 +39,8 @@ const defaultProps = {
|
|
|
40
39
|
isReadOnly: false,
|
|
41
40
|
isPasswordVisible: false
|
|
42
41
|
};
|
|
43
|
-
|
|
44
42
|
const PasswordInput = props => {
|
|
45
43
|
if (!props.isReadOnly) ;
|
|
46
|
-
|
|
47
44
|
return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
|
|
48
45
|
max: props.horizontalConstraint,
|
|
49
46
|
children: jsxRuntime.jsx("input", _objectSpread(_objectSpread({
|
|
@@ -69,17 +66,14 @@ const PasswordInput = props => {
|
|
|
69
66
|
}))
|
|
70
67
|
});
|
|
71
68
|
};
|
|
72
|
-
|
|
73
69
|
PasswordInput.propTypes = {};
|
|
74
70
|
PasswordInput.displayName = 'PasswordInput';
|
|
75
71
|
PasswordInput.defaultProps = defaultProps;
|
|
76
|
-
|
|
77
72
|
PasswordInput.isEmpty = value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
|
|
78
|
-
|
|
79
73
|
var PasswordInput$1 = PasswordInput;
|
|
80
74
|
|
|
81
75
|
// NOTE: This string will be replaced on build time with the package version.
|
|
82
|
-
var version = "
|
|
76
|
+
var version = "16.1.0";
|
|
83
77
|
|
|
84
78
|
exports["default"] = PasswordInput$1;
|
|
85
79
|
exports.version = version;
|
|
@@ -15,7 +15,6 @@ import { getInputStyles } from '@commercetools-uikit/input-utils';
|
|
|
15
15
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
18
|
-
|
|
19
18
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
20
19
|
const defaultProps = {
|
|
21
20
|
horizontalConstraint: 'scale',
|
|
@@ -23,12 +22,10 @@ const defaultProps = {
|
|
|
23
22
|
isReadOnly: false,
|
|
24
23
|
isPasswordVisible: false
|
|
25
24
|
};
|
|
26
|
-
|
|
27
25
|
const PasswordInput = props => {
|
|
28
26
|
if (!props.isReadOnly) {
|
|
29
27
|
process.env.NODE_ENV !== "production" ? warning(Boolean(props.onChange), 'PasswordInput: `onChange` is required when is not read only.') : void 0;
|
|
30
28
|
}
|
|
31
|
-
|
|
32
29
|
return jsx(Constraints.Horizontal, {
|
|
33
30
|
max: props.horizontalConstraint,
|
|
34
31
|
children: jsx("input", _objectSpread(_objectSpread({
|
|
@@ -54,7 +51,6 @@ const PasswordInput = props => {
|
|
|
54
51
|
}))
|
|
55
52
|
});
|
|
56
53
|
};
|
|
57
|
-
|
|
58
54
|
PasswordInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
59
55
|
id: _pt.string,
|
|
60
56
|
name: _pt.string,
|
|
@@ -76,12 +72,10 @@ PasswordInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
76
72
|
} : {};
|
|
77
73
|
PasswordInput.displayName = 'PasswordInput';
|
|
78
74
|
PasswordInput.defaultProps = defaultProps;
|
|
79
|
-
|
|
80
75
|
PasswordInput.isEmpty = value => !value || _trimInstanceProperty(value).call(value).length === 0;
|
|
81
|
-
|
|
82
76
|
var PasswordInput$1 = PasswordInput;
|
|
83
77
|
|
|
84
78
|
// NOTE: This string will be replaced on build time with the package version.
|
|
85
|
-
var version = "
|
|
79
|
+
var version = "16.1.0";
|
|
86
80
|
|
|
87
81
|
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": "
|
|
4
|
+
"version": "16.1.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "
|
|
25
|
-
"@commercetools-uikit/design-system": "
|
|
26
|
-
"@commercetools-uikit/input-utils": "
|
|
27
|
-
"@commercetools-uikit/utils": "
|
|
24
|
+
"@commercetools-uikit/constraints": "16.1.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "16.1.0",
|
|
26
|
+
"@commercetools-uikit/input-utils": "16.1.0",
|
|
27
|
+
"@commercetools-uikit/utils": "16.1.0",
|
|
28
28
|
"@emotion/react": "^11.10.5",
|
|
29
29
|
"@emotion/styled": "^11.10.5",
|
|
30
30
|
"prop-types": "15.8.1"
|