@fattureincloud/fic-design-system 0.15.8 → 0.15.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/monthlyTab/MonthlyTab.d.ts +1 -1
- package/dist/components/monthlyTab/components/month/Month.d.ts +3 -6
- package/dist/components/monthlyTab/index.d.ts +1 -1
- package/dist/components/monthlyTab/types.d.ts +7 -7
- package/dist/components/newTable_v2/components/body/Body.d.ts +2 -2
- package/dist/components/newTable_v2/components/footer/footerCell/styled.d.ts +10 -1
- package/dist/components/newTable_v2/components/footer/styled.d.ts +5 -0
- package/dist/components/newTable_v2/components/header/Header.d.ts +1 -2
- package/dist/components/newTable_v2/components/header/styled.d.ts +1 -5
- package/dist/components/newTable_v2/constants.d.ts +1 -1
- package/dist/components/newTable_v2/styled.d.ts +3 -1
- package/dist/components/newTable_v2/types/tableTypes.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/index-0788b002.css +0 -626
- package/dist/assets/index.esm-7d789d8e.css +0 -626
- package/dist/common/components/Label.d.ts +0 -3
- package/dist/common/types/label.d.ts +0 -12
- package/dist/common/utils/label.d.ts +0 -5
- package/dist/components/accordion-new/Accordion.d.ts +0 -12
- package/dist/components/accordion-new/accordion-new.stories.d.ts +0 -4
- package/dist/components/accordion-new/components/AccordionIcon.d.ts +0 -3
- package/dist/components/accordion-new/components/AccordionItem.d.ts +0 -3
- package/dist/components/accordion-new/components/styled.d.ts +0 -8
- package/dist/components/accordion-new/index.d.ts +0 -3
- package/dist/components/accordion-new/types.d.ts +0 -58
- package/dist/components/accordion-new/utils.d.ts +0 -10
- package/dist/components/accordions/accordions.d.ts +0 -9
- package/dist/components/accordions/accordions.stories.d.ts +0 -8
- package/dist/components/accordions/components/styledAccordionWrapper.d.ts +0 -1
- package/dist/components/accordions/index.d.ts +0 -1
- package/dist/components/accordions/types.d.ts +0 -19
- package/dist/components/banner/utils.d.ts +0 -8
- package/dist/components/carousel/components/common/styled.d.ts +0 -2
- package/dist/components/chart/components/styled.d.ts +0 -13
- package/dist/components/checkbox/Checkbox.d.ts +0 -15
- package/dist/components/checkbox/checkbox.stories.d.ts +0 -1
- package/dist/components/checkbox/checkboxPalette.d.ts +0 -16
- package/dist/components/checkbox/components/Input.d.ts +0 -9
- package/dist/components/checkbox/components/Label.d.ts +0 -8
- package/dist/components/checkbox/hooks/useCheckboxValue.d.ts +0 -11
- package/dist/components/checkbox/index.d.ts +0 -4
- package/dist/components/checkbox/types.d.ts +0 -19
- package/dist/components/checkbox/utils.d.ts +0 -24
- package/dist/components/chips/chips.d.ts +0 -7
- package/dist/components/chips/chips.stories.d.ts +0 -6
- package/dist/components/chips/components/styledChipWrapper.d.ts +0 -4
- package/dist/components/chips/index.d.ts +0 -2
- package/dist/components/chips/types.d.ts +0 -11
- package/dist/components/drawer/types.d.ts +0 -14
- package/dist/components/form/checkbox/components/Input.d.ts +0 -9
- package/dist/components/form/checkbox/components/Label.d.ts +0 -8
- package/dist/components/form/datepicker/StyledDatePicker.d.ts +0 -1
- package/dist/components/form/datepicker/components/MonthPicker.d.ts +0 -5
- package/dist/components/form/fileUploader/fileTypes.d.ts +0 -3
- package/dist/components/form/fileUploader/hooks/useIcon.d.ts +0 -4
- package/dist/components/form/fileUploader/hooks/useTexts.d.ts +0 -3
- package/dist/components/form/select/components/Placeholder.d.ts +0 -4
- package/dist/components/form/select/components/types.d.ts +0 -10
- package/dist/components/groupRadioButton/index.d.ts +0 -23
- package/dist/components/groupRadioButton/radio-group.stories.d.ts +0 -6
- package/dist/components/inlineMessages/components/styledInlineMessageWrapper.d.ts +0 -8
- package/dist/components/inlineMessages/index.d.ts +0 -2
- package/dist/components/inlineMessages/inlineMessages.d.ts +0 -4
- package/dist/components/inlineMessages/inlineMessages.stories.d.ts +0 -7
- package/dist/components/inlineMessages/types.d.ts +0 -29
- package/dist/components/inputText/components/icons.d.ts +0 -8
- package/dist/components/inputText/components/inputContainer.d.ts +0 -1
- package/dist/components/inputText/components/messages.d.ts +0 -2
- package/dist/components/inputText/components/wrapperTextArea.d.ts +0 -1
- package/dist/components/inputText/icons.d.ts +0 -9
- package/dist/components/inputText/index.d.ts +0 -3
- package/dist/components/inputText/inputText.stories.d.ts +0 -1
- package/dist/components/inputText/inputTextStyledWrapper.d.ts +0 -2
- package/dist/components/inputText/sideText.d.ts +0 -6
- package/dist/components/inputText/typings/enums.d.ts +0 -17
- package/dist/components/inputText/typings/inputText.d.ts +0 -43
- package/dist/components/inputText/utils.d.ts +0 -8
- package/dist/components/newTable/components/action/favorite/Favorite.d.ts +0 -13
- package/dist/components/newTable/components/action/favorite/index.d.ts +0 -1
- package/dist/components/newTable/components/action/favorite/styled.d.ts +0 -3
- package/dist/components/pagination/paginationStyledWrapper.d.ts +0 -1
- package/dist/components/progressbar/components/styledProgressbarWrapper.d.ts +0 -2
- package/dist/components/radioButton/components/label.d.ts +0 -2
- package/dist/components/radioButton/components/radio.d.ts +0 -2
- package/dist/components/radioButton/index.d.ts +0 -2
- package/dist/components/radioButton/radio.stories.d.ts +0 -6
- package/dist/components/radioButton/typings/radioButton.d.ts +0 -21
- package/dist/components/select/hooks/constants.d.ts +0 -4613
- package/dist/components/select/hooks/useCustomSelectStyle.d.ts +0 -4
- package/dist/components/select/index.d.ts +0 -4
- package/dist/components/select/select.stories.d.ts +0 -1
- package/dist/components/select/typings/select.d.ts +0 -22
- package/dist/components/stepBar/components/singleStep.d.ts +0 -3
- package/dist/components/stepBar/components/styledStepBarWrapper.d.ts +0 -2
- package/dist/components/stepBar/index.d.ts +0 -2
- package/dist/components/stepBar/stepBar.d.ts +0 -7
- package/dist/components/stepBar/stepBar.stories.d.ts +0 -1
- package/dist/components/stepBar/types.d.ts +0 -15
- package/dist/components/table/components/EmptyState.d.ts +0 -7
- package/dist/components/table/components/SelectedRowsCount.d.ts +0 -7
- package/dist/components/table/components/actionLink.d.ts +0 -3
- package/dist/components/table/components/actions/ActionsCell.d.ts +0 -10
- package/dist/components/table/components/actions/DropdownActions.d.ts +0 -10
- package/dist/components/table/components/actions/PrimaryAction.d.ts +0 -12
- package/dist/components/table/components/actions/actionsContainer.d.ts +0 -1
- package/dist/components/table/components/actions/actionsPopUp.d.ts +0 -12
- package/dist/components/table/components/actions/actionsPopUpButton.d.ts +0 -8
- package/dist/components/table/components/actions/actionsPopUpUnderlay.d.ts +0 -3
- package/dist/components/table/components/checkboxes/Cell.d.ts +0 -5
- package/dist/components/table/components/checkboxes/Header.d.ts +0 -5
- package/dist/components/table/components/checkboxes/useHeaderCheckboxProps.d.ts +0 -12
- package/dist/components/table/components/components/headDesktop.d.ts +0 -15
- package/dist/components/table/components/components/listMobile.d.ts +0 -15
- package/dist/components/table/components/components/rowDesktop.d.ts +0 -18
- package/dist/components/table/components/customizationModal/customizationsModal.d.ts +0 -10
- package/dist/components/table/components/customizationModal/index.d.ts +0 -2
- package/dist/components/table/components/customizationModal/styledWrapper.d.ts +0 -3
- package/dist/components/table/components/customizationModal/useDnd.d.ts +0 -8
- package/dist/components/table/components/customizationModal/utils.d.ts +0 -6
- package/dist/components/table/components/emptySet.d.ts +0 -10
- package/dist/components/table/components/linearBackground.d.ts +0 -1
- package/dist/components/table/components/loadingCell/LoadingCell.d.ts +0 -8
- package/dist/components/table/components/loadingContent.d.ts +0 -7
- package/dist/components/table/components/pagination/PageButton.d.ts +0 -10
- package/dist/components/table/components/pagination/PaginationButtons.d.ts +0 -10
- package/dist/components/table/components/pagination/utils.d.ts +0 -14
- package/dist/components/table/components/pagination.d.ts +0 -8
- package/dist/components/table/components/sortIcon.d.ts +0 -2
- package/dist/components/table/components/styledWrapper.d.ts +0 -3
- package/dist/components/table/components/tableBody/TableBody.d.ts +0 -17
- package/dist/components/table/components/tableBody/TableBodyTr.d.ts +0 -8
- package/dist/components/table/components/tableHeader/SortIndicator.d.ts +0 -7
- package/dist/components/table/components/tableHeader/TableHeader.d.ts +0 -12
- package/dist/components/table/components/tableParts/TableTd.d.ts +0 -8
- package/dist/components/table/components/tableParts/TableTh.d.ts +0 -4
- package/dist/components/table/components/tableParts/styled.d.ts +0 -17
- package/dist/components/table/components/unstyledTable.d.ts +0 -11
- package/dist/components/table/constants.d.ts +0 -2
- package/dist/components/table/hooks/useCheckboxesComponents.d.ts +0 -4
- package/dist/components/table/hooks/useRowsSelection.d.ts +0 -4
- package/dist/components/table/hooks/useTableHooks.d.ts +0 -6
- package/dist/components/table/hooks/useTableValues.d.ts +0 -14
- package/dist/components/table/index.d.ts +0 -7
- package/dist/components/table/stories/columns.d.ts +0 -3
- package/dist/components/table/stories/components/CustomPerson.d.ts +0 -7
- package/dist/components/table/stories/components/Role.d.ts +0 -8
- package/dist/components/table/stories/components/types.d.ts +0 -14
- package/dist/components/table/stories/data.d.ts +0 -2
- package/dist/components/table/table.d.ts +0 -57
- package/dist/components/table/table.stories.d.ts +0 -6
- package/dist/components/table/tablePalette.d.ts +0 -33
- package/dist/components/table/types.d.ts +0 -28
- package/dist/components/table/typings/main.d.ts +0 -92
- package/dist/components/table/utils/configPersistency.d.ts +0 -14
- package/dist/components/table/utils.d.ts +0 -16
- package/dist/components/textButton/TextButton.d.ts +0 -12
- package/dist/components/textButton/index.d.ts +0 -2
- package/dist/components/textButton/textButton.stories.d.ts +0 -1
- package/dist/components/tip/components/styledTip.d.ts +0 -4
- package/dist/components/toast/ToastContainer.d.ts +0 -9
- package/dist/components/toast/typings/toast.d.ts +0 -32
- package/dist/components/tooltips/components/message.d.ts +0 -12
- package/dist/components/tooltips/components/styledTooltipWrapper.d.ts +0 -1
- package/dist/components/tooltips/index.d.ts +0 -2
- package/dist/components/tooltips/tooltips.d.ts +0 -15
- package/dist/components/tooltips/tooltips.stories.d.ts +0 -1
- package/dist/components/tooltips/types.d.ts +0 -25
- package/dist/components/verticalTab/VerticalTab.d.ts +0 -4
- package/dist/components/verticalTab/components/VerticalTabSelector/VerticalTabSelector.d.ts +0 -13
- package/dist/components/verticalTab/components/VerticalTabSelector/index.d.ts +0 -5
- package/dist/components/verticalTab/components/VerticalTabSelector/styled.d.ts +0 -11
- package/dist/components/verticalTab/components/VerticalTabSelector/types.d.ts +0 -37
- package/dist/components/verticalTab/components/VerticalTabSelector/verticalTabSelector.stories.d.ts +0 -5
- package/dist/components/verticalTab/components/VerticalTabSelector/verticalTabSelectorPalette.d.ts +0 -3
- package/dist/components/verticalTab/index.d.ts +0 -2
- package/dist/components/verticalTab/styled.d.ts +0 -6
- package/dist/components/verticalTab/types.d.ts +0 -6
- package/dist/components/verticalTab/verticalTab.stories.d.ts +0 -8
- package/dist/styles/elevations.d.ts +0 -7
- package/dist/utils/FICNumbers.d.ts +0 -11
- /package/dist/components/floatingBadge/{floatingBadge.d.ts → FloatingBadge.d.ts} +0 -0
- /package/dist/components/floatingBadge/{withBadge.d.ts → WithBadge.d.ts} +0 -0
- /package/dist/components/progressbar/{progressbar.d.ts → ProgressBar.d.ts} +0 -0
- /package/dist/components/progressbar/{progressbar.stories.d.ts → progressBar.stories.d.ts} +0 -0
- /package/dist/components/tip/{shortcutTip.d.ts → ShortcutTip.d.ts} +0 -0
- /package/dist/components/tip/{tip.d.ts → Tip.d.ts} +0 -0
- /package/dist/components/toast/{toast.d.ts → Toast.d.ts} +0 -0
- /package/dist/components/toast/components/{toastContent.d.ts → ToastContent.d.ts} +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { default as Select } from 'react-select';
|
3
|
-
import { default as AsyncSelect } from 'react-select/async';
|
4
|
-
import CreatableSelect from 'react-select/creatable';
|
5
|
-
import { InputActionMeta } from 'react-select/src/types';
|
6
|
-
export interface Props {
|
7
|
-
label?: string;
|
8
|
-
size?: 'medium' | 'large' | undefined;
|
9
|
-
inputChange?: (newValue: string, actionMeta: InputActionMeta) => void;
|
10
|
-
getRef?: (node: any) => any;
|
11
|
-
}
|
12
|
-
export declare type TSelectProps = React.ComponentProps<typeof Select & Props>;
|
13
|
-
export declare type TAsyncSelectProps = React.ComponentProps<typeof AsyncSelect & Props>;
|
14
|
-
export declare type TSelectPropsCreatable = React.ComponentProps<typeof CreatableSelect> & {
|
15
|
-
label?: string;
|
16
|
-
size?: 'medium' | 'large' | undefined;
|
17
|
-
inputChange?: (newValue: string, actionMeta: InputActionMeta) => void;
|
18
|
-
createOption?: (inputValue: string) => void;
|
19
|
-
};
|
20
|
-
export declare type TSelect = React.FunctionComponent<TSelectProps>;
|
21
|
-
export declare type TSelectCreatable = React.FunctionComponent<TSelectPropsCreatable>;
|
22
|
-
export declare type TSelectAsync = React.FunctionComponent<TAsyncSelectProps>;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { Component } from 'react';
|
2
|
-
import { TStepBar, UnstyledStepBarPropsInterface, UnstyledStepBarStateInterface } from './types';
|
3
|
-
export declare class UnstyledStepBar extends Component<UnstyledStepBarPropsInterface, UnstyledStepBarStateInterface> {
|
4
|
-
render(): JSX.Element;
|
5
|
-
}
|
6
|
-
declare const StepBar: TStepBar;
|
7
|
-
export default StepBar;
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export interface StepProps {
|
3
|
-
title: string;
|
4
|
-
type: 'standard' | 'current' | 'completed';
|
5
|
-
number: number;
|
6
|
-
}
|
7
|
-
interface Props {
|
8
|
-
stepList: Array<StepProps>;
|
9
|
-
}
|
10
|
-
export declare type TStepBar = React.FunctionComponent<Props>;
|
11
|
-
export interface UnstyledStepBarPropsInterface extends Props {
|
12
|
-
}
|
13
|
-
export interface UnstyledStepBarStateInterface {
|
14
|
-
}
|
15
|
-
export {};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Row } from 'react-table';
|
3
|
-
import { RowActions, TableData } from '../../types';
|
4
|
-
interface Props<T extends TableData> {
|
5
|
-
row: Row<T>;
|
6
|
-
actions?: RowActions<T>;
|
7
|
-
renderActions?: () => JSX.Element;
|
8
|
-
}
|
9
|
-
declare const ActionsCell: <T extends TableData>({ row, actions, renderActions }: Props<T>) => JSX.Element;
|
10
|
-
export default ActionsCell;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Row } from 'react-table';
|
3
|
-
import { RowAction, TableData } from '../../types';
|
4
|
-
interface Props<T extends TableData> {
|
5
|
-
row: Row<T>;
|
6
|
-
actions: RowAction<T>[];
|
7
|
-
rowIsDisabled?: boolean;
|
8
|
-
}
|
9
|
-
declare const DropdownActions: <T extends TableData>({ row, actions, rowIsDisabled }: Props<T>) => JSX.Element;
|
10
|
-
export default DropdownActions;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Row } from 'react-table';
|
3
|
-
import { DropdownItemType } from '../../../dropdown/types';
|
4
|
-
import { RowAction, TableData } from '../../types';
|
5
|
-
interface Props<T extends TableData> {
|
6
|
-
action: RowAction<T>;
|
7
|
-
row: Row<T>;
|
8
|
-
rowIsDisabled?: boolean;
|
9
|
-
type?: DropdownItemType;
|
10
|
-
}
|
11
|
-
declare const PrimaryAction: <T extends TableData>({ action, row, rowIsDisabled, type, }: Props<T>) => JSX.Element | null;
|
12
|
-
export default PrimaryAction;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const ActionsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ActionType } from '../../typings/main';
|
3
|
-
export declare const ActionsPopUp: (props: {
|
4
|
-
actions: Array<ActionType>;
|
5
|
-
selectedRows: number[];
|
6
|
-
element: {
|
7
|
-
[key: string]: React.ReactText;
|
8
|
-
id: number;
|
9
|
-
};
|
10
|
-
active: boolean;
|
11
|
-
handlePopUpVisibility: (rowId?: number | undefined) => void;
|
12
|
-
}) => JSX.Element;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
2
|
-
import { HeaderProps, TableToggleAllRowsSelectedProps } from 'react-table';
|
3
|
-
import { TableData } from '../../types';
|
4
|
-
interface Props<T extends TableData> {
|
5
|
-
headerProps: PropsWithChildren<HeaderProps<T>>;
|
6
|
-
selectSinglePage?: boolean;
|
7
|
-
}
|
8
|
-
interface ReturnType extends TableToggleAllRowsSelectedProps {
|
9
|
-
disabled: boolean;
|
10
|
-
}
|
11
|
-
declare const useHeaderCheckboxProps: <T extends TableData>({ headerProps, selectSinglePage, }: Props<T>) => ReturnType;
|
12
|
-
export default useHeaderCheckboxProps;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ActionType, PropertyFilterInterface, TControlledProperties } from '../../typings/main';
|
3
|
-
interface Props {
|
4
|
-
isLoading?: boolean;
|
5
|
-
allChecked: boolean;
|
6
|
-
handleSelectAll: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
7
|
-
controlledProperties: TControlledProperties;
|
8
|
-
setShowModalCustomizeTrue: () => void;
|
9
|
-
propertiesFilter: PropertyFilterInterface[];
|
10
|
-
handleSortOnProperty: (id: string, type: boolean | 'desc' | 'asc') => void;
|
11
|
-
actions?: ActionType[];
|
12
|
-
disableSelection?: boolean;
|
13
|
-
}
|
14
|
-
export declare const HeadDesktop: ({ actions, allChecked, controlledProperties, disableSelection, handleSelectAll, handleSortOnProperty, isLoading, propertiesFilter, setShowModalCustomizeTrue, }: Props) => JSX.Element;
|
15
|
-
export {};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface Props {
|
3
|
-
listSize: number;
|
4
|
-
isLoading?: boolean;
|
5
|
-
data: {
|
6
|
-
[key: string]: React.ReactText;
|
7
|
-
id: number;
|
8
|
-
}[];
|
9
|
-
renderMobileRow?: (o: {
|
10
|
-
[key: string]: React.ReactText;
|
11
|
-
id: number;
|
12
|
-
}) => JSX.Element;
|
13
|
-
}
|
14
|
-
export declare const ListMobile: ({ data, isLoading, listSize, renderMobileRow }: Props) => JSX.Element;
|
15
|
-
export {};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ActionType, TControlledProperties } from '../../typings/main';
|
3
|
-
interface Props {
|
4
|
-
index: number;
|
5
|
-
selectedList?: number[];
|
6
|
-
element: {
|
7
|
-
[key: string]: React.ReactText;
|
8
|
-
id: number;
|
9
|
-
};
|
10
|
-
handleSelection: (id: number) => void;
|
11
|
-
controlledProperties: TControlledProperties;
|
12
|
-
actions?: ActionType[];
|
13
|
-
handlePopUpVisibility: (rowId?: number) => void;
|
14
|
-
currentActionsPopUp?: number;
|
15
|
-
disableSelection?: boolean;
|
16
|
-
}
|
17
|
-
export declare const RowDesktop: ({ actions, controlledProperties, currentActionsPopUp, disableSelection, element, handlePopUpVisibility, handleSelection, index, selectedList, }: Props) => JSX.Element;
|
18
|
-
export {};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { Component } from 'react';
|
2
|
-
import { DropResult, ResponderProvided } from 'react-beautiful-dnd';
|
3
|
-
import { CustomizationsModalPropsInterface, CustomizationsModalStateInterface } from '../../typings/main';
|
4
|
-
export declare class CustomizationsModal extends Component<CustomizationsModalPropsInterface, CustomizationsModalStateInterface> {
|
5
|
-
constructor(props: CustomizationsModalPropsInterface);
|
6
|
-
propertiesDisplayHandler: (id: string) => void;
|
7
|
-
onDragEnd: (result: DropResult, provided: ResponderProvided) => void;
|
8
|
-
resetProperties: () => void;
|
9
|
-
render(): JSX.Element;
|
10
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { DropResult, ResponderProvided } from 'react-beautiful-dnd';
|
3
|
-
import { TControlledProperties } from '../../typings/main';
|
4
|
-
export declare const UseDnd: React.FunctionComponent<{
|
5
|
-
localProperties: TControlledProperties;
|
6
|
-
onDragEnd: (result: DropResult, provided: ResponderProvided) => void;
|
7
|
-
propertiesDisplayHandler: (id: string) => void;
|
8
|
-
}>;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { CSSProperties } from 'react';
|
2
|
-
import { DraggableStateSnapshot, DraggingStyle, NotDraggingStyle } from 'react-beautiful-dnd';
|
3
|
-
import { TControlledProperties } from '../../typings/main';
|
4
|
-
export declare const getItemStyle: (snapshot: DraggableStateSnapshot, draggableStyle?: DraggingStyle | NotDraggingStyle | undefined) => React.CSSProperties;
|
5
|
-
export declare const getListStyle: (isDraggingOver: boolean) => CSSProperties;
|
6
|
-
export declare const reorder: (list: TControlledProperties, startIndex: number, endIndex: number) => import("../../typings/main").TControlledProperty[];
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const linearBackground: () => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { ColumnInstance } from 'react-table';
|
3
|
-
import { TableData } from '../../types';
|
4
|
-
interface LoadingCellProps<T extends TableData> {
|
5
|
-
column: ColumnInstance<T>;
|
6
|
-
}
|
7
|
-
declare const LoadingCell: <T extends TableData>({ column }: LoadingCellProps<T>) => JSX.Element;
|
8
|
-
export default LoadingCell;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { ReactText } from 'react';
|
2
|
-
interface Props extends PageButtonWrapperProps {
|
3
|
-
text: ReactText;
|
4
|
-
onClick: () => void;
|
5
|
-
}
|
6
|
-
declare const PageButton: ({ text, onClick, isActive }: Props) => JSX.Element;
|
7
|
-
export interface PageButtonWrapperProps {
|
8
|
-
isActive: boolean;
|
9
|
-
}
|
10
|
-
export default PageButton;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { UsePaginationInstanceProps } from 'react-table';
|
3
|
-
import { TableData } from '../../types';
|
4
|
-
interface Props<T extends TableData> {
|
5
|
-
pageCount: number;
|
6
|
-
pageIndex: number;
|
7
|
-
gotoPage: UsePaginationInstanceProps<T>['gotoPage'];
|
8
|
-
}
|
9
|
-
declare const PaginationButtons: <T extends TableData>({ pageCount, pageIndex, gotoPage }: Props<T>) => JSX.Element;
|
10
|
-
export default PaginationButtons;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { DefaultTheme } from 'styled-components';
|
2
|
-
import { paletteColor } from '../../../../styles/types';
|
3
|
-
import { PageButtonWrapperProps } from './PageButton';
|
4
|
-
interface GetPageButtonParams extends PageButtonWrapperProps {
|
5
|
-
theme: DefaultTheme;
|
6
|
-
}
|
7
|
-
export interface PageButtonStyles {
|
8
|
-
color: paletteColor;
|
9
|
-
background: paletteColor;
|
10
|
-
hoverColor: paletteColor;
|
11
|
-
hoverBackground: paletteColor;
|
12
|
-
}
|
13
|
-
export declare const getPageButtonStyles: ({ theme, isActive }: GetPageButtonParams) => PageButtonStyles;
|
14
|
-
export {};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { UsePaginationInstanceProps } from 'react-table';
|
3
|
-
import { TableData } from '../types';
|
4
|
-
interface Props<T extends TableData> extends Omit<UsePaginationInstanceProps<T>, 'page' | 'pageOptions' | 'setPageSize'> {
|
5
|
-
pageIndex: number;
|
6
|
-
}
|
7
|
-
declare const Pagination: <T extends TableData>({ canPreviousPage, nextPage, previousPage, canNextPage, gotoPage, pageCount, pageIndex, }: Props<T>) => JSX.Element;
|
8
|
-
export default Pagination;
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import { TablePropsInterface } from '../typings/main';
|
2
|
-
import { UnstyledTable } from './unstyledTable';
|
3
|
-
export declare const StyledTableWrapper: import("styled-components").StyledComponent<typeof UnstyledTable, import("styled-components").DefaultTheme, TablePropsInterface, never>;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { Row, UseTableInstanceProps } from 'react-table';
|
3
|
-
import { TableData } from '../../types';
|
4
|
-
interface Props<T extends TableData> {
|
5
|
-
rows: Row<T>[];
|
6
|
-
prepareRow: UseTableInstanceProps<T>['prepareRow'];
|
7
|
-
selectedRowsIds: string[];
|
8
|
-
isLoading: boolean;
|
9
|
-
onRowClick?: (row: Row<T>) => void;
|
10
|
-
rowHasFocus: boolean;
|
11
|
-
rowHeight: number | string;
|
12
|
-
selectableRows?: boolean;
|
13
|
-
setHighlightedRow: React.Dispatch<React.SetStateAction<number>>;
|
14
|
-
tableId: string;
|
15
|
-
}
|
16
|
-
declare const TableBody: <T extends TableData>({ isLoading, onRowClick, prepareRow, rowHasFocus, rowHeight, rows, selectableRows, selectedRowsIds, setHighlightedRow, tableId, }: Props<T>) => JSX.Element;
|
17
|
-
export default TableBody;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { TableBodyTrStyles } from '../../utils';
|
2
|
-
export interface TableBodyTrProps {
|
3
|
-
isSelected?: boolean;
|
4
|
-
isDisabled?: boolean;
|
5
|
-
rowHasFocus: boolean;
|
6
|
-
}
|
7
|
-
declare const TableBodyTr: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, import("../tableParts/styled").TrProps & TableBodyTrStyles & TableBodyTrProps, keyof TableBodyTrStyles>;
|
8
|
-
export default TableBodyTr;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { HeaderGroup, SortingRule } from 'react-table';
|
3
|
-
import { TableData } from '../../types';
|
4
|
-
interface Props<T extends TableData> {
|
5
|
-
scrollBar: number;
|
6
|
-
headerGroups: HeaderGroup<T>[];
|
7
|
-
headerHeight?: number | string;
|
8
|
-
selectedRowsIds?: string[];
|
9
|
-
sortBy: SortingRule<T>[];
|
10
|
-
}
|
11
|
-
declare const TableHeader: <T extends TableData>({ headerHeight, headerGroups, scrollBar }: Props<T>) => JSX.Element;
|
12
|
-
export default TableHeader;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
declare type alignType = 'left' | 'center' | 'right';
|
3
|
-
interface Props extends React.HTMLAttributes<HTMLTableDataCellElement> {
|
4
|
-
align?: alignType;
|
5
|
-
isLoading?: boolean;
|
6
|
-
}
|
7
|
-
export declare const TableTd: import("styled-components").StyledComponent<({ children, align, isLoading, ...rest }: Props) => JSX.Element, import("styled-components").DefaultTheme, Props, never>;
|
8
|
-
export default TableTd;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
declare type Props = React.HTMLAttributes<HTMLTableHeaderCellElement>;
|
3
|
-
export declare const TableTh: import("styled-components").StyledComponent<({ children, ...rest }: Props) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
4
|
-
export default TableTh;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
export declare const TableWrapper: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
|
2
|
-
interface THeadProps {
|
3
|
-
scrollBar: number;
|
4
|
-
}
|
5
|
-
export declare const THead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, THeadProps, never>;
|
6
|
-
interface TableBodyProps {
|
7
|
-
bodyHeight: number | string;
|
8
|
-
}
|
9
|
-
export declare const TBody: import("styled-components").StyledComponent<"tbody", import("styled-components").DefaultTheme, TableBodyProps, never>;
|
10
|
-
export interface TrProps {
|
11
|
-
isHeader?: boolean;
|
12
|
-
rowHeight?: number | string;
|
13
|
-
headerHeight?: number | string;
|
14
|
-
}
|
15
|
-
export declare const TableTr: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, TrProps, never>;
|
16
|
-
export declare const TFoot: import("styled-components").StyledComponent<"tfoot", import("styled-components").DefaultTheme, {}, never>;
|
17
|
-
export {};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import React, { Component } from 'react';
|
2
|
-
import { TablePropsInterface, TableStateInterface, TControlledProperties } from '../typings/main';
|
3
|
-
export declare class UnstyledTable extends Component<TablePropsInterface, TableStateInterface> {
|
4
|
-
constructor(props: TablePropsInterface);
|
5
|
-
handleSelection: (id: number) => void;
|
6
|
-
handleSelectAll: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
7
|
-
handleSortOnProperty: (id: string, type: 'desc' | 'asc' | boolean) => void;
|
8
|
-
modifyControlledPropertiesHandler: (properties: TControlledProperties) => void;
|
9
|
-
handlePopUpVisibility: (rowId?: number | undefined) => void;
|
10
|
-
render(): JSX.Element;
|
11
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { Row } from 'react-table';
|
2
|
-
import { OnSelectionChange, TableData } from '../types';
|
3
|
-
declare const useRowsSelection: <T extends TableData>(selectedFlatRows: Row<T>[], preSelectAllRows: boolean, onSelectionChange: OnSelectionChange<T> | undefined, allRows: Row<T>[]) => string[];
|
4
|
-
export default useRowsSelection;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { PluginHook } from 'react-table';
|
2
|
-
import { TableProps } from '../Table';
|
3
|
-
import { TableData } from '../types';
|
4
|
-
declare type Props<T extends TableData> = Pick<TableProps<T>, 'actions' | 'withCheckbox' | 'renderActions' | 'selectableRows' | 'actionsHeader'>;
|
5
|
-
declare const useTableHooks: <T extends TableData>({ actions, renderActions, withCheckbox, selectableRows, actionsHeader, }: Props<T>) => PluginHook<T>[];
|
6
|
-
export default useTableHooks;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
2
|
-
import { Row } from 'react-table';
|
3
|
-
import { TableData } from '../types';
|
4
|
-
interface Props {
|
5
|
-
initialFilter?: string;
|
6
|
-
}
|
7
|
-
interface ReturnType<DataType extends TableData> {
|
8
|
-
filter: string;
|
9
|
-
setFilter: Dispatch<SetStateAction<string>>;
|
10
|
-
selection: Row<DataType>[];
|
11
|
-
setSelection: Dispatch<SetStateAction<Row<DataType>[]>>;
|
12
|
-
}
|
13
|
-
declare const useTableValues: <DataType extends TableData>({ initialFilter }?: Props) => ReturnType<DataType>;
|
14
|
-
export default useTableValues;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { Column, Row } from 'react-table';
|
2
|
-
import useTableValues from './hooks/useTableValues';
|
3
|
-
import Table from './Table';
|
4
|
-
import { TableProps } from './Table';
|
5
|
-
import tablePalette, { TablePalette } from './tablePalette';
|
6
|
-
import { ManualPagination, OnSelectionChange, OnSort, RowActions, TableData } from './types';
|
7
|
-
export { Table, TableProps, TableData, tablePalette, useTableValues, TablePalette, RowActions, ManualPagination, OnSelectionChange, OnSort, Row, Column, };
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const rolesArray: readonly ["master", "admin", undefined];
|
3
|
-
export declare type roleType = typeof rolesArray[number];
|
4
|
-
interface Props {
|
5
|
-
role: roleType;
|
6
|
-
}
|
7
|
-
declare const Role: ({ role }: Props) => JSX.Element | null;
|
8
|
-
export default Role;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { roleType } from './Role';
|
2
|
-
export interface CustomPersonData {
|
3
|
-
img: string;
|
4
|
-
name: string;
|
5
|
-
role?: roleType;
|
6
|
-
}
|
7
|
-
export interface DataType {
|
8
|
-
person: CustomPersonData;
|
9
|
-
name: string;
|
10
|
-
address: string;
|
11
|
-
date: string;
|
12
|
-
order: number;
|
13
|
-
isDisabled?: boolean;
|
14
|
-
}
|