@eleventheye/asui 2.11.3 → 2.12.1

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.
@@ -196,18 +196,30 @@ export type ASChartBarTheme = {
196
196
  secondaryColor: string;
197
197
  tertiaryColor: string;
198
198
  };
199
+ export type PerSizeStyles = {
200
+ [ComponentSize.Large]: string;
201
+ [ComponentSize.Medium]: string;
202
+ [ComponentSize.Small]: string;
203
+ };
199
204
  export type ASChartDonutTheme = {
200
205
  chartdonutTextColor?: string;
201
206
  chartdonutTextFontSize?: string;
207
+ chartdonutTextFontSizes?: PerSizeStyles;
202
208
  chartdonutTextFontWeight?: string;
209
+ chartdonutTextFontWeights?: PerSizeStyles;
203
210
  chartdonutTextFontFamily?: string;
204
211
  chartdonutTextShadow?: string;
212
+ chartdonutTextShadows?: PerSizeStyles;
205
213
  chartdonutSubTextColor?: string;
206
214
  chartdonutSubTextFontSize?: string;
215
+ chartdonutSubTextFontSizes?: PerSizeStyles;
207
216
  chartdonutSubTextFontWeight?: string;
217
+ chartdonutSubTextFontWeights?: PerSizeStyles;
208
218
  chartdonutSubTextFontFamily?: string;
209
219
  chartdonutSubTextShadow?: string;
220
+ chartdonutSubTextShadows?: PerSizeStyles;
210
221
  chartdonutSubTextVerticalOffset?: string;
222
+ chartdonutSubTextVerticalOffsets?: PerSizeStyles;
211
223
  chartdonutColor: string;
212
224
  chartdonutInnerTrackColor?: string;
213
225
  chartdonutOuterTrackColor?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ASUI.types.d.ts","sourceRoot":"","sources":["../../src/apptypes/ASUI.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;CAOb,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAExE,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC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O,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAM1D,oBAAoB,CAAC,EAAE,aAAa,CAAC;IAOrC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAO3B,sCAAsC,CAAC,EAAE,OAAO,CAAC;IAMjD,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAMnC,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ASChartDonut.d.ts","sourceRoot":"","sources":["../../../src/aschart/donut/ASChartDonut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAoBzD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiJ7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ASChartDonut.d.ts","sourceRoot":"","sources":["../../../src/aschart/donut/ASChartDonut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAuFzD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2N7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -5,61 +5,133 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const apptypes_1 = require("../../apptypes");
7
7
  const astheme_1 = tslib_1.__importDefault(require("../../astheme"));
8
+ const donutHelpers_1 = require("./donutHelpers");
8
9
  const styles_1 = require("./styles");
9
- const DonutSizes = [502, 480, 470, 460];
10
- const QuaternaryTrack = 'M161 90A71 71 0 0090 19 71 71 0 0019 90a71 71 0 0071 71 71 71 0 0071-71Z';
11
- const TertiaryTrack = 'M164 90A74 74 0 0090 16 74 74 0 0016 90a74 74 0 0074 74 74 74 0 0074-74Z';
12
- const SecondaryTrack = 'M167 90A77 77 0 0090 13 77 77 0 0013 90a77 77 0 0077 77 77 77 0 0077-77Z';
13
- const PrimaryTrack = 'M170 90A80 80 0 0090 10 80 80 0 0010 90a80 80 0 0080 80 80 80 0 0080-80Z';
10
+ const DonutArraySize = 500;
11
+ const DonutDashArrayOffsetLists = {
12
+ [apptypes_1.ComponentSize.Large]: [125, 200, 275, 350],
13
+ [apptypes_1.ComponentSize.Medium]: [125, 181.3, 238, 294],
14
+ [apptypes_1.ComponentSize.Small]: [125, 162.5, 200, 237.5],
15
+ };
16
+ const TrackDashArrayOffsetLists = {
17
+ [apptypes_1.ComponentSize.Large]: [122, 159, 197, 235],
18
+ [apptypes_1.ComponentSize.Medium]: [122, 152, 180, 206.5],
19
+ [apptypes_1.ComponentSize.Small]: [122, 140, 159, 178],
20
+ };
21
+ const DonutPaths = {
22
+ QuaternaryPaths: {
23
+ [apptypes_1.ComponentSize.Large]: 'M152 120A32 32 0 00120 88 32 32 0 0088 120a32 32 0 0032 32 32 32 0 0032-32Z',
24
+ [apptypes_1.ComponentSize.Medium]: 'M164 120A44 44 0 00120 76 44 44 0 0076 120a44 44 0 0044 44 44 44 0 0044-44Z',
25
+ [apptypes_1.ComponentSize.Small]: 'M176 120A56 56 0 00120 64 56 56 0 0064 120a56 56 0 0056 56 56 56 0 0056-56Z',
26
+ },
27
+ TertiaryPaths: {
28
+ [apptypes_1.ComponentSize.Large]: 'M168 120A48 48 0 00120 72 48 48 0 0072 120a48 48 0 0048 48 48 48 0 0048-48Z',
29
+ [apptypes_1.ComponentSize.Medium]: 'M176 120A56 56 0 00120 64 56 56 0 0064 120a56 56 0 0056 56 56 56 0 0056-56Z',
30
+ [apptypes_1.ComponentSize.Small]: 'M184 120A64 64 0 00120 56 64 64 0 0056 120a64 64 0 0064 64 64 64 0 0064-64Z',
31
+ },
32
+ SecondaryPaths: {
33
+ [apptypes_1.ComponentSize.Large]: 'M184 120A64 64 0 00120 56 64 64 0 0056 120a64 64 0 0064 64 64 64 0 0064-64Z',
34
+ [apptypes_1.ComponentSize.Medium]: 'M188 120A68 68 0 00120 52 68 68 0 0052 120a68 68 0 0068 68 68 68 0 0068-68Z',
35
+ [apptypes_1.ComponentSize.Small]: 'M192 120A72 72 0 00120 48 72 72 0 0048 120a72 72 0 0072 72 72 72 0 0072-72Z',
36
+ },
37
+ PrimaryPaths: {
38
+ [apptypes_1.ComponentSize.Large]: 'M200 120A80 80 0 00120 40 80 80 0 0040 120a80 80 0 0080 80 80 80 0 0080-80Z',
39
+ [apptypes_1.ComponentSize.Medium]: 'M200 120A80 80 0 00120 40 80 80 0 0040 120a80 80 0 0080 80 80 80 0 0080-80Z',
40
+ [apptypes_1.ComponentSize.Small]: 'M200 120A80 80 0 00120 40 80 80 0 0040 120a80 80 0 0080 80 80 80 0 0080-80Z',
41
+ },
42
+ };
43
+ const TrackPaths = {
44
+ QuaternaryTrackPaths: {
45
+ [apptypes_1.ComponentSize.Large]: 'M176 120A56 56 0 00120 64 56 56 0 0064 120a56 56 0 0056 56 56 56 0 0056-56Z',
46
+ [apptypes_1.ComponentSize.Medium]: 'M182 120A62 62 0 00120 58 62 62 0 0058 120a62 62 0 0062 62 62 62 0 0062-62Z',
47
+ [apptypes_1.ComponentSize.Small]: 'M188 120A68 68 0 00120 52 68 68 0 0052 120a68 68 0 0068 68 68 68 0 0068-68Z',
48
+ },
49
+ TertiaryTrackPaths: {
50
+ [apptypes_1.ComponentSize.Large]: 'M184 120A64 64 0 00120 56 64 64 0 0056 120a64 64 0 0064 64 64 64 0 0064-64Z',
51
+ [apptypes_1.ComponentSize.Medium]: 'M188 120A68 68 0 00120 52 68 68 0 0052 120a68 68 0 0068 68 68 68 0 0068-68Z',
52
+ [apptypes_1.ComponentSize.Small]: 'M192 120A72 72 0 00120 48 72 72 0 0048 120a72 72 0 0072 72 72 72 0 0072-72Z',
53
+ },
54
+ SecondaryTrackPaths: {
55
+ [apptypes_1.ComponentSize.Large]: 'M192 120A72 72 0 00120 48 72 72 0 0048 120a72 72 0 0072 72 72 72 0 0072-72Z',
56
+ [apptypes_1.ComponentSize.Medium]: 'M194 120A74 74 0 00120 46 74 74 0 0046 120a74 74 0 0074 74 74 74 0 0074-74Z',
57
+ [apptypes_1.ComponentSize.Small]: 'M196 120A76 76 0 00120 44 76 76 0 0044 120a76 76 0 0076 76 76 76 0 0076-76Z',
58
+ },
59
+ PrimaryTrackPaths: {
60
+ [apptypes_1.ComponentSize.Large]: 'M200 120A80 80 0 00120 40 80 80 0 0040 120a80 80 0 0080 80 80 80 0 0080-80Z',
61
+ [apptypes_1.ComponentSize.Medium]: 'M200 120A80 80 0 00120 40 80 80 0 0040 120a80 80 0 0080 80 80 80 0 0080-80Z',
62
+ [apptypes_1.ComponentSize.Small]: 'M200 120A80 80 0 00120 40 80 80 0 0040 120a80 80 0 0080 80 80 80 0 0080-80Z',
63
+ },
64
+ };
14
65
  const ASChartDonut = ({ className = '', value = 0, secondaryValue = -1, tertiaryValue = -1, quaternaryValue = -1, style = undefined, size = apptypes_1.ComponentSize.Medium, donutSize = '200px', donutLabel = undefined, donutSubLabel = undefined, theme = astheme_1.default, }) => {
66
+ const TrackDashArrayOffsets = (0, react_1.useMemo)(() => TrackDashArrayOffsetLists[size], [size]);
67
+ const QuaternaryTrack = (0, react_1.useMemo)(() => TrackPaths.QuaternaryTrackPaths[size], [size]);
68
+ const TertiaryTrack = (0, react_1.useMemo)(() => TrackPaths.TertiaryTrackPaths[size], [size]);
69
+ const SecondaryTrack = (0, react_1.useMemo)(() => TrackPaths.SecondaryTrackPaths[size], [size]);
70
+ const PrimaryTrack = (0, react_1.useMemo)(() => TrackPaths.PrimaryTrackPaths[size], [size]);
71
+ const DonutDashArrayOffsets = (0, react_1.useMemo)(() => DonutDashArrayOffsetLists[size], [size]);
72
+ const QuaternaryDonut = (0, react_1.useMemo)(() => DonutPaths.QuaternaryPaths[size], [size]);
73
+ const TertiaryDonut = (0, react_1.useMemo)(() => DonutPaths.TertiaryPaths[size], [size]);
74
+ const SecondaryDonut = (0, react_1.useMemo)(() => DonutPaths.SecondaryPaths[size], [size]);
75
+ const PrimaryDonut = (0, react_1.useMemo)(() => DonutPaths.PrimaryPaths[size], [size]);
15
76
  const primaryPercentageValue = (0, react_1.useMemo)(() => {
16
- return DonutSizes[0] - Math.round((value / 100) * (DonutSizes[0] - 126));
17
- }, [value]);
77
+ return DonutArraySize - (value / 100) * (DonutArraySize - DonutDashArrayOffsets[0]);
78
+ }, [value, DonutArraySize, DonutDashArrayOffsets]);
18
79
  const secondaryPercentageValue = (0, react_1.useMemo)(() => {
19
- return DonutSizes[1] - Math.round((secondaryValue / 100) * (DonutSizes[1] - 132));
20
- }, [secondaryValue]);
80
+ return DonutArraySize - (secondaryValue / 100) * (DonutArraySize - DonutDashArrayOffsets[1]);
81
+ }, [secondaryValue, DonutArraySize, DonutDashArrayOffsets]);
21
82
  const tertiaryPercentageValue = (0, react_1.useMemo)(() => {
22
- return DonutSizes[2] - Math.round((tertiaryValue / 100) * (DonutSizes[2] - 150));
23
- }, [tertiaryValue, DonutSizes[2]]);
83
+ return DonutArraySize - (tertiaryValue / 100) * (DonutArraySize - DonutDashArrayOffsets[2]);
84
+ }, [tertiaryValue, DonutArraySize, DonutDashArrayOffsets]);
24
85
  const quaternaryPercentageValue = (0, react_1.useMemo)(() => {
25
- return DonutSizes[3] - Math.round((quaternaryValue / 100) * (DonutSizes[3] - 168));
26
- }, [quaternaryValue, DonutSizes[3]]);
27
- const [trackPath, setTrackPath] = (0, react_1.useState)(PrimaryTrack);
86
+ return DonutArraySize - (quaternaryValue / 100) * (DonutArraySize - DonutDashArrayOffsets[3]);
87
+ }, [quaternaryValue, DonutArraySize, DonutDashArrayOffsets]);
88
+ const [trackPath, setTrackPath] = (0, react_1.useState)(PrimaryDonut);
28
89
  const [donutThickness, setDonutThickness] = (0, react_1.useState)(12);
