@commercetools-uikit/date-range-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
@@ -63,6 +63,7 @@ export default Example;
63
63
  | `isDisabled` | `boolean` | | | Indicates that the input cannot be modified (e.g not authorized, or changes currently saving). |
64
64
  | `isReadOnly` | `boolean` | | | Indicates that the field is displaying read-only content |
65
65
  | `placeholder` | `string` | | | Placeholder text for the input |
66
+ | `isCondensed` | `boolean` | | | Use this property to reduce the paddings of the component for a ui compact variant |
66
67
  | `title` | `union`<br/>Possible values:<br/>`string , ReactNode` | ✅ | | Title of the label |
67
68
  | `hint` | `union`<br/>Possible values:<br/>`string , ReactNode` | | | 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`. |
68
69
  | `description` | `union`<br/>Possible values:<br/>`string , ReactNode` | | | Provides a description for the title. |
@@ -113,6 +113,7 @@ let DateRangeField = /*#__PURE__*/function (_Component) {
113
113
  onChange: this.props.onChange,
114
114
  onFocus: this.props.onFocus,
115
115
  onBlur: this.props.onBlur,
116
+ isCondensed: this.props.isCondensed,
116
117
  isDisabled: this.props.isDisabled,
117
118
  isReadOnly: this.props.isReadOnly,
118
119
  hasError: hasError,
@@ -174,6 +175,7 @@ DateRangeField.propTypes = process.env.NODE_ENV !== "production" ? {
174
175
  isDisabled: _pt__default["default"].bool,
175
176
  isReadOnly: _pt__default["default"].bool,
176
177
  placeholder: _pt__default["default"].string,
178
+ isCondensed: _pt__default["default"].bool,
177
179
  title: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].node]).isRequired,
178
180
  hint: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].node]),
179
181
  description: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].node]),
@@ -184,7 +186,7 @@ DateRangeField.propTypes = process.env.NODE_ENV !== "production" ? {
184
186
  var DateRangeField$1 = DateRangeField;
185
187
 
186
188
  // NOTE: This string will be replaced on build time with the package version.
187
- var version = "19.0.0";
189
+ var version = "19.2.0";
188
190
 
189
191
  exports["default"] = DateRangeField$1;
190
192
  exports.version = version;
@@ -108,6 +108,7 @@ let DateRangeField = /*#__PURE__*/function (_Component) {
108
108
  onChange: this.props.onChange,
109
109
  onFocus: this.props.onFocus,
110
110
  onBlur: this.props.onBlur,
111
+ isCondensed: this.props.isCondensed,
111
112
  isDisabled: this.props.isDisabled,
112
113
  isReadOnly: this.props.isReadOnly,
113
114
  hasError: hasError,
@@ -156,7 +157,7 @@ DateRangeField.propTypes = {};
156
157
  var DateRangeField$1 = DateRangeField;
157
158
 
158
159
  // NOTE: This string will be replaced on build time with the package version.
159
- var version = "19.0.0";
160
+ var version = "19.2.0";
160
161
 
161
162
  exports["default"] = DateRangeField$1;
162
163
  exports.version = version;
@@ -88,6 +88,7 @@ let DateRangeField = /*#__PURE__*/function (_Component) {
88
88
  onChange: this.props.onChange,
89
89
  onFocus: this.props.onFocus,
90
90
  onBlur: this.props.onBlur,
91
+ isCondensed: this.props.isCondensed,
91
92
  isDisabled: this.props.isDisabled,
92
93
  isReadOnly: this.props.isReadOnly,
93
94
  hasError: hasError,
@@ -149,6 +150,7 @@ DateRangeField.propTypes = process.env.NODE_ENV !== "production" ? {
149
150
  isDisabled: _pt.bool,
150
151
  isReadOnly: _pt.bool,
151
152
  placeholder: _pt.string,
153
+ isCondensed: _pt.bool,
152
154
  title: _pt.oneOfType([_pt.string, _pt.node]).isRequired,
153
155
  hint: _pt.oneOfType([_pt.string, _pt.node]),
154
156
  description: _pt.oneOfType([_pt.string, _pt.node]),
@@ -159,6 +161,6 @@ DateRangeField.propTypes = process.env.NODE_ENV !== "production" ? {
159
161
  var DateRangeField$1 = DateRangeField;
160
162
 
161
163
  // NOTE: This string will be replaced on build time with the package version.
162
- var version = "19.0.0";
164
+ var version = "19.2.0";
163
165
 
164
166
  export { DateRangeField$1 as default, version };
@@ -30,6 +30,7 @@ export type TDateRangeFieldProps = {
30
30
  isDisabled?: boolean;
31
31
  isReadOnly?: boolean;
32
32
  placeholder?: string;
33
+ isCondensed?: boolean;
33
34
  title: string | ReactNode;
34
35
  hint?: string | ReactNode;
35
36
  description?: string | ReactNode;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/date-range-field",
3
3
  "description": "A controlled date input component for a date range, with validation states and a label.",
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/date-range-input": "19.0.0",
26
- "@commercetools-uikit/design-system": "19.0.0",
27
- "@commercetools-uikit/field-errors": "19.0.0",
28
- "@commercetools-uikit/field-label": "19.0.0",
29
- "@commercetools-uikit/field-warnings": "19.0.0",
30
- "@commercetools-uikit/spacings": "19.0.0",
31
- "@commercetools-uikit/utils": "19.0.0",
24
+ "@commercetools-uikit/constraints": "19.2.0",
25
+ "@commercetools-uikit/date-range-input": "19.2.0",
26
+ "@commercetools-uikit/design-system": "19.2.0",
27
+ "@commercetools-uikit/field-errors": "19.2.0",
28
+ "@commercetools-uikit/field-label": "19.2.0",
29
+ "@commercetools-uikit/field-warnings": "19.2.0",
30
+ "@commercetools-uikit/spacings": "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",