@commercetools-uikit/multiline-text-input 19.26.0 → 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.
|
@@ -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 _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
15
15
|
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
16
|
-
var _pt = require('prop-types');
|
|
17
16
|
var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
|
|
18
17
|
var react$1 = require('react');
|
|
19
18
|
var SecondaryIconButton = require('@commercetools-uikit/secondary-icon-button');
|
|
@@ -40,7 +39,6 @@ var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachIns
|
|
|
40
39
|
var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
|
|
41
40
|
var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
|
|
42
41
|
var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
|
|
43
|
-
var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
44
42
|
var _trimInstanceProperty__default = /*#__PURE__*/_interopDefault(_trimInstanceProperty);
|
|
45
43
|
var SecondaryIconButton__default = /*#__PURE__*/_interopDefault(SecondaryIconButton);
|
|
46
44
|
var FlatButton__default = /*#__PURE__*/_interopDefault(FlatButton);
|
|
@@ -160,35 +158,12 @@ const MultilineTextInput = _ref2 => {
|
|
|
160
158
|
})
|
|
161
159
|
});
|
|
162
160
|
};
|
|
163
|
-
MultilineTextInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
164
|
-
name: _pt__default["default"].string,
|
|
165
|
-
'aria-invalid': _pt__default["default"].bool,
|
|
166
|
-
'aria-errormessage': _pt__default["default"].string,
|
|
167
|
-
autoComplete: _pt__default["default"].string,
|
|
168
|
-
id: _pt__default["default"].string,
|
|
169
|
-
value: _pt__default["default"].string.isRequired,
|
|
170
|
-
onChange: _pt__default["default"].func,
|
|
171
|
-
onBlur: _pt__default["default"].func,
|
|
172
|
-
onFocus: _pt__default["default"].func,
|
|
173
|
-
isAutofocussed: _pt__default["default"].bool,
|
|
174
|
-
defaultExpandMultilineText: _pt__default["default"].bool,
|
|
175
|
-
isDisabled: _pt__default["default"].bool,
|
|
176
|
-
isReadOnly: _pt__default["default"].bool,
|
|
177
|
-
placeholder: _pt__default["default"].string,
|
|
178
|
-
hasError: _pt__default["default"].bool,
|
|
179
|
-
hasWarning: _pt__default["default"].bool,
|
|
180
|
-
horizontalConstraint: _pt__default["default"].oneOf([6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
181
|
-
rightActionIcon: _pt__default["default"].element,
|
|
182
|
-
rightActionProps: _pt__default["default"].any,
|
|
183
|
-
isCondensed: _pt__default["default"].bool,
|
|
184
|
-
maxRows: _pt__default["default"].number
|
|
185
|
-
} : {};
|
|
186
161
|
MultilineTextInput.displayName = 'MultilineTextInput';
|
|
187
162
|
MultilineTextInput.isEmpty = value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
|
|
188
163
|
var MultilineTextInput$1 = MultilineTextInput;
|
|
189
164
|
|
|
190
165
|
// NOTE: This string will be replaced on build time with the package version.
|
|
191
|
-
var version = "
|
|
166
|
+
var version = "20.0.0";
|
|
192
167
|
|
|
193
168
|
exports["default"] = MultilineTextInput$1;
|
|
194
169
|
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
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
15
15
|
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
16
|
-
require('prop-types');
|
|
17
16
|
var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
|
|
18
17
|
var react$1 = require('react');
|
|
19
18
|
var SecondaryIconButton = require('@commercetools-uikit/secondary-icon-button');
|
|
@@ -144,13 +143,12 @@ const MultilineTextInput = _ref2 => {
|
|
|
144
143
|
})
|
|
145
144
|
});
|
|
146
145
|
};
|
|
147
|
-
MultilineTextInput.propTypes = {};
|
|
148
146
|
MultilineTextInput.displayName = 'MultilineTextInput';
|
|
149
147
|
MultilineTextInput.isEmpty = value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0;
|
|
150
148
|
var MultilineTextInput$1 = MultilineTextInput;
|
|
151
149
|
|
|
152
150
|
// NOTE: This string will be replaced on build time with the package version.
|
|
153
|
-
var version = "
|
|
151
|
+
var version = "20.0.0";
|
|
154
152
|
|
|
155
153
|
exports["default"] = MultilineTextInput$1;
|
|
156
154
|
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 _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
11
11
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
|
|
12
|
-
import _pt from 'prop-types';
|
|
13
12
|
import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
|
|
14
13
|
import { useState, useCallback } from 'react';
|
|
15
14
|
import SecondaryIconButton from '@commercetools-uikit/secondary-icon-button';
|
|
@@ -138,34 +137,11 @@ const MultilineTextInput = _ref2 => {
|
|
|
138
137
|
})
|
|
139
138
|
});
|
|
140
139
|
};
|
|
141
|
-
MultilineTextInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
142
|
-
name: _pt.string,
|
|
143
|
-
'aria-invalid': _pt.bool,
|
|
144
|
-
'aria-errormessage': _pt.string,
|
|
145
|
-
autoComplete: _pt.string,
|
|
146
|
-
id: _pt.string,
|
|
147
|
-
value: _pt.string.isRequired,
|
|
148
|
-
onChange: _pt.func,
|
|
149
|
-
onBlur: _pt.func,
|
|
150
|
-
onFocus: _pt.func,
|
|
151
|
-
isAutofocussed: _pt.bool,
|
|
152
|
-
defaultExpandMultilineText: _pt.bool,
|
|
153
|
-
isDisabled: _pt.bool,
|
|
154
|
-
isReadOnly: _pt.bool,
|
|
155
|
-
placeholder: _pt.string,
|
|
156
|
-
hasError: _pt.bool,
|
|
157
|
-
hasWarning: _pt.bool,
|
|
158
|
-
horizontalConstraint: _pt.oneOf([6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
159
|
-
rightActionIcon: _pt.element,
|
|
160
|
-
rightActionProps: _pt.any,
|
|
161
|
-
isCondensed: _pt.bool,
|
|
162
|
-
maxRows: _pt.number
|
|
163
|
-
} : {};
|
|
164
140
|
MultilineTextInput.displayName = 'MultilineTextInput';
|
|
165
141
|
MultilineTextInput.isEmpty = value => !value || _trimInstanceProperty(value).call(value).length === 0;
|
|
166
142
|
var MultilineTextInput$1 = MultilineTextInput;
|
|
167
143
|
|
|
168
144
|
// NOTE: This string will be replaced on build time with the package version.
|
|
169
|
-
var version = "
|
|
145
|
+
var version = "20.0.0";
|
|
170
146
|
|
|
171
147
|
export { MultilineTextInput$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/multiline-text-input",
|
|
3
3
|
"description": "A controlled text input component for multi-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,29 +21,28 @@
|
|
|
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/flat-button": "
|
|
27
|
-
"@commercetools-uikit/hooks": "
|
|
28
|
-
"@commercetools-uikit/icons": "
|
|
29
|
-
"@commercetools-uikit/input-utils": "
|
|
30
|
-
"@commercetools-uikit/secondary-icon-button": "
|
|
31
|
-
"@commercetools-uikit/spacings-inline": "
|
|
32
|
-
"@commercetools-uikit/spacings-stack": "
|
|
33
|
-
"@commercetools-uikit/tooltip": "
|
|
34
|
-
"@commercetools-uikit/utils": "
|
|
24
|
+
"@commercetools-uikit/constraints": "20.0.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "20.0.0",
|
|
26
|
+
"@commercetools-uikit/flat-button": "20.0.0",
|
|
27
|
+
"@commercetools-uikit/hooks": "20.0.0",
|
|
28
|
+
"@commercetools-uikit/icons": "20.0.0",
|
|
29
|
+
"@commercetools-uikit/input-utils": "20.0.0",
|
|
30
|
+
"@commercetools-uikit/secondary-icon-button": "20.0.0",
|
|
31
|
+
"@commercetools-uikit/spacings-inline": "20.0.0",
|
|
32
|
+
"@commercetools-uikit/spacings-stack": "20.0.0",
|
|
33
|
+
"@commercetools-uikit/tooltip": "20.0.0",
|
|
34
|
+
"@commercetools-uikit/utils": "20.0.0",
|
|
35
35
|
"@emotion/react": "^11.10.5",
|
|
36
36
|
"@emotion/styled": "^11.10.5",
|
|
37
|
-
"downshift": "
|
|
38
|
-
"prop-types": "15.8.1",
|
|
37
|
+
"downshift": "9.0.8",
|
|
39
38
|
"react-textarea-autosize": "8.4.0"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"react": "
|
|
43
|
-
"react-intl": "^
|
|
41
|
+
"react": "19.0.0",
|
|
42
|
+
"react-intl": "^7.1.4"
|
|
44
43
|
},
|
|
45
44
|
"peerDependencies": {
|
|
46
|
-
"react": "
|
|
47
|
-
"react-intl": "
|
|
45
|
+
"react": "19.x",
|
|
46
|
+
"react-intl": "7.x"
|
|
48
47
|
}
|
|
49
48
|
}
|