@commercetools-uikit/text-input 19.25.1 → 20.0.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.
|
@@ -12,7 +12,6 @@ var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/ob
|
|
|
12
12
|
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
13
13
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
14
|
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
15
|
-
var _pt = require('prop-types');
|
|
16
15
|
var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
|
|
17
16
|
var utils = require('@commercetools-uikit/utils');
|
|
18
17
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
@@ -29,7 +28,6 @@ var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachIns
|
|
|
29
28
|
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
30
29
|
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
31
30
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
32
|
-
var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
33
31
|
var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceProperty);
|
|
34
32
|
var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
|
|
35
33
|
|
|
@@ -76,33 +74,12 @@ const TextInput = _ref => {
|
|
|
76
74
|
}))
|
|
77
75
|
});
|
|
78
76
|
};
|
|
79
|
-
TextInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
80
|
-
id: _pt__default["default"].string,
|
|
81
|
-
autoComplete: _pt__default["default"].string,
|
|
82
|
-
'aria-invalid': _pt__default["default"].bool,
|
|
83
|
-
'aria-errormessage': _pt__default["default"].string,
|
|
84
|
-
className: _pt__default["default"].string,
|
|
85
|
-
name: _pt__default["default"].string,
|
|
86
|
-
value: _pt__default["default"].string.isRequired,
|
|
87
|
-
onChange: _pt__default["default"].func,
|
|
88
|
-
onBlur: _pt__default["default"].func,
|
|
89
|
-
onFocus: _pt__default["default"].func,
|
|
90
|
-
isAutofocussed: _pt__default["default"].bool,
|
|
91
|
-
isCondensed: _pt__default["default"].bool,
|
|
92
|
-
isDisabled: _pt__default["default"].bool,
|
|
93
|
-
isReadOnly: _pt__default["default"].bool,
|
|
94
|
-
hasError: _pt__default["default"].bool,
|
|
95
|
-
hasWarning: _pt__default["default"].bool,
|
|
96
|
-
placeholder: _pt__default["default"].string,
|
|
97
|
-
horizontalConstraint: _pt__default["default"].oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
98
|
-
maxLength: _pt__default["default"].number
|
|
99
|
-
} : {};
|
|
100
77
|
TextInput.displayName = 'TextInput';
|
|
101
78
|
TextInput.isEmpty = value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
|
|
102
79
|
var TextInput$1 = TextInput;
|
|
103
80
|
|
|
104
81
|
// NOTE: This string will be replaced on build time with the package version.
|
|
105
|
-
var version = "
|
|
82
|
+
var version = "20.0.0";
|
|
106
83
|
|
|
107
84
|
exports["default"] = TextInput$1;
|
|
108
85
|
exports.version = version;
|
|
@@ -12,7 +12,6 @@ var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/ob
|
|
|
12
12
|
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
13
13
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
14
|
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
15
|
-
require('prop-types');
|
|
16
15
|
var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
|
|
17
16
|
var utils = require('@commercetools-uikit/utils');
|
|
18
17
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
@@ -73,13 +72,12 @@ const TextInput = _ref => {
|
|
|
73
72
|
}))
|
|
74
73
|
});
|
|
75
74
|
};
|
|
76
|
-
TextInput.propTypes = {};
|
|
77
75
|
TextInput.displayName = 'TextInput';
|
|
78
76
|
TextInput.isEmpty = value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
|
|
79
77
|
var TextInput$1 = TextInput;
|
|
80
78
|
|
|
81
79
|
// NOTE: This string will be replaced on build time with the package version.
|
|
82
|
-
var version = "
|
|
80
|
+
var version = "20.0.0";
|
|
83
81
|
|
|
84
82
|
exports["default"] = TextInput$1;
|
|
85
83
|
exports.version = version;
|
|
@@ -8,7 +8,6 @@ import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/obje
|
|
|
8
8
|
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
9
9
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
10
10
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
|
|
11
|
-
import _pt from 'prop-types';
|
|
12
11
|
import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
|
|
13
12
|
import { warning, filterDataAttributes } from '@commercetools-uikit/utils';
|
|
14
13
|
import Constraints from '@commercetools-uikit/constraints';
|
|
@@ -58,32 +57,11 @@ const TextInput = _ref => {
|
|
|
58
57
|
}))
|
|
59
58
|
});
|
|
60
59
|
};
|
|
61
|
-
TextInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
62
|
-
id: _pt.string,
|
|
63
|
-
autoComplete: _pt.string,
|
|
64
|
-
'aria-invalid': _pt.bool,
|
|
65
|
-
'aria-errormessage': _pt.string,
|
|
66
|
-
className: _pt.string,
|
|
67
|
-
name: _pt.string,
|
|
68
|
-
value: _pt.string.isRequired,
|
|
69
|
-
onChange: _pt.func,
|
|
70
|
-
onBlur: _pt.func,
|
|
71
|
-
onFocus: _pt.func,
|
|
72
|
-
isAutofocussed: _pt.bool,
|
|
73
|
-
isCondensed: _pt.bool,
|
|
74
|
-
isDisabled: _pt.bool,
|
|
75
|
-
isReadOnly: _pt.bool,
|
|
76
|
-
hasError: _pt.bool,
|
|
77
|
-
hasWarning: _pt.bool,
|
|
78
|
-
placeholder: _pt.string,
|
|
79
|
-
horizontalConstraint: _pt.oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
80
|
-
maxLength: _pt.number
|
|
81
|
-
} : {};
|
|
82
60
|
TextInput.displayName = 'TextInput';
|
|
83
61
|
TextInput.isEmpty = value => !value || _trimInstanceProperty(value).call(value).length === 0;
|
|
84
62
|
var TextInput$1 = TextInput;
|
|
85
63
|
|
|
86
64
|
// NOTE: This string will be replaced on build time with the package version.
|
|
87
|
-
var version = "
|
|
65
|
+
var version = "20.0.0";
|
|
88
66
|
|
|
89
67
|
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": "
|
|
4
|
+
"version": "20.0.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,18 +21,17 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "
|
|
25
|
-
"@commercetools-uikit/design-system": "
|
|
26
|
-
"@commercetools-uikit/input-utils": "
|
|
27
|
-
"@commercetools-uikit/utils": "
|
|
24
|
+
"@commercetools-uikit/constraints": "20.0.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "20.0.0",
|
|
26
|
+
"@commercetools-uikit/input-utils": "20.0.0",
|
|
27
|
+
"@commercetools-uikit/utils": "20.0.0",
|
|
28
28
|
"@emotion/react": "^11.10.5",
|
|
29
|
-
"@emotion/styled": "^11.10.5"
|
|
30
|
-
"prop-types": "15.8.1"
|
|
29
|
+
"@emotion/styled": "^11.10.5"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
|
-
"react": "
|
|
32
|
+
"react": "19.0.0"
|
|
34
33
|
},
|
|
35
34
|
"peerDependencies": {
|
|
36
|
-
"react": "
|
|
35
|
+
"react": "19.x"
|
|
37
36
|
}
|
|
38
37
|
}
|