@wonderflow/charts 12.8.0
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/cartesian-base/cartesian-base-axis.d.ts +15 -0
- package/dist/components/cartesian-base/cartesian-base-axis.d.ts.map +1 -0
- package/dist/components/cartesian-base/cartesian-base-axis.js +53 -0
- package/dist/components/cartesian-base/cartesian-base-grid.d.ts +23 -0
- package/dist/components/cartesian-base/cartesian-base-grid.d.ts.map +1 -0
- package/dist/components/cartesian-base/cartesian-base-grid.js +35 -0
- package/dist/components/cartesian-base/cartesian-base-legend.d.ts +7 -0
- package/dist/components/cartesian-base/cartesian-base-legend.d.ts.map +1 -0
- package/dist/components/cartesian-base/cartesian-base-legend.js +35 -0
- package/dist/components/cartesian-base/cartesian-base.d.ts +78 -0
- package/dist/components/cartesian-base/cartesian-base.d.ts.map +1 -0
- package/dist/components/cartesian-base/cartesian-base.js +98 -0
- package/dist/components/cartesian-base/cartesian-base.module.css +1 -0
- package/dist/components/cartesian-base/cartesian-base.test.d.ts +2 -0
- package/dist/components/cartesian-base/cartesian-base.test.d.ts.map +1 -0
- package/dist/components/cartesian-base/cartesian-base.test.js +51 -0
- package/dist/components/cartesian-base/index.d.ts +3 -0
- package/dist/components/cartesian-base/index.d.ts.map +1 -0
- package/dist/components/cartesian-base/index.js +16 -0
- package/dist/components/empty-state/empty-state.d.ts +16 -0
- package/dist/components/empty-state/empty-state.d.ts.map +1 -0
- package/dist/components/empty-state/empty-state.js +31 -0
- package/dist/components/empty-state/empty-state.test.d.ts +2 -0
- package/dist/components/empty-state/empty-state.test.d.ts.map +1 -0
- package/dist/components/empty-state/empty-state.test.js +67 -0
- package/dist/components/empty-state/index.d.ts +2 -0
- package/dist/components/empty-state/index.d.ts.map +1 -0
- package/dist/components/empty-state/index.js +16 -0
- package/dist/components/headings/headings.d.ts +27 -0
- package/dist/components/headings/headings.d.ts.map +1 -0
- package/dist/components/headings/headings.js +31 -0
- package/dist/components/headings/headings.test.d.ts +2 -0
- package/dist/components/headings/headings.test.d.ts.map +1 -0
- package/dist/components/headings/headings.test.js +14 -0
- package/dist/components/headings/index.d.ts +3 -0
- package/dist/components/headings/index.d.ts.map +1 -0
- package/dist/components/headings/index.js +16 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +21 -0
- package/dist/components/line-chart/index.d.ts +3 -0
- package/dist/components/line-chart/index.d.ts.map +1 -0
- package/dist/components/line-chart/index.js +16 -0
- package/dist/components/line-chart/line-chart.d.ts +57 -0
- package/dist/components/line-chart/line-chart.d.ts.map +1 -0
- package/dist/components/line-chart/line-chart.js +68 -0
- package/dist/components/line-chart/line-chart.test.d.ts +2 -0
- package/dist/components/line-chart/line-chart.test.d.ts.map +1 -0
- package/dist/components/line-chart/line-chart.test.js +20 -0
- package/dist/components/loader/bar-chart-loader.d.ts +11 -0
- package/dist/components/loader/bar-chart-loader.d.ts.map +1 -0
- package/dist/components/loader/bar-chart-loader.js +3 -0
- package/dist/components/loader/index.d.ts +2 -0
- package/dist/components/loader/index.d.ts.map +1 -0
- package/dist/components/loader/index.js +16 -0
- package/dist/components/loader/line-chart-loader.d.ts +11 -0
- package/dist/components/loader/line-chart-loader.d.ts.map +1 -0
- package/dist/components/loader/line-chart-loader.js +3 -0
- package/dist/components/loader/loader.d.ts +10 -0
- package/dist/components/loader/loader.d.ts.map +1 -0
- package/dist/components/loader/loader.js +35 -0
- package/dist/components/loader/loader.test.d.ts +2 -0
- package/dist/components/loader/loader.test.d.ts.map +1 -0
- package/dist/components/loader/loader.test.js +50 -0
- package/dist/components/placeholder/index.d.ts +3 -0
- package/dist/components/placeholder/index.d.ts.map +1 -0
- package/dist/components/placeholder/index.js +16 -0
- package/dist/components/placeholder/placeholder.d.ts +9 -0
- package/dist/components/placeholder/placeholder.d.ts.map +1 -0
- package/dist/components/placeholder/placeholder.js +19 -0
- package/dist/components/placeholder/placeholder.test.d.ts +2 -0
- package/dist/components/placeholder/placeholder.test.d.ts.map +1 -0
- package/dist/components/placeholder/placeholder.test.js +15 -0
- package/dist/components/shapes/index.d.ts +2 -0
- package/dist/components/shapes/index.d.ts.map +1 -0
- package/dist/components/shapes/index.js +16 -0
- package/dist/components/shapes/lines/index.d.ts +2 -0
- package/dist/components/shapes/lines/index.d.ts.map +1 -0
- package/dist/components/shapes/lines/index.js +16 -0
- package/dist/components/shapes/lines/lines-marker-labels.d.ts +3 -0
- package/dist/components/shapes/lines/lines-marker-labels.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines-marker-labels.js +72 -0
- package/dist/components/shapes/lines/lines-overlay.d.ts +3 -0
- package/dist/components/shapes/lines/lines-overlay.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines-overlay.js +52 -0
- package/dist/components/shapes/lines/lines-series.d.ts +3 -0
- package/dist/components/shapes/lines/lines-series.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines-series.js +58 -0
- package/dist/components/shapes/lines/lines-tooltip.d.ts +3 -0
- package/dist/components/shapes/lines/lines-tooltip.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines-tooltip.js +107 -0
- package/dist/components/shapes/lines/lines.d.ts +3 -0
- package/dist/components/shapes/lines/lines.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines.js +28 -0
- package/dist/components/shapes/lines/lines.module.css +1 -0
- package/dist/components/shapes/lines/lines.test.d.ts +2 -0
- package/dist/components/shapes/lines/lines.test.d.ts.map +1 -0
- package/dist/components/shapes/lines/lines.test.js +142 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +16 -0
- package/dist/components/tooltip/tooltip.d.ts +35 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.js +37 -0
- package/dist/components/tooltip/tooltip.module.css +1 -0
- package/dist/components/tooltip/tooltip.test.d.ts +2 -0
- package/dist/components/tooltip/tooltip.test.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.test.js +20 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/providers/cartesian.d.ts +20 -0
- package/dist/providers/cartesian.d.ts.map +1 -0
- package/dist/providers/cartesian.js +43 -0
- package/dist/providers/data.d.ts +11 -0
- package/dist/providers/data.d.ts.map +1 -0
- package/dist/providers/data.js +32 -0
- package/dist/providers/index.d.ts +6 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +20 -0
- package/dist/providers/layout.d.ts +14 -0
- package/dist/providers/layout.d.ts.map +1 -0
- package/dist/providers/layout.js +34 -0
- package/dist/providers/style-config.d.ts +11 -0
- package/dist/providers/style-config.d.ts.map +1 -0
- package/dist/providers/style-config.js +29 -0
- package/dist/providers/theme.d.ts +10 -0
- package/dist/providers/theme.d.ts.map +1 -0
- package/dist/providers/theme.js +29 -0
- package/dist/style-config/axis.d.ts +3 -0
- package/dist/style-config/axis.d.ts.map +1 -0
- package/dist/style-config/axis.js +86 -0
- package/dist/style-config/cartesian.d.ts +3 -0
- package/dist/style-config/cartesian.d.ts.map +1 -0
- package/dist/style-config/cartesian.js +31 -0
- package/dist/style-config/colors.d.ts +9 -0
- package/dist/style-config/colors.d.ts.map +1 -0
- package/dist/style-config/colors.js +271 -0
- package/dist/style-config/grid.d.ts +7 -0
- package/dist/style-config/grid.d.ts.map +1 -0
- package/dist/style-config/grid.js +24 -0
- package/dist/style-config/headings.d.ts +3 -0
- package/dist/style-config/headings.d.ts.map +1 -0
- package/dist/style-config/headings.js +39 -0
- package/dist/style-config/index.d.ts +10 -0
- package/dist/style-config/index.d.ts.map +1 -0
- package/dist/style-config/index.js +24 -0
- package/dist/style-config/legend.d.ts +3 -0
- package/dist/style-config/legend.d.ts.map +1 -0
- package/dist/style-config/legend.js +18 -0
- package/dist/style-config/linear-gradient.d.ts +3 -0
- package/dist/style-config/linear-gradient.d.ts.map +1 -0
- package/dist/style-config/linear-gradient.js +20 -0
- package/dist/style-config/lines.d.ts +3 -0
- package/dist/style-config/lines.d.ts.map +1 -0
- package/dist/style-config/lines.js +39 -0
- package/dist/style-config/themes.d.ts +5 -0
- package/dist/style-config/themes.d.ts.map +1 -0
- package/dist/style-config/themes.js +86 -0
- package/dist/style-config/tooltip.d.ts +8 -0
- package/dist/style-config/tooltip.d.ts.map +1 -0
- package/dist/style-config/tooltip.js +56 -0
- package/dist/style-config/viewport.d.ts +3 -0
- package/dist/style-config/viewport.d.ts.map +1 -0
- package/dist/style-config/viewport.js +30 -0
- package/dist/types/axis.d.ts +108 -0
- package/dist/types/axis.d.ts.map +1 -0
- package/dist/types/axis.js +16 -0
- package/dist/types/cartesian.d.ts +58 -0
- package/dist/types/cartesian.d.ts.map +1 -0
- package/dist/types/cartesian.js +20 -0
- package/dist/types/colors.d.ts +9 -0
- package/dist/types/colors.d.ts.map +1 -0
- package/dist/types/colors.js +16 -0
- package/dist/types/grid.d.ts +14 -0
- package/dist/types/grid.d.ts.map +1 -0
- package/dist/types/grid.js +1 -0
- package/dist/types/headings.d.ts +26 -0
- package/dist/types/headings.d.ts.map +1 -0
- package/dist/types/headings.js +16 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +27 -0
- package/dist/types/legend.d.ts +4 -0
- package/dist/types/legend.d.ts.map +1 -0
- package/dist/types/legend.js +16 -0
- package/dist/types/line-chart.d.ts +53 -0
- package/dist/types/line-chart.d.ts.map +1 -0
- package/dist/types/line-chart.js +16 -0
- package/dist/types/linear-gradient.d.ts +5 -0
- package/dist/types/linear-gradient.d.ts.map +1 -0
- package/dist/types/linear-gradient.js +16 -0
- package/dist/types/lines.d.ts +25 -0
- package/dist/types/lines.d.ts.map +1 -0
- package/dist/types/lines.js +16 -0
- package/dist/types/main.d.ts +11 -0
- package/dist/types/main.d.ts.map +1 -0
- package/dist/types/main.js +20 -0
- package/dist/types/themes.d.ts +31 -0
- package/dist/types/themes.d.ts.map +1 -0
- package/dist/types/themes.js +16 -0
- package/dist/types/tooltip.d.ts +23 -0
- package/dist/types/tooltip.d.ts.map +1 -0
- package/dist/types/tooltip.js +16 -0
- package/dist/types/viewport.d.ts +8 -0
- package/dist/types/viewport.d.ts.map +1 -0
- package/dist/types/viewport.js +16 -0
- package/dist/utils/axis.d.ts +60 -0
- package/dist/utils/axis.d.ts.map +1 -0
- package/dist/utils/axis.js +401 -0
- package/dist/utils/axis.test.d.ts +2 -0
- package/dist/utils/axis.test.d.ts.map +1 -0
- package/dist/utils/axis.test.js +1071 -0
- package/dist/utils/colors.d.ts +8 -0
- package/dist/utils/colors.d.ts.map +1 -0
- package/dist/utils/colors.js +33 -0
- package/dist/utils/colors.test.d.ts +2 -0
- package/dist/utils/colors.test.d.ts.map +1 -0
- package/dist/utils/colors.test.js +31 -0
- package/dist/utils/data.d.ts +14 -0
- package/dist/utils/data.d.ts.map +1 -0
- package/dist/utils/data.js +116 -0
- package/dist/utils/data.test.d.ts +2 -0
- package/dist/utils/data.test.d.ts.map +1 -0
- package/dist/utils/data.test.js +371 -0
- package/dist/utils/format.d.ts +15 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/format.js +41 -0
- package/dist/utils/format.test.d.ts +2 -0
- package/dist/utils/format.test.d.ts.map +1 -0
- package/dist/utils/format.test.js +101 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +22 -0
- package/dist/utils/lines.d.ts +52 -0
- package/dist/utils/lines.d.ts.map +1 -0
- package/dist/utils/lines.js +190 -0
- package/dist/utils/lines.test.d.ts +2 -0
- package/dist/utils/lines.test.d.ts.map +1 -0
- package/dist/utils/lines.test.js +498 -0
- package/dist/utils/math.d.ts +13 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/math.js +89 -0
- package/dist/utils/math.test.d.ts +2 -0
- package/dist/utils/math.test.d.ts.map +1 -0
- package/dist/utils/math.test.js +142 -0
- package/dist/utils/metadata.d.ts +6 -0
- package/dist/utils/metadata.d.ts.map +1 -0
- package/dist/utils/metadata.js +36 -0
- package/dist/utils/metadata.test.d.ts +2 -0
- package/dist/utils/metadata.test.d.ts.map +1 -0
- package/dist/utils/metadata.test.js +102 -0
- package/dist/utils/viewport.d.ts +3 -0
- package/dist/utils/viewport.d.ts.map +1 -0
- package/dist/utils/viewport.js +29 -0
- package/dist/utils/viewport.test.d.ts +2 -0
- package/dist/utils/viewport.test.d.ts.map +1 -0
- package/dist/utils/viewport.test.js +63 -0
- package/package.json +106 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Wonderflow Design Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export const colors = {
|
|
17
|
+
support: {
|
|
18
|
+
white: 'hsl(0 0% 100%)',
|
|
19
|
+
black: 'hsl(0 0% 0%)',
|
|
20
|
+
brand: 'hsl(0, 100%, 47%)',
|
|
21
|
+
},
|
|
22
|
+
primary: {
|
|
23
|
+
0: 'hsl(220 20% 98%)',
|
|
24
|
+
5: 'hsl(220 19% 91%)',
|
|
25
|
+
10: 'hsl(220 16% 85%)',
|
|
26
|
+
20: 'hsl(219 14% 75%)',
|
|
27
|
+
30: 'hsl(220 12% 66%)',
|
|
28
|
+
40: 'hsl(221 10% 56%)',
|
|
29
|
+
50: 'hsl(221 9% 49%)',
|
|
30
|
+
60: 'hsl(221 10% 39%)',
|
|
31
|
+
70: 'hsl(221 10% 30%)',
|
|
32
|
+
80: 'hsl(219 13% 22%)',
|
|
33
|
+
90: 'hsl(217 11% 14%)',
|
|
34
|
+
100: 'hsl(220 11% 7%)',
|
|
35
|
+
},
|
|
36
|
+
red: {
|
|
37
|
+
0: 'hsl(343 100% 96%)',
|
|
38
|
+
5: 'hsl(351 100% 88%)',
|
|
39
|
+
10: 'hsl(351 100% 81%)',
|
|
40
|
+
20: 'hsl(351 77% 64%)',
|
|
41
|
+
30: 'hsl(350 66% 49%)',
|
|
42
|
+
40: 'hsl(351 92% 37%)',
|
|
43
|
+
50: 'hsl(351 100% 31%)',
|
|
44
|
+
60: 'hsl(351 100% 25%)',
|
|
45
|
+
70: 'hsl(351 100% 20%)',
|
|
46
|
+
80: 'hsl(350 100% 15%)',
|
|
47
|
+
90: 'hsl(350 100% 10%)',
|
|
48
|
+
100: 'hsl(351 100% 5%)',
|
|
49
|
+
},
|
|
50
|
+
magenta: {
|
|
51
|
+
0: 'hsl(327 73% 97%)',
|
|
52
|
+
5: 'hsl(324 70% 91%)',
|
|
53
|
+
10: 'hsl(324 70% 84%)',
|
|
54
|
+
20: 'hsl(324 70% 74%)',
|
|
55
|
+
30: 'hsl(324 60% 64%)',
|
|
56
|
+
40: 'hsl(324 60% 44%)',
|
|
57
|
+
50: 'hsl(324 70% 38%)',
|
|
58
|
+
60: 'hsl(324 70% 31%)',
|
|
59
|
+
70: 'hsl(324 70% 25%)',
|
|
60
|
+
80: 'hsl(323 70% 20%)',
|
|
61
|
+
90: 'hsl(324 70% 16%)',
|
|
62
|
+
100: 'hsl(323 69% 12%)',
|
|
63
|
+
},
|
|
64
|
+
purple: {
|
|
65
|
+
0: 'hsl(300 100% 98%)',
|
|
66
|
+
5: 'hsl(298 94% 93%)',
|
|
67
|
+
10: 'hsl(299 65% 87%)',
|
|
68
|
+
20: 'hsl(298 47% 75%)',
|
|
69
|
+
30: 'hsl(297 39% 64%)',
|
|
70
|
+
40: 'hsl(298 32% 54%)',
|
|
71
|
+
50: 'hsl(298 32% 46%)',
|
|
72
|
+
60: 'hsl(298 35% 38%)',
|
|
73
|
+
70: 'hsl(298 38% 31%)',
|
|
74
|
+
80: 'hsl(298 41% 25%)',
|
|
75
|
+
90: 'hsl(297 42% 18%)',
|
|
76
|
+
100: 'hsl(298 43% 12%)',
|
|
77
|
+
},
|
|
78
|
+
violet: {
|
|
79
|
+
0: 'hsl(257 47% 97%)',
|
|
80
|
+
5: 'hsl(263 51% 92%)',
|
|
81
|
+
10: 'hsl(262 50% 85%)',
|
|
82
|
+
20: 'hsl(263 50% 75%)',
|
|
83
|
+
30: 'hsl(263 50% 62%)',
|
|
84
|
+
40: 'hsl(263 50% 49%)',
|
|
85
|
+
50: 'hsl(263 50% 40%)',
|
|
86
|
+
60: 'hsl(262 50% 34%)',
|
|
87
|
+
70: 'hsl(262 50% 30%)',
|
|
88
|
+
80: 'hsl(262 50% 24%)',
|
|
89
|
+
90: 'hsl(263 51% 18%)',
|
|
90
|
+
100: 'hsl(263 50% 12%)',
|
|
91
|
+
},
|
|
92
|
+
indigo: {
|
|
93
|
+
0: 'hsl(240 60% 98%)',
|
|
94
|
+
5: 'hsl(240 60% 95%)',
|
|
95
|
+
10: 'hsl(240 57% 90%)',
|
|
96
|
+
20: 'hsl(240 58% 85%)',
|
|
97
|
+
30: 'hsl(240 52% 74%)',
|
|
98
|
+
40: 'hsl(241 60% 63%)',
|
|
99
|
+
50: 'hsl(241 60% 56%)',
|
|
100
|
+
60: 'hsl(241 60% 48%)',
|
|
101
|
+
70: 'hsl(241 60% 38%)',
|
|
102
|
+
80: 'hsl(242 61% 27%)',
|
|
103
|
+
90: 'hsl(242 61% 16%)',
|
|
104
|
+
100: 'hsl(240 60% 12%)',
|
|
105
|
+
},
|
|
106
|
+
blue: {
|
|
107
|
+
0: 'hsl(180 100% 95%)',
|
|
108
|
+
5: 'hsl(187 100% 89%)',
|
|
109
|
+
10: 'hsl(200 100% 83%)',
|
|
110
|
+
20: 'hsl(205 72% 67%)',
|
|
111
|
+
30: 'hsl(210 60% 54%)',
|
|
112
|
+
40: 'hsl(214 66% 44%)',
|
|
113
|
+
50: 'hsl(217 80% 35%)',
|
|
114
|
+
60: 'hsl(219 93% 27%)',
|
|
115
|
+
70: 'hsl(221 100% 22%)',
|
|
116
|
+
80: 'hsl(222 100% 17%)',
|
|
117
|
+
90: 'hsl(223 100% 12%)',
|
|
118
|
+
100: 'hsl(223 100% 7%)',
|
|
119
|
+
},
|
|
120
|
+
cyan: {
|
|
121
|
+
0: 'hsl(186 100% 96%)',
|
|
122
|
+
5: 'hsl(187 69% 85%)',
|
|
123
|
+
10: 'hsl(187 65% 74%)',
|
|
124
|
+
20: 'hsl(187 57% 58%)',
|
|
125
|
+
30: 'hsl(187 52% 48%)',
|
|
126
|
+
40: 'hsl(187 60% 40%)',
|
|
127
|
+
50: 'hsl(187 64% 33%)',
|
|
128
|
+
60: 'hsl(187 66% 27%)',
|
|
129
|
+
70: 'hsl(187 66% 22%)',
|
|
130
|
+
80: 'hsl(187 66% 18%)',
|
|
131
|
+
90: 'hsl(186 67% 15%)',
|
|
132
|
+
100: 'hsl(187 64% 12%)',
|
|
133
|
+
},
|
|
134
|
+
mint: {
|
|
135
|
+
0: 'hsl(165 62% 95%)',
|
|
136
|
+
5: 'hsl(165 61% 90%)',
|
|
137
|
+
10: 'hsl(165 60% 82%)',
|
|
138
|
+
20: 'hsl(166 59% 71%)',
|
|
139
|
+
30: 'hsl(166 60% 55%)',
|
|
140
|
+
40: 'hsl(166 60% 40%)',
|
|
141
|
+
50: 'hsl(165 60% 35%)',
|
|
142
|
+
60: 'hsl(165 59% 30%)',
|
|
143
|
+
70: 'hsl(165 61% 24%)',
|
|
144
|
+
80: 'hsl(165 63% 18%)',
|
|
145
|
+
90: 'hsl(165 64% 14%)',
|
|
146
|
+
100: 'hsl(166 62% 12%)',
|
|
147
|
+
},
|
|
148
|
+
green: {
|
|
149
|
+
0: 'hsl(149 100% 91%)',
|
|
150
|
+
5: 'hsl(145 95% 84%)',
|
|
151
|
+
10: 'hsl(145 76% 75%)',
|
|
152
|
+
20: 'hsl(146 62% 59%)',
|
|
153
|
+
30: 'hsl(147 63% 46%)',
|
|
154
|
+
40: 'hsl(149 83% 35%)',
|
|
155
|
+
50: 'hsl(152 100% 28%)',
|
|
156
|
+
60: 'hsl(156 100% 23%)',
|
|
157
|
+
70: 'hsl(160 100% 18%)',
|
|
158
|
+
80: 'hsl(166 100% 13%)',
|
|
159
|
+
90: 'hsl(170 100% 8%)',
|
|
160
|
+
100: 'hsl(177 100% 4%)',
|
|
161
|
+
},
|
|
162
|
+
dipsy: {
|
|
163
|
+
0: 'hsl(81 55% 94%)',
|
|
164
|
+
5: 'hsl(82 54% 84%)',
|
|
165
|
+
10: 'hsl(83 53% 74%)',
|
|
166
|
+
20: 'hsl(83 54% 64%)',
|
|
167
|
+
30: 'hsl(83 50% 54%)',
|
|
168
|
+
40: 'hsl(83 56% 43%)',
|
|
169
|
+
50: 'hsl(83 60% 38%)',
|
|
170
|
+
60: 'hsl(83 59% 32%)',
|
|
171
|
+
70: 'hsl(83 80% 24%)',
|
|
172
|
+
80: 'hsl(82 80% 20%)',
|
|
173
|
+
90: 'hsl(82 69% 17%)',
|
|
174
|
+
100: 'hsl(84 77% 12%)',
|
|
175
|
+
},
|
|
176
|
+
yellow: {
|
|
177
|
+
0: 'hsl(60 100% 89%)',
|
|
178
|
+
5: 'hsl(46 100% 83%)',
|
|
179
|
+
10: 'hsl(38 100% 77%)',
|
|
180
|
+
20: 'hsl(31 89% 65%)',
|
|
181
|
+
30: 'hsl(28 72% 53%)',
|
|
182
|
+
40: 'hsl(26 82% 42%)',
|
|
183
|
+
50: 'hsl(25 100% 34%)',
|
|
184
|
+
60: 'hsl(24 100% 29%)',
|
|
185
|
+
70: 'hsl(22 100% 24%)',
|
|
186
|
+
80: 'hsl(22 100% 19%)',
|
|
187
|
+
90: 'hsl(22 100% 15%)',
|
|
188
|
+
100: 'hsl(21 100% 10%)',
|
|
189
|
+
},
|
|
190
|
+
salmon: {
|
|
191
|
+
0: 'hsl(16 73% 97%)',
|
|
192
|
+
5: 'hsl(15 70% 91%)',
|
|
193
|
+
10: 'hsl(15 70% 83%)',
|
|
194
|
+
20: 'hsl(15 69% 77%)',
|
|
195
|
+
30: 'hsl(15 70% 68%)',
|
|
196
|
+
40: 'hsl(14 70% 60%)',
|
|
197
|
+
50: 'hsl(14 63% 53%)',
|
|
198
|
+
60: 'hsl(15 66% 45%)',
|
|
199
|
+
70: 'hsl(15 70% 37%)',
|
|
200
|
+
80: 'hsl(14 70% 29%)',
|
|
201
|
+
90: 'hsl(14 69% 19%)',
|
|
202
|
+
100: 'hsl(14 71% 12%)',
|
|
203
|
+
},
|
|
204
|
+
};
|
|
205
|
+
export const colorPaletteKpis = {
|
|
206
|
+
salesData: colors.blue[30],
|
|
207
|
+
rating1star: colors.red[20],
|
|
208
|
+
rating2star: colors.red[30],
|
|
209
|
+
rating3star: colors.red[40],
|
|
210
|
+
rating4star: colors.green[40],
|
|
211
|
+
rating5star: colors.green[50],
|
|
212
|
+
nps: colors.cyan[50],
|
|
213
|
+
unitsSold: colors.violet[30],
|
|
214
|
+
tgw: colors.purple[50],
|
|
215
|
+
sentimentIndex: colors.red[30],
|
|
216
|
+
feedback: colors.green[50],
|
|
217
|
+
rating: colors.yellow[40],
|
|
218
|
+
votesRating: colors.magenta[30],
|
|
219
|
+
votesCount: colors.indigo[30],
|
|
220
|
+
subrating: colors.salmon[30],
|
|
221
|
+
};
|
|
222
|
+
export const colorPaletteNeutrals = {
|
|
223
|
+
white: colors.support.white,
|
|
224
|
+
black: colors.support.black,
|
|
225
|
+
dimmed0: colors.primary[0],
|
|
226
|
+
dimmed1: colors.primary[5],
|
|
227
|
+
dimmed2: colors.primary[10],
|
|
228
|
+
dimmed3: colors.primary[20],
|
|
229
|
+
dimmed4: colors.primary[30],
|
|
230
|
+
dimmed5: colors.primary[50],
|
|
231
|
+
dimmed6: colors.primary[60],
|
|
232
|
+
dimmed7: colors.primary[70],
|
|
233
|
+
dimmed8: colors.primary[80],
|
|
234
|
+
dimmed9: colors.primary[90],
|
|
235
|
+
};
|
|
236
|
+
export const defaultLineChartPalette = {
|
|
237
|
+
light: {
|
|
238
|
+
overlay: colors.salmon[50],
|
|
239
|
+
series: [
|
|
240
|
+
colors.green[40],
|
|
241
|
+
colors.red[30],
|
|
242
|
+
colors.blue[40],
|
|
243
|
+
colors.yellow[40],
|
|
244
|
+
colors.magenta[40],
|
|
245
|
+
colors.cyan[40],
|
|
246
|
+
colors.violet[40],
|
|
247
|
+
colors.salmon[40],
|
|
248
|
+
colors.purple[40],
|
|
249
|
+
colors.dipsy[40],
|
|
250
|
+
colors.indigo[40],
|
|
251
|
+
colors.mint[40],
|
|
252
|
+
],
|
|
253
|
+
},
|
|
254
|
+
dark: {
|
|
255
|
+
overlay: colors.salmon[30],
|
|
256
|
+
series: [
|
|
257
|
+
colors.green[20],
|
|
258
|
+
colors.red[20],
|
|
259
|
+
colors.blue[20],
|
|
260
|
+
colors.yellow[20],
|
|
261
|
+
colors.magenta[30],
|
|
262
|
+
colors.cyan[20],
|
|
263
|
+
colors.violet[20],
|
|
264
|
+
colors.salmon[20],
|
|
265
|
+
colors.purple[30],
|
|
266
|
+
colors.dipsy[20],
|
|
267
|
+
colors.indigo[30],
|
|
268
|
+
colors.mint[30],
|
|
269
|
+
],
|
|
270
|
+
},
|
|
271
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Background } from '../types';
|
|
2
|
+
import { GridStyle, GridStyleConfig } from '../types/grid';
|
|
3
|
+
export declare const gridRowsStyleConfig: GridStyle;
|
|
4
|
+
export declare const gridColumnsStyleConfig: GridStyle;
|
|
5
|
+
export declare const gridBackgroundStyleConfig: Background;
|
|
6
|
+
export declare const gridStyleConfig: GridStyleConfig;
|
|
7
|
+
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../src/style-config/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAG3D,eAAO,MAAM,mBAAmB,EAAE,SAMjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,SAMpC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,UAGvC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,eAI7B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { themeLight } from './themes';
|
|
2
|
+
export const gridRowsStyleConfig = {
|
|
3
|
+
offset: 0,
|
|
4
|
+
strokeWidth: 1,
|
|
5
|
+
strokeOpacity: 1,
|
|
6
|
+
strokeDasharray: '',
|
|
7
|
+
lineStyle: {},
|
|
8
|
+
};
|
|
9
|
+
export const gridColumnsStyleConfig = {
|
|
10
|
+
offset: 0,
|
|
11
|
+
strokeWidth: 1,
|
|
12
|
+
strokeOpacity: 1,
|
|
13
|
+
strokeDasharray: '',
|
|
14
|
+
lineStyle: {},
|
|
15
|
+
};
|
|
16
|
+
export const gridBackgroundStyleConfig = {
|
|
17
|
+
from: themeLight.grid.background.from,
|
|
18
|
+
to: themeLight.grid.background.to,
|
|
19
|
+
};
|
|
20
|
+
export const gridStyleConfig = {
|
|
21
|
+
rows: gridRowsStyleConfig,
|
|
22
|
+
columns: gridColumnsStyleConfig,
|
|
23
|
+
background: gridBackgroundStyleConfig,
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headings.d.ts","sourceRoot":"","sources":["../../src/style-config/headings.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,mBAAmB,EAAE,mBAuBjC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Wonderflow Design Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export const headingsStyleConfig = {
|
|
17
|
+
height: 62,
|
|
18
|
+
fontFamily: 'system-ui',
|
|
19
|
+
title: {
|
|
20
|
+
height: 23.5,
|
|
21
|
+
fontSize: 16,
|
|
22
|
+
fontWeight: 600,
|
|
23
|
+
lineHeight: 1.25,
|
|
24
|
+
textAnchor: 'start',
|
|
25
|
+
verticalAnchor: 'start',
|
|
26
|
+
x: 0,
|
|
27
|
+
y: 0,
|
|
28
|
+
},
|
|
29
|
+
subtitle: {
|
|
30
|
+
height: 19,
|
|
31
|
+
fontSize: 14,
|
|
32
|
+
fontWeight: 400,
|
|
33
|
+
lineHeight: 1,
|
|
34
|
+
textAnchor: 'start',
|
|
35
|
+
verticalAnchor: 'start',
|
|
36
|
+
x: 0,
|
|
37
|
+
y: 21,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './axis';
|
|
2
|
+
export * from './cartesian';
|
|
3
|
+
export * from './colors';
|
|
4
|
+
export * from './grid';
|
|
5
|
+
export * from './headings';
|
|
6
|
+
export * from './linear-gradient';
|
|
7
|
+
export * from './lines';
|
|
8
|
+
export * from './themes';
|
|
9
|
+
export * from './viewport';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/style-config/index.ts"],"names":[],"mappings":"AAgBA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Wonderflow Design Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * from './axis';
|
|
17
|
+
export * from './cartesian';
|
|
18
|
+
export * from './colors';
|
|
19
|
+
export * from './grid';
|
|
20
|
+
export * from './headings';
|
|
21
|
+
export * from './linear-gradient';
|
|
22
|
+
export * from './lines';
|
|
23
|
+
export * from './themes';
|
|
24
|
+
export * from './viewport';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legend.d.ts","sourceRoot":"","sources":["../../src/style-config/legend.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,iBAAiB,EAAE,iBAE/B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Wonderflow Design Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export const legendStyleConfig = {
|
|
17
|
+
padding: '1rem 0 0',
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linear-gradient.d.ts","sourceRoot":"","sources":["../../src/style-config/linear-gradient.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,eAAO,MAAM,eAAe,EAAE,UAG7B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Wonderflow Design Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { themeLight } from './themes';
|
|
17
|
+
export const backgroundStyle = {
|
|
18
|
+
from: themeLight.background.from,
|
|
19
|
+
to: themeLight.background.to,
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lines.d.ts","sourceRoot":"","sources":["../../src/style-config/lines.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,gBAAgB,EAAE,gBAuB9B,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Wonderflow Design Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export const linesStyleConfig = {
|
|
17
|
+
lineIndicator: {
|
|
18
|
+
strokeWidth: 1,
|
|
19
|
+
opacity: 0.6,
|
|
20
|
+
pointerEvents: 'none',
|
|
21
|
+
strokeDasharray: '1 2',
|
|
22
|
+
},
|
|
23
|
+
dataPoint: {
|
|
24
|
+
radius: 2,
|
|
25
|
+
strokeWidth: 1,
|
|
26
|
+
},
|
|
27
|
+
path: {
|
|
28
|
+
strokeWidth: 2,
|
|
29
|
+
strokeOpacity: 1,
|
|
30
|
+
},
|
|
31
|
+
segment: {
|
|
32
|
+
strokeDashArray: '2 3',
|
|
33
|
+
},
|
|
34
|
+
marker: {
|
|
35
|
+
radius: 2,
|
|
36
|
+
strokeWidth: 1,
|
|
37
|
+
strokeOpacity: 1,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/style-config/themes.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGzC,eAAO,MAAM,UAAU,EAAE,KAgCxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAgCvB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAGpB,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Wonderflow Design Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { colorPaletteNeutrals } from './colors';
|
|
17
|
+
export const themeLight = {
|
|
18
|
+
background: {
|
|
19
|
+
from: colorPaletteNeutrals.white,
|
|
20
|
+
to: colorPaletteNeutrals.white,
|
|
21
|
+
},
|
|
22
|
+
headings: {
|
|
23
|
+
title: colorPaletteNeutrals.dimmed9,
|
|
24
|
+
subtitle: colorPaletteNeutrals.dimmed7,
|
|
25
|
+
},
|
|
26
|
+
axis: {
|
|
27
|
+
label: colorPaletteNeutrals.dimmed8,
|
|
28
|
+
tickLabel: colorPaletteNeutrals.dimmed7,
|
|
29
|
+
tick: colorPaletteNeutrals.dimmed4,
|
|
30
|
+
line: colorPaletteNeutrals.dimmed4,
|
|
31
|
+
},
|
|
32
|
+
grid: {
|
|
33
|
+
line: colorPaletteNeutrals.dimmed1,
|
|
34
|
+
background: {
|
|
35
|
+
from: colorPaletteNeutrals.dimmed0,
|
|
36
|
+
to: colorPaletteNeutrals.white,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
marker: {
|
|
40
|
+
fill: colorPaletteNeutrals.white,
|
|
41
|
+
},
|
|
42
|
+
markerLabel: {
|
|
43
|
+
fontColor: colorPaletteNeutrals.dimmed9,
|
|
44
|
+
background: colorPaletteNeutrals.dimmed2,
|
|
45
|
+
},
|
|
46
|
+
lines: {
|
|
47
|
+
noData: colorPaletteNeutrals.dimmed1,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
export const themeDark = {
|
|
51
|
+
background: {
|
|
52
|
+
from: colorPaletteNeutrals.dimmed9,
|
|
53
|
+
to: colorPaletteNeutrals.dimmed9,
|
|
54
|
+
},
|
|
55
|
+
headings: {
|
|
56
|
+
title: colorPaletteNeutrals.dimmed0,
|
|
57
|
+
subtitle: colorPaletteNeutrals.dimmed2,
|
|
58
|
+
},
|
|
59
|
+
axis: {
|
|
60
|
+
label: colorPaletteNeutrals.dimmed2,
|
|
61
|
+
tickLabel: colorPaletteNeutrals.dimmed4,
|
|
62
|
+
tick: colorPaletteNeutrals.dimmed4,
|
|
63
|
+
line: colorPaletteNeutrals.dimmed4,
|
|
64
|
+
},
|
|
65
|
+
grid: {
|
|
66
|
+
line: colorPaletteNeutrals.dimmed6,
|
|
67
|
+
background: {
|
|
68
|
+
from: colorPaletteNeutrals.dimmed8,
|
|
69
|
+
to: colorPaletteNeutrals.dimmed9,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
marker: {
|
|
73
|
+
fill: colorPaletteNeutrals.black,
|
|
74
|
+
},
|
|
75
|
+
markerLabel: {
|
|
76
|
+
fontColor: colorPaletteNeutrals.dimmed0,
|
|
77
|
+
background: colorPaletteNeutrals.dimmed8,
|
|
78
|
+
},
|
|
79
|
+
lines: {
|
|
80
|
+
noData: colorPaletteNeutrals.dimmed7,
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
export const themes = {
|
|
84
|
+
light: themeLight,
|
|
85
|
+
dark: themeDark,
|
|
86
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TooltipStyleColors, TooltipStyleConfig, TooltipStyleMain, TooltipStyleTheme } from '../types';
|
|
2
|
+
export declare const tooltipStyleMain: TooltipStyleMain;
|
|
3
|
+
export declare const tooltipStyleDark: TooltipStyleColors;
|
|
4
|
+
export declare const tooltipStyleLight: TooltipStyleColors;
|
|
5
|
+
export declare const tooltipStyleConfigLight: TooltipStyleConfig;
|
|
6
|
+
export declare const tooltipStyleConfigDark: TooltipStyleConfig;
|
|
7
|
+
export declare const tooltipTheme: TooltipStyleTheme;
|
|
8
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/style-config/tooltip.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,iBAAiB,EAC5E,MAAM,UAAU,CAAC;AAIlB,eAAO,MAAM,gBAAgB,EAAE,gBAU9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,kBAO9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,kBAO/B,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,kBAGrC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,kBAGpC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,iBAG1B,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Wonderflow Design Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { toHSLA } from '../utils';
|
|
17
|
+
import { colorPaletteNeutrals } from '.';
|
|
18
|
+
export const tooltipStyleMain = {
|
|
19
|
+
color: colorPaletteNeutrals.dimmed0,
|
|
20
|
+
minWidth: 250,
|
|
21
|
+
minHeight: 80,
|
|
22
|
+
maxWidth: 350,
|
|
23
|
+
maxHeight: 'unset',
|
|
24
|
+
overflow: 'auto',
|
|
25
|
+
padding: '0rem',
|
|
26
|
+
borderRadius: '0.25rem',
|
|
27
|
+
zIndex: '10',
|
|
28
|
+
};
|
|
29
|
+
export const tooltipStyleDark = {
|
|
30
|
+
backdropFilter: 'blur(10px) hue-rotate(10deg) saturate(200%)',
|
|
31
|
+
background: `radial-gradient(at left top, ${toHSLA(colorPaletteNeutrals.dimmed8, 0.5)}, ${toHSLA(colorPaletteNeutrals.dimmed7, 0.6)}) no-repeat`,
|
|
32
|
+
border: `1px solid ${colorPaletteNeutrals.dimmed8}`,
|
|
33
|
+
boxShadow: `4px 4px 10px ${toHSLA(colorPaletteNeutrals.black, 0.5)}`,
|
|
34
|
+
separatorStroke: colorPaletteNeutrals.dimmed7,
|
|
35
|
+
lineIndicatorStroke: colorPaletteNeutrals.dimmed6,
|
|
36
|
+
};
|
|
37
|
+
export const tooltipStyleLight = {
|
|
38
|
+
backdropFilter: 'blur(10px) hue-rotate(10deg) saturate(750%)',
|
|
39
|
+
background: `radial-gradient(at left top, ${toHSLA(colorPaletteNeutrals.dimmed9, 0.7)}, ${toHSLA(colorPaletteNeutrals.black, 0.8)}) no-repeat`,
|
|
40
|
+
border: `1px solid ${colorPaletteNeutrals.dimmed5}`,
|
|
41
|
+
boxShadow: `4px 4px 10px ${toHSLA(colorPaletteNeutrals.dimmed8, 0.5)}`,
|
|
42
|
+
separatorStroke: colorPaletteNeutrals.dimmed6,
|
|
43
|
+
lineIndicatorStroke: colorPaletteNeutrals.dimmed4,
|
|
44
|
+
};
|
|
45
|
+
export const tooltipStyleConfigLight = {
|
|
46
|
+
...tooltipStyleMain,
|
|
47
|
+
...tooltipStyleLight,
|
|
48
|
+
};
|
|
49
|
+
export const tooltipStyleConfigDark = {
|
|
50
|
+
...tooltipStyleMain,
|
|
51
|
+
...tooltipStyleDark,
|
|
52
|
+
};
|
|
53
|
+
export const tooltipTheme = {
|
|
54
|
+
light: tooltipStyleConfigLight,
|
|
55
|
+
dark: tooltipStyleConfigDark,
|
|
56
|
+
};
|