Latest updates from IceHrmPro

This commit is contained in:
Thilina Pituwala
2020-05-20 18:47:29 +02:00
parent 60c92d7935
commit 7453a58aad
18012 changed files with 2089245 additions and 10173 deletions

View File

@@ -0,0 +1,16 @@
import * as React from 'react';
import { IconDefinition } from '@ant-design/icons-svg/lib/types';
import { IconBaseProps } from './Icon';
import { getTwoToneColor, TwoToneColor, setTwoToneColor } from './twoTonePrimaryColor';
export interface AntdIconProps extends IconBaseProps {
twoToneColor?: TwoToneColor;
}
export interface IconComponentProps extends AntdIconProps {
icon: IconDefinition;
}
interface IconBaseComponent<Props> extends React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLSpanElement>> {
getTwoToneColor: typeof getTwoToneColor;
setTwoToneColor: typeof setTwoToneColor;
}
declare const Icon: IconBaseComponent<IconComponentProps>;
export default Icon;

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,26 @@
import * as React from 'react';
import { IconDefinition } from '@ant-design/icons-svg/lib/types';
export interface IconProps {
icon: IconDefinition;
className?: string;
onClick?: React.MouseEventHandler<SVGSVGElement>;
style?: React.CSSProperties;
primaryColor?: string;
secondaryColor?: string;
focusable?: string;
}
export interface TwoToneColorPaletteSetter {
primaryColor: string;
secondaryColor?: string;
}
export interface TwoToneColorPalette extends TwoToneColorPaletteSetter {
calculated?: boolean;
}
declare function setTwoToneColors({ primaryColor, secondaryColor, }: TwoToneColorPaletteSetter): void;
declare function getTwoToneColors(): TwoToneColorPalette;
interface IconBaseComponent<P> extends React.FC<P> {
getTwoToneColors: typeof getTwoToneColors;
setTwoToneColors: typeof setTwoToneColors;
}
declare const IconBase: IconBaseComponent<IconProps>;
export default IconBase;

View File

@@ -0,0 +1,12 @@
import * as React from 'react';
import { IconBaseProps } from './Icon';
export interface CustomIconOptions {
scriptUrl?: string;
extraCommonProps?: {
[key: string]: any;
};
}
export interface IconFontProps extends IconBaseProps {
type: string;
}
export default function create(options?: CustomIconOptions): React.SFC<IconFontProps>;

View File

@@ -0,0 +1,3 @@
export declare type TwoToneColor = string | [string, string];
export declare function setTwoToneColor(twoToneColor: TwoToneColor): void;
export declare function getTwoToneColor(): TwoToneColor;