@commercetools-uikit/text-input 15.2.4 → 15.4.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');
@@ -41,8 +40,6 @@ var defaultProps = {
41
40
  };
42
41
 
43
42
  var TextInput = function TextInput(props) {
44
- var theme = react.useTheme();
45
-
46
43
  if (!props.isReadOnly) {
47
44
  process.env.NODE_ENV !== "production" ? utils.warning(typeof props.onChange === 'function', 'TextInput: `onChange` is required when is not read only.') : void 0;
48
45
  }
@@ -62,7 +59,7 @@ var TextInput = function TextInput(props) {
62
59
  readOnly: props.isReadOnly,
63
60
  autoFocus: props.isAutofocussed,
64
61
  autoComplete: props.autoComplete,
65
- css: inputUtils.getInputStyles(props, theme) // Allow to override the styles by passing a `className` prop.
62
+ css: inputUtils.getInputStyles(props) // Allow to override the styles by passing a `className` prop.
66
63
  // Custom styles can also be passed using the `css` prop from emotion.
67
64
  // https://emotion.sh/docs/css-prop#style-precedence
68
65
  ,
@@ -106,7 +103,7 @@ TextInput.isEmpty = function (value) {
106
103
  var TextInput$1 = TextInput;
107
104
 
108
105
  // NOTE: This string will be replaced on build time with the package version.
109
- var version = "15.2.4";
106
+ var version = "15.4.0";
110
107
 
111
108
  exports["default"] = TextInput$1;
112
109
  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');
@@ -40,8 +39,6 @@ var defaultProps = {
40
39
  };
41
40
 
42
41
  var TextInput = function TextInput(props) {
43
- var theme = react.useTheme();
44
-
45
42
  if (!props.isReadOnly) ;
46
43
 
47
44
  return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
@@ -59,7 +56,7 @@ var TextInput = function TextInput(props) {
59
56
  readOnly: props.isReadOnly,
60
57
  autoFocus: props.isAutofocussed,
61
58
  autoComplete: props.autoComplete,
62
- css: inputUtils.getInputStyles(props, theme) // Allow to override the styles by passing a `className` prop.
59
+ css: inputUtils.getInputStyles(props) // Allow to override the styles by passing a `className` prop.
63
60
  // Custom styles can also be passed using the `css` prop from emotion.
64
61
  // https://emotion.sh/docs/css-prop#style-precedence
65
62
  ,
@@ -85,7 +82,7 @@ TextInput.isEmpty = function (value) {
85
82
  var TextInput$1 = TextInput;
86
83
 
87
84
  // NOTE: This string will be replaced on build time with the package version.
88
- var version = "15.2.4";
85
+ var version = "15.4.0";
89
86
 
90
87
  exports["default"] = TextInput$1;
91
88
  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';
@@ -23,8 +22,6 @@ var defaultProps = {
23
22
  };
24
23
 
25
24
  var TextInput = function TextInput(props) {
26
- var theme = useTheme();
27
-
28
25
  if (!props.isReadOnly) {
29
26
  process.env.NODE_ENV !== "production" ? warning(typeof props.onChange === 'function', 'TextInput: `onChange` is required when is not read only.') : void 0;
30
27
  }
@@ -44,7 +41,7 @@ var TextInput = function TextInput(props) {
44
41
  readOnly: props.isReadOnly,
45
42
  autoFocus: props.isAutofocussed,
46
43
  autoComplete: props.autoComplete,
47
- css: getInputStyles(props, theme) // Allow to override the styles by passing a `className` prop.
44
+ css: getInputStyles(props) // Allow to override the styles by passing a `className` prop.
48
45
  // Custom styles can also be passed using the `css` prop from emotion.
49
46
  // https://emotion.sh/docs/css-prop#style-precedence
50
47
  ,
@@ -88,6 +85,6 @@ TextInput.isEmpty = function (value) {
88
85
  var TextInput$1 = TextInput;
89
86
 
90
87
  // NOTE: This string will be replaced on build time with the package version.
91
- var version = "15.2.4";
88
+ var version = "15.4.0";
92
89
 
93
90
  export { TextInput$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/text-input",
3
3
  "description": "A controlled text input component for single-line strings with validation states.",
4
- "version": "15.2.4",
4
+ "version": "15.4.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.4.0",
25
+ "@commercetools-uikit/design-system": "15.4.0",
26
+ "@commercetools-uikit/input-utils": "15.4.0",
27
+ "@commercetools-uikit/utils": "15.4.0",
28
28
  "@emotion/react": "^11.4.0",
29
29
  "@emotion/styled": "^11.3.0",
30
30
  "prop-types": "15.8.1"