@monolith-forensics/monolith-ui 1.1.34 → 1.1.35
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/Button/Button.d.ts +19 -0
- package/dist/Button/index.d.ts +2 -0
- package/dist/Calendar/Calendar.d.ts +15 -0
- package/dist/Calendar/CalendarStyles.d.ts +36 -0
- package/dist/Calendar/calendarHelpers.d.ts +53 -0
- package/dist/Calendar/index.d.ts +1 -0
- package/dist/CheckBox/CheckBox.d.ts +13 -0
- package/dist/CheckBox/index.d.ts +1 -0
- package/dist/DateInput/DateInput.d.ts +24 -0
- package/dist/DateInput/index.d.ts +1 -0
- package/dist/DropDownMenu/DropDownMenu.d.ts +36 -0
- package/dist/DropDownMenu/index.d.ts +1 -0
- package/dist/Error/Error.d.ts +4 -0
- package/dist/Error/index.d.ts +1 -0
- package/dist/FieldLabel/FieldLabel.d.ts +19 -0
- package/dist/FieldLabel/index.d.ts +1 -0
- package/dist/FileInputField/FileInputField.d.ts +19 -0
- package/dist/FileInputField/index.d.ts +1 -0
- package/dist/Flyout/Flyout.d.ts +11 -0
- package/dist/Flyout/FlyoutHeader.d.ts +5 -0
- package/dist/Flyout/FlyoutTitle.d.ts +2 -0
- package/dist/Flyout/index.d.ts +3 -0
- package/dist/FormSection/FormSection.d.ts +9 -0
- package/dist/FormSection/index.d.ts +1 -0
- package/dist/Grid/Grid.d.ts +8 -0
- package/dist/Grid/index.d.ts +1 -0
- package/dist/IconButton/IconButton.d.ts +5 -0
- package/dist/IconButton/index.d.ts +1 -0
- package/dist/Input/Input.d.ts +21 -0
- package/dist/Input/index.d.ts +1 -0
- package/dist/Modal/Modal.d.ts +14 -0
- package/dist/Modal/index.d.ts +1 -0
- package/dist/MonolithUIProvider/GlobalStyle.d.ts +4 -0
- package/dist/MonolithUIProvider/MonolithUIProvider.d.ts +18 -0
- package/dist/MonolithUIProvider/index.d.ts +3 -0
- package/dist/MonolithUIProvider/useMonolithUITheme.d.ts +3 -0
- package/dist/Pill/Pill.d.ts +11 -0
- package/dist/Pill/index.d.ts +1 -0
- package/dist/SelectBox/SelectBox.d.ts +45 -0
- package/dist/SelectBox/index.d.ts +1 -0
- package/dist/Switch/Switch.d.ts +18 -0
- package/dist/Switch/index.d.ts +1 -0
- package/dist/Table/Table.d.ts +92 -0
- package/dist/Table/index.d.ts +2 -0
- package/dist/TagBox/TagBox.d.ts +39 -0
- package/dist/TagBox/TagBoxStyles.d.ts +11 -0
- package/dist/TagBox/index.d.ts +1 -0
- package/dist/TextArea/TextArea.d.ts +16 -0
- package/dist/TextArea/index.d.ts +1 -0
- package/dist/TextAreaInput/TextAreaInput.d.ts +19 -0
- package/dist/TextAreaInput/index.d.ts +1 -0
- package/dist/TextInput/TextInput.d.ts +13 -0
- package/dist/TextInput/index.d.ts +1 -0
- package/dist/Tooltip/Tooltip.d.ts +12 -0
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/core/ArrowButton.d.ts +6 -0
- package/dist/core/ClearButton.d.ts +6 -0
- package/dist/core/StyledContent.d.ts +7 -0
- package/dist/core/StyledFloatContainer.d.ts +2 -0
- package/dist/core/Types/Size.d.ts +2 -0
- package/dist/core/Types/Variant.d.ts +2 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/index.d.ts +26 -0
- package/dist/theme/index.d.ts +169 -0
- package/dist/theme/typography.d.ts +45 -0
- package/dist/theme/variants.d.ts +172 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import { Size, Variant } from "../core";
|
|
3
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
children?: ReactNode | string;
|
|
5
|
+
className?: string;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
leftSection?: ReactNode;
|
|
8
|
+
rightSection?: ReactNode;
|
|
9
|
+
href?: string | null;
|
|
10
|
+
download?: string | null;
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
size?: Size;
|
|
13
|
+
variant?: Variant;
|
|
14
|
+
color?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
17
|
+
}
|
|
18
|
+
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export default Button;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface CalendarProps {
|
|
2
|
+
defaultValue?: Date;
|
|
3
|
+
value?: Date | null;
|
|
4
|
+
onChange?: (date: Date | null) => void;
|
|
5
|
+
hourFormat?: "12" | "24";
|
|
6
|
+
includeTime?: boolean;
|
|
7
|
+
clearable?: boolean;
|
|
8
|
+
min?: Date;
|
|
9
|
+
max?: Date;
|
|
10
|
+
}
|
|
11
|
+
declare const Calendar: {
|
|
12
|
+
({ defaultValue, value, onChange, hourFormat, includeTime, clearable, min, max, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export default Calendar;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const MainContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const CalendarContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const CalendarHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const CalendarGrid: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const CalendarMonth: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
interface CalendarCellProps {
|
|
7
|
+
index?: number;
|
|
8
|
+
inMonth?: boolean | 0;
|
|
9
|
+
"data-disabled"?: boolean | 0;
|
|
10
|
+
key: string | null;
|
|
11
|
+
title?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const CalendarCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CalendarCellProps>> & string;
|
|
14
|
+
export declare const CalendarDay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof CalendarCellProps> & CalendarCellProps, "ref"> & {
|
|
15
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
+
}, CalendarCellProps>> & string;
|
|
17
|
+
export declare const CalendarDate: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof CalendarCellProps> & CalendarCellProps, "ref"> & {
|
|
18
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
+
}, CalendarCellProps>> & string;
|
|
20
|
+
export declare const HighlightedCalendarDate: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof CalendarCellProps> & CalendarCellProps, "ref"> & {
|
|
21
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
22
|
+
}, keyof CalendarCellProps> & CalendarCellProps, CalendarCellProps>> & string;
|
|
23
|
+
export declare const TodayCalendarDate: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof CalendarCellProps> & CalendarCellProps, "ref"> & {
|
|
24
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
25
|
+
}, keyof CalendarCellProps> & CalendarCellProps, keyof CalendarCellProps> & CalendarCellProps, CalendarCellProps>> & string;
|
|
26
|
+
export declare const TimeContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
27
|
+
export declare const TimePickerContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
28
|
+
export declare const TimeHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
29
|
+
export declare const TimeHourSelect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
30
|
+
export declare const TimeMinuteSelect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
31
|
+
export declare const TimeItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
32
|
+
export declare const TimeItemActive: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
33
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
34
|
+
}, never>> & string;
|
|
35
|
+
export declare const NoValueButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const THIS_YEAR: number;
|
|
2
|
+
export declare const THIS_MONTH: number;
|
|
3
|
+
export declare const HOURS24: {
|
|
4
|
+
value: number;
|
|
5
|
+
label: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const HOURS12: {
|
|
8
|
+
value: number;
|
|
9
|
+
label: string;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const MINUTES: (string | number)[];
|
|
12
|
+
export declare const WEEK_DAYS: {
|
|
13
|
+
Sunday: string;
|
|
14
|
+
Monday: string;
|
|
15
|
+
Tuesday: string;
|
|
16
|
+
Wednesday: string;
|
|
17
|
+
Thursday: string;
|
|
18
|
+
Friday: string;
|
|
19
|
+
Saturday: string;
|
|
20
|
+
};
|
|
21
|
+
export type WeekDay = keyof typeof WEEK_DAYS;
|
|
22
|
+
export declare const CALENDAR_MONTHS: {
|
|
23
|
+
January: string;
|
|
24
|
+
February: string;
|
|
25
|
+
March: string;
|
|
26
|
+
April: string;
|
|
27
|
+
May: string;
|
|
28
|
+
June: string;
|
|
29
|
+
July: string;
|
|
30
|
+
August: string;
|
|
31
|
+
September: string;
|
|
32
|
+
October: string;
|
|
33
|
+
November: string;
|
|
34
|
+
December: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const CALENDAR_WEEKS = 6;
|
|
37
|
+
export declare const zeroPad: (value: number, length: number) => string;
|
|
38
|
+
export declare const getMonthDays: (month?: number, year?: number) => 29 | 28 | 30 | 31;
|
|
39
|
+
export declare const getMonthFirstDay: (month?: number, year?: number) => number;
|
|
40
|
+
export declare const isDate: (date: Date) => boolean;
|
|
41
|
+
export declare const isSameMonth: (date: Date, basedate?: Date) => boolean;
|
|
42
|
+
export declare const isSameDay: (date: Date, basedate?: Date) => boolean;
|
|
43
|
+
export declare const getDateISO: (date: Date) => string | null;
|
|
44
|
+
export declare const getPreviousMonth: (month: number, year: number) => {
|
|
45
|
+
month: number;
|
|
46
|
+
year: number;
|
|
47
|
+
};
|
|
48
|
+
export declare const getNextMonth: (month: number, year: number) => {
|
|
49
|
+
month: number;
|
|
50
|
+
year: number;
|
|
51
|
+
};
|
|
52
|
+
declare const calendarBuilder: (month?: number, year?: number) => (string | number)[][];
|
|
53
|
+
export default calendarBuilder;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Calendar";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
|
+
import { Size } from "../core";
|
|
3
|
+
interface CheckBoxProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
size?: Size;
|
|
6
|
+
defaultValue?: boolean;
|
|
7
|
+
value?: boolean | undefined;
|
|
8
|
+
partialCheck?: boolean;
|
|
9
|
+
onChange?: (value: boolean) => void;
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
declare const CheckBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<CheckBoxProps, never>> & string & Omit<({ className, defaultValue, value, partialCheck, onChange, }: CheckBoxProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
13
|
+
export default CheckBox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./CheckBox";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Size, Variant } from "../core";
|
|
3
|
+
interface DateInputProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
defaultValue?: string | null | undefined;
|
|
6
|
+
format?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
arrow?: boolean;
|
|
10
|
+
size?: Size;
|
|
11
|
+
variant?: Variant;
|
|
12
|
+
clearable?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
onChange?: (value: string | null) => void;
|
|
15
|
+
min?: Date;
|
|
16
|
+
max?: Date;
|
|
17
|
+
error?: string;
|
|
18
|
+
width?: string;
|
|
19
|
+
enableCalendar?: boolean;
|
|
20
|
+
utc?: boolean;
|
|
21
|
+
closeOnSelect?: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare const DateInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<DateInputProps, never>> & string & Omit<({ className, defaultValue, format, label, description, arrow, size, variant, clearable, required, onChange, min, max, error, enableCalendar, utc, closeOnSelect, }: DateInputProps) => import("react/jsx-runtime").JSX.Element, keyof React.Component<any, {}, any>>;
|
|
24
|
+
export default DateInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./DateInput";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ComponentType, ReactNode, UIEvent } from "react";
|
|
2
|
+
import { ButtonProps } from "../Button";
|
|
3
|
+
import { Size, Variant } from "../core";
|
|
4
|
+
interface StyledContentProps {
|
|
5
|
+
maxDropdownHeight?: number | string;
|
|
6
|
+
variant?: Variant;
|
|
7
|
+
}
|
|
8
|
+
declare const StyledContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledContentProps>> & string;
|
|
9
|
+
interface DropDownItem {
|
|
10
|
+
toLowerCase?: () => string;
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
data?: any;
|
|
14
|
+
}
|
|
15
|
+
interface DropDownMenuProps {
|
|
16
|
+
className?: string;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
data?: DropDownItem[];
|
|
19
|
+
variant?: Variant;
|
|
20
|
+
defaultValue?: DropDownItem[];
|
|
21
|
+
multiselect?: boolean;
|
|
22
|
+
size?: Size;
|
|
23
|
+
title?: string;
|
|
24
|
+
TooltipContent?: ComponentType<any>;
|
|
25
|
+
renderOption?: (item: DropDownItem) => ReactNode;
|
|
26
|
+
onChange?: (selected: DropDownItem[], diff: DropDownItem[]) => void;
|
|
27
|
+
onItemSelect?: (item: DropDownItem) => void;
|
|
28
|
+
onScroll?: (e: UIEvent<HTMLDivElement>) => void;
|
|
29
|
+
loading?: boolean;
|
|
30
|
+
arrow?: boolean;
|
|
31
|
+
searchable?: boolean;
|
|
32
|
+
dropDownProps?: ComponentPropsWithoutRef<typeof StyledContent>;
|
|
33
|
+
buttonProps?: ButtonProps;
|
|
34
|
+
}
|
|
35
|
+
declare const DropDownMenu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<DropDownMenuProps, never>> & string & Omit<({ className, children, data, variant, defaultValue, multiselect, size, TooltipContent, renderOption, onChange, onItemSelect, onScroll, loading, arrow, searchable, dropDownProps, buttonProps, }: DropDownMenuProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
36
|
+
export default DropDownMenu;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./DropDownMenu";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Error";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Size } from "../core";
|
|
3
|
+
interface InfoComponentProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
description?: string;
|
|
7
|
+
label?: string | ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const InfoComponent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<InfoComponentProps, never>> & string & Omit<({ className, children, description, label }: InfoComponentProps) => string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined, keyof import("react").Component<any, {}, any>>;
|
|
10
|
+
interface FieldLabelProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
error?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
size?: Size;
|
|
16
|
+
asterisk?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const FieldLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<FieldLabelProps, never>> & string & Omit<({ className, children, error, description, size, }: FieldLabelProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
19
|
+
export default FieldLabel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./FieldLabel";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes } from "react";
|
|
2
|
+
import { DropzoneOptions } from "react-dropzone";
|
|
3
|
+
import { Size, Variant } from "../core";
|
|
4
|
+
interface FileInputFieldProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
variant?: Variant;
|
|
8
|
+
label?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
size?: Size;
|
|
12
|
+
onChange?: (files: File[]) => void;
|
|
13
|
+
onFocus?: () => void;
|
|
14
|
+
dropZoneOptions?: DropzoneOptions;
|
|
15
|
+
colSpan?: number;
|
|
16
|
+
style?: HTMLAttributes<HTMLDivElement>;
|
|
17
|
+
}
|
|
18
|
+
declare const FileInputField: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<FileInputFieldProps, never>> & string & Omit<({ className, children, label, error, required, size, onChange, onFocus, dropZoneOptions, colSpan, style, }: FileInputFieldProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
19
|
+
export default FileInputField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./FileInputField";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface FlyoutProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
open?: boolean;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
closeOnOutsideClick?: boolean;
|
|
8
|
+
showCloseButton?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Flyout: React.FC<FlyoutProps>;
|
|
11
|
+
export default Flyout;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
interface FlyoutHeaderProps {
|
|
2
|
+
hasBorder?: boolean;
|
|
3
|
+
}
|
|
4
|
+
declare const FlyoutHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FlyoutHeaderProps>> & string;
|
|
5
|
+
export default FlyoutHeader;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const FlyoutTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
2
|
+
export default FlyoutTitle;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface FormSectionProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const FormSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<FormSectionProps, never>> & string & Omit<({ className, title, children, defaultOpen }: FormSectionProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
9
|
+
export default FormSection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./FormSection";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface GridProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
col?: number;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
}
|
|
7
|
+
declare const Grid: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<GridProps, never>> & string & Omit<({ className, children }: GridProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
8
|
+
export default Grid;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Grid";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ButtonProps } from "../Button/Button.js";
|
|
2
|
+
declare const IconButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<ButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
+
}, ButtonProps>> & string & Omit<import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
|
|
5
|
+
export default IconButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./IconButton";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Size, Variant } from "../core";
|
|
2
|
+
export interface InputProps {
|
|
3
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
4
|
+
className?: string;
|
|
5
|
+
size?: Size;
|
|
6
|
+
variant?: Variant;
|
|
7
|
+
width?: string | number | null | undefined;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
+
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
12
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
13
|
+
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
14
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
15
|
+
autoFocus?: boolean;
|
|
16
|
+
readOnly?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const Input: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
19
|
+
ref?: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
20
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>, keyof import("react").Component<any, {}, any>>;
|
|
21
|
+
export default Input;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Input";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface ModalProps {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
open?: boolean;
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
showCloseButton?: boolean;
|
|
7
|
+
FocusProps?: any;
|
|
8
|
+
}
|
|
9
|
+
declare const Modal: {
|
|
10
|
+
({ children, open, onClose, style, showCloseButton, FocusProps, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
12
|
+
SubTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
13
|
+
};
|
|
14
|
+
export default Modal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Modal";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DefaultTheme } from "styled-components";
|
|
2
|
+
import { Themes } from "../theme";
|
|
3
|
+
import React from "react";
|
|
4
|
+
export interface MonolithUIContextType {
|
|
5
|
+
theme: DefaultTheme;
|
|
6
|
+
Themes: typeof Themes;
|
|
7
|
+
colorScheme: "LIGHT" | "DARK";
|
|
8
|
+
toggleColorScheme: () => void;
|
|
9
|
+
setColorScheme: React.Dispatch<React.SetStateAction<"LIGHT" | "DARK">>;
|
|
10
|
+
}
|
|
11
|
+
export declare const MonolithUIContext: React.Context<MonolithUIContextType | undefined>;
|
|
12
|
+
interface MonolithUIProviderProps {
|
|
13
|
+
children: React.ReactNode | React.ReactNode[];
|
|
14
|
+
theme?: DefaultTheme;
|
|
15
|
+
defaultColorScheme?: "LIGHT" | "DARK";
|
|
16
|
+
}
|
|
17
|
+
declare const MonolithUIProvider: ({ children, theme, defaultColorScheme, }: MonolithUIProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default MonolithUIProvider;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Size } from "../core";
|
|
3
|
+
interface PillProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
size?: Size;
|
|
7
|
+
showRemoveIcon?: boolean;
|
|
8
|
+
onRemove?: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Pill: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<PillProps, never>> & string & Omit<({ className, children, size, showRemoveIcon, onRemove, }: PillProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
11
|
+
export default Pill;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Pill";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Size, Variant } from "../core";
|
|
3
|
+
export declare const StyledInputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
width?: string | number | null;
|
|
5
|
+
}>> & string;
|
|
6
|
+
type Option = {
|
|
7
|
+
label: string;
|
|
8
|
+
value: any;
|
|
9
|
+
group?: string;
|
|
10
|
+
data?: any;
|
|
11
|
+
};
|
|
12
|
+
interface SelectBoxProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
defaultValue?: Option | string;
|
|
15
|
+
data?: Option[] | string[];
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
arrow?: boolean;
|
|
18
|
+
onChange?: (value: any, item: any) => void;
|
|
19
|
+
onSearch?: (value: string) => void;
|
|
20
|
+
searchFn?: (value: string) => void;
|
|
21
|
+
onScroll?: (e: any) => void;
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
onItemAdded?: (item: any) => void;
|
|
24
|
+
size?: Size;
|
|
25
|
+
variant?: Variant;
|
|
26
|
+
width?: string | number | null;
|
|
27
|
+
allowCustomValue?: boolean;
|
|
28
|
+
searchable?: boolean;
|
|
29
|
+
clearable?: boolean;
|
|
30
|
+
label?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
required?: boolean;
|
|
33
|
+
error?: string;
|
|
34
|
+
openOnFocus?: boolean;
|
|
35
|
+
renderOption?: (item: Option | string) => ReactNode;
|
|
36
|
+
actionComponent?: JSX.Element;
|
|
37
|
+
focused?: boolean;
|
|
38
|
+
grouped?: boolean;
|
|
39
|
+
TooltipContent?: React.FC<{
|
|
40
|
+
data: any;
|
|
41
|
+
}>;
|
|
42
|
+
DropDownProps?: any;
|
|
43
|
+
}
|
|
44
|
+
declare const SelectBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<SelectBoxProps, never>> & string & Omit<({ className, data, placeholder, arrow, onChange, onSearch, searchFn, onScroll, loading, defaultValue, onItemAdded, size, variant, width, allowCustomValue, searchable, clearable, label, description, required, error, openOnFocus, renderOption, actionComponent, focused, grouped, TooltipContent, DropDownProps, }: SelectBoxProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
45
|
+
export default SelectBox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SelectBox";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
|
+
import { Size } from "../core";
|
|
3
|
+
interface SwitchProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
onChange: (e: any) => void;
|
|
6
|
+
size?: Size;
|
|
7
|
+
label?: string;
|
|
8
|
+
labelPosition?: "left" | "right";
|
|
9
|
+
description?: string;
|
|
10
|
+
error?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
defaultValue?: boolean;
|
|
14
|
+
value?: boolean;
|
|
15
|
+
style?: CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
declare const Switch: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<SwitchProps, never>> & string & Omit<({ className, onChange, size, label, labelPosition, description, error, required, disabled, defaultValue, value, style, ...other }: SwitchProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
18
|
+
export default Switch;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Switch";
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import "overlayscrollbars/overlayscrollbars.css";
|
|
2
|
+
interface ColumnProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
key?: string | number;
|
|
5
|
+
dataField: string;
|
|
6
|
+
caption: string;
|
|
7
|
+
columnId?: string | number;
|
|
8
|
+
allowSorting?: boolean;
|
|
9
|
+
allowReorder?: boolean;
|
|
10
|
+
resizeEnabled?: boolean;
|
|
11
|
+
width?: number;
|
|
12
|
+
sorting?: {
|
|
13
|
+
active: boolean;
|
|
14
|
+
direction: "asc" | "desc";
|
|
15
|
+
};
|
|
16
|
+
format?: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
props?: any;
|
|
20
|
+
render: (data: any, options: any) => React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
interface ColumnType extends React.FunctionComponent<ColumnProps> {
|
|
23
|
+
displayName: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const Column: ColumnType;
|
|
26
|
+
interface onResizeProps {
|
|
27
|
+
columns: {
|
|
28
|
+
dataField: string;
|
|
29
|
+
width: number;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
32
|
+
type SelectionState = "all" | "none" | "someIncluded" | "someExcluded";
|
|
33
|
+
interface TableInstanceProps {
|
|
34
|
+
setTableInstance: (e: any) => void;
|
|
35
|
+
toggleCompact: () => void;
|
|
36
|
+
toggleStripes: () => void;
|
|
37
|
+
isCompact: boolean;
|
|
38
|
+
isStriped: boolean;
|
|
39
|
+
getVirtualSelectionTotal: () => number;
|
|
40
|
+
getSelectedRows: () => any[];
|
|
41
|
+
getExcludedRows: () => any[];
|
|
42
|
+
getSelectionState: () => SelectionState;
|
|
43
|
+
clearSelections: () => void;
|
|
44
|
+
onColumnResize: (e: onResizeProps) => void;
|
|
45
|
+
}
|
|
46
|
+
export declare const useTable: () => {
|
|
47
|
+
setTableInstance: import("react").Dispatch<import("react").SetStateAction<TableInstanceProps | null>>;
|
|
48
|
+
toggleCompact: () => void | undefined;
|
|
49
|
+
toggleStripes: () => void | undefined;
|
|
50
|
+
isCompact: boolean;
|
|
51
|
+
isStriped: boolean;
|
|
52
|
+
getVirtualSelectionTotal: () => number;
|
|
53
|
+
getSelectedRows: () => any[];
|
|
54
|
+
getExcludedRows: () => any[];
|
|
55
|
+
getSelectionState: () => {};
|
|
56
|
+
clearSelections: () => void | undefined;
|
|
57
|
+
onColumnResize: (e: onResizeProps) => void | undefined;
|
|
58
|
+
};
|
|
59
|
+
interface TableProps {
|
|
60
|
+
className?: string;
|
|
61
|
+
children: React.ReactNode | React.ReactNode[];
|
|
62
|
+
data: {
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
}[];
|
|
65
|
+
rowHeight?: number;
|
|
66
|
+
headerHeight?: number;
|
|
67
|
+
tableInstance?: TableInstanceProps;
|
|
68
|
+
queryKey?: any;
|
|
69
|
+
totalRecords?: number;
|
|
70
|
+
compact?: boolean;
|
|
71
|
+
focusedRow?: {
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
};
|
|
74
|
+
keyValue?: string;
|
|
75
|
+
onScroll?: (e: any) => void;
|
|
76
|
+
allowColumnResize?: boolean;
|
|
77
|
+
allowColumnReorder?: boolean;
|
|
78
|
+
showActionColumn?: boolean;
|
|
79
|
+
showSelection?: boolean;
|
|
80
|
+
selectAll?: boolean;
|
|
81
|
+
reloadFn?: () => void;
|
|
82
|
+
onColumnReorder?: (e: any) => void;
|
|
83
|
+
onSelectionChanged?: (e: any) => void;
|
|
84
|
+
onActionButtonClick?: (e: any) => void;
|
|
85
|
+
onHeaderClick?: (e: any) => void;
|
|
86
|
+
onColumnResize?: (e: any) => void;
|
|
87
|
+
onRowUpdated?: (e: any) => void;
|
|
88
|
+
onRowClick?: (e: any) => void;
|
|
89
|
+
onRowDoubleClick?: (e: any) => void;
|
|
90
|
+
}
|
|
91
|
+
declare const Table: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<TableProps, never>> & string & Omit<({ className, children, data, rowHeight, headerHeight, tableInstance, queryKey, totalRecords, compact, focusedRow, keyValue, onScroll, allowColumnResize, allowColumnReorder, showActionColumn, showSelection, selectAll, reloadFn, onColumnReorder, onSelectionChanged, onActionButtonClick, onHeaderClick, onColumnResize, onRowUpdated, onRowClick, onRowDoubleClick, }: TableProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
92
|
+
export default Table;
|