react-store-input 0.2.6 → 0.5.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/CHANGELOG.md +136 -0
- package/README.md +211 -199
- package/dist/index.d.mts +127 -11
- package/dist/index.d.ts +127 -11
- package/dist/index.js +542 -280
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +529 -272
- package/dist/index.mjs.map +1 -0
- package/dist/text-editor.d.mts +11 -0
- package/dist/text-editor.d.ts +11 -0
- package/dist/text-editor.js +203 -0
- package/dist/text-editor.js.map +1 -0
- package/dist/text-editor.mjs +178 -0
- package/dist/text-editor.mjs.map +1 -0
- package/package.json +78 -18
- package/dist/create_render.d.mts +0 -9
- package/dist/create_render.d.ts +0 -9
- package/dist/create_render.js +0 -51
- package/dist/create_render.mjs +0 -25
- package/dist/text_editor.d.mts +0 -13
- package/dist/text_editor.d.ts +0 -13
- package/dist/text_editor.js +0 -135
- package/dist/text_editor.mjs +0 -112
- package/dist/use_form_store.d.mts +0 -16
- package/dist/use_form_store.d.ts +0 -16
- package/dist/use_form_store.js +0 -365
- package/dist/use_form_store.mjs +0 -340
- package/dist/use_store_component.d.mts +0 -23
- package/dist/use_store_component.d.ts +0 -23
- package/dist/use_store_component.js +0 -337
- package/dist/use_store_component.mjs +0 -311
- package/dist/use_store_controller.d.mts +0 -11
- package/dist/use_store_controller.d.ts +0 -11
- package/dist/use_store_controller.js +0 -57
- package/dist/use_store_controller.mjs +0 -32
- package/dist/use_store_input.d.mts +0 -22
- package/dist/use_store_input.d.ts +0 -22
- package/dist/use_store_input.js +0 -151
- package/dist/use_store_input.mjs +0 -126
- package/dist/use_store_input_with_name.d.mts +0 -17
- package/dist/use_store_input_with_name.d.ts +0 -17
- package/dist/use_store_input_with_name.js +0 -177
- package/dist/use_store_input_with_name.mjs +0 -150
- package/tsup.config.ts +0 -9
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Immutable, Draft } from 'immer';
|
|
3
|
+
import { EqualityFn, Store } from 'gw-store';
|
|
4
|
+
import * as react from 'react';
|
|
5
|
+
import { ReactNode, ChangeEvent, HTMLInputTypeAttribute, RefObject, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, ReactElement } from 'react';
|
|
6
|
+
import { Result } from 'gw-result';
|
|
7
|
+
export { Result, err, ok } from 'gw-result';
|
|
8
|
+
|
|
9
|
+
type CreateRender<TState extends object> = (selector: (state: Immutable<TState>) => ReactNode, compare?: EqualityFn<Immutable<TState>>) => ReactNode;
|
|
10
|
+
declare function createRender<TState extends object>(store: Store<TState>, selector: (state: Immutable<TState>) => ReactNode, compare?: EqualityFn<Immutable<TState>>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function createRenderWithStore<TState extends object>(store: Store<TState>): CreateRender<TState>;
|
|
12
|
+
|
|
13
|
+
type Lens<TState extends object, TValue> = {
|
|
14
|
+
get: (state: Immutable<TState>) => TValue;
|
|
15
|
+
set: (state: Draft<TState>, value: TValue) => void;
|
|
16
|
+
};
|
|
17
|
+
type LensBuilder<TState extends object, TValue> = Lens<TState, TValue> & (TValue extends object ? {
|
|
18
|
+
prop<TKey extends keyof TValue>(key: TKey): LensBuilder<TState, TValue[TKey]>;
|
|
19
|
+
} : object);
|
|
20
|
+
type StateLens<TState extends object> = {
|
|
21
|
+
prop<TKey extends keyof TState>(key: TKey): LensBuilder<TState, TState[TKey]>;
|
|
22
|
+
};
|
|
23
|
+
declare function defineLens<TState extends object, TValue>(lens: Lens<TState, TValue>): Lens<TState, TValue>;
|
|
24
|
+
declare function stateLens<TState extends object>(): StateLens<TState>;
|
|
25
|
+
|
|
26
|
+
type Codec<TValue, TInput, TError = never> = {
|
|
27
|
+
format: (value: TValue) => TInput;
|
|
28
|
+
parse: (input: TInput) => Result<TValue, TError>;
|
|
29
|
+
equals?: (previous: TValue, next: TValue) => boolean;
|
|
30
|
+
};
|
|
31
|
+
declare function defineCodec<TValue, TInput, TError = never>(codec: Codec<TValue, TInput, TError>): Codec<TValue, TInput, TError>;
|
|
32
|
+
|
|
33
|
+
type InputBinding<TState extends object, TValue, TInput, TError = never> = {
|
|
34
|
+
lens: Lens<TState, TValue>;
|
|
35
|
+
codec: Codec<TValue, TInput, TError>;
|
|
36
|
+
};
|
|
37
|
+
declare function defineBinding<TState extends object, TValue, TInput, TError = never>(binding: InputBinding<TState, TValue, TInput, TError>): InputBinding<TState, TValue, TInput, TError>;
|
|
38
|
+
|
|
39
|
+
type Equality<TValue> = (previous: TValue, next: TValue) => boolean;
|
|
40
|
+
declare function assertLensLaws<TState extends object, TValue>(lens: Lens<TState, TValue>, options: {
|
|
41
|
+
state: TState;
|
|
42
|
+
values: readonly TValue[];
|
|
43
|
+
equalsState?: Equality<TState>;
|
|
44
|
+
equalsValue?: Equality<TValue>;
|
|
45
|
+
}): void;
|
|
46
|
+
declare function assertCodecLaws<TValue, TInput, TError>(codec: Codec<TValue, TInput, TError>, options: {
|
|
47
|
+
values: readonly TValue[];
|
|
48
|
+
inputs?: readonly TInput[];
|
|
49
|
+
equals?: Equality<TValue>;
|
|
50
|
+
equalsInput?: Equality<TInput>;
|
|
51
|
+
}): void;
|
|
52
|
+
|
|
53
|
+
type StoreBindingMeta<TError> = {
|
|
54
|
+
valid: true;
|
|
55
|
+
error?: never;
|
|
56
|
+
} | {
|
|
57
|
+
valid: false;
|
|
58
|
+
error: TError;
|
|
59
|
+
};
|
|
60
|
+
type StoreBindingOptions<TValue, TInput> = {
|
|
61
|
+
onStoreChange?: (input: TInput, value: TValue) => void;
|
|
62
|
+
};
|
|
63
|
+
type StoreBindingResult<TValue, TInput, TError> = {
|
|
64
|
+
initialValue: TInput;
|
|
65
|
+
meta: StoreBindingMeta<TError>;
|
|
66
|
+
commit: (input: TInput) => Result<TValue, TError>;
|
|
67
|
+
reset: (value: TValue) => void;
|
|
68
|
+
};
|
|
69
|
+
declare function useStoreBinding<TState extends object, TValue, TInput, TError>(store: Store<TState>, binding: InputBinding<TState, TValue, TInput, TError>, options?: StoreBindingOptions<TValue, TInput>): StoreBindingResult<TValue, TInput, TError>;
|
|
70
|
+
|
|
71
|
+
type InputDisplayValue = string | number | readonly string[];
|
|
72
|
+
type InputStateValue = string | string[];
|
|
73
|
+
type InputControlValue = string | readonly string[] | number | boolean | FileList | null;
|
|
74
|
+
type StoreInputOptions<TInputElement> = {
|
|
75
|
+
type?: HTMLInputTypeAttribute;
|
|
76
|
+
defaultValue?: InputDisplayValue;
|
|
77
|
+
value?: InputDisplayValue;
|
|
78
|
+
checked?: boolean;
|
|
79
|
+
defaultChecked?: boolean;
|
|
80
|
+
multiple?: boolean;
|
|
81
|
+
onChange?: (event: ChangeEvent<TInputElement>) => void;
|
|
82
|
+
};
|
|
83
|
+
type StoreInputBindingOptions<TInputElement, TValue> = StoreInputOptions<TInputElement> & {
|
|
84
|
+
resetValue?: TValue;
|
|
85
|
+
};
|
|
86
|
+
type StoreInputDomProps<TInputElement> = {
|
|
87
|
+
defaultValue?: InputDisplayValue;
|
|
88
|
+
defaultChecked?: boolean;
|
|
89
|
+
onChange: (event: ChangeEvent<TInputElement>) => void;
|
|
90
|
+
};
|
|
91
|
+
type StoreInputMeta<TError> = StoreBindingMeta<TError>;
|
|
92
|
+
type BindingInputResult<TInputElement, TError> = {
|
|
93
|
+
inputProps: StoreInputDomProps<TInputElement>;
|
|
94
|
+
meta: StoreInputMeta<TError>;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
type StoreElement$2 = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
|
|
98
|
+
declare function useStoreHTMLElement<TInputElement extends StoreElement$2, TState extends object, TValue, TInput extends InputControlValue, TError>(ref: RefObject<TInputElement | null>, store: Store<TState>, binding: InputBinding<TState, TValue, TInput, TError>, options?: StoreInputBindingOptions<TInputElement, TValue>): BindingInputResult<TInputElement, TError>;
|
|
99
|
+
|
|
100
|
+
type StoreElement$1 = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
|
|
101
|
+
type StoreInputWithNameProps<TInputElement, TState extends object, TName extends keyof TState> = StoreInputOptions<TInputElement> & {
|
|
102
|
+
name: TName;
|
|
103
|
+
};
|
|
104
|
+
declare function useStoreInputWithName<TInputElement extends StoreElement$1, TState extends object, TName extends keyof TState>(ref: RefObject<TInputElement | null>, store: Store<TState>, props: StoreInputWithNameProps<TInputElement, TState, TName>): {
|
|
105
|
+
name: string;
|
|
106
|
+
defaultValue?: InputDisplayValue;
|
|
107
|
+
defaultChecked?: boolean;
|
|
108
|
+
onChange: (event: react.ChangeEvent<TInputElement>) => void;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
type StoreElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
112
|
+
type ElementAttributes<TElement extends StoreElement> = TElement extends HTMLInputElement ? InputHTMLAttributes<HTMLInputElement> : TElement extends HTMLSelectElement ? SelectHTMLAttributes<HTMLSelectElement> : TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
113
|
+
type StoreInputWithNameComponentProps<TElement extends StoreElement, TState extends object, TName extends keyof TState> = StoreInputWithNameProps<TElement, TState, TName> & Omit<ElementAttributes<TElement>, keyof StoreInputWithNameProps<TElement, TState, TName>>;
|
|
114
|
+
type StoreComponentPropsWithStore<TElement extends StoreElement, TState extends object, TName extends keyof TState> = StoreInputWithNameComponentProps<TElement, TState, TName> & {
|
|
115
|
+
store: Store<TState>;
|
|
116
|
+
};
|
|
117
|
+
type StoreComponents<TState extends object> = {
|
|
118
|
+
input: <TName extends keyof TState>(props: StoreInputWithNameComponentProps<HTMLInputElement, TState, TName>) => ReactElement | null;
|
|
119
|
+
select: <TName extends keyof TState>(props: StoreInputWithNameComponentProps<HTMLSelectElement, TState, TName>) => ReactElement | null;
|
|
120
|
+
textarea: <TName extends keyof TState>(props: StoreInputWithNameComponentProps<HTMLTextAreaElement, TState, TName>) => ReactElement | null;
|
|
121
|
+
};
|
|
122
|
+
declare function Input<TState extends object, TName extends keyof TState>({ store, ...props }: StoreComponentPropsWithStore<HTMLInputElement, TState, TName>): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function Select<TState extends object, TName extends keyof TState>({ store, ...props }: StoreComponentPropsWithStore<HTMLSelectElement, TState, TName>): react_jsx_runtime.JSX.Element;
|
|
124
|
+
declare function Textarea<TState extends object, TName extends keyof TState>({ store, ...props }: StoreComponentPropsWithStore<HTMLTextAreaElement, TState, TName>): react_jsx_runtime.JSX.Element;
|
|
125
|
+
declare function useStoreInput<TState extends object>(store: Store<TState>): StoreComponents<TState>;
|
|
126
|
+
|
|
127
|
+
export { type BindingInputResult, type Codec, type CreateRender, Input, type InputBinding, type InputControlValue, type InputDisplayValue, type InputStateValue, type Lens, type LensBuilder, Select, type StateLens, type StoreBindingMeta, type StoreBindingOptions, type StoreBindingResult, type StoreComponentPropsWithStore, type StoreComponents, type StoreInputBindingOptions, type StoreInputDomProps, type StoreInputMeta, type StoreInputOptions, type StoreInputWithNameComponentProps, type StoreInputWithNameProps, Textarea, assertCodecLaws, assertLensLaws, createRender, createRenderWithStore, defineBinding, defineCodec, defineLens, stateLens, useStoreBinding, useStoreHTMLElement, useStoreInput, useStoreInputWithName };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Immutable, Draft } from 'immer';
|
|
3
|
+
import { EqualityFn, Store } from 'gw-store';
|
|
4
|
+
import * as react from 'react';
|
|
5
|
+
import { ReactNode, ChangeEvent, HTMLInputTypeAttribute, RefObject, InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes, ReactElement } from 'react';
|
|
6
|
+
import { Result } from 'gw-result';
|
|
7
|
+
export { Result, err, ok } from 'gw-result';
|
|
8
|
+
|
|
9
|
+
type CreateRender<TState extends object> = (selector: (state: Immutable<TState>) => ReactNode, compare?: EqualityFn<Immutable<TState>>) => ReactNode;
|
|
10
|
+
declare function createRender<TState extends object>(store: Store<TState>, selector: (state: Immutable<TState>) => ReactNode, compare?: EqualityFn<Immutable<TState>>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function createRenderWithStore<TState extends object>(store: Store<TState>): CreateRender<TState>;
|
|
12
|
+
|
|
13
|
+
type Lens<TState extends object, TValue> = {
|
|
14
|
+
get: (state: Immutable<TState>) => TValue;
|
|
15
|
+
set: (state: Draft<TState>, value: TValue) => void;
|
|
16
|
+
};
|
|
17
|
+
type LensBuilder<TState extends object, TValue> = Lens<TState, TValue> & (TValue extends object ? {
|
|
18
|
+
prop<TKey extends keyof TValue>(key: TKey): LensBuilder<TState, TValue[TKey]>;
|
|
19
|
+
} : object);
|
|
20
|
+
type StateLens<TState extends object> = {
|
|
21
|
+
prop<TKey extends keyof TState>(key: TKey): LensBuilder<TState, TState[TKey]>;
|
|
22
|
+
};
|
|
23
|
+
declare function defineLens<TState extends object, TValue>(lens: Lens<TState, TValue>): Lens<TState, TValue>;
|
|
24
|
+
declare function stateLens<TState extends object>(): StateLens<TState>;
|
|
25
|
+
|
|
26
|
+
type Codec<TValue, TInput, TError = never> = {
|
|
27
|
+
format: (value: TValue) => TInput;
|
|
28
|
+
parse: (input: TInput) => Result<TValue, TError>;
|
|
29
|
+
equals?: (previous: TValue, next: TValue) => boolean;
|
|
30
|
+
};
|
|
31
|
+
declare function defineCodec<TValue, TInput, TError = never>(codec: Codec<TValue, TInput, TError>): Codec<TValue, TInput, TError>;
|
|
32
|
+
|
|
33
|
+
type InputBinding<TState extends object, TValue, TInput, TError = never> = {
|
|
34
|
+
lens: Lens<TState, TValue>;
|
|
35
|
+
codec: Codec<TValue, TInput, TError>;
|
|
36
|
+
};
|
|
37
|
+
declare function defineBinding<TState extends object, TValue, TInput, TError = never>(binding: InputBinding<TState, TValue, TInput, TError>): InputBinding<TState, TValue, TInput, TError>;
|
|
38
|
+
|
|
39
|
+
type Equality<TValue> = (previous: TValue, next: TValue) => boolean;
|
|
40
|
+
declare function assertLensLaws<TState extends object, TValue>(lens: Lens<TState, TValue>, options: {
|
|
41
|
+
state: TState;
|
|
42
|
+
values: readonly TValue[];
|
|
43
|
+
equalsState?: Equality<TState>;
|
|
44
|
+
equalsValue?: Equality<TValue>;
|
|
45
|
+
}): void;
|
|
46
|
+
declare function assertCodecLaws<TValue, TInput, TError>(codec: Codec<TValue, TInput, TError>, options: {
|
|
47
|
+
values: readonly TValue[];
|
|
48
|
+
inputs?: readonly TInput[];
|
|
49
|
+
equals?: Equality<TValue>;
|
|
50
|
+
equalsInput?: Equality<TInput>;
|
|
51
|
+
}): void;
|
|
52
|
+
|
|
53
|
+
type StoreBindingMeta<TError> = {
|
|
54
|
+
valid: true;
|
|
55
|
+
error?: never;
|
|
56
|
+
} | {
|
|
57
|
+
valid: false;
|
|
58
|
+
error: TError;
|
|
59
|
+
};
|
|
60
|
+
type StoreBindingOptions<TValue, TInput> = {
|
|
61
|
+
onStoreChange?: (input: TInput, value: TValue) => void;
|
|
62
|
+
};
|
|
63
|
+
type StoreBindingResult<TValue, TInput, TError> = {
|
|
64
|
+
initialValue: TInput;
|
|
65
|
+
meta: StoreBindingMeta<TError>;
|
|
66
|
+
commit: (input: TInput) => Result<TValue, TError>;
|
|
67
|
+
reset: (value: TValue) => void;
|
|
68
|
+
};
|
|
69
|
+
declare function useStoreBinding<TState extends object, TValue, TInput, TError>(store: Store<TState>, binding: InputBinding<TState, TValue, TInput, TError>, options?: StoreBindingOptions<TValue, TInput>): StoreBindingResult<TValue, TInput, TError>;
|
|
70
|
+
|
|
71
|
+
type InputDisplayValue = string | number | readonly string[];
|
|
72
|
+
type InputStateValue = string | string[];
|
|
73
|
+
type InputControlValue = string | readonly string[] | number | boolean | FileList | null;
|
|
74
|
+
type StoreInputOptions<TInputElement> = {
|
|
75
|
+
type?: HTMLInputTypeAttribute;
|
|
76
|
+
defaultValue?: InputDisplayValue;
|
|
77
|
+
value?: InputDisplayValue;
|
|
78
|
+
checked?: boolean;
|
|
79
|
+
defaultChecked?: boolean;
|
|
80
|
+
multiple?: boolean;
|
|
81
|
+
onChange?: (event: ChangeEvent<TInputElement>) => void;
|
|
82
|
+
};
|
|
83
|
+
type StoreInputBindingOptions<TInputElement, TValue> = StoreInputOptions<TInputElement> & {
|
|
84
|
+
resetValue?: TValue;
|
|
85
|
+
};
|
|
86
|
+
type StoreInputDomProps<TInputElement> = {
|
|
87
|
+
defaultValue?: InputDisplayValue;
|
|
88
|
+
defaultChecked?: boolean;
|
|
89
|
+
onChange: (event: ChangeEvent<TInputElement>) => void;
|
|
90
|
+
};
|
|
91
|
+
type StoreInputMeta<TError> = StoreBindingMeta<TError>;
|
|
92
|
+
type BindingInputResult<TInputElement, TError> = {
|
|
93
|
+
inputProps: StoreInputDomProps<TInputElement>;
|
|
94
|
+
meta: StoreInputMeta<TError>;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
type StoreElement$2 = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
|
|
98
|
+
declare function useStoreHTMLElement<TInputElement extends StoreElement$2, TState extends object, TValue, TInput extends InputControlValue, TError>(ref: RefObject<TInputElement | null>, store: Store<TState>, binding: InputBinding<TState, TValue, TInput, TError>, options?: StoreInputBindingOptions<TInputElement, TValue>): BindingInputResult<TInputElement, TError>;
|
|
99
|
+
|
|
100
|
+
type StoreElement$1 = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;
|
|
101
|
+
type StoreInputWithNameProps<TInputElement, TState extends object, TName extends keyof TState> = StoreInputOptions<TInputElement> & {
|
|
102
|
+
name: TName;
|
|
103
|
+
};
|
|
104
|
+
declare function useStoreInputWithName<TInputElement extends StoreElement$1, TState extends object, TName extends keyof TState>(ref: RefObject<TInputElement | null>, store: Store<TState>, props: StoreInputWithNameProps<TInputElement, TState, TName>): {
|
|
105
|
+
name: string;
|
|
106
|
+
defaultValue?: InputDisplayValue;
|
|
107
|
+
defaultChecked?: boolean;
|
|
108
|
+
onChange: (event: react.ChangeEvent<TInputElement>) => void;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
type StoreElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
112
|
+
type ElementAttributes<TElement extends StoreElement> = TElement extends HTMLInputElement ? InputHTMLAttributes<HTMLInputElement> : TElement extends HTMLSelectElement ? SelectHTMLAttributes<HTMLSelectElement> : TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
113
|
+
type StoreInputWithNameComponentProps<TElement extends StoreElement, TState extends object, TName extends keyof TState> = StoreInputWithNameProps<TElement, TState, TName> & Omit<ElementAttributes<TElement>, keyof StoreInputWithNameProps<TElement, TState, TName>>;
|
|
114
|
+
type StoreComponentPropsWithStore<TElement extends StoreElement, TState extends object, TName extends keyof TState> = StoreInputWithNameComponentProps<TElement, TState, TName> & {
|
|
115
|
+
store: Store<TState>;
|
|
116
|
+
};
|
|
117
|
+
type StoreComponents<TState extends object> = {
|
|
118
|
+
input: <TName extends keyof TState>(props: StoreInputWithNameComponentProps<HTMLInputElement, TState, TName>) => ReactElement | null;
|
|
119
|
+
select: <TName extends keyof TState>(props: StoreInputWithNameComponentProps<HTMLSelectElement, TState, TName>) => ReactElement | null;
|
|
120
|
+
textarea: <TName extends keyof TState>(props: StoreInputWithNameComponentProps<HTMLTextAreaElement, TState, TName>) => ReactElement | null;
|
|
121
|
+
};
|
|
122
|
+
declare function Input<TState extends object, TName extends keyof TState>({ store, ...props }: StoreComponentPropsWithStore<HTMLInputElement, TState, TName>): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function Select<TState extends object, TName extends keyof TState>({ store, ...props }: StoreComponentPropsWithStore<HTMLSelectElement, TState, TName>): react_jsx_runtime.JSX.Element;
|
|
124
|
+
declare function Textarea<TState extends object, TName extends keyof TState>({ store, ...props }: StoreComponentPropsWithStore<HTMLTextAreaElement, TState, TName>): react_jsx_runtime.JSX.Element;
|
|
125
|
+
declare function useStoreInput<TState extends object>(store: Store<TState>): StoreComponents<TState>;
|
|
126
|
+
|
|
127
|
+
export { type BindingInputResult, type Codec, type CreateRender, Input, type InputBinding, type InputControlValue, type InputDisplayValue, type InputStateValue, type Lens, type LensBuilder, Select, type StateLens, type StoreBindingMeta, type StoreBindingOptions, type StoreBindingResult, type StoreComponentPropsWithStore, type StoreComponents, type StoreInputBindingOptions, type StoreInputDomProps, type StoreInputMeta, type StoreInputOptions, type StoreInputWithNameComponentProps, type StoreInputWithNameProps, Textarea, assertCodecLaws, assertLensLaws, createRender, createRenderWithStore, defineBinding, defineCodec, defineLens, stateLens, useStoreBinding, useStoreHTMLElement, useStoreInput, useStoreInputWithName };
|