@commercetools-uikit/localized-text-field 15.9.0 → 15.10.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.
|
@@ -205,7 +205,7 @@ LocalizedTextField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
205
205
|
var LocalizedTextField$1 = LocalizedTextField;
|
|
206
206
|
|
|
207
207
|
// NOTE: This string will be replaced on build time with the package version.
|
|
208
|
-
var version = "15.
|
|
208
|
+
var version = "15.10.0";
|
|
209
209
|
|
|
210
210
|
exports["default"] = LocalizedTextField$1;
|
|
211
211
|
exports.version = version;
|
|
@@ -174,7 +174,7 @@ LocalizedTextField.propTypes = {};
|
|
|
174
174
|
var LocalizedTextField$1 = LocalizedTextField;
|
|
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.10.0";
|
|
178
178
|
|
|
179
179
|
exports["default"] = LocalizedTextField$1;
|
|
180
180
|
exports.version = version;
|
|
@@ -180,6 +180,6 @@ LocalizedTextField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
180
180
|
var LocalizedTextField$1 = LocalizedTextField;
|
|
181
181
|
|
|
182
182
|
// NOTE: This string will be replaced on build time with the package version.
|
|
183
|
-
var version = "15.
|
|
183
|
+
var version = "15.10.0";
|
|
184
184
|
|
|
185
185
|
export { LocalizedTextField$1 as default, version };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Component, type ChangeEventHandler, type FocusEventHandler, type KeyboardEvent, type MouseEvent, 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
|
interface HTMLLocalizedInputElement extends HTMLInputElement {
|
|
8
8
|
language: string;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
type TLocalizedTextFieldProps = {
|
|
11
11
|
id?: string;
|
|
12
12
|
horizontalConstraint?: 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
|
|
13
13
|
errors?: TFieldErrors;
|
|
@@ -35,7 +35,7 @@ declare type TLocalizedTextFieldProps = {
|
|
|
35
35
|
hintIcon?: ReactElement;
|
|
36
36
|
badge?: ReactNode;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
type TLocalizedTextFieldSTate = Pick<TLocalizedTextFieldProps, 'id'>;
|
|
39
39
|
declare class LocalizedTextField extends Component<TLocalizedTextFieldProps, TLocalizedTextFieldSTate> {
|
|
40
40
|
static displayName: string;
|
|
41
41
|
static defaultProps: Pick<TLocalizedTextFieldProps, 'horizontalConstraint'>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/localized-text-field",
|
|
3
3
|
"description": "A controlled text input component for localized single-line strings with validation states.",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.10.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/design-system": "15.
|
|
26
|
-
"@commercetools-uikit/field-errors": "15.
|
|
27
|
-
"@commercetools-uikit/field-label": "15.
|
|
28
|
-
"@commercetools-uikit/localized-text-input": "15.
|
|
29
|
-
"@commercetools-uikit/spacings": "15.
|
|
30
|
-
"@commercetools-uikit/utils": "15.
|
|
24
|
+
"@commercetools-uikit/constraints": "15.10.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "15.10.0",
|
|
26
|
+
"@commercetools-uikit/field-errors": "15.10.0",
|
|
27
|
+
"@commercetools-uikit/field-label": "15.10.0",
|
|
28
|
+
"@commercetools-uikit/localized-text-input": "15.10.0",
|
|
29
|
+
"@commercetools-uikit/spacings": "15.10.0",
|
|
30
|
+
"@commercetools-uikit/utils": "15.10.0",
|
|
31
31
|
"@emotion/react": "^11.4.0",
|
|
32
32
|
"@emotion/styled": "^11.3.0",
|
|
33
33
|
"prop-types": "15.8.1",
|