@moser-inc/moser-labs-react 1.3.2 → 1.3.3
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/_dev/components/DevDirectoryLink.d.ts +1 -0
- package/dist/components/{FieldCheckbox.d.ts → LabsCheckbox.d.ts} +4 -4
- package/dist/components/{FieldDate.d.ts → LabsDate.d.ts} +3 -3
- package/dist/components/{FieldSelect.d.ts → LabsSelect.d.ts} +6 -6
- package/dist/components/{FieldText.d.ts → LabsText.d.ts} +4 -4
- package/dist/components/LabsTextCurrency.d.ts +12 -0
- package/dist/components/LabsTextSearch.d.ts +12 -0
- package/dist/layouts/Main.layout.d.ts +5 -1
- package/dist/main.d.ts +6 -6
- package/dist/moser-labs-react.cjs +60 -60
- package/dist/moser-labs-react.js +16761 -16758
- package/dist/style.css +1 -1
- package/package.json +12 -12
- package/dist/components/FieldTextCurrency.d.ts +0 -12
- package/dist/components/FieldTextSearch.d.ts +0 -12
|
@@ -17,6 +17,7 @@ export interface DirectoryMenuItem extends MenuItem {
|
|
|
17
17
|
badgeValue?: string | number | boolean | null;
|
|
18
18
|
badgeSeverity?: BadgeProps['severity'];
|
|
19
19
|
badgeClassName?: string;
|
|
20
|
+
isMenuOpen?: boolean;
|
|
20
21
|
}
|
|
21
22
|
export declare const directoryMenuItem: (item: DirectoryValue, options?: DirectoryMenuItem) => MenuItem;
|
|
22
23
|
export {};
|
|
@@ -3,12 +3,12 @@ import { FieldValues, FieldPath } from 'react-hook-form';
|
|
|
3
3
|
import { FieldContainerProps } from '../components/FieldContainer';
|
|
4
4
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
5
5
|
type FieldProps = Partial<CheckboxProps> & FieldContainerProps;
|
|
6
|
-
export type
|
|
7
|
-
export declare const
|
|
8
|
-
({ id, labelId, messageId, containerId, label, message, animation, className, checked, ...rest }:
|
|
6
|
+
export type LabsCheckboxProps = FieldProps;
|
|
7
|
+
export declare const LabsCheckbox: {
|
|
8
|
+
({ id, labelId, messageId, containerId, label, message, animation, className, checked, ...rest }: LabsCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const toLabsCheckboxProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field: { value, ref, ...field }, fieldState, }: ControllerRenderParams<TValues, TName>) => {
|
|
12
12
|
inputRef: import("react-hook-form").RefCallBack;
|
|
13
13
|
checked: import("react-hook-form").PathValue<TValues, TName>;
|
|
14
14
|
onChange: (event: import("primereact/checkbox").CheckboxChangeEvent) => void;
|
|
@@ -3,9 +3,9 @@ import { type FieldContainerInputProps } from '../components/FieldContainerInput
|
|
|
3
3
|
import { LabsCalendarProps } from '../components/LabsCalendar';
|
|
4
4
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
5
5
|
type FieldProps = LabsCalendarProps & FieldContainerInputProps;
|
|
6
|
-
export type
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
6
|
+
export type LabsDateProps = FieldProps;
|
|
7
|
+
export declare const LabsDate: ({ id, labelId, messageId, containerId, label, message, animation, floatLabel, className, ...rest }: LabsDateProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const toLabsDateProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field: { ref, ...field }, fieldState, }: ControllerRenderParams<TValues, TName>) => {
|
|
9
9
|
inputRef: import("react-hook-form").RefCallBack;
|
|
10
10
|
onChange: (event: import("primereact/calendar").CalendarChangeEvent) => void;
|
|
11
11
|
message: string | undefined;
|
|
@@ -5,23 +5,23 @@ import type { IconType } from 'primereact/utils';
|
|
|
5
5
|
import { FieldValues, FieldPath } from 'react-hook-form';
|
|
6
6
|
import { type FieldContainerInputProps } from '../components/FieldContainerInput';
|
|
7
7
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
8
|
-
export interface
|
|
8
|
+
export interface LabsSelectOption<T = unknown> {
|
|
9
9
|
label?: string;
|
|
10
10
|
value?: T;
|
|
11
11
|
className?: string;
|
|
12
12
|
icon?: IconType<unknown>;
|
|
13
13
|
title?: string;
|
|
14
14
|
disabled?: boolean;
|
|
15
|
-
items?:
|
|
15
|
+
items?: LabsSelectOption<T>[];
|
|
16
16
|
}
|
|
17
17
|
type FieldProps = Partial<DropdownProps> & FieldContainerInputProps;
|
|
18
|
-
export interface
|
|
18
|
+
export interface LabsSelectProps<TValue extends string> extends FieldProps {
|
|
19
19
|
value?: TValue;
|
|
20
|
-
options?:
|
|
20
|
+
options?: LabsSelectOption<TValue>[];
|
|
21
21
|
onChange?: (event: FormEvent<TValue>) => void;
|
|
22
22
|
}
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const
|
|
23
|
+
export declare const LabsSelect: <TValue extends string>({ id, labelId, messageId, containerId, label, message, animation, floatLabel, className, ...rest }: LabsSelectProps<TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const toLabsSelectProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field: { ref, ...field }, fieldState, }: ControllerRenderParams<TValues, TName>) => {
|
|
25
25
|
inputRef: import("react-hook-form").RefCallBack;
|
|
26
26
|
onChange: (event: FormEvent<TValues[TName], import("react").SyntheticEvent<Element, Event>>) => void;
|
|
27
27
|
message: string | undefined;
|
|
@@ -4,10 +4,10 @@ import { FieldValues, FieldPath } from 'react-hook-form';
|
|
|
4
4
|
import { type FieldContainerInputProps } from '../components/FieldContainerInput';
|
|
5
5
|
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
6
6
|
type FieldProps = Partial<InputTextProps> & FieldContainerInputProps;
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
7
|
+
export type LabsTextProps = FieldProps;
|
|
8
|
+
export type LabsTextElement = HTMLInputElement;
|
|
9
|
+
export declare const LabsText: import("react").ForwardRefExoticComponent<Partial<InputTextProps> & FieldContainerInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
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
|
message: string | undefined;
|
|
13
13
|
onChange: (...event: any[]) => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LabsTextProps } from '../components/LabsText';
|
|
3
|
+
export type LabsTextCurrencyProps = LabsTextProps;
|
|
4
|
+
export declare const LabsTextCurrency: import("react").ForwardRefExoticComponent<Partial<import("primereact/inputtext").InputTextProps> & import("./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
|
+
value: string;
|
|
7
|
+
message: string | undefined;
|
|
8
|
+
onChange: (...event: any[]) => void;
|
|
9
|
+
onBlur: import("react-hook-form").Noop;
|
|
10
|
+
name: TName;
|
|
11
|
+
ref: import("react-hook-form").RefCallBack;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LabsTextProps } from '../components/LabsText';
|
|
3
|
+
export type LabsTextSearchProps = LabsTextProps;
|
|
4
|
+
export declare const LabsTextSearch: import("react").ForwardRefExoticComponent<Partial<import("primereact/inputtext").InputTextProps> & import("./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
|
+
value: string;
|
|
7
|
+
message: string | undefined;
|
|
8
|
+
onChange: (...event: any[]) => void;
|
|
9
|
+
onBlur: import("react-hook-form").Noop;
|
|
10
|
+
name: TName;
|
|
11
|
+
ref: import("react-hook-form").RefCallBack;
|
|
12
|
+
};
|
|
@@ -6,6 +6,10 @@ interface LayoutMainProps {
|
|
|
6
6
|
actions?: (() => React.ReactNode) | React.ReactNode;
|
|
7
7
|
appName: string;
|
|
8
8
|
children: React.ReactNode;
|
|
9
|
+
favicons: {
|
|
10
|
+
dark: string;
|
|
11
|
+
light: string;
|
|
12
|
+
};
|
|
9
13
|
navigation: DirectoryValue[];
|
|
10
14
|
navigationMobile?: DirectoryValue[];
|
|
11
15
|
name?: ((appName: string) => React.ReactNode) | React.ReactNode;
|
|
@@ -16,5 +20,5 @@ interface LayoutMainProps {
|
|
|
16
20
|
light: string;
|
|
17
21
|
};
|
|
18
22
|
}
|
|
19
|
-
export declare const LayoutMain: ({ actions, appName, children, navigation, navigationMobile, name, renderNavigation, renderNavigationMobile, themes, }: LayoutMainProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const LayoutMain: ({ actions, appName, children, favicons, navigation, navigationMobile, name, renderNavigation, renderNavigationMobile, themes, }: LayoutMainProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
24
|
export {};
|
package/dist/main.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export * from './components/FieldCheckbox';
|
|
2
|
-
export * from './components/FieldDate';
|
|
3
|
-
export * from './components/FieldSelect';
|
|
4
|
-
export * from './components/FieldText';
|
|
5
|
-
export * from './components/FieldTextCurrency';
|
|
6
|
-
export * from './components/FieldTextSearch';
|
|
7
1
|
export * from './components/LabsButton';
|
|
8
2
|
export * from './components/LabsCalendar';
|
|
3
|
+
export * from './components/LabsCheckbox';
|
|
4
|
+
export * from './components/LabsDate';
|
|
9
5
|
export * from './components/LabsIcon';
|
|
10
6
|
export * from './components/LabsLoader';
|
|
11
7
|
export * from './components/LabsMain';
|
|
12
8
|
export * from './components/LabsMainDesktopNav';
|
|
13
9
|
export * from './components/LabsMainMobileNav';
|
|
14
10
|
export * from './components/LabsMenuNav';
|
|
11
|
+
export * from './components/LabsSelect';
|
|
15
12
|
export * from './components/LabsSpeedDialNav';
|
|
13
|
+
export * from './components/LabsText';
|
|
14
|
+
export * from './components/LabsTextCurrency';
|
|
15
|
+
export * from './components/LabsTextSearch';
|
|
16
16
|
export * from './components/LabsUser';
|
|
17
17
|
export * from './hooks/useAuth';
|
|
18
18
|
export * from './hooks/useBreakpoints';
|