@omnia/velcron 7.0.528-dev → 7.0.529-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.
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +0 -2
- package/internal-do-not-import-from-here/shared/models/theming/ThemeMethods.d.ts +10 -0
- package/internal-do-not-import-from-here/shared/models/theming/ThemeMethods.js +142 -0
- package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.d.ts +0 -1
- package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/index.js +1 -0
- package/models/VelcronDefinitions.d.ts +1 -1
- package/package.json +1 -1
- package/parser/VelcronRenderers.d.ts +8 -4
- package/parser/VelcronRenderers.js +3 -3
- package/parser/VelcronStyles.js +5 -5
- package/stores/VelcronTheming.d.ts +9 -5
- package/stores/VelcronTheming.js +24 -99
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ColorDefinition, ThemeDefinitionV2, TypographyType } from "@omnia/fx-models";
|
|
2
|
+
export declare const useThemeMethods: (themedefinition: ThemeDefinitionV2) => {
|
|
3
|
+
colorSchema: (colorSchemaType: string) => import("@omnia/fx-models").ColorSchema;
|
|
4
|
+
typography: (typographyType: string) => TypographyType;
|
|
5
|
+
color: (colorSchemaType: string, colorType: string) => string;
|
|
6
|
+
colorDefinition: (colorSchemaType: string, colorType: string) => ColorDefinition;
|
|
7
|
+
complementaryColorType: (colorType: string) => string;
|
|
8
|
+
complementaryColor: (colorSchemaType: string, colorType: string) => string;
|
|
9
|
+
complementaryColorDefinition: (colorSchemaType: string, colorType: string) => ColorDefinition;
|
|
10
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useThemeMethods = void 0;
|
|
4
|
+
const fx_models_1 = require("@omnia/fx-models");
|
|
5
|
+
const useThemeMethods = (themedefinition) => {
|
|
6
|
+
const colorSchema = (colorSchemaType) => {
|
|
7
|
+
if (colorSchemaType === fx_models_1.ColorSchemaTypes.primary) {
|
|
8
|
+
return themedefinition.primary;
|
|
9
|
+
}
|
|
10
|
+
else if (colorSchemaType === fx_models_1.ColorSchemaTypes.secondary) {
|
|
11
|
+
return themedefinition.secondary;
|
|
12
|
+
}
|
|
13
|
+
else if (colorSchemaType === fx_models_1.ColorSchemaTypes.accent1) {
|
|
14
|
+
return themedefinition.accent1;
|
|
15
|
+
}
|
|
16
|
+
else if (colorSchemaType === fx_models_1.ColorSchemaTypes.accent2) {
|
|
17
|
+
return themedefinition.accent2;
|
|
18
|
+
}
|
|
19
|
+
else if (colorSchemaType === fx_models_1.ColorSchemaTypes.accent3) {
|
|
20
|
+
return themedefinition.accent3;
|
|
21
|
+
}
|
|
22
|
+
else if (colorSchemaType === fx_models_1.ColorSchemaTypes.background) {
|
|
23
|
+
return themedefinition.background;
|
|
24
|
+
}
|
|
25
|
+
else if (colorSchemaType === fx_models_1.ColorSchemaTypes.neutral) {
|
|
26
|
+
return themedefinition.neutral;
|
|
27
|
+
}
|
|
28
|
+
else if (colorSchemaType === fx_models_1.ColorSchemaTypes.error) {
|
|
29
|
+
return themedefinition.error;
|
|
30
|
+
}
|
|
31
|
+
return themedefinition.background;
|
|
32
|
+
};
|
|
33
|
+
const typography = (typographyType) => {
|
|
34
|
+
if (typographyType === fx_models_1.TypographyTypes.h1) {
|
|
35
|
+
return themedefinition.typography.h1;
|
|
36
|
+
}
|
|
37
|
+
else if (typographyType === fx_models_1.TypographyTypes.h2) {
|
|
38
|
+
return themedefinition.typography.h2;
|
|
39
|
+
}
|
|
40
|
+
else if (typographyType === fx_models_1.TypographyTypes.h3) {
|
|
41
|
+
return themedefinition.typography.h3;
|
|
42
|
+
}
|
|
43
|
+
else if (typographyType === fx_models_1.TypographyTypes.caption) {
|
|
44
|
+
return themedefinition.typography.caption;
|
|
45
|
+
}
|
|
46
|
+
else if (typographyType === fx_models_1.TypographyTypes.link) {
|
|
47
|
+
return themedefinition.typography.link;
|
|
48
|
+
}
|
|
49
|
+
else if (typographyType === fx_models_1.TypographyTypes.text) {
|
|
50
|
+
return themedefinition.typography.text;
|
|
51
|
+
}
|
|
52
|
+
return themedefinition.typography.text;
|
|
53
|
+
};
|
|
54
|
+
const color = (colorSchemaType, colorType) => {
|
|
55
|
+
const mappedColorSchema = colorSchema(colorSchemaType);
|
|
56
|
+
if (colorType === fx_models_1.ColorTypes.base) {
|
|
57
|
+
return mappedColorSchema.base.color;
|
|
58
|
+
}
|
|
59
|
+
else if (colorType === fx_models_1.ColorTypes.baseTone) {
|
|
60
|
+
return mappedColorSchema.base.colorToned;
|
|
61
|
+
}
|
|
62
|
+
else if (colorType === fx_models_1.ColorTypes.onBase) {
|
|
63
|
+
return mappedColorSchema.onBase.color;
|
|
64
|
+
}
|
|
65
|
+
else if (colorType === fx_models_1.ColorTypes.onBaseTone) {
|
|
66
|
+
return mappedColorSchema.onBase.colorToned;
|
|
67
|
+
}
|
|
68
|
+
else if (colorType === fx_models_1.ColorTypes.container) {
|
|
69
|
+
return mappedColorSchema.container.color;
|
|
70
|
+
}
|
|
71
|
+
else if (colorType === fx_models_1.ColorTypes.containerTone) {
|
|
72
|
+
return mappedColorSchema.container.colorToned;
|
|
73
|
+
}
|
|
74
|
+
else if (colorType === fx_models_1.ColorTypes.onContainer) {
|
|
75
|
+
return mappedColorSchema.onContainer.color;
|
|
76
|
+
}
|
|
77
|
+
else if (colorType === fx_models_1.ColorTypes.onContainerTone) {
|
|
78
|
+
return mappedColorSchema.onContainer.colorToned;
|
|
79
|
+
}
|
|
80
|
+
return colorType;
|
|
81
|
+
};
|
|
82
|
+
const colorDefinition = (colorSchemaType, colorType) => {
|
|
83
|
+
const mappedColorSchema = colorSchema(colorSchemaType);
|
|
84
|
+
if (colorType === fx_models_1.ColorTypes.base
|
|
85
|
+
|| colorType === fx_models_1.ColorTypes.baseTone) {
|
|
86
|
+
return mappedColorSchema.base;
|
|
87
|
+
}
|
|
88
|
+
else if (colorType === fx_models_1.ColorTypes.onBase
|
|
89
|
+
||
|
|
90
|
+
colorType === fx_models_1.ColorTypes.onBaseTone) {
|
|
91
|
+
return mappedColorSchema.onBase;
|
|
92
|
+
}
|
|
93
|
+
else if (colorType === fx_models_1.ColorTypes.container
|
|
94
|
+
||
|
|
95
|
+
colorType === fx_models_1.ColorTypes.containerTone) {
|
|
96
|
+
return mappedColorSchema.container;
|
|
97
|
+
}
|
|
98
|
+
else if (colorType === fx_models_1.ColorTypes.onContainer
|
|
99
|
+
||
|
|
100
|
+
colorType === fx_models_1.ColorTypes.onContainerTone) {
|
|
101
|
+
return mappedColorSchema.onContainer;
|
|
102
|
+
}
|
|
103
|
+
return mappedColorSchema.base;
|
|
104
|
+
};
|
|
105
|
+
const complementaryColorType = (colorType) => {
|
|
106
|
+
if (colorType === fx_models_1.ColorTypes.base
|
|
107
|
+
|| colorType === fx_models_1.ColorTypes.baseTone) {
|
|
108
|
+
return fx_models_1.ColorTypes.onBase;
|
|
109
|
+
}
|
|
110
|
+
else if (colorType === fx_models_1.ColorTypes.onBase
|
|
111
|
+
|| colorType === fx_models_1.ColorTypes.onBaseTone) {
|
|
112
|
+
return fx_models_1.ColorTypes.base;
|
|
113
|
+
}
|
|
114
|
+
else if (colorType === fx_models_1.ColorTypes.container
|
|
115
|
+
|| colorType === fx_models_1.ColorTypes.containerTone) {
|
|
116
|
+
return fx_models_1.ColorTypes.onContainer;
|
|
117
|
+
}
|
|
118
|
+
else if (colorType === fx_models_1.ColorTypes.onContainer
|
|
119
|
+
|| colorType === fx_models_1.ColorTypes.onContainerTone) {
|
|
120
|
+
return fx_models_1.ColorTypes.container;
|
|
121
|
+
}
|
|
122
|
+
return colorType;
|
|
123
|
+
};
|
|
124
|
+
const complementaryColor = (colorSchemaType, colorType) => {
|
|
125
|
+
const matchingColorType = complementaryColorType(colorType);
|
|
126
|
+
return color(colorSchemaType, matchingColorType);
|
|
127
|
+
};
|
|
128
|
+
const complementaryColorDefinition = (colorSchemaType, colorType) => {
|
|
129
|
+
const matchingColorType = complementaryColorType(colorType);
|
|
130
|
+
return colorDefinition(colorSchemaType, matchingColorType);
|
|
131
|
+
};
|
|
132
|
+
return {
|
|
133
|
+
colorSchema,
|
|
134
|
+
typography,
|
|
135
|
+
color,
|
|
136
|
+
colorDefinition,
|
|
137
|
+
complementaryColorType,
|
|
138
|
+
complementaryColor,
|
|
139
|
+
complementaryColorDefinition
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
exports.useThemeMethods = useThemeMethods;
|
|
@@ -4,3 +4,4 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./ThemeDefinitionV2"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./TypographyDefinition"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./OmniaThemes"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ThemeMethods"), exports);
|
|
@@ -41,7 +41,7 @@ export interface VelcronRenderContext {
|
|
|
41
41
|
rootContext: VelcronState;
|
|
42
42
|
currentContext: VelcronState;
|
|
43
43
|
theming?: ReturnType<typeof useVelcronThemingStore>;
|
|
44
|
-
|
|
44
|
+
colorSchemaType?: string;
|
|
45
45
|
colorSchema?: ColorSchema;
|
|
46
46
|
actions?: {
|
|
47
47
|
[name: string]: [];
|
package/package.json
CHANGED
|
@@ -14,10 +14,14 @@ export declare class VelcronRenderers {
|
|
|
14
14
|
currentTheme: import("@omnia/fx-models").ThemeDefinitionV2;
|
|
15
15
|
};
|
|
16
16
|
get: {
|
|
17
|
-
colorSchema: (
|
|
18
|
-
typography: (
|
|
19
|
-
color: (
|
|
20
|
-
|
|
17
|
+
colorSchema: (colorSchemaType: string) => import("@omnia/fx-models").ColorSchema;
|
|
18
|
+
typography: (typographyType: string) => import("@omnia/fx-models").TypographyType;
|
|
19
|
+
color: (colorSchemaType: string, colorType: string) => string;
|
|
20
|
+
colorDefinition: (colorSchemaType: string, colorType: string) => import("@omnia/fx-models").ColorDefinition;
|
|
21
|
+
complementaryColorType: (colorType: string) => string;
|
|
22
|
+
complementaryColor: (colorSchemaType: string, colorType: string) => string;
|
|
23
|
+
complementaryColorDefinition: (colorSchemaType: string, colorType: string) => import("@omnia/fx-models").ColorDefinition;
|
|
24
|
+
currentTheme: () => import("@omnia/fx-models").ThemeDefinitionV2;
|
|
21
25
|
};
|
|
22
26
|
actions: {
|
|
23
27
|
setTheme(newTheme: import("@omnia/fx-models").ThemeDefinitionV2): void;
|
|
@@ -75,11 +75,11 @@ class VelcronRenderers {
|
|
|
75
75
|
};
|
|
76
76
|
if (VelcronRenderers.definitionContainsCustomColorSchema(definition)) {
|
|
77
77
|
const schema = VelcronData_1.VelcronData.dataBind(result, definition.colorSchema);
|
|
78
|
-
result.
|
|
79
|
-
result.colorSchema = result.theming.get.colorSchema(result.
|
|
78
|
+
result.colorSchemaType = stores_1.ReactivitySystem.makeReactive(schema);
|
|
79
|
+
result.colorSchema = result.theming.get.colorSchema(result.colorSchemaType);
|
|
80
80
|
}
|
|
81
81
|
else {
|
|
82
|
-
result.
|
|
82
|
+
result.colorSchemaType = currentRenderCtx.colorSchemaType;
|
|
83
83
|
result.colorSchema = currentRenderCtx.colorSchema;
|
|
84
84
|
}
|
|
85
85
|
return result;
|
package/parser/VelcronStyles.js
CHANGED
|
@@ -47,19 +47,19 @@ class VelcronStyles {
|
|
|
47
47
|
}
|
|
48
48
|
if (borderSettings.top || borderSettings.top === 0) {
|
|
49
49
|
styleBase["borderTopStyle"] = "solid";
|
|
50
|
-
styleBase["borderTopColor"] = renderCtx.theming.get.color(renderCtx.
|
|
50
|
+
styleBase["borderTopColor"] = renderCtx.theming.get.color(renderCtx.colorSchemaType, borderSettings.color);
|
|
51
51
|
}
|
|
52
52
|
if (borderSettings.right || borderSettings.right === 0) {
|
|
53
53
|
styleBase["borderRightStyle"] = "solid";
|
|
54
|
-
styleBase["borderRightColor"] = renderCtx.theming.get.color(renderCtx.
|
|
54
|
+
styleBase["borderRightColor"] = renderCtx.theming.get.color(renderCtx.colorSchemaType, borderSettings.color);
|
|
55
55
|
}
|
|
56
56
|
if (borderSettings.bottom || borderSettings.bottom === 0) {
|
|
57
57
|
styleBase["borderBottomStyle"] = "solid";
|
|
58
|
-
styleBase["borderBottomColor"] = renderCtx.theming.get.color(renderCtx.
|
|
58
|
+
styleBase["borderBottomColor"] = renderCtx.theming.get.color(renderCtx.colorSchemaType, borderSettings.color);
|
|
59
59
|
}
|
|
60
60
|
if (borderSettings.left || borderSettings.left === 0) {
|
|
61
61
|
styleBase["borderLeftStyle"] = "solid";
|
|
62
|
-
styleBase["borderLeftColor"] = renderCtx.theming.get.color(renderCtx.
|
|
62
|
+
styleBase["borderLeftColor"] = renderCtx.theming.get.color(renderCtx.colorSchemaType, borderSettings.color);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
static create(definition, renderCtx) {
|
|
@@ -92,7 +92,7 @@ class VelcronStyles {
|
|
|
92
92
|
else if (definition.type === VelcronConstants_1.VelcronConstants.components.text) {
|
|
93
93
|
const textDefinition = definition;
|
|
94
94
|
if (textDefinition.color) {
|
|
95
|
-
styleBase["color"] = renderCtx.theming.get.color(renderCtx.
|
|
95
|
+
styleBase["color"] = renderCtx.theming.get.color(renderCtx.colorSchemaType, textDefinition.color);
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
98
98
|
styleBase["color"] = renderCtx.colorSchema.onBase.color;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { ThemeDefinitionV2
|
|
1
|
+
import { ThemeDefinitionV2 } from "..";
|
|
2
2
|
export declare const useVelcronThemingStore: (newStateWithName?: string) => {
|
|
3
3
|
state: {
|
|
4
4
|
currentTheme: ThemeDefinitionV2;
|
|
5
5
|
};
|
|
6
6
|
get: {
|
|
7
|
-
colorSchema: (
|
|
8
|
-
typography: (
|
|
9
|
-
color: (
|
|
10
|
-
|
|
7
|
+
colorSchema: (colorSchemaType: string) => import("..").ColorSchema;
|
|
8
|
+
typography: (typographyType: string) => import("..").TypographyType;
|
|
9
|
+
color: (colorSchemaType: string, colorType: string) => string;
|
|
10
|
+
colorDefinition: (colorSchemaType: string, colorType: string) => import("..").ColorDefinition;
|
|
11
|
+
complementaryColorType: (colorType: string) => string;
|
|
12
|
+
complementaryColor: (colorSchemaType: string, colorType: string) => string;
|
|
13
|
+
complementaryColorDefinition: (colorSchemaType: string, colorType: string) => import("..").ColorDefinition;
|
|
14
|
+
currentTheme: () => ThemeDefinitionV2;
|
|
11
15
|
};
|
|
12
16
|
actions: {
|
|
13
17
|
setTheme(newTheme: ThemeDefinitionV2): void;
|
package/stores/VelcronTheming.js
CHANGED
|
@@ -12,106 +12,31 @@ exports.useVelcronThemingStore = (0, VelcronStore_1.defineVelcronStore)("Velcron
|
|
|
12
12
|
};
|
|
13
13
|
},
|
|
14
14
|
getters(state) {
|
|
15
|
-
const colorSchema = (schema) => {
|
|
16
|
-
if (schema === __1.ColorSchemaTypes.primary) {
|
|
17
|
-
return state.currentTheme?.primary;
|
|
18
|
-
}
|
|
19
|
-
else if (schema === __1.ColorSchemaTypes.secondary) {
|
|
20
|
-
return state.currentTheme?.secondary;
|
|
21
|
-
}
|
|
22
|
-
else if (schema === __1.ColorSchemaTypes.accent1) {
|
|
23
|
-
return state.currentTheme?.accent1;
|
|
24
|
-
}
|
|
25
|
-
else if (schema === __1.ColorSchemaTypes.accent2) {
|
|
26
|
-
return state.currentTheme?.accent2;
|
|
27
|
-
}
|
|
28
|
-
else if (schema === __1.ColorSchemaTypes.accent3) {
|
|
29
|
-
return state.currentTheme?.accent3;
|
|
30
|
-
}
|
|
31
|
-
else if (schema === __1.ColorSchemaTypes.background) {
|
|
32
|
-
return state.currentTheme?.background;
|
|
33
|
-
}
|
|
34
|
-
else if (schema === __1.ColorSchemaTypes.neutral) {
|
|
35
|
-
return state.currentTheme?.neutral;
|
|
36
|
-
}
|
|
37
|
-
else if (schema === __1.ColorSchemaTypes.error) {
|
|
38
|
-
return state.currentTheme?.error;
|
|
39
|
-
}
|
|
40
|
-
return state.currentTheme?.background;
|
|
41
|
-
};
|
|
42
|
-
const typography = (name) => {
|
|
43
|
-
if (name === __1.TypographyTypes.h1) {
|
|
44
|
-
return state.currentTheme.typography.h1;
|
|
45
|
-
}
|
|
46
|
-
else if (name === __1.TypographyTypes.h2) {
|
|
47
|
-
return state.currentTheme.typography.h2;
|
|
48
|
-
}
|
|
49
|
-
else if (name === __1.TypographyTypes.h3) {
|
|
50
|
-
return state.currentTheme.typography.h3;
|
|
51
|
-
}
|
|
52
|
-
else if (name === __1.TypographyTypes.caption) {
|
|
53
|
-
return state.currentTheme.typography.caption;
|
|
54
|
-
}
|
|
55
|
-
else if (name === __1.TypographyTypes.link) {
|
|
56
|
-
return state.currentTheme.typography.link;
|
|
57
|
-
}
|
|
58
|
-
else if (name === __1.TypographyTypes.text) {
|
|
59
|
-
return state.currentTheme.typography.text;
|
|
60
|
-
}
|
|
61
|
-
return state.currentTheme.typography.text;
|
|
62
|
-
};
|
|
63
|
-
const complementaryColor = (colorType) => {
|
|
64
|
-
if (colorType === __1.ColorTypes.base
|
|
65
|
-
|| colorType === __1.ColorTypes.baseTone) {
|
|
66
|
-
return __1.ColorTypes.onBase;
|
|
67
|
-
}
|
|
68
|
-
else if (colorType === __1.ColorTypes.onBase
|
|
69
|
-
|| colorType === __1.ColorTypes.onBaseTone) {
|
|
70
|
-
return __1.ColorTypes.base;
|
|
71
|
-
}
|
|
72
|
-
else if (colorType === __1.ColorTypes.container
|
|
73
|
-
|| colorType === __1.ColorTypes.containerTone) {
|
|
74
|
-
return __1.ColorTypes.onContainer;
|
|
75
|
-
}
|
|
76
|
-
else if (colorType === __1.ColorTypes.onContainer
|
|
77
|
-
|| colorType === __1.ColorTypes.onContainerTone) {
|
|
78
|
-
return __1.ColorTypes.container;
|
|
79
|
-
}
|
|
80
|
-
return colorType;
|
|
81
|
-
};
|
|
82
|
-
const color = (schemaName, colorType) => {
|
|
83
|
-
const mappedColorSchema = colorSchema(schemaName);
|
|
84
|
-
if (colorType === __1.ColorTypes.base) {
|
|
85
|
-
return mappedColorSchema.base.color;
|
|
86
|
-
}
|
|
87
|
-
else if (colorType === __1.ColorTypes.baseTone) {
|
|
88
|
-
return mappedColorSchema.base.colorToned;
|
|
89
|
-
}
|
|
90
|
-
else if (colorType === __1.ColorTypes.onBase) {
|
|
91
|
-
return mappedColorSchema.onBase.color;
|
|
92
|
-
}
|
|
93
|
-
else if (colorType === __1.ColorTypes.onBaseTone) {
|
|
94
|
-
return mappedColorSchema.onBase.colorToned;
|
|
95
|
-
}
|
|
96
|
-
else if (colorType === __1.ColorTypes.container) {
|
|
97
|
-
return mappedColorSchema.container.color;
|
|
98
|
-
}
|
|
99
|
-
else if (colorType === __1.ColorTypes.containerTone) {
|
|
100
|
-
return mappedColorSchema.container.colorToned;
|
|
101
|
-
}
|
|
102
|
-
else if (colorType === __1.ColorTypes.onContainer) {
|
|
103
|
-
return mappedColorSchema.onContainer.color;
|
|
104
|
-
}
|
|
105
|
-
else if (colorType === __1.ColorTypes.onContainerTone) {
|
|
106
|
-
return mappedColorSchema.onContainer.colorToned;
|
|
107
|
-
}
|
|
108
|
-
return colorType;
|
|
109
|
-
};
|
|
110
15
|
return {
|
|
111
|
-
colorSchema
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
16
|
+
colorSchema: (colorSchemaType) => {
|
|
17
|
+
return (0, __1.useThemeMethods)(state.currentTheme).colorSchema(colorSchemaType);
|
|
18
|
+
},
|
|
19
|
+
typography: (typographyType) => {
|
|
20
|
+
return (0, __1.useThemeMethods)(state.currentTheme).typography(typographyType);
|
|
21
|
+
},
|
|
22
|
+
color: (colorSchemaType, colorType) => {
|
|
23
|
+
return (0, __1.useThemeMethods)(state.currentTheme).color(colorSchemaType, colorType);
|
|
24
|
+
},
|
|
25
|
+
colorDefinition: (colorSchemaType, colorType) => {
|
|
26
|
+
return (0, __1.useThemeMethods)(state.currentTheme).colorDefinition(colorSchemaType, colorType);
|
|
27
|
+
},
|
|
28
|
+
complementaryColorType: (colorType) => {
|
|
29
|
+
return (0, __1.useThemeMethods)(state.currentTheme).complementaryColorType(colorType);
|
|
30
|
+
},
|
|
31
|
+
complementaryColor: (colorSchemaType, colorType) => {
|
|
32
|
+
return (0, __1.useThemeMethods)(state.currentTheme).complementaryColor(colorSchemaType, colorType);
|
|
33
|
+
},
|
|
34
|
+
complementaryColorDefinition: (colorSchemaType, colorType) => {
|
|
35
|
+
return (0, __1.useThemeMethods)(state.currentTheme).complementaryColorDefinition(colorSchemaType, colorType);
|
|
36
|
+
},
|
|
37
|
+
currentTheme: () => {
|
|
38
|
+
return this.currentTheme.state;
|
|
39
|
+
}
|
|
115
40
|
};
|
|
116
41
|
},
|
|
117
42
|
actions(state) {
|