@commercetools-uikit/text-field 19.0.0 → 19.2.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
@@ -58,6 +58,7 @@ export default Example;
58
58
  | `onBlur` | `FocusEventHandler` | | | Called when input is blurred |
59
59
  | `onFocus` | `FocusEventHandler` | | | Called when input is focused |
60
60
  | `isAutofocussed` | `boolean` | | | Focus the input on initial render |
61
+ | `isCondensed` | `boolean` | | | Use this property to reduce the paddings of the component for a ui compact variant |
61
62
  | `isDisabled` | `boolean` | | | Indicates that the input cannot be modified (e.g not authorized, or changes currently saving). |
62
63
  | `isReadOnly` | `boolean` | | | Indicates that the field is displaying read-only content |
63
64
  | `placeholder` | `string` | | | Placeholder text for the input |
@@ -117,6 +117,7 @@ let TextField = /*#__PURE__*/function (_Component) {
117
117
  onBlur: this.props.onBlur,
118
118
  onFocus: this.props.onFocus,
119
119
  isAutofocussed: this.props.isAutofocussed,
120
+ isCondensed: this.props.isCondensed,
120
121
  isDisabled: this.props.isDisabled,
121
122
  isReadOnly: this.props.isReadOnly,
122
123
  hasWarning: hasWarning,
@@ -178,6 +179,7 @@ TextField.propTypes = process.env.NODE_ENV !== "production" ? {
178
179
  onBlur: _pt__default["default"].func,
179
180
  onFocus: _pt__default["default"].func,
180
181
  isAutofocussed: _pt__default["default"].bool,
182
+ isCondensed: _pt__default["default"].bool,
181
183
  isDisabled: _pt__default["default"].bool,
182
184
  isReadOnly: _pt__default["default"].bool,
183
185
  placeholder: _pt__default["default"].string,
@@ -191,7 +193,7 @@ TextField.propTypes = process.env.NODE_ENV !== "production" ? {
191
193
  var TextField$1 = TextField;
192
194
 
193
195
  // NOTE: This string will be replaced on build time with the package version.
194
- var version = "19.0.0";
196
+ var version = "19.2.0";
195
197
 
196
198
  exports["default"] = TextField$1;
197
199
  exports.version = version;
@@ -112,6 +112,7 @@ let TextField = /*#__PURE__*/function (_Component) {
112
112
  onBlur: this.props.onBlur,
113
113
  onFocus: this.props.onFocus,
114
114
  isAutofocussed: this.props.isAutofocussed,
115
+ isCondensed: this.props.isCondensed,
115
116
  isDisabled: this.props.isDisabled,
116
117
  isReadOnly: this.props.isReadOnly,
117
118
  hasWarning: hasWarning,
@@ -161,7 +162,7 @@ TextField.propTypes = {};
161
162
  var TextField$1 = TextField;
162
163
 
163
164
  // NOTE: This string will be replaced on build time with the package version.
164
- var version = "19.0.0";
165
+ var version = "19.2.0";
165
166
 
166
167
  exports["default"] = TextField$1;
167
168
  exports.version = version;
@@ -92,6 +92,7 @@ let TextField = /*#__PURE__*/function (_Component) {
92
92
  onBlur: this.props.onBlur,
93
93
  onFocus: this.props.onFocus,
94
94
  isAutofocussed: this.props.isAutofocussed,
95
+ isCondensed: this.props.isCondensed,
95
96
  isDisabled: this.props.isDisabled,
96
97
  isReadOnly: this.props.isReadOnly,
97
98
  hasWarning: hasWarning,
@@ -153,6 +154,7 @@ TextField.propTypes = process.env.NODE_ENV !== "production" ? {
153
154
  onBlur: _pt.func,
154
155
  onFocus: _pt.func,
155
156
  isAutofocussed: _pt.bool,
157
+ isCondensed: _pt.bool,
156
158
  isDisabled: _pt.bool,
157
159
  isReadOnly: _pt.bool,
158
160
  placeholder: _pt.string,
@@ -166,6 +168,6 @@ TextField.propTypes = process.env.NODE_ENV !== "production" ? {
166
168
  var TextField$1 = TextField;
167
169
 
168
170
  // NOTE: This string will be replaced on build time with the package version.
169
- var version = "19.0.0";
171
+ var version = "19.2.0";
170
172
 
171
173
  export { TextField$1 as default, version };
@@ -21,6 +21,7 @@ export type TTextFieldProps = {
21
21
  onBlur?: FocusEventHandler<HTMLInputElement>;
22
22
  onFocus?: FocusEventHandler<HTMLInputElement>;
23
23
  isAutofocussed?: boolean;
24
+ isCondensed?: boolean;
24
25
  isDisabled?: boolean;
25
26
  isReadOnly?: boolean;
26
27
  placeholder?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/text-field",
3
3
  "description": "A controlled text input component for single-line strings with validation states.",
4
- "version": "19.0.0",
4
+ "version": "19.2.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.0.0",
25
- "@commercetools-uikit/design-system": "19.0.0",
26
- "@commercetools-uikit/field-errors": "19.0.0",
27
- "@commercetools-uikit/field-label": "19.0.0",
28
- "@commercetools-uikit/field-warnings": "19.0.0",
29
- "@commercetools-uikit/spacings-stack": "19.0.0",
30
- "@commercetools-uikit/text-input": "19.0.0",
31
- "@commercetools-uikit/utils": "19.0.0",
24
+ "@commercetools-uikit/constraints": "19.2.0",
25
+ "@commercetools-uikit/design-system": "19.2.0",
26
+ "@commercetools-uikit/field-errors": "19.2.0",
27
+ "@commercetools-uikit/field-label": "19.2.0",
28
+ "@commercetools-uikit/field-warnings": "19.2.0",
29
+ "@commercetools-uikit/spacings-stack": "19.2.0",
30
+ "@commercetools-uikit/text-input": "19.2.0",
31
+ "@commercetools-uikit/utils": "19.2.0",
32
32
  "@emotion/react": "^11.10.5",
33
33
  "@emotion/styled": "^11.10.5",
34
34
  "prop-types": "15.8.1",