@livetiles/reach-plugin-types 0.4.0-preview.377 → 0.4.0-preview.378
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/lib/index.d.ts +23 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2570,6 +2570,7 @@ declare module "libs/reach/util/common/src/theme/ColorGenerator" {
|
|
|
2570
2570
|
declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
2571
2571
|
import { IPartialTheme } from 'office-ui-fabric-react';
|
|
2572
2572
|
import { Theme } from "libs/reach/util/common/src/user/Subscription";
|
|
2573
|
+
import * as wcag from 'wcag-contrast';
|
|
2573
2574
|
export const defaultThemeColors: Theme;
|
|
2574
2575
|
export const defaultPageBackgroundColor: string;
|
|
2575
2576
|
export const defaultLightColor = "#ffffff";
|
|
@@ -2667,6 +2668,11 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
2667
2668
|
export function getDarkAltColor(color: string): string;
|
|
2668
2669
|
export function getTextColor(bgColor: string): "#333333" | "#ffffff";
|
|
2669
2670
|
export function shouldUseDarkForegroundColor(bgColor: string): boolean;
|
|
2671
|
+
export function getContrastInfo(backgroundColor: string, foregroundColor: string): {
|
|
2672
|
+
contrast: string;
|
|
2673
|
+
score: wcag.Score;
|
|
2674
|
+
isGood: boolean;
|
|
2675
|
+
};
|
|
2670
2676
|
}
|
|
2671
2677
|
declare module "libs/reach/util/common/src/theme/ThemeContext" {
|
|
2672
2678
|
import { FC, ReactNode } from 'react';
|
|
@@ -4966,6 +4972,23 @@ declare module "apps/reach-app/src/app/admin/themes/ColorEditor" {
|
|
|
4966
4972
|
className?: string;
|
|
4967
4973
|
}>;
|
|
4968
4974
|
}
|
|
4975
|
+
declare module "apps/reach-app/src/app/admin/themes/ContrastInfo" {
|
|
4976
|
+
import { FC } from 'react';
|
|
4977
|
+
export const ContrastInfo: FC<{
|
|
4978
|
+
textColor: string;
|
|
4979
|
+
backgroundColor: string;
|
|
4980
|
+
className?: string;
|
|
4981
|
+
}>;
|
|
4982
|
+
}
|
|
4983
|
+
declare module "apps/reach-app/src/app/admin/themes/ColorButton" {
|
|
4984
|
+
import { FC } from 'react';
|
|
4985
|
+
export const ColorButton: FC<{
|
|
4986
|
+
onClick: () => void;
|
|
4987
|
+
text: string;
|
|
4988
|
+
backgroundColor: string;
|
|
4989
|
+
color: string;
|
|
4990
|
+
}>;
|
|
4991
|
+
}
|
|
4969
4992
|
declare module "apps/reach-app/src/app/admin/themes/Themes" {
|
|
4970
4993
|
import { FC } from 'react';
|
|
4971
4994
|
export const Themes: FC;
|