@snack-uikit/fields 0.51.12 → 0.51.13-preview-51a2c5b3.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.
|
@@ -3,5 +3,5 @@ type UseValueControl<TValue> = {
|
|
|
3
3
|
onChange?(value: TValue): void;
|
|
4
4
|
defaultValue?: TValue;
|
|
5
5
|
};
|
|
6
|
-
export declare function useValueControl<TValue>({ value, onChange, defaultValue }: UseValueControl<TValue>): readonly [TValue | undefined, (value: any, ...args: any[]) =>
|
|
6
|
+
export declare function useValueControl<TValue>({ value, onChange, defaultValue }: UseValueControl<TValue>): readonly [TValue | undefined, (value: any, ...args: any[]) => any];
|
|
7
7
|
export {};
|
|
@@ -3,5 +3,5 @@ type UseValueControl<TValue> = {
|
|
|
3
3
|
onChange?(value: TValue): void;
|
|
4
4
|
defaultValue?: TValue;
|
|
5
5
|
};
|
|
6
|
-
export declare function useValueControl<TValue>({ value, onChange, defaultValue }: UseValueControl<TValue>): readonly [TValue | undefined, (value: any, ...args: any[]) =>
|
|
6
|
+
export declare function useValueControl<TValue>({ value, onChange, defaultValue }: UseValueControl<TValue>): readonly [TValue | undefined, (value: any, ...args: any[]) => any];
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Fields",
|
|
7
|
-
"version": "0.51.
|
|
7
|
+
"version": "0.51.13-preview-51a2c5b3.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@snack-uikit/button": "0.19.16",
|
|
40
|
-
"@snack-uikit/calendar": "0.13.
|
|
40
|
+
"@snack-uikit/calendar": "0.13.12-preview-51a2c5b3.0",
|
|
41
41
|
"@snack-uikit/color-picker": "0.3.50",
|
|
42
42
|
"@snack-uikit/divider": "3.2.10",
|
|
43
43
|
"@snack-uikit/dropdown": "0.5.3",
|
|
44
44
|
"@snack-uikit/icons": "0.27.4",
|
|
45
45
|
"@snack-uikit/input-private": "4.8.5",
|
|
46
|
-
"@snack-uikit/list": "0.32.
|
|
46
|
+
"@snack-uikit/list": "0.32.11-preview-51a2c5b3.0",
|
|
47
47
|
"@snack-uikit/scroll": "0.10.5",
|
|
48
48
|
"@snack-uikit/skeleton": "0.6.9",
|
|
49
49
|
"@snack-uikit/slider": "0.3.30",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@snack-uikit/locale": "*"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "4a350ea43df56a8744d5797b13d56be618bdbe15"
|
|
70
70
|
}
|
|
@@ -19,17 +19,8 @@ import { FieldDecoratorProps } from '../FieldDecorator';
|
|
|
19
19
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20
20
|
export type AnyType = any;
|
|
21
21
|
|
|
22
|
-
export type OptionProps =
|
|
23
|
-
|
|
24
|
-
| BaseOptionProps
|
|
25
|
-
// eslint-disable-next-line no-use-before-define
|
|
26
|
-
| AccordionOptionProps
|
|
27
|
-
// eslint-disable-next-line no-use-before-define
|
|
28
|
-
| GroupOptionProps
|
|
29
|
-
// eslint-disable-next-line no-use-before-define
|
|
30
|
-
| NestListOptionProps;
|
|
31
|
-
|
|
32
|
-
// eslint-disable-next-line no-use-before-define
|
|
22
|
+
export type OptionProps = BaseOptionProps | AccordionOptionProps | GroupOptionProps | NestListOptionProps;
|
|
23
|
+
|
|
33
24
|
export type OptionWithoutGroup = BaseOptionProps | AccordionOptionProps | NestListOptionProps;
|
|
34
25
|
|
|
35
26
|
export type BaseOptionProps = Pick<BaseItemProps, 'beforeContent' | 'afterContent' | 'disabled'> &
|