@evlop/commons 1.0.332 → 1.0.334
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/dist/cjs/src/helpers/ColorVariants.d.ts +38 -0
- package/dist/cjs/src/helpers/ColorVariants.d.ts.map +1 -0
- package/dist/cjs/src/helpers/ColorVariants.js +208 -0
- package/dist/cjs/src/helpers/ColorVariants.js.map +1 -0
- package/dist/cjs/src/helpers/ColorVariants.test.d.ts +2 -0
- package/dist/cjs/src/helpers/ColorVariants.test.d.ts.map +1 -0
- package/dist/cjs/src/helpers/ColorVariants.test.js +215 -0
- package/dist/cjs/src/helpers/ColorVariants.test.js.map +1 -0
- package/dist/cjs/src/helpers/commonStyles.d.ts +7 -2
- package/dist/cjs/src/helpers/commonStyles.d.ts.map +1 -1
- package/dist/cjs/src/helpers/index.d.ts +1 -0
- package/dist/cjs/src/helpers/index.d.ts.map +1 -1
- package/dist/cjs/src/helpers/index.js +3 -0
- package/dist/cjs/src/helpers/index.js.map +1 -1
- package/dist/cjs/src/helpers/themeHelpers.d.ts +43 -11
- package/dist/cjs/src/helpers/themeHelpers.d.ts.map +1 -1
- package/dist/cjs/src/helpers/themeHelpers.js +17 -25
- package/dist/cjs/src/helpers/themeHelpers.js.map +1 -1
- package/dist/esm/src/helpers/ColorVariants.d.ts +38 -0
- package/dist/esm/src/helpers/ColorVariants.d.ts.map +1 -0
- package/dist/esm/src/helpers/ColorVariants.js +204 -0
- package/dist/esm/src/helpers/ColorVariants.js.map +1 -0
- package/dist/esm/src/helpers/ColorVariants.test.d.ts +2 -0
- package/dist/esm/src/helpers/ColorVariants.test.d.ts.map +1 -0
- package/dist/esm/src/helpers/ColorVariants.test.js +213 -0
- package/dist/esm/src/helpers/ColorVariants.test.js.map +1 -0
- package/dist/esm/src/helpers/commonStyles.d.ts +7 -2
- package/dist/esm/src/helpers/commonStyles.d.ts.map +1 -1
- package/dist/esm/src/helpers/index.d.ts +1 -0
- package/dist/esm/src/helpers/index.d.ts.map +1 -1
- package/dist/esm/src/helpers/index.js +1 -0
- package/dist/esm/src/helpers/index.js.map +1 -1
- package/dist/esm/src/helpers/themeHelpers.d.ts +43 -11
- package/dist/esm/src/helpers/themeHelpers.d.ts.map +1 -1
- package/dist/esm/src/helpers/themeHelpers.js +16 -25
- package/dist/esm/src/helpers/themeHelpers.js.map +1 -1
- package/dist/types/src/helpers/ColorVariants.d.ts +38 -0
- package/dist/types/src/helpers/ColorVariants.d.ts.map +1 -0
- package/dist/types/src/helpers/ColorVariants.test.d.ts +2 -0
- package/dist/types/src/helpers/ColorVariants.test.d.ts.map +1 -0
- package/dist/types/src/helpers/commonStyles.d.ts +7 -2
- package/dist/types/src/helpers/commonStyles.d.ts.map +1 -1
- package/dist/types/src/helpers/index.d.ts +1 -0
- package/dist/types/src/helpers/index.d.ts.map +1 -1
- package/dist/types/src/helpers/themeHelpers.d.ts +43 -11
- package/dist/types/src/helpers/themeHelpers.d.ts.map +1 -1
- package/package.json +2 -1
@@ -0,0 +1,38 @@
|
|
1
|
+
export declare const defaultColors: {
|
2
|
+
white: string;
|
3
|
+
black: string;
|
4
|
+
gray: string;
|
5
|
+
primary: string;
|
6
|
+
secondary: string;
|
7
|
+
success: string;
|
8
|
+
info: string;
|
9
|
+
warning: string;
|
10
|
+
danger: string;
|
11
|
+
red: string;
|
12
|
+
orange: string;
|
13
|
+
amber: string;
|
14
|
+
yellow: string;
|
15
|
+
lime: string;
|
16
|
+
green: string;
|
17
|
+
emerald: string;
|
18
|
+
teal: string;
|
19
|
+
cyan: string;
|
20
|
+
sky: string;
|
21
|
+
blue: string;
|
22
|
+
indigo: string;
|
23
|
+
violet: string;
|
24
|
+
purple: string;
|
25
|
+
fuchsia: string;
|
26
|
+
pink: string;
|
27
|
+
rose: string;
|
28
|
+
};
|
29
|
+
export declare class ColorVariants {
|
30
|
+
private colors;
|
31
|
+
private dark;
|
32
|
+
private cache;
|
33
|
+
constructor(colors: {
|
34
|
+
[colorName: string]: string;
|
35
|
+
}, dark?: boolean);
|
36
|
+
}
|
37
|
+
export default ColorVariants;
|
38
|
+
//# sourceMappingURL=ColorVariants.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ColorVariants.d.ts","sourceRoot":"","sources":["../../../../src/helpers/ColorVariants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BzB,CAAA;AA8HD,qBAAa,aAAa;IACtB,OAAO,CAAC,MAAM,CAAgC;IAC9C,OAAO,CAAC,IAAI,CAAU;IACtB,OAAO,CAAC,KAAK,CAAkC;gBAEnC,MAAM,EAAE;QAAC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,EAAE,IAAI,GAAE,OAAe;CAgE3E;AAED,eAAe,aAAa,CAAC"}
|
@@ -0,0 +1,208 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ColorVariants = exports.defaultColors = void 0;
|
4
|
+
const polished_1 = require("polished");
|
5
|
+
const lodash_1 = require("lodash");
|
6
|
+
const parseToRgb = (0, lodash_1.memoize)(polished_1.parseToRgb);
|
7
|
+
exports.defaultColors = {
|
8
|
+
white: "#ffffff",
|
9
|
+
black: "#1e1e1e",
|
10
|
+
gray: '#696969',
|
11
|
+
primary: '#008f7b',
|
12
|
+
secondary: '#008f7b',
|
13
|
+
success: '#008f7b',
|
14
|
+
info: '#008f7b',
|
15
|
+
warning: '#ff00ff',
|
16
|
+
danger: '#ff0000',
|
17
|
+
red: '#ef4444',
|
18
|
+
orange: '#f97316',
|
19
|
+
amber: '#f59e0b',
|
20
|
+
yellow: '#eab308',
|
21
|
+
lime: '#84cc16',
|
22
|
+
green: '#22c55e',
|
23
|
+
emerald: '#10b981',
|
24
|
+
teal: '#14b8a6',
|
25
|
+
cyan: '#06b6d4',
|
26
|
+
sky: '#0ea5e9',
|
27
|
+
blue: '#3b82f6',
|
28
|
+
indigo: '#6366f1',
|
29
|
+
violet: '#8b5cf6',
|
30
|
+
purple: '#a855f7',
|
31
|
+
fuchsia: '#d946ef',
|
32
|
+
pink: '#ec4899',
|
33
|
+
rose: '#f43f5e',
|
34
|
+
};
|
35
|
+
const lightModeColorShades = {
|
36
|
+
50: -0.95,
|
37
|
+
100: -0.9,
|
38
|
+
200: -0.75,
|
39
|
+
300: -0.6,
|
40
|
+
400: -0.3,
|
41
|
+
500: 0,
|
42
|
+
600: 0.1,
|
43
|
+
700: 0.25,
|
44
|
+
800: 0.4,
|
45
|
+
900: 0.51,
|
46
|
+
};
|
47
|
+
const lightModeGrayColorShades = {
|
48
|
+
0: -1,
|
49
|
+
25: -0.97,
|
50
|
+
...lightModeColorShades,
|
51
|
+
950: 0.6,
|
52
|
+
1000: 0.7,
|
53
|
+
1050: 0.8,
|
54
|
+
1100: 0.9,
|
55
|
+
};
|
56
|
+
const darkModeColorShades = {
|
57
|
+
50: 0.9,
|
58
|
+
100: 0.7630875,
|
59
|
+
200: 0.5985,
|
60
|
+
300: 0.3740625,
|
61
|
+
400: 0.149625,
|
62
|
+
500: 0,
|
63
|
+
600: -0.3,
|
64
|
+
700: -0.6,
|
65
|
+
800: -0.75,
|
66
|
+
900: -0.9,
|
67
|
+
};
|
68
|
+
const darkModeGrayColorShades = {
|
69
|
+
0: 1,
|
70
|
+
25: 0.95,
|
71
|
+
...darkModeColorShades,
|
72
|
+
950: -0.925,
|
73
|
+
1000: -0.95,
|
74
|
+
1050: -0.97,
|
75
|
+
1100: -1,
|
76
|
+
};
|
77
|
+
const colorAlphaShades = {
|
78
|
+
"50": 0.05,
|
79
|
+
"100": 0.1,
|
80
|
+
"150": 0.15,
|
81
|
+
"200": 0.2,
|
82
|
+
"250": 0.25,
|
83
|
+
"300": 0.3,
|
84
|
+
"350": 0.35,
|
85
|
+
"400": 0.4,
|
86
|
+
"450": 0.45,
|
87
|
+
"500": 0.5,
|
88
|
+
"550": 0.55,
|
89
|
+
"600": 0.6,
|
90
|
+
"650": 0.65,
|
91
|
+
"700": 0.7,
|
92
|
+
"750": 0.75,
|
93
|
+
"800": 0.8,
|
94
|
+
"850": 0.85,
|
95
|
+
"900": 0.9,
|
96
|
+
"950": 0.95
|
97
|
+
};
|
98
|
+
function lightenRgb(hex, intensity) {
|
99
|
+
const color = parseToRgb(hex);
|
100
|
+
if (!color) {
|
101
|
+
return "";
|
102
|
+
}
|
103
|
+
const r = Math.round(color.red + (255 - color.red) * intensity);
|
104
|
+
const g = Math.round(color.green + (255 - color.green) * intensity);
|
105
|
+
const b = Math.round(color.blue + (255 - color.blue) * intensity);
|
106
|
+
return (0, polished_1.rgb)(r, g, b);
|
107
|
+
}
|
108
|
+
function darkenRgb(hex, intensity) {
|
109
|
+
const color = parseToRgb(hex);
|
110
|
+
if (!color) {
|
111
|
+
return "";
|
112
|
+
}
|
113
|
+
const r = Math.round(color.red * (1 - intensity));
|
114
|
+
const g = Math.round(color.green * (1 - intensity));
|
115
|
+
const b = Math.round(color.blue * (1 - intensity));
|
116
|
+
return (0, polished_1.rgb)(r, g, b);
|
117
|
+
}
|
118
|
+
function getColorShade(color, weight) {
|
119
|
+
const shouldLighten = weight < 0;
|
120
|
+
if (shouldLighten) {
|
121
|
+
return lightenRgb(color, Math.abs(weight));
|
122
|
+
}
|
123
|
+
else {
|
124
|
+
return darkenRgb(color, Math.abs(weight));
|
125
|
+
}
|
126
|
+
}
|
127
|
+
function getColorAlphaShade(color, alphaShade) {
|
128
|
+
const weight = colorAlphaShades[alphaShade];
|
129
|
+
if (weight !== undefined) {
|
130
|
+
try {
|
131
|
+
return (0, polished_1.transparentize)(1 - weight, color);
|
132
|
+
}
|
133
|
+
catch (e) {
|
134
|
+
return color;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
return color;
|
138
|
+
}
|
139
|
+
function getShadeMap(colorName, dark) {
|
140
|
+
if (colorName === 'gray') {
|
141
|
+
return dark ? darkModeGrayColorShades : lightModeGrayColorShades;
|
142
|
+
}
|
143
|
+
return dark ? darkModeColorShades : lightModeColorShades;
|
144
|
+
}
|
145
|
+
class ColorVariants {
|
146
|
+
colors;
|
147
|
+
dark;
|
148
|
+
cache = new Map();
|
149
|
+
constructor(colors, dark = false) {
|
150
|
+
this.colors = { ...exports.defaultColors, ...colors };
|
151
|
+
this.dark = dark;
|
152
|
+
return new Proxy(this, {
|
153
|
+
get(target, prop) {
|
154
|
+
// Return base color if it exists
|
155
|
+
if (prop in target.colors) {
|
156
|
+
return target.colors[prop];
|
157
|
+
}
|
158
|
+
const cacheKey = `${prop}-${target.dark}`;
|
159
|
+
if (target.cache.has(cacheKey)) {
|
160
|
+
return target.cache.get(cacheKey);
|
161
|
+
}
|
162
|
+
// Single regex to match: colorName[-colorShade][/alphaShade]
|
163
|
+
// Examples: red, red-500, red/50, red-500/50
|
164
|
+
let colorMatch = prop.match(/^([a-z]+)(?:-(\d+))?(?:\/(\d+))?$/);
|
165
|
+
// Fallback for legacy pattern: colorName-shade-colorShade OR colorName-alpha-alphaShade
|
166
|
+
if (!colorMatch) {
|
167
|
+
const legacyMatch = prop.match(/^([a-z]+)(?:-shade-(\d+)|-alpha-(\d+))$/);
|
168
|
+
if (legacyMatch) {
|
169
|
+
const [, colorName, shadeValue, alphaValue] = legacyMatch;
|
170
|
+
colorMatch = [legacyMatch[0], colorName, shadeValue, alphaValue];
|
171
|
+
}
|
172
|
+
}
|
173
|
+
if (colorMatch) {
|
174
|
+
const [, colorName, colorShade, alphaShade] = colorMatch;
|
175
|
+
if (colorName in target.colors) {
|
176
|
+
const baseColor = target.colors[colorName];
|
177
|
+
let resultColor = baseColor;
|
178
|
+
// Apply color shade if specified
|
179
|
+
if (colorShade) {
|
180
|
+
const shadeMap = getShadeMap(colorName, target.dark);
|
181
|
+
const weight = shadeMap[colorShade];
|
182
|
+
if (weight !== undefined) {
|
183
|
+
resultColor = getColorShade(baseColor, weight);
|
184
|
+
}
|
185
|
+
}
|
186
|
+
// Apply alpha if specified
|
187
|
+
if (alphaShade) {
|
188
|
+
const alphaResult = getColorAlphaShade(resultColor, alphaShade);
|
189
|
+
if (alphaResult) {
|
190
|
+
resultColor = alphaResult;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
target.cache.set(cacheKey, resultColor);
|
194
|
+
return resultColor;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
else {
|
198
|
+
target.cache.set(cacheKey, undefined);
|
199
|
+
}
|
200
|
+
// For any other property access, return undefined
|
201
|
+
return undefined;
|
202
|
+
}
|
203
|
+
});
|
204
|
+
}
|
205
|
+
}
|
206
|
+
exports.ColorVariants = ColorVariants;
|
207
|
+
exports.default = ColorVariants;
|
208
|
+
//# sourceMappingURL=ColorVariants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ColorVariants.js","sourceRoot":"","sources":["../../../../src/helpers/ColorVariants.ts"],"names":[],"mappings":";;;AAAA,uCAA0E;AAC1E,mCAAiC;AAEjC,MAAM,UAAU,GAAG,IAAA,gBAAO,EAAC,qBAAW,CAAC,CAAC;AAE3B,QAAA,aAAa,GAAG;IACzB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;IACjB,GAAG,EAAE,SAAS;IACd,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,SAAS;IACjB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,OAAO,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ceRoot":"","sources":["../../../../src/helpers/ColorVariants.test.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,215 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const chai_1 = require("chai");
|
4
|
+
const ColorVariants_1 = require("./ColorVariants");
|
5
|
+
describe('ColorVariants', () => {
|
6
|
+
const testColors = {
|
7
|
+
red: '#ef4444',
|
8
|
+
blue: '#3b82f6',
|
9
|
+
gray: '#696969',
|
10
|
+
green: '#22c55e'
|
11
|
+
};
|
12
|
+
describe('Basic color access', () => {
|
13
|
+
it('should return base colors', () => {
|
14
|
+
const colorVariants = new ColorVariants_1.ColorVariants(testColors);
|
15
|
+
(0, chai_1.expect)(colorVariants.red).to.equal('#ef4444');
|
16
|
+
(0, chai_1.expect)(colorVariants.blue).to.equal('#3b82f6');
|
17
|
+
(0, chai_1.expect)(colorVariants.gray).to.equal('#696969');
|
18
|
+
(0, chai_1.expect)(colorVariants.green).to.equal('#22c55e');
|
19
|
+
});
|
20
|
+
it('should return undefined for non-existent colors', () => {
|
21
|
+
const colorVariants = new ColorVariants_1.ColorVariants(testColors);
|
22
|
+
(0, chai_1.expect)(colorVariants.purples).to.be.undefined;
|
23
|
+
(0, chai_1.expect)(colorVariants.yellows).to.be.undefined;
|
24
|
+
});
|
25
|
+
});
|
26
|
+
describe('Color shades - light mode', () => {
|
27
|
+
let colorVariants;
|
28
|
+
beforeEach(() => {
|
29
|
+
colorVariants = new ColorVariants_1.ColorVariants(testColors, false);
|
30
|
+
});
|
31
|
+
it('should generate lighter shades (50-400)', () => {
|
32
|
+
// Test lighter shades (negative weights)
|
33
|
+
(0, chai_1.expect)(colorVariants['red-50']).to.be.a('string');
|
34
|
+
(0, chai_1.expect)(colorVariants['red-100']).to.be.a('string');
|
35
|
+
(0, chai_1.expect)(colorVariants['red-200']).to.be.a('string');
|
36
|
+
(0, chai_1.expect)(colorVariants['red-300']).to.be.a('string');
|
37
|
+
(0, chai_1.expect)(colorVariants['red-400']).to.be.a('string');
|
38
|
+
// Verify they are different from base color
|
39
|
+
(0, chai_1.expect)(colorVariants['red-50']).to.not.equal(testColors.red);
|
40
|
+
(0, chai_1.expect)(colorVariants['red-100']).to.not.equal(testColors.red);
|
41
|
+
});
|
42
|
+
it('should return base color for shade 500', () => {
|
43
|
+
(0, chai_1.expect)(colorVariants['red-500']).to.equal(testColors.red);
|
44
|
+
(0, chai_1.expect)(colorVariants['blue-500']).to.equal(testColors.blue);
|
45
|
+
});
|
46
|
+
it('should generate darker shades (600-900)', () => {
|
47
|
+
// Test darker shades (positive weights)
|
48
|
+
(0, chai_1.expect)(colorVariants['red-600']).to.be.a('string');
|
49
|
+
(0, chai_1.expect)(colorVariants['red-700']).to.be.a('string');
|
50
|
+
(0, chai_1.expect)(colorVariants['red-800']).to.be.a('string');
|
51
|
+
(0, chai_1.expect)(colorVariants['red-900']).to.be.a('string');
|
52
|
+
// Verify they are different from base color
|
53
|
+
(0, chai_1.expect)(colorVariants['red-600']).to.not.equal(testColors.red);
|
54
|
+
(0, chai_1.expect)(colorVariants['red-900']).to.not.equal(testColors.red);
|
55
|
+
});
|
56
|
+
it('should handle gray color with extended shades', () => {
|
57
|
+
(0, chai_1.expect)(colorVariants['gray-0']).to.be.a('string');
|
58
|
+
(0, chai_1.expect)(colorVariants['gray-25']).to.be.a('string');
|
59
|
+
(0, chai_1.expect)(colorVariants['gray-950']).to.be.a('string');
|
60
|
+
(0, chai_1.expect)(colorVariants['gray-1000']).to.be.a('string');
|
61
|
+
(0, chai_1.expect)(colorVariants['gray-1100']).to.be.a('string');
|
62
|
+
});
|
63
|
+
});
|
64
|
+
describe('Color shades - dark mode', () => {
|
65
|
+
let colorVariants;
|
66
|
+
beforeEach(() => {
|
67
|
+
colorVariants = new ColorVariants_1.ColorVariants(testColors, true);
|
68
|
+
});
|
69
|
+
it('should generate different shades in dark mode', () => {
|
70
|
+
const lightMode = new ColorVariants_1.ColorVariants(testColors, false);
|
71
|
+
const darkMode = new ColorVariants_1.ColorVariants(testColors, true);
|
72
|
+
// Same shade should be different between light and dark mode
|
73
|
+
(0, chai_1.expect)(lightMode['red-100']).to.not.equal(darkMode['red-100']);
|
74
|
+
(0, chai_1.expect)(lightMode['red-800']).to.not.equal(darkMode['red-800']);
|
75
|
+
});
|
76
|
+
it('should return base color for shade 500 in dark mode', () => {
|
77
|
+
(0, chai_1.expect)(colorVariants['red-500']).to.equal(testColors.red);
|
78
|
+
});
|
79
|
+
});
|
80
|
+
describe('Alpha shades', () => {
|
81
|
+
let colorVariants;
|
82
|
+
beforeEach(() => {
|
83
|
+
colorVariants = new ColorVariants_1.ColorVariants(testColors);
|
84
|
+
});
|
85
|
+
it('should generate alpha variants with slash notation', () => {
|
86
|
+
(0, chai_1.expect)(colorVariants['red/50']).to.be.a('string');
|
87
|
+
(0, chai_1.expect)(colorVariants['red/100']).to.be.a('string');
|
88
|
+
(0, chai_1.expect)(colorVariants['red/500']).to.be.a('string');
|
89
|
+
(0, chai_1.expect)(colorVariants['red/900']).to.be.a('string');
|
90
|
+
// Alpha variants should be different from base color
|
91
|
+
(0, chai_1.expect)(colorVariants['red/50']).to.not.equal(testColors.red);
|
92
|
+
(0, chai_1.expect)(colorVariants['red/500']).to.not.equal(testColors.red);
|
93
|
+
});
|
94
|
+
it('should handle all alpha shade values', () => {
|
95
|
+
const alphaShades = ['50', '100', '150', '200', '250', '300', '350', '400', '450', '500',
|
96
|
+
'550', '600', '650', '700', '750', '800', '850', '900', '950'];
|
97
|
+
alphaShades.forEach(shade => {
|
98
|
+
(0, chai_1.expect)(colorVariants[`blue/${shade}`]).to.be.a('string');
|
99
|
+
});
|
100
|
+
});
|
101
|
+
});
|
102
|
+
describe('Combined color shades and alpha', () => {
|
103
|
+
let colorVariants;
|
104
|
+
beforeEach(() => {
|
105
|
+
colorVariants = new ColorVariants_1.ColorVariants(testColors);
|
106
|
+
});
|
107
|
+
it('should handle color shade with alpha (color-shade/alpha)', () => {
|
108
|
+
(0, chai_1.expect)(colorVariants['red-600/50']).to.be.a('string');
|
109
|
+
(0, chai_1.expect)(colorVariants['blue-200/300']).to.be.a('string');
|
110
|
+
(0, chai_1.expect)(colorVariants['green-800/750']).to.be.a('string');
|
111
|
+
// Should be different from base color and plain shade
|
112
|
+
(0, chai_1.expect)(colorVariants['red-600/50']).to.not.equal(testColors.red);
|
113
|
+
(0, chai_1.expect)(colorVariants['red-600/50']).to.not.equal(colorVariants['red-600']);
|
114
|
+
});
|
115
|
+
});
|
116
|
+
describe('Caching', () => {
|
117
|
+
it('should cache computed colors for performance', () => {
|
118
|
+
const colorVariants = new ColorVariants_1.ColorVariants(testColors);
|
119
|
+
// Access the same color shade twice
|
120
|
+
const firstAccess = colorVariants['red-500'];
|
121
|
+
const secondAccess = colorVariants['red-500'];
|
122
|
+
// Should return the same reference (cached)
|
123
|
+
(0, chai_1.expect)(firstAccess).to.equal(secondAccess);
|
124
|
+
});
|
125
|
+
it('should cache different results for light and dark mode', () => {
|
126
|
+
const lightMode = new ColorVariants_1.ColorVariants(testColors, false);
|
127
|
+
const darkMode = new ColorVariants_1.ColorVariants(testColors, true);
|
128
|
+
const lightRed100 = lightMode['red-100'];
|
129
|
+
const darkRed100 = darkMode['red-100'];
|
130
|
+
(0, chai_1.expect)(lightRed100).to.not.equal(darkRed100);
|
131
|
+
});
|
132
|
+
});
|
133
|
+
describe('Invalid inputs', () => {
|
134
|
+
let colorVariants;
|
135
|
+
beforeEach(() => {
|
136
|
+
colorVariants = new ColorVariants_1.ColorVariants(testColors);
|
137
|
+
});
|
138
|
+
it('should return undefined for invalid color names', () => {
|
139
|
+
(0, chai_1.expect)(colorVariants['purples-500']).to.be.undefined;
|
140
|
+
(0, chai_1.expect)(colorVariants['yellows/50']).to.be.undefined;
|
141
|
+
});
|
142
|
+
it('should return base color for invalid shade numbers', () => {
|
143
|
+
(0, chai_1.expect)(colorVariants['red-999']).to.equal(testColors.red);
|
144
|
+
(0, chai_1.expect)(colorVariants['red-123']).to.equal(testColors.red);
|
145
|
+
});
|
146
|
+
it('should return base color for invalid alpha values', () => {
|
147
|
+
(0, chai_1.expect)(colorVariants['red/999']).to.equal(testColors.red);
|
148
|
+
(0, chai_1.expect)(colorVariants['red/25']).to.equal(testColors.red); // 25 is not a valid alpha shade
|
149
|
+
});
|
150
|
+
it('should return undefined for malformed patterns', () => {
|
151
|
+
(0, chai_1.expect)(colorVariants['red-']).to.be.undefined;
|
152
|
+
(0, chai_1.expect)(colorVariants['red/']).to.be.undefined;
|
153
|
+
(0, chai_1.expect)(colorVariants['-500']).to.be.undefined;
|
154
|
+
(0, chai_1.expect)(colorVariants['red-500-600']).to.be.undefined;
|
155
|
+
});
|
156
|
+
});
|
157
|
+
describe('Regex pattern matching', () => {
|
158
|
+
let colorVariants;
|
159
|
+
beforeEach(() => {
|
160
|
+
colorVariants = new ColorVariants_1.ColorVariants(testColors);
|
161
|
+
});
|
162
|
+
it('should match basic color names', () => {
|
163
|
+
(0, chai_1.expect)(colorVariants['red']).to.equal(testColors.red);
|
164
|
+
(0, chai_1.expect)(colorVariants['blue']).to.equal(testColors.blue);
|
165
|
+
});
|
166
|
+
it('should match color-shade pattern', () => {
|
167
|
+
(0, chai_1.expect)(colorVariants['red-500']).to.be.a('string');
|
168
|
+
(0, chai_1.expect)(colorVariants['blue-100']).to.be.a('string');
|
169
|
+
});
|
170
|
+
it('should match color/alpha pattern', () => {
|
171
|
+
(0, chai_1.expect)(colorVariants['red/50']).to.be.a('string');
|
172
|
+
(0, chai_1.expect)(colorVariants['blue/500']).to.be.a('string');
|
173
|
+
});
|
174
|
+
it('should match color-shade/alpha pattern', () => {
|
175
|
+
(0, chai_1.expect)(colorVariants['red-600/50']).to.be.a('string');
|
176
|
+
(0, chai_1.expect)(colorVariants['blue-200/750']).to.be.a('string');
|
177
|
+
});
|
178
|
+
it('should return undefined for invalid patterns', () => {
|
179
|
+
(0, chai_1.expect)(colorVariants['RED-500']).to.be.undefined; // uppercase
|
180
|
+
(0, chai_1.expect)(colorVariants['red_500']).to.be.undefined; // underscore
|
181
|
+
(0, chai_1.expect)(colorVariants['red.500']).to.be.undefined; // dot
|
182
|
+
});
|
183
|
+
});
|
184
|
+
describe('Legacy pattern support', () => {
|
185
|
+
let colorVariants;
|
186
|
+
beforeEach(() => {
|
187
|
+
colorVariants = new ColorVariants_1.ColorVariants(testColors);
|
188
|
+
});
|
189
|
+
it('should support legacy shade pattern (color-shade-number)', () => {
|
190
|
+
(0, chai_1.expect)(colorVariants['red-shade-500']).to.equal(testColors.red);
|
191
|
+
(0, chai_1.expect)(colorVariants['blue-shade-600']).to.be.a('string');
|
192
|
+
(0, chai_1.expect)(colorVariants['blue-shade-600']).to.not.equal(testColors.blue);
|
193
|
+
});
|
194
|
+
it('should support legacy alpha pattern (color-alpha-number)', () => {
|
195
|
+
(0, chai_1.expect)(colorVariants['red-alpha-50']).to.be.a('string');
|
196
|
+
(0, chai_1.expect)(colorVariants['blue-alpha-300']).to.be.a('string');
|
197
|
+
(0, chai_1.expect)(colorVariants['red-alpha-50']).to.not.equal(testColors.red);
|
198
|
+
});
|
199
|
+
it('should return base color for invalid legacy shade values', () => {
|
200
|
+
(0, chai_1.expect)(colorVariants['red-shade-999']).to.equal(testColors.red);
|
201
|
+
});
|
202
|
+
it('should return base color for invalid legacy alpha values', () => {
|
203
|
+
(0, chai_1.expect)(colorVariants['red-alpha-25']).to.equal(testColors.red);
|
204
|
+
});
|
205
|
+
});
|
206
|
+
describe('Color consistency', () => {
|
207
|
+
it('should produce consistent results across multiple instances', () => {
|
208
|
+
const colorVariants1 = new ColorVariants_1.ColorVariants(testColors);
|
209
|
+
const colorVariants2 = new ColorVariants_1.ColorVariants(testColors);
|
210
|
+
(0, chai_1.expect)(colorVariants1['red-500']).to.equal(colorVariants2['red-500']);
|
211
|
+
(0, chai_1.expect)(colorVariants1['blue/300']).to.equal(colorVariants2['blue/300']);
|
212
|
+
});
|
213
|
+
});
|
214
|
+
});
|
215
|
+
//# sourceMappingUR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UAAU,CAAC,CAAC,CAAC;QAC5E,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
@@ -1,11 +1,16 @@
|
|
1
1
|
export declare const commonStyles: ((({ margin }: {
|
2
2
|
margin: any;
|
3
|
-
}) =>
|
3
|
+
}) => import("polished/lib/types/style").Styles) | (({ padding }: {
|
4
4
|
padding: any;
|
5
|
-
}) =>
|
5
|
+
}) => import("polished/lib/types/style").Styles) | (({ borderRadius }: {
|
6
6
|
borderRadius: any;
|
7
7
|
}) => {
|
8
8
|
borderRadius: any;
|
9
|
+
}) | (({ backgroundImage, backgroundColor, backgroundColorOpacity, theme: { [backgroundColor]: overlayColor } }: any) => {
|
10
|
+
backgroundImage: string;
|
11
|
+
backgroundSize: string;
|
12
|
+
backgroundRepeat: string;
|
13
|
+
backgroundPosition: string;
|
9
14
|
}) | (({ hovered }: {
|
10
15
|
hovered: any;
|
11
16
|
}) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"commonStyles.d.ts","sourceRoot":"","sources":["../../../../src/helpers/commonStyles.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY
|
1
|
+
{"version":3,"file":"commonStyles.d.ts","sourceRoot":"","sources":["../../../../src/helpers/commonStyles.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;;;;;;iHAIqG,GAAG;;;;;;;;;;;;;;;KAchI,CAAC;AAEF,eAAe,YAAY,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/index.tsx"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/index.tsx"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
exports.ColorVariants = void 0;
|
17
18
|
__exportStar(require("./communicationBridgeHelper"), exports);
|
18
19
|
__exportStar(require("./handlebarHelpers"), exports);
|
19
20
|
__exportStar(require("./functions"), exports);
|
@@ -28,4 +29,6 @@ __exportStar(require("./pathHelper"), exports);
|
|
28
29
|
__exportStar(require("./iconHelper"), exports);
|
29
30
|
__exportStar(require("./i18ninstance"), exports);
|
30
31
|
__exportStar(require("./conditionHelper"), exports);
|
32
|
+
var ColorVariants_1 = require("./ColorVariants");
|
33
|
+
Object.defineProperty(exports, "ColorVariants", { enumerable: true, get: function () { return ColorVariants_1.ColorVariants; } });
|
31
34
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/helpers/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/helpers/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,qDAAmC;AACnC,8CAA4B;AAC5B,iDAA+B;AAC/B,iDAA+B;AAC/B,2CAAyB;AACzB,gDAA8B;AAC9B,gDAA8B;AAC9B,8CAA4B;AAC5B,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,iDAA+B;AAC/B,oDAAkC;AAClC,iDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
|