@sybilion/uilib 1.3.22 → 1.3.25
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/esm/components/widgets/DriversComparisonChart/DriversComparisonChart.js +139 -0
- package/dist/esm/components/widgets/DriversComparisonChart/DriversComparisonChart.styl.js +7 -0
- package/dist/esm/components/widgets/DriversComparisonChart/driversComparisonChart.helpers.js +159 -0
- package/dist/esm/components/widgets/PerformanceChart/HorizonsSelector/HorizonsSelector.js +34 -0
- package/dist/esm/components/widgets/PerformanceChart/HorizonsSelector/HorizonsSelector.styl.js +7 -0
- package/dist/esm/components/widgets/PerformanceChart/PerformanceChart.constants.js +17 -0
- package/dist/esm/components/widgets/PerformanceChart/PerformanceChart.js +807 -0
- package/dist/esm/components/widgets/PerformanceChart/PerformanceChart.styl.js +7 -0
- package/dist/esm/components/widgets/PerformanceChart/PerformanceTable.js +130 -0
- package/dist/esm/components/widgets/PerformanceChart/PerformanceUnderChartLegend/PerformanceUnderChartLegend.js +20 -0
- package/dist/esm/components/widgets/PerformanceChart/PerformanceUnderChartLegend/PerformanceUnderChartLegend.styl.js +7 -0
- package/dist/esm/components/widgets/PerformanceChart/performanceChart.helpers.js +591 -0
- package/dist/esm/components/widgets/PerformanceChart/performanceChartUserSeries.js +109 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/types/src/components/widgets/DriversComparisonChart/DriversComparisonChart.d.ts +18 -0
- package/dist/esm/types/src/components/widgets/DriversComparisonChart/driversComparisonChart.helpers.d.ts +26 -0
- package/dist/esm/types/src/components/widgets/DriversComparisonChart/index.d.ts +2 -0
- package/dist/esm/types/src/components/widgets/PerformanceChart/HorizonsSelector/HorizonsSelector.d.ts +7 -0
- package/dist/esm/types/src/components/widgets/PerformanceChart/PerformanceChart.constants.d.ts +3 -0
- package/dist/esm/types/src/components/widgets/PerformanceChart/PerformanceChart.d.ts +54 -0
- package/dist/esm/types/src/components/widgets/PerformanceChart/PerformanceTable.d.ts +31 -0
- package/dist/esm/types/src/components/widgets/PerformanceChart/PerformanceUnderChartLegend/PerformanceUnderChartLegend.d.ts +20 -0
- package/dist/esm/types/src/components/widgets/PerformanceChart/index.d.ts +4 -0
- package/dist/esm/types/src/components/widgets/PerformanceChart/performanceChart.helpers.d.ts +212 -0
- package/dist/esm/types/src/components/widgets/PerformanceChart/performanceChartUserSeries.d.ts +20 -0
- package/dist/esm/types/src/docs/pages/DriversComparisonChartPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/PerformanceChartPage.d.ts +1 -0
- package/dist/esm/types/src/index.d.ts +2 -0
- package/dist/esm/utils/chartConnectionPoint.js +9 -1
- package/package.json +1 -1
- package/src/components/widgets/DriversComparisonChart/DriversComparisonChart.styl +145 -0
- package/src/components/widgets/DriversComparisonChart/DriversComparisonChart.styl.d.ts +29 -0
- package/src/components/widgets/DriversComparisonChart/DriversComparisonChart.tsx +325 -0
- package/src/components/widgets/DriversComparisonChart/driversComparisonChart.helpers.ts +206 -0
- package/src/components/widgets/DriversComparisonChart/index.ts +13 -0
- package/src/components/widgets/PerformanceChart/HorizonsSelector/HorizonsSelector.styl +25 -0
- package/src/components/widgets/PerformanceChart/HorizonsSelector/HorizonsSelector.styl.d.ts +11 -0
- package/src/components/widgets/PerformanceChart/HorizonsSelector/HorizonsSelector.tsx +67 -0
- package/src/components/widgets/PerformanceChart/PerformanceChart.constants.ts +17 -0
- package/src/components/widgets/PerformanceChart/PerformanceChart.styl +194 -0
- package/src/components/widgets/PerformanceChart/PerformanceChart.styl.d.ts +30 -0
- package/src/components/widgets/PerformanceChart/PerformanceChart.tsx +1251 -0
- package/src/components/widgets/PerformanceChart/PerformanceTable.tsx +381 -0
- package/src/components/widgets/PerformanceChart/PerformanceUnderChartLegend/PerformanceUnderChartLegend.styl +49 -0
- package/src/components/widgets/PerformanceChart/PerformanceUnderChartLegend/PerformanceUnderChartLegend.styl.d.ts +12 -0
- package/src/components/widgets/PerformanceChart/PerformanceUnderChartLegend/PerformanceUnderChartLegend.tsx +83 -0
- package/src/components/widgets/PerformanceChart/index.ts +28 -0
- package/src/components/widgets/PerformanceChart/performanceChart.helpers.ts +790 -0
- package/src/components/widgets/PerformanceChart/performanceChartUserSeries.ts +149 -0
- package/src/docs/pages/DriversComparisonChartPage.tsx +174 -0
- package/src/docs/pages/PerformanceChartPage.tsx +211 -0
- package/src/docs/registry.ts +12 -0
- package/src/index.ts +2 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
@import '../../../lib/theme.styl'
|
|
2
|
+
|
|
3
|
+
.root
|
|
4
|
+
display flex
|
|
5
|
+
flex-direction column
|
|
6
|
+
width 100%
|
|
7
|
+
flex 1
|
|
8
|
+
min-height 0
|
|
9
|
+
transition opacity 300ms ease-out
|
|
10
|
+
|
|
11
|
+
.viewTabs
|
|
12
|
+
display flex
|
|
13
|
+
flex-direction column
|
|
14
|
+
width 100%
|
|
15
|
+
flex 1
|
|
16
|
+
min-height 0
|
|
17
|
+
|
|
18
|
+
.toolbarRow
|
|
19
|
+
display flex
|
|
20
|
+
flex-direction row
|
|
21
|
+
align-items center
|
|
22
|
+
flex-wrap wrap
|
|
23
|
+
gap var(--p-4)
|
|
24
|
+
margin-bottom var(--p-4)
|
|
25
|
+
width 100%
|
|
26
|
+
|
|
27
|
+
.toolBarRight
|
|
28
|
+
flex-grow 1
|
|
29
|
+
display flex
|
|
30
|
+
align-items center
|
|
31
|
+
justify-content flex-end
|
|
32
|
+
gap var(--p-4)
|
|
33
|
+
|
|
34
|
+
.viewTabsList
|
|
35
|
+
display inline-flex
|
|
36
|
+
align-items center
|
|
37
|
+
flex-wrap wrap
|
|
38
|
+
gap var(--p-2)
|
|
39
|
+
margin-bottom 0
|
|
40
|
+
background-color transparent
|
|
41
|
+
flex-shrink 0
|
|
42
|
+
|
|
43
|
+
.perHorizonChartWrap
|
|
44
|
+
position relative
|
|
45
|
+
width 100%
|
|
46
|
+
min-height var(--chart-height)
|
|
47
|
+
|
|
48
|
+
.perHorizonChartWrapLoading
|
|
49
|
+
.chartContainer
|
|
50
|
+
opacity 0.3
|
|
51
|
+
pointer-events none
|
|
52
|
+
|
|
53
|
+
:global(.recharts-line-dots)
|
|
54
|
+
display none
|
|
55
|
+
|
|
56
|
+
.performanceLoadingLayer
|
|
57
|
+
position absolute
|
|
58
|
+
inset 0
|
|
59
|
+
z-index 10
|
|
60
|
+
pointer-events none
|
|
61
|
+
|
|
62
|
+
.chartEmptyOverlay
|
|
63
|
+
position absolute
|
|
64
|
+
inset 0
|
|
65
|
+
z-index 11
|
|
66
|
+
display flex
|
|
67
|
+
align-items center
|
|
68
|
+
justify-content center
|
|
69
|
+
padding var(--p-6)
|
|
70
|
+
pointer-events none
|
|
71
|
+
|
|
72
|
+
a
|
|
73
|
+
pointer-events auto
|
|
74
|
+
|
|
75
|
+
.performanceLoadingText
|
|
76
|
+
font-size 16px
|
|
77
|
+
font-weight 500
|
|
78
|
+
color var(--foreground)
|
|
79
|
+
|
|
80
|
+
.loading
|
|
81
|
+
opacity 0.5
|
|
82
|
+
|
|
83
|
+
.loaded
|
|
84
|
+
opacity 1
|
|
85
|
+
|
|
86
|
+
.chartContainer
|
|
87
|
+
margin-left calc(-1 * var(--page-x-padding) + 26px)
|
|
88
|
+
width calc(100% + 60px)
|
|
89
|
+
max-width @width
|
|
90
|
+
transition opacity 300ms ease-out
|
|
91
|
+
|
|
92
|
+
[data-slot="skeleton"]
|
|
93
|
+
position relative
|
|
94
|
+
height 100% !important
|
|
95
|
+
width 100% !important
|
|
96
|
+
filter opacity(0.6)
|
|
97
|
+
|
|
98
|
+
.loaded &
|
|
99
|
+
opacity 0
|
|
100
|
+
|
|
101
|
+
svg
|
|
102
|
+
overflow visible
|
|
103
|
+
|
|
104
|
+
@media (max-width: unit(MOBILE, 'px'))
|
|
105
|
+
margin-left calc(-1 * var(--page-x-padding) + 10px)
|
|
106
|
+
width calc(100% + 30px)
|
|
107
|
+
max-width @width
|
|
108
|
+
|
|
109
|
+
.isEmpty
|
|
110
|
+
.chartContainer
|
|
111
|
+
opacity 0.3
|
|
112
|
+
pointer-events none
|
|
113
|
+
|
|
114
|
+
:global(.recharts-line-dots)
|
|
115
|
+
display none
|
|
116
|
+
|
|
117
|
+
.tableSection
|
|
118
|
+
--side-margin: calc(var(--page-x-padding) * -1)
|
|
119
|
+
margin var(--p-6) var(--side-margin) 0 var(--side-margin)
|
|
120
|
+
display flex
|
|
121
|
+
flex-direction column
|
|
122
|
+
gap var(--p-4)
|
|
123
|
+
|
|
124
|
+
.tableWrapper
|
|
125
|
+
position relative
|
|
126
|
+
|
|
127
|
+
.tableContainer
|
|
128
|
+
position relative
|
|
129
|
+
width 100%
|
|
130
|
+
overflow-x auto
|
|
131
|
+
|
|
132
|
+
.table
|
|
133
|
+
background var(--card)
|
|
134
|
+
border-radius 14px
|
|
135
|
+
box-shadow inset 0 0 0 1px var(--border)
|
|
136
|
+
|
|
137
|
+
th:first-child
|
|
138
|
+
td:first-child
|
|
139
|
+
padding-left var(--p-10) !important
|
|
140
|
+
|
|
141
|
+
td:last-child
|
|
142
|
+
th:last-child
|
|
143
|
+
padding-right 0 !important
|
|
144
|
+
|
|
145
|
+
.tableCustomDataFooterRow
|
|
146
|
+
td
|
|
147
|
+
text-align center
|
|
148
|
+
border-top 1px solid var(--border)
|
|
149
|
+
vertical-align middle
|
|
150
|
+
|
|
151
|
+
.tableCustomDataFooterCell:first-child:last-child
|
|
152
|
+
padding 0 !important
|
|
153
|
+
text-align center
|
|
154
|
+
|
|
155
|
+
button
|
|
156
|
+
width calc(100% - 2px)
|
|
157
|
+
height calc(100% - 2px)
|
|
158
|
+
border-radius 0
|
|
159
|
+
|
|
160
|
+
.scrollbar
|
|
161
|
+
bottom calc(var(--p-7) * -1 + 2px) !important
|
|
162
|
+
|
|
163
|
+
.forecastCell
|
|
164
|
+
display flex
|
|
165
|
+
align-items center
|
|
166
|
+
gap 8px
|
|
167
|
+
|
|
168
|
+
.colorCircle
|
|
169
|
+
width 5px
|
|
170
|
+
height 20px
|
|
171
|
+
border-radius 10px
|
|
172
|
+
flex-shrink 0
|
|
173
|
+
margin-left -10px
|
|
174
|
+
|
|
175
|
+
.emptyState
|
|
176
|
+
position absolute
|
|
177
|
+
z-index 1
|
|
178
|
+
top calc(50% - 4em)
|
|
179
|
+
left 0
|
|
180
|
+
width 100%
|
|
181
|
+
display block
|
|
182
|
+
text-align center
|
|
183
|
+
padding var(--p-4) var(--p-10)
|
|
184
|
+
color var(--muted-foreground)
|
|
185
|
+
|
|
186
|
+
.performanceLoadingLayer &
|
|
187
|
+
color var(--foreground)
|
|
188
|
+
|
|
189
|
+
a
|
|
190
|
+
padding 0 var(--p-1)
|
|
191
|
+
text-decoration underline
|
|
192
|
+
|
|
193
|
+
&:hover
|
|
194
|
+
color var(--sb-cyan-400)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// This file is automatically generated.
|
|
2
|
+
// Please do not change this file!
|
|
3
|
+
interface CssExports {
|
|
4
|
+
'chartContainer': string;
|
|
5
|
+
'chartEmptyOverlay': string;
|
|
6
|
+
'colorCircle': string;
|
|
7
|
+
'emptyState': string;
|
|
8
|
+
'forecastCell': string;
|
|
9
|
+
'isEmpty': string;
|
|
10
|
+
'loaded': string;
|
|
11
|
+
'loading': string;
|
|
12
|
+
'perHorizonChartWrap': string;
|
|
13
|
+
'perHorizonChartWrapLoading': string;
|
|
14
|
+
'performanceLoadingLayer': string;
|
|
15
|
+
'performanceLoadingText': string;
|
|
16
|
+
'root': string;
|
|
17
|
+
'scrollbar': string;
|
|
18
|
+
'table': string;
|
|
19
|
+
'tableContainer': string;
|
|
20
|
+
'tableCustomDataFooterCell': string;
|
|
21
|
+
'tableCustomDataFooterRow': string;
|
|
22
|
+
'tableSection': string;
|
|
23
|
+
'tableWrapper': string;
|
|
24
|
+
'toolBarRight': string;
|
|
25
|
+
'toolbarRow': string;
|
|
26
|
+
'viewTabs': string;
|
|
27
|
+
'viewTabsList': string;
|
|
28
|
+
}
|
|
29
|
+
export const cssExports: CssExports;
|
|
30
|
+
export default cssExports;
|