@commercetools-uikit/password-input 15.14.3 → 15.15.1
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/dist/commercetools-uikit-password-input.cjs.d.ts +1 -0
- package/dist/commercetools-uikit-password-input.cjs.d.ts.map +1 -0
- package/dist/commercetools-uikit-password-input.cjs.dev.js +4 -6
- package/dist/commercetools-uikit-password-input.cjs.prod.js +4 -6
- package/dist/commercetools-uikit-password-input.esm.js +4 -6
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commercetools-uikit-password-input.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|
|
@@ -35,14 +35,14 @@ var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
|
|
|
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
36
|
|
|
37
37
|
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
|
-
|
|
38
|
+
const defaultProps = {
|
|
39
39
|
horizontalConstraint: 'scale',
|
|
40
40
|
isDisabled: false,
|
|
41
41
|
isReadOnly: false,
|
|
42
42
|
isPasswordVisible: false
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
const PasswordInput = props => {
|
|
46
46
|
if (!props.isReadOnly) {
|
|
47
47
|
process.env.NODE_ENV !== "production" ? utils.warning(Boolean(props.onChange), 'PasswordInput: `onChange` is required when is not read only.') : void 0;
|
|
48
48
|
}
|
|
@@ -95,14 +95,12 @@ PasswordInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
95
95
|
PasswordInput.displayName = 'PasswordInput';
|
|
96
96
|
PasswordInput.defaultProps = defaultProps;
|
|
97
97
|
|
|
98
|
-
PasswordInput.isEmpty =
|
|
99
|
-
return !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
|
|
100
|
-
};
|
|
98
|
+
PasswordInput.isEmpty = value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
|
|
101
99
|
|
|
102
100
|
var PasswordInput$1 = PasswordInput;
|
|
103
101
|
|
|
104
102
|
// NOTE: This string will be replaced on build time with the package version.
|
|
105
|
-
var version = "15.
|
|
103
|
+
var version = "15.15.1";
|
|
106
104
|
|
|
107
105
|
exports["default"] = PasswordInput$1;
|
|
108
106
|
exports.version = version;
|
|
@@ -34,14 +34,14 @@ var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
|
|
|
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
35
|
|
|
36
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; }
|
|
37
|
-
|
|
37
|
+
const defaultProps = {
|
|
38
38
|
horizontalConstraint: 'scale',
|
|
39
39
|
isDisabled: false,
|
|
40
40
|
isReadOnly: false,
|
|
41
41
|
isPasswordVisible: false
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
const PasswordInput = props => {
|
|
45
45
|
if (!props.isReadOnly) ;
|
|
46
46
|
|
|
47
47
|
return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
|
|
@@ -74,14 +74,12 @@ PasswordInput.propTypes = {};
|
|
|
74
74
|
PasswordInput.displayName = 'PasswordInput';
|
|
75
75
|
PasswordInput.defaultProps = defaultProps;
|
|
76
76
|
|
|
77
|
-
PasswordInput.isEmpty =
|
|
78
|
-
return !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
|
|
79
|
-
};
|
|
77
|
+
PasswordInput.isEmpty = value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
|
|
80
78
|
|
|
81
79
|
var PasswordInput$1 = PasswordInput;
|
|
82
80
|
|
|
83
81
|
// NOTE: This string will be replaced on build time with the package version.
|
|
84
|
-
var version = "15.
|
|
82
|
+
var version = "15.15.1";
|
|
85
83
|
|
|
86
84
|
exports["default"] = PasswordInput$1;
|
|
87
85
|
exports.version = version;
|
|
@@ -17,14 +17,14 @@ import { jsx } from '@emotion/react/jsx-runtime';
|
|
|
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
18
|
|
|
19
19
|
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
|
-
|
|
20
|
+
const defaultProps = {
|
|
21
21
|
horizontalConstraint: 'scale',
|
|
22
22
|
isDisabled: false,
|
|
23
23
|
isReadOnly: false,
|
|
24
24
|
isPasswordVisible: false
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
const PasswordInput = props => {
|
|
28
28
|
if (!props.isReadOnly) {
|
|
29
29
|
process.env.NODE_ENV !== "production" ? warning(Boolean(props.onChange), 'PasswordInput: `onChange` is required when is not read only.') : void 0;
|
|
30
30
|
}
|
|
@@ -77,13 +77,11 @@ PasswordInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
77
77
|
PasswordInput.displayName = 'PasswordInput';
|
|
78
78
|
PasswordInput.defaultProps = defaultProps;
|
|
79
79
|
|
|
80
|
-
PasswordInput.isEmpty =
|
|
81
|
-
return !value || _trimInstanceProperty(value).call(value).length === 0;
|
|
82
|
-
};
|
|
80
|
+
PasswordInput.isEmpty = value => !value || _trimInstanceProperty(value).call(value).length === 0;
|
|
83
81
|
|
|
84
82
|
var PasswordInput$1 = PasswordInput;
|
|
85
83
|
|
|
86
84
|
// NOTE: This string will be replaced on build time with the package version.
|
|
87
|
-
var version = "15.
|
|
85
|
+
var version = "15.15.1";
|
|
88
86
|
|
|
89
87
|
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": "15.
|
|
4
|
+
"version": "15.15.1",
|
|
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": "15.
|
|
25
|
-
"@commercetools-uikit/design-system": "15.
|
|
26
|
-
"@commercetools-uikit/input-utils": "15.
|
|
27
|
-
"@commercetools-uikit/utils": "15.
|
|
24
|
+
"@commercetools-uikit/constraints": "15.15.1",
|
|
25
|
+
"@commercetools-uikit/design-system": "15.15.1",
|
|
26
|
+
"@commercetools-uikit/input-utils": "15.15.1",
|
|
27
|
+
"@commercetools-uikit/utils": "15.15.1",
|
|
28
28
|
"@emotion/react": "^11.10.5",
|
|
29
29
|
"@emotion/styled": "^11.10.5",
|
|
30
30
|
"prop-types": "15.8.1"
|