@moser-inc/moser-labs-react 1.16.5 → 1.17.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/dist/moser-labs-react.cjs +2018 -88
- package/dist/moser-labs-react.d.ts +1 -0
- package/dist/moser-labs-react.js +38130 -22371
- package/dist/src/_dev/components/DevDirectoryLink.d.ts +0 -1
- package/dist/src/_dev/components/DevLink.d.ts +1 -2
- package/dist/src/_dev/lib/directory.d.ts +0 -1
- package/dist/src/_dev/sandbox.d.ts +0 -1
- package/dist/src/_dev/views/Base.view.d.ts +0 -1
- package/dist/src/_dev/views/Inputs.view.d.ts +38 -39
- package/dist/src/_dev/views/Presentation.view.d.ts +0 -1
- package/dist/src/components/FieldContainer/FieldContainer.d.ts +0 -1
- package/dist/src/components/FieldContainer/FieldContainerInput.d.ts +0 -1
- package/dist/src/components/FieldContainer/FieldContainerLabel.d.ts +0 -1
- package/dist/src/components/FieldContainer/FieldContainerMessage.d.ts +0 -1
- package/dist/src/components/LabsAuthGate.d.ts +0 -1
- package/dist/src/components/LabsButton.d.ts +0 -1
- package/dist/src/components/LabsCalendar.d.ts +0 -1
- package/dist/src/components/LabsCheckbox.d.ts +1 -2
- package/dist/src/components/LabsCount.d.ts +0 -1
- package/dist/src/components/LabsDate.d.ts +3 -3
- package/dist/src/components/LabsIcon.d.ts +0 -1
- package/dist/src/components/LabsLoader.d.ts +0 -1
- package/dist/src/components/LabsLogoutTimer.d.ts +0 -1
- package/dist/src/components/LabsMain.d.ts +0 -1
- package/dist/src/components/LabsMainDesktopNav.d.ts +0 -1
- package/dist/src/components/LabsMainHeaderActions.d.ts +10 -0
- package/dist/src/components/LabsMainMobileNav.d.ts +0 -1
- package/dist/src/components/LabsMenuNav.d.ts +0 -1
- package/dist/src/components/LabsPlaceholder.d.ts +0 -1
- package/dist/src/components/LabsSelect.d.ts +1 -2
- package/dist/src/components/LabsSpeedDialNav.d.ts +0 -1
- package/dist/src/components/LabsText.d.ts +1 -2
- package/dist/src/components/LabsTextCurrency.d.ts +1 -2
- package/dist/src/components/LabsTextSearch.d.ts +1 -2
- package/dist/src/components/LabsTextarea.d.ts +1 -2
- package/dist/src/components/LabsToggle.d.ts +0 -1
- package/dist/src/components/LabsTypeahead.d.ts +2 -3
- package/dist/src/components/LabsUser.d.ts +0 -1
- package/dist/src/hooks/useAnalytics.d.ts +7 -8
- package/dist/src/layouts/Base.layout.d.ts +0 -1
- package/dist/src/layouts/Centered.layout.d.ts +0 -1
- package/dist/src/layouts/Main.layout.d.ts +0 -1
- package/dist/src/lib/analytics/analyticsContext.d.ts +0 -1
- package/dist/src/lib/analytics/createAnalytics.d.ts +0 -1
- package/dist/src/lib/auth/authContext.d.ts +4 -3
- package/dist/src/lib/auth/authUtils.d.ts +22 -21
- package/dist/src/lib/auth/index.d.ts +0 -1
- package/dist/src/lib/dayjs.d.ts +0 -1
- package/dist/src/main.d.ts +1 -1
- package/dist/src/types/DirectoryValue.type.d.ts +0 -1
- package/dist/src/types/ReactHookForm.type.d.ts +0 -1
- package/dist/src/utils/animations.d.ts +0 -1
- package/dist/src/utils/fieldHelpers.d.ts +0 -1
- package/dist/src/utils/forwardRefInferGenerics.d.ts +0 -1
- package/package.json +35 -40
- package/dist/src/_dev/components/DevLabsUser.d.ts +0 -2
|
@@ -2,7 +2,6 @@ import { BadgeProps } from 'primereact/badge';
|
|
|
2
2
|
import { MenuItem } from 'primereact/menuitem';
|
|
3
3
|
import { NavLinkProps } from 'react-router-dom';
|
|
4
4
|
import { DirectoryValue } from '../../main';
|
|
5
|
-
|
|
6
5
|
type DevDirectoryLinkBaseProps = Omit<NavLinkProps, 'to'>;
|
|
7
6
|
export interface DevDirectoryLinkProps extends DevDirectoryLinkBaseProps {
|
|
8
7
|
item: DirectoryValue;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { LinkProps } from 'react-router-dom';
|
|
2
|
-
|
|
3
2
|
export type DevLinkProps = LinkProps & {
|
|
4
3
|
refreshOnSameUrl?: boolean;
|
|
5
4
|
};
|
|
6
5
|
export declare const DevLink: import('react').ForwardRefExoticComponent<LinkProps & {
|
|
7
|
-
refreshOnSameUrl?: boolean
|
|
6
|
+
refreshOnSameUrl?: boolean;
|
|
8
7
|
} & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UseFormProps } from 'react-hook-form';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
|
|
4
3
|
export declare const SampleFormSchema: z.ZodObject<{
|
|
5
4
|
checkbox: z.ZodBoolean;
|
|
6
5
|
date: z.ZodEffects<z.ZodNullable<z.ZodDate>, Date | null, Date | null>;
|
|
@@ -26,10 +25,10 @@ export declare const SampleFormSchema: z.ZodObject<{
|
|
|
26
25
|
label: string;
|
|
27
26
|
} | null>;
|
|
28
27
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
select: string;
|
|
30
|
-
text: string;
|
|
31
28
|
checkbox: boolean;
|
|
29
|
+
text: string;
|
|
32
30
|
date: Date | null;
|
|
31
|
+
select: string;
|
|
33
32
|
textCurrency: string;
|
|
34
33
|
textSearch: string;
|
|
35
34
|
textArea: string;
|
|
@@ -38,10 +37,10 @@ export declare const SampleFormSchema: z.ZodObject<{
|
|
|
38
37
|
label: string;
|
|
39
38
|
} | null;
|
|
40
39
|
}, {
|
|
41
|
-
select: string;
|
|
42
|
-
text: string;
|
|
43
40
|
checkbox: boolean;
|
|
41
|
+
text: string;
|
|
44
42
|
date: Date | null;
|
|
43
|
+
select: string;
|
|
45
44
|
textCurrency: string;
|
|
46
45
|
textSearch: string;
|
|
47
46
|
textArea: string;
|
|
@@ -77,10 +76,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
77
76
|
label: string;
|
|
78
77
|
} | null>;
|
|
79
78
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
select: string;
|
|
81
|
-
text: string;
|
|
82
79
|
checkbox: boolean;
|
|
80
|
+
text: string;
|
|
83
81
|
date: Date | null;
|
|
82
|
+
select: string;
|
|
84
83
|
textCurrency: string;
|
|
85
84
|
textSearch: string;
|
|
86
85
|
textArea: string;
|
|
@@ -89,10 +88,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
89
88
|
label: string;
|
|
90
89
|
} | null;
|
|
91
90
|
}, {
|
|
92
|
-
select: string;
|
|
93
|
-
text: string;
|
|
94
91
|
checkbox: boolean;
|
|
92
|
+
text: string;
|
|
95
93
|
date: Date | null;
|
|
94
|
+
select: string;
|
|
96
95
|
textCurrency: string;
|
|
97
96
|
textSearch: string;
|
|
98
97
|
textArea: string;
|
|
@@ -102,10 +101,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
102
101
|
} | null;
|
|
103
102
|
}>;
|
|
104
103
|
readonly watch: import('react-hook-form').UseFormWatch<{
|
|
105
|
-
select: string;
|
|
106
|
-
text: string;
|
|
107
104
|
checkbox: boolean;
|
|
105
|
+
text: string;
|
|
108
106
|
date: Date | null;
|
|
107
|
+
select: string;
|
|
109
108
|
textCurrency: string;
|
|
110
109
|
textSearch: string;
|
|
111
110
|
textArea: string;
|
|
@@ -115,10 +114,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
115
114
|
} | null;
|
|
116
115
|
}>;
|
|
117
116
|
readonly getValues: import('react-hook-form').UseFormGetValues<{
|
|
118
|
-
select: string;
|
|
119
|
-
text: string;
|
|
120
117
|
checkbox: boolean;
|
|
118
|
+
text: string;
|
|
121
119
|
date: Date | null;
|
|
120
|
+
select: string;
|
|
122
121
|
textCurrency: string;
|
|
123
122
|
textSearch: string;
|
|
124
123
|
textArea: string;
|
|
@@ -128,10 +127,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
128
127
|
} | null;
|
|
129
128
|
}>;
|
|
130
129
|
readonly getFieldState: import('react-hook-form').UseFormGetFieldState<{
|
|
131
|
-
select: string;
|
|
132
|
-
text: string;
|
|
133
130
|
checkbox: boolean;
|
|
131
|
+
text: string;
|
|
134
132
|
date: Date | null;
|
|
133
|
+
select: string;
|
|
135
134
|
textCurrency: string;
|
|
136
135
|
textSearch: string;
|
|
137
136
|
textArea: string;
|
|
@@ -141,10 +140,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
141
140
|
} | null;
|
|
142
141
|
}>;
|
|
143
142
|
readonly setError: import('react-hook-form').UseFormSetError<{
|
|
144
|
-
select: string;
|
|
145
|
-
text: string;
|
|
146
143
|
checkbox: boolean;
|
|
144
|
+
text: string;
|
|
147
145
|
date: Date | null;
|
|
146
|
+
select: string;
|
|
148
147
|
textCurrency: string;
|
|
149
148
|
textSearch: string;
|
|
150
149
|
textArea: string;
|
|
@@ -154,10 +153,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
154
153
|
} | null;
|
|
155
154
|
}>;
|
|
156
155
|
readonly clearErrors: import('react-hook-form').UseFormClearErrors<{
|
|
157
|
-
select: string;
|
|
158
|
-
text: string;
|
|
159
156
|
checkbox: boolean;
|
|
157
|
+
text: string;
|
|
160
158
|
date: Date | null;
|
|
159
|
+
select: string;
|
|
161
160
|
textCurrency: string;
|
|
162
161
|
textSearch: string;
|
|
163
162
|
textArea: string;
|
|
@@ -167,10 +166,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
167
166
|
} | null;
|
|
168
167
|
}>;
|
|
169
168
|
readonly setValue: import('react-hook-form').UseFormSetValue<{
|
|
170
|
-
select: string;
|
|
171
|
-
text: string;
|
|
172
169
|
checkbox: boolean;
|
|
170
|
+
text: string;
|
|
173
171
|
date: Date | null;
|
|
172
|
+
select: string;
|
|
174
173
|
textCurrency: string;
|
|
175
174
|
textSearch: string;
|
|
176
175
|
textArea: string;
|
|
@@ -180,10 +179,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
180
179
|
} | null;
|
|
181
180
|
}>;
|
|
182
181
|
readonly trigger: import('react-hook-form').UseFormTrigger<{
|
|
183
|
-
select: string;
|
|
184
|
-
text: string;
|
|
185
182
|
checkbox: boolean;
|
|
183
|
+
text: string;
|
|
186
184
|
date: Date | null;
|
|
185
|
+
select: string;
|
|
187
186
|
textCurrency: string;
|
|
188
187
|
textSearch: string;
|
|
189
188
|
textArea: string;
|
|
@@ -193,10 +192,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
193
192
|
} | null;
|
|
194
193
|
}>;
|
|
195
194
|
readonly formState: import('react-hook-form').FormState<{
|
|
196
|
-
select: string;
|
|
197
|
-
text: string;
|
|
198
195
|
checkbox: boolean;
|
|
196
|
+
text: string;
|
|
199
197
|
date: Date | null;
|
|
198
|
+
select: string;
|
|
200
199
|
textCurrency: string;
|
|
201
200
|
textSearch: string;
|
|
202
201
|
textArea: string;
|
|
@@ -206,10 +205,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
206
205
|
} | null;
|
|
207
206
|
}>;
|
|
208
207
|
readonly resetField: import('react-hook-form').UseFormResetField<{
|
|
209
|
-
select: string;
|
|
210
|
-
text: string;
|
|
211
208
|
checkbox: boolean;
|
|
209
|
+
text: string;
|
|
212
210
|
date: Date | null;
|
|
211
|
+
select: string;
|
|
213
212
|
textCurrency: string;
|
|
214
213
|
textSearch: string;
|
|
215
214
|
textArea: string;
|
|
@@ -219,10 +218,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
219
218
|
} | null;
|
|
220
219
|
}>;
|
|
221
220
|
readonly reset: import('react-hook-form').UseFormReset<{
|
|
222
|
-
select: string;
|
|
223
|
-
text: string;
|
|
224
221
|
checkbox: boolean;
|
|
222
|
+
text: string;
|
|
225
223
|
date: Date | null;
|
|
224
|
+
select: string;
|
|
226
225
|
textCurrency: string;
|
|
227
226
|
textSearch: string;
|
|
228
227
|
textArea: string;
|
|
@@ -232,10 +231,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
232
231
|
} | null;
|
|
233
232
|
}>;
|
|
234
233
|
readonly handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
|
|
235
|
-
select: string;
|
|
236
|
-
text: string;
|
|
237
234
|
checkbox: boolean;
|
|
235
|
+
text: string;
|
|
238
236
|
date: Date | null;
|
|
237
|
+
select: string;
|
|
239
238
|
textCurrency: string;
|
|
240
239
|
textSearch: string;
|
|
241
240
|
textArea: string;
|
|
@@ -245,10 +244,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
245
244
|
} | null;
|
|
246
245
|
}, undefined>;
|
|
247
246
|
readonly unregister: import('react-hook-form').UseFormUnregister<{
|
|
248
|
-
select: string;
|
|
249
|
-
text: string;
|
|
250
247
|
checkbox: boolean;
|
|
248
|
+
text: string;
|
|
251
249
|
date: Date | null;
|
|
250
|
+
select: string;
|
|
252
251
|
textCurrency: string;
|
|
253
252
|
textSearch: string;
|
|
254
253
|
textArea: string;
|
|
@@ -258,10 +257,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
258
257
|
} | null;
|
|
259
258
|
}>;
|
|
260
259
|
readonly control: import('react-hook-form').Control<{
|
|
261
|
-
select: string;
|
|
262
|
-
text: string;
|
|
263
260
|
checkbox: boolean;
|
|
261
|
+
text: string;
|
|
264
262
|
date: Date | null;
|
|
263
|
+
select: string;
|
|
265
264
|
textCurrency: string;
|
|
266
265
|
textSearch: string;
|
|
267
266
|
textArea: string;
|
|
@@ -271,10 +270,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
271
270
|
} | null;
|
|
272
271
|
}, any>;
|
|
273
272
|
readonly register: import('react-hook-form').UseFormRegister<{
|
|
274
|
-
select: string;
|
|
275
|
-
text: string;
|
|
276
273
|
checkbox: boolean;
|
|
274
|
+
text: string;
|
|
277
275
|
date: Date | null;
|
|
276
|
+
select: string;
|
|
278
277
|
textCurrency: string;
|
|
279
278
|
textSearch: string;
|
|
280
279
|
textArea: string;
|
|
@@ -284,10 +283,10 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
|
|
|
284
283
|
} | null;
|
|
285
284
|
}>;
|
|
286
285
|
readonly setFocus: import('react-hook-form').UseFormSetFocus<{
|
|
287
|
-
select: string;
|
|
288
|
-
text: string;
|
|
289
286
|
checkbox: boolean;
|
|
287
|
+
text: string;
|
|
290
288
|
date: Date | null;
|
|
289
|
+
select: string;
|
|
291
290
|
textCurrency: string;
|
|
292
291
|
textSearch: string;
|
|
293
292
|
textArea: string;
|
|
@@ -2,7 +2,6 @@ import { CheckboxProps } from 'primereact/checkbox';
|
|
|
2
2
|
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
3
3
|
import { FieldContainerProps } from './FieldContainer/FieldContainer';
|
|
4
4
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
5
|
-
|
|
6
5
|
type FieldProps = Partial<CheckboxProps> & FieldContainerProps;
|
|
7
6
|
export type LabsCheckboxProps = FieldProps;
|
|
8
7
|
export declare const LabsCheckbox: {
|
|
@@ -16,7 +15,7 @@ export declare const toLabsCheckboxProps: <TValues extends FieldValues = FieldVa
|
|
|
16
15
|
hasError: boolean;
|
|
17
16
|
message: string | undefined;
|
|
18
17
|
onBlur: import('react-hook-form').Noop;
|
|
19
|
-
disabled?: boolean
|
|
18
|
+
disabled?: boolean;
|
|
20
19
|
name: TName;
|
|
21
20
|
};
|
|
22
21
|
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
+
import { FormEvent } from 'primereact/ts-helpers';
|
|
1
2
|
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
2
3
|
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
3
4
|
import { LabsCalendarProps } from './LabsCalendar';
|
|
4
5
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
5
|
-
|
|
6
6
|
type FieldProps = LabsCalendarProps & FieldContainerInputProps;
|
|
7
7
|
export type LabsDateProps = FieldProps;
|
|
8
8
|
export declare const LabsDate: (props: LabsDateProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export declare const toLabsDateProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field: { ref, ...field }, fieldState, }: ControllerRenderParams<TValues, TName>) => {
|
|
10
10
|
inputRef: import('react-hook-form').RefCallBack;
|
|
11
|
-
onChange: (event:
|
|
11
|
+
onChange: (event: FormEvent<Date>) => void;
|
|
12
12
|
hasError: boolean;
|
|
13
13
|
message: string | undefined;
|
|
14
14
|
onBlur: import('react-hook-form').Noop;
|
|
15
15
|
value: import('react-hook-form').PathValue<TValues, TName>;
|
|
16
|
-
disabled?: boolean
|
|
16
|
+
disabled?: boolean;
|
|
17
17
|
name: TName;
|
|
18
18
|
};
|
|
19
19
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MenuItem } from 'primereact/menuitem';
|
|
2
2
|
import { LabsMenuNavProps } from './LabsMenuNav';
|
|
3
3
|
import { DirectoryValue } from '../main';
|
|
4
|
-
|
|
5
4
|
export type LabsMainDesktopNavProps = Omit<LabsMenuNavProps, 'renderItem'> & {
|
|
6
5
|
renderItem: (item: DirectoryValue, menuProps: {
|
|
7
6
|
isMenuOpen: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
declare module 'react/jsx-runtime' {
|
|
3
|
+
namespace JSX {
|
|
4
|
+
interface IntrinsicElements {
|
|
5
|
+
'labs-app-switcher': HTMLAttributes<HTMLElement>;
|
|
6
|
+
'labs-account': HTMLAttributes<HTMLElement>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare const LabsMainHeaderActions: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MenuItem } from 'primereact/menuitem';
|
|
2
2
|
import { LabsSpeedDialNavProps } from './LabsSpeedDialNav';
|
|
3
3
|
import { DirectoryValue } from '../main';
|
|
4
|
-
|
|
5
4
|
export type LabsMainMobileNavProps = Omit<LabsSpeedDialNavProps, 'renderItem'> & {
|
|
6
5
|
renderItem: (item: DirectoryValue, menuProps: {
|
|
7
6
|
isMenuOpen: boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MenuProps } from 'primereact/menu';
|
|
2
2
|
import { MenuItem } from 'primereact/menuitem';
|
|
3
3
|
import { DirectoryValue } from '../types/DirectoryValue.type';
|
|
4
|
-
|
|
5
4
|
type LabsMenuNavBaseProps = MenuProps;
|
|
6
5
|
export interface LabsMenuNavProps extends LabsMenuNavBaseProps {
|
|
7
6
|
items: readonly DirectoryValue[];
|
|
@@ -4,7 +4,6 @@ import { IconType } from 'primereact/utils';
|
|
|
4
4
|
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
5
5
|
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
6
6
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
7
|
-
|
|
8
7
|
export interface LabsSelectOption<T = unknown> {
|
|
9
8
|
label?: string;
|
|
10
9
|
value?: T;
|
|
@@ -28,7 +27,7 @@ export declare const toLabsSelectProps: <TValues extends FieldValues = FieldValu
|
|
|
28
27
|
message: string | undefined;
|
|
29
28
|
onBlur: import('react-hook-form').Noop;
|
|
30
29
|
value: import('react-hook-form').PathValue<TValues, TName>;
|
|
31
|
-
disabled?: boolean
|
|
30
|
+
disabled?: boolean;
|
|
32
31
|
name: TName;
|
|
33
32
|
};
|
|
34
33
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MenuItem } from 'primereact/menuitem';
|
|
2
2
|
import { SpeedDialProps } from 'primereact/speeddial';
|
|
3
3
|
import { DirectoryValue } from '../types/DirectoryValue.type';
|
|
4
|
-
|
|
5
4
|
type LabsSpeedDialNavBaseProps = SpeedDialProps;
|
|
6
5
|
export interface LabsSpeedDialNavProps extends LabsSpeedDialNavBaseProps {
|
|
7
6
|
items: readonly DirectoryValue[];
|
|
@@ -2,7 +2,6 @@ import { InputTextProps } from 'primereact/inputtext';
|
|
|
2
2
|
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
3
3
|
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
4
4
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
5
|
-
|
|
6
5
|
type FieldProps = Partial<InputTextProps> & FieldContainerInputProps;
|
|
7
6
|
export type LabsTextProps = FieldProps;
|
|
8
7
|
export type LabsTextElement = HTMLInputElement;
|
|
@@ -13,7 +12,7 @@ export declare const toLabsTextProps: <TValues extends FieldValues = FieldValues
|
|
|
13
12
|
message: string | undefined;
|
|
14
13
|
onChange: (...event: any[]) => void;
|
|
15
14
|
onBlur: import('react-hook-form').Noop;
|
|
16
|
-
disabled?: boolean
|
|
15
|
+
disabled?: boolean;
|
|
17
16
|
name: TName;
|
|
18
17
|
ref: import('react-hook-form').RefCallBack;
|
|
19
18
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LabsTextProps } from './LabsText';
|
|
2
|
-
|
|
3
2
|
export type LabsTextCurrencyProps = LabsTextProps;
|
|
4
3
|
export declare const LabsTextCurrency: import('react').ForwardRefExoticComponent<Partial<import('primereact/inputtext').InputTextProps> & import('./FieldContainer/FieldContainerInput').FieldContainerInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
5
4
|
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>) => {
|
|
@@ -8,7 +7,7 @@ export declare const toLabsTextCurrencyProps: <TValues extends import('react-hoo
|
|
|
8
7
|
message: string | undefined;
|
|
9
8
|
onChange: (...event: any[]) => void;
|
|
10
9
|
onBlur: import('react-hook-form').Noop;
|
|
11
|
-
disabled?: boolean
|
|
10
|
+
disabled?: boolean;
|
|
12
11
|
name: TName;
|
|
13
12
|
ref: import('react-hook-form').RefCallBack;
|
|
14
13
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LabsTextProps } from './LabsText';
|
|
2
|
-
|
|
3
2
|
export type LabsTextSearchProps = LabsTextProps;
|
|
4
3
|
export declare const LabsTextSearch: import('react').ForwardRefExoticComponent<Partial<import('primereact/inputtext').InputTextProps> & import('./FieldContainer/FieldContainerInput').FieldContainerInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
5
4
|
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>) => {
|
|
@@ -8,7 +7,7 @@ export declare const toLabsTextSearchProps: <TValues extends import('react-hook-
|
|
|
8
7
|
message: string | undefined;
|
|
9
8
|
onChange: (...event: any[]) => void;
|
|
10
9
|
onBlur: import('react-hook-form').Noop;
|
|
11
|
-
disabled?: boolean
|
|
10
|
+
disabled?: boolean;
|
|
12
11
|
name: TName;
|
|
13
12
|
ref: import('react-hook-form').RefCallBack;
|
|
14
13
|
};
|
|
@@ -2,7 +2,6 @@ import { InputTextareaProps } from 'primereact/inputtextarea';
|
|
|
2
2
|
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
3
3
|
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
4
4
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
5
|
-
|
|
6
5
|
type FieldProps = Partial<InputTextareaProps> & FieldContainerInputProps;
|
|
7
6
|
export type LabsTextareaProps = FieldProps;
|
|
8
7
|
export type LabsTextareaElement = HTMLTextAreaElement;
|
|
@@ -13,7 +12,7 @@ export declare const toLabsTextareaProps: <TValues extends FieldValues = FieldVa
|
|
|
13
12
|
message: string | undefined;
|
|
14
13
|
onChange: (...event: any[]) => void;
|
|
15
14
|
onBlur: import('react-hook-form').Noop;
|
|
16
|
-
disabled?: boolean
|
|
15
|
+
disabled?: boolean;
|
|
17
16
|
name: TName;
|
|
18
17
|
ref: import('react-hook-form').RefCallBack;
|
|
19
18
|
};
|
|
@@ -2,20 +2,19 @@ import { FieldPath, FieldValues } from 'react-hook-form';
|
|
|
2
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
|
-
|
|
6
5
|
interface BaseProps extends FieldContainerInputProps {
|
|
7
6
|
createable?: boolean;
|
|
8
7
|
}
|
|
9
8
|
export type LabsTypeaheadProps<Option, Multi extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = BaseSelectProps<Option, Multi, Group> & BaseProps;
|
|
10
9
|
export type LabsTypeaheadElement = BaseSelect;
|
|
11
|
-
export declare const LabsTypeahead: <Option, Multi extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: Omit<import('react-select/dist/declarations/src/Select').PublicBaseSelectProps<Option, Multi, Group>, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import('react-select/dist/declarations/src/Select').PublicBaseSelectProps<Option, Multi, Group>> & import('react-select/dist/declarations/src/useStateManager').StateManagerAdditionalProps<Option> & BaseProps & import('react').RefAttributes<BaseSelect>) =>
|
|
10
|
+
export declare const LabsTypeahead: <Option, Multi extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: Omit<import('react-select/dist/declarations/src/Select').PublicBaseSelectProps<Option, Multi, Group>, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import('react-select/dist/declarations/src/Select').PublicBaseSelectProps<Option, Multi, Group>> & import('react-select/dist/declarations/src/useStateManager').StateManagerAdditionalProps<Option> & BaseProps & import('react').RefAttributes<BaseSelect>) => React.ReactElement | null;
|
|
12
11
|
export declare const toLabsTypeaheadProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field, fieldState, }: ControllerRenderParams<TValues, TName>) => {
|
|
13
12
|
value: null;
|
|
14
13
|
hasError: boolean;
|
|
15
14
|
message: string | undefined;
|
|
16
15
|
onChange: (...event: any[]) => void;
|
|
17
16
|
onBlur: import('react-hook-form').Noop;
|
|
18
|
-
disabled?: boolean
|
|
17
|
+
disabled?: boolean;
|
|
19
18
|
name: TName;
|
|
20
19
|
ref: import('react-hook-form').RefCallBack;
|
|
21
20
|
};
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { User } from '../lib/auth';
|
|
2
|
-
|
|
3
2
|
export declare const useAnalytics: () => {
|
|
4
3
|
readonly trackEntity: (eventName: string, entityName?: string, entityId?: string, payload?: Record<string, unknown>) => void;
|
|
5
4
|
readonly trackUser: (user: User) => void;
|
|
6
|
-
readonly identify: (userId: string, traits?: any, options?: any, callback?: (
|
|
7
|
-
readonly track: (eventName: string, payload?: any, options?: any, callback?: (
|
|
8
|
-
readonly page: (data?: import('analytics').PageData
|
|
9
|
-
readonly user: (key?: string
|
|
10
|
-
readonly reset: (callback?: (
|
|
5
|
+
readonly identify: (userId: string, traits?: any, options?: any, callback?: (...params: any[]) => any) => Promise<any>;
|
|
6
|
+
readonly track: (eventName: string, payload?: any, options?: any, callback?: (...params: any[]) => any) => Promise<any>;
|
|
7
|
+
readonly page: (data?: import('analytics').PageData, options?: any, callback?: (...params: any[]) => any) => Promise<any>;
|
|
8
|
+
readonly user: (key?: string) => string & any;
|
|
9
|
+
readonly reset: (callback?: (...params: any[]) => any) => Promise<any>;
|
|
11
10
|
readonly ready: (callback: (...params: any[]) => any) => import('analytics').DetachListeners;
|
|
12
11
|
readonly on: (name: string, callback: (...params: any[]) => any) => import('analytics').DetachListeners;
|
|
13
12
|
readonly once: (name: string, callback: (...params: any[]) => any) => import('analytics').DetachListeners;
|
|
14
|
-
readonly getState: (key?: string
|
|
13
|
+
readonly getState: (key?: string) => any;
|
|
15
14
|
readonly storage: {
|
|
16
15
|
getItem: (key: string, options?: any) => any;
|
|
17
16
|
setItem: (key: string, value: any, options?: any) => void;
|
|
18
17
|
removeItem: (key: string, options?: any) => void;
|
|
19
18
|
};
|
|
20
19
|
readonly plugins: {
|
|
21
|
-
enable: (plugins: string | string[], callback?: (
|
|
20
|
+
enable: (plugins: string | string[], callback?: (...params: any[]) => any) => Promise<any>;
|
|
22
21
|
disable: (plugins: string | string[], callback: (...params: any[]) => any) => Promise<any>;
|
|
23
22
|
};
|
|
24
23
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LabsMainDesktopNavProps } from '../components/LabsMainDesktopNav';
|
|
2
2
|
import { LabsMainMobileNavProps } from '../components/LabsMainMobileNav';
|
|
3
3
|
import { DirectoryValue } from '../types/DirectoryValue.type';
|
|
4
|
-
|
|
5
4
|
interface LayoutMainProps {
|
|
6
5
|
actions?: (() => React.ReactNode) | React.ReactNode;
|
|
7
6
|
appName: string;
|