@ttoss/forms 0.15.0 → 0.15.2
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/dist/index.d.ts +4 -11
- package/dist/index.js +1 -2
- package/package.json +10 -7
package/dist/index.d.ts
CHANGED
|
@@ -5,9 +5,7 @@ export * from 'react-hook-form';
|
|
|
5
5
|
import * as yup from 'yup';
|
|
6
6
|
export { yup };
|
|
7
7
|
import * as React from 'react';
|
|
8
|
-
import
|
|
9
|
-
import { BoxProps, CheckboxProps, LabelProps, RadioProps, FlexProps } from '@ttoss/ui';
|
|
10
|
-
import * as theme_ui from 'theme-ui';
|
|
8
|
+
import { BoxProps, CheckboxProps, InputProps, LabelProps, RadioProps, SelectProps, TextareaProps, FlexProps } from '@ttoss/ui';
|
|
11
9
|
|
|
12
10
|
declare const Form: <TFieldValues extends FieldValues = FieldValues>({ children, onSubmit, sx, ...formMethods }: {
|
|
13
11
|
children?: React.ReactNode;
|
|
@@ -33,10 +31,7 @@ declare const FormFieldCheckbox: <TFieldValues extends FieldValues = FieldValues
|
|
|
33
31
|
declare const FormFieldInput: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ label, name, tooltip, onTooltipClick, ...inputProps }: {
|
|
34
32
|
label?: string | undefined;
|
|
35
33
|
name: TName;
|
|
36
|
-
} &
|
|
37
|
-
leadingIcon?: _ttoss_ui.IconType | undefined;
|
|
38
|
-
trailingIcon?: _ttoss_ui.IconType | undefined;
|
|
39
|
-
} & Pick<LabelProps, "tooltip" | "onTooltipClick">) => JSX.Element;
|
|
34
|
+
} & InputProps & Pick<LabelProps, "tooltip" | "onTooltipClick">) => JSX.Element;
|
|
40
35
|
|
|
41
36
|
type FormRadioOption$1 = {
|
|
42
37
|
value: string | number;
|
|
@@ -56,14 +51,12 @@ declare const FormFieldSelect: <TFieldValues extends FieldValues = FieldValues>(
|
|
|
56
51
|
label?: string | undefined;
|
|
57
52
|
name: FieldPath<TFieldValues>;
|
|
58
53
|
options: FormRadioOption[];
|
|
59
|
-
} &
|
|
54
|
+
} & SelectProps) => JSX.Element;
|
|
60
55
|
|
|
61
56
|
declare const FormFieldTextarea: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ label, name, ...textareaProps }: {
|
|
62
57
|
label?: string | undefined;
|
|
63
58
|
name: TName;
|
|
64
|
-
} &
|
|
65
|
-
trailingIcon?: _ttoss_ui.IconType | undefined;
|
|
66
|
-
}) => JSX.Element;
|
|
59
|
+
} & TextareaProps) => JSX.Element;
|
|
67
60
|
|
|
68
61
|
declare const useFormGroup: () => {
|
|
69
62
|
level: number | undefined;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/forms",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "ttoss",
|
|
6
6
|
"contributors": [
|
|
@@ -25,21 +25,24 @@
|
|
|
25
25
|
"yup": "^1.1.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@ttoss/ui": "^
|
|
29
|
-
"react": "
|
|
28
|
+
"@ttoss/ui": "^",
|
|
29
|
+
"react": ">=16.8.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@ttoss/config": "^1.29.
|
|
33
|
-
"@ttoss/test-utils": "^1.21.
|
|
34
|
-
"@ttoss/ui": "^1.32.
|
|
32
|
+
"@ttoss/config": "^1.29.4",
|
|
33
|
+
"@ttoss/test-utils": "^1.21.3",
|
|
34
|
+
"@ttoss/ui": "^1.32.2",
|
|
35
35
|
"@types/jest": "^29.5.0",
|
|
36
|
+
"@types/react": "^18.0.35",
|
|
36
37
|
"jest": "^29.5.0",
|
|
37
38
|
"react": "^18.2.0",
|
|
38
39
|
"react-hook-form": "^7.43.9",
|
|
40
|
+
"theme-ui": "^0.15.7",
|
|
41
|
+
"tsup": "^6.7.0",
|
|
39
42
|
"yup": "^1.1.0"
|
|
40
43
|
},
|
|
41
44
|
"publishConfig": {
|
|
42
45
|
"access": "public"
|
|
43
46
|
},
|
|
44
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "0ea6f4641c1d97631f38c72da681a9e2dc54d0b7"
|
|
45
48
|
}
|