@commercetools-uikit/date-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
|
@@ -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
|
| `minValue` | `string` | | | A minimum selectable date. Must either be an empty string or a date formatted as "YYYY-MM-DD". |
|
|
67
68
|
| `maxValue` | `string` | | | A maximum selectable date. Must either be an empty string or a date formatted as "YYYY-MM-DD". |
|
|
68
69
|
| `title` | `union`<br/>Possible values:<br/>`string , ReactNode` | ✅ | | Title of the label |
|
|
@@ -118,6 +118,7 @@ let DateField = /*#__PURE__*/function (_Component) {
|
|
|
118
118
|
minValue: this.props.minValue,
|
|
119
119
|
maxValue: this.props.maxValue,
|
|
120
120
|
onChange: this.props.onChange,
|
|
121
|
+
isCondensed: this.props.isCondensed,
|
|
121
122
|
isDisabled: this.props.isDisabled,
|
|
122
123
|
isReadOnly: this.props.isReadOnly,
|
|
123
124
|
hasWarning: hasWarning,
|
|
@@ -180,6 +181,7 @@ DateField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
180
181
|
isDisabled: _pt__default["default"].bool,
|
|
181
182
|
isReadOnly: _pt__default["default"].bool,
|
|
182
183
|
placeholder: _pt__default["default"].string,
|
|
184
|
+
isCondensed: _pt__default["default"].bool,
|
|
183
185
|
minValue: _pt__default["default"].string,
|
|
184
186
|
maxValue: _pt__default["default"].string,
|
|
185
187
|
title: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].node]).isRequired,
|
|
@@ -192,7 +194,7 @@ DateField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
192
194
|
var DateField$1 = DateField;
|
|
193
195
|
|
|
194
196
|
// NOTE: This string will be replaced on build time with the package version.
|
|
195
|
-
var version = "19.
|
|
197
|
+
var version = "19.3.0";
|
|
196
198
|
|
|
197
199
|
exports["default"] = DateField$1;
|
|
198
200
|
exports.version = version;
|
|
@@ -113,6 +113,7 @@ let DateField = /*#__PURE__*/function (_Component) {
|
|
|
113
113
|
minValue: this.props.minValue,
|
|
114
114
|
maxValue: this.props.maxValue,
|
|
115
115
|
onChange: this.props.onChange,
|
|
116
|
+
isCondensed: this.props.isCondensed,
|
|
116
117
|
isDisabled: this.props.isDisabled,
|
|
117
118
|
isReadOnly: this.props.isReadOnly,
|
|
118
119
|
hasWarning: hasWarning,
|
|
@@ -162,7 +163,7 @@ DateField.propTypes = {};
|
|
|
162
163
|
var DateField$1 = DateField;
|
|
163
164
|
|
|
164
165
|
// NOTE: This string will be replaced on build time with the package version.
|
|
165
|
-
var version = "19.
|
|
166
|
+
var version = "19.3.0";
|
|
166
167
|
|
|
167
168
|
exports["default"] = DateField$1;
|
|
168
169
|
exports.version = version;
|
|
@@ -93,6 +93,7 @@ let DateField = /*#__PURE__*/function (_Component) {
|
|
|
93
93
|
minValue: this.props.minValue,
|
|
94
94
|
maxValue: this.props.maxValue,
|
|
95
95
|
onChange: this.props.onChange,
|
|
96
|
+
isCondensed: this.props.isCondensed,
|
|
96
97
|
isDisabled: this.props.isDisabled,
|
|
97
98
|
isReadOnly: this.props.isReadOnly,
|
|
98
99
|
hasWarning: hasWarning,
|
|
@@ -155,6 +156,7 @@ DateField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
155
156
|
isDisabled: _pt.bool,
|
|
156
157
|
isReadOnly: _pt.bool,
|
|
157
158
|
placeholder: _pt.string,
|
|
159
|
+
isCondensed: _pt.bool,
|
|
158
160
|
minValue: _pt.string,
|
|
159
161
|
maxValue: _pt.string,
|
|
160
162
|
title: _pt.oneOfType([_pt.string, _pt.node]).isRequired,
|
|
@@ -167,6 +169,6 @@ DateField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
167
169
|
var DateField$1 = DateField;
|
|
168
170
|
|
|
169
171
|
// NOTE: This string will be replaced on build time with the package version.
|
|
170
|
-
var version = "19.
|
|
172
|
+
var version = "19.3.0";
|
|
171
173
|
|
|
172
174
|
export { DateField$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/date-field",
|
|
3
3
|
"description": "A controlled date input component for single date, with validation states and a label.",
|
|
4
|
-
"version": "19.
|
|
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.
|
|
25
|
-
"@commercetools-uikit/date-input": "19.
|
|
26
|
-
"@commercetools-uikit/design-system": "19.
|
|
27
|
-
"@commercetools-uikit/field-errors": "19.
|
|
28
|
-
"@commercetools-uikit/field-label": "19.
|
|
29
|
-
"@commercetools-uikit/field-warnings": "19.
|
|
30
|
-
"@commercetools-uikit/spacings": "19.
|
|
31
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/constraints": "19.3.0",
|
|
25
|
+
"@commercetools-uikit/date-input": "19.3.0",
|
|
26
|
+
"@commercetools-uikit/design-system": "19.3.0",
|
|
27
|
+
"@commercetools-uikit/field-errors": "19.3.0",
|
|
28
|
+
"@commercetools-uikit/field-label": "19.3.0",
|
|
29
|
+
"@commercetools-uikit/field-warnings": "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",
|