@commercetools-uikit/password-input 15.2.4 → 15.3.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.
@@ -13,7 +13,6 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
13
13
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  var _pt = require('prop-types');
15
15
  var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
16
- var react = require('@emotion/react');
17
16
  var utils = require('@commercetools-uikit/utils');
18
17
  var Constraints = require('@commercetools-uikit/constraints');
19
18
  var inputUtils = require('@commercetools-uikit/input-utils');
@@ -44,8 +43,6 @@ var defaultProps = {
44
43
  };
45
44
 
46
45
  var PasswordInput = function PasswordInput(props) {
47
- var theme = react.useTheme();
48
-
49
46
  if (!props.isReadOnly) {
50
47
  process.env.NODE_ENV !== "production" ? utils.warning(Boolean(props.onChange), 'PasswordInput: `onChange` is required when is not read only.') : void 0;
51
48
  }
@@ -63,7 +60,7 @@ var PasswordInput = function PasswordInput(props) {
63
60
  disabled: props.isDisabled,
64
61
  placeholder: props.placeholder,
65
62
  autoComplete: props.autoComplete,
66
- css: inputUtils.getInputStyles(props, theme),
63
+ css: inputUtils.getInputStyles(props),
67
64
  readOnly: props.isReadOnly,
68
65
  autoFocus: props.isAutofocussed
69
66
  }, utils.filterDataAttributes(props)), {}, {
@@ -105,7 +102,7 @@ PasswordInput.isEmpty = function (value) {
105
102
  var PasswordInput$1 = PasswordInput;
106
103
 
107
104
  // NOTE: This string will be replaced on build time with the package version.
108
- var version = "15.2.4";
105
+ var version = "15.3.0";
109
106
 
110
107
  exports["default"] = PasswordInput$1;
111
108
  exports.version = version;
@@ -13,7 +13,6 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
13
13
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  require('prop-types');
15
15
  var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
16
- var react = require('@emotion/react');
17
16
  var utils = require('@commercetools-uikit/utils');
18
17
  var Constraints = require('@commercetools-uikit/constraints');
19
18
  var inputUtils = require('@commercetools-uikit/input-utils');
@@ -43,8 +42,6 @@ var defaultProps = {
43
42
  };
44
43
 
45
44
  var PasswordInput = function PasswordInput(props) {
46
- var theme = react.useTheme();
47
-
48
45
  if (!props.isReadOnly) ;
49
46
 
50
47
  return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
@@ -60,7 +57,7 @@ var PasswordInput = function PasswordInput(props) {
60
57
  disabled: props.isDisabled,
61
58
  placeholder: props.placeholder,
62
59
  autoComplete: props.autoComplete,
63
- css: inputUtils.getInputStyles(props, theme),
60
+ css: inputUtils.getInputStyles(props),
64
61
  readOnly: props.isReadOnly,
65
62
  autoFocus: props.isAutofocussed
66
63
  }, utils.filterDataAttributes(props)), {}, {
@@ -84,7 +81,7 @@ PasswordInput.isEmpty = function (value) {
84
81
  var PasswordInput$1 = PasswordInput;
85
82
 
86
83
  // NOTE: This string will be replaced on build time with the package version.
87
- var version = "15.2.4";
84
+ var version = "15.3.0";
88
85
 
89
86
  exports["default"] = PasswordInput$1;
90
87
  exports.version = version;
@@ -9,7 +9,6 @@ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object
9
9
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
10
10
  import _pt from 'prop-types';
11
11
  import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
12
- import { useTheme } from '@emotion/react';
13
12
  import { warning, filterDataAttributes } from '@commercetools-uikit/utils';
14
13
  import Constraints from '@commercetools-uikit/constraints';
15
14
  import { getInputStyles } from '@commercetools-uikit/input-utils';
@@ -26,8 +25,6 @@ var defaultProps = {
26
25
  };
27
26
 
28
27
  var PasswordInput = function PasswordInput(props) {
29
- var theme = useTheme();
30
-
31
28
  if (!props.isReadOnly) {
32
29
  process.env.NODE_ENV !== "production" ? warning(Boolean(props.onChange), 'PasswordInput: `onChange` is required when is not read only.') : void 0;
33
30
  }
@@ -45,7 +42,7 @@ var PasswordInput = function PasswordInput(props) {
45
42
  disabled: props.isDisabled,
46
43
  placeholder: props.placeholder,
47
44
  autoComplete: props.autoComplete,
48
- css: getInputStyles(props, theme),
45
+ css: getInputStyles(props),
49
46
  readOnly: props.isReadOnly,
50
47
  autoFocus: props.isAutofocussed
51
48
  }, filterDataAttributes(props)), {}, {
@@ -87,6 +84,6 @@ PasswordInput.isEmpty = function (value) {
87
84
  var PasswordInput$1 = PasswordInput;
88
85
 
89
86
  // NOTE: This string will be replaced on build time with the package version.
90
- var version = "15.2.4";
87
+ var version = "15.3.0";
91
88
 
92
89
  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.2.4",
4
+ "version": "15.3.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.19.0",
23
23
  "@babel/runtime-corejs3": "^7.19.1",
24
- "@commercetools-uikit/constraints": "15.2.4",
25
- "@commercetools-uikit/design-system": "15.2.4",
26
- "@commercetools-uikit/input-utils": "15.2.4",
27
- "@commercetools-uikit/utils": "15.2.4",
24
+ "@commercetools-uikit/constraints": "15.3.0",
25
+ "@commercetools-uikit/design-system": "15.3.0",
26
+ "@commercetools-uikit/input-utils": "15.3.0",
27
+ "@commercetools-uikit/utils": "15.3.0",
28
28
  "@emotion/react": "^11.4.0",
29
29
  "@emotion/styled": "^11.3.0",
30
30
  "prop-types": "15.8.1"