@commercetools-uikit/localized-text-field 12.2.3 → 12.2.7
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.
|
@@ -57,19 +57,19 @@ var FieldErrors__default = /*#__PURE__*/_interopDefault(FieldErrors);
|
|
|
57
57
|
|
|
58
58
|
var _templateObject;
|
|
59
59
|
|
|
60
|
-
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default[
|
|
60
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
61
61
|
|
|
62
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context4; _forEachInstanceProperty__default[
|
|
62
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context4; _forEachInstanceProperty__default["default"](_context4 = ownKeys(Object(source), true)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default["default"]) { _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)); } else { var _context5; _forEachInstanceProperty__default["default"](_context5 = ownKeys(Object(source))).call(_context5, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } } return target; }
|
|
63
63
|
|
|
64
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default[
|
|
64
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
65
65
|
|
|
66
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct__default[
|
|
66
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
67
67
|
var sequentialId = utils.createSequentialId('localized-text-field-');
|
|
68
68
|
|
|
69
69
|
var hasErrors = function hasErrors(errors) {
|
|
70
70
|
var _context;
|
|
71
71
|
|
|
72
|
-
return errors && _someInstanceProperty__default[
|
|
72
|
+
return errors && _someInstanceProperty__default["default"](_context = _Object$values__default["default"](errors)).call(_context, Boolean);
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
var LocalizedTextField = /*#__PURE__*/function (_Component) {
|
|
@@ -88,7 +88,7 @@ var LocalizedTextField = /*#__PURE__*/function (_Component) {
|
|
|
88
88
|
args[_key] = arguments[_key];
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
_this = _super.call.apply(_super, _concatInstanceProperty__default[
|
|
91
|
+
_this = _super.call.apply(_super, _concatInstanceProperty__default["default"](_context2 = [this]).call(_context2, args));
|
|
92
92
|
_this.state = {
|
|
93
93
|
// We generate an id in case no id is provided by the parent to attach the
|
|
94
94
|
// label to the input component.
|
|
@@ -101,11 +101,11 @@ var LocalizedTextField = /*#__PURE__*/function (_Component) {
|
|
|
101
101
|
key: "render",
|
|
102
102
|
value: function render() {
|
|
103
103
|
var hasError = this.props.touched && hasErrors(this.props.errors);
|
|
104
|
-
return jsxRuntime.jsx(Constraints__default[
|
|
104
|
+
return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
|
|
105
105
|
max: this.props.horizontalConstraint,
|
|
106
|
-
children: jsxRuntime.jsxs(Spacings__default[
|
|
106
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
107
107
|
scale: "xs",
|
|
108
|
-
children: [jsxRuntime.jsx(FieldLabel__default[
|
|
108
|
+
children: [jsxRuntime.jsx(FieldLabel__default["default"], {
|
|
109
109
|
title: this.props.title,
|
|
110
110
|
hint: this.props.hint,
|
|
111
111
|
description: this.props.description,
|
|
@@ -114,7 +114,7 @@ var LocalizedTextField = /*#__PURE__*/function (_Component) {
|
|
|
114
114
|
badge: this.props.badge,
|
|
115
115
|
hasRequiredIndicator: this.props.isRequired,
|
|
116
116
|
htmlFor: this.state.id
|
|
117
|
-
}), jsxRuntime.jsx(LocalizedTextInput__default[
|
|
117
|
+
}), jsxRuntime.jsx(LocalizedTextInput__default["default"], _objectSpread({
|
|
118
118
|
autoComplete: this.props.autoComplete,
|
|
119
119
|
id: this.state.id,
|
|
120
120
|
name: this.props.name,
|
|
@@ -132,7 +132,7 @@ var LocalizedTextField = /*#__PURE__*/function (_Component) {
|
|
|
132
132
|
hasError: hasError,
|
|
133
133
|
placeholder: this.props.placeholder,
|
|
134
134
|
horizontalConstraint: "scale"
|
|
135
|
-
}, utils.filterDataAttributes(this.props))), jsxRuntime.jsx(FieldErrors__default[
|
|
135
|
+
}, utils.filterDataAttributes(this.props))), jsxRuntime.jsx(FieldErrors__default["default"], {
|
|
136
136
|
errors: this.props.errors,
|
|
137
137
|
isVisible: hasError,
|
|
138
138
|
renderError: this.props.renderError
|
|
@@ -162,20 +162,20 @@ LocalizedTextField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
162
162
|
/**
|
|
163
163
|
* Used as HTML id property. An id is auto-generated when it is not specified.
|
|
164
164
|
*/
|
|
165
|
-
id: PropTypes__default[
|
|
165
|
+
id: PropTypes__default["default"].string,
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* Horizontal size limit of the input fields.
|
|
169
169
|
*/
|
|
170
|
-
horizontalConstraint: PropTypes__default[
|
|
170
|
+
horizontalConstraint: PropTypes__default["default"].oneOf([6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* A map of errors. Error messages for known errors are rendered automatically.
|
|
174
174
|
* <br />
|
|
175
175
|
* Unknown errors will be forwarded to `renderError`
|
|
176
176
|
*/
|
|
177
|
-
errors: PropTypes__default[
|
|
178
|
-
missing: PropTypes__default[
|
|
177
|
+
errors: PropTypes__default["default"].shape({
|
|
178
|
+
missing: PropTypes__default["default"].bool
|
|
179
179
|
}),
|
|
180
180
|
|
|
181
181
|
/**
|
|
@@ -183,64 +183,64 @@ LocalizedTextField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
183
183
|
* <br />
|
|
184
184
|
* Signature: `(key, error) => React.node`
|
|
185
185
|
*/
|
|
186
|
-
renderError: PropTypes__default[
|
|
186
|
+
renderError: PropTypes__default["default"].func,
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* Indicates if the value is required. Shows an the "required asterisk" if so.
|
|
190
190
|
*/
|
|
191
|
-
isRequired: PropTypes__default[
|
|
191
|
+
isRequired: PropTypes__default["default"].bool,
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
194
|
* Indicates whether the field was touched. Errors will only be shown when the field was touched.
|
|
195
195
|
*/
|
|
196
|
-
touched: PropTypes__default[
|
|
196
|
+
touched: PropTypes__default["default"].bool,
|
|
197
197
|
// LocalizedTextInput
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
200
|
* Used as HTML `autocomplete` of the input component. property
|
|
201
201
|
*/
|
|
202
|
-
autoComplete: PropTypes__default[
|
|
202
|
+
autoComplete: PropTypes__default["default"].string,
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* Used as HTML name of the input component. property
|
|
206
206
|
*/
|
|
207
|
-
name: PropTypes__default[
|
|
207
|
+
name: PropTypes__default["default"].string,
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
210
|
* Values to use.
|
|
211
211
|
* <br />
|
|
212
212
|
Keyed by language, the values are the actual values, e.g. `{ en: 'Horse', de: 'Pferd' }`
|
|
213
213
|
*/
|
|
214
|
-
value: PropTypes__default[
|
|
214
|
+
value: PropTypes__default["default"].objectOf(PropTypes__default["default"].string).isRequired,
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
217
|
* Called with an event containing the new value. Required when input is not read only. Parent should pass it back as value.
|
|
218
218
|
* <br />
|
|
219
219
|
* Signature: `(event) => void`
|
|
220
220
|
*/
|
|
221
|
-
onChange: requiredIf__default[
|
|
221
|
+
onChange: requiredIf__default["default"](PropTypes__default["default"].func, function (props) {
|
|
222
222
|
return !props.isReadOnly;
|
|
223
223
|
}),
|
|
224
224
|
|
|
225
225
|
/**
|
|
226
226
|
* Specifies which language will be shown in case the `LocalizedTextInput` is collapsed.
|
|
227
227
|
*/
|
|
228
|
-
selectedLanguage: PropTypes__default[
|
|
228
|
+
selectedLanguage: PropTypes__default["default"].string.isRequired,
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
231
|
* Called when input is blurred
|
|
232
232
|
*/
|
|
233
|
-
onBlur: PropTypes__default[
|
|
233
|
+
onBlur: PropTypes__default["default"].func,
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
236
|
* Called when input is focused
|
|
237
237
|
*/
|
|
238
|
-
onFocus: PropTypes__default[
|
|
238
|
+
onFocus: PropTypes__default["default"].func,
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
* Will hide the language expansion controls when set to `true`. All languages will be shown when set to `true`.
|
|
242
242
|
*/
|
|
243
|
-
hideLanguageExpansionControls: PropTypes__default[
|
|
243
|
+
hideLanguageExpansionControls: PropTypes__default["default"].bool,
|
|
244
244
|
|
|
245
245
|
/**
|
|
246
246
|
* Controls whether one or all languages are visible by default
|
|
@@ -256,51 +256,51 @@ LocalizedTextField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
256
256
|
rest[_key2 - 3] = arguments[_key2];
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
return PropTypes__default[
|
|
259
|
+
return PropTypes__default["default"].bool.apply(PropTypes__default["default"], _concatInstanceProperty__default["default"](_context3 = [props, propName, componentName]).call(_context3, rest));
|
|
260
260
|
},
|
|
261
261
|
|
|
262
262
|
/**
|
|
263
263
|
* Focus the input on initial render
|
|
264
264
|
*/
|
|
265
|
-
isAutofocussed: PropTypes__default[
|
|
265
|
+
isAutofocussed: PropTypes__default["default"].bool,
|
|
266
266
|
|
|
267
267
|
/**
|
|
268
268
|
* Indicates that the input cannot be modified (e.g not authorized, or changes currently saving).
|
|
269
269
|
*/
|
|
270
|
-
isDisabled: PropTypes__default[
|
|
270
|
+
isDisabled: PropTypes__default["default"].bool,
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
273
|
* Indicates that the field is displaying read-only content
|
|
274
274
|
*/
|
|
275
|
-
isReadOnly: PropTypes__default[
|
|
275
|
+
isReadOnly: PropTypes__default["default"].bool,
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
278
|
* Placeholders for each language. Object of the same shape as `value`.
|
|
279
279
|
*/
|
|
280
|
-
placeholder: PropTypes__default[
|
|
280
|
+
placeholder: PropTypes__default["default"].objectOf(PropTypes__default["default"].string),
|
|
281
281
|
|
|
282
282
|
/**
|
|
283
283
|
* Errors for each translation. These are forwarded to the `errors` prop of `LocalizedTextInput`.
|
|
284
284
|
*/
|
|
285
|
-
errorsByLanguage: PropTypes__default[
|
|
285
|
+
errorsByLanguage: PropTypes__default["default"].objectOf(PropTypes__default["default"].node),
|
|
286
286
|
// LabelField
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
289
|
* Title of the label
|
|
290
290
|
*/
|
|
291
|
-
title: PropTypes__default[
|
|
291
|
+
title: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].node]).isRequired,
|
|
292
292
|
|
|
293
293
|
/**
|
|
294
294
|
* Hint for the label. Provides a supplementary but important information regarding the behaviour of the input (e.g warn about uniqueness of a field, when it can only be set once), whereas `description` can describe it in more depth. Can also receive a `hintIcon`.
|
|
295
295
|
*/
|
|
296
|
-
hint: requiredIf__default[
|
|
296
|
+
hint: requiredIf__default["default"](PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].node]), function (props) {
|
|
297
297
|
return props.hintIcon;
|
|
298
298
|
}),
|
|
299
299
|
|
|
300
300
|
/**
|
|
301
301
|
* Provides a description for the title.
|
|
302
302
|
*/
|
|
303
|
-
description: PropTypes__default[
|
|
303
|
+
description: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].node]),
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
306
|
* Function called when info button is pressed.
|
|
@@ -309,26 +309,26 @@ LocalizedTextField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
309
309
|
* <br />
|
|
310
310
|
* Signature: `(event) => void`
|
|
311
311
|
*/
|
|
312
|
-
onInfoButtonClick: PropTypes__default[
|
|
312
|
+
onInfoButtonClick: PropTypes__default["default"].func,
|
|
313
313
|
|
|
314
314
|
/**
|
|
315
315
|
* Icon to be displayed beside the hint text.
|
|
316
316
|
* <br />
|
|
317
317
|
* Will only get rendered when `hint` is passed as well.
|
|
318
318
|
*/
|
|
319
|
-
hintIcon: PropTypes__default[
|
|
319
|
+
hintIcon: PropTypes__default["default"].node,
|
|
320
320
|
|
|
321
321
|
/**
|
|
322
322
|
* Badge to be displayed beside the label.
|
|
323
323
|
* <br />
|
|
324
324
|
* Might be used to display additional information about the content of the field (E.g verified email)
|
|
325
325
|
*/
|
|
326
|
-
badge: PropTypes__default[
|
|
326
|
+
badge: PropTypes__default["default"].node
|
|
327
327
|
} : {};
|
|
328
328
|
var LocalizedTextField$1 = LocalizedTextField;
|
|
329
329
|
|
|
330
|
-
// NOTE: This string will be replaced
|
|
331
|
-
var version =
|
|
330
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
331
|
+
var version = "12.2.7";
|
|
332
332
|
|
|
333
|
-
exports[
|
|
333
|
+
exports["default"] = LocalizedTextField$1;
|
|
334
334
|
exports.version = version;
|
|
@@ -53,19 +53,19 @@ var FieldLabel__default = /*#__PURE__*/_interopDefault(FieldLabel);
|
|
|
53
53
|
var LocalizedTextInput__default = /*#__PURE__*/_interopDefault(LocalizedTextInput);
|
|
54
54
|
var FieldErrors__default = /*#__PURE__*/_interopDefault(FieldErrors);
|
|
55
55
|
|
|
56
|
-
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default[
|
|
56
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
57
57
|
|
|
58
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context4; _forEachInstanceProperty__default[
|
|
58
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context4; _forEachInstanceProperty__default["default"](_context4 = ownKeys(Object(source), true)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default["default"]) { _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)); } else { var _context5; _forEachInstanceProperty__default["default"](_context5 = ownKeys(Object(source))).call(_context5, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } } return target; }
|
|
59
59
|
|
|
60
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default[
|
|
60
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
61
61
|
|
|
62
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct__default[
|
|
62
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
63
63
|
var sequentialId = utils.createSequentialId('localized-text-field-');
|
|
64
64
|
|
|
65
65
|
var hasErrors = function hasErrors(errors) {
|
|
66
66
|
var _context;
|
|
67
67
|
|
|
68
|
-
return errors && _someInstanceProperty__default[
|
|
68
|
+
return errors && _someInstanceProperty__default["default"](_context = _Object$values__default["default"](errors)).call(_context, Boolean);
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
var LocalizedTextField = /*#__PURE__*/function (_Component) {
|
|
@@ -84,7 +84,7 @@ var LocalizedTextField = /*#__PURE__*/function (_Component) {
|
|
|
84
84
|
args[_key] = arguments[_key];
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
_this = _super.call.apply(_super, _concatInstanceProperty__default[
|
|
87
|
+
_this = _super.call.apply(_super, _concatInstanceProperty__default["default"](_context2 = [this]).call(_context2, args));
|
|
88
88
|
_this.state = {
|
|
89
89
|
// We generate an id in case no id is provided by the parent to attach the
|
|
90
90
|
// label to the input component.
|
|
@@ -97,11 +97,11 @@ var LocalizedTextField = /*#__PURE__*/function (_Component) {
|
|
|
97
97
|
key: "render",
|
|
98
98
|
value: function render() {
|
|
99
99
|
var hasError = this.props.touched && hasErrors(this.props.errors);
|
|
100
|
-
return jsxRuntime.jsx(Constraints__default[
|
|
100
|
+
return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
|
|
101
101
|
max: this.props.horizontalConstraint,
|
|
102
|
-
children: jsxRuntime.jsxs(Spacings__default[
|
|
102
|
+
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
103
103
|
scale: "xs",
|
|
104
|
-
children: [jsxRuntime.jsx(FieldLabel__default[
|
|
104
|
+
children: [jsxRuntime.jsx(FieldLabel__default["default"], {
|
|
105
105
|
title: this.props.title,
|
|
106
106
|
hint: this.props.hint,
|
|
107
107
|
description: this.props.description,
|
|
@@ -110,7 +110,7 @@ var LocalizedTextField = /*#__PURE__*/function (_Component) {
|
|
|
110
110
|
badge: this.props.badge,
|
|
111
111
|
hasRequiredIndicator: this.props.isRequired,
|
|
112
112
|
htmlFor: this.state.id
|
|
113
|
-
}), jsxRuntime.jsx(LocalizedTextInput__default[
|
|
113
|
+
}), jsxRuntime.jsx(LocalizedTextInput__default["default"], _objectSpread({
|
|
114
114
|
autoComplete: this.props.autoComplete,
|
|
115
115
|
id: this.state.id,
|
|
116
116
|
name: this.props.name,
|
|
@@ -128,7 +128,7 @@ var LocalizedTextField = /*#__PURE__*/function (_Component) {
|
|
|
128
128
|
hasError: hasError,
|
|
129
129
|
placeholder: this.props.placeholder,
|
|
130
130
|
horizontalConstraint: "scale"
|
|
131
|
-
}, utils.filterDataAttributes(this.props))), jsxRuntime.jsx(FieldErrors__default[
|
|
131
|
+
}, utils.filterDataAttributes(this.props))), jsxRuntime.jsx(FieldErrors__default["default"], {
|
|
132
132
|
errors: this.props.errors,
|
|
133
133
|
isVisible: hasError,
|
|
134
134
|
renderError: this.props.renderError
|
|
@@ -155,8 +155,8 @@ LocalizedTextField.getDerivedStateFromProps = function (props, state) {
|
|
|
155
155
|
LocalizedTextField.propTypes = {};
|
|
156
156
|
var LocalizedTextField$1 = LocalizedTextField;
|
|
157
157
|
|
|
158
|
-
// NOTE: This string will be replaced
|
|
159
|
-
var version =
|
|
158
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
159
|
+
var version = "12.2.7";
|
|
160
160
|
|
|
161
|
-
exports[
|
|
161
|
+
exports["default"] = LocalizedTextField$1;
|
|
162
162
|
exports.version = version;
|
|
@@ -301,7 +301,7 @@ LocalizedTextField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
301
301
|
} : {};
|
|
302
302
|
var LocalizedTextField$1 = LocalizedTextField;
|
|
303
303
|
|
|
304
|
-
// NOTE: This string will be replaced
|
|
305
|
-
var version =
|
|
304
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
305
|
+
var version = "12.2.7";
|
|
306
306
|
|
|
307
307
|
export { LocalizedTextField$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/localized-text-field",
|
|
3
3
|
"description": "A controlled text input component for localized single-line strings with validation states.",
|
|
4
|
-
"version": "12.2.
|
|
4
|
+
"version": "12.2.7",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"homepage": "https://uikit.commercetools.com",
|
|
12
12
|
"keywords": ["javascript", "design system", "react", "uikit"],
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"private": false,
|
|
15
14
|
"publishConfig": {
|
|
16
15
|
"access": "public"
|
|
17
16
|
},
|
|
@@ -19,22 +18,19 @@
|
|
|
19
18
|
"main": "dist/commercetools-uikit-localized-text-field.cjs.js",
|
|
20
19
|
"module": "dist/commercetools-uikit-localized-text-field.esm.js",
|
|
21
20
|
"files": ["dist"],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"prepare": "../../../../scripts/version.js replace"
|
|
24
|
-
},
|
|
25
21
|
"dependencies": {
|
|
26
|
-
"@babel/runtime": "7.
|
|
27
|
-
"@babel/runtime-corejs3": "7.
|
|
28
|
-
"@commercetools-uikit/constraints": "12.2.
|
|
29
|
-
"@commercetools-uikit/design-system": "12.2.
|
|
30
|
-
"@commercetools-uikit/field-errors": "12.2.
|
|
31
|
-
"@commercetools-uikit/field-label": "12.2.
|
|
32
|
-
"@commercetools-uikit/localized-text-input": "12.2.
|
|
33
|
-
"@commercetools-uikit/spacings": "12.2.
|
|
34
|
-
"@commercetools-uikit/utils": "12.2.
|
|
22
|
+
"@babel/runtime": "7.16.3",
|
|
23
|
+
"@babel/runtime-corejs3": "7.16.3",
|
|
24
|
+
"@commercetools-uikit/constraints": "12.2.5",
|
|
25
|
+
"@commercetools-uikit/design-system": "12.2.5",
|
|
26
|
+
"@commercetools-uikit/field-errors": "12.2.5",
|
|
27
|
+
"@commercetools-uikit/field-label": "12.2.7",
|
|
28
|
+
"@commercetools-uikit/localized-text-input": "12.2.7",
|
|
29
|
+
"@commercetools-uikit/spacings": "12.2.5",
|
|
30
|
+
"@commercetools-uikit/utils": "12.2.5",
|
|
35
31
|
"@emotion/react": "^11.4.0",
|
|
36
32
|
"@emotion/styled": "^11.3.0",
|
|
37
|
-
"common-tags": "1.8.
|
|
33
|
+
"common-tags": "1.8.2",
|
|
38
34
|
"prop-types": "15.7.2",
|
|
39
35
|
"react-required-if": "1.0.3"
|
|
40
36
|
},
|