29
- const [trackThickness, setTrackThickness] = (0, react_1.useState)(14);
90
+ const [trackThickness, setTrackThickness] = (0, react_1.useState)(size === apptypes_1.ComponentSize.Large ? 14 : size === apptypes_1.ComponentSize.Medium ? 10 : 6);
30
91
  const [trackDasharray, setTrackDasharray] = (0, react_1.useState)(503);
31
92
  const [trackOffset, setTrackOffset] = (0, react_1.useState)(126);
32
93
  (0, react_1.useEffect)(() => {
33
94
  if (quaternaryValue > 0) {
34
95
  setTrackPath(QuaternaryTrack);
35
- setTrackThickness(26);
36
- setDonutThickness(6);
37
- setTrackDasharray(503);
38
- setTrackOffset(166);
96
+ setTrackThickness((0, donutHelpers_1.getDonutTrackThickness)(size, 4));
97
+ setDonutThickness((0, donutHelpers_1.getDonutThickness)(size));
98
+ setTrackDasharray(DonutArraySize);
99
+ setTrackOffset(TrackDashArrayOffsets[3]);
39
100
  }
40
101
  else if (tertiaryValue > 0) {
41
102
  setTrackPath(TertiaryTrack);
42
- setTrackThickness(22);
43
- setDonutThickness(6);
44
- setTrackDasharray(503);
45
- setTrackOffset(153);
103
+ setTrackThickness((0, donutHelpers_1.getDonutTrackThickness)(size, 3));
104
+ setDonutThickness((0, donutHelpers_1.getDonutThickness)(size));
105
+ setTrackDasharray(DonutArraySize);
106
+ setTrackOffset(TrackDashArrayOffsets[2]);
46
107
  }
47
108
  else if (secondaryValue > 0) {
48
109
  setTrackPath(SecondaryTrack);
49
- setTrackThickness(16);
50
- setDonutThickness(6);
51
- setTrackDasharray(504);
52
- setTrackOffset(139);
110
+ setTrackThickness((0, donutHelpers_1.getDonutTrackThickness)(size, 2));
111
+ setDonutThickness((0, donutHelpers_1.getDonutThickness)(size));
112
+ setTrackDasharray(DonutArraySize);
113
+ setTrackOffset(TrackDashArrayOffsets[1]);
53
114
  }
54
115
  else {
55
116
  setTrackPath(PrimaryTrack);
56
- const thickness = size === apptypes_1.ComponentSize.Medium ? 12 : size === apptypes_1.ComponentSize.Small ? 8 : 16;
57
- setTrackDasharray(504);
58
- setTrackOffset(126);
59
- setDonutThickness(thickness);
60
- setTrackThickness(thickness + 2);
117
+ setTrackDasharray(DonutArraySize);
118
+ setTrackOffset(TrackDashArrayOffsets[0]);
119
+ setTrackThickness((0, donutHelpers_1.getDonutTrackThickness)(size, 1));
120
+ setDonutThickness((0, donutHelpers_1.getDonutThickness)(size));
61
121
  }
62
- }, [value, secondaryValue, tertiaryValue, quaternaryValue, size]);
63
- return ((0, jsx_runtime_1.jsxs)(styles_1.DonutChart, { className: className, theme: theme, style: style, "$size": donutSize, children: [donutLabel && ((0, jsx_runtime_1.jsxs)(styles_1.DonutChartText, { theme: theme.chartdonut, children: [donutLabel, (0, jsx_runtime_1.jsx)(styles_1.DonutChartSubText, { theme: theme.chartdonut, children: donutSubLabel })] })), (0, jsx_runtime_1.jsxs)(styles_1.DonutChartSvg, { width: "100%", viewBox: "0 0 180 180", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleOuterTrack, { theme: theme.chartdonut, d: trackPath, strokeWidth: trackThickness, "$dasharray": trackDasharray, "$dashoffset": trackOffset, fill: "none" }), (0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleInnerTrack, { theme: theme.chartdonut, d: trackPath, strokeWidth: trackThickness ? trackThickness - 2 : 8, "$dasharray": trackDasharray, "$dashoffset": trackOffset ? trackOffset + 2 : 8, fill: "none" }), (0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("title", { children: "ASChartDonut" }), (0, jsx_runtime_1.jsx)(styles_1.DonutChartCircle, { "$offset": primaryPercentageValue, theme: theme.chartdonut, d: PrimaryTrack, strokeWidth: donutThickness, fill: "none" })] }), secondaryPercentageValue > -1 && ((0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleSecondary, { "$offset": secondaryPercentageValue, theme: theme.chartdonut, d: "M164 90A74 74 0 0090 16 74 74 0 0016 90a74 74 0 0074 74 74 74 0 0074-74Z", strokeWidth: 6, fill: "none" })), quaternaryPercentageValue > -1 && ((0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleTertiary, { "$offset": tertiaryPercentageValue, theme: theme.chartdonut, d: "M158 90A68 68 0 0090 22 68 68 0 0022 90a68 68 0 0068 68 68 68 0 0068-68Z", strokeWidth: 6, fill: "none" })), quaternaryPercentageValue > -1 && ((0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleQuaternary, { "$offset": quaternaryPercentageValue, theme: theme.chartdonut, d: "M152 90A62 62 0 0090 28 62 62 0 0028 90a62 62 0 0062 62 62 62 0 0062-62Z", strokeWidth: 6, fill: "none" }))] })] }));
122
+ }, [
123
+ value,
124
+ secondaryValue,
125
+ tertiaryValue,
126
+ quaternaryValue,
127
+ size,
128
+ QuaternaryTrack,
129
+ DonutArraySize,
130
+ TrackDashArrayOffsets,
131
+ TertiaryTrack,
132
+ SecondaryDonut,
133
+ PrimaryTrack,
134
+ ]);
135
+ return ((0, jsx_runtime_1.jsxs)(styles_1.DonutChart, { className: className, theme: theme, style: style, "$size": donutSize, children: [donutLabel && ((0, jsx_runtime_1.jsxs)(styles_1.DonutChartText, { theme: theme.chartdonut, "$size": size, children: [donutLabel, (0, jsx_runtime_1.jsx)(styles_1.DonutChartSubText, { theme: theme.chartdonut, "$size": size, children: donutSubLabel })] })), (0, jsx_runtime_1.jsxs)(styles_1.DonutChartSvg, { width: "100%", viewBox: "0 0 240 240", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleOuterTrack, { theme: theme.chartdonut, d: trackPath, strokeWidth: trackThickness, "$dasharray": trackDasharray, "$dashoffset": trackOffset + 1, fill: "none" }), (0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleInnerTrack, { theme: theme.chartdonut, d: trackPath, strokeWidth: trackThickness ? trackThickness - 2 : 8, "$dasharray": trackDasharray, "$dashoffset": trackOffset ? trackOffset + 3 : 8, fill: "none" }), (0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("title", { children: "ASChartDonut" }), (0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleBorder, { "$alternateColors": true, "$offset": DonutDashArrayOffsets[0], theme: theme.chartdonut, d: PrimaryDonut, strokeWidth: donutThickness, fill: "none" }), (0, jsx_runtime_1.jsx)(styles_1.DonutChartCircle, { "$offset": primaryPercentageValue, theme: theme.chartdonut, d: PrimaryDonut, strokeWidth: donutThickness, fill: "none" })] }), secondaryPercentageValue > -1 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleSecondaryBorder, { "$alternateColors": true, "$offset": DonutDashArrayOffsets[1], theme: theme.chartdonut, d: SecondaryDonut, strokeWidth: (0, donutHelpers_1.getDonutThickness)(size), fill: "none" }), (0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleSecondary, { "$offset": secondaryPercentageValue, theme: theme.chartdonut, d: SecondaryDonut, strokeWidth: (0, donutHelpers_1.getDonutThickness)(size), fill: "none" })] })), quaternaryPercentageValue > -1 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleTertiaryBorder, { "$alternateColors": true, "$offset": DonutDashArrayOffsets[2], theme: theme.chartdonut, d: TertiaryDonut, strokeWidth: (0, donutHelpers_1.getDonutThickness)(size), fill: "none" }), (0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleTertiary, { "$offset": tertiaryPercentageValue, theme: theme.chartdonut, d: TertiaryDonut, strokeWidth: (0, donutHelpers_1.getDonutThickness)(size), fill: "none" })] })), quaternaryPercentageValue > -1 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleQuaternaryBorder, { "$alternateColors": true, "$offset": DonutDashArrayOffsets[3], theme: theme.chartdonut, d: QuaternaryDonut, strokeWidth: (0, donutHelpers_1.getDonutThickness)(size), fill: "none" }), (0, jsx_runtime_1.jsx)(styles_1.DonutChartCircleQuaternary, { "$offset": quaternaryPercentageValue, theme: theme.chartdonut, d: QuaternaryDonut, strokeWidth: (0, donutHelpers_1.getDonutThickness)(size), fill: "none" })] }))] })] }));
64
136
  };
