@commercetools-uikit/text-input 14.0.1 → 14.0.2

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
- require('react');
17
16
  var react = require('@emotion/react');
18
17
  var utils = require('@commercetools-uikit/utils');
19
18
  var Constraints = require('@commercetools-uikit/constraints');
@@ -107,7 +106,7 @@ TextInput.isEmpty = function (value) {
107
106
  var TextInput$1 = TextInput;
108
107
 
109
108
  // NOTE: This string will be replaced on build time with the package version.
110
- var version = "14.0.1";
109
+ var version = "14.0.2";
111
110
 
112
111
  exports["default"] = TextInput$1;
113
112
  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
- require('react');
17
16
  var react = require('@emotion/react');
18
17
  var utils = require('@commercetools-uikit/utils');
19
18
  var Constraints = require('@commercetools-uikit/constraints');
@@ -86,7 +85,7 @@ TextInput.isEmpty = function (value) {
86
85
  var TextInput$1 = TextInput;
87
86
 
88
87
  // NOTE: This string will be replaced on build time with the package version.
89
- var version = "14.0.1";
88
+ var version = "14.0.2";
90
89
 
91
90
  exports["default"] = TextInput$1;
92
91
  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 'react';
13
12
  import { useTheme } from '@emotion/react';
14
13
  import { warning, filterDataAttributes } from '@commercetools-uikit/utils';
15
14
  import Constraints from '@commercetools-uikit/constraints';
@@ -89,6 +88,6 @@ TextInput.isEmpty = function (value) {
89
88
  var TextInput$1 = TextInput;
90
89
 
91
90
  // NOTE: This string will be replaced on build time with the package version.
92
- var version = "14.0.1";
91
+ var version = "14.0.2";
93
92
 
94
93
  export { TextInput$1 as default, version };
@@ -1,4 +1,4 @@
1
- import { FocusEventHandler, ChangeEventHandler } from 'react';
1
+ import type { FocusEventHandler, ChangeEventHandler } from 'react';
2
2
  export declare type TTextInputProps = {
3
3
  id?: string;
4
4
  autoComplete?: string;
@@ -7,9 +7,9 @@ export declare type TTextInputProps = {
7
7
  className?: string;
8
8
  name?: string;
9
9
  value: string;
10
- onChange?: ChangeEventHandler;
11
- onBlur?: FocusEventHandler;
12
- onFocus?: FocusEventHandler;
10
+ onChange?: ChangeEventHandler<HTMLInputElement>;
11
+ onBlur?: FocusEventHandler<HTMLInputElement>;
12
+ onFocus?: FocusEventHandler<HTMLInputElement>;
13
13
  isAutofocussed?: boolean;
14
14
  isDisabled?: boolean;
15
15
  isReadOnly?: boolean;
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": "14.0.1",
4
+ "version": "14.0.2",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "@babel/runtime-corejs3": "^7.17.2",
24
24
  "@commercetools-uikit/constraints": "14.0.1",
25
25
  "@commercetools-uikit/design-system": "14.0.0",
26
- "@commercetools-uikit/input-utils": "14.0.1",
26
+ "@commercetools-uikit/input-utils": "14.0.2",
27
27
  "@commercetools-uikit/utils": "14.0.1",
28
28
  "@emotion/react": "^11.4.0",
29
29
  "@emotion/styled": "^11.3.0",