@moser-inc/moser-labs-react 1.15.3 → 1.16.2

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.
Files changed (47) hide show
  1. package/dist/moser-labs-react.cjs +97 -91
  2. package/dist/moser-labs-react.js +17316 -17867
  3. package/dist/src/_dev/components/DevDirectoryLink.d.ts +2 -2
  4. package/dist/src/_dev/components/DevLink.d.ts +3 -3
  5. package/dist/src/_dev/lib/directory.d.ts +1 -0
  6. package/dist/src/_dev/lib/router.d.ts +1 -1
  7. package/dist/src/_dev/sandbox.d.ts +1 -0
  8. package/dist/src/_dev/views/Inputs.view.d.ts +54 -54
  9. package/dist/src/components/FieldContainer/FieldContainer.d.ts +2 -1
  10. package/dist/src/components/FieldContainer/FieldContainerInput.d.ts +1 -0
  11. package/dist/src/components/FieldContainer/FieldContainerLabel.d.ts +1 -0
  12. package/dist/src/components/FieldContainer/FieldContainerMessage.d.ts +1 -0
  13. package/dist/src/components/LabsAuthGate.d.ts +1 -0
  14. package/dist/src/components/LabsButton.d.ts +1 -0
  15. package/dist/src/components/LabsCalendar.d.ts +2 -2
  16. package/dist/src/components/LabsCheckbox.d.ts +6 -4
  17. package/dist/src/components/LabsDate.d.ts +7 -5
  18. package/dist/src/components/LabsIcon.d.ts +2 -1
  19. package/dist/src/components/LabsLogoutTimer.d.ts +1 -0
  20. package/dist/src/components/LabsMain.d.ts +1 -0
  21. package/dist/src/components/LabsMainDesktopNav.d.ts +1 -0
  22. package/dist/src/components/LabsMainMobileNav.d.ts +1 -0
  23. package/dist/src/components/LabsMenuNav.d.ts +1 -0
  24. package/dist/src/components/LabsSelect.d.ts +8 -7
  25. package/dist/src/components/LabsSpeedDialNav.d.ts +1 -0
  26. package/dist/src/components/LabsText.d.ts +6 -5
  27. package/dist/src/components/LabsTextCurrency.d.ts +6 -5
  28. package/dist/src/components/LabsTextSearch.d.ts +6 -5
  29. package/dist/src/components/LabsTextarea.d.ts +6 -5
  30. package/dist/src/components/LabsToggle.d.ts +1 -0
  31. package/dist/src/components/LabsTypeahead.d.ts +7 -6
  32. package/dist/src/hooks/useAnalytics.d.ts +6 -6
  33. package/dist/src/layouts/Base.layout.d.ts +1 -0
  34. package/dist/src/layouts/Main.layout.d.ts +1 -1
  35. package/dist/src/lib/analytics/analyticsContext.d.ts +2 -1
  36. package/dist/src/lib/analytics/createAnalytics.d.ts +1 -1
  37. package/dist/src/lib/auth/authContext.d.ts +2 -2
  38. package/dist/src/lib/auth/index.d.ts +2 -1
  39. package/dist/src/lib/dayjs.d.ts +2 -1
  40. package/dist/src/main.d.ts +1 -0
  41. package/dist/src/types/DirectoryValue.type.d.ts +1 -0
  42. package/dist/src/types/ReactHookForm.type.d.ts +2 -1
  43. package/dist/src/utils/animations.d.ts +1 -0
  44. package/dist/src/utils/fieldHelpers.d.ts +1 -0
  45. package/dist/src/utils/forwardRefInferGenerics.d.ts +2 -1
  46. package/dist/style.css +1 -1
  47. package/package.json +14 -13
@@ -1,14 +1,14 @@
1
- /// <reference types="react" />
2
1
  import { BadgeProps } from 'primereact/badge';
3
2
  import { MenuItem } from 'primereact/menuitem';
4
3
  import { NavLinkProps } from 'react-router-dom';
5
4
  import { DirectoryValue } from '../../main';
