@moser-inc/moser-labs-react 1.2.2 → 1.2.5
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/{components/DirectoryLink.d.ts → _dev/components/DevDirectoryLink.d.ts} +5 -6
- package/dist/components/FieldContainerInput.d.ts +2 -3
- package/dist/components/LabsButton.d.ts +2 -6
- package/dist/components/LabsIcon.d.ts +1 -8
- package/dist/components/LabsMainDesktopNav.d.ts +1 -1
- package/dist/components/LabsMainMobileNav.d.ts +1 -1
- package/dist/components/LabsMenuNav.d.ts +3 -3
- package/dist/components/LabsSpeedDialNav.d.ts +3 -3
- package/dist/layouts/Main.layout.d.ts +8 -3
- package/dist/main.d.ts +0 -2
- package/dist/moser-labs-react.cjs +51 -78
- package/dist/moser-labs-react.js +4579 -5409
- package/dist/style.css +1 -1
- package/package.json +3 -4
- package/dist/components/LabsLink.d.ts +0 -4
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
import { BadgeProps } from 'primereact/badge';
|
|
3
3
|
import { MenuItem } from 'primereact/menuitem';
|
|
4
4
|
import { NavLinkProps } from 'react-router-dom';
|
|
5
|
-
import { DirectoryValue } from '
|
|
6
|
-
type
|
|
7
|
-
export interface
|
|
5
|
+
import { DirectoryValue } from '../../main';
|
|
6
|
+
type DevDirectoryLinkBaseProps = Omit<NavLinkProps, 'to'>;
|
|
7
|
+
export interface DevDirectoryLinkProps extends DevDirectoryLinkBaseProps {
|
|
8
8
|
item: DirectoryValue;
|
|
9
9
|
refreshOnSameUrl?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const DevDirectoryLink: import("react").ForwardRefExoticComponent<DevDirectoryLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
12
12
|
export interface DirectoryMenuItem extends MenuItem {
|
|
13
|
-
|
|
14
|
-
linkClassName?: DirectoryLinkProps['className'];
|
|
13
|
+
linkClassName?: DevDirectoryLinkProps['className'];
|
|
15
14
|
iconClassName?: string;
|
|
16
15
|
labelClassName?: string;
|
|
17
16
|
iconOnly?: boolean;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FieldContainerProps } from '../components/FieldContainer';
|
|
2
|
-
import { Icon } from '../components/LabsIcon';
|
|
3
2
|
export interface FieldContainerInputProps extends FieldContainerProps {
|
|
4
3
|
floatLabel?: boolean;
|
|
5
|
-
prependIcon?:
|
|
6
|
-
appendIcon?:
|
|
4
|
+
prependIcon?: string;
|
|
5
|
+
appendIcon?: string;
|
|
7
6
|
}
|
|
8
7
|
export declare const FieldContainerInput: ({ id, labelId, messageId, containerId, label, message, floatLabel, prependIcon, appendIcon, className, children, ...rest }: FieldContainerInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from 'primereact/button';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface LabsButtonBaseProps extends Omit<ButtonProps, 'severity'> {
|
|
5
|
-
icon?: IconValue;
|
|
2
|
+
export interface LabsButtonProps extends Omit<ButtonProps, 'severity'> {
|
|
3
|
+
icon?: string;
|
|
6
4
|
text?: boolean;
|
|
7
5
|
outlined?: boolean;
|
|
8
6
|
rounded?: boolean;
|
|
@@ -10,6 +8,4 @@ export interface LabsButtonBaseProps extends Omit<ButtonProps, 'severity'> {
|
|
|
10
8
|
size?: 'small' | 'large';
|
|
11
9
|
severity?: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | 'plain';
|
|
12
10
|
}
|
|
13
|
-
export type LabsButtonLinkProps = LabsButtonBaseProps & LabsLinkProps;
|
|
14
|
-
export type LabsButtonProps = LabsButtonBaseProps | LabsButtonLinkProps;
|
|
15
11
|
export declare const LabsButton: (props: LabsButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
export declare const ICONS: {
|
|
3
|
-
readonly ADMIN: "pi-shield";
|
|
4
3
|
readonly BARS: "pi-bars";
|
|
5
4
|
readonly CLOSE: "mci-close-fill";
|
|
6
|
-
readonly HOME: "pi-home";
|
|
7
5
|
readonly ICON_EATS: "mli-eats";
|
|
8
6
|
readonly ICON_ENGAGEMENTS: "mli-engagements";
|
|
9
7
|
readonly ICON_IDEALAB: "mli-idealab";
|
|
@@ -14,7 +12,6 @@ export declare const ICONS: {
|
|
|
14
12
|
readonly ICON_TIMETRACKING: "mli-timetracking";
|
|
15
13
|
readonly ICON_TRAINING: "mli-training";
|
|
16
14
|
readonly ICON_WELLNESS: "mli-wellness";
|
|
17
|
-
readonly INPUT: "slr-password-minimalistic-input-outline";
|
|
18
15
|
readonly LOGO_EATS: "mli-eats-badge-lg";
|
|
19
16
|
readonly LOGO_ENGAGEMENTS: "mli-engagements-badge-lg";
|
|
20
17
|
readonly LOGO_IDEALAB: "mli-idealab-badge-lg";
|
|
@@ -25,12 +22,8 @@ export declare const ICONS: {
|
|
|
25
22
|
readonly LOGO_TIMETRACKING: "mli-timetracking-badge-lg";
|
|
26
23
|
readonly LOGO_TRAINING: "mli-training-badge-lg";
|
|
27
24
|
readonly LOGO_WELLNESS: "mli-wellness-badge-lg";
|
|
28
|
-
readonly LOGOUT: "mdi-logout";
|
|
29
|
-
readonly QUESTION_CIRCLE: "mci-question-line";
|
|
30
25
|
};
|
|
31
|
-
export type Icon = keyof typeof ICONS;
|
|
32
|
-
export type IconValue = (typeof ICONS)[Icon] | string;
|
|
33
26
|
export interface LabsIconProps extends HTMLAttributes<HTMLElement> {
|
|
34
|
-
icon:
|
|
27
|
+
icon: string;
|
|
35
28
|
}
|
|
36
29
|
export declare const LabsIcon: import("react").ForwardRefExoticComponent<LabsIconProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LabsMenuNavProps } from '../components/LabsMenuNav';
|
|
2
2
|
export type LabsMainDesktopNavProps = LabsMenuNavProps;
|
|
3
|
-
export declare const LabsMainDesktopNav: ({ className, items, ...rest }: LabsMainDesktopNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const LabsMainDesktopNav: ({ className, items, renderItem, ...rest }: LabsMainDesktopNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LabsSpeedDialNavProps } from '../components/LabsSpeedDialNav';
|
|
2
2
|
export type LabsMainMobileNavProps = LabsSpeedDialNavProps;
|
|
3
|
-
export declare const LabsMainMobileNav: ({ className, items, ...rest }: LabsMainMobileNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const LabsMainMobileNav: ({ className, items, renderItem, ...rest }: LabsMainMobileNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MenuProps } from 'primereact/menu';
|
|
2
|
-
import {
|
|
2
|
+
import { MenuItem } from 'primereact/menuitem';
|
|
3
3
|
import { DirectoryValue } from '../types/DirectoryValue.type';
|
|
4
4
|
type LabsMenuNavBaseProps = MenuProps;
|
|
5
5
|
export interface LabsMenuNavProps extends LabsMenuNavBaseProps {
|
|
6
6
|
items: readonly DirectoryValue[];
|
|
7
|
-
|
|
7
|
+
renderItem: (item: DirectoryValue) => MenuItem;
|
|
8
8
|
}
|
|
9
|
-
export declare const LabsMenuNav: ({ model, items,
|
|
9
|
+
export declare const LabsMenuNav: ({ model, items, renderItem, role, ...rest }: LabsMenuNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { MenuItem } from 'primereact/menuitem';
|
|
1
2
|
import { SpeedDialProps } from 'primereact/speeddial';
|
|
2
|
-
import { DirectoryMenuItem } from '../components/DirectoryLink';
|
|
3
3
|
import { DirectoryValue } from '../types/DirectoryValue.type';
|
|
4
4
|
type LabsSpeedDialNavBaseProps = SpeedDialProps;
|
|
5
5
|
export interface LabsSpeedDialNavProps extends LabsSpeedDialNavBaseProps {
|
|
6
6
|
items: readonly DirectoryValue[];
|
|
7
|
-
|
|
7
|
+
renderItem: (item: DirectoryValue) => MenuItem;
|
|
8
8
|
}
|
|
9
|
-
export declare const LabsSpeedDialNav: ({ model, items,
|
|
9
|
+
export declare const LabsSpeedDialNav: ({ model, items, role, renderItem, ...rest }: LabsSpeedDialNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { MenuItem } from 'primereact/menuitem';
|
|
2
3
|
import { DirectoryValue } from '../types/DirectoryValue.type';
|
|
3
4
|
interface LayoutMainProps {
|
|
5
|
+
actions?: (() => React.ReactNode) | React.ReactNode;
|
|
6
|
+
appName: string;
|
|
7
|
+
children: React.ReactNode;
|
|
4
8
|
navigation: DirectoryValue[];
|
|
5
9
|
navigationMobile?: DirectoryValue[];
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
name?: ((appName: string) => React.ReactNode) | React.ReactNode;
|
|
11
|
+
renderNavigation: (item: DirectoryValue) => MenuItem;
|
|
12
|
+
renderNavigationMobile?: (item: DirectoryValue) => MenuItem;
|
|
8
13
|
themes: {
|
|
9
14
|
dark: string;
|
|
10
15
|
light: string;
|
|
11
16
|
};
|
|
12
17
|
}
|
|
13
|
-
export declare const LayoutMain:
|
|
18
|
+
export declare const LayoutMain: ({ actions, appName, children, navigation, navigationMobile, name, renderNavigation, renderNavigationMobile, themes, }: LayoutMainProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
19
|
export {};
|
package/dist/main.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from './components/DirectoryLink';
|
|
2
1
|
export * from './components/FieldCheckbox';
|
|
3
2
|
export * from './components/FieldDate';
|
|
4
3
|
export * from './components/FieldSelect';
|
|
@@ -8,7 +7,6 @@ export * from './components/FieldTextSearch';
|
|
|
8
7
|
export * from './components/LabsButton';
|
|
9
8
|
export * from './components/LabsCalendar';
|
|
10
9
|
export * from './components/LabsIcon';
|
|
11
|
-
export * from './components/LabsLink';
|
|
12
10
|
export * from './components/LabsLoader';
|
|
13
11
|
export * from './components/LabsMain';
|
|
14
12
|
export * from './components/LabsMainDesktopNav';
|