@jobber/components 6.105.3 → 6.105.4
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.
|
@@ -2,7 +2,7 @@ import type { PropsWithChildren, ReactNode } from "react";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import type { Clearable } from "@jobber/hooks";
|
|
4
4
|
import type { FormFieldProps } from "./FormFieldTypes";
|
|
5
|
-
export interface FormFieldWrapperProps extends FormFieldProps {
|
|
5
|
+
export interface FormFieldWrapperProps extends Omit<FormFieldProps, "maxLength"> {
|
|
6
6
|
readonly error: string;
|
|
7
7
|
readonly identifier: string;
|
|
8
8
|
readonly descriptionIdentifier: string;
|
|
@@ -10,6 +10,10 @@ export interface FormFieldWrapperProps extends FormFieldProps {
|
|
|
10
10
|
readonly onClear?: () => void;
|
|
11
11
|
readonly showMiniLabel?: boolean;
|
|
12
12
|
readonly readonly?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Avoid using FormFieldWrapper's maxLength implementation. It is flawed and only exists for backwards compatibility on v1 components.
|
|
15
|
+
*/
|
|
16
|
+
readonly maxLength?: number;
|
|
13
17
|
}
|
|
14
18
|
export declare function FormFieldWrapper({ align, description, descriptionIdentifier, placeholder, value, children, invalid, error, size, prefix, suffix, max, maxLength, type, disabled, inline, identifier, clearable, onClear, readonly, toolbar, toolbarVisibility, showMiniLabel, wrapperRef, }: PropsWithChildren<FormFieldWrapperProps>): React.JSX.Element;
|
|
15
19
|
/**
|
|
@@ -11,9 +11,8 @@ export interface RowRange {
|
|
|
11
11
|
*/
|
|
12
12
|
interface InputLengthConstraint {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* Future work will separate these concerns.
|
|
14
|
+
* The maximum number of characters supported by the input.
|
|
15
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefmaxlength}
|
|
17
16
|
*/
|
|
18
17
|
readonly maxLength?: number;
|
|
19
18
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.105.
|
|
3
|
+
"version": "6.105.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -538,5 +538,5 @@
|
|
|
538
538
|
"> 1%",
|
|
539
539
|
"IE 10"
|
|
540
540
|
],
|
|
541
|
-
"gitHead": "
|
|
541
|
+
"gitHead": "a1f3e4c07d9d5fd1b764950aace65cd413d82c07"
|
|
542
542
|
}
|