5
+
6
6
  type DevDirectoryLinkBaseProps = Omit<NavLinkProps, 'to'>;
7
7
  export interface DevDirectoryLinkProps extends DevDirectoryLinkBaseProps {
8
8
  item: DirectoryValue;
9
9
  refreshOnSameUrl?: boolean;
10
10
  }
11
- export declare const DevDirectoryLink: import("react").ForwardRefExoticComponent<DevDirectoryLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
11
+ export declare const DevDirectoryLink: import('react').ForwardRefExoticComponent<DevDirectoryLinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
12
12
  export interface DirectoryMenuItem extends MenuItem {
13
13
  linkClassName?: DevDirectoryLinkProps['className'];
14
14
  iconClassName?: string;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { LinkProps } from 'react-router-dom';
2
+
3
3
  export type DevLinkProps = LinkProps & {
4
4
  refreshOnSameUrl?: boolean;
5
5
  };
6
- export declare const DevLink: import("react").ForwardRefExoticComponent<LinkProps & {
6
+ export declare const DevLink: import('react').ForwardRefExoticComponent<LinkProps & {
7
7
  refreshOnSameUrl?: boolean | undefined;
8
- } & import("react").RefAttributes<HTMLAnchorElement>>;
8
+ } & import('react').RefAttributes<HTMLAnchorElement>>;
@@ -1,4 +1,5 @@
1
1
  import { DirectoryValue } from '../../types/DirectoryValue.type';
2
+
2
3
  export declare const DIRECTORY: {
3
4
  [key: string]: DirectoryValue;
4
5
  };
@@ -1 +1 @@
1
- export declare const router: import("@remix-run/router").Router;
1
+ export declare const router: import('@remix-run/router').Router;
@@ -0,0 +1 @@
1
+
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { UseFormProps } from 'react-hook-form';
3
2
  import { z } from 'zod';
3
+
4
4
  interface ViewInputsProps {
5
5
  }
6
6
  export declare const SampleFormSchema: z.ZodObject<{
@@ -28,10 +28,10 @@ export declare const SampleFormSchema: z.ZodObject<{
28
28
  label: string;
29
29
  } | null>;
30
30
  }, "strip", z.ZodTypeAny, {
31
- select: string;
32
- text: string;
33
31
  checkbox: boolean;
32
+ text: string;
34
33
  date: Date | null;
34
+ select: string;
35
35
  textCurrency: string;
36
36
  textSearch: string;
37
37
  textArea: string;
@@ -40,10 +40,10 @@ export declare const SampleFormSchema: z.ZodObject<{
40
40
  label: string;
41
41
  } | null;
42
42
  }, {
43
- select: string;
44
- text: string;
45
43
  checkbox: boolean;
44
+ text: string;
46
45
  date: Date | null;
46
+ select: string;
47
47
  textCurrency: string;
48
48
  textSearch: string;
49
49
  textArea: string;
@@ -79,10 +79,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
79
79
  label: string;
80
80
  } | null>;
81
81
  }, "strip", z.ZodTypeAny, {
82
- select: string;
83
- text: string;
84
82
  checkbox: boolean;
83
+ text: string;
85
84
  date: Date | null;
85
+ select: string;
86
86
  textCurrency: string;
87
87
  textSearch: string;
88
88
  textArea: string;
@@ -91,10 +91,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
91
91
  label: string;
92
92
  } | null;
93
93
  }, {
94
- select: string;
95
- text: string;
96
94
  checkbox: boolean;
95
+ text: string;
97
96
  date: Date | null;
97
+ select: string;
98
98
  textCurrency: string;
99
99
  textSearch: string;
100
100
  textArea: string;
@@ -103,11 +103,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
103
103
  label: string;
104
104
  } | null;
105
105
  }>;
106
- readonly watch: import("react-hook-form").UseFormWatch<{
107
- select: string;
108
- text: string;
106
+ readonly watch: import('react-hook-form').UseFormWatch<{
109
107
  checkbox: boolean;
108
+ text: string;
110
109
  date: Date | null;
110
+ select: string;
111
111
  textCurrency: string;
112
112
  textSearch: string;
113
113
  textArea: string;
@@ -116,11 +116,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
116
116
  label: string;
117
117
  } | null;
118
118
  }>;
