@fattureincloud/fic-design-system 0.17.7 → 0.18.1
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/common/utils/stringUtils.d.ts +2 -2
- package/dist/components/banner/Banner.d.ts +1 -1
- package/dist/components/buttons/index.d.ts +5 -5
- package/dist/components/chart/areaChart/AreaChart.d.ts +4 -0
- package/dist/components/chart/barChart/BarChart.d.ts +4 -0
- package/dist/components/chart/chart.stories.d.ts +6 -5
- package/dist/components/chart/common/components/ChartEmptyState.d.ts +5 -0
- package/dist/components/chart/common/components/Legend.d.ts +3 -0
- package/dist/components/chart/common/components/Tooltip.d.ts +3 -0
- package/dist/components/chart/common/types.d.ts +25 -0
- package/dist/components/chart/common/useChartData.d.ts +6 -0
- package/dist/components/chart/common/utils.d.ts +4 -0
- package/dist/components/chart/index.d.ts +6 -2
- package/dist/components/chart/lineChart/LineChart.d.ts +4 -0
- package/dist/components/chart/pieChart/PieChart.d.ts +4 -0
- package/dist/components/chart/pieChart/types.d.ts +27 -0
- package/dist/components/circularProgressBar/CircularProgressBar.d.ts +1 -1
- package/dist/components/closableCard/ClosableCard.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts +4 -4
- package/dist/components/editableInput/EditableInput.d.ts +1 -1
- package/dist/components/editableInput/index.d.ts +1 -2
- package/dist/components/form/common/styles.d.ts +1 -1
- package/dist/components/form/common/types.d.ts +1 -1
- package/dist/components/form/fileUploader/FileUploader.d.ts +3 -3
- package/dist/components/form/fileUploader/index.d.ts +4 -4
- package/dist/components/form/inputHelper/index.d.ts +2 -3
- package/dist/components/form/inputText/InputTelephone.d.ts +1 -1
- package/dist/components/form/inputText/components/utils.d.ts +1 -1
- package/dist/components/form/inputText/index.d.ts +7 -7
- package/dist/components/form/inputText/types.d.ts +0 -1
- package/dist/components/form/radio/utils.d.ts +1 -1
- package/dist/components/form/select/index.d.ts +8 -10
- package/dist/components/form/select/types.d.ts +1 -0
- package/dist/components/form/textArea/index.d.ts +2 -3
- package/dist/components/groupedList/index.d.ts +2 -3
- package/dist/components/icon/index.d.ts +3 -4
- package/dist/components/icon/utils.d.ts +1 -1
- package/dist/components/inlineMessage/const.d.ts +2 -0
- package/dist/components/inlineMessageV2/InlineMessageV2.d.ts +15 -0
- package/dist/components/inlineMessageV2/const.d.ts +7 -0
- package/dist/components/inlineMessageV2/index.d.ts +2 -0
- package/dist/components/inlineMessageV2/inlineMessageV2.stories.d.ts +5 -0
- package/dist/components/inlineMessageV2/styled.d.ts +17 -0
- package/dist/components/inlineMessageV2/types.d.ts +11 -0
- package/dist/components/modals/index.d.ts +3 -3
- package/dist/components/newTable/Table.d.ts +1 -1
- package/dist/components/newTable/index.d.ts +1 -1
- package/dist/components/newTable/types.d.ts +1 -1
- package/dist/components/pageEmptySet/index.d.ts +1 -2
- package/dist/components/pageEmptySet/pageEmptySet.d.ts +2 -2
- package/dist/components/stepper/Stepper.d.ts +1 -1
- package/dist/components/stepper/index.d.ts +2 -4
- package/dist/components/switch/index.d.ts +2 -3
- package/dist/components/switch/types.d.ts +3 -2
- package/dist/components/tableV3/customCells/DateCell.d.ts +1 -1
- package/dist/components/tableV3/customCells/ValueWithUnitCell.d.ts +1 -1
- package/dist/components/tableV3/types/columnsTypes.d.ts +1 -0
- package/dist/components/tableV3/types/features/sort.d.ts +4 -2
- package/dist/components/tableV3/utils.d.ts +1 -0
- package/dist/components/tabs/index.d.ts +3 -4
- package/dist/components/tag/Tag.d.ts +2 -1
- package/dist/components/tag/index.d.ts +3 -4
- package/dist/components/themeProvider/index.d.ts +1 -2
- package/dist/index.d.ts +12 -12
- package/dist/index.esm.js +17 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +17 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare type UnitConfig = {
|
|
2
2
|
side?: 'left' | 'right';
|
|
3
3
|
symbol?: string;
|
|
4
|
-
locale?:
|
|
4
|
+
locale?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const withUnit: (number: number | string,
|
|
6
|
+
export declare const withUnit: (number: number | string, unit?: UnitConfig | undefined) => string;
|
|
@@ -8,5 +8,5 @@ import { BannerProps } from './types';
|
|
|
8
8
|
* @param {IconProps} icon Configuration of the left icon
|
|
9
9
|
* @param {string} className To support styled-components customization
|
|
10
10
|
*/
|
|
11
|
-
declare const Banner: ({
|
|
11
|
+
declare const Banner: ({ className, content, icon, onClose, type }: BannerProps) => JSX.Element;
|
|
12
12
|
export default Banner;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
1
|
+
export { default as Button, ButtonProps } from './button/Button';
|
|
2
|
+
export { ButtonPalette, default as buttonPalette } from './button/buttonPalette';
|
|
3
|
+
export { default as IconButton, IconButtonProps } from './iconButton/IconButton';
|
|
4
|
+
export { IconButtonPalette, default as iconButtonPalette } from './iconButton/iconButtonPalette';
|
|
5
|
+
export { buttonColors, buttonTypes, buttonDisableColor, ButtonStyles, buttonParts, buttonSizes, buttonColorsArray, buttonSizesArray, buttonPartsArray, buttonTypesArray, buttonDisableColorArray, } from './button/types';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartProps } from '../common/types';
|
|
3
|
+
declare const AreaChart: ({ data, emptyStateMessage, formatTooltipLabel, formatTooltipValues, height, renderEmptyState, renderXAxis, showLegend, showTooltip, width, }: ChartProps) => JSX.Element;
|
|
4
|
+
export default AreaChart;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartProps } from '../common/types';
|
|
3
|
+
declare const BarChart: ({ data, emptyStateMessage, formatTooltipLabel, formatTooltipValues, height, renderEmptyState, renderXAxis, showLegend, showTooltip, width, }: ChartProps) => JSX.Element;
|
|
4
|
+
export default BarChart;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
declare const
|
|
2
|
+
import { ChartProps } from './common/types';
|
|
3
|
+
export declare const AreaChart: Story<ChartProps>;
|
|
4
|
+
export declare const BarChart: Story<ChartProps>;
|
|
5
|
+
export declare const LineChart: Story<ChartProps>;
|
|
6
|
+
export declare const PieChart: Story<ChartProps>;
|
|
7
|
+
declare const ChartStories: Meta<ChartProps>;
|
|
7
8
|
export default ChartStories;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CommonChartProps } from '../types';
|
|
3
|
+
declare const ChartEmptyState: ({ emptyStateMessage, height, renderEmptyState, width }: CommonChartProps) => JSX.Element;
|
|
4
|
+
export declare const EmptyStateWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export default ChartEmptyState;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Tooltip: (params_0: boolean | undefined, params_1: ((value: number, name: string | number) => [string, string]) | undefined, params_2: ((value: string | number) => string) | undefined) => JSX.Element | null;
|
|
3
|
+
export default Tooltip;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type ChartData = {
|
|
3
|
+
x: string | number;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
export declare type CommonChartProps = {
|
|
7
|
+
height?: number;
|
|
8
|
+
width?: number;
|
|
9
|
+
emptyStateMessage?: string;
|
|
10
|
+
renderEmptyState?: () => JSX.Element;
|
|
11
|
+
showLegend?: boolean;
|
|
12
|
+
showTooltip?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare type RenderAxisProps = [string | number, number];
|
|
15
|
+
export declare type ChartProps = CommonChartProps & {
|
|
16
|
+
data: {
|
|
17
|
+
name: string;
|
|
18
|
+
color?: string;
|
|
19
|
+
points: ChartData[];
|
|
20
|
+
}[];
|
|
21
|
+
formatTooltipLabel?: (value: string | number) => string;
|
|
22
|
+
formatTooltipValues?: (value: number, name: string | number) => [string, string];
|
|
23
|
+
renderXAxis?: (...params: RenderAxisProps) => string;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ChartProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* This hook can be used to transform data into a suitable dataset array for AreaChart, LineChart and BarChart components
|
|
4
|
+
*/
|
|
5
|
+
declare const useChartData: (data: ChartProps['data'], type: 'line' | 'bar') => Record<string, string | number>[];
|
|
6
|
+
export default useChartData;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export {
|
|
1
|
+
export { default as AreaChart } from './areaChart/AreaChart';
|
|
2
|
+
export { default as BarChart } from './barChart/BarChart';
|
|
3
|
+
export { default as LineChart } from './lineChart/LineChart';
|
|
4
|
+
export { default as PieChart } from './pieChart/PieChart';
|
|
5
|
+
export { ChartProps } from './common/types';
|
|
6
|
+
export { PieChartProps } from './pieChart/types';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartProps } from '../common/types';
|
|
3
|
+
declare const LineChart: ({ data, emptyStateMessage, formatTooltipLabel, formatTooltipValues, height, renderEmptyState, renderXAxis, showLegend, showTooltip, width, }: ChartProps) => JSX.Element;
|
|
4
|
+
export default LineChart;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PieChartProps } from './types';
|
|
3
|
+
declare const PieChart: ({ color, data, emptyStateMessage, formatLabel, gap, height, innerRadius, monochrome, outerRadius, renderEmptyState, showLabels, showLegend, showTooltip, width, }: PieChartProps) => JSX.Element;
|
|
4
|
+
export default PieChart;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CommonChartProps } from '../common/types';
|
|
2
|
+
export declare type PieChartData = {
|
|
3
|
+
name: string;
|
|
4
|
+
value: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
};
|
|
7
|
+
declare type FormatLabelProps = {
|
|
8
|
+
cx: number;
|
|
9
|
+
cy: number;
|
|
10
|
+
index: number;
|
|
11
|
+
innerRadius: number;
|
|
12
|
+
midAngle: number;
|
|
13
|
+
outerRadius: number;
|
|
14
|
+
percent: number;
|
|
15
|
+
value: number;
|
|
16
|
+
};
|
|
17
|
+
export declare type PieChartProps = CommonChartProps & {
|
|
18
|
+
color?: string;
|
|
19
|
+
data: PieChartData[];
|
|
20
|
+
formatLabel?: (props: FormatLabelProps) => string;
|
|
21
|
+
gap?: number;
|
|
22
|
+
innerRadius?: number;
|
|
23
|
+
monochrome?: boolean;
|
|
24
|
+
outerRadius?: number;
|
|
25
|
+
showLabels?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -6,5 +6,5 @@ import { CircularProgressBarProps } from './index';
|
|
|
6
6
|
* @param {CircularProgressBarType} type Type that define the color
|
|
7
7
|
* @param {string} subtitle Define the text below the percentage (string or custom)
|
|
8
8
|
*/
|
|
9
|
-
declare const CircularProgressBar: ({ percentage,
|
|
9
|
+
declare const CircularProgressBar: ({ percentage, subtitle, type }: CircularProgressBarProps) => JSX.Element;
|
|
10
10
|
export default CircularProgressBar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ClosableCardProps } from './types';
|
|
3
|
-
declare const ClosableCard: ({
|
|
3
|
+
declare const ClosableCard: ({ className, onClose, renderSubtitleElement, subtitle, title, }: ClosableCardProps) => ReactElement;
|
|
4
4
|
export default ClosableCard;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
export interface DrawerProps {
|
|
3
|
-
show: boolean;
|
|
4
|
-
title?: string;
|
|
5
|
-
renderHeader?: () => JSX.Element;
|
|
6
|
-
renderFooter?: () => JSX.Element;
|
|
7
3
|
actionClose: () => void;
|
|
8
4
|
allowOutsideClickClose?: boolean;
|
|
9
5
|
children?: ReactNode;
|
|
10
6
|
fullscreen?: boolean;
|
|
11
7
|
onFullscreen?: (fullscreen: boolean) => void;
|
|
8
|
+
renderFooter?: () => JSX.Element;
|
|
9
|
+
renderHeader?: () => JSX.Element;
|
|
10
|
+
show: boolean;
|
|
12
11
|
showTooltip?: boolean;
|
|
12
|
+
title?: string;
|
|
13
13
|
}
|
|
14
14
|
declare const Drawer: React.FC<DrawerProps>;
|
|
15
15
|
export default Drawer;
|
|
@@ -9,5 +9,5 @@ export interface EditableInputProps {
|
|
|
9
9
|
onClose?: () => void;
|
|
10
10
|
maxContentLength?: number;
|
|
11
11
|
}
|
|
12
|
-
declare const EditableInput: ({
|
|
12
|
+
declare const EditableInput: ({ content, hover, maxContentLength, onChange, onClose, onOpen, rowId, unitSymbol, }: EditableInputProps) => JSX.Element;
|
|
13
13
|
export default EditableInput;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { EditableInput };
|
|
1
|
+
export { default as EditableInput } from './EditableInput';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { colorsPalette } from '../../../common/types
|
|
1
|
+
import { colorsPalette } from '../../../common/types';
|
|
2
2
|
import { paletteColor } from '../../../styles/types';
|
|
3
3
|
import { CommonInputParts, statusType } from './types';
|
|
4
4
|
export interface BoxedInputWrapperProps extends colorsPalette {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { colorsPalette } from '../../../common/types
|
|
1
|
+
import { colorsPalette } from '../../../common/types';
|
|
2
2
|
import { paletteColor } from '../../../styles/types';
|
|
3
3
|
import { InputHelperProps } from '../inputHelper';
|
|
4
4
|
export declare const inputSizeArray: readonly ["large", "medium"];
|
|
@@ -5,13 +5,13 @@ export declare type fileUploaderOnDrop = (acceptedFiles: File[], rejectedFiles:
|
|
|
5
5
|
export interface FileUploaderProps {
|
|
6
6
|
allowedTypes: FileType[];
|
|
7
7
|
className?: string;
|
|
8
|
+
customPalette?: CustomPalette;
|
|
9
|
+
fixedHeight?: boolean;
|
|
8
10
|
maxFileSize?: number;
|
|
9
11
|
multiple?: boolean;
|
|
10
12
|
onDrop: fileUploaderOnDrop;
|
|
11
13
|
size?: FileUploaderSize;
|
|
12
14
|
status?: FileUploaderStatus;
|
|
13
|
-
customPalette?: CustomPalette;
|
|
14
|
-
fixedHeight?: boolean;
|
|
15
15
|
}
|
|
16
|
-
declare const FileUploader: ({ allowedTypes, customPalette,
|
|
16
|
+
declare const FileUploader: ({ allowedTypes, className, customPalette, fixedHeight, maxFileSize, multiple, onDrop, size, status, }: FileUploaderProps) => JSX.Element;
|
|
17
17
|
export default FileUploader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
1
|
+
export { default as FileUploader, fileUploaderOnDrop, FileUploaderProps } from './FileUploader';
|
|
2
|
+
export { default as fileUploaderPalette, FileUploaderPalette } from './fileUploaderPalette';
|
|
3
|
+
export { CustomPalette, CustomPaletteParts, FileType, FileTypesMap, FileUploaderSize, FileUploaderStatus, } from './types';
|
|
4
|
+
export { FileRejection } from 'react-dropzone';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { InputHelper, InputHelperProps, inputHelperPalette, InputHelperPalette };
|
|
1
|
+
export { default as InputHelper, InputHelperProps } from './InputHelper';
|
|
2
|
+
export { default as inputHelperPalette, InputHelperPalette } from './inputHelperPalette';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputTelephoneProps } from './types';
|
|
3
|
-
declare const InputTelephone: ({ className, disabled, helper,
|
|
3
|
+
declare const InputTelephone: ({ className, disabled, helper, label, phoneNumberLabel, placeholder, required, setValue, value, }: InputTelephoneProps) => JSX.Element;
|
|
4
4
|
export default InputTelephone;
|
|
@@ -3,6 +3,6 @@ import { InputTextStyles, InputTextWrapperProps } from './InputElement';
|
|
|
3
3
|
interface GetInputTextParams extends InputTextWrapperProps {
|
|
4
4
|
theme: DefaultTheme;
|
|
5
5
|
}
|
|
6
|
-
export declare const getInputTextStyles: ({
|
|
6
|
+
export declare const getInputTextStyles: ({ disabled, status, theme }: GetInputTextParams) => InputTextStyles;
|
|
7
7
|
export declare const clearNumber: (s: string) => string;
|
|
8
8
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
1
|
+
export { UnitDropdownProps } from './components/UnitDropdown';
|
|
2
|
+
export { default as InputCode } from './InputCode';
|
|
3
|
+
export { default as InputTelephone } from './InputTelephone';
|
|
4
|
+
export { default as InputText } from './InputText';
|
|
5
|
+
export { default as inputTextPalette, InputTextPalette } from './inputTextPalette';
|
|
6
|
+
export { InputCodeProps, InputTelephoneProps, InputTextProps } from './types';
|
|
7
|
+
export { Unit } from './components/unitDropdown/UnitDropdownTrigger';
|
|
@@ -5,7 +5,6 @@ import { CommonFormTypes } from '../common/types';
|
|
|
5
5
|
import { LabelProps } from '../label';
|
|
6
6
|
import { UnitDropdownProps } from './components/UnitDropdown';
|
|
7
7
|
export declare const inputTypesArray: readonly ["password", "text", "number", "code", "telephone"];
|
|
8
|
-
export declare type inputTypes = (typeof inputTypesArray)[number];
|
|
9
8
|
declare type HTMLInputProps = Pick<InputHTMLAttributes<HTMLInputElement>, 'autoFocus' | 'className' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyPress' | 'onKeyUp' | 'required' | 'style' | 'readOnly'>;
|
|
10
9
|
export declare type InputElementProps = CommonFormTypes & HTMLInputProps & {
|
|
11
10
|
actionIcon?: IconProps;
|
|
@@ -3,6 +3,6 @@ import { RadioInputProps, RadioStatus, RadioStyles } from './types';
|
|
|
3
3
|
interface InputMapParams extends RadioInputProps {
|
|
4
4
|
theme: DefaultTheme;
|
|
5
5
|
}
|
|
6
|
-
export declare const getInputStyle: ({
|
|
6
|
+
export declare const getInputStyle: ({ disabled, hasError, large, theme, value }: InputMapParams) => RadioStyles;
|
|
7
7
|
export declare const convertToStatus: (value: boolean | RadioStatus) => RadioStatus;
|
|
8
8
|
export {};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare type SelectComponentsType<O extends OptionType = OptionType, isMulti extends boolean = false> = Required<SelectProps<O, isMulti>['components']>;
|
|
10
|
-
export { Select, CreatableSelect, AsyncSelect, AsyncCreatableSelect, OptionType, SelectProps, AsyncSelectProps, AsyncCreatableSelectProps, CreatableSelectProps, SelectPalette, selectPalette, SelectActionsType, useSelectValue, useSelectMultiValues, SelectComponentsType, useSelectSimpleValue, simpleValue, isSimpleValue, };
|
|
1
|
+
export { SelectActionsType } from './components/FooterActions';
|
|
2
|
+
export { OptionType } from './components/Option';
|
|
3
|
+
export { default as useSelectSimpleValue } from './hooks/useSelectSimpleValue';
|
|
4
|
+
export { useSelectMultiValues, useSelectValue } from './hooks/useSelectValue';
|
|
5
|
+
export { AsyncCreatableSelect, AsyncSelect, CreatableSelect, Select } from './Select';
|
|
6
|
+
export { default as selectPalette, SelectPalette } from './selectPalette';
|
|
7
|
+
export { isSimpleValue } from './utils';
|
|
8
|
+
export { AsyncCreatableSelectProps, AsyncSelectProps, CreatableSelectProps, SelectProps, simpleValue, SelectComponentsType, } from './types';
|
|
@@ -16,3 +16,4 @@ export declare type CreatableSelectProps<O extends OptionType = OptionType, IsMu
|
|
|
16
16
|
export declare type AsyncSelectProps<O extends OptionType = OptionType, IsMulti extends boolean = false> = SelectProps<O, IsMulti, AsyncProps<O, IsMulti>>;
|
|
17
17
|
export declare type AsyncCreatableSelectProps<O extends OptionType = OptionType, IsMulti extends boolean = false> = SelectProps<O, IsMulti, AsyncCreatableProps<O, IsMulti>>;
|
|
18
18
|
export declare type simpleValue = string | number | null | undefined;
|
|
19
|
+
export declare type SelectComponentsType<O extends OptionType = OptionType, isMulti extends boolean = false> = Required<SelectProps<O, isMulti>['components']>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { TextArea, TextAreaProps, TextAreaPalette, textAreaPalette };
|
|
1
|
+
export { default as TextArea, TextAreaProps } from './TextArea';
|
|
2
|
+
export { default as textAreaPalette, TextAreaPalette } from './textAreaPalette';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { GroupedList, ItemType, GroupType };
|
|
1
|
+
export { default as GroupedList } from './groupedList';
|
|
2
|
+
export { GroupType, ItemType, MouseBlockedProps } from './types';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { Icon, IconProps, IconPalette, iconPalette, IconBackground, iconBackgroundPalette, IconBackgroundPalette, iconColors, };
|
|
1
|
+
export { IconBackground, IconBackgroundPalette, iconBackgroundPalette } from './components/iconBackground';
|
|
2
|
+
export { default as Icon, IconProps } from './Icon';
|
|
3
|
+
export { iconColors, IconPalette, default as iconPalette } from './iconPalette';
|
|
@@ -5,5 +5,5 @@ interface GetIconStylesParams extends IconProps {
|
|
|
5
5
|
theme: DefaultTheme;
|
|
6
6
|
}
|
|
7
7
|
export declare const isIconPaletteKey: (key: string, theme: DefaultTheme) => key is "black" | "white" | "grey" | "blue" | "indigo" | "yellow" | "orange" | "red" | "green" | "fuchsia" | "pink" | "cyan" | "primary";
|
|
8
|
-
export declare const getIconStyles: ({
|
|
8
|
+
export declare const getIconStyles: ({ color, theme }: GetIconStylesParams) => IconColorPalette;
|
|
9
9
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InlineMessageV2Props } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Component Props:
|
|
5
|
+
* @param actionText optional, button text
|
|
6
|
+
* @param {Exclude<CardColor, CardColor.TRANSPARENT>} color optional, card color
|
|
7
|
+
* @param {IconProps} icon optional, configuration of the left icon
|
|
8
|
+
* @param {() => void} onAction action on button click
|
|
9
|
+
* @param {() => void} onClose action on close icon click
|
|
10
|
+
* @param {string} text inline message text
|
|
11
|
+
* @param {string} title inline message title
|
|
12
|
+
* @param other other card props
|
|
13
|
+
*/
|
|
14
|
+
declare const InlineMessageV2: ({ actionText, color, icon, onAction, onClose, text, title, ...other }: InlineMessageV2Props) => JSX.Element;
|
|
15
|
+
export default InlineMessageV2;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const INLINE_MESSAGE_V2_DEFAULT_ICONS: {
|
|
2
|
+
grey: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
3
|
+
red: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
4
|
+
yellow: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
5
|
+
green: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
6
|
+
blue: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
7
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardColor } from '../card';
|
|
3
|
+
export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const CustomFlexColumn: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
5
|
+
color: Exclude<CardColor, CardColor.TRANSPARENT>;
|
|
6
|
+
}, never>;
|
|
7
|
+
export declare const CustomButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../buttons").ButtonProps & import("react").RefAttributes<HTMLDivElement | HTMLAnchorElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const CustomHeadLine: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
9
|
+
bold?: boolean | undefined;
|
|
10
|
+
centered?: boolean | undefined;
|
|
11
|
+
children: import("react").ReactNode | import("react").ReactNode[];
|
|
12
|
+
clamp?: number | undefined;
|
|
13
|
+
className?: string | undefined;
|
|
14
|
+
color?: string | undefined;
|
|
15
|
+
type?: "date" | "currency" | undefined;
|
|
16
|
+
style?: import("react").CSSProperties | undefined;
|
|
17
|
+
} & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
import { CardColor, CardProps } from '../card';
|
|
3
|
+
export interface InlineMessageV2Props extends Omit<CardProps, 'children' | 'type'> {
|
|
4
|
+
actionText?: string;
|
|
5
|
+
color?: Exclude<CardColor, CardColor.TRANSPARENT>;
|
|
6
|
+
icon?: IconProp;
|
|
7
|
+
onAction?: () => void;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
text: string;
|
|
10
|
+
title: string;
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Modal, ModalSearchable };
|
|
1
|
+
export { default as ModalSearchable } from './components/ModalSearchable';
|
|
2
|
+
export { Modal } from './modals';
|
|
4
3
|
export { ModalBody } from './modalStyled';
|
|
4
|
+
export { ConfirmationModal } from './confirmationModal';
|
|
5
5
|
export * from './stepModal';
|
|
@@ -30,5 +30,5 @@ import { TableProps } from './types';
|
|
|
30
30
|
* @param {number} actionColumnWidth used to determine the width of the action column
|
|
31
31
|
* @param {function} isRowHighlighted used to underline table rows
|
|
32
32
|
*/
|
|
33
|
-
declare const Table: <T>({
|
|
33
|
+
declare const Table: <T>({ actionColumnWidth, allSelectedCTA, bodyHeight, bulkActions, columns, data, disableScrollX, enableSettings, forceHideSettings, headerSize, isLoading, isRowDisabled, isRowHighlighted, isSelectable, isTogglesSortable, listSize, noPagination, notRemovableColumns, onChangeTableSettings, onPaginationChange, onRowClick, onRowSelection, onSort, onTogglesChange, pageSize: pageLength, paginationNextText, paginationPreviousText, preSettedTableSettings, renderBulkActions, renderEmptyState, resetPageIndex, rowActions, rowHighlightColor, rowHighlightHideBorderBottom, rowSelection, rowSize, settingsDropdownConfig, sortDescFirst, sortable, toggles, totalPages, uniqueId, }: TableProps<T>) => JSX.Element;
|
|
34
34
|
export default Table;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as NewTable } from './Table';
|
|
2
|
-
export { ColumnDefType, ColumnsType, CellProps, BulkAction, RowActions, RowAction } from './types';
|
|
2
|
+
export { ColumnDefType, ColumnsType, CellProps, BulkAction, RowActions as NewRowActions, RowAction, RowSize, OnSort as NewTableOnSort, AllSelectedCTA, SettingsDropdownConfig, onChangeTableSettings, ActionType, CustomSorted, TableProps as NewTableProps, PreSettedTableSettings, ActionColumnDef, AccessorColumnDef, AdditionalColumnDef, DropdownAction, PrimaryAction, BasicCustomCell, CustomCellProps, } from './types';
|
|
@@ -62,7 +62,7 @@ export interface PreSettedTableSettings {
|
|
|
62
62
|
dimensionRow?: number;
|
|
63
63
|
notVisibleColumns?: string[];
|
|
64
64
|
}
|
|
65
|
-
interface SettingsDropdownConfig {
|
|
65
|
+
export interface SettingsDropdownConfig {
|
|
66
66
|
settingsTooltip?: TooltipProps;
|
|
67
67
|
displaySettingsLabel?: string;
|
|
68
68
|
visibleColumnsLabel?: string;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { PageEmptySet };
|
|
1
|
+
export { default as PageEmptySet } from './pageEmptySet';
|
|
@@ -10,5 +10,5 @@ interface Props {
|
|
|
10
10
|
action: () => void;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
export
|
|
13
|
+
declare const PageEmptySet: ({ action, icon, text, title }: Props) => React.JSX.Element;
|
|
14
|
+
export default PageEmptySet;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import stepperPalette from './stepperPalette';
|
|
4
|
-
export { Stepper, StepperProps, stepperPalette, StepperPalette };
|
|
1
|
+
export { default as Stepper, StepperProps } from './Stepper';
|
|
2
|
+
export { default as stepperPalette, StepperPalette } from './stepperPalette';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Switch, SwitchProps };
|
|
1
|
+
export { default as Switch } from './Switch';
|
|
2
|
+
export { SwitchProps } from './types';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
declare type SwitchColors = 'blue' | 'green';
|
|
2
2
|
export interface SwitchProps {
|
|
3
3
|
checked: boolean;
|
|
4
4
|
onChange: (e: boolean) => void;
|
|
5
|
-
color?:
|
|
5
|
+
color?: SwitchColors;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
}
|
|
8
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import { ParsableDateTime, ValidFormat } from '@fattureincloud/madbit-js-dates';
|
|
|
3
3
|
declare type Props = {
|
|
4
4
|
date: ParsableDateTime;
|
|
5
5
|
format: ValidFormat;
|
|
6
|
-
locale
|
|
6
|
+
locale?: 'en' | 'es' | 'it';
|
|
7
7
|
};
|
|
8
8
|
declare const DateCell: (props: Props) => JSX.Element;
|
|
9
9
|
export default DateCell;
|
|
@@ -3,7 +3,7 @@ import { UnitConfig } from '../../../common/utils/stringUtils';
|
|
|
3
3
|
import { CellValue } from '../types';
|
|
4
4
|
declare type Props = {
|
|
5
5
|
value: CellValue;
|
|
6
|
-
unit
|
|
6
|
+
unit?: UnitConfig;
|
|
7
7
|
};
|
|
8
8
|
declare const ValueWithUnitCell: ({ unit, value }: Props) => JSX.Element;
|
|
9
9
|
export default ValueWithUnitCell;
|
|
@@ -20,6 +20,7 @@ export declare type BaseColumnDef<T> = IdentifiedColumnDef<T> & {
|
|
|
20
20
|
minWidth?: number;
|
|
21
21
|
fixedWidth?: number;
|
|
22
22
|
multiline?: boolean;
|
|
23
|
+
customSortKey?: string;
|
|
23
24
|
};
|
|
24
25
|
export declare type EditableCellsColumn<T> = {
|
|
25
26
|
inputProps?: Omit<InputTextProps, 'value' | 'setValue'>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { SortDirection } from '@tanstack/react-table';
|
|
2
|
-
export declare type
|
|
2
|
+
export declare type SortParams<T> = {
|
|
3
3
|
sortBy: keyof T;
|
|
4
4
|
direction: false | SortDirection;
|
|
5
|
-
|
|
5
|
+
customSortKey?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type OnSort<T> = (sortParams: SortParams<T>) => void;
|
|
6
8
|
export declare type SortableTable<T> = {
|
|
7
9
|
sortable: true;
|
|
8
10
|
sortDescFirst?: boolean;
|
|
@@ -26,4 +26,5 @@ declare type MappedColumnWidth = {
|
|
|
26
26
|
maxWidth: string;
|
|
27
27
|
};
|
|
28
28
|
export declare const mapColumnWidth: ({ fixedWidth, maxWidth, minWidth }: MapColumnWidthParams) => MappedColumnWidth;
|
|
29
|
+
export declare const fillRows: <T>(columns: ColumnsType<T>[], size: number, uniqueId: keyof T) => T[];
|
|
29
30
|
export {};
|