@moser-inc/moser-labs-react 1.16.4 → 1.16.5
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/moser-labs-react.cjs +82 -93
- package/dist/moser-labs-react.js +16331 -16509
- package/dist/src/_dev/components/DevLabsUser.d.ts +1 -4
- package/dist/src/_dev/views/Base.view.d.ts +1 -3
- package/dist/src/_dev/views/Inputs.view.d.ts +39 -41
- package/dist/src/_dev/views/Presentation.view.d.ts +1 -3
- package/dist/src/components/LabsCheckbox.d.ts +1 -1
- package/dist/src/components/LabsDate.d.ts +1 -1
- package/dist/src/components/LabsSelect.d.ts +1 -1
- package/dist/src/components/LabsText.d.ts +1 -1
- package/dist/src/components/LabsTextarea.d.ts +1 -1
- package/dist/src/components/LabsTypeahead.d.ts +2 -2
- package/dist/style.css +1 -1
- package/package.json +7 -6
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { UseFormProps } from 'react-hook-form';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
-
interface ViewInputsProps {
|
|
5
|
-
}
|
|
6
4
|
export declare const SampleFormSchema: z.ZodObject<{
|
|
7
5
|
checkbox: z.ZodBoolean;
|
|
8
6
|
date: z.ZodEffects<z.ZodNullable<z.ZodDate>, Date | null, Date | null>;
|
|
@@ -28,10 +26,10 @@ export declare const SampleFormSchema: z.ZodObject<{
|
|
|
28
26
|
label: string;
|
|
29
27
|
} | null>;
|
|
30
28
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
|
|
29
|
+
select: string;
|
|
32
30
|
text: string;
|
|
31
|
+
checkbox: boolean;
|
|
33
32
|
date: Date | null;
|
|
34
|
-
select: string;
|
|
35
33
|
textCurrency: string;
|
|
36
34
|
textSearch: string;
|
|
37
35
|
textArea: string;
|
|
@@ -40,10 +38,10 @@ export declare const SampleFormSchema: z.ZodObject<{
|
|
|
40
38
|
label: string;
|
|
41
39
|
} | null;
|
|
42
40
|
}, {
|
|
43
|
-
|
|
41
|
+
select: string;
|
|
44
42
|
text: string;
|
|
43
|
+
checkbox: boolean;
|
|
45
44
|
date: Date | null;
|
|
46
|
-
select: string;
|
|
47
45
|
textCurrency: string;
|
|
48
46
|
textSearch: string;
|
|
49
47
|
textArea: string;
|
|
@@ -79,10 +77,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
79
77
|
label: string;
|
|
80
78
|
} | null>;
|
|
81
79
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
|
|
80
|
+
select: string;
|
|
83
81
|
text: string;
|
|
82
|
+
checkbox: boolean;
|
|
84
83
|
date: Date | null;
|
|
85
|
-
select: string;
|
|
86
84
|
textCurrency: string;
|
|
87
85
|
textSearch: string;
|
|
88
86
|
textArea: string;
|
|
@@ -91,10 +89,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
91
89
|
label: string;
|
|
92
90
|
} | null;
|
|
93
91
|
}, {
|
|
94
|
-
|
|
92
|
+
select: string;
|
|
95
93
|
text: string;
|
|
94
|
+
checkbox: boolean;
|
|
96
95
|
date: Date | null;
|
|
97
|
-
select: string;
|
|
98
96
|
textCurrency: string;
|
|
99
97
|
textSearch: string;
|
|
100
98
|
textArea: string;
|
|
@@ -104,10 +102,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
104
102
|
} | null;
|
|
105
103
|
}>;
|
|
106
104
|
readonly watch: import('react-hook-form').UseFormWatch<{
|
|
107
|
-
|
|
105
|
+
select: string;
|
|
108
106
|
text: string;
|
|
107
|
+
checkbox: boolean;
|
|
109
108
|
date: Date | null;
|
|
110
|
-
select: string;
|
|
111
109
|
textCurrency: string;
|
|
112
110
|
textSearch: string;
|
|
113
111
|
textArea: string;
|
|
@@ -117,10 +115,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
117
115
|
} | null;
|
|
118
116
|
}>;
|
|
119
117
|
readonly getValues: import('react-hook-form').UseFormGetValues<{
|
|
120
|
-
|
|
118
|
+
select: string;
|
|
121
119
|
text: string;
|
|
120
|
+
checkbox: boolean;
|
|
122
121
|
date: Date | null;
|
|
123
|
-
select: string;
|
|
124
122
|
textCurrency: string;
|
|
125
123
|
textSearch: string;
|
|
126
124
|
textArea: string;
|
|
@@ -130,10 +128,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
130
128
|
} | null;
|
|
131
129
|
}>;
|
|
132
130
|
readonly getFieldState: import('react-hook-form').UseFormGetFieldState<{
|
|
133
|
-
|
|
131
|
+
select: string;
|
|
134
132
|
text: string;
|
|
133
|
+
checkbox: boolean;
|
|
135
134
|
date: Date | null;
|
|
136
|
-
select: string;
|
|
137
135
|
textCurrency: string;
|
|
138
136
|
textSearch: string;
|
|
139
137
|
textArea: string;
|
|
@@ -143,10 +141,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
143
141
|
} | null;
|
|
144
142
|
}>;
|
|
145
143
|
readonly setError: import('react-hook-form').UseFormSetError<{
|
|
146
|
-
|
|
144
|
+
select: string;
|
|
147
145
|
text: string;
|
|
146
|
+
checkbox: boolean;
|
|
148
147
|
date: Date | null;
|
|
149
|
-
select: string;
|
|
150
148
|
textCurrency: string;
|
|
151
149
|
textSearch: string;
|
|
152
150
|
textArea: string;
|
|
@@ -156,10 +154,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
156
154
|
} | null;
|
|
157
155
|
}>;
|
|
158
156
|
readonly clearErrors: import('react-hook-form').UseFormClearErrors<{
|
|
159
|
-
|
|
157
|
+
select: string;
|
|
160
158
|
text: string;
|
|
159
|
+
checkbox: boolean;
|
|
161
160
|
date: Date | null;
|
|
162
|
-
select: string;
|
|
163
161
|
textCurrency: string;
|
|
164
162
|
textSearch: string;
|
|
165
163
|
textArea: string;
|
|
@@ -169,10 +167,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
169
167
|
} | null;
|
|
170
168
|
}>;
|
|
171
169
|
readonly setValue: import('react-hook-form').UseFormSetValue<{
|
|
172
|
-
|
|
170
|
+
select: string;
|
|
173
171
|
text: string;
|
|
172
|
+
checkbox: boolean;
|
|
174
173
|
date: Date | null;
|
|
175
|
-
select: string;
|
|
176
174
|
textCurrency: string;
|
|
177
175
|
textSearch: string;
|
|
178
176
|
textArea: string;
|
|
@@ -182,10 +180,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
182
180
|
} | null;
|
|
183
181
|
}>;
|
|
184
182
|
readonly trigger: import('react-hook-form').UseFormTrigger<{
|
|
185
|
-
|
|
183
|
+
select: string;
|
|
186
184
|
text: string;
|
|
185
|
+
checkbox: boolean;
|
|
187
186
|
date: Date | null;
|
|
188
|
-
select: string;
|
|
189
187
|
textCurrency: string;
|
|
190
188
|
textSearch: string;
|
|
191
189
|
textArea: string;
|
|
@@ -195,10 +193,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
195
193
|
} | null;
|
|
196
194
|
}>;
|
|
197
195
|
readonly formState: import('react-hook-form').FormState<{
|
|
198
|
-
|
|
196
|
+
select: string;
|
|
199
197
|
text: string;
|
|
198
|
+
checkbox: boolean;
|
|
200
199
|
date: Date | null;
|
|
201
|
-
select: string;
|
|
202
200
|
textCurrency: string;
|
|
203
201
|
textSearch: string;
|
|
204
202
|
textArea: string;
|
|
@@ -208,10 +206,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
208
206
|
} | null;
|
|
209
207
|
}>;
|
|
210
208
|
readonly resetField: import('react-hook-form').UseFormResetField<{
|
|
211
|
-
|
|
209
|
+
select: string;
|
|
212
210
|
text: string;
|
|
211
|
+
checkbox: boolean;
|
|
213
212
|
date: Date | null;
|
|
214
|
-
select: string;
|
|
215
213
|
textCurrency: string;
|
|
216
214
|
textSearch: string;
|
|
217
215
|
textArea: string;
|
|
@@ -221,10 +219,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
221
219
|
} | null;
|
|
222
220
|
}>;
|
|
223
221
|
readonly reset: import('react-hook-form').UseFormReset<{
|
|
224
|
-
|
|
222
|
+
select: string;
|
|
225
223
|
text: string;
|
|
224
|
+
checkbox: boolean;
|
|
226
225
|
date: Date | null;
|
|
227
|
-
select: string;
|
|
228
226
|
textCurrency: string;
|
|
229
227
|
textSearch: string;
|
|
230
228
|
textArea: string;
|
|
@@ -234,10 +232,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
234
232
|
} | null;
|
|
235
233
|
}>;
|
|
236
234
|
readonly handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
|
|
237
|
-
|
|
235
|
+
select: string;
|
|
238
236
|
text: string;
|
|
237
|
+
checkbox: boolean;
|
|
239
238
|
date: Date | null;
|
|
240
|
-
select: string;
|
|
241
239
|
textCurrency: string;
|
|
242
240
|
textSearch: string;
|
|
243
241
|
textArea: string;
|
|
@@ -247,10 +245,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
247
245
|
} | null;
|
|
248
246
|
}, undefined>;
|
|
249
247
|
readonly unregister: import('react-hook-form').UseFormUnregister<{
|
|
250
|
-
|
|
248
|
+
select: string;
|
|
251
249
|
text: string;
|
|
250
|
+
checkbox: boolean;
|
|
252
251
|
date: Date | null;
|
|
253
|
-
select: string;
|
|
254
252
|
textCurrency: string;
|
|
255
253
|
textSearch: string;
|
|
256
254
|
textArea: string;
|
|
@@ -260,10 +258,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
260
258
|
} | null;
|
|
261
259
|
}>;
|
|
262
260
|
readonly control: import('react-hook-form').Control<{
|
|
263
|
-
|
|
261
|
+
select: string;
|
|
264
262
|
text: string;
|
|
263
|
+
checkbox: boolean;
|
|
265
264
|
date: Date | null;
|
|
266
|
-
select: string;
|
|
267
265
|
textCurrency: string;
|
|
268
266
|
textSearch: string;
|
|
269
267
|
textArea: string;
|
|
@@ -273,10 +271,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
273
271
|
} | null;
|
|
274
272
|
}, any>;
|
|
275
273
|
readonly register: import('react-hook-form').UseFormRegister<{
|
|
276
|
-
|
|
274
|
+
select: string;
|
|
277
275
|
text: string;
|
|
276
|
+
checkbox: boolean;
|
|
278
277
|
date: Date | null;
|
|
279
|
-
select: string;
|
|
280
278
|
textCurrency: string;
|
|
281
279
|
textSearch: string;
|
|
282
280
|
textArea: string;
|
|
@@ -286,10 +284,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
286
284
|
} | null;
|
|
287
285
|
}>;
|
|
288
286
|
readonly setFocus: import('react-hook-form').UseFormSetFocus<{
|
|
289
|
-
|
|
287
|
+
select: string;
|
|
290
288
|
text: string;
|
|
289
|
+
checkbox: boolean;
|
|
291
290
|
date: Date | null;
|
|
292
|
-
select: string;
|
|
293
291
|
textCurrency: string;
|
|
294
292
|
textSearch: string;
|
|
295
293
|
textArea: string;
|
|
@@ -299,5 +297,5 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
299
297
|
} | null;
|
|
300
298
|
}>;
|
|
301
299
|
};
|
|
302
|
-
declare const DevViewInputs: React.FC
|
|
300
|
+
declare const DevViewInputs: React.FC;
|
|
303
301
|
export default DevViewInputs;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CheckboxProps } from 'primereact/checkbox';
|
|
2
|
-
import {
|
|
2
|
+
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
3
3
|
import { FieldContainerProps } from './FieldContainer/FieldContainer';
|
|
4
4
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
2
2
|
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
3
3
|
import { LabsCalendarProps } from './LabsCalendar';
|
|
4
4
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DropdownProps } from 'primereact/dropdown';
|
|
2
2
|
import { FormEvent } from 'primereact/ts-helpers';
|
|
3
3
|
import { IconType } from 'primereact/utils';
|
|
4
|
-
import {
|
|
4
|
+
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
5
5
|
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
6
6
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputTextProps } from 'primereact/inputtext';
|
|
2
|
-
import {
|
|
2
|
+
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
3
3
|
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
4
4
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputTextareaProps } from 'primereact/inputtextarea';
|
|
2
|
-
import {
|
|
2
|
+
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
3
3
|
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
4
4
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { default as BaseSelect,
|
|
1
|
+
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
2
|
+
import { default as BaseSelect, Props as BaseSelectProps, GroupBase } from 'react-select';
|
|
3
3
|
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
4
4
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
5
5
|
|