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