@omnia/fx-models 8.0.221-dev → 8.0.223-dev
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.
@@ -35,12 +35,15 @@ export interface ColorSchemas extends ColorSchemasReference {
|
|
35
35
|
accent1: ColorSchema;
|
36
36
|
accent2: ColorSchema;
|
37
37
|
accent3: ColorSchema;
|
38
|
+
accent4: ColorSchema;
|
39
|
+
accent5: ColorSchema;
|
38
40
|
neutral: ColorSchema;
|
39
41
|
background: ColorSchema;
|
40
42
|
error: ColorSchema;
|
41
43
|
info: ColorSchema;
|
42
44
|
warning: ColorSchema;
|
43
45
|
notification: ColorSchema;
|
46
|
+
success: ColorSchema;
|
44
47
|
}
|
45
48
|
export interface BlueprintsReference {
|
46
49
|
id: guid;
|
@@ -95,12 +98,15 @@ export declare enum ColorSchemaTypes {
|
|
95
98
|
accent1 = "accent1",
|
96
99
|
accent2 = "accent2",
|
97
100
|
accent3 = "accent3",
|
101
|
+
accent4 = "accent4",
|
102
|
+
accent5 = "accent5",
|
98
103
|
neutral = "neutral",
|
99
104
|
warning = "warning",
|
100
105
|
notification = "notification",
|
101
106
|
background = "background",
|
102
107
|
error = "error",
|
103
108
|
info = "info",
|
109
|
+
success = "success",
|
104
110
|
dynamic = "dynamic"
|
105
111
|
}
|
106
112
|
export type ColorType = keyof typeof ColorTypes;
|
@@ -8,12 +8,15 @@ var ColorSchemaTypes;
|
|
8
8
|
ColorSchemaTypes["accent1"] = "accent1";
|
9
9
|
ColorSchemaTypes["accent2"] = "accent2";
|
10
10
|
ColorSchemaTypes["accent3"] = "accent3";
|
11
|
+
ColorSchemaTypes["accent4"] = "accent4";
|
12
|
+
ColorSchemaTypes["accent5"] = "accent5";
|
11
13
|
ColorSchemaTypes["neutral"] = "neutral";
|
12
14
|
ColorSchemaTypes["warning"] = "warning";
|
13
15
|
ColorSchemaTypes["notification"] = "notification";
|
14
16
|
ColorSchemaTypes["background"] = "background";
|
15
17
|
ColorSchemaTypes["error"] = "error";
|
16
18
|
ColorSchemaTypes["info"] = "info";
|
19
|
+
ColorSchemaTypes["success"] = "success";
|
17
20
|
ColorSchemaTypes["dynamic"] = "dynamic";
|
18
21
|
})(ColorSchemaTypes || (exports.ColorSchemaTypes = ColorSchemaTypes = {}));
|
19
22
|
var ColorTypes;
|
@@ -38,6 +38,12 @@ function useThemeMethods(getThemeDefinition) {
|
|
38
38
|
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.accent3) {
|
39
39
|
return getThemeDefinition().colors.accent3;
|
40
40
|
}
|
41
|
+
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.accent4) {
|
42
|
+
return getThemeDefinition().colors.accent4;
|
43
|
+
}
|
44
|
+
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.accent5) {
|
45
|
+
return getThemeDefinition().colors.accent5;
|
46
|
+
}
|
41
47
|
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.background) {
|
42
48
|
return getThemeDefinition().colors.background;
|
43
49
|
}
|
@@ -47,6 +53,9 @@ function useThemeMethods(getThemeDefinition) {
|
|
47
53
|
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.error) {
|
48
54
|
return getThemeDefinition().colors.error;
|
49
55
|
}
|
56
|
+
else if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.success) {
|
57
|
+
return getThemeDefinition().colors.success;
|
58
|
+
}
|
50
59
|
return getThemeDefinition().colors.background;
|
51
60
|
}
|
52
61
|
function color(colorSchemaType, colorType) {
|