@fattureincloud/fic-design-system 0.4.22 → 0.4.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/form/datepicker/StyledDatePicker.d.ts +1 -0
- package/dist/components/form/datepicker/hooks/useDatePickerValues.d.ts +13 -0
- package/dist/components/form/inputText/types.d.ts +2 -0
- package/dist/components/form/select/components/Placeholder.d.ts +4 -0
- package/dist/components/modals/types.d.ts +2 -0
- package/dist/components/table/components/ActionsCell.d.ts +10 -0
- package/dist/components/table/components/SortIndicator.d.ts +6 -0
- package/dist/components/table/components/TableBody.d.ts +14 -0
- package/dist/components/table/components/TableFoot.d.ts +2 -0
- package/dist/components/table/components/TableHeader.d.ts +7 -0
- package/dist/components/table/components/tableBody/TableBodyLoader.d.ts +7 -0
- package/dist/components/table/components/tableBody/styled.d.ts +3 -0
- package/dist/components/tabs/common/Item.d.ts +1 -1
- package/dist/components/tabs/common/types.d.ts +2 -0
- package/dist/components/toast/components/{ToastContent.d.ts → toastContent.d.ts} +0 -0
- package/dist/components/toast/{Toast.d.ts → toast.d.ts} +0 -0
- package/dist/components/tooltip/Tooltip.d.ts +5 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -468
@@ -0,0 +1 @@
|
|
1
|
+
export declare const StyledDatePicker: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
2
|
+
interface ReturnType {
|
3
|
+
date: Date | null;
|
4
|
+
setDate: Dispatch<SetStateAction<Date | null>>;
|
5
|
+
value: string | null;
|
6
|
+
setValue: Dispatch<SetStateAction<string | null>>;
|
7
|
+
}
|
8
|
+
interface Props {
|
9
|
+
initialDate?: Date | null;
|
10
|
+
initialValue?: string | null;
|
11
|
+
}
|
12
|
+
declare const useDatePickerValues: ({ initialDate, initialValue }?: Props) => ReturnType;
|
13
|
+
export default useDatePickerValues;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Dispatch, InputHTMLAttributes, ReactText, SetStateAction } from 'react';
|
2
2
|
import { IconProps } from '../../icon';
|
3
|
+
import { TooltipProps } from '../../tooltip';
|
3
4
|
import { CommonFormTypes } from '../common/types';
|
4
5
|
import { UnitDropdownProps } from './components/UnitDropdown';
|
5
6
|
export declare const inputTypesArray: readonly ["password", "text", "number"];
|
@@ -14,4 +15,5 @@ export interface InputElementProps extends CommonFormTypes, Pick<InputHTMLAttrib
|
|
14
15
|
isPrefilled?: boolean;
|
15
16
|
isTransparent?: boolean;
|
16
17
|
unitDropdownProps?: UnitDropdownProps;
|
18
|
+
tooltip?: TooltipProps;
|
17
19
|
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PlaceholderProps } from 'react-select';
|
2
|
+
import { OptionType } from './Option';
|
3
|
+
declare const Placeholder: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ children, }: PlaceholderProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
|
4
|
+
export default Placeholder;
|
@@ -20,6 +20,8 @@ export interface ModalPropsInterface {
|
|
20
20
|
height?: number;
|
21
21
|
bottomAttachment?: () => ReactNode;
|
22
22
|
topAttachment?: () => ReactNode;
|
23
|
+
portalClassName?: string;
|
24
|
+
hideOverlay?: boolean;
|
23
25
|
className?: string;
|
24
26
|
onAfterOpen?: (obj?: {
|
25
27
|
overlayEl: Element;
|
@@ -0,0 +1,10 @@
|
|
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;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Row, UseTableInstanceProps } from 'react-table';
|
2
|
+
import { TableData } from '../types';
|
3
|
+
interface Props<T extends TableData> {
|
4
|
+
rows: Row<T>[];
|
5
|
+
prepareRow: UseTableInstanceProps<T>['prepareRow'];
|
6
|
+
selectedRowsIds: string[];
|
7
|
+
isLoading: boolean;
|
8
|
+
}
|
9
|
+
declare const TableBody: <T extends TableData>({ isLoading, rows, prepareRow, selectedRowsIds }: Props<T>) => JSX.Element;
|
10
|
+
export interface TableBodyTrProps {
|
11
|
+
isSelected?: boolean;
|
12
|
+
isDisabled?: boolean;
|
13
|
+
}
|
14
|
+
export default TableBody;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { HeaderGroup } from 'react-table';
|
2
|
+
import { TableData } from '../types';
|
3
|
+
interface Props<T extends TableData> {
|
4
|
+
headerGroups: HeaderGroup<T>[];
|
5
|
+
}
|
6
|
+
declare const TableHeader: <T extends TableData>({ headerGroups }: Props<T>) => JSX.Element;
|
7
|
+
export default TableHeader;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ColumnInstance } from 'react-table';
|
2
|
+
import { TableData } from '../../types';
|
3
|
+
interface Props<T extends TableData> {
|
4
|
+
allColumns: ColumnInstance<T>[];
|
5
|
+
}
|
6
|
+
declare const TableBodyLoader: <T extends TableData>({ allColumns }: Props<T>) => JSX.Element;
|
7
|
+
export default TableBodyLoader;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { TableBodyTrStyles } from '../../utils';
|
2
|
+
import { TableBodyTrProps } from '../TableBody';
|
3
|
+
export declare const TableBodyTr: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, import("../tableParts/styled").TrProps & TableBodyTrStyles & TableBodyTrProps, keyof TableBodyTrStyles>;
|
@@ -3,5 +3,5 @@ import { TabsItem } from './types';
|
|
3
3
|
interface Props extends TabsItem {
|
4
4
|
tabRef?: () => RefObject<HTMLDivElement>;
|
5
5
|
}
|
6
|
-
declare const Item: ({ active, handleClick, tabRef, text }: Props) => JSX.Element;
|
6
|
+
declare const Item: ({ active, handleClick, tabRef, text, tooltip }: Props) => JSX.Element;
|
7
7
|
export default Item;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { TooltipProps } from '../../tooltip';
|
2
3
|
export interface TabsProps {
|
3
4
|
className?: string;
|
4
5
|
tabs: TabsItem[];
|
@@ -9,4 +10,5 @@ export interface TabsItem {
|
|
9
10
|
text: string | JSX.Element;
|
10
11
|
active?: boolean;
|
11
12
|
handleClick?: () => void;
|
13
|
+
tooltip?: TooltipProps;
|
12
14
|
}
|
File without changes
|
File without changes
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { BasePlacement } from '@popperjs/core';
|
2
2
|
import { MouseEventHandler, ReactNode } from 'react';
|
3
3
|
import { MessageProps } from './components/Message';
|
4
|
+
export declare const defaultTooltipProps: TooltipProps;
|
4
5
|
export interface TooltipProps extends MessageProps {
|
5
6
|
message: string | JSX.Element;
|
6
7
|
className?: string;
|
@@ -8,6 +9,9 @@ export interface TooltipProps extends MessageProps {
|
|
8
9
|
placement: BasePlacement;
|
9
10
|
onMouseEnter?: MouseEventHandler;
|
10
11
|
onMouseLeave?: MouseEventHandler;
|
12
|
+
showAlways?: boolean;
|
13
|
+
hideAfterSeconds?: number;
|
14
|
+
callbackAfterTimeout?: () => void;
|
11
15
|
}
|
12
|
-
declare const Tooltip: ({ message, placement, className, children, type, onMouseEnter, onMouseLeave, }: TooltipProps) => JSX.Element;
|
16
|
+
declare const Tooltip: ({ message, placement, className, children, type, onMouseEnter, onMouseLeave, showAlways, hideAfterSeconds, callbackAfterTimeout, }: TooltipProps) => JSX.Element;
|
13
17
|
export default Tooltip;
|