@fattureincloud/fic-design-system 0.14.2 → 0.14.3
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/hooks/useTrackRect.d.ts +7 -0
- package/dist/components/accordion/components/accordionIcon/AccordionIcon.d.ts +8 -0
- package/dist/components/accordion/components/accordionIcon/styled.d.ts +2 -0
- package/dist/components/accordion/components/accordionItem/AccordionItem.d.ts +4 -0
- package/dist/components/accordion/components/accordionItem/styled.d.ts +7 -0
- package/dist/components/accordion/utils.d.ts +3 -3
- package/dist/components/chart/styled.d.ts +1 -1
- package/dist/components/form/select/components/Control.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +10 -9
- package/dist/index.esm.js +2 -2
- 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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare type TrackRectReturnType<T extends HTMLElement> = {
|
|
2
|
+
node: T | null;
|
|
3
|
+
rect: DOMRect | null;
|
|
4
|
+
ref: (node: T | null) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const useTrackRect: <T extends HTMLElement>(elementAppearsTimer?: number | undefined) => TrackRectReturnType<T>;
|
|
7
|
+
export default useTrackRect;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AccordionAnimatedIcon } from '../../types';
|
|
3
|
+
interface AccordionIconProps {
|
|
4
|
+
iconProps: AccordionAnimatedIcon;
|
|
5
|
+
open: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const AccordionIcon: ({ iconProps: { animation, changeColor, ...otherIconProps }, open, }: AccordionIconProps) => JSX.Element;
|
|
8
|
+
export default AccordionIcon;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AccordionIconContainerProps, AccordionMappedProps } from '../../types';
|
|
2
|
+
export declare const IconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, AccordionMappedProps & AccordionIconContainerProps, keyof AccordionMappedProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AccordionHeaderProps } from '../../types';
|
|
3
|
+
export declare const Header: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const HeaderContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, AccordionHeaderProps, never>;
|
|
5
|
+
export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
6
|
+
contentHeight: number | undefined;
|
|
7
|
+
}, never>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DefaultTheme } from 'styled-components
|
|
2
|
-
import {
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
|
2
|
+
import { AccordionMappedProps, Animations } from './types';
|
|
3
3
|
interface MapParams {
|
|
4
4
|
animation?: Animations;
|
|
5
5
|
changeColor?: boolean;
|
|
6
6
|
open: boolean;
|
|
7
7
|
theme: DefaultTheme;
|
|
8
8
|
}
|
|
9
|
-
export declare const mapAnimation: ({ animation, changeColor, open, theme }: MapParams) =>
|
|
9
|
+
export declare const mapAnimation: ({ animation, changeColor, open, theme }: MapParams) => AccordionMappedProps;
|
|
10
10
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const ChartTooltip: import("styled-components").StyledComponent<({ message, placement, className, children, type, onMouseEnter, onMouseLeave, showAlways, showAfterSeconds, hideAfterSeconds, callbackAfterTimeout, onOpen, icon, renderButton, }: import("../tooltip").TooltipProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const ChartTooltip: import("styled-components").StyledComponent<({ message, placement, className, children, type, onMouseEnter, onMouseLeave, showAlways, showAfterSeconds, hideAfterSeconds, callbackAfterTimeout, onOpen, icon, renderButton, shouldRender, }: import("../tooltip").TooltipProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ControlProps } from 'react-select';
|
|
3
3
|
import { OptionType } from './Option';
|
|
4
|
-
declare const Control: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ innerProps: { onMouseDown }, children, }: ControlProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
|
|
4
|
+
declare const Control: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ innerProps: { onMouseDown }, innerRef, children, }: ControlProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
|
|
5
5
|
export default Control;
|
|
@@ -4,19 +4,20 @@ import { IconProps } from '../icon';
|
|
|
4
4
|
import { MessageProps } from './components/Message';
|
|
5
5
|
export declare const defaultTooltipProps: TooltipProps;
|
|
6
6
|
export interface TooltipProps extends MessageProps {
|
|
7
|
-
|
|
8
|
-
className?: string;
|
|
7
|
+
callbackAfterTimeout?: () => void;
|
|
9
8
|
children?: ReactNode;
|
|
10
|
-
|
|
9
|
+
className?: string;
|
|
10
|
+
hideAfterSeconds?: number;
|
|
11
|
+
icon?: IconProps;
|
|
12
|
+
message: string | JSX.Element;
|
|
11
13
|
onMouseEnter?: MouseEventHandler;
|
|
12
14
|
onMouseLeave?: MouseEventHandler;
|
|
13
|
-
showAlways?: boolean;
|
|
14
|
-
hideAfterSeconds?: number;
|
|
15
|
-
showAfterSeconds?: number;
|
|
16
|
-
callbackAfterTimeout?: () => void;
|
|
17
15
|
onOpen?: (isOpen: boolean) => void;
|
|
18
|
-
|
|
16
|
+
placement: BasePlacement;
|
|
19
17
|
renderButton?: () => JSX.Element;
|
|
18
|
+
showAfterSeconds?: number;
|
|
19
|
+
showAlways?: boolean;
|
|
20
|
+
shouldRender?: boolean;
|
|
20
21
|
}
|
|
21
|
-
declare const Tooltip: ({ message, placement, className, children, type, onMouseEnter, onMouseLeave, showAlways, showAfterSeconds, hideAfterSeconds, callbackAfterTimeout, onOpen, icon, renderButton, }: TooltipProps) => JSX.Element;
|
|
22
|
+
declare const Tooltip: ({ message, placement, className, children, type, onMouseEnter, onMouseLeave, showAlways, showAfterSeconds, hideAfterSeconds, callbackAfterTimeout, onOpen, icon, renderButton, shouldRender, }: TooltipProps) => JSX.Element;
|
|
22
23
|
export default Tooltip;
|