@commercetools-uikit/date-field 15.9.0 → 15.11.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.
|
@@ -199,7 +199,7 @@ DateField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
199
199
|
var DateField$1 = DateField;
|
|
200
200
|
|
|
201
201
|
// NOTE: This string will be replaced on build time with the package version.
|
|
202
|
-
var version = "15.
|
|
202
|
+
var version = "15.11.0";
|
|
203
203
|
|
|
204
204
|
exports["default"] = DateField$1;
|
|
205
205
|
exports.version = version;
|
|
@@ -171,7 +171,7 @@ DateField.propTypes = {};
|
|
|
171
171
|
var DateField$1 = DateField;
|
|
172
172
|
|
|
173
173
|
// NOTE: This string will be replaced on build time with the package version.
|
|
174
|
-
var version = "15.
|
|
174
|
+
var version = "15.11.0";
|
|
175
175
|
|
|
176
176
|
exports["default"] = DateField$1;
|
|
177
177
|
exports.version = version;
|
|
@@ -174,6 +174,6 @@ DateField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
174
174
|
var DateField$1 = DateField;
|
|
175
175
|
|
|
176
176
|
// NOTE: This string will be replaced on build time with the package version.
|
|
177
|
-
var version = "15.
|
|
177
|
+
var version = "15.11.0";
|
|
178
178
|
|
|
179
179
|
export { DateField$1 as default, version };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Component, type FocusEventHandler, type ReactElement, type ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
type TErrorRenderer = (key: string, error?: boolean) => ReactNode;
|
|
3
|
+
type TFieldErrors = Record<string, boolean>;
|
|
4
|
+
type TCustomFormErrors<Values> = {
|
|
5
5
|
[K in keyof Values]?: TFieldErrors;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type TCustomEvent = {
|
|
8
8
|
target: {
|
|
9
9
|
id?: string;
|
|
10
10
|
name?: string;
|
|
11
11
|
value?: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type TDateFieldProps = {
|
|
15
15
|
id?: string;
|
|
16
16
|
horizontalConstraint?: 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
|
|
17
17
|
errors?: TFieldErrors;
|
|
@@ -35,7 +35,7 @@ declare type TDateFieldProps = {
|
|
|
35
35
|
hintIcon?: ReactElement;
|
|
36
36
|
badge?: ReactNode;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
type TDateFieldState = Pick<TDateFieldProps, 'id'>;
|
|
39
39
|
declare class DateField extends Component<TDateFieldProps, TDateFieldState> {
|
|
40
40
|
static displayName: string;
|
|
41
41
|
static defaultProps: {
|
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": "15.
|
|
4
|
+
"version": "15.11.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.19.0",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.19.1",
|
|
24
|
-
"@commercetools-uikit/constraints": "15.
|
|
25
|
-
"@commercetools-uikit/date-input": "15.
|
|
26
|
-
"@commercetools-uikit/design-system": "15.
|
|
27
|
-
"@commercetools-uikit/field-errors": "15.
|
|
28
|
-
"@commercetools-uikit/field-label": "15.
|
|
29
|
-
"@commercetools-uikit/spacings": "15.
|
|
30
|
-
"@commercetools-uikit/utils": "15.
|
|
24
|
+
"@commercetools-uikit/constraints": "15.11.0",
|
|
25
|
+
"@commercetools-uikit/date-input": "15.11.0",
|
|
26
|
+
"@commercetools-uikit/design-system": "15.11.0",
|
|
27
|
+
"@commercetools-uikit/field-errors": "15.11.0",
|
|
28
|
+
"@commercetools-uikit/field-label": "15.11.0",
|
|
29
|
+
"@commercetools-uikit/spacings": "15.11.0",
|
|
30
|
+
"@commercetools-uikit/utils": "15.11.0",
|
|
31
31
|
"@emotion/react": "^11.4.0",
|
|
32
32
|
"@emotion/styled": "^11.3.0",
|
|
33
33
|
"prop-types": "15.8.1",
|