119
- readonly getValues: import("react-hook-form").UseFormGetValues<{
120
- select: string;
121
- text: string;
119
+ readonly getValues: import('react-hook-form').UseFormGetValues<{
122
120
  checkbox: boolean;
121
+ text: string;
123
122
  date: Date | null;
123
+ select: string;
124
124
  textCurrency: string;
125
125
  textSearch: string;
126
126
  textArea: string;
@@ -129,11 +129,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
129
129
  label: string;
130
130
  } | null;
131
131
  }>;
132
- readonly getFieldState: import("react-hook-form").UseFormGetFieldState<{
133
- select: string;
134
- text: string;
132
+ readonly getFieldState: import('react-hook-form').UseFormGetFieldState<{
135
133
  checkbox: boolean;
134
+ text: string;
136
135
  date: Date | null;
136
+ select: string;
137
137
  textCurrency: string;
138
138
  textSearch: string;
139
139
  textArea: string;
@@ -142,11 +142,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
142
142
  label: string;
143
143
  } | null;
144
144
  }>;
145
- readonly setError: import("react-hook-form").UseFormSetError<{
146
- select: string;
147
- text: string;
145
+ readonly setError: import('react-hook-form').UseFormSetError<{
148
146
  checkbox: boolean;
147
+ text: string;
149
148
  date: Date | null;
149
+ select: string;
150
150
  textCurrency: string;
151
151
  textSearch: string;
152
152
  textArea: string;
@@ -155,11 +155,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
155
155
  label: string;
156
156
  } | null;
157
157
  }>;
158
- readonly clearErrors: import("react-hook-form").UseFormClearErrors<{
159
- select: string;
160
- text: string;
158
+ readonly clearErrors: import('react-hook-form').UseFormClearErrors<{
161
159
  checkbox: boolean;
160
+ text: string;
162
161
  date: Date | null;
162
+ select: string;
163
163
  textCurrency: string;
164
164
  textSearch: string;
165
165
  textArea: string;
@@ -168,11 +168,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
168
168
  label: string;
169
169
  } | null;
170
170
  }>;
171
- readonly setValue: import("react-hook-form").UseFormSetValue<{
172
- select: string;
173
- text: string;
171
+ readonly setValue: import('react-hook-form').UseFormSetValue<{
174
172
  checkbox: boolean;
173
+ text: string;
175
174
  date: Date | null;
175
+ select: string;
176
176
  textCurrency: string;
177
177
  textSearch: string;
178
178
  textArea: string;
@@ -181,11 +181,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
181
181
  label: string;
182
182
  } | null;
183
183
  }>;
184
- readonly trigger: import("react-hook-form").UseFormTrigger<{
185
- select: string;
186
- text: string;
184
+ readonly trigger: import('react-hook-form').UseFormTrigger<{
187
185
  checkbox: boolean;
186
+ text: string;
188
187
  date: Date | null;
188
+ select: string;
189
189
  textCurrency: string;
190
190
  textSearch: string;
191
191
  textArea: string;
@@ -194,11 +194,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
194
194
  label: string;
195
195
  } | null;
196
196
  }>;
197
- readonly formState: import("react-hook-form").FormState<{
198
- select: string;
199
- text: string;
197
+ readonly formState: import('react-hook-form').FormState<{
200
198
  checkbox: boolean;
199
+ text: string;
201
200
  date: Date | null;
201
+ select: string;
202
202
  textCurrency: string;
203
203
  textSearch: string;
204
204
  textArea: string;
@@ -207,11 +207,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
207
207
  label: string;
208
208
  } | null;
209
209
  }>;
210
- readonly resetField: import("react-hook-form").UseFormResetField<{
211
- select: string;
212
- text: string;
210
+ readonly resetField: import('react-hook-form').UseFormResetField<{
213
211
  checkbox: boolean;
212
+ text: string;
214
213
  date: Date | null;
214
+ select: string;
215
215
  textCurrency: string;
216
216
  textSearch: string;
217
217
  textArea: string;
@@ -220,11 +220,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
220
220
  label: string;
221
221
  } | null;
222
222
  }>;
