@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.
@@ -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>({ isDisabled, clearValue, }: IndicatorProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
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>({ innerProps: { onClick }, data: { label, icon }, isSelected, }: Props<O, IsMulti>) => JSX.Element;
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,3 @@
1
+ import { CardColor } from '../card';
2
+ import { IconProps } from '../icon';
3
+ export declare const INLINE_MESSAGE_V2_DEFAULT_ICONS: Record<CardColor, IconProps>;
@@ -0,0 +1,2 @@
1
+ export { default as InlineMessageV2 } from './InlineMessageV2';
2
+ export * from './types';
@@ -0,0 +1,5 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { InlineMessageV2Props } from './types';
3
+ export declare const Standard: Story<InlineMessageV2Props>;
4
+ declare const InlineMessageV2Stories: Meta<InlineMessageV2Props>;
5
+ export default InlineMessageV2Stories;
@@ -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
+ };
@@ -2,6 +2,7 @@ import { MappedProps } from '../../../utils';
2
2
  declare type ActionsTdProps = {
3
3
  actionColumnWidth: number;
4
4
  isDisabled: boolean;
5
+ isLoading: boolean;
5
6
  isRowHighlighted?: boolean;
6
7
  mouseHover: boolean;
7
8
  rowHighlightColor?: string;
@@ -1,6 +1,7 @@
1
1
  import { MappedProps } from '../../../utils';
2
2
  declare type CheckboxTdProps = {
3
3
  isDisabled: boolean;
4
+ isLoading: boolean;
4
5
  isRowHighlighted?: boolean;
5
6
  mouseHover: boolean;
6
7
  rowHighlightColor?: string;
@@ -0,0 +1 @@
1
+ export declare const LoaderWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -3,6 +3,7 @@ import { MappedProps } from '../../utils';
3
3
  declare type TRowProps = {
4
4
  hasClick: boolean;
5
5
  isDisabled: boolean;
6
+ isLoading: boolean;
6
7
  isRowHighlighted?: boolean;
7
8
  mouseHover: boolean;
8
9
  rowHighlightColor?: string;
@@ -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;
@@ -20,4 +20,5 @@ export interface TooltipProps {
20
20
  shouldRender?: boolean;
21
21
  style?: React.CSSProperties;
22
22
  type?: tooltipTypes;
23
+ usePortal?: boolean;
23
24
  }
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';