@appquality/unguess-design-system 2.12.36 → 2.12.37
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/.github/workflows/storybook.yml +2 -2
- package/CHANGELOG.md +15 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +37 -19
- package/build/stories/theme/charts.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ name: Publish storybook
|
|
|
5
5
|
# The event that will trigger the action
|
|
6
6
|
on:
|
|
7
7
|
push:
|
|
8
|
-
branches: [
|
|
8
|
+
branches: [develop]
|
|
9
9
|
# pull_request:
|
|
10
10
|
# branches: [master]
|
|
11
11
|
# Allows you to run this workflow manually from the Actions tab
|
|
@@ -28,7 +28,7 @@ jobs:
|
|
|
28
28
|
uses: actions/setup-node@v2
|
|
29
29
|
with:
|
|
30
30
|
node-version: "14"
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
- name: Publish storybook
|
|
33
33
|
id: storybook
|
|
34
34
|
run: |
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# v2.12.37 (Thu Nov 24 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Pull request develop master [#113](https://github.com/AppQuality/unguess-design-system/pull/113) ([@d-beezee](https://github.com/d-beezee) [@marcbon](https://github.com/marcbon))
|
|
6
|
+
- feat(charts): export charts colors [#112](https://github.com/AppQuality/unguess-design-system/pull/112) ([@marcbon](https://github.com/marcbon))
|
|
7
|
+
- ci: Use develop branch for storybook publish [#111](https://github.com/AppQuality/unguess-design-system/pull/111) ([@d-beezee](https://github.com/d-beezee))
|
|
8
|
+
|
|
9
|
+
#### Authors: 2
|
|
10
|
+
|
|
11
|
+
- [@d-beezee](https://github.com/d-beezee)
|
|
12
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
1
16
|
# v2.12.36 (Mon Nov 21 2022)
|
|
2
17
|
|
|
3
18
|
#### ⚠️ Pushed to `master`
|
package/build/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from "./stories/charts/halfPie";
|
|
|
21
21
|
export * from "./stories/charts/stream";
|
|
22
22
|
export * from "./stories/charts/sunburst";
|
|
23
23
|
export * from "./stories/charts/waffle";
|
|
24
|
+
export { CHARTS_COLOR_PALETTE } from "./stories/theme/charts";
|
|
24
25
|
export * from "./stories/close";
|
|
25
26
|
export * from "./stories/counter";
|
|
26
27
|
export * from "./stories/drawers";
|
package/build/index.js
CHANGED
|
@@ -1076,7 +1076,7 @@ var DEFAULT_CHARTS_THEME = {
|
|
|
1076
1076
|
tableCellValue: {},
|
|
1077
1077
|
},
|
|
1078
1078
|
};
|
|
1079
|
-
var
|
|
1079
|
+
var CHARTS_COLOR_PALETTE = {
|
|
1080
1080
|
darkPine: "#02807A",
|
|
1081
1081
|
lightGrey: theme.palette.grey[200],
|
|
1082
1082
|
darkGrey: theme.palette.grey[600],
|
|
@@ -1091,25 +1091,42 @@ var chartColors = {
|
|
|
1091
1091
|
sky: "#3392CE",
|
|
1092
1092
|
};
|
|
1093
1093
|
var CHARTS_COLOR_SCHEME_MONO = [
|
|
1094
|
-
|
|
1095
|
-
|
|
1094
|
+
CHARTS_COLOR_PALETTE.darkPine,
|
|
1095
|
+
CHARTS_COLOR_PALETTE.lightGrey,
|
|
1096
|
+
];
|
|
1097
|
+
[
|
|
1098
|
+
CHARTS_COLOR_PALETTE.mattone,
|
|
1099
|
+
CHARTS_COLOR_PALETTE.gubbioLight,
|
|
1100
|
+
CHARTS_COLOR_PALETTE.blueRoyal,
|
|
1101
|
+
CHARTS_COLOR_PALETTE.darkPine,
|
|
1102
|
+
CHARTS_COLOR_PALETTE.lightGrey,
|
|
1096
1103
|
];
|
|
1097
1104
|
var CHARTS_COLOR_SCHEME_CATEGORICAL_5 = [
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1105
|
+
CHARTS_COLOR_PALETTE.greenLight,
|
|
1106
|
+
CHARTS_COLOR_PALETTE.blue,
|
|
1107
|
+
CHARTS_COLOR_PALETTE.fucsia,
|
|
1108
|
+
CHARTS_COLOR_PALETTE.violet,
|
|
1109
|
+
CHARTS_COLOR_PALETTE.orchidea, // Orchidea 300
|
|
1103
1110
|
];
|
|
1104
1111
|
var CHARTS_COLOR_SCHEME_CATEGORICAL_8_A = [
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1112
|
+
CHARTS_COLOR_PALETTE.darkPine,
|
|
1113
|
+
CHARTS_COLOR_PALETTE.fucsia,
|
|
1114
|
+
CHARTS_COLOR_PALETTE.violet,
|
|
1115
|
+
CHARTS_COLOR_PALETTE.greenLight,
|
|
1116
|
+
CHARTS_COLOR_PALETTE.mattone,
|
|
1117
|
+
CHARTS_COLOR_PALETTE.sky,
|
|
1118
|
+
CHARTS_COLOR_PALETTE.orchidea,
|
|
1119
|
+
CHARTS_COLOR_PALETTE.blue, // Blue 900
|
|
1120
|
+
];
|
|
1121
|
+
[
|
|
1122
|
+
CHARTS_COLOR_PALETTE.sky,
|
|
1123
|
+
CHARTS_COLOR_PALETTE.orchidea,
|
|
1124
|
+
CHARTS_COLOR_PALETTE.blue,
|
|
1125
|
+
CHARTS_COLOR_PALETTE.darkPine,
|
|
1126
|
+
CHARTS_COLOR_PALETTE.fucsia,
|
|
1127
|
+
CHARTS_COLOR_PALETTE.violet,
|
|
1128
|
+
CHARTS_COLOR_PALETTE.greenLight,
|
|
1129
|
+
CHARTS_COLOR_PALETTE.mattone, // Mattone 900
|
|
1113
1130
|
];
|
|
1114
1131
|
|
|
1115
1132
|
var ChartContainer = styled__default["default"].div(templateObject_1$16 || (templateObject_1$16 = __makeTemplateObject(["\n height: ", ";\n width: ", ";\n"], ["\n height: ", ";\n width: ", ";\n"])), function (_a) {
|
|
@@ -1133,7 +1150,7 @@ var CustomBulletChartMarkers = function (_a) {
|
|
|
1133
1150
|
|
|
1134
1151
|
var CustomMeasure = function (_a) {
|
|
1135
1152
|
var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
|
|
1136
|
-
return (jsxRuntime.jsx("rect", { x: x + 2, y: y + 2, width: width - 4, height: height - 4, fill:
|
|
1153
|
+
return (jsxRuntime.jsx("rect", { x: x + 2, y: y + 2, width: width - 4, height: height - 4, fill: CHARTS_COLOR_PALETTE.darkGrey }));
|
|
1137
1154
|
};
|
|
1138
1155
|
|
|
1139
1156
|
var CustomTooltip = function (_a) {
|
|
@@ -1152,10 +1169,10 @@ var BulletChart = function (_a) {
|
|
|
1152
1169
|
measures: values,
|
|
1153
1170
|
markers: values,
|
|
1154
1171
|
},
|
|
1155
|
-
], measureComponent: CustomMeasure, markerColors:
|
|
1172
|
+
], measureComponent: CustomMeasure, markerColors: CHARTS_COLOR_PALETTE.darkPine, markerComponent: function (_a) {
|
|
1156
1173
|
_a.size; var markerProps = __rest(_a, ["size"]);
|
|
1157
1174
|
return (jsxRuntime.jsx(CustomBulletChartMarkers, __assign({}, markerProps, { size: 4 })));
|
|
1158
|
-
}, tooltip: CustomTooltip, rangeColors:
|
|
1175
|
+
}, tooltip: CustomTooltip, rangeColors: CHARTS_COLOR_PALETTE.lightGrey, rangeBorderColor: "white", rangeBorderWidth: 2, margin: { top: 0, right: 5, bottom: -1, left: 0 } }) })));
|
|
1159
1176
|
};
|
|
1160
1177
|
var templateObject_1$15;
|
|
1161
1178
|
|
|
@@ -3482,6 +3499,7 @@ exports.Breadcrumb = Breadcrumb;
|
|
|
3482
3499
|
exports.BulletChart = BulletChart;
|
|
3483
3500
|
exports.Button = Button;
|
|
3484
3501
|
exports.ButtonGroup = ButtonGroup;
|
|
3502
|
+
exports.CHARTS_COLOR_PALETTE = CHARTS_COLOR_PALETTE;
|
|
3485
3503
|
exports.CampaignCard = CampaignCard;
|
|
3486
3504
|
exports.Caption = Caption;
|
|
3487
3505
|
exports.Card = Card;
|
|
@@ -2,7 +2,7 @@ import { CompleteTheme } from "@nivo/core";
|
|
|
2
2
|
interface UnguessChartsTheme extends CompleteTheme {
|
|
3
3
|
}
|
|
4
4
|
export declare const DEFAULT_CHARTS_THEME: UnguessChartsTheme;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const CHARTS_COLOR_PALETTE: {
|
|
6
6
|
darkPine: string;
|
|
7
7
|
lightGrey: string;
|
|
8
8
|
darkGrey: string;
|