223
- readonly reset: import("react-hook-form").UseFormReset<{
224
- select: string;
225
- text: string;
223
+ readonly reset: import('react-hook-form').UseFormReset<{
226
224
  checkbox: boolean;
225
+ text: string;
227
226
  date: Date | null;
227
+ select: string;
228
228
  textCurrency: string;
229
229
  textSearch: string;
230
230
  textArea: string;
@@ -233,11 +233,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
233
233
  label: string;
234
234
  } | null;
235
235
  }>;
236
- readonly handleSubmit: import("react-hook-form").UseFormHandleSubmit<{
237
- select: string;
238
- text: string;
236
+ readonly handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
239
237
  checkbox: boolean;
238
+ text: string;
240
239
  date: Date | null;
240
+ select: string;
241
241
  textCurrency: string;
242
242
  textSearch: string;
243
243
  textArea: string;
@@ -246,11 +246,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
246
246
  label: string;
247
247
  } | null;
248
248
  }, undefined>;
249
- readonly unregister: import("react-hook-form").UseFormUnregister<{
250
- select: string;
251
- text: string;
249
+ readonly unregister: import('react-hook-form').UseFormUnregister<{
252
250
  checkbox: boolean;
251
+ text: string;
253
252
  date: Date | null;
253
+ select: string;
254
254
  textCurrency: string;
255
255
  textSearch: string;
256
256
  textArea: string;
@@ -259,11 +259,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
259
259
  label: string;
260
260
  } | null;
261
261
  }>;
262
- readonly control: import("react-hook-form").Control<{
263
- select: string;
264
- text: string;
262
+ readonly control: import('react-hook-form').Control<{
265
263
  checkbox: boolean;
264
+ text: string;
266
265
  date: Date | null;
266
+ select: string;
267
267
  textCurrency: string;
268
268
  textSearch: string;
269
269
  textArea: string;
@@ -272,11 +272,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
272
272
  label: string;
273
273
  } | null;
274
274
  }, any>;
275
- readonly register: import("react-hook-form").UseFormRegister<{
276
- select: string;
277
- text: string;
275
+ readonly register: import('react-hook-form').UseFormRegister<{
278
276
  checkbox: boolean;
277
+ text: string;
279
278
  date: Date | null;
279
+ select: string;
280
280
  textCurrency: string;
281
281
  textSearch: string;
282
282
  textArea: string;
@@ -285,11 +285,11 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
285
285
  label: string;
286
286
  } | null;
287
287
  }>;
