@moser-inc/moser-labs-react 1.2.1 → 1.2.4

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,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?: Icon | string;
6
- appendIcon?: Icon | string;
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,7 @@
1
1
  import { ButtonProps } from 'primereact/button';
2
- import { IconValue } from '../components/LabsIcon';
3
2
  import { LabsLinkProps } from '../components/LabsLink';
4
3
  export interface LabsButtonBaseProps extends Omit<ButtonProps, 'severity'> {
5
- icon?: IconValue;
4
+ icon?: string;
6
5
  text?: boolean;
7
6
  outlined?: boolean;
8
7
  rounded?: boolean;
@@ -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: IconValue;
27
+ icon: string;
35
28
  }
36
29
  export declare const LabsIcon: import("react").ForwardRefExoticComponent<LabsIconProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -1,4 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { LinkProps } from 'react-router-dom';
3
- export type LabsLinkProps = LinkProps;
4
- export declare const LabsLink: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
3
+ export type LabsLinkProps = LinkProps & {
4
+ refreshOnSameUrl?: boolean;
5
+ };
6
+ export declare const LabsLink: import("react").ForwardRefExoticComponent<LinkProps & {
7
+ refreshOnSameUrl?: boolean | undefined;
8
+ } & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -1,14 +1,16 @@
1
1
  /// <reference types="react" />
2
2
  import { DirectoryValue } from '../types/DirectoryValue.type';
3
3
  interface LayoutMainProps {
4
+ actions?: (() => React.ReactNode) | React.ReactNode;
5
+ appName: string;
6
+ children: React.ReactNode;
4
7
  navigation: DirectoryValue[];
5
8
  navigationMobile?: DirectoryValue[];
6
- actions?: (() => React.ReactNode) | React.ReactNode;
7
- name?: (() => React.ReactNode) | React.ReactNode;
9
+ name?: ((appName: string) => React.ReactNode) | React.ReactNode;
8
10
  themes: {
9
11
  dark: string;
10
12
  light: string;
11
13
  };
12
14
  }
13
- export declare const LayoutMain: React.FC<LayoutMainProps>;
15
+ export declare const LayoutMain: ({ actions, appName, children, navigation, navigationMobile, name, themes, }: LayoutMainProps) => import("react/jsx-runtime").JSX.Element;
14
16
  export {};