@producteca/producteca-ui-kit 1.56.4 → 1.57.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ReduxFormInput } from '../../hooks/useReduxFormField';
|
|
3
|
+
|
|
4
|
+
type ToggleItemBase = {
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
label: string;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type BuildSingleToggleItemParams = Pick<ToggleItemBase, 'id' | 'name' | 'label' | 'checked' | 'disabled'>;
|
|
12
|
+
type ResolveCheckedValueParams = {
|
|
13
|
+
input?: ReduxFormInput;
|
|
14
|
+
inputName?: string;
|
|
15
|
+
checked?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const _buildSingleToggleItem: ({ id, name, label, checked, disabled, }: BuildSingleToggleItemParams) => ToggleItemBase;
|
|
18
|
+
export declare const _getBooleanValueFromInputEvent: (event: React.ChangeEvent<HTMLInputElement>) => boolean;
|
|
19
|
+
export declare const _resolveCheckedValue: ({ input, inputName, checked }: ResolveCheckedValueParams) => any;
|
|
20
|
+
export {};
|