@s_mart/form 6.2.1 → 7.0.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/dist/index.d.mts +2 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -620,7 +620,7 @@ type FieldLabelProps = {
|
|
|
620
620
|
|
|
621
621
|
declare const FieldLabel: ({ label, required, regular }: FieldLabelProps) => react_jsx_runtime.JSX.Element;
|
|
622
622
|
|
|
623
|
-
type SearchableV2Props<T extends FieldValues | string | number> = Omit<AutocompleteProps$1<T, true, true, true>, 'renderInput' | 'size' | 'onInputChange' | 'onChange' | 'getOptionLabel' | 'getOptionKey' | 'defaultValue'> & Omit<ControllerProps, 'render' | 'control'> & {
|
|
623
|
+
type SearchableV2Props<T extends FieldValues | string | number> = Omit<AutocompleteProps$1<T, true, true, true>, 'renderInput' | 'size' | 'onInputChange' | 'onChange' | 'getOptionLabel' | 'getOptionKey' | 'defaultValue' | 'value'> & Omit<ControllerProps, 'render' | 'control'> & {
|
|
624
624
|
options: T[];
|
|
625
625
|
textFieldProps?: TextFieldProps$1;
|
|
626
626
|
label?: React.ReactNode;
|
|
@@ -644,6 +644,7 @@ type SearchableV2Props<T extends FieldValues | string | number> = Omit<Autocompl
|
|
|
644
644
|
*/
|
|
645
645
|
info?: React.ReactNode;
|
|
646
646
|
defaultValue?: T | T[];
|
|
647
|
+
value?: T | T[];
|
|
647
648
|
placeholder?: string;
|
|
648
649
|
onInputChange?: (value: string) => void;
|
|
649
650
|
onChange?: (value: T | T[]) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s_mart/form",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"main": "./dist/index.mjs",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"lodash-es": "^4.17.21",
|
|
19
19
|
"tsup": "8.0.2",
|
|
20
20
|
"typescript": ">=5.4.2",
|
|
21
|
-
"@s_mart/core": "
|
|
21
|
+
"@s_mart/core": "7.0.0",
|
|
22
22
|
"@s_mart/masks": "5.1.0",
|
|
23
23
|
"eslint-config-smarten": "4.1.0",
|
|
24
24
|
"@s_mart/rules": "5.1.1",
|
|
25
|
-
"@s_mart/solid-icons": "5.
|
|
26
|
-
"@s_mart/regular-icons": "5.
|
|
25
|
+
"@s_mart/solid-icons": "5.2.0",
|
|
26
|
+
"@s_mart/regular-icons": "5.2.0",
|
|
27
27
|
"@s_mart/tokens": "5.1.0",
|
|
28
28
|
"@s_mart/typed": "6.0.0",
|
|
29
29
|
"@s_mart/utils": "5.1.0"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react-hook-form": "^7.51.0",
|
|
43
43
|
"typescript": ">=5.4.2",
|
|
44
44
|
"zod": ">=3.21.4",
|
|
45
|
-
"@s_mart/core": "
|
|
45
|
+
"@s_mart/core": "7.0.0",
|
|
46
46
|
"@s_mart/masks": "5.1.0",
|
|
47
47
|
"@s_mart/rules": "5.1.1",
|
|
48
48
|
"@s_mart/tokens": "5.1.0",
|