@fattureincloud/fic-design-system 0.18.2 → 0.19.0
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/components/form/select/components/ClearIndicator.d.ts +1 -1
- package/dist/components/form/select/components/Option.d.ts +1 -1
- package/dist/components/inlineMessageV2/InlineMessageV2.d.ts +14 -0
- package/dist/components/inlineMessageV2/const.d.ts +3 -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 +5 -0
- package/dist/components/inlineMessageV2/types.d.ts +11 -0
- package/dist/components/tableV3/components/cell/actionsCell/styled.d.ts +1 -0
- package/dist/components/tableV3/components/cell/checkboxCell/styled.d.ts +1 -0
- package/dist/components/tableV3/components/cell/loadingCell/styled.d.ts +1 -0
- package/dist/components/tableV3/components/row/styled.d.ts +1 -0
- package/dist/components/tableV3/components/settings/settingsDropdownContent/DraggableColumn.d.ts +3 -2
- package/dist/components/tableV3/utils.d.ts +2 -1
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/types.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +7 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IndicatorProps } from 'react-select/src/components/indicators';
|
|
3
3
|
import { OptionType } from './Option';
|
|
4
|
-
declare const ClearIndicator: <O extends OptionType = OptionType, IsMulti extends boolean = false>({
|
|
4
|
+
declare const ClearIndicator: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ clearValue, isDisabled, }: IndicatorProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
|
|
5
5
|
export default ClearIndicator;
|
|
@@ -10,5 +10,5 @@ export interface OptionType extends OptionTypeBase {
|
|
|
10
10
|
interface Props<O extends OptionType = OptionType, IsMulti extends boolean = false> extends Omit<OptionProps<O, IsMulti>, 'data'> {
|
|
11
11
|
data: OptionType;
|
|
12
12
|
}
|
|
13
|
-
declare const Option: <O extends OptionType = OptionType, IsMulti extends boolean = false>({
|
|
13
|
+
declare const Option: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ data: { icon, label }, innerProps: { onClick }, isSelected, }: Props<O, IsMulti>) => JSX.Element;
|
|
14
14
|
export default Option;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InlineMessageV2Props } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Component Props:
|
|
5
|
+
* @param {ButtonProps} [action] - button props to create an action
|
|
6
|
+
* @param {CardColor} [color] - card color
|
|
7
|
+
* @param {string} [content] - content to render in the card
|
|
8
|
+
* @param {IconProps} [icon] - icon props to override the default icon
|
|
9
|
+
* @param {function} [onClose] - if provided, will render a close icon that calls this function on click
|
|
10
|
+
* @param {string} title - inline message title
|
|
11
|
+
* @param other - other card props
|
|
12
|
+
*/
|
|
13
|
+
declare const InlineMessageV2: ({ action, color, content, icon, onClose, title, ...other }: InlineMessageV2Props) => JSX.Element;
|
|
14
|
+
export default InlineMessageV2;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const InlineMessageCard: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("../card/types").StyledCardProps & {
|
|
3
|
+
children: import("react").ReactNode | import("react").ReactNode[];
|
|
4
|
+
} & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const CustomButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../buttons").ButtonProps & import("react").RefAttributes<HTMLDivElement | HTMLAnchorElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps } from '../buttons';
|
|
3
|
+
import { CardProps } from '../card';
|
|
4
|
+
import { IconProps } from '../icon';
|
|
5
|
+
export declare type InlineMessageV2Props = Omit<CardProps, 'children'> & {
|
|
6
|
+
action?: ButtonProps;
|
|
7
|
+
content?: string | JSX.Element;
|
|
8
|
+
icon?: IconProps | false;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
title: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LoaderWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
package/dist/components/tableV3/components/settings/settingsDropdownContent/DraggableColumn.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Column } from '@tanstack/react-table';
|
|
1
|
+
import { Column, Header } from '@tanstack/react-table';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare type Props<T> = {
|
|
4
4
|
column: Column<T, unknown>;
|
|
5
5
|
dragging: boolean;
|
|
6
|
+
header: Header<T, unknown>;
|
|
6
7
|
onDragEnd: React.HTMLProps<HTMLDivElement>['onDragEnd'];
|
|
7
8
|
onDragOver: React.HTMLProps<HTMLDivElement>['onDragOver'];
|
|
8
9
|
onDragStart: (event: React.DragEvent<HTMLDivElement>, parent: HTMLDivElement) => void;
|
|
9
10
|
};
|
|
10
|
-
declare const DraggableColumn: <T>({ column, dragging, onDragEnd, onDragOver, onDragStart }: Props<T>) => JSX.Element;
|
|
11
|
+
declare const DraggableColumn: <T>({ column, dragging, header, onDragEnd, onDragOver, onDragStart, }: Props<T>) => JSX.Element;
|
|
11
12
|
export default DraggableColumn;
|
|
@@ -4,6 +4,7 @@ import { ColumnsType } from './types';
|
|
|
4
4
|
export declare const getNextSortingDirection: (direction?: false | SortDirection | undefined) => false | SortDirection;
|
|
5
5
|
declare type MapBackgrounProps = {
|
|
6
6
|
isDisabled: boolean;
|
|
7
|
+
isLoading: boolean;
|
|
7
8
|
isRowHighlighted?: boolean;
|
|
8
9
|
rowHighlightColor?: string;
|
|
9
10
|
selected: boolean;
|
|
@@ -13,7 +14,7 @@ export declare type MappedProps = {
|
|
|
13
14
|
backgroundColor: string;
|
|
14
15
|
backgroundHover: string;
|
|
15
16
|
};
|
|
16
|
-
export declare const mapBackground: ({ isDisabled, isRowHighlighted, rowHighlightColor, selected, theme, }: MapBackgrounProps) => MappedProps;
|
|
17
|
+
export declare const mapBackground: ({ isDisabled, isLoading, isRowHighlighted, rowHighlightColor, selected, theme, }: MapBackgrounProps) => MappedProps;
|
|
17
18
|
export declare const getColumnId: <T>(column: ColumnsType<T>) => string;
|
|
18
19
|
declare type MapColumnWidthParams = {
|
|
19
20
|
minWidth?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TooltipProps } from './types';
|
|
3
3
|
export declare const defaultTooltipProps: TooltipProps;
|
|
4
|
-
declare const Tooltip: ({ callbackAfterTimeout, children, className, hideAfterSeconds, icon, message, onMouseEnter, onMouseLeave, onOpen, placement, positionStrategy, renderButton, shouldRender, showAfterSeconds, showAlways, style, type, }: TooltipProps) => JSX.Element;
|
|
4
|
+
declare const Tooltip: ({ callbackAfterTimeout, children, className, hideAfterSeconds, icon, message, onMouseEnter, onMouseLeave, onOpen, placement, positionStrategy, renderButton, shouldRender, showAfterSeconds, showAlways, style, type, usePortal, }: TooltipProps) => JSX.Element;
|
|
5
5
|
export default Tooltip;
|
package/dist/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export { ShortcutTip, ShortcutTipProps, Tip, TipPalette, TipProps, TipType } fro
|
|
|
53
53
|
export { Toast, ToastPalette, toastPalette, ToastProps, ToastType } from './components/toast';
|
|
54
54
|
export { Tooltip, TooltipPalette, TooltipProps } from './components/tooltip';
|
|
55
55
|
export * from './components/verticalTabs';
|
|
56
|
+
export * from './components/inlineMessageV2';
|
|
56
57
|
export { autocompleteYellow } from './styles/defaultPalette/colors/others';
|
|
57
58
|
export { Theme } from './styles/theme';
|
|
58
59
|
export { Palette, paletteColor, BwPalette, ColorsPalette, bwColors, bwColor, color, colors } from './styles/types';
|