@moser-inc/moser-labs-react 2.1.1 → 3.0.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.
@@ -1 +1 @@
1
- export declare const router: import('@remix-run/router').Router;
1
+ export declare const router: import('react-router-dom').DataRouter;
@@ -8,22 +8,6 @@ export declare const SampleFormSchema: z.ZodObject<{
8
8
  textCurrency: z.ZodString;
9
9
  textSearch: z.ZodString;
10
10
  textArea: z.ZodString;
11
- typeahead: z.ZodEffects<z.ZodNullable<z.ZodObject<{
12
- label: z.ZodString;
13
- value: z.ZodString;
14
- }, "strip", z.ZodTypeAny, {
15
- value: string;
16
- label: string;
17
- }, {
18
- value: string;
19
- label: string;
20
- }>>, {
21
- value: string;
22
- label: string;
23
- } | null, {
24
- value: string;
25
- label: string;
26
- } | null>;
27
11
  }, "strip", z.ZodTypeAny, {
28
12
  select: string;
29
13
  text: string;
@@ -32,10 +16,6 @@ export declare const SampleFormSchema: z.ZodObject<{
32
16
  textCurrency: string;
33
17
  textSearch: string;
34
18
  textArea: string;
35
- typeahead: {
36
- value: string;
37
- label: string;
38
- } | null;
39
19
  }, {
40
20
  select: string;
41
21
  text: string;
@@ -44,10 +24,6 @@ export declare const SampleFormSchema: z.ZodObject<{
44
24
  textCurrency: string;
45
25
  textSearch: string;
46
26
  textArea: string;
47
- typeahead: {
48
- value: string;
49
- label: string;
50
- } | null;
51
27
  }>;
52
28
  export type SampleFormValues = z.infer<typeof SampleFormSchema>;
53
29
  export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseFormProps<SampleFormValues>) => {
@@ -59,22 +35,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
59
35
  textCurrency: z.ZodString;
60
36
  textSearch: z.ZodString;
61
37
  textArea: z.ZodString;
62
- typeahead: z.ZodEffects<z.ZodNullable<z.ZodObject<{
63
- label: z.ZodString;
64
- value: z.ZodString;
65
- }, "strip", z.ZodTypeAny, {
66
- value: string;
67
- label: string;
68
- }, {
69
- value: string;
70
- label: string;
71
- }>>, {
72
- value: string;
73
- label: string;
74
- } | null, {
75
- value: string;
76
- label: string;
77
- } | null>;
78
38
  }, "strip", z.ZodTypeAny, {
79
39
  select: string;
80
40
  text: string;
@@ -83,10 +43,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
83
43
  textCurrency: string;
84
44
  textSearch: string;
85
45
  textArea: string;
86
- typeahead: {
87
- value: string;
88
- label: string;
89
- } | null;
90
46
  }, {
91
47
  select: string;
92
48
  text: string;
@@ -95,10 +51,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
95
51
  textCurrency: string;
96
52
  textSearch: string;
97
53
  textArea: string;
98
- typeahead: {
99
- value: string;
100
- label: string;
101
- } | null;
102
54
  }>;
103
55
  readonly watch: import('react-hook-form').UseFormWatch<{
104
56
  select: string;
@@ -108,10 +60,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
108
60
  textCurrency: string;
109
61
  textSearch: string;
110
62
  textArea: string;
111
- typeahead: {
112
- value: string;
113
- label: string;
114
- } | null;
115
63
  }>;
116
64
  readonly getValues: import('react-hook-form').UseFormGetValues<{
117
65
  select: string;
@@ -121,10 +69,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
121
69
  textCurrency: string;
122
70
  textSearch: string;
123
71
  textArea: string;
124
- typeahead: {
125
- value: string;
126
- label: string;
127
- } | null;
128
72
  }>;
129
73
  readonly getFieldState: import('react-hook-form').UseFormGetFieldState<{
130
74
  select: string;
@@ -134,10 +78,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
134
78
  textCurrency: string;
135
79
  textSearch: string;
136
80
  textArea: string;
137
- typeahead: {
138
- value: string;
139
- label: string;
140
- } | null;
141
81
  }>;
142
82
  readonly setError: import('react-hook-form').UseFormSetError<{
143
83
  select: string;
@@ -147,10 +87,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
147
87
  textCurrency: string;
148
88
  textSearch: string;
149
89
  textArea: string;
150
- typeahead: {
151
- value: string;
152
- label: string;
153
- } | null;
154
90
  }>;
155
91
  readonly clearErrors: import('react-hook-form').UseFormClearErrors<{
156
92
  select: string;
@@ -160,10 +96,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
160
96
  textCurrency: string;
161
97
  textSearch: string;
162
98
  textArea: string;
163
- typeahead: {
164
- value: string;
165
- label: string;
166
- } | null;
167
99
  }>;
168
100
  readonly setValue: import('react-hook-form').UseFormSetValue<{
169
101
  select: string;
@@ -173,10 +105,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
173
105
  textCurrency: string;
174
106
  textSearch: string;
175
107
  textArea: string;
176
- typeahead: {
177
- value: string;
178
- label: string;
179
- } | null;
180
108
  }>;
181
109
  readonly trigger: import('react-hook-form').UseFormTrigger<{
182
110
  select: string;
@@ -186,10 +114,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
186
114
  textCurrency: string;
187
115
  textSearch: string;
188
116
  textArea: string;
189
- typeahead: {
190
- value: string;
191
- label: string;
192
- } | null;
193
117
  }>;
194
118
  readonly formState: import('react-hook-form').FormState<{
195
119
  select: string;
@@ -199,10 +123,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
199
123
  textCurrency: string;
200
124
  textSearch: string;
201
125
  textArea: string;
202
- typeahead: {
203
- value: string;
204
- label: string;
205
- } | null;
206
126
  }>;
207
127
  readonly resetField: import('react-hook-form').UseFormResetField<{
208
128
  select: string;
@@ -212,10 +132,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
212
132
  textCurrency: string;
213
133
  textSearch: string;
214
134
  textArea: string;
215
- typeahead: {
216
- value: string;
217
- label: string;
218
- } | null;
219
135
  }>;
220
136
  readonly reset: import('react-hook-form').UseFormReset<{
221
137
  select: string;
@@ -225,10 +141,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
225
141
  textCurrency: string;
226
142
  textSearch: string;
227
143
  textArea: string;
228
- typeahead: {
229
- value: string;
230
- label: string;
231
- } | null;
232
144
  }>;
233
145
  readonly handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
234
146
  select: string;
@@ -238,10 +150,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
238
150
  textCurrency: string;
239
151
  textSearch: string;
240
152
  textArea: string;
241
- typeahead: {
242
- value: string;
243
- label: string;
244
- } | null;
245
153
  }, {
246
154
  select: string;
247
155
  text: string;
@@ -250,10 +158,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
250
158
  textCurrency: string;
251
159
  textSearch: string;
252
160
  textArea: string;
253
- typeahead: {
254
- value: string;
255
- label: string;
256
- } | null;
257
161
  }>;
