@reportportal/ui-kit 0.0.1-alpha.4 → 0.0.1-alpha.41
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/LICENSE +201 -201
- package/README.md +252 -3
- package/dist/baseIconButton-b6adc843.js +25 -0
- package/dist/baseIconButton.js +7 -0
- package/dist/bubblesLoader-a7e709d4.js +17 -0
- package/dist/bubblesLoader.js +7 -0
- package/dist/button-33c88abf.js +62 -0
- package/dist/button.js +1 -1
- package/dist/calendar-f154eb78.js +6 -0
- package/dist/checkbox-9a6c7ce1.js +73 -0
- package/dist/checkbox.js +2 -2
- package/dist/common/constants/keyCodes.d.ts +24 -0
- package/dist/components/bubblesLoader/bubblesLoader.d.ts +7 -0
- package/dist/components/bubblesLoader/index.d.ts +3 -0
- package/dist/components/button/button.d.ts +0 -1
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -1
- package/dist/components/dataPicker2/dataPicker2/datePicker.d.ts +24 -0
- package/dist/components/dataPicker2/dataPicker2/header/datePickerHeader.d.ts +15 -0
- package/dist/components/dataPicker2/dataPicker2/header/index.d.ts +3 -0
- package/dist/components/dataPicker2/dataPicker2/index.d.ts +3 -0
- package/dist/components/dataPicker2/dataPicker2/utils.d.ts +3 -0
- package/dist/components/date2/date2.d.ts +24 -0
- package/dist/components/date2/index.d.ts +3 -0
- package/dist/components/datePicker/datePicker.d.ts +24 -0
- package/dist/components/datePicker/header/datePickerHeader.d.ts +15 -0
- package/dist/components/datePicker/header/index.d.ts +3 -0
- package/dist/components/datePicker/index.d.ts +3 -0
- package/dist/components/datePicker/utils.d.ts +3 -0
- package/dist/components/datePicker1/datePicker.d.ts +24 -0
- package/dist/components/datePicker1/header/datePickerHeader.d.ts +15 -0
- package/dist/components/datePicker1/header/index.d.ts +3 -0
- package/dist/components/datePicker1/index.d.ts +3 -0
- package/dist/components/datePicker1/utils.d.ts +3 -0
- package/dist/components/dropdown/constants.d.ts +7 -0
- package/dist/components/dropdown/dropdown.d.ts +28 -0
- package/dist/components/dropdown/dropdownOption/dropdownOption.d.ts +3 -0
- package/dist/components/dropdown/dropdownOption/index.d.ts +3 -0
- package/dist/components/dropdown/index.d.ts +3 -0
- package/dist/components/dropdown/types.d.ts +22 -0
- package/dist/components/dropdown/utils.d.ts +4 -0
- package/dist/components/fieldNumber/constants.d.ts +4 -0
- package/dist/components/fieldNumber/fieldNumber.d.ts +18 -0
- package/dist/components/fieldNumber/index.d.ts +3 -0
- package/dist/components/fieldText/fieldText.d.ts +8 -3
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +14 -0
- package/dist/components/fieldTextFlex/index.d.ts +3 -0
- package/dist/components/icons/baseIconButton/baseIconButton.d.ts +8 -0
- package/dist/components/icons/baseIconButton/index.d.ts +4 -0
- package/dist/components/icons/index.d.ts +21 -0
- package/dist/components/index.d.ts +17 -0
- package/dist/components/modal/modal.d.ts +6 -2
- package/dist/components/modal/modalContent/modalContent.d.ts +1 -0
- package/dist/components/modal/modalHeader/modalHeader.d.ts +1 -1
- package/dist/components/pagination/index.d.ts +4 -0
- package/dist/components/pagination/itemsCounter/index.d.ts +1 -0
- package/dist/components/pagination/itemsCounter/itemCounter.d.ts +9 -0
- package/dist/components/pagination/pageControls/activePage/activePage.d.ts +12 -0
- package/dist/components/pagination/pageControls/activePage/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/pageSelector.d.ts +10 -0
- package/dist/components/pagination/pageControls/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageControls.d.ts +16 -0
- package/dist/components/pagination/pageControls/pageNavigator/bar/bar.d.ts +11 -0
- package/dist/components/pagination/pageControls/pageNavigator/bar/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/pageNavigator.d.ts +11 -0
- package/dist/components/pagination/pageSizeControl/index.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/pageSizeControl.d.ts +10 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/index.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/sizeSelector.d.ts +8 -0
- package/dist/components/pagination/pagination.d.ts +22 -0
- package/dist/components/pagination/types.d.ts +2 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/popover.d.ts +18 -0
- package/dist/components/radio/index.d.ts +4 -0
- package/dist/components/radio/radio.d.ts +16 -0
- package/dist/components/radio/radioGroup.d.ts +8 -0
- package/dist/components/spinLoader/index.d.ts +3 -0
- package/dist/components/spinLoader/spinLoader.d.ts +7 -0
- package/dist/components/systemAlert/index.d.ts +1 -0
- package/dist/components/systemAlert/systemAlert.d.ts +3 -0
- package/dist/components/systemAlert/types.d.ts +14 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/table.d.ts +3 -0
- package/dist/components/table/types.d.ts +53 -0
- package/dist/components/table/utils.d.ts +3 -0
- package/dist/components/themeProvider/themeProvider.d.ts +2 -1
- package/dist/components/toggle/index.d.ts +3 -0
- package/dist/components/toggle/toggle.d.ts +11 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/tooltip.d.ts +19 -0
- package/dist/date2-9273411e.js +46 -0
- package/dist/date2.js +7 -0
- package/dist/datePicker-a005ebc6.js +194 -0
- package/dist/datePicker-e85bee1d.js +194 -0
- package/dist/datePicker.js +19 -0
- package/dist/datePicker1.js +19 -0
- package/dist/dropdown-9f4d1928.js +245 -0
- package/dist/dropdown.js +15 -0
- package/dist/fieldNumber-1f286b40.js +127 -0
- package/dist/fieldNumber.js +10 -0
- package/dist/fieldText-65e4c614.js +134 -0
- package/dist/fieldText.js +2 -1
- package/dist/fieldTextFlex-5bddf46a.js +67 -0
- package/dist/fieldTextFlex.js +8 -0
- package/dist/index-54e3bfc2.js +147 -0
- package/dist/index.js +303 -16
- package/dist/keyCodes-f63c0e11.js +4 -0
- package/dist/modal.js +14 -135
- package/dist/pagination-f087f454.js +346 -0
- package/dist/pagination.js +14 -0
- package/dist/popover.js +95 -0
- package/dist/radio-bccc84f2.js +76 -0
- package/dist/radio.js +9 -0
- package/dist/style.css +1 -1
- package/dist/systemMessage-1ced6079.js +30 -0
- package/dist/systemMessage.js +1 -1
- package/dist/table-9bf4ddab.js +147 -0
- package/dist/table.js +11 -0
- package/dist/themeProvider-46c2be7b.js +23 -0
- package/dist/themeProvider.js +4 -3
- package/dist/toggle-1a3aacb5.js +59 -0
- package/dist/toggle.js +9 -0
- package/dist/tooltip.js +96 -0
- package/dist/useOnClickOutside-c332f7d3.js +16 -0
- package/package.json +105 -66
- package/dist/button-d4944dbc.js +0 -64
- package/dist/checkbox-7736509c.js +0 -70
- package/dist/common/constants/key-codes.d.ts +0 -5
- package/dist/fieldText-9621b0b7.js +0 -99
- package/dist/key-codes-abbe7725.js +0 -4
- package/dist/systemMessage-62c3133d.js +0 -30
- package/dist/themeProvider-5800417e.js +0 -19
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface DatePickerHeaderProps {
|
|
3
|
+
changeYear: (year: number) => void;
|
|
4
|
+
changeMonth: (month: number) => void;
|
|
5
|
+
decreaseMonth: () => void;
|
|
6
|
+
increaseMonth: () => void;
|
|
7
|
+
headerNodes: ReactNode;
|
|
8
|
+
date: Date;
|
|
9
|
+
prevMonthButtonDisabled: boolean;
|
|
10
|
+
nextMonthButtonDisabled: boolean;
|
|
11
|
+
customClassName: string;
|
|
12
|
+
yearsOptions: number[];
|
|
13
|
+
locale: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const DatePickerHeader: FC<DatePickerHeaderProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FC, ReactNode, ReactElement } from 'react';
|
|
2
|
+
interface DatePickerProps {
|
|
3
|
+
onChange?: (date: Date | any) => void;
|
|
4
|
+
onBlur?: () => void;
|
|
5
|
+
onFocus?: () => void;
|
|
6
|
+
headerNodes?: ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
shouldCloseOnSelect?: boolean;
|
|
9
|
+
fixedHeight?: boolean;
|
|
10
|
+
startDate?: Date | undefined;
|
|
11
|
+
endDate?: Date | undefined;
|
|
12
|
+
customClassName?: string;
|
|
13
|
+
popperClassName?: string;
|
|
14
|
+
calendarClassName?: string;
|
|
15
|
+
customTimeInput?: ReactElement;
|
|
16
|
+
language?: string;
|
|
17
|
+
yearsOptions?: number[];
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
dateFormat?: string;
|
|
20
|
+
selects?: 'start' | 'end' | 'none';
|
|
21
|
+
value?: Date | null;
|
|
22
|
+
}
|
|
23
|
+
export declare const DatePicker1: FC<DatePickerProps>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface DatePickerHeaderProps {
|
|
3
|
+
changeYear: (year: number) => void;
|
|
4
|
+
changeMonth: (month: number) => void;
|
|
5
|
+
decreaseMonth: () => void;
|
|
6
|
+
increaseMonth: () => void;
|
|
7
|
+
headerNodes: ReactNode;
|
|
8
|
+
date: Date;
|
|
9
|
+
prevMonthButtonDisabled: boolean;
|
|
10
|
+
nextMonthButtonDisabled: boolean;
|
|
11
|
+
customClassName: string;
|
|
12
|
+
yearsOptions: number[];
|
|
13
|
+
locale: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const DatePickerHeader: FC<DatePickerHeaderProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { KeyCodes } from '../../common/constants/keyCodes';
|
|
2
|
+
export declare const OPEN_DROPDOWN_KEY_CODES: KeyCodes[];
|
|
3
|
+
export declare const CLOSE_DROPDOWN_KEY_CODES: KeyCodes[];
|
|
4
|
+
export declare enum EventName {
|
|
5
|
+
ON_KEY_DOWN = "onKeyDown",
|
|
6
|
+
ON_CLICK = "onClick"
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode, FC } from 'react';
|
|
2
|
+
import { DropdownVariant, RenderDropdownOption, DropdownOptionType, DropdownValue } from './types';
|
|
3
|
+
export interface DropdownProps {
|
|
4
|
+
options: DropdownOptionType[];
|
|
5
|
+
value: DropdownValue | DropdownValue[];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
error?: string;
|
|
8
|
+
mobileDisabled?: boolean;
|
|
9
|
+
title?: string;
|
|
10
|
+
touched?: boolean;
|
|
11
|
+
icon?: ReactNode;
|
|
12
|
+
variant?: DropdownVariant;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
transparentBackground?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
toggleButtonClassName?: string;
|
|
17
|
+
onChange: (value: DropdownValue) => void;
|
|
18
|
+
onFocus?: () => void;
|
|
19
|
+
onBlur?: () => void;
|
|
20
|
+
renderOption?: RenderDropdownOption;
|
|
21
|
+
isListWidthLimited?: boolean;
|
|
22
|
+
multiSelect?: boolean;
|
|
23
|
+
optionAll?: DropdownOptionType;
|
|
24
|
+
isOptionAllVisible?: boolean;
|
|
25
|
+
onSelectAll?: () => void;
|
|
26
|
+
footer?: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export declare const Dropdown: FC<DropdownProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
export type DropdownVariant = 'default' | 'ghost';
|
|
3
|
+
export type DropdownValue = string | boolean | number;
|
|
4
|
+
export type RenderDropdownOption = (props: DropdownOptionProps) => ReactNode;
|
|
5
|
+
export type DropdownOptionType = {
|
|
6
|
+
value: DropdownValue;
|
|
7
|
+
label: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
title?: string;
|
|
11
|
+
groupRef?: string;
|
|
12
|
+
};
|
|
13
|
+
export interface DropdownOptionProps {
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
onChange?: (value: DropdownValue) => void;
|
|
16
|
+
highlightHovered?: boolean;
|
|
17
|
+
render?: RenderDropdownOption;
|
|
18
|
+
onMouseEnter?: MouseEventHandler<HTMLDivElement>;
|
|
19
|
+
multiSelect?: boolean;
|
|
20
|
+
isPartiallyChecked?: boolean;
|
|
21
|
+
option: DropdownOptionType;
|
|
22
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DropdownValue, DropdownOptionType } from './types';
|
|
2
|
+
export declare const calculateDefaultIndex: (options: DropdownOptionType[], selectedValue: DropdownValue | DropdownValue[]) => number;
|
|
3
|
+
export declare const calculateNextIndex: (options: DropdownOptionType[], index?: number) => number;
|
|
4
|
+
export declare const calculatePrevIndex: (options: DropdownOptionType[], index?: number) => number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC, HTMLAttributes, FocusEventHandler } from 'react';
|
|
2
|
+
type FieldNumberValue = number | string;
|
|
3
|
+
interface FieldNumberProps extends Omit<HTMLAttributes<HTMLInputElement>, 'onChange' | 'onFocus'> {
|
|
4
|
+
onChange: (value: number | string) => void;
|
|
5
|
+
value?: FieldNumberValue;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
postfix?: string;
|
|
10
|
+
min?: number;
|
|
11
|
+
max?: number;
|
|
12
|
+
title?: string;
|
|
13
|
+
error?: string;
|
|
14
|
+
touched?: boolean;
|
|
15
|
+
onFocus?: () => void | FocusEventHandler<HTMLInputElement>;
|
|
16
|
+
}
|
|
17
|
+
export declare const FieldNumber: FC<FieldNumberProps>;
|
|
18
|
+
export {};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interface FieldTextProps extends
|
|
1
|
+
import { ChangeEventHandler, ReactNode, InputHTMLAttributes } from 'react';
|
|
2
|
+
interface FieldTextProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
3
|
value?: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
error?: string;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
9
|
+
onFocus?: ChangeEventHandler<HTMLInputElement>;
|
|
10
|
+
onBlur?: ChangeEventHandler<HTMLInputElement>;
|
|
9
11
|
touched?: boolean;
|
|
10
12
|
title?: string;
|
|
11
13
|
label?: string;
|
|
@@ -18,6 +20,9 @@ interface FieldTextProps extends ComponentPropsWithRef<'input'> {
|
|
|
18
20
|
isRequired?: boolean;
|
|
19
21
|
hasDoubleMessage?: boolean;
|
|
20
22
|
type?: string;
|
|
23
|
+
displayError?: boolean;
|
|
24
|
+
collapsible?: boolean;
|
|
25
|
+
loading?: boolean;
|
|
21
26
|
}
|
|
22
|
-
export declare const FieldText:
|
|
27
|
+
export declare const FieldText: import("react").ForwardRefExoticComponent<FieldTextProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
23
28
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChangeEventHandler, ComponentPropsWithRef, FC, FocusEventHandler, KeyboardEventHandler } from 'react';
|
|
2
|
+
export interface FieldTextFlexProps extends ComponentPropsWithRef<'textarea'> {
|
|
3
|
+
value: string;
|
|
4
|
+
readonly?: boolean;
|
|
5
|
+
error?: string;
|
|
6
|
+
touched?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
helpText?: string;
|
|
9
|
+
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
10
|
+
onFocus?: FocusEventHandler<HTMLTextAreaElement>;
|
|
11
|
+
onBlur?: FocusEventHandler<HTMLTextAreaElement>;
|
|
12
|
+
onKeyUp?: KeyboardEventHandler<HTMLTextAreaElement>;
|
|
13
|
+
}
|
|
14
|
+
export declare const FieldTextFlex: FC<FieldTextFlexProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC, MouseEventHandler, ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
export interface BaseIconButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
}
|
|
8
|
+
export declare const BaseIconButton: FC<BaseIconButtonProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { BaseIconButton } from './baseIconButton';
|
|
2
|
+
export { default as ClearIcon } from './svg/clear.svg';
|
|
3
|
+
export { default as CloseIcon } from './svg/close.svg';
|
|
4
|
+
export { default as PlusIcon } from './svg/plus.svg';
|
|
5
|
+
export { default as MinusIcon } from './svg/minus.svg';
|
|
6
|
+
export { default as DeleteIcon } from './svg/delete.svg';
|
|
7
|
+
export { default as DropdownIcon } from './svg/dropdown.svg';
|
|
8
|
+
export { default as PrevPageIcon } from './svg/prevPage.svg';
|
|
9
|
+
export { default as PrevChapterIcon } from './svg/prevChapter.svg';
|
|
10
|
+
export { default as ArrowDownIcon } from './svg/arrowDown.svg';
|
|
11
|
+
export { default as ArrowUpIcon } from './svg/arrowUp.svg';
|
|
12
|
+
export { default as MeatballMenuIcon } from './svg/meatballMenu.svg';
|
|
13
|
+
export { default as CalendarArrowIcon } from './svg/calendarArrow.svg';
|
|
14
|
+
export { default as CalendarIcon } from './svg/calendar.svg';
|
|
15
|
+
export { default as SearchIcon } from './svg/search.svg';
|
|
16
|
+
export { default as FilterOutlineIcon } from './svg/filterOutline.svg';
|
|
17
|
+
export { default as FilterFilledIcon } from './svg/filterFilled.svg';
|
|
18
|
+
export { default as InfoIcon } from './svg/info.svg';
|
|
19
|
+
export { default as SuccessIcon } from './svg/success.svg';
|
|
20
|
+
export { default as ErrorIcon } from './svg/error.svg';
|
|
21
|
+
export { default as ExportIcon } from './svg/export.svg';
|
|
@@ -4,3 +4,20 @@ export { SystemMessage } from './systemMessage';
|
|
|
4
4
|
export { FieldText } from './fieldText';
|
|
5
5
|
export { ThemeProvider } from './themeProvider';
|
|
6
6
|
export { Modal } from './modal';
|
|
7
|
+
export { Dropdown } from './dropdown';
|
|
8
|
+
export { Toggle } from './toggle';
|
|
9
|
+
export { FieldNumber } from './fieldNumber';
|
|
10
|
+
export { BubblesLoader } from './bubblesLoader';
|
|
11
|
+
export { SpinLoader } from './spinLoader';
|
|
12
|
+
export { FieldTextFlex } from './fieldTextFlex';
|
|
13
|
+
export { Radio } from './radio';
|
|
14
|
+
export { Tooltip } from './tooltip';
|
|
15
|
+
export { Popover } from './popover';
|
|
16
|
+
export { Pagination } from './pagination';
|
|
17
|
+
export { Table } from './table';
|
|
18
|
+
export { DatePicker } from './datePicker';
|
|
19
|
+
export { DatePicker1 } from './datePicker1';
|
|
20
|
+
export { DatePicker2 } from './dataPicker2/dataPicker2';
|
|
21
|
+
export { Date2 } from './date2';
|
|
22
|
+
export { SystemAlert } from './systemAlert';
|
|
23
|
+
export * from './icons';
|
|
@@ -3,17 +3,21 @@ import { ButtonProps } from '../button';
|
|
|
3
3
|
import { ModalSize } from './modalFooter';
|
|
4
4
|
type ModalOverlay = 'default' | 'light-cyan';
|
|
5
5
|
interface ModalProps {
|
|
6
|
+
onClose?: () => void;
|
|
6
7
|
title?: ReactNode;
|
|
7
|
-
headerNode?: ReactNode;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
footerNode?: ReactNode;
|
|
10
10
|
className?: string;
|
|
11
|
+
zIndex?: number;
|
|
11
12
|
size?: ModalSize;
|
|
12
13
|
overlay?: ModalOverlay;
|
|
13
14
|
allowCloseOutside?: boolean;
|
|
14
15
|
okButton?: ButtonProps;
|
|
15
16
|
cancelButton?: ButtonProps;
|
|
16
|
-
|
|
17
|
+
scrollable?: boolean;
|
|
18
|
+
withoutFooter?: boolean;
|
|
19
|
+
createFooter?: (closeHandler: () => void) => ReactNode;
|
|
20
|
+
description?: ReactNode;
|
|
17
21
|
}
|
|
18
22
|
export declare const Modal: FC<ModalProps>;
|
|
19
23
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ItemCounter } from './itemCounter';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ChangePage } from '../../types';
|
|
3
|
+
interface ActivePageProps {
|
|
4
|
+
activePage: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
pageText: string;
|
|
7
|
+
goToText: string;
|
|
8
|
+
goActionText: string;
|
|
9
|
+
changePage: ChangePage;
|
|
10
|
+
}
|
|
11
|
+
export declare const ActivePage: FC<ActivePageProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActivePage } from './activePage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageSelector } from './pageSelector';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ChangePage } from '../../../types';
|
|
3
|
+
interface PageSelectorProps {
|
|
4
|
+
pageText: string;
|
|
5
|
+
goActionText: string;
|
|
6
|
+
totalPages: number;
|
|
7
|
+
selectPage: ChangePage;
|
|
8
|
+
}
|
|
9
|
+
export declare const PageSelector: FC<PageSelectorProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageControls } from './pageControls';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ChangePage } from '../types';
|
|
3
|
+
type PageControlsCaptions = {
|
|
4
|
+
page: string;
|
|
5
|
+
goTo: string;
|
|
6
|
+
goAction: string;
|
|
7
|
+
of: string;
|
|
8
|
+
};
|
|
9
|
+
export interface PageControlsProps {
|
|
10
|
+
activePage: number;
|
|
11
|
+
totalPages: number;
|
|
12
|
+
changePage: ChangePage;
|
|
13
|
+
captions: PageControlsCaptions;
|
|
14
|
+
}
|
|
15
|
+
export declare const PageControls: FC<PageControlsProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Bar } from './bar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageNavigator } from './pageNavigator';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ChangePage } from '../../types';
|
|
3
|
+
export interface PageNavigatorProps {
|
|
4
|
+
activePage: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
changePage: ChangePage;
|
|
7
|
+
captions: {
|
|
8
|
+
goTo: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare const PageNavigator: FC<PageNavigatorProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageSizeControl } from './pageSizeControl';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ChangePageSize } from '../types';
|
|
3
|
+
interface PageSizeControlProps {
|
|
4
|
+
size: number;
|
|
5
|
+
sizeOptions: number[];
|
|
6
|
+
perPageText: string;
|
|
7
|
+
changeSize: ChangePageSize;
|
|
8
|
+
}
|
|
9
|
+
export declare const PageSizeControl: FC<PageSizeControlProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SizeSelector } from './sizeSelector';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ChangePageSize, ChangePage } from './types';
|
|
3
|
+
type PaginationCaptions = {
|
|
4
|
+
items?: string;
|
|
5
|
+
of?: string;
|
|
6
|
+
page?: string;
|
|
7
|
+
goTo?: string;
|
|
8
|
+
goAction?: string;
|
|
9
|
+
perPage?: string;
|
|
10
|
+
};
|
|
11
|
+
export interface PaginationProps {
|
|
12
|
+
activePage: number;
|
|
13
|
+
totalPages: number;
|
|
14
|
+
pageSize: number;
|
|
15
|
+
totalItems: number;
|
|
16
|
+
pageSizeOptions: number[];
|
|
17
|
+
changePage: ChangePage;
|
|
18
|
+
changePageSize: ChangePageSize;
|
|
19
|
+
captions?: PaginationCaptions;
|
|
20
|
+
}
|
|
21
|
+
export declare const Pagination: FC<PaginationProps>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Popover } from './popover';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { Placement } from '@floating-ui/react';
|
|
3
|
+
interface PopoverProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
placement?: Placement;
|
|
8
|
+
fallbackPlacements?: Placement[];
|
|
9
|
+
title?: string;
|
|
10
|
+
arrowOffset?: number;
|
|
11
|
+
safeZone?: number;
|
|
12
|
+
arrowColor?: string;
|
|
13
|
+
dataAutomationId?: string;
|
|
14
|
+
isOpened?: boolean;
|
|
15
|
+
setIsOpened?: (isOpened: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const Popover: FC<PopoverProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ChangeEventHandler, HTMLAttributes, ReactNode, FC } from 'react';
|
|
2
|
+
export type RadioValue = string | number;
|
|
3
|
+
export type RadioOption = {
|
|
4
|
+
value: RadioValue;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
};
|
|
8
|
+
export interface RadioProps extends HTMLAttributes<HTMLInputElement> {
|
|
9
|
+
option: RadioOption;
|
|
10
|
+
value?: RadioValue;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
15
|
+
}
|
|
16
|
+
export declare const Radio: FC<RadioProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { RadioProps } from './index';
|
|
3
|
+
import { RadioOption } from './radio';
|
|
4
|
+
interface RadioGroupProps extends Omit<RadioProps, 'option'> {
|
|
5
|
+
options: RadioOption[];
|
|
6
|
+
}
|
|
7
|
+
export declare const RadioGroup: FC<RadioGroupProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SystemAlert } from './systemAlert';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export declare enum SystemAlertType {
|
|
3
|
+
INFO = "info",
|
|
4
|
+
SUCCESS = "success",
|
|
5
|
+
ERROR = "error"
|
|
6
|
+
}
|
|
7
|
+
export interface SystemAlertProps {
|
|
8
|
+
title: string;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
icon?: ReactElement | null;
|
|
11
|
+
type?: SystemAlertType;
|
|
12
|
+
duration?: number;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|