288
- readonly setFocus: import("react-hook-form").UseFormSetFocus<{
289
- select: string;
290
- text: string;
288
+ readonly setFocus: import('react-hook-form').UseFormSetFocus<{
291
289
  checkbox: boolean;
290
+ text: string;
292
291
  date: Date | null;
292
+ select: string;
293
293
  textCurrency: string;
294
294
  textSearch: string;
295
295
  textArea: string;
@@ -1,6 +1,7 @@
1
- import { type MotionProps } from 'framer-motion';
1
+ import { MotionProps } from 'framer-motion';
2
2
  import { ReactNode } from 'react';
3
3
  import { ControllerFieldState } from 'react-hook-form';
4
+
4
5
  export interface FieldContainerProps {
5
6
  id: string;
6
7
  labelId?: string;
@@ -1,4 +1,5 @@
1
1
  import { FieldContainerProps } from './FieldContainer';
2
+
2
3
  export interface FieldContainerInputProps extends FieldContainerProps {
3
4
  floatLabel?: boolean;
4
5
  prependIcon?: string;
@@ -1,5 +1,6 @@
1
1
  import { motion } from 'framer-motion';
2
2
  import { ComponentProps } from 'react';
3
+
3
4
  export interface FieldContainerLabelProps extends ComponentProps<typeof motion.label> {
4
5
  id: string;
5
6
  labelId?: string;
@@ -1,5 +1,6 @@
1
1
  import { motion } from 'framer-motion';
2
2
  import { ComponentProps } from 'react';
3
+
3
4
  export interface FieldContainerMessageProps extends ComponentProps<typeof motion.span> {
4
5
  id: string;
5
6
  messageId?: string;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  export interface LabsAuthGateProps {
3
4
  children: ReactNode;
4
5
  messageLoading?: string;
@@ -1,4 +1,5 @@
1
1
  import { ButtonProps } from 'primereact/button';
2
+
2
3
  export interface LabsButtonProps extends Omit<ButtonProps, 'severity'> {
3
4
  icon?: string;
4
5
  iconClassName?: string;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
1
  import { Calendar, CalendarProps } from 'primereact/calendar';
2
+
3
3
  export type LabsCalendarProps = CalendarProps;
4
- export declare const LabsCalendar: import("react").ForwardRefExoticComponent<CalendarProps & import("react").RefAttributes<Calendar>>;
4
+ export declare const LabsCalendar: import('react').ForwardRefExoticComponent<CalendarProps & import('react').RefAttributes<Calendar>>;
@@ -2,6 +2,7 @@ import { CheckboxProps } from 'primereact/checkbox';
2
2
  import { FieldValues, FieldPath } from 'react-hook-form';
3
3
  import { FieldContainerProps } from './FieldContainer/FieldContainer';
4
4
  import { ControllerRenderParams } from '../types/ReactHookForm.type';
5
+
5
6
  type FieldProps = Partial<CheckboxProps> & FieldContainerProps;
6
7
  export type LabsCheckboxProps = FieldProps;
7
8
  export declare const LabsCheckbox: {
@@ -9,12 +10,13 @@ export declare const LabsCheckbox: {
9
10
  displayName: string;
10
11
  };
11
12
  export declare const toLabsCheckboxProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field: { value, ref, ...field }, fieldState, }: ControllerRenderParams<TValues, TName>) => {
12
- inputRef: import("react-hook-form").RefCallBack;
13
- checked: import("react-hook-form").PathValue<TValues, TName>;
14
- onChange: (event: import("primereact/checkbox").CheckboxChangeEvent) => void;
13
+ inputRef: import('react-hook-form').RefCallBack;
14
+ checked: import('react-hook-form').PathValue<TValues, TName>;
15
+ onChange: (event: import('primereact/checkbox').CheckboxChangeEvent) => void;
15
16
  hasError: boolean;
16
17
  message: string | undefined;
17
- onBlur: import("react-hook-form").Noop;
18
+ onBlur: import('react-hook-form').Noop;
19
+ disabled?: boolean | undefined;
18
20
  name: TName;
19
21
  };
20
22
  export {};
@@ -1,17 +1,19 @@
1
1
  import { FieldValues, FieldPath } from 'react-hook-form';
2
- import { type FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
2
+ import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
3
3
  import { LabsCalendarProps } from './LabsCalendar';
4
4
  import { ControllerRenderParams } from '../types/ReactHookForm.type';
5
+
5
6
  type FieldProps = LabsCalendarProps & FieldContainerInputProps;
6
7
  export type LabsDateProps = FieldProps;
7
8
  export declare const LabsDate: (props: LabsDateProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export declare const toLabsDateProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field: { ref, ...field }, fieldState, }: ControllerRenderParams<TValues, TName>) => {
9
- inputRef: import("react-hook-form").RefCallBack;
10
- onChange: (event: import("primereact/calendar").CalendarChangeEvent) => void;
10
+ inputRef: import('react-hook-form').RefCallBack;
11
+ onChange: (event: import('primereact/calendar').CalendarChangeEvent) => void;
11
12
  hasError: boolean;
12
13
  message: string | undefined;
13
- onBlur: import("react-hook-form").Noop;
14
- value: import("react-hook-form").PathValue<TValues, TName>;
14
+ onBlur: import('react-hook-form').Noop;
15
+ value: import('react-hook-form').PathValue<TValues, TName>;
16
+ disabled?: boolean | undefined;
15
17
  name: TName;
16
18
  };
17
19
  export {};
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
+
2
3
  export declare const LABS_ICONS: {
3
4
  readonly BARS: "pi-bars";
4
5
  readonly CHEVRON_DOWN: "pi-chevron-down";
@@ -30,4 +31,4 @@ export declare const LABS_ICONS: {
30
31
  export interface LabsIconProps extends HTMLAttributes<HTMLElement> {
31
32
  icon: string;
32
33
  }
33
- export declare const LabsIcon: import("react").ForwardRefExoticComponent<LabsIconProps & import("react").RefAttributes<HTMLSpanElement>>;
34
+ export declare const LabsIcon: import('react').ForwardRefExoticComponent<LabsIconProps & import('react').RefAttributes<HTMLSpanElement>>;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  export interface LabsLogoutTimerProps {
3
4
  children: ReactNode;
4
5
  options?: {
@@ -1,5 +1,6 @@
1
1
  import { ComponentProps, ReactNode } from 'react';
2
2
  import { DirectoryValue } from '../types/DirectoryValue.type';
3
+
3
4
  export interface LabsMainProps extends ComponentProps<'main'> {
4
5
  children: ReactNode;
5
6
  item?: DirectoryValue;
@@ -1,6 +1,7 @@
1
1
  import { MenuItem } from 'primereact/menuitem';
2
2
  import { LabsMenuNavProps } from './LabsMenuNav';
3
3
  import { DirectoryValue } from '../main';
4
+
4
5
  export type LabsMainDesktopNavProps = Omit<LabsMenuNavProps, 'renderItem'> & {
5
6
  renderItem: (item: DirectoryValue, menuProps: {
6
7
  isMenuOpen: boolean;
@@ -1,6 +1,7 @@
1
1
  import { MenuItem } from 'primereact/menuitem';
2
2
  import { LabsSpeedDialNavProps } from './LabsSpeedDialNav';
3
3
  import { DirectoryValue } from '../main';
4
+
4
5
  export type LabsMainMobileNavProps = Omit<LabsSpeedDialNavProps, 'renderItem'> & {
5
6
  renderItem: (item: DirectoryValue, menuProps: {
6
7
  isMenuOpen: boolean;
@@ -1,6 +1,7 @@
1
1
  import { MenuProps } from 'primereact/menu';
2
2
  import { MenuItem } from 'primereact/menuitem';
3
3
  import { DirectoryValue } from '../types/DirectoryValue.type';
4
+
4
5
  type LabsMenuNavBaseProps = MenuProps;
5
6
  export interface LabsMenuNavProps extends LabsMenuNavBaseProps {
6
7
  items: readonly DirectoryValue[];
@@ -1,10 +1,10 @@
1
- /// <reference types="react" />
2
1
  import { DropdownProps } from 'primereact/dropdown';
3
2
  import { FormEvent } from 'primereact/ts-helpers';
4
- import type { IconType } from 'primereact/utils';
3
+ import { IconType } from 'primereact/utils';
5
4
  import { FieldValues, FieldPath } from 'react-hook-form';
6
- import { type FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
5
+ import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
7
6
  import { ControllerRenderParams } from '../types/ReactHookForm.type';
7
+
8
8
  export interface LabsSelectOption<T = unknown> {
9
9
  label?: string;
10
10
  value?: T;
@@ -22,12 +22,13 @@ export interface LabsSelectProps<TValue extends string> extends FieldProps {
22
22
  }
23
23
  export declare const LabsSelect: <TValue extends string>(props: LabsSelectProps<TValue>) => import("react/jsx-runtime").JSX.Element;
24
24
  export declare const toLabsSelectProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field: { ref, ...field }, fieldState, }: ControllerRenderParams<TValues, TName>) => {
25
- inputRef: import("react-hook-form").RefCallBack;
26
- onChange: (event: FormEvent<TValues[TName], import("react").SyntheticEvent<Element, Event>>) => void;
25
+ inputRef: import('react-hook-form').RefCallBack;
26
+ onChange: (event: FormEvent<TValues[TName], import('react').SyntheticEvent<Element, Event>>) => void;
27
27
  hasError: boolean;
28
28
  message: string | undefined;
29
- onBlur: import("react-hook-form").Noop;
30
- value: import("react-hook-form").PathValue<TValues, TName>;
29
+ onBlur: import('react-hook-form').Noop;
30
+ value: import('react-hook-form').PathValue<TValues, TName>;
31
+ disabled?: boolean | undefined;
31
32
  name: TName;
32
33
  };
33
34
  export {};
@@ -1,6 +1,7 @@
1
1
  import { MenuItem } from 'primereact/menuitem';
2
2
  import { SpeedDialProps } from 'primereact/speeddial';
3
3
  import { DirectoryValue } from '../types/DirectoryValue.type';
4
+
4
5
  type LabsSpeedDialNavBaseProps = SpeedDialProps;
5
6
  export interface LabsSpeedDialNavProps extends LabsSpeedDialNavBaseProps {
6
7
  items: readonly DirectoryValue[];
@@ -1,19 +1,20 @@
1
- /// <reference types="react" />
2
1
  import { InputTextProps } from 'primereact/inputtext';
3
2
  import { FieldValues, FieldPath } from 'react-hook-form';
4
- import { type FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
3
+ import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
5
4
  import { ControllerRenderParams } from '../types/ReactHookForm.type';
5
+
6
6
  type FieldProps = Partial<InputTextProps> & FieldContainerInputProps;
7
7
  export type LabsTextProps = FieldProps;
8
8
  export type LabsTextElement = HTMLInputElement;
9
- export declare const LabsText: import("react").ForwardRefExoticComponent<Partial<InputTextProps> & FieldContainerInputProps & import("react").RefAttributes<HTMLInputElement>>;
9
+ export declare const LabsText: import('react').ForwardRefExoticComponent<Partial<InputTextProps> & FieldContainerInputProps & import('react').RefAttributes<HTMLInputElement>>;
10
10
  export declare const toLabsTextProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field, fieldState, }: ControllerRenderParams<TValues, TName>) => {
11
11
  value: string;
12
12
  hasError: boolean;
13
13
  message: string | undefined;
14
14
  onChange: (...event: any[]) => void;
15
- onBlur: import("react-hook-form").Noop;
15
+ onBlur: import('react-hook-form').Noop;
16
+ disabled?: boolean | undefined;
16
17
  name: TName;
17
- ref: import("react-hook-form").RefCallBack;
18
+ ref: import('react-hook-form').RefCallBack;
18
19
  };
19
20
  export {};
@@ -1,13 +1,14 @@
1
- /// <reference types="react" />
2
1
  import { LabsTextProps } from './LabsText';
2
+
3
3
  export type LabsTextCurrencyProps = LabsTextProps;
4
- export declare const LabsTextCurrency: import("react").ForwardRefExoticComponent<Partial<import("primereact/inputtext").InputTextProps> & import("./FieldContainer/FieldContainerInput").FieldContainerInputProps & import("react").RefAttributes<HTMLInputElement>>;
5
- export declare const toLabsTextCurrencyProps: <TValues extends import("react-hook-form").FieldValues = import("react-hook-form").FieldValues, TName extends import("react-hook-form").FieldPath<TValues> = import("react-hook-form").FieldPath<TValues>>({ field, fieldState, }: import("../main").ControllerRenderParams<TValues, TName>) => {
4
+ export declare const LabsTextCurrency: import('react').ForwardRefExoticComponent<Partial<import('primereact/inputtext').InputTextProps> & import('./FieldContainer/FieldContainerInput').FieldContainerInputProps & import('react').RefAttributes<HTMLInputElement>>;
5
+ export declare const toLabsTextCurrencyProps: <TValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues, TName extends import('react-hook-form').FieldPath<TValues> = import('react-hook-form').FieldPath<TValues>>({ field, fieldState, }: import('../main').ControllerRenderParams<TValues, TName>) => {
6
6
  value: string;
7
7
  hasError: boolean;
8
8
  message: string | undefined;
9
9
  onChange: (...event: any[]) => void;
10
- onBlur: import("react-hook-form").Noop;
10
+ onBlur: import('react-hook-form').Noop;
11
+ disabled?: boolean | undefined;
11
12
  name: TName;
12
- ref: import("react-hook-form").RefCallBack;
13
+ ref: import('react-hook-form').RefCallBack;
13
14
  };
@@ -1,13 +1,14 @@
1
- /// <reference types="react" />
2
1
  import { LabsTextProps } from './LabsText';
2
+
3
3
  export type LabsTextSearchProps = LabsTextProps;
4
- export declare const LabsTextSearch: import("react").ForwardRefExoticComponent<Partial<import("primereact/inputtext").InputTextProps> & import("./FieldContainer/FieldContainerInput").FieldContainerInputProps & import("react").RefAttributes<HTMLInputElement>>;
5
- export declare const toLabsTextSearchProps: <TValues extends import("react-hook-form").FieldValues = import("react-hook-form").FieldValues, TName extends import("react-hook-form").FieldPath<TValues> = import("react-hook-form").FieldPath<TValues>>({ field, fieldState, }: import("../main").ControllerRenderParams<TValues, TName>) => {
4
+ export declare const LabsTextSearch: import('react').ForwardRefExoticComponent<Partial<import('primereact/inputtext').InputTextProps> & import('./FieldContainer/FieldContainerInput').FieldContainerInputProps & import('react').RefAttributes<HTMLInputElement>>;
5
+ export declare const toLabsTextSearchProps: <TValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues, TName extends import('react-hook-form').FieldPath<TValues> = import('react-hook-form').FieldPath<TValues>>({ field, fieldState, }: import('../main').ControllerRenderParams<TValues, TName>) => {
6
6
  value: string;
7
7
  hasError: boolean;
8
8
  message: string | undefined;
9
9
  onChange: (...event: any[]) => void;
10
- onBlur: import("react-hook-form").Noop;
10
+ onBlur: import('react-hook-form').Noop;
11
+ disabled?: boolean | undefined;
11
12
  name: TName;
12
- ref: import("react-hook-form").RefCallBack;
13
+ ref: import('react-hook-form').RefCallBack;
13
14
  };
@@ -1,19 +1,20 @@
1
- /// <reference types="react" />
2
1
  import { InputTextareaProps } from 'primereact/inputtextarea';
3
2
  import { FieldValues, FieldPath } from 'react-hook-form';
4
- import { type FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
3
+ import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
5
4
  import { ControllerRenderParams } from '../types/ReactHookForm.type';
5
+
6
6
  type FieldProps = Partial<InputTextareaProps> & FieldContainerInputProps;
7
7
  export type LabsTextareaProps = FieldProps;
8
8
  export type LabsTextareaElement = HTMLTextAreaElement;
9
- export declare const LabsTextarea: import("react").ForwardRefExoticComponent<Partial<InputTextareaProps> & FieldContainerInputProps & import("react").RefAttributes<HTMLTextAreaElement>>;
9
+ export declare const LabsTextarea: import('react').ForwardRefExoticComponent<Partial<InputTextareaProps> & FieldContainerInputProps & import('react').RefAttributes<HTMLTextAreaElement>>;
10
10
  export declare const toLabsTextareaProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field, fieldState, }: ControllerRenderParams<TValues, TName>) => {
11
11
  value: string;
12
12
  hasError: boolean;
13
13
  message: string | undefined;
14
14
  onChange: (...event: any[]) => void;
15
- onBlur: import("react-hook-form").Noop;
15
+ onBlur: import('react-hook-form').Noop;
16
+ disabled?: boolean | undefined;
16
17
  name: TName;
17
- ref: import("react-hook-form").RefCallBack;
18
+ ref: import('react-hook-form').RefCallBack;
18
19
  };
19
20
  export {};
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  export interface LabsToggleProps {
3
4
  title: ReactNode;
4
5
  children: ReactNode;