258
162
  readonly unregister: import('react-hook-form').UseFormUnregister<{
259
163
  select: string;
@@ -263,10 +167,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
263
167
  textCurrency: string;
264
168
  textSearch: string;
265
169
  textArea: string;
266
- typeahead: {
267
- value: string;
268
- label: string;
269
- } | null;
270
170
  }>;
271
171
  readonly control: import('react-hook-form').Control<{
272
172
  select: string;
@@ -276,10 +176,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
276
176
  textCurrency: string;
277
177
  textSearch: string;
278
178
  textArea: string;
279
- typeahead: {
280
- value: string;
281
- label: string;
282
- } | null;
283
179
  }, any, {
284
180
  select: string;
285
181
  text: string;
@@ -288,10 +184,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
288
184
  textCurrency: string;
289
185
  textSearch: string;
290
186
  textArea: string;
291
- typeahead: {
292
- value: string;
293
- label: string;
294
- } | null;
295
187
  }>;
296
188
  readonly register: import('react-hook-form').UseFormRegister<{
297
189
  select: string;
@@ -301,10 +193,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
301
193
  textCurrency: string;
302
194
  textSearch: string;
303
195
  textArea: string;
304
- typeahead: {
305
- value: string;
306
- label: string;
307
- } | null;
308
196
  }>;
309
197
  readonly setFocus: import('react-hook-form').UseFormSetFocus<{
310
198
  select: string;
@@ -314,10 +202,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
314
202
  textCurrency: string;
315
203
  textSearch: string;
316
204
  textArea: string;
317
- typeahead: {
318
- value: string;
319
- label: string;
320
- } | null;
321
205
  }>;
322
206
  readonly subscribe: import('react-hook-form').UseFromSubscribe<{
323
207
  select: string;
@@ -327,10 +211,6 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
327
211
  textCurrency: string;
328
212
  textSearch: string;
329
213
  textArea: string;
330
- typeahead: {
331
- value: string;
332
- label: string;
333
- } | null;
334
214
  }>;
335
215
  };
336
216
  declare const DevViewInputs: React.FC;
