@moser-inc/moser-labs-react 6.8.0 → 7.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.
- package/README.md +6 -15
- package/dist/index.d.ts +1105 -0
- package/dist/index.js +1104 -0
- package/package.json +45 -39
- package/dist/moser-labs-react.css +0 -1
- package/dist/moser-labs-react.d.ts +0 -2
- package/dist/moser-labs-react.js +0 -20917
- package/dist/package.json.d.ts +0 -84
- package/dist/src/_dev/App.d.ts +0 -1
- package/dist/src/_dev/components/DevDirectoryLink.d.ts +0 -27
- package/dist/src/_dev/components/DevLink.d.ts +0 -10
- package/dist/src/_dev/layouts/App.layout.d.ts +0 -1
- package/dist/src/_dev/lib/directory.d.ts +0 -29
- package/dist/src/_dev/lib/router.d.ts +0 -1
- package/dist/src/_dev/lib/routerContext.d.ts +0 -1
- package/dist/src/_dev/sandbox.d.ts +0 -0
- package/dist/src/_dev/utils/createDocsHeader.d.ts +0 -1
- package/dist/src/_dev/views/Base.view.d.ts +0 -2
- package/dist/src/_dev/views/FAQ.view.d.ts +0 -2
- package/dist/src/_dev/views/Inputs.view.d.ts +0 -205
- package/dist/src/_dev/views/Presentation.view.d.ts +0 -2
- package/dist/src/components/FieldContainer/FieldContainer.d.ts +0 -16
- package/dist/src/components/FieldContainer/FieldContainerHint.d.ts +0 -12
- package/dist/src/components/FieldContainer/FieldContainerInput.d.ts +0 -8
- package/dist/src/components/FieldContainer/FieldContainerLabel.d.ts +0 -9
- package/dist/src/components/FieldContainer/FieldContainerMessage.d.ts +0 -9
- package/dist/src/components/LabsAuthGate.d.ts +0 -6
- package/dist/src/components/LabsButton.d.ts +0 -10
- package/dist/src/components/LabsCalendar.d.ts +0 -8
- package/dist/src/components/LabsCheckbox.d.ts +0 -9
- package/dist/src/components/LabsCount.d.ts +0 -8
- package/dist/src/components/LabsDate.d.ts +0 -7
- package/dist/src/components/LabsEmpty.d.ts +0 -6
- package/dist/src/components/LabsLoader.d.ts +0 -6
- package/dist/src/components/LabsLogoutTimer.d.ts +0 -9
- package/dist/src/components/LabsMain.d.ts +0 -7
- package/dist/src/components/LabsMainDesktopNav.d.ts +0 -9
- package/dist/src/components/LabsMainHeaderActions.d.ts +0 -10
- package/dist/src/components/LabsMainMobileNav.d.ts +0 -9
- package/dist/src/components/LabsMenuNav.d.ts +0 -8
- package/dist/src/components/LabsMultiSelect.d.ts +0 -24
- package/dist/src/components/LabsSelect.d.ts +0 -21
- package/dist/src/components/LabsSelectCascade.d.ts +0 -23
- package/dist/src/components/LabsSpeedDialNav.d.ts +0 -8
- package/dist/src/components/LabsText.d.ts +0 -7
- package/dist/src/components/LabsTextCurrency.d.ts +0 -3
- package/dist/src/components/LabsTextSearch.d.ts +0 -3
- package/dist/src/components/LabsTextarea.d.ts +0 -7
- package/dist/src/components/LabsToggle.d.ts +0 -6
- package/dist/src/constants/app.d.ts +0 -1
- package/dist/src/hooks/useAnalytics.d.ts +0 -7
- package/dist/src/hooks/useAuth.d.ts +0 -1
- package/dist/src/hooks/useBreakpoints.d.ts +0 -4
- package/dist/src/hooks/useLabs.d.ts +0 -1
- package/dist/src/layouts/Base.layout.d.ts +0 -3
- package/dist/src/layouts/Centered.layout.d.ts +0 -3
- package/dist/src/layouts/Main.layout.d.ts +0 -18
- package/dist/src/lib/analytics/analyticsContext.d.ts +0 -9
- package/dist/src/lib/analytics/createAnalytics.d.ts +0 -8
- package/dist/src/lib/analytics/index.d.ts +0 -1
- package/dist/src/lib/auth/authContext.d.ts +0 -20
- package/dist/src/lib/auth/authUtils.d.ts +0 -110
- package/dist/src/lib/auth/index.d.ts +0 -4
- package/dist/src/lib/dayjs.d.ts +0 -2
- package/dist/src/lib/head/headContext.d.ts +0 -5
- package/dist/src/lib/head/index.d.ts +0 -1
- package/dist/src/lib/labs/index.d.ts +0 -1
- package/dist/src/lib/labs/labsContext.d.ts +0 -17
- package/dist/src/lib/prime/index.d.ts +0 -1
- package/dist/src/lib/prime/primeContext.d.ts +0 -5
- package/dist/src/main.d.ts +0 -42
- package/dist/src/types/DirectoryValue.type.d.ts +0 -6
- package/dist/src/types/ReactHookForm.type.d.ts +0 -6
- package/dist/src/utils/animations.d.ts +0 -90
- package/dist/src/utils/fieldHelpers.d.ts +0 -5
- package/dist/src/utils/forwardRefInferGenerics.d.ts +0 -2
- package/dist/src/utils/number.d.ts +0 -2
- package/dist/src/utils/pluralize.d.ts +0 -1
- package/dist/src/utils/reactHookFormHelpers.d.ts +0 -89
package/dist/package.json.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"name": "@moser-inc/moser-labs-react",
|
|
3
|
-
"version": "6.8.0",
|
|
4
|
-
"description": "React components for the Moser Labs suite of applications.",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/moser-inc/moser-labs.git"
|
|
8
|
-
},
|
|
9
|
-
"author": "Moser Consulting",
|
|
10
|
-
"license": "ISC",
|
|
11
|
-
"type": "module",
|
|
12
|
-
"main": "dist/moser-labs-react.js",
|
|
13
|
-
"module": "dist/moser-labs-react.js",
|
|
14
|
-
"types": "dist/moser-labs-react.d.ts",
|
|
15
|
-
"exports": {
|
|
16
|
-
".": {
|
|
17
|
-
"types": "./dist/moser-labs-react.d.ts",
|
|
18
|
-
"default": "./dist/moser-labs-react.js"
|
|
19
|
-
},
|
|
20
|
-
"./style.css": {
|
|
21
|
-
"default": "./dist/moser-labs-react.css"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
],
|
|
27
|
-
"publishConfig": {
|
|
28
|
-
"access": "public",
|
|
29
|
-
"provenance": false,
|
|
30
|
-
"registry": "https://registry.npmjs.org/"
|
|
31
|
-
},
|
|
32
|
-
"scripts": {
|
|
33
|
-
"dev": "vite",
|
|
34
|
-
"build": "vite build",
|
|
35
|
-
"lint": "eslint --max-warnings 0",
|
|
36
|
-
"preview": "vite preview",
|
|
37
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
38
|
-
"type-check": "tsc --noEmit -p tsconfig.app.json",
|
|
39
|
-
"prepack": "npm run build"
|
|
40
|
-
},
|
|
41
|
-
"peerDependencies": {
|
|
42
|
-
"@types/react": ">= 18.2.14 < 20",
|
|
43
|
-
"@types/react-dom": ">= 18.2.6 < 20",
|
|
44
|
-
"@unhead/react": ">= 2.0.11 < 3",
|
|
45
|
-
"primereact": ">= 9.6.0 < 11",
|
|
46
|
-
"react": ">= 18.2.0 < 20",
|
|
47
|
-
"react-dom": ">= 18.2.0 < 20"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"@analytics/mixpanel": "^0.4.0",
|
|
51
|
-
"@moser-inc/moser-labs-custom-elements": "2.5.8",
|
|
52
|
-
"@react-hookz/web": "^25.2.0",
|
|
53
|
-
"analytics": "^0.8.19",
|
|
54
|
-
"clsx": "^2.1.1",
|
|
55
|
-
"dayjs": "^1.11.19",
|
|
56
|
-
"keycloak-js": "23.0.3",
|
|
57
|
-
"mixpanel-browser": "^2.73.0",
|
|
58
|
-
"motion": "^12.26.2",
|
|
59
|
-
"react-idle-timer": "^5.7.2"
|
|
60
|
-
},
|
|
61
|
-
"devDependencies": {
|
|
62
|
-
"@hookform/resolvers": "^5.2.2",
|
|
63
|
-
"@moser-inc/eslint-config-react": "^5.1.0",
|
|
64
|
-
"@moser-inc/unocss-preset-moser-labs": "^5.2.1",
|
|
65
|
-
"@tsconfig/node24": "^24.0.4",
|
|
66
|
-
"@tsconfig/vite-react": "^7.0.2",
|
|
67
|
-
"@unocss/eslint-config": "^66.6.0",
|
|
68
|
-
"@vitejs/plugin-basic-ssl": "^2.1.3",
|
|
69
|
-
"@vitejs/plugin-react": "^5.1.2",
|
|
70
|
-
"eslint": "^9.39.2",
|
|
71
|
-
"prettier": "^3.8.0",
|
|
72
|
-
"react-hook-form": "^7.71.1",
|
|
73
|
-
"react-router": "^7.12.0",
|
|
74
|
-
"react-router-dom": "^7.12.0",
|
|
75
|
-
"typescript": "^5.9.3",
|
|
76
|
-
"unocss": "^66.6.0",
|
|
77
|
-
"vite": "^7.3.1",
|
|
78
|
-
"vite-plugin-dts": "^4.5.4",
|
|
79
|
-
"zod": "^4.3.5"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
;
|
|
83
|
-
|
|
84
|
-
export default _default;
|
package/dist/src/_dev/App.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const App: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BadgeProps } from 'primereact/badge';
|
|
2
|
-
import { MenuItem } from 'primereact/menuitem';
|
|
3
|
-
import { NavLinkProps } from 'react-router-dom';
|
|
4
|
-
import { DirectoryValue } from '../lib/directory';
|
|
5
|
-
type DevDirectoryLinkBaseProps = Omit<NavLinkProps, 'to'>;
|
|
6
|
-
export interface DevDirectoryLinkProps extends DevDirectoryLinkBaseProps {
|
|
7
|
-
item: DirectoryValue;
|
|
8
|
-
refreshOnSameUrl?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const DevDirectoryLink: {
|
|
11
|
-
({ ref, item, children, refreshOnSameUrl, reloadDocument, ...rest }: DevDirectoryLinkProps & {
|
|
12
|
-
ref?: React.RefObject<HTMLAnchorElement | null>;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
16
|
-
export interface DirectoryMenuItem extends MenuItem {
|
|
17
|
-
linkClassName?: DevDirectoryLinkProps['className'];
|
|
18
|
-
iconClassName?: string;
|
|
19
|
-
labelClassName?: string;
|
|
20
|
-
iconOnly?: boolean;
|
|
21
|
-
badgeValue?: string | number | boolean | null;
|
|
22
|
-
badgeSeverity?: BadgeProps['severity'];
|
|
23
|
-
badgeClassName?: string;
|
|
24
|
-
isMenuOpen?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export declare const directoryMenuItem: (item: DirectoryValue, options?: DirectoryMenuItem) => MenuItem;
|
|
27
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LinkProps } from 'react-router-dom';
|
|
2
|
-
export type DevLinkProps = LinkProps & {
|
|
3
|
-
refreshOnSameUrl?: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare const DevLink: {
|
|
6
|
-
({ ref, refreshOnSameUrl, ...props }: DevLinkProps & {
|
|
7
|
-
ref?: React.RefObject<HTMLAnchorElement | null>;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DevLayoutApp: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const DIRECTORY: {
|
|
2
|
-
readonly HOME: {
|
|
3
|
-
readonly EXACT: true;
|
|
4
|
-
readonly ICON: "pi-home";
|
|
5
|
-
readonly PATH: "/";
|
|
6
|
-
readonly TITLE: "Home";
|
|
7
|
-
};
|
|
8
|
-
readonly PRESENTATION: {
|
|
9
|
-
readonly EXACT: true;
|
|
10
|
-
readonly ICON: "pi-box";
|
|
11
|
-
readonly PATH: "/presentation";
|
|
12
|
-
readonly TITLE: "Presentation Components";
|
|
13
|
-
};
|
|
14
|
-
readonly INPUTS: {
|
|
15
|
-
readonly EXACT: true;
|
|
16
|
-
readonly ICON: "pi-list";
|
|
17
|
-
readonly PATH: "/inputs";
|
|
18
|
-
readonly TITLE: "Input Components";
|
|
19
|
-
};
|
|
20
|
-
readonly FAQ: {
|
|
21
|
-
readonly EXACT: true;
|
|
22
|
-
readonly ICON: "pi-question-circle";
|
|
23
|
-
readonly PATH: "/faq";
|
|
24
|
-
readonly TITLE: "FAQ";
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export type Directory = typeof DIRECTORY;
|
|
28
|
-
export type DirectoryKey = keyof Directory;
|
|
29
|
-
export type DirectoryValue = Directory[DirectoryKey];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const router: import('react-router').DataRouter;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RouterProvider: () => import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createDocsHeader: (name: string, path: string) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { UseFormProps } from 'react-hook-form';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export declare const SampleFormSchema: z.ZodObject<{
|
|
4
|
-
checkbox: z.ZodBoolean;
|
|
5
|
-
date: z.ZodPipe<z.ZodNullable<z.ZodDate>, z.ZodTransform<Date | null, Date | null>>;
|
|
6
|
-
select: z.ZodString;
|
|
7
|
-
multiSelect: z.ZodArray<z.ZodString>;
|
|
8
|
-
text: z.ZodString;
|
|
9
|
-
textCurrency: z.ZodString;
|
|
10
|
-
textSearch: z.ZodString;
|
|
11
|
-
textArea: z.ZodString;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type SampleFormValues = z.infer<typeof SampleFormSchema>;
|
|
14
|
-
export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseFormProps<SampleFormValues>) => {
|
|
15
|
-
readonly schema: z.ZodObject<{
|
|
16
|
-
checkbox: z.ZodBoolean;
|
|
17
|
-
date: z.ZodPipe<z.ZodNullable<z.ZodDate>, z.ZodTransform<Date | null, Date | null>>;
|
|
18
|
-
select: z.ZodString;
|
|
19
|
-
multiSelect: z.ZodArray<z.ZodString>;
|
|
20
|
-
text: z.ZodString;
|
|
21
|
-
textCurrency: z.ZodString;
|
|
22
|
-
textSearch: z.ZodString;
|
|
23
|
-
textArea: z.ZodString;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
readonly watch: import('react-hook-form').UseFormWatch<{
|
|
26
|
-
checkbox: boolean;
|
|
27
|
-
date: Date | null;
|
|
28
|
-
select: string;
|
|
29
|
-
multiSelect: string[];
|
|
30
|
-
text: string;
|
|
31
|
-
textCurrency: string;
|
|
32
|
-
textSearch: string;
|
|
33
|
-
textArea: string;
|
|
34
|
-
}>;
|
|
35
|
-
readonly getValues: import('react-hook-form').UseFormGetValues<{
|
|
36
|
-
checkbox: boolean;
|
|
37
|
-
date: Date | null;
|
|
38
|
-
select: string;
|
|
39
|
-
multiSelect: string[];
|
|
40
|
-
text: string;
|
|
41
|
-
textCurrency: string;
|
|
42
|
-
textSearch: string;
|
|
43
|
-
textArea: string;
|
|
44
|
-
}>;
|
|
45
|
-
readonly getFieldState: import('react-hook-form').UseFormGetFieldState<{
|
|
46
|
-
checkbox: boolean;
|
|
47
|
-
date: Date | null;
|
|
48
|
-
select: string;
|
|
49
|
-
multiSelect: string[];
|
|
50
|
-
text: string;
|
|
51
|
-
textCurrency: string;
|
|
52
|
-
textSearch: string;
|
|
53
|
-
textArea: string;
|
|
54
|
-
}>;
|
|
55
|
-
readonly setError: import('react-hook-form').UseFormSetError<{
|
|
56
|
-
checkbox: boolean;
|
|
57
|
-
date: Date | null;
|
|
58
|
-
select: string;
|
|
59
|
-
multiSelect: string[];
|
|
60
|
-
text: string;
|
|
61
|
-
textCurrency: string;
|
|
62
|
-
textSearch: string;
|
|
63
|
-
textArea: string;
|
|
64
|
-
}>;
|
|
65
|
-
readonly clearErrors: import('react-hook-form').UseFormClearErrors<{
|
|
66
|
-
checkbox: boolean;
|
|
67
|
-
date: Date | null;
|
|
68
|
-
select: string;
|
|
69
|
-
multiSelect: string[];
|
|
70
|
-
text: string;
|
|
71
|
-
textCurrency: string;
|
|
72
|
-
textSearch: string;
|
|
73
|
-
textArea: string;
|
|
74
|
-
}>;
|
|
75
|
-
readonly setValue: import('react-hook-form').UseFormSetValue<{
|
|
76
|
-
checkbox: boolean;
|
|
77
|
-
date: Date | null;
|
|
78
|
-
select: string;
|
|
79
|
-
multiSelect: string[];
|
|
80
|
-
text: string;
|
|
81
|
-
textCurrency: string;
|
|
82
|
-
textSearch: string;
|
|
83
|
-
textArea: string;
|
|
84
|
-
}>;
|
|
85
|
-
readonly trigger: import('react-hook-form').UseFormTrigger<{
|
|
86
|
-
checkbox: boolean;
|
|
87
|
-
date: Date | null;
|
|
88
|
-
select: string;
|
|
89
|
-
multiSelect: string[];
|
|
90
|
-
text: string;
|
|
91
|
-
textCurrency: string;
|
|
92
|
-
textSearch: string;
|
|
93
|
-
textArea: string;
|
|
94
|
-
}>;
|
|
95
|
-
readonly formState: import('react-hook-form').FormState<{
|
|
96
|
-
checkbox: boolean;
|
|
97
|
-
date: Date | null;
|
|
98
|
-
select: string;
|
|
99
|
-
multiSelect: string[];
|
|
100
|
-
text: string;
|
|
101
|
-
textCurrency: string;
|
|
102
|
-
textSearch: string;
|
|
103
|
-
textArea: string;
|
|
104
|
-
}>;
|
|
105
|
-
readonly resetField: import('react-hook-form').UseFormResetField<{
|
|
106
|
-
checkbox: boolean;
|
|
107
|
-
date: Date | null;
|
|
108
|
-
select: string;
|
|
109
|
-
multiSelect: string[];
|
|
110
|
-
text: string;
|
|
111
|
-
textCurrency: string;
|
|
112
|
-
textSearch: string;
|
|
113
|
-
textArea: string;
|
|
114
|
-
}>;
|
|
115
|
-
readonly reset: import('react-hook-form').UseFormReset<{
|
|
116
|
-
checkbox: boolean;
|
|
117
|
-
date: Date | null;
|
|
118
|
-
select: string;
|
|
119
|
-
multiSelect: string[];
|
|
120
|
-
text: string;
|
|
121
|
-
textCurrency: string;
|
|
122
|
-
textSearch: string;
|
|
123
|
-
textArea: string;
|
|
124
|
-
}>;
|
|
125
|
-
readonly handleSubmit: import('react-hook-form').UseFormHandleSubmit<{
|
|
126
|
-
checkbox: boolean;
|
|
127
|
-
date: Date | null;
|
|
128
|
-
select: string;
|
|
129
|
-
multiSelect: string[];
|
|
130
|
-
text: string;
|
|
131
|
-
textCurrency: string;
|
|
132
|
-
textSearch: string;
|
|
133
|
-
textArea: string;
|
|
134
|
-
}, {
|
|
135
|
-
checkbox: boolean;
|
|
136
|
-
date: Date | null;
|
|
137
|
-
select: string;
|
|
138
|
-
multiSelect: string[];
|
|
139
|
-
text: string;
|
|
140
|
-
textCurrency: string;
|
|
141
|
-
textSearch: string;
|
|
142
|
-
textArea: string;
|
|
143
|
-
}>;
|
|
144
|
-
readonly unregister: import('react-hook-form').UseFormUnregister<{
|
|
145
|
-
checkbox: boolean;
|
|
146
|
-
date: Date | null;
|
|
147
|
-
select: string;
|
|
148
|
-
multiSelect: string[];
|
|
149
|
-
text: string;
|
|
150
|
-
textCurrency: string;
|
|
151
|
-
textSearch: string;
|
|
152
|
-
textArea: string;
|
|
153
|
-
}>;
|
|
154
|
-
readonly control: import('react-hook-form').Control<{
|
|
155
|
-
checkbox: boolean;
|
|
156
|
-
date: Date | null;
|
|
157
|
-
select: string;
|
|
158
|
-
multiSelect: string[];
|
|
159
|
-
text: string;
|
|
160
|
-
textCurrency: string;
|
|
161
|
-
textSearch: string;
|
|
162
|
-
textArea: string;
|
|
163
|
-
}, any, {
|
|
164
|
-
checkbox: boolean;
|
|
165
|
-
date: Date | null;
|
|
166
|
-
select: string;
|
|
167
|
-
multiSelect: string[];
|
|
168
|
-
text: string;
|
|
169
|
-
textCurrency: string;
|
|
170
|
-
textSearch: string;
|
|
171
|
-
textArea: string;
|
|
172
|
-
}>;
|
|
173
|
-
readonly register: import('react-hook-form').UseFormRegister<{
|
|
174
|
-
checkbox: boolean;
|
|
175
|
-
date: Date | null;
|
|
176
|
-
select: string;
|
|
177
|
-
multiSelect: string[];
|
|
178
|
-
text: string;
|
|
179
|
-
textCurrency: string;
|
|
180
|
-
textSearch: string;
|
|
181
|
-
textArea: string;
|
|
182
|
-
}>;
|
|
183
|
-
readonly setFocus: import('react-hook-form').UseFormSetFocus<{
|
|
184
|
-
checkbox: boolean;
|
|
185
|
-
date: Date | null;
|
|
186
|
-
select: string;
|
|
187
|
-
multiSelect: string[];
|
|
188
|
-
text: string;
|
|
189
|
-
textCurrency: string;
|
|
190
|
-
textSearch: string;
|
|
191
|
-
textArea: string;
|
|
192
|
-
}>;
|
|
193
|
-
readonly subscribe: import('react-hook-form').UseFormSubscribe<{
|
|
194
|
-
checkbox: boolean;
|
|
195
|
-
date: Date | null;
|
|
196
|
-
select: string;
|
|
197
|
-
multiSelect: string[];
|
|
198
|
-
text: string;
|
|
199
|
-
textCurrency: string;
|
|
200
|
-
textSearch: string;
|
|
201
|
-
textArea: string;
|
|
202
|
-
}>;
|
|
203
|
-
};
|
|
204
|
-
declare const DevViewInputs: React.FC;
|
|
205
|
-
export default DevViewInputs;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MotionProps } from 'motion/react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export interface FieldContainerProps {
|
|
4
|
-
id: string;
|
|
5
|
-
containerId?: string;
|
|
6
|
-
labelId?: string;
|
|
7
|
-
messageId?: string;
|
|
8
|
-
hintId?: string;
|
|
9
|
-
label?: string;
|
|
10
|
-
message?: string;
|
|
11
|
-
hint?: string;
|
|
12
|
-
animation?: MotionProps;
|
|
13
|
-
className?: string;
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
}
|
|
16
|
-
export declare const FieldContainer: ({ id, containerId, labelId, messageId, hintId, label, message, hint, animation, children, ...rest }: FieldContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { motion } from 'motion/react';
|
|
2
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
-
type BaseProps = Omit<ComponentProps<typeof motion.span>, 'children'>;
|
|
4
|
-
export interface FieldContainerHintProps extends BaseProps {
|
|
5
|
-
id: string;
|
|
6
|
-
hintId?: string;
|
|
7
|
-
hint?: string;
|
|
8
|
-
solo?: boolean;
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export declare const FieldContainerHint: ({ id, hintId, hint, solo, children, className, ...rest }: FieldContainerHintProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FieldContainerProps } from './FieldContainer';
|
|
2
|
-
export interface FieldContainerInputProps extends FieldContainerProps {
|
|
3
|
-
solo?: boolean;
|
|
4
|
-
floatLabel?: boolean;
|
|
5
|
-
prependIcon?: string;
|
|
6
|
-
appendIcon?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const FieldContainerInput: ({ id, containerId, labelId, messageId, hintId, label, message, hint, solo, floatLabel, prependIcon, appendIcon, className, children, ...rest }: FieldContainerInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { motion } from 'motion/react';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
export interface FieldContainerLabelProps extends ComponentProps<typeof motion.label> {
|
|
4
|
-
id: string;
|
|
5
|
-
labelId?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
solo?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const FieldContainerLabel: ({ id, labelId, label, solo, children, className, ...rest }: FieldContainerLabelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { motion } from 'motion/react';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
export interface FieldContainerMessageProps extends ComponentProps<typeof motion.span> {
|
|
4
|
-
id: string;
|
|
5
|
-
messageId?: string;
|
|
6
|
-
message?: string;
|
|
7
|
-
solo?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const FieldContainerMessage: ({ id, messageId, message, solo, children, className, ...rest }: FieldContainerMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from 'primereact/button';
|
|
2
|
-
export interface LabsButtonProps extends ButtonProps {
|
|
3
|
-
icon?: string;
|
|
4
|
-
iconClassName?: string;
|
|
5
|
-
text?: boolean;
|
|
6
|
-
outlined?: boolean;
|
|
7
|
-
rounded?: boolean;
|
|
8
|
-
iconOnly?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const LabsButton: (props: LabsButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Calendar, CalendarProps, CalendarSelectionMode } from 'primereact/calendar';
|
|
2
|
-
import { ForwardedRef } from 'react';
|
|
3
|
-
export type LabsCalendarProps<TMode extends CalendarSelectionMode = 'single', TValue = TMode extends 'multiple' ? Date[] : TMode extends 'range' ? (Date | null)[] : Date> = CalendarProps<TMode, TValue>;
|
|
4
|
-
export declare const LabsCalendarBase: {
|
|
5
|
-
<TMode extends CalendarSelectionMode = "single", TValue = TMode extends "multiple" ? Date[] : TMode extends "range" ? (Date | null)[] : Date>(props: LabsCalendarProps<TMode, TValue>, ref: ForwardedRef<Calendar<TMode, TValue>>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const LabsCalendar: <TMode extends CalendarSelectionMode = "single", TValue = TMode extends "multiple" ? Date[] : TMode extends "range" ? (Date | null)[] : Date>(props: LabsCalendarProps<TMode, TValue> & import('react').RefAttributes<Calendar<TMode, TValue>>) => React.ReactElement | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CheckboxProps } from 'primereact/checkbox';
|
|
2
|
-
import { FieldContainerProps } from './FieldContainer/FieldContainer';
|
|
3
|
-
type FieldProps = Partial<CheckboxProps> & FieldContainerProps;
|
|
4
|
-
export type LabsCheckboxProps = FieldProps;
|
|
5
|
-
export declare const LabsCheckbox: {
|
|
6
|
-
(props: LabsCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CalendarSelectionMode } from 'primereact/calendar';
|
|
2
|
-
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
3
|
-
import { LabsCalendarProps } from './LabsCalendar';
|
|
4
|
-
type FieldProps<TMode extends CalendarSelectionMode = 'single', TValue = TMode extends 'multiple' ? Date[] : TMode extends 'range' ? (Date | null)[] : Date> = LabsCalendarProps<TMode, TValue> & FieldContainerInputProps;
|
|
5
|
-
export type LabsDateProps<TMode extends CalendarSelectionMode = 'single', TValue = TMode extends 'multiple' ? Date[] : TMode extends 'range' ? (Date | null)[] : Date> = FieldProps<TMode, TValue>;
|
|
6
|
-
export declare const LabsDate: <TMode extends CalendarSelectionMode = "single", TValue = TMode extends "multiple" ? Date[] : TMode extends "range" ? (Date | null)[] : Date>(props: LabsDateProps<TMode, TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ProgressSpinnerProps } from 'primereact/progressspinner';
|
|
2
|
-
export interface LabsLoaderProps extends ProgressSpinnerProps {
|
|
3
|
-
label?: string;
|
|
4
|
-
size?: 'sm' | 'md' | 'lg';
|
|
5
|
-
}
|
|
6
|
-
export declare const LabsLoader: ({ label, size, className, ...rest }: LabsLoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface LabsLogoutTimerProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
options?: {
|
|
5
|
-
delay: number;
|
|
6
|
-
};
|
|
7
|
-
onLogout: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const LabsLogoutTimer: ({ children, options, onLogout, }: LabsLogoutTimerProps) => ReactNode;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
-
import { DirectoryValueBase } from '../types/DirectoryValue.type';
|
|
3
|
-
export interface LabsMainProps<TDirectoryValue extends DirectoryValueBase = DirectoryValueBase> extends ComponentProps<'main'> {
|
|
4
|
-
item?: TDirectoryValue;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare const LabsMain: <TDirectoryValue extends DirectoryValueBase = DirectoryValueBase>({ item, className, children, ...rest }: LabsMainProps<TDirectoryValue>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MenuItem } from 'primereact/menuitem';
|
|
2
|
-
import { LabsMenuNavProps } from './LabsMenuNav';
|
|
3
|
-
import { DirectoryValueBase } from '../types/DirectoryValue.type';
|
|
4
|
-
export type LabsMainDesktopNavProps<TDirectoryValue extends DirectoryValueBase = DirectoryValueBase> = Omit<LabsMenuNavProps<TDirectoryValue>, 'renderItem'> & {
|
|
5
|
-
renderItem: (item: TDirectoryValue, menuProps: {
|
|
6
|
-
isMenuOpen: boolean;
|
|
7
|
-
}) => MenuItem;
|
|
8
|
-
};
|
|
9
|
-
export declare const LabsMainDesktopNav: <TDirectoryValue extends DirectoryValueBase = DirectoryValueBase>({ items, renderItem, className, pt, ...rest }: LabsMainDesktopNavProps<TDirectoryValue>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
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,9 +0,0 @@
|
|
|
1
|
-
import { MenuItem } from 'primereact/menuitem';
|
|
2
|
-
import { LabsSpeedDialNavProps } from './LabsSpeedDialNav';
|
|
3
|
-
import { DirectoryValueBase } from '../types/DirectoryValue.type';
|
|
4
|
-
export type LabsMainMobileNavProps<TDirectoryValue extends DirectoryValueBase = DirectoryValueBase> = Omit<LabsSpeedDialNavProps<TDirectoryValue>, 'renderItem'> & {
|
|
5
|
-
renderItem: (item: TDirectoryValue, menuProps: {
|
|
6
|
-
isMenuOpen: boolean;
|
|
7
|
-
}) => MenuItem;
|
|
8
|
-
};
|
|
9
|
-
export declare const LabsMainMobileNav: <TDirectoryValue extends DirectoryValueBase = DirectoryValueBase>({ items, renderItem, visible, onVisibleChange, className, pt, ...rest }: LabsMainMobileNavProps<TDirectoryValue>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MenuProps } from 'primereact/menu';
|
|
2
|
-
import { MenuItem } from 'primereact/menuitem';
|
|
3
|
-
import { DirectoryValueBase } from '../types/DirectoryValue.type';
|
|
4
|
-
export interface LabsMenuNavProps<TDirectoryValue extends DirectoryValueBase = DirectoryValueBase> extends MenuProps {
|
|
5
|
-
items: Readonly<TDirectoryValue[]>;
|
|
6
|
-
renderItem: (item: TDirectoryValue) => MenuItem;
|
|
7
|
-
}
|
|
8
|
-
export declare const LabsMenuNav: <TDirectoryValue extends DirectoryValueBase = DirectoryValueBase>({ items, renderItem, model, role, ...rest }: LabsMenuNavProps<TDirectoryValue>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { MultiSelectChangeEvent, MultiSelectProps } from 'primereact/multiselect';
|
|
2
|
-
import { IconType } from 'primereact/utils';
|
|
3
|
-
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
4
|
-
export interface LabsMultiSelectOption<T = unknown> {
|
|
5
|
-
label?: string;
|
|
6
|
-
value?: T;
|
|
7
|
-
className?: string;
|
|
8
|
-
icon?: IconType<unknown>;
|
|
9
|
-
title?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
items?: LabsMultiSelectOption<T>[];
|
|
12
|
-
}
|
|
13
|
-
type FieldProps = Partial<MultiSelectProps> & FieldContainerInputProps;
|
|
14
|
-
export type LabsMultiSelectChangeEvent<TValue> = Omit<MultiSelectChangeEvent, 'value' | 'selectedOption'> & {
|
|
15
|
-
value: TValue[];
|
|
16
|
-
selectedOption: LabsMultiSelectOption<TValue>;
|
|
17
|
-
};
|
|
18
|
-
export interface LabsMultiSelectProps<TValue extends string | number> extends FieldProps {
|
|
19
|
-
value?: TValue[];
|
|
20
|
-
options?: LabsMultiSelectOption<TValue>[];
|
|
21
|
-
onChange?: (event: LabsMultiSelectChangeEvent<TValue>) => void;
|
|
22
|
-
}
|
|
23
|
-
export declare const LabsMultiSelect: <TValue extends string | number>(props: LabsMultiSelectProps<TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DropdownProps } from 'primereact/dropdown';
|
|
2
|
-
import { FormEvent } from 'primereact/ts-helpers';
|
|
3
|
-
import { IconType } from 'primereact/utils';
|
|
4
|
-
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
5
|
-
export interface LabsSelectOption<T = unknown> {
|
|
6
|
-
label?: string;
|
|
7
|
-
value?: T;
|
|
8
|
-
className?: string;
|
|
9
|
-
icon?: IconType<unknown>;
|
|
10
|
-
title?: string;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
items?: LabsSelectOption<T>[];
|
|
13
|
-
}
|
|
14
|
-
type FieldProps = Partial<DropdownProps> & FieldContainerInputProps;
|
|
15
|
-
export interface LabsSelectProps<TValue extends string | number> extends FieldProps {
|
|
16
|
-
value?: TValue;
|
|
17
|
-
options?: LabsSelectOption<TValue>[];
|
|
18
|
-
onChange?: (event: FormEvent<TValue>) => void;
|
|
19
|
-
}
|
|
20
|
-
export declare const LabsSelect: <TValue extends string | number>(props: LabsSelectProps<TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export {};
|