pixelize-design-library 2.2.144 → 2.2.146
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/Components/Apexcharts/ApexBarChart/ApexBarChart.js +72 -18
- package/dist/Components/Apexcharts/ApexLineChart/ApexLineChart.js +37 -26
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.js +168 -121
- package/dist/Components/Apexcharts/ApexPolarCharts/ApexPolarCharts.js +93 -44
- package/dist/Components/Common/ErrorComponent.d.ts +2 -2
- package/dist/Components/Common/ErrorComponent.js +12 -6
- package/dist/Components/Common/Label.d.ts +2 -2
- package/dist/Components/Common/Label.js +8 -2
- package/dist/Components/DatePicker/CalendarPanel.js +2 -2
- package/dist/Components/FilterSidebar/FilterSidebar.js +8 -6
- package/dist/Components/Input/Input/Input.d.ts +1 -1
- package/dist/Components/Input/Input/Input.js +29 -6
- package/dist/Components/Loading/Loading.js +4 -2
- package/dist/Components/PinInputs/PinInputs.d.ts +2 -2
- package/dist/Components/PinInputs/PinInputs.js +19 -4
- package/dist/Components/ProductCard/ProductPrice.js +2 -2
- package/dist/Components/ProductCard/ProductTags.js +7 -3
- package/dist/Components/ProfileCard/ProfileCard.js +8 -4
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +4 -4
- package/dist/Components/SelectSearch/SelectSearch.js +14 -4
- package/dist/Components/SideBar/SideBar.d.ts +1 -1
- package/dist/Components/SideBar/SideBar.js +3 -1
- package/dist/Components/SideBar/SideBarProps.d.ts +11 -0
- package/dist/Components/SideBar/components/OtherApps.d.ts +4 -0
- package/dist/Components/SideBar/components/OtherApps.js +38 -0
- package/dist/Components/SideBar/components/OtherApps.test.d.ts +1 -0
- package/dist/Components/SideBar/components/OtherApps.test.js +112 -0
- package/dist/Components/Table/Components/TableHeader.js +3 -3
- package/dist/Components/Table/LeftFilterPane.js +5 -5
- package/dist/Components/Timeline/Timeline.js +15 -15
- package/dist/Components/Trail/TrailWorks.js +13 -206
- package/dist/Theme/chartColorsFromTheme.d.ts +18 -0
- package/dist/Theme/chartColorsFromTheme.js +39 -0
- package/dist/Theme/chartColorsFromTheme.test.d.ts +1 -0
- package/dist/Theme/chartColorsFromTheme.test.js +35 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.getDefaultSeriesColors = getDefaultSeriesColors;
|
|
15
|
+
exports.mergeChartTitleStyle = mergeChartTitleStyle;
|
|
16
|
+
exports.chartAxisLabelColor = chartAxisLabelColor;
|
|
17
|
+
exports.chartTooltipBackground = chartTooltipBackground;
|
|
18
|
+
exports.chartTooltipForeground = chartTooltipForeground;
|
|
19
|
+
/** Default multi-series palette for Apex charts (strings required by ApexCharts). */
|
|
20
|
+
function getDefaultSeriesColors(colors) {
|
|
21
|
+
return [
|
|
22
|
+
colors.primary[500],
|
|
23
|
+
colors.semantic.error[500],
|
|
24
|
+
colors.semantic.success[500],
|
|
25
|
+
colors.orange[500],
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
function mergeChartTitleStyle(colors, titleStyle) {
|
|
29
|
+
return __assign({ fontSize: "16px", fontWeight: 600, fontFamily: "Arial", color: colors.primary[500] }, titleStyle);
|
|
30
|
+
}
|
|
31
|
+
function chartAxisLabelColor(colors) {
|
|
32
|
+
return colors.gray[700];
|
|
33
|
+
}
|
|
34
|
+
function chartTooltipBackground(colors) {
|
|
35
|
+
return colors.gray[700];
|
|
36
|
+
}
|
|
37
|
+
function chartTooltipForeground(colors) {
|
|
38
|
+
return colors.white;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var chartColorsFromTheme_1 = require("./chartColorsFromTheme");
|
|
4
|
+
var mockColors = {
|
|
5
|
+
primary: { 500: "#111111" },
|
|
6
|
+
semantic: {
|
|
7
|
+
error: { 500: "#222222" },
|
|
8
|
+
success: { 500: "#333333" },
|
|
9
|
+
},
|
|
10
|
+
orange: { 500: "#444444" },
|
|
11
|
+
gray: { 700: "#555555" },
|
|
12
|
+
white: "#ffffff",
|
|
13
|
+
};
|
|
14
|
+
describe("chartColorsFromTheme", function () {
|
|
15
|
+
it("getDefaultSeriesColors returns four theme hues", function () {
|
|
16
|
+
expect((0, chartColorsFromTheme_1.getDefaultSeriesColors)(mockColors)).toEqual([
|
|
17
|
+
"#111111",
|
|
18
|
+
"#222222",
|
|
19
|
+
"#333333",
|
|
20
|
+
"#444444",
|
|
21
|
+
]);
|
|
22
|
+
});
|
|
23
|
+
it("mergeChartTitleStyle applies primary then overrides", function () {
|
|
24
|
+
expect((0, chartColorsFromTheme_1.mergeChartTitleStyle)(mockColors, { fontSize: "20px" })).toMatchObject({
|
|
25
|
+
color: "#111111",
|
|
26
|
+
fontSize: "20px",
|
|
27
|
+
fontWeight: 600,
|
|
28
|
+
fontFamily: "Arial",
|
|
29
|
+
});
|
|
30
|
+
expect((0, chartColorsFromTheme_1.mergeChartTitleStyle)(mockColors, { color: "#999999" }).color).toBe("#999999");
|
|
31
|
+
});
|
|
32
|
+
it("chartAxisLabelColor reads gray scale", function () {
|
|
33
|
+
expect((0, chartColorsFromTheme_1.chartAxisLabelColor)(mockColors)).toBe("#555555");
|
|
34
|
+
});
|
|
35
|
+
});
|