@moser-inc/moser-labs-react 1.14.1 → 1.15.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.
@@ -11,6 +11,22 @@ export declare const SampleFormSchema: z.ZodObject<{
11
11
  textCurrency: z.ZodString;
12
12
  textSearch: z.ZodString;
13
13
  textArea: z.ZodString;
14
+ typeahead: z.ZodEffects<z.ZodNullable<z.ZodObject<{
15
+ label: z.ZodString;
16
+ value: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ value: string;
19
+ label: string;
20
+ }, {
21
+ value: string;
22
+ label: string;
23
+ }>>, {
24
+ value: string;
25
+ label: string;
26
+ } | null, {
27
+ value: string;
28
+ label: string;
29
+ } | null>;
14
30
  }, "strip", z.ZodTypeAny, {
15
31
  select: string;
16
32
  text: string;
@@ -19,6 +35,10 @@ export declare const SampleFormSchema: z.ZodObject<{
19
35
  textCurrency: string;
20
36
  textSearch: string;
21
37
  textArea: string;
38
+ typeahead: {
39
+ value: string;
40
+ label: string;
41
+ } | null;
22
42
  }, {
23
43
  select: string;
24
44
  text: string;
@@ -27,6 +47,10 @@ export declare const SampleFormSchema: z.ZodObject<{
27
47
  textCurrency: string;
28
48
  textSearch: string;
29
49
  textArea: string;
50
+ typeahead: {
51
+ value: string;
52
+ label: string;
53
+ } | null;
30
54
  }>;
31
55
  export type SampleFormValues = z.infer<typeof SampleFormSchema>;
32
56
  export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseFormProps<SampleFormValues>) => {
@@ -38,6 +62,22 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
38
62
  textCurrency: z.ZodString;
39
63
  textSearch: z.ZodString;
40
64
  textArea: z.ZodString;
65
+ typeahead: z.ZodEffects<z.ZodNullable<z.ZodObject<{
66
+ label: z.ZodString;
67
+ value: z.ZodString;
68
+ }, "strip", z.ZodTypeAny, {
69
+ value: string;
70
+ label: string;
71
+ }, {
72
+ value: string;
73
+ label: string;
74
+ }>>, {
75
+ value: string;
76
+ label: string;
77
+ } | null, {
78
+ value: string;
79
+ label: string;
80
+ } | null>;
41
81
  }, "strip", z.ZodTypeAny, {
42
82
  select: string;
43
83
  text: string;
@@ -46,6 +86,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
46
86
  textCurrency: string;
47
87
  textSearch: string;
48
88
  textArea: string;
89
+ typeahead: {
90
+ value: string;
91
+ label: string;
92
+ } | null;
49
93
  }, {
50
94
  select: string;
51
95
  text: string;
@@ -54,6 +98,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
54
98
  textCurrency: string;
55
99
  textSearch: string;
56
100
  textArea: string;
101
+ typeahead: {
102
+ value: string;
103
+ label: string;
104
+ } | null;
57
105
  }>;
58
106
  readonly watch: import("react-hook-form").UseFormWatch<{
59
107
  select: string;
@@ -63,6 +111,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
63
111
  textCurrency: string;
64
112
  textSearch: string;
65
113
  textArea: string;
114
+ typeahead: {
115
+ value: string;
116
+ label: string;
117
+ } | null;
66
118
  }>;
67
119
  readonly getValues: import("react-hook-form").UseFormGetValues<{
68
120
  select: string;
@@ -72,6 +124,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
72
124
  textCurrency: string;
73
125
  textSearch: string;
74
126
  textArea: string;
127
+ typeahead: {
128
+ value: string;
129
+ label: string;
130
+ } | null;
75
131
  }>;
76
132
  readonly getFieldState: import("react-hook-form").UseFormGetFieldState<{
77
133
  select: string;
@@ -81,6 +137,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
81
137
  textCurrency: string;
82
138
  textSearch: string;
83
139
  textArea: string;
140
+ typeahead: {
141
+ value: string;
142
+ label: string;
143
+ } | null;
84
144
  }>;
85
145
  readonly setError: import("react-hook-form").UseFormSetError<{
86
146
  select: string;
@@ -90,6 +150,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
90
150
  textCurrency: string;
91
151
  textSearch: string;
92
152
  textArea: string;
153
+ typeahead: {
154
+ value: string;
155
+ label: string;
156
+ } | null;
93
157
  }>;
94
158
  readonly clearErrors: import("react-hook-form").UseFormClearErrors<{
95
159
  select: string;
@@ -99,6 +163,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
99
163
  textCurrency: string;
100
164
  textSearch: string;
101
165
  textArea: string;
166
+ typeahead: {
167
+ value: string;
168
+ label: string;
169
+ } | null;
102
170
  }>;
103
171
  readonly setValue: import("react-hook-form").UseFormSetValue<{
104
172
  select: string;
@@ -108,6 +176,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
108
176
  textCurrency: string;
109
177
  textSearch: string;
110
178
  textArea: string;
179
+ typeahead: {
180
+ value: string;
181
+ label: string;
182
+ } | null;
111
183
  }>;
112
184
  readonly trigger: import("react-hook-form").UseFormTrigger<{
113
185
  select: string;
@@ -117,6 +189,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
117
189
  textCurrency: string;
118
190
  textSearch: string;
119
191
  textArea: string;
192
+ typeahead: {
193
+ value: string;
194
+ label: string;
195
+ } | null;
120
196
  }>;
121
197
  readonly formState: import("react-hook-form").FormState<{
122
198
  select: string;
@@ -126,6 +202,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
126
202
  textCurrency: string;
127
203
  textSearch: string;
128
204
  textArea: string;
205
+ typeahead: {
206
+ value: string;
207
+ label: string;
208
+ } | null;
129
209
  }>;
130
210
  readonly resetField: import("react-hook-form").UseFormResetField<{
131
211
  select: string;
@@ -135,6 +215,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
135
215
  textCurrency: string;
136
216
  textSearch: string;
137
217
  textArea: string;
218
+ typeahead: {
219
+ value: string;
220
+ label: string;
221
+ } | null;
138
222
  }>;
139
223
  readonly reset: import("react-hook-form").UseFormReset<{
140
224
  select: string;
@@ -144,6 +228,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
144
228
  textCurrency: string;
145
229
  textSearch: string;
146
230
  textArea: string;
231
+ typeahead: {
232
+ value: string;
233
+ label: string;
234
+ } | null;
147
235
  }>;
148
236
  readonly handleSubmit: import("react-hook-form").UseFormHandleSubmit<{
149
237
  select: string;
@@ -153,6 +241,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
153
241
  textCurrency: string;
154
242
  textSearch: string;
155
243
  textArea: string;
244
+ typeahead: {
245
+ value: string;
246
+ label: string;
247
+ } | null;
156
248
  }, undefined>;
157
249
  readonly unregister: import("react-hook-form").UseFormUnregister<{
158
250
  select: string;
@@ -162,6 +254,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
162
254
  textCurrency: string;
163
255
  textSearch: string;
164
256
  textArea: string;
257
+ typeahead: {
258
+ value: string;
259
+ label: string;
260
+ } | null;
165
261
  }>;
166
262
  readonly control: import("react-hook-form").Control<{
167
263
  select: string;
@@ -171,6 +267,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
171
267
  textCurrency: string;
172
268
  textSearch: string;
173
269
  textArea: string;
270
+ typeahead: {
271
+ value: string;
272
+ label: string;
273
+ } | null;
174
274
  }, any>;
175
275
  readonly register: import("react-hook-form").UseFormRegister<{
176
276
  select: string;
@@ -180,6 +280,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
180
280
  textCurrency: string;
181
281
  textSearch: string;
182
282
  textArea: string;
283
+ typeahead: {
284
+ value: string;
285
+ label: string;
286
+ } | null;
183
287
  }>;
184
288
  readonly setFocus: import("react-hook-form").UseFormSetFocus<{
185
289
  select: string;
@@ -189,6 +293,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
189
293
  textCurrency: string;
190
294
  textSearch: string;
191
295
  textArea: string;
296
+ typeahead: {
297
+ value: string;
298
+ label: string;
299
+ } | null;
192
300
  }>;
193
301
  };
194
302
  declare const DevViewInputs: React.FC<ViewInputsProps>;
@@ -1,8 +1,8 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  export declare const LABS_ICONS: {
3
3
  readonly BARS: "pi-bars";
4
- readonly CHEVRON_DOWN: "mdi-chevron-down";
5
- readonly CHEVRON_UP: "mdi-chevron-up";
4
+ readonly CHEVRON_DOWN: "pi-chevron-down";
5
+ readonly CHEVRON_UP: "pi-chevron-up";
6
6
  readonly CLOSE: "pi-times";
7
7
  readonly FAQ: "pi-question-circle";
8
8
  readonly HOME: "pi-home";
@@ -0,0 +1,2 @@
1
+ import { RefAttributes } from 'react';
2
+ export declare const forwardRefInferGenerics: <T, P = Record<string, unknown>>(render: (props: P, ref: import("react").Ref<T>) => React.ReactElement | null) => (props: P & RefAttributes<T>) => React.ReactElement | null;