@commercetools-uikit/password-input 12.2.3 → 12.2.7

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.
@@ -34,9 +34,9 @@ var _pt__default = /*#__PURE__*/_interopDefault(_pt);
34
34
  var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceProperty);
35
35
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
36
36
 
37
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default['default'](object); if (_Object$getOwnPropertySymbols__default['default']) { var symbols = _Object$getOwnPropertySymbols__default['default'](object); if (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; }
37
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); if (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; }
38
38
 
39
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty__default['default'](_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default['default']) { _Object$defineProperties__default['default'](target, _Object$getOwnPropertyDescriptors__default['default'](source)); } else { var _context2; _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; }
39
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default["default"]) { _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)); } else { var _context2; _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; }
40
40
  var defaultProps = {
41
41
  horizontalConstraint: 'scale',
42
42
  isDisabled: false,
@@ -51,7 +51,7 @@ var PasswordInput = function PasswordInput(props) {
51
51
  process.env.NODE_ENV !== "production" ? utils.warning(Boolean(props.onChange), 'PasswordInput: `onChange` is required when is not read only.') : void 0;
52
52
  }
53
53
 
54
- return jsxRuntime.jsx(Constraints__default['default'].Horizontal, {
54
+ return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
55
55
  max: props.horizontalConstraint,
56
56
  children: jsxRuntime.jsx("input", _objectSpread(_objectSpread({
57
57
  id: props.id,
@@ -76,33 +76,33 @@ var PasswordInput = function PasswordInput(props) {
76
76
  };
77
77
 
78
78
  PasswordInput.propTypes = process.env.NODE_ENV !== "production" ? {
79
- id: _pt__default['default'].string,
80
- name: _pt__default['default'].string,
81
- value: _pt__default['default'].string.isRequired,
82
- placeholder: _pt__default['default'].string,
83
- onChange: _pt__default['default'].func,
84
- onBlur: _pt__default['default'].func,
85
- onFocus: _pt__default['default'].func,
86
- isAutofocussed: _pt__default['default'].bool,
87
- isDisabled: _pt__default['default'].bool,
88
- isReadOnly: _pt__default['default'].bool,
89
- hasError: _pt__default['default'].bool,
90
- hasWarning: _pt__default['default'].bool,
91
- isPasswordVisible: _pt__default['default'].bool,
92
- horizontalConstraint: _pt__default['default'].oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
93
- autoComplete: _pt__default['default'].oneOf(['on', 'off', 'current-password', 'new-password'])
79
+ id: _pt__default["default"].string,
80
+ name: _pt__default["default"].string,
81
+ value: _pt__default["default"].string.isRequired,
82
+ placeholder: _pt__default["default"].string,
83
+ onChange: _pt__default["default"].func,
84
+ onBlur: _pt__default["default"].func,
85
+ onFocus: _pt__default["default"].func,
86
+ isAutofocussed: _pt__default["default"].bool,
87
+ isDisabled: _pt__default["default"].bool,
88
+ isReadOnly: _pt__default["default"].bool,
89
+ hasError: _pt__default["default"].bool,
90
+ hasWarning: _pt__default["default"].bool,
91
+ isPasswordVisible: _pt__default["default"].bool,
92
+ horizontalConstraint: _pt__default["default"].oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
93
+ autoComplete: _pt__default["default"].oneOf(['on', 'off', 'current-password', 'new-password'])
94
94
  } : {};
95
95
  PasswordInput.displayName = 'PasswordInput';
96
96
  PasswordInput.defaultProps = defaultProps;
97
97
 
98
98
  PasswordInput.isEmpty = function (value) {
99
- return !value || _trimInstanceProperty__default['default'](value).call(value).length === 0;
99
+ return !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
100
100
  };
101
101
 
102
102
  var PasswordInput$1 = PasswordInput;
103
103
 
104
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
105
- var version = '12.2.3';
104
+ // NOTE: This string will be replaced on build time with the package version.
105
+ var version = "12.2.7";
106
106
 
107
- exports['default'] = PasswordInput$1;
107
+ exports["default"] = PasswordInput$1;
108
108
  exports.version = version;
@@ -33,9 +33,9 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
33
33
  var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceProperty);
34
34
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
35
35
 
36
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default['default'](object); if (_Object$getOwnPropertySymbols__default['default']) { var symbols = _Object$getOwnPropertySymbols__default['default'](object); if (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
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); if (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; }
37
37
 
38
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty__default['default'](_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default['default']) { _Object$defineProperties__default['default'](target, _Object$getOwnPropertyDescriptors__default['default'](source)); } else { var _context2; _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
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default["default"]) { _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)); } else { var _context2; _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; }
39
39
  var defaultProps = {
40
40
  horizontalConstraint: 'scale',
41
41
  isDisabled: false,
@@ -48,7 +48,7 @@ var PasswordInput = function PasswordInput(props) {
48
48
 
49
49
  if (!props.isReadOnly) ;
50
50
 
51
- return jsxRuntime.jsx(Constraints__default['default'].Horizontal, {
51
+ return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
52
52
  max: props.horizontalConstraint,
53
53
  children: jsxRuntime.jsx("input", _objectSpread(_objectSpread({
54
54
  id: props.id,
@@ -77,13 +77,13 @@ PasswordInput.displayName = 'PasswordInput';
77
77
  PasswordInput.defaultProps = defaultProps;
78
78
 
79
79
  PasswordInput.isEmpty = function (value) {
80
- return !value || _trimInstanceProperty__default['default'](value).call(value).length === 0;
80
+ return !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
81
81
  };
82
82
 
83
83
  var PasswordInput$1 = PasswordInput;
84
84
 
85
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
86
- var version = '12.2.3';
85
+ // NOTE: This string will be replaced on build time with the package version.
86
+ var version = "12.2.7";
87
87
 
88
- exports['default'] = PasswordInput$1;
88
+ exports["default"] = PasswordInput$1;
89
89
  exports.version = version;
@@ -83,7 +83,7 @@ PasswordInput.isEmpty = function (value) {
83
83
 
84
84
  var PasswordInput$1 = PasswordInput;
85
85
 
86
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
87
- var version = '12.2.3';
86
+ // NOTE: This string will be replaced on build time with the package version.
87
+ var version = "12.2.7";
88
88
 
89
89
  export { PasswordInput$1 as default, version };
@@ -1,2 +1,2 @@
1
- import type { TPasswordInputProps as PasswordInputProps } from './password-input';
2
- export declare type TPasswordInputProps = PasswordInputProps;
1
+ import type { TPasswordInputProps as PasswordInputProps } from './password-input';
2
+ export declare type TPasswordInputProps = PasswordInputProps;
@@ -1,3 +1,3 @@
1
- export { default } from './password-input';
2
- export { default as version } from './version';
3
- export * from './export-types';
1
+ export { default } from './password-input';
2
+ export { default as version } from './version';
3
+ export * from './export-types';
@@ -1,25 +1,25 @@
1
- import { ChangeEventHandler, FocusEventHandler } from 'react';
2
- export declare type TPasswordInputProps = {
3
- id?: string;
4
- name?: string;
5
- value: string;
6
- placeholder?: string;
7
- onChange?: ChangeEventHandler;
8
- onBlur?: FocusEventHandler;
9
- onFocus?: FocusEventHandler;
10
- isAutofocussed?: boolean;
11
- isDisabled?: boolean;
12
- isReadOnly?: boolean;
13
- hasError?: boolean;
14
- hasWarning?: boolean;
15
- isPasswordVisible?: boolean;
16
- horizontalConstraint?: 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
17
- autoComplete?: 'on' | 'off' | 'current-password' | 'new-password';
18
- };
19
- declare const PasswordInput: {
20
- (props: TPasswordInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
21
- displayName: string;
22
- defaultProps: Pick<TPasswordInputProps, "isDisabled" | "isReadOnly" | "horizontalConstraint" | "isPasswordVisible">;
23
- isEmpty(value: TPasswordInputProps['value']): boolean;
24
- };
25
- export default PasswordInput;
1
+ import { ChangeEventHandler, FocusEventHandler } from 'react';
2
+ export declare type TPasswordInputProps = {
3
+ id?: string;
4
+ name?: string;
5
+ value: string;
6
+ placeholder?: string;
7
+ onChange?: ChangeEventHandler;
8
+ onBlur?: FocusEventHandler;
9
+ onFocus?: FocusEventHandler;
10
+ isAutofocussed?: boolean;
11
+ isDisabled?: boolean;
12
+ isReadOnly?: boolean;
13
+ hasError?: boolean;
14
+ hasWarning?: boolean;
15
+ isPasswordVisible?: boolean;
16
+ horizontalConstraint?: 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
17
+ autoComplete?: 'on' | 'off' | 'current-password' | 'new-password';
18
+ };
19
+ declare const PasswordInput: {
20
+ (props: TPasswordInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
21
+ displayName: string;
22
+ defaultProps: Pick<TPasswordInputProps, "isDisabled" | "isReadOnly" | "horizontalConstraint" | "isPasswordVisible">;
23
+ isEmpty(value: TPasswordInputProps['value']): boolean;
24
+ };
25
+ export default PasswordInput;
@@ -1,2 +1,2 @@
1
- declare const _default: "12.2.3";
2
- export default _default;
1
+ declare const _default: "__@UI_KIT_PACKAGE/VERSION_OF_RELEASE__";
2
+ export default _default;
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": "12.2.3",
4
+ "version": "12.2.7",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -11,7 +11,6 @@
11
11
  "homepage": "https://uikit.commercetools.com",
12
12
  "keywords": ["javascript", "design system", "react", "uikit"],
13
13
  "license": "MIT",
14
- "private": false,
15
14
  "publishConfig": {
16
15
  "access": "public"
17
16
  },
@@ -19,16 +18,13 @@
19
18
  "main": "dist/commercetools-uikit-password-input.cjs.js",
20
19
  "module": "dist/commercetools-uikit-password-input.esm.js",
21
20
  "files": ["dist"],
22
- "scripts": {
23
- "prepare": "../../../../scripts/version.js replace"
24
- },
25
21
  "dependencies": {
26
- "@babel/runtime": "7.14.8",
27
- "@babel/runtime-corejs3": "7.14.9",
28
- "@commercetools-uikit/constraints": "12.2.3",
29
- "@commercetools-uikit/design-system": "12.2.3",
30
- "@commercetools-uikit/input-utils": "12.2.3",
31
- "@commercetools-uikit/utils": "12.2.0",
22
+ "@babel/runtime": "7.16.3",
23
+ "@babel/runtime-corejs3": "7.16.3",
24
+ "@commercetools-uikit/constraints": "12.2.5",
25
+ "@commercetools-uikit/design-system": "12.2.5",
26
+ "@commercetools-uikit/input-utils": "12.2.7",
27
+ "@commercetools-uikit/utils": "12.2.5",
32
28
  "@emotion/react": "^11.4.0",
33
29
  "@emotion/styled": "^11.3.0",
34
30
  "prop-types": "15.7.2",