@commercetools-uikit/time-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
|
@@ -65,6 +65,7 @@ export default Example;
|
|
|
65
65
|
| `isDisabled` | `boolean` | | | Indicates that the input cannot be modified (e.g not authorized, or changes currently saving). |
|
|
66
66
|
| `isReadOnly` | `boolean` | | | Indicates that the input is read only (no changes allowed). |
|
|
67
67
|
| `placeholder` | `string` | | | Placeholder text for the input |
|
|
68
|
+
| `isCondensed` | `boolean` | | | Use this property to reduce the paddings of the component for a ui compact variant |
|
|
68
69
|
| `title` | `ReactNode` | ✅ | | Title of the label |
|
|
69
70
|
| `hint` | `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. |
|
|
70
71
|
| `description` | `ReactNode` | | | Provides a description for the title. |
|
|
@@ -115,6 +115,7 @@ let TimeField = /*#__PURE__*/function (_Component) {
|
|
|
115
115
|
onFocus: this.props.onFocus,
|
|
116
116
|
onBlur: this.props.onBlur,
|
|
117
117
|
isAutofocussed: this.props.isAutofocussed,
|
|
118
|
+
isCondensed: this.props.isCondensed,
|
|
118
119
|
isDisabled: this.props.isDisabled,
|
|
119
120
|
hasWarning: hasWarning,
|
|
120
121
|
hasError: hasError,
|
|
@@ -178,6 +179,7 @@ TimeField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
178
179
|
isDisabled: _pt__default["default"].bool,
|
|
179
180
|
isReadOnly: _pt__default["default"].bool,
|
|
180
181
|
placeholder: _pt__default["default"].string,
|
|
182
|
+
isCondensed: _pt__default["default"].bool,
|
|
181
183
|
title: _pt__default["default"].node.isRequired,
|
|
182
184
|
hint: _pt__default["default"].node,
|
|
183
185
|
description: _pt__default["default"].node,
|
|
@@ -188,7 +190,7 @@ TimeField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
188
190
|
var TimeField$1 = TimeField;
|
|
189
191
|
|
|
190
192
|
// NOTE: This string will be replaced on build time with the package version.
|
|
191
|
-
var version = "19.
|
|
193
|
+
var version = "19.2.0";
|
|
192
194
|
|
|
193
195
|
exports["default"] = TimeField$1;
|
|
194
196
|
exports.version = version;
|
|
@@ -110,6 +110,7 @@ let TimeField = /*#__PURE__*/function (_Component) {
|
|
|
110
110
|
onFocus: this.props.onFocus,
|
|
111
111
|
onBlur: this.props.onBlur,
|
|
112
112
|
isAutofocussed: this.props.isAutofocussed,
|
|
113
|
+
isCondensed: this.props.isCondensed,
|
|
113
114
|
isDisabled: this.props.isDisabled,
|
|
114
115
|
hasWarning: hasWarning,
|
|
115
116
|
hasError: hasError,
|
|
@@ -158,7 +159,7 @@ TimeField.propTypes = {};
|
|
|
158
159
|
var TimeField$1 = TimeField;
|
|
159
160
|
|
|
160
161
|
// NOTE: This string will be replaced on build time with the package version.
|
|
161
|
-
var version = "19.
|
|
162
|
+
var version = "19.2.0";
|
|
162
163
|
|
|
163
164
|
exports["default"] = TimeField$1;
|
|
164
165
|
exports.version = version;
|
|
@@ -90,6 +90,7 @@ let TimeField = /*#__PURE__*/function (_Component) {
|
|
|
90
90
|
onFocus: this.props.onFocus,
|
|
91
91
|
onBlur: this.props.onBlur,
|
|
92
92
|
isAutofocussed: this.props.isAutofocussed,
|
|
93
|
+
isCondensed: this.props.isCondensed,
|
|
93
94
|
isDisabled: this.props.isDisabled,
|
|
94
95
|
hasWarning: hasWarning,
|
|
95
96
|
hasError: hasError,
|
|
@@ -153,6 +154,7 @@ TimeField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
153
154
|
isDisabled: _pt.bool,
|
|
154
155
|
isReadOnly: _pt.bool,
|
|
155
156
|
placeholder: _pt.string,
|
|
157
|
+
isCondensed: _pt.bool,
|
|
156
158
|
title: _pt.node.isRequired,
|
|
157
159
|
hint: _pt.node,
|
|
158
160
|
description: _pt.node,
|
|
@@ -163,6 +165,6 @@ TimeField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
163
165
|
var TimeField$1 = TimeField;
|
|
164
166
|
|
|
165
167
|
// NOTE: This string will be replaced on build time with the package version.
|
|
166
|
-
var version = "19.
|
|
168
|
+
var version = "19.2.0";
|
|
167
169
|
|
|
168
170
|
export { TimeField$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/time-field",
|
|
3
3
|
"description": "A controlled date input component for single date.",
|
|
4
|
-
"version": "19.
|
|
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.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.
|
|
26
|
-
"@commercetools-uikit/field-errors": "19.
|
|
27
|
-
"@commercetools-uikit/field-label": "19.
|
|
28
|
-
"@commercetools-uikit/field-warnings": "19.
|
|
29
|
-
"@commercetools-uikit/spacings-stack": "19.
|
|
30
|
-
"@commercetools-uikit/time-input": "19.
|
|
31
|
-
"@commercetools-uikit/utils": "19.
|
|
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/time-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",
|