@uifabric/foundation
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -5,7 +5,8 @@ import * as React from 'react'; | ||
} | ||
export declare type IStyleFunction<TTheme, TStylesProps extends IThemeProps<TTheme>, TStyles> = (props: TStylesProps) => TStyles; | ||
export declare type IStyledProps<TProps, TTheme> = TProps & IThemeProps<TTheme>; | ||
export declare type IStyleFunction<TStylesProps extends IThemeProps<TTheme>, TStyles, TTheme> = (props: TStylesProps) => TStyles; | ||
export declare type IStateProps<TProps> = TProps & { | ||
view: (props: TProps) => JSX.Element; | ||
}; | ||
export declare type IStylesProp<TTheme, TProps extends IThemeProps<TTheme>, TStyles> = IStyleFunction<TTheme, TProps, TStyles> | TStyles; | ||
export declare type IStylesProp<TProps extends IThemeProps<TTheme>, TStyles, TTheme> = IStyleFunction<TProps, TStyles, TTheme> | TStyles; | ||
export declare type IViewProps<TProps, TStylesSet> = TProps & { | ||
@@ -20,10 +21,10 @@ styles: TStylesSet; | ||
state?: React.ComponentType<IStateProps<TUserProps>>; | ||
styles: IStylesProp<TTheme, TUserProps & IThemeProps<TTheme>, TStyles>; | ||
styles: IStylesProp<TUserProps & IThemeProps<TTheme>, TStyles, TTheme>; | ||
view: React.ComponentType<IViewProps<TUserProps, TStyleSet>>; | ||
} | ||
export interface IStylingProviders<TTheme, TStyles, TStyleSet> { | ||
export interface IStylingProviders<TStyles, TStyleSet, TTheme> { | ||
getTheme: () => TTheme; | ||
mergeStyleSets: (styles: TStyles) => TStyleSet; | ||
} | ||
export declare function createComponentWithProviders<TProps, TStyles, TStyleSet, TTheme>(options: IComponentOptions<TProps, TStyles, TStyleSet, TTheme>, providers: IStylingProviders<TTheme, TStyles, TStyleSet>): React.StatelessComponent<TProps>; | ||
export declare function createComponentWithProviders<TProps, TStyles, TStyleSet, TTheme>(options: IComponentOptions<TProps, TStyles, TStyleSet, TTheme>, providers: IStylingProviders<TStyles, TStyleSet, TTheme>): React.StatelessComponent<TProps>; | ||
export declare function augmentComponent<TProps, TStyles, TStyleSet, TTheme>(options: IComponentOptions<TProps, TStyles, TStyleSet, TTheme>): void; |
@@ -5,7 +5,8 @@ import * as React from 'react'; | ||
} | ||
export declare type IStyleFunction<TTheme, TStylesProps extends IThemeProps<TTheme>, TStyles> = (props: TStylesProps) => TStyles; | ||
export declare type IStyledProps<TProps, TTheme> = TProps & IThemeProps<TTheme>; | ||
export declare type IStyleFunction<TStylesProps extends IThemeProps<TTheme>, TStyles, TTheme> = (props: TStylesProps) => TStyles; | ||
export declare type IStateProps<TProps> = TProps & { | ||
view: (props: TProps) => JSX.Element; | ||
}; | ||
export declare type IStylesProp<TTheme, TProps extends IThemeProps<TTheme>, TStyles> = IStyleFunction<TTheme, TProps, TStyles> | TStyles; | ||
export declare type IStylesProp<TProps extends IThemeProps<TTheme>, TStyles, TTheme> = IStyleFunction<TProps, TStyles, TTheme> | TStyles; | ||
export declare type IViewProps<TProps, TStylesSet> = TProps & { | ||
@@ -20,10 +21,10 @@ styles: TStylesSet; | ||
state?: React.ComponentType<IStateProps<TUserProps>>; | ||
styles: IStylesProp<TTheme, TUserProps & IThemeProps<TTheme>, TStyles>; | ||
styles: IStylesProp<TUserProps & IThemeProps<TTheme>, TStyles, TTheme>; | ||
view: React.ComponentType<IViewProps<TUserProps, TStyleSet>>; | ||
} | ||
export interface IStylingProviders<TTheme, TStyles, TStyleSet> { | ||
export interface IStylingProviders<TStyles, TStyleSet, TTheme> { | ||
getTheme: () => TTheme; | ||
mergeStyleSets: (styles: TStyles) => TStyleSet; | ||
} | ||
export declare function createComponentWithProviders<TProps, TStyles, TStyleSet, TTheme>(options: IComponentOptions<TProps, TStyles, TStyleSet, TTheme>, providers: IStylingProviders<TTheme, TStyles, TStyleSet>): React.StatelessComponent<TProps>; | ||
export declare function createComponentWithProviders<TProps, TStyles, TStyleSet, TTheme>(options: IComponentOptions<TProps, TStyles, TStyleSet, TTheme>, providers: IStylingProviders<TStyles, TStyleSet, TTheme>): React.StatelessComponent<TProps>; | ||
export declare function augmentComponent<TProps, TStyles, TStyleSet, TTheme>(options: IComponentOptions<TProps, TStyles, TStyleSet, TTheme>): void; |
@@ -5,7 +5,8 @@ import * as React from 'react'; | ||
} | ||
export declare type IStyleFunction<TTheme, TStylesProps extends IThemeProps<TTheme>, TStyles> = (props: TStylesProps) => TStyles; | ||
export declare type IStyledProps<TProps, TTheme> = TProps & IThemeProps<TTheme>; | ||
export declare type IStyleFunction<TStylesProps extends IThemeProps<TTheme>, TStyles, TTheme> = (props: TStylesProps) => TStyles; | ||
export declare type IStateProps<TProps> = TProps & { | ||
view: (props: TProps) => JSX.Element; | ||
}; | ||
export declare type IStylesProp<TTheme, TProps extends IThemeProps<TTheme>, TStyles> = IStyleFunction<TTheme, TProps, TStyles> | TStyles; | ||
export declare type IStylesProp<TProps extends IThemeProps<TTheme>, TStyles, TTheme> = IStyleFunction<TProps, TStyles, TTheme> | TStyles; | ||
export declare type IViewProps<TProps, TStylesSet> = TProps & { | ||
@@ -20,10 +21,10 @@ styles: TStylesSet; | ||
state?: React.ComponentType<IStateProps<TUserProps>>; | ||
styles: IStylesProp<TTheme, TUserProps & IThemeProps<TTheme>, TStyles>; | ||
styles: IStylesProp<TUserProps & IThemeProps<TTheme>, TStyles, TTheme>; | ||
view: React.ComponentType<IViewProps<TUserProps, TStyleSet>>; | ||
} | ||
export interface IStylingProviders<TTheme, TStyles, TStyleSet> { | ||
export interface IStylingProviders<TStyles, TStyleSet, TTheme> { | ||
getTheme: () => TTheme; | ||
mergeStyleSets: (styles: TStyles) => TStyleSet; | ||
} | ||
export declare function createComponentWithProviders<TProps, TStyles, TStyleSet, TTheme>(options: IComponentOptions<TProps, TStyles, TStyleSet, TTheme>, providers: IStylingProviders<TTheme, TStyles, TStyleSet>): React.StatelessComponent<TProps>; | ||
export declare function createComponentWithProviders<TProps, TStyles, TStyleSet, TTheme>(options: IComponentOptions<TProps, TStyles, TStyleSet, TTheme>, providers: IStylingProviders<TStyles, TStyleSet, TTheme>): React.StatelessComponent<TProps>; | ||
export declare function augmentComponent<TProps, TStyles, TStyleSet, TTheme>(options: IComponentOptions<TProps, TStyles, TStyleSet, TTheme>): void; |
@@ -14,3 +14,3 @@ { | ||
"packages/foundation/package.json": "1eafb9be571dc98fd7855f4c1d097f25133c402f", | ||
"packages/foundation/src/createComponent.tsx": "435c397f933dfd4b3355abdbd56b69540e048bce", | ||
"packages/foundation/src/createComponent.tsx": "1e0be30d3a1cd09fd81ac0842e88a8752d054eca", | ||
"packages/foundation/src/index.ts": "ee6e311e0dfffc26dda52974ea5e34c58ea94e51", | ||
@@ -17,0 +17,0 @@ "packages/foundation/tsconfig.json": "3758c6c261a8af0f1c243da01fcd0a0c221684ae", |
{ | ||
"name": "@uifabric/foundation", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Foundation library for building Fabric components.", | ||
@@ -5,0 +5,0 @@ "main": "lib-commonjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36035
26
281
1