first commit

This commit is contained in:
2024-01-19 11:09:11 +01:00
commit b18af7a943
29473 changed files with 4500547 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
import { IconLookup } from '@fortawesome/fontawesome-svg-core';
export declare const faWarnIfIconDefinitionMissing: (iconSpec: IconLookup) => never;

View File

@@ -0,0 +1 @@
export declare const faWarnIfIconSpecMissing: () => never;

View File

@@ -0,0 +1,4 @@
/**
* Warns if parent component not existing.
*/
export declare const faWarnIfParentNotExist: (parent: any, parentName: string, childName: string) => void;

View File

@@ -0,0 +1,22 @@
import { FaSymbol, FlipProp, IconProp, PullProp, RotateProp, SizeProp, Styles, Transform } from '@fortawesome/fontawesome-svg-core';
/**
* Fontawesome props.
*/
export interface FaProps {
mask?: IconProp;
className?: string;
animation?: AnimationProp;
border?: boolean;
fixedWidth?: boolean;
counter?: boolean;
inverse?: boolean;
flip?: FlipProp;
size?: SizeProp;
pull?: PullProp;
rotate?: RotateProp;
transform?: string | Transform;
symbol?: FaSymbol;
style?: Styles;
stackItemSize?: '1x' | '2x';
}
export type AnimationProp = 'beat' | 'fade' | 'beat-fade' | 'bounce' | 'flip' | 'shake' | 'spin' | 'spin-reverse' | 'spin-pulse' | 'spin-pulse-reverse';

View File

@@ -0,0 +1,6 @@
import { FaProps } from '../models/props.model';
/**
* Fontawesome class list.
* Returns classes array by props.
*/
export declare const faClassList: (props: FaProps) => string[];

View File

@@ -0,0 +1,5 @@
import { IconLookup, IconProp } from '@fortawesome/fontawesome-svg-core';
/**
* Returns if is IconLookup or not.
*/
export declare const isIconLookup: (i: IconProp) => i is IconLookup;

View File

@@ -0,0 +1,5 @@
import { IconDefinition, IconLookup, IconPrefix, IconProp } from '@fortawesome/fontawesome-svg-core';
/**
* Normalizing icon spec.
*/
export declare const faNormalizeIconSpec: (iconSpec: IconProp | IconDefinition, defaultPrefix: IconPrefix) => IconLookup | IconDefinition;