@moser-inc/moser-labs-react 2.1.0 → 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.
- package/dist/keycloak.json +1 -1
- package/dist/moser-labs-react.css +1 -1
- package/dist/moser-labs-react.js +18227 -24071
- package/dist/src/_dev/lib/router.d.ts +1 -1
- package/dist/src/_dev/views/Inputs.view.d.ts +0 -120
- package/dist/src/components/LabsEmpty.d.ts +6 -0
- package/dist/src/main.d.ts +1 -4
- package/package.json +22 -28
- package/dist/moser-labs-react.cjs +0 -2234
- package/dist/src/components/LabsIcon.d.ts +0 -33
- package/dist/src/components/LabsPlaceholder.d.ts +0 -8
- package/dist/src/components/LabsTypeahead.d.ts +0 -21
- package/dist/src/components/LabsUser.d.ts +0 -13
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare const LABS_ICONS: {
|
|
3
|
-
readonly BARS: "pi-bars";
|
|
4
|
-
readonly CHEVRON_DOWN: "pi-chevron-down";
|
|
5
|
-
readonly CHEVRON_UP: "pi-chevron-up";
|
|
6
|
-
readonly CLOSE: "pi-times";
|
|
7
|
-
readonly FAQ: "pi-question-circle";
|
|
8
|
-
readonly HOME: "pi-home";
|
|
9
|
-
readonly ICON_EATS: "mli-eats";
|
|
10
|
-
readonly ICON_ENGAGEMENTS: "mli-engagements";
|
|
11
|
-
readonly ICON_IDEALAB: "mli-idealab";
|
|
12
|
-
readonly ICON_LABS: "mli-labs";
|
|
13
|
-
readonly ICON_ROOMGRABBER: "mli-roomgrabber";
|
|
14
|
-
readonly ICON_SPENIO: "mli-spenio";
|
|
15
|
-
readonly ICON_TICKETS: "mli-tickets";
|
|
16
|
-
readonly ICON_TIMETRACKING: "mli-timetracking";
|
|
17
|
-
readonly ICON_TRAINING: "mli-training";
|
|
18
|
-
readonly ICON_WELLNESS: "mli-wellness";
|
|
19
|
-
readonly LOGO_EATS: "mli-eats-badge-lg";
|
|
20
|
-
readonly LOGO_ENGAGEMENTS: "mli-engagements-badge-lg";
|
|
21
|
-
readonly LOGO_IDEALAB: "mli-idealab-badge-lg";
|
|
22
|
-
readonly LOGO_LABS: "mli-labs-badge-lg";
|
|
23
|
-
readonly LOGO_ROOMGRABBER: "mli-roomgrabber-badge-lg";
|
|
24
|
-
readonly LOGO_SPENIO: "mli-spenio-badge-lg";
|
|
25
|
-
readonly LOGO_TICKETS: "mli-tickets-badge-lg";
|
|
26
|
-
readonly LOGO_TIMETRACKING: "mli-timetracking-badge-lg";
|
|
27
|
-
readonly LOGO_TRAINING: "mli-training-badge-lg";
|
|
28
|
-
readonly LOGO_WELLNESS: "mli-wellness-badge-lg";
|
|
29
|
-
};
|
|
30
|
-
export interface LabsIconProps extends HTMLAttributes<HTMLElement> {
|
|
31
|
-
icon: string;
|
|
32
|
-
}
|
|
33
|
-
export declare const LabsIcon: import('react').ForwardRefExoticComponent<LabsIconProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
2
|
-
import { default as BaseSelect, Props as BaseSelectProps, GroupBase } from 'react-select';
|
|
3
|
-
import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
|
|
4
|
-
import { ControllerRenderParams } from '../types/ReactHookForm.type';
|
|
5
|
-
interface BaseProps extends FieldContainerInputProps {
|
|
6
|
-
createable?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export type LabsTypeaheadProps<Option, Multi extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = BaseSelectProps<Option, Multi, Group> & BaseProps;
|
|
9
|
-
export type LabsTypeaheadElement = BaseSelect;
|
|
10
|
-
export declare const LabsTypeahead: <Option, Multi extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: Omit<import('react-select/dist/declarations/src/Select').PublicBaseSelectProps<Option, Multi, Group>, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import('react-select/dist/declarations/src/Select').PublicBaseSelectProps<Option, Multi, Group>> & import('react-select/dist/declarations/src/useStateManager').StateManagerAdditionalProps<Option> & BaseProps & import('react').RefAttributes<BaseSelect>) => React.ReactElement | null;
|
|
11
|
-
export declare const toLabsTypeaheadProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field, fieldState, }: ControllerRenderParams<TValues, TName>) => {
|
|
12
|
-
value: null;
|
|
13
|
-
hasError: boolean;
|
|
14
|
-
message: string | undefined;
|
|
15
|
-
onChange: (...event: any[]) => void;
|
|
16
|
-
onBlur: import('react-hook-form').Noop;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
name: TName;
|
|
19
|
-
ref: import('react-hook-form').RefCallBack;
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type LabsUser = {
|
|
2
|
-
id: string;
|
|
3
|
-
fullName: string;
|
|
4
|
-
email: string;
|
|
5
|
-
jobTitle: string;
|
|
6
|
-
image: string;
|
|
7
|
-
nameInitials: string;
|
|
8
|
-
};
|
|
9
|
-
interface LabsUserProps {
|
|
10
|
-
user: LabsUser;
|
|
11
|
-
}
|
|
12
|
-
export declare const LabsUser: React.FC<LabsUserProps>;
|
|
13
|
-
export {};
|