@commercetools-uikit/localized-text-field 19.1.0 → 19.3.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.
package/README.md CHANGED
@@ -70,6 +70,7 @@ export default Example;
70
70
  | `hideLanguageExpansionControls` | `boolean` | | | Will hide the language expansion controls when set to `true`. All languages will be shown when set to `true`. |
71
71
  | `defaultExpandLanguages` | `boolean` | | | Controls whether one or all languages are visible by default |
72
72
  | `isAutofocussed` | `boolean` | | | Focus the input on initial render |
73
+ | `isCondensed` | `boolean` | | | Whether the text inputs for each localization should render with condensed paddings. |
73
74
  | `isDisabled` | `boolean` | | | Indicates that the input cannot be modified (e.g not authorized, or changes currently saving). |
74
75
  | `isReadOnly` | `boolean` | | | Indicates that the field is displaying read-only content |
75
76
  | `placeholder` | `Record` | | | Placeholders for each language. Object of the same shape as `value`. |
@@ -118,6 +118,7 @@ let LocalizedTextField = /*#__PURE__*/function (_Component) {
118
118
  hideLanguageExpansionControls: this.props.hideLanguageExpansionControls,
119
119
  defaultExpandLanguages: this.props.defaultExpandLanguages,
120
120
  isAutofocussed: this.props.isAutofocussed,
121
+ isCondensed: this.props.isCondensed,
121
122
  isDisabled: this.props.isDisabled,
122
123
  isReadOnly: this.props.isReadOnly,
123
124
  errors: this.props.errorsByLanguage,
@@ -186,17 +187,17 @@ LocalizedTextField.propTypes = process.env.NODE_ENV !== "production" ? {
186
187
  hideLanguageExpansionControls: _pt__default["default"].bool,
187
188
  defaultExpandLanguages: _pt__default["default"].bool,
188
189
  isAutofocussed: _pt__default["default"].bool,
190
+ isCondensed: _pt__default["default"].bool,
189
191
  isDisabled: _pt__default["default"].bool,
190
192
  isReadOnly: _pt__default["default"].bool,
191
193
  placeholder: _pt__default["default"].objectOf(_pt__default["default"].string),
192
194
  errorsByLanguage: _pt__default["default"].objectOf(_pt__default["default"].node),
193
- title: _pt__default["default"].node.isRequired,
194
- hint: _pt__default["default"].node
195
+ title: _pt__default["default"].node.isRequired
195
196
  } : {};
196
197
  var LocalizedTextField$1 = LocalizedTextField;
197
198
 
198
199
  // NOTE: This string will be replaced on build time with the package version.
199
- var version = "19.1.0";
200
+ var version = "19.3.0";
200
201
 
201
202
  exports["default"] = LocalizedTextField$1;
202
203
  exports.version = version;
@@ -113,6 +113,7 @@ let LocalizedTextField = /*#__PURE__*/function (_Component) {
113
113
  hideLanguageExpansionControls: this.props.hideLanguageExpansionControls,
114
114
  defaultExpandLanguages: this.props.defaultExpandLanguages,
115
115
  isAutofocussed: this.props.isAutofocussed,
116
+ isCondensed: this.props.isCondensed,
116
117
  isDisabled: this.props.isDisabled,
117
118
  isReadOnly: this.props.isReadOnly,
118
119
  errors: this.props.errorsByLanguage,
@@ -163,7 +164,7 @@ LocalizedTextField.propTypes = {};
163
164
  var LocalizedTextField$1 = LocalizedTextField;
164
165
 
165
166
  // NOTE: This string will be replaced on build time with the package version.
166
- var version = "19.1.0";
167
+ var version = "19.3.0";
167
168
 
168
169
  exports["default"] = LocalizedTextField$1;
169
170
  exports.version = version;
@@ -93,6 +93,7 @@ let LocalizedTextField = /*#__PURE__*/function (_Component) {
93
93
  hideLanguageExpansionControls: this.props.hideLanguageExpansionControls,
94
94
  defaultExpandLanguages: this.props.defaultExpandLanguages,
95
95
  isAutofocussed: this.props.isAutofocussed,
96
+ isCondensed: this.props.isCondensed,
96
97
  isDisabled: this.props.isDisabled,
97
98
  isReadOnly: this.props.isReadOnly,
98
99
  errors: this.props.errorsByLanguage,
@@ -161,16 +162,16 @@ LocalizedTextField.propTypes = process.env.NODE_ENV !== "production" ? {
161
162
  hideLanguageExpansionControls: _pt.bool,
162
163
  defaultExpandLanguages: _pt.bool,
163
164
  isAutofocussed: _pt.bool,
165
+ isCondensed: _pt.bool,
164
166
  isDisabled: _pt.bool,
165
167
  isReadOnly: _pt.bool,
166
168
  placeholder: _pt.objectOf(_pt.string),
167
169
  errorsByLanguage: _pt.objectOf(_pt.node),
168
- title: _pt.node.isRequired,
169
- hint: _pt.node
170
+ title: _pt.node.isRequired
170
171
  } : {};
171
172
  var LocalizedTextField$1 = LocalizedTextField;
172
173
 
173
174
  // NOTE: This string will be replaced on build time with the package version.
174
- var version = "19.1.0";
175
+ var version = "19.3.0";
175
176
 
176
177
  export { LocalizedTextField$1 as default, version };
@@ -31,6 +31,7 @@ export type TLocalizedTextFieldProps = {
31
31
  hideLanguageExpansionControls?: boolean;
32
32
  defaultExpandLanguages?: boolean;
33
33
  isAutofocussed?: boolean;
34
+ isCondensed?: boolean;
34
35
  isDisabled?: boolean;
35
36
  isReadOnly?: boolean;
36
37
  placeholder?: Record<string, string>;
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": "19.1.0",
4
+ "version": "19.3.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,14 +21,14 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/constraints": "19.1.0",
25
- "@commercetools-uikit/design-system": "19.1.0",
26
- "@commercetools-uikit/field-errors": "19.1.0",
27
- "@commercetools-uikit/field-label": "19.1.0",
28
- "@commercetools-uikit/field-warnings": "19.1.0",
29
- "@commercetools-uikit/localized-text-input": "19.1.0",
30
- "@commercetools-uikit/spacings": "19.1.0",
31
- "@commercetools-uikit/utils": "19.1.0",
24
+ "@commercetools-uikit/constraints": "19.3.0",
25
+ "@commercetools-uikit/design-system": "19.3.0",
26
+ "@commercetools-uikit/field-errors": "19.3.0",
27
+ "@commercetools-uikit/field-label": "19.3.0",
28
+ "@commercetools-uikit/field-warnings": "19.3.0",
29
+ "@commercetools-uikit/localized-text-input": "19.3.0",
30
+ "@commercetools-uikit/spacings": "19.3.0",
31
+ "@commercetools-uikit/utils": "19.3.0",
32
32
  "@emotion/react": "^11.10.5",
33
33
  "@emotion/styled": "^11.10.5",
34
34
  "prop-types": "15.8.1",