@@ -0,0 +1,6 @@
1
+ import { ComponentProps } from 'react';
2
+ export interface LabsEmptyProps extends ComponentProps<'div'> {
3
+ text: string;
4
+ icon?: string;
5
+ }
6
+ export declare const LabsEmpty: ({ text, className, icon, children, ...rest }: LabsEmptyProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,7 +5,7 @@ export * from './components/LabsCalendar';
5
5
  export * from './components/LabsCheckbox';
6
6
  export * from './components/LabsCount';
7
7
  export * from './components/LabsDate';
8
- export * from './components/LabsIcon';
8
+ export * from './components/LabsEmpty';
9
9
  export * from './components/LabsLoader';
10
10
  export * from './components/LabsLogoutTimer';
11
11
  export * from './components/LabsMain';
@@ -13,7 +13,6 @@ export * from './components/LabsMainDesktopNav';
13
13
  export * from './components/LabsMainMobileNav';
14
14
  export * from './components/LabsMainHeaderActions';
15
15
  export * from './components/LabsMenuNav';
16
- export * from './components/LabsPlaceholder';
17
16
  export * from './components/LabsSelect';
18
17
  export * from './components/LabsSpeedDialNav';
19
18
  export * from './components/LabsText';
@@ -21,8 +20,6 @@ export * from './components/LabsTextCurrency';
21
20
  export * from './components/LabsTextSearch';
22
21
  export * from './components/LabsTextarea';
23
22
  export * from './components/LabsToggle';
24
- export * from './components/LabsTypeahead';
25
- export * from './components/LabsUser';
26
23
  export * from './hooks/useAuth';
27
24
  export * from './hooks/useBreakpoints';
28
25
  export * from './hooks/useLabs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moser-inc/moser-labs-react",
3
- "version": "2.1.1",
3
+ "version": "3.0.0",
4
4
  "description": "React components for the Moser Labs suite of applications.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,17 +9,16 @@
9
9
  "author": "Moser Consulting",
10
10
  "license": "ISC",
11
11
  "type": "module",
12
- "main": "dist/moser-labs-react.cjs",
12
+ "main": "dist/moser-labs-react.js",
13
13
  "module": "dist/moser-labs-react.js",
14
14
  "types": "dist/moser-labs-react.d.ts",
15
15
  "exports": {
16
16
  ".": {
17
- "import": "./dist/moser-labs-react.js",
18
- "require": "./dist/moser-labs-react.cjs"
17
+ "types": "./dist/moser-labs-react.d.ts",
18
+ "default": "./dist/moser-labs-react.js"
19
19
  },
20
20
  "./style.css": {
21
- "import": "./dist/style.css",
22
- "require": "./dist/style.css"
21
+ "default": "./dist/moser-labs-react.css"
23
22
  }
24
23
  },
25
24
  "files": [
@@ -40,45 +39,40 @@
40
39
  "primereact": ">= 9.6.0 <= 10.4.0",
41
40
  "react": ">= 18.2.0 < 19",
42
41
  "react-dom": ">= 18.2.0 < 19",
43
- "react-router-dom": ">= 6 < 7"
42
+ "react-router": ">= 6 < 8",
43
+ "react-router-dom": ">= 6 < 8"
44
44
  },
45
45
  "dependencies": {
46
46
  "@analytics/mixpanel": "^0.4.0",
47
47
  "@hookform/resolvers": "^5.0.1",
48
- "@moser-inc/moser-labs-custom-elements": "2.3.5",
49
- "@react-hookz/web": "^25.1.0",
48
+ "@moser-inc/moser-labs-custom-elements": "2.3.6",
49
+ "@react-hookz/web": "^25.1.1",
50
50
  "analytics": "^0.8.16",
51
51
  "clsx": "^2.1.1",
52
52
  "dayjs": "^1.11.13",
53
- "framer-motion": "^12.6.3",
53
+ "framer-motion": "^12.12.2",
54
54
  "js-sha256": "^0.11.0",
55
55
  "keycloak-js": "23.0.3",
56
56
  "lodash": "^4.17.21",
57
- "mixpanel-browser": "^2.63.0",
57
+ "mixpanel-browser": "^2.65.0",
58
58
  "react-helmet-async": "^2.0.5",
59
- "react-hook-form": "^7.55.0",
59
+ "react-hook-form": "^7.56.4",
60
60
  "react-idle-timer": "^5.7.2",
61
- "react-select": "^5.10.1",
62
- "styled-components": "^6.1.17",
63
- "zod": "^3.24.2"
61
+ "zod": "^3.25.23"
64
62
  },
65
63
  "devDependencies": {
66
- "@iconify-json/mdi": "^1.2.3",
67
- "@iconify-json/mingcute": "^1.2.3",
68
- "@iconify-json/ph": "^1.2.2",
69
- "@iconify-json/solar": "^1.2.2",
70
- "@moser-inc/eslint-config-react": "^3.1.3",
71
- "@moser-inc/unocss-preset-moser-labs": "^2.0.0",
72
- "@types/lodash": "^4.17.16",
64
+ "@moser-inc/eslint-config-react": "^4.0.1",
65
+ "@moser-inc/unocss-preset-moser-labs": "^2.2.1",
66
+ "@types/lodash": "^4.17.17",
73
67
  "@types/react-helmet": "^6.1.11",
74
- "@unocss/eslint-config": "^66.0.0",
68
+ "@unocss/eslint-config": "^66.1.2",
75
69
  "@vitejs/plugin-basic-ssl": "^2.0.0",
76
- "@vitejs/plugin-react-swc": "^3.8.1",
77
- "eslint": "^9.24.0",
70
+ "@vitejs/plugin-react-swc": "^3.10.0",
71
+ "eslint": "^9.27.0",
78
72
  "prettier": "^3.5.3",
79
73
  "typescript": "^5.8.3",
80
- "unocss": "^66.0.0",
81
- "vite": "^6.2.5",
82
- "vite-plugin-dts": "^4.5.3"
74
+ "unocss": "^66.1.2",
75
+ "vite": "^6.3.5",
76
+ "vite-plugin-dts": "^4.5.4"
83
77
  }
84
78
  }