65
137
  exports.default = ASChartDonut;
@@ -0,0 +1,8 @@
1
+ import { ASComponentSize } from '../../apptypes';
2
+ export declare const DONUT_THICKNESS_SMALL = 8;
3
+ export declare const DONUT_THICKNESS_MEDIUM = 12;
4
+ export declare const DONUT_THICKNESS_LARGE = 16;
5
+ export declare const getDonutThickness: (size: ASComponentSize) => number;
6
+ export declare const getDonutTrackThickness: (size: ASComponentSize, chartCount: number) => number;
7
+ export declare const calculateDonutPath: (thickness: number, position: number) => string;
8
+ //# sourceMappingURL=donutHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"donutHelpers.d.ts","sourceRoot":"","sources":["../../../src/aschart/donut/donutHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAiB,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,iBAAiB,GAAI,MAAM,eAAe,KAAG,MAUzD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,MAAM,eAAe,EAAE,YAAY,MAAM,KAAG,MAIlF,CAAC;AAQF,eAAO,MAAM,kBAAkB,GAAI,WAAW,MAAM,EAAE,UAAU,MAAM,KAAG,MAcxE,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.calculateDonutPath = exports.getDonutTrackThickness = exports.getDonutThickness = exports.DONUT_THICKNESS_LARGE = exports.DONUT_THICKNESS_MEDIUM = exports.DONUT_THICKNESS_SMALL = void 0;
4
+ const apptypes_1 = require("../../apptypes");
5
+ exports.DONUT_THICKNESS_SMALL = 8;
6
+ exports.DONUT_THICKNESS_MEDIUM = 12;
7
+ exports.DONUT_THICKNESS_LARGE = 16;
8
+ const getDonutThickness = (size) => {
9
+ switch (size) {
10
+ case apptypes_1.ComponentSize.Large:
11
+ return exports.DONUT_THICKNESS_LARGE;
12
+ case apptypes_1.ComponentSize.Medium:
13
+ return exports.DONUT_THICKNESS_MEDIUM;
14
+ case apptypes_1.ComponentSize.Small:
15
+ default:
16
+ return exports.DONUT_THICKNESS_SMALL;
17
+ }
18
+ };
19
+ exports.getDonutThickness = getDonutThickness;
20
+ const getDonutTrackThickness = (size, chartCount) => {
21
+ const donutThickness = (0, exports.getDonutThickness)(size) * chartCount;
22
+ const diff = (0, exports.getDonutThickness)(apptypes_1.ComponentSize.Large) - (0, exports.getDonutThickness)(size);
23
+ return donutThickness + 2;
24
+ };
25
+ exports.getDonutTrackThickness = getDonutTrackThickness;
26
+ const finalResult = `M{000} 120A{001} {002} 0 00120 {003} {004} {005} 0 00{006} 120a{007} {008} 0 00{009} {0010} {0011} {0012} 0 00{0013}-{0014}Z`;
27
+ const inputNumbers = [200, 80, 80, 40, 80, 80, 40, 80, 80, 80, 80, 80, 80, 80, 80];
28
+ const multipliers = [-1, -1, -1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1];
29
+ const cls = 'background: dodgerblue; padding: 0 2px; border: thin solid; border-radius: 40px; text-align: center;';
30
+ const calculateDonutPath = (thickness, position) => {
31
+ const diffNumber = thickness * position;
32
+ let result = finalResult;
33
+ inputNumbers.forEach((num, index) => {
34
+ const strPosition = `{00${index}}`;
35
+ const val = num + multipliers[index] * diffNumber;
36
+ result = result.replace(strPosition, `${val}`);
37
+ });
38
+ console.log(`%c RESULT %c = ${result}`, cls, '');
39
+ return result;
40
+ };
41
+ exports.calculateDonutPath = calculateDonutPath;
@@ -1,4 +1,4 @@
1
- import { ASChartDonutTheme } from '../../apptypes/ASUI.types';
1
+ import { ASChartDonutTheme, ASComponentSize } from '../../apptypes/ASUI.types';
2
2
  export type ASChartDonutStyledProps = {
3
3
  theme: ASChartDonutTheme;
4
4
  $size: string;
@@ -6,6 +6,7 @@ export type ASChartDonutStyledProps = {
6
6
  export declare const DonutChart: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ASChartDonutStyledProps>> & string;
7
7
  export type DonutChartTextStyledProps = {
8
8
  theme: ASChartDonutTheme;
9
+ $size?: ASComponentSize;
9
10
  };
10
11
  export declare const DonutChartText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, DonutChartTextStyledProps>> & string;
11
12
  export declare const DonutChartSubText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, DonutChartTextStyledProps>> & string;
@@ -14,10 +15,15 @@ export type ASChartDonutCircleProps = {
14
15
  theme: ASChartDonutTheme;
15
16
  $offset: number;
16
17
  $dasharray?: number;
18
+ $alternateColors?: boolean;
17
19
  };
20
+ export declare const DonutChartCircleBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGPathElement>, ASChartDonutCircleProps>> & string;
18
21
  export declare const DonutChartCircle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGPathElement>, ASChartDonutCircleProps>> & string;
22
+ export declare const DonutChartCircleSecondaryBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGPathElement>, ASChartDonutCircleProps>> & string;
19
23
  export declare const DonutChartCircleSecondary: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGPathElement>, ASChartDonutCircleProps>> & string;
24
+ export declare const DonutChartCircleTertiaryBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGPathElement>, ASChartDonutCircleProps>> & string;
20
25
  export declare const DonutChartCircleTertiary: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGPathElement>, ASChartDonutCircleProps>> & string;
26
+ export declare const DonutChartCircleQuaternaryBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGPathElement>, ASChartDonutCircleProps>> & string;
21
27
  export declare const DonutChartCircleQuaternary: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGPathElement>, ASChartDonutCircleProps>> & string;
22
28
  export type DonutChartThemeProps = {
23
29
  theme: ASChartDonutTheme;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/aschart/donut/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,iBAAiB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,UAAU,4PAMtB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AACF,eAAO,MAAM,cAAc,gQAY1B,CAAC;AAEF,eAAO,M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AC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAGF,eAAO,MAAM,sBAAsB,mMAKlC,CAAC;AACF,eAAO,MAAM,gBAAgB,mMAM5B,CAAC;AAEF,eAAO,MAAM,+BAA+B,mMAK3C,CAAC;AACF,eAAO,MAAM,yBAAyB,mMAMrC,CAAC;AAEF,eAAO,MAAM,8BAA8B,mMAK1C,CAAC;AACF,eAAO,MAAM,wBAAwB,mMAMpC,CAAC;AAEF,eAAO,MAAM,gCAAgC,mMAK5C,CAAC;AACF,eAAO,MAAM,0BAA0B,mMAMtC,CAAC;AAKF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,iBAAiB,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,0BAA0B,gMAItC,CAAC;AAEF,eAAO,MAAM,0BAA0B,gMAMtC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DonutChartCircleOuterTrack = exports.DonutChartCircleInnerTrack = exports.DonutChartCircleQuaternary = exports.DonutChartCircleTertiary = exports.DonutChartCircleSecondary = exports.DonutChartCircle = exports.DonutChartSvg = exports.DonutChartSubText = exports.DonutChartText = exports.DonutChart = void 0;
3
+ exports.DonutChartCircleOuterTrack = exports.DonutChartCircleInnerTrack = exports.DonutChartCircleQuaternary = exports.DonutChartCircleQuaternaryBorder = exports.DonutChartCircleTertiary = exports.DonutChartCircleTertiaryBorder = exports.DonutChartCircleSecondary = exports.DonutChartCircleSecondaryBorder = exports.DonutChartCircle = exports.DonutChartCircleBorder = exports.DonutChartSvg = exports.DonutChartSubText = exports.DonutChartText = exports.DonutChart = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
6
6
  exports.DonutChart = styled_components_1.default.div `
@@ -8,7 +8,7 @@ exports.DonutChart = styled_components_1.default.div `
8
8
  display: flex;
9
9
  align-items: center;
10
10
  justify-content: flex-start;
11
- width: ${({ $size = '200px' }) => $size};
11
+ width: ${({ $size = '300px' }) => $size};
12
12
  `;
13
13
  exports.DonutChartText = styled_components_1.default.span `
14
14
  position: absolute;
@@ -18,50 +18,79 @@ exports.DonutChartText = styled_components_1.default.span `
18
18
  transform: translate(-50%, -60%);
19
19
  display: block;
20
20
  white-space: nowrap;
21
- font-size: ${({ theme }) => theme.chartdonutTextFontSize};
22
- font-weight: ${({ theme }) => theme.chartdonutTextFontWeight};
21
+ font-size: ${({ theme, $size }) => $size && theme.chartdonutTextFontSizes ? theme.chartdonutTextFontSizes[$size] : theme.chartdonutTextFontSize};
22
+ font-weight: ${({ theme, $size }) => $size && theme.chartdonutTextFontWeights ? theme.chartdonutTextFontWeights[$size] : theme.chartdonutTextFontWeight};
23
23
  color: ${({ theme }) => theme.chartdonutTextColor};
24
- text-shadow: ${({ theme }) => theme.chartdonutTextShadow};
24
+ text-shadow: ${({ theme, $size }) => $size && theme.chartdonutTextShadows ? theme.chartdonutTextShadows[$size] : theme.chartdonutTextShadow};
25
25
  `;
26
26
  exports.DonutChartSubText = styled_components_1.default.span `
27
27
  position: absolute;
28
28
  display: inline-block;
29
- bottom: ${({ theme }) => theme.chartdonutSubTextVerticalOffset};
29
+ bottom: ${({ theme, $size }) => $size && theme.chartdonutSubTextVerticalOffsets
30
+ ? theme.chartdonutSubTextVerticalOffsets[$size]
31
+ : theme.chartdonutSubTextVerticalOffset};
30
32
  left: 50%;
31
33
  transform: translateX(-50%);
32
34
  white-space: nowrap;
33
35
  font-size: ${({ theme }) => theme.chartdonutSubTextFontSize};
34
- font-weight: ${({ theme }) => theme.chartdonutSubTextFontWeight};
36
+
37
+ font-weight: ${({ theme, $size }) => $size && theme.chartdonutSubTextFontWeights
38
+ ? theme.chartdonutSubTextFontWeights[$size]
39
+ : theme.chartdonutSubTextFontWeight};
35
40
  color: ${({ theme }) => theme.chartdonutSubTextColor};
36
41
  text-shadow: ${({ theme }) => theme.chartdonutSubTextShadow};
37
42
  `;
38
43
  exports.DonutChartSvg = styled_components_1.default.svg `
39
44
  transform: rotate(-225deg) scaleY(-1);
40
45
  `;
46
+ exports.DonutChartCircleBorder = styled_components_1.default.path `
47
+ stroke-dasharray: 500;
48
+ stroke-dashoffset: 500;
49
+ stroke-dashoffset: ${({ $offset }) => $offset};
50
+ stroke: ${({ theme, $alternateColors }) => ($alternateColors ? '#ffffff00' : `${theme.chartdonutColor}30`)};
51
+ `;
41
52
  exports.DonutChartCircle = styled_components_1.default.path `
42
- stroke-dasharray: 502;
43
- stroke-dashoffset: 502;
53
+ stroke-dasharray: 500;
54
+ stroke-dashoffset: 500;
44
55
  transition: stroke-dashoffset ${({ theme }) => theme.chartdonutTransitionDuration} ease-out 0.5s;
45
56
  stroke-dashoffset: ${({ $offset }) => $offset};
46
57
  stroke: ${({ theme }) => theme.chartdonutColor};
47
58
  `;
59
+ exports.DonutChartCircleSecondaryBorder = styled_components_1.default.path `
60
+ stroke-dasharray: 500;
61
+ stroke-dashoffset: 500;
62
+ stroke-dashoffset: ${({ $offset }) => $offset};
63
+ stroke: ${({ theme, $alternateColors }) => ($alternateColors ? '#ffffff30' : `${theme.chartdonutSecondaryColor}30`)};
64
+ `;
48
65
  exports.DonutChartCircleSecondary = styled_components_1.default.path `
49
- stroke-dasharray: 480;
50
- stroke-dashoffset: 480;
66
+ stroke-dasharray: 500;
67
+ stroke-dashoffset: 500;
51
68
  transition: stroke-dashoffset ${({ theme }) => theme.chartdonutOtherSegmentsDuration} ease-out 0.5s;
52
69
  stroke-dashoffset: ${({ $offset }) => $offset};
53
70
  stroke: ${({ theme }) => theme.chartdonutSecondaryColor};
54
71
  `;
72
+ exports.DonutChartCircleTertiaryBorder = styled_components_1.default.path `
73
+ stroke-dasharray: 500;
74
+ stroke-dashoffset: 500;
75
+ stroke-dashoffset: ${({ $offset }) => $offset};
76
+ stroke: ${({ theme, $alternateColors }) => ($alternateColors ? '#ffffff00' : `${theme.chartdonutTertiaryColor}30`)};
77
+ `;
55
78
  exports.DonutChartCircleTertiary = styled_components_1.default.path `
56
- stroke-dasharray: 470;
57
- stroke-dashoffset: 470;
79
+ stroke-dasharray: 500;
80
+ stroke-dashoffset: 500;
58
81
  transition: stroke-dashoffset ${({ theme }) => theme.chartdonutOtherSegmentsDuration} ease-out 0.5s;
59
82
  stroke-dashoffset: ${({ $offset }) => $offset};
60
83
  stroke: ${({ theme }) => theme.chartdonutTertiaryColor};
61
84
  `;
85
+ exports.DonutChartCircleQuaternaryBorder = styled_components_1.default.path `
86
+ stroke-dasharray: 500;
87
+ stroke-dashoffset: 500;
88
+ stroke-dashoffset: ${({ $offset }) => $offset};
89
+ stroke: ${({ theme, $alternateColors }) => ($alternateColors ? '#ffffff30' : `${theme.chartdonutQuaternaryColor}30`)};
90
+ `;
62
91
  exports.DonutChartCircleQuaternary = styled_components_1.default.path `
63
- stroke-dasharray: 460;
64
- stroke-dashoffset: 460;
92
+ stroke-dasharray: 500;
93
+ stroke-dashoffset: 500;
65
94
  transition: stroke-dashoffset ${({ theme }) => theme.chartdonutOtherSegmentsDuration} ease-out 0.5s;
66
95
  stroke-dashoffset: ${({ $offset }) => $offset};
67
96
  stroke: ${({ theme }) => theme.chartdonutQuaternaryColor};
@@ -1 +1 @@
1
- {"version":3,"file":"ASThemeDefault.d.ts","sourceRoot":"","sources":["../../src/astheme/ASThemeDefault.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AA8EjD,QAAA,MAAM,cAAc,EAAE,OAgIrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"ASThemeDefault.d.ts","sourceRoot":"","sources":["../../src/astheme/ASThemeDefault.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAiB,MAAM,wBAAwB,CAAC;AA8EhE,QAAA,MAAM,cAAc,EAAE,OA8JrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const ASUI_types_1 = require("../apptypes/ASUI.types");
3
4
  const colors = {
4
5
  mainGold: '#ffd700',
5
6
  mainYellow: '#ffd321',
@@ -174,16 +175,46 @@ const ASThemeDefault = {
174
175
  chartdonut: {
175
176
  chartdonutTextColor: colors.mainGray55,
176
177
  chartdonutTextFontSize: '3rem',
178
+ chartdonutTextFontSizes: {
179
+ [ASUI_types_1.ComponentSize.Large]: '1rem',
180
+ [ASUI_types_1.ComponentSize.Medium]: '1.7rem',
181
+ [ASUI_types_1.ComponentSize.Small]: '2.3rem',
182
+ },
177
183
  chartdonutTextFontWeight: '400',
184
+ chartdonutTextFontWeights: {
185
+ [ASUI_types_1.ComponentSize.Large]: '300',
186
+ [ASUI_types_1.ComponentSize.Medium]: '400',
187
+ [ASUI_types_1.ComponentSize.Small]: '400',
188
+ },
178
189
  chartdonutTextFontFamily: "'Big Shoulders Display', 'BigShouldersDisplay', Arial, sans-serif",
179
190
  chartdonutTextShadow: '1px 1px 4px #000000',
191
+ chartdonutTextShadows: {
192
+ [ASUI_types_1.ComponentSize.Large]: '1px 1px 10px #000000',
193
+ [ASUI_types_1.ComponentSize.Medium]: '1px 1px 7px #000000',
194
+ [ASUI_types_1.ComponentSize.Small]: '1px 1px 4px #000000',
195
+ },
180
196
  chartdonutSubTextColor: colors.mainGray55,
181
197
  chartdonutSubTextFontSize: '1.5rem',
182
198
  chartdonutSubTextFontWeight: '300',
199
+ chartdonutSubTextFontWeights: {
200
+ [ASUI_types_1.ComponentSize.Large]: '200',
201
+ [ASUI_types_1.ComponentSize.Medium]: '300',
202
+ [ASUI_types_1.ComponentSize.Small]: '300',
203
+ },
183
204
  chartdonutSubTextFontFamily: "'Big Shoulders Display', 'BigShouldersDisplay', Arial, sans-serif",
184
205
  chartdonutSubTextShadow: '1px 1px 4px #000000',
206
+ chartdonutSubTextShadows: {
207
+ [ASUI_types_1.ComponentSize.Large]: '1px 1px 10px #000000',
208
+ [ASUI_types_1.ComponentSize.Medium]: '1px 1px 7px #000000',
209
+ [ASUI_types_1.ComponentSize.Small]: '1px 1px 4px #000000',
210
+ },
185
211
  chartdonutSubTextVerticalOffset: '-24px',
186
- chartdonutColor: colors.yellowAlpha90,
212
+ chartdonutSubTextVerticalOffsets: {
213
+ [ASUI_types_1.ComponentSize.Large]: '-50px',
214
+ [ASUI_types_1.ComponentSize.Medium]: '-43px',
215
+ [ASUI_types_1.ComponentSize.Small]: '-40px',
216
+ },
217
+ chartdonutColor: colors.mainGold,
187
218
  chartdonutInnerTrackColor: colors.mainGray81,
188
219
  chartdonutOuterTrackColor: colors.mainGray99,
189
220
  chartdonutTransitionDuration: '2s',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleventheye/asui",
3
- "version": "2.11.3",
3
+ "version": "2.12.1",
4
4
  "private": false,
5
5
  "description": "AS UI React Library by eleventheye (another one!)",
6
6
  "keywords": [