@xaui/native 0.0.21 → 0.0.24
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/README.md +195 -2
- package/dist/alert/index.js +1 -2
- package/dist/app-bar/index.cjs +217 -0
- package/dist/app-bar/index.d.cts +52 -0
- package/dist/app-bar/index.d.ts +52 -0
- package/dist/app-bar/index.js +142 -0
- package/dist/autocomplete/index.js +48 -36
- package/dist/avatar/index.js +1 -2
- package/dist/badge/index.js +1 -2
- package/dist/bottom-sheet/index.js +1 -2
- package/dist/bottom-tab-bar/index.cjs +571 -0
- package/dist/bottom-tab-bar/index.d.cts +211 -0
- package/dist/bottom-tab-bar/index.d.ts +211 -0
- package/dist/bottom-tab-bar/index.js +497 -0
- package/dist/button/index.d.cts +102 -5
- package/dist/button/index.d.ts +102 -5
- package/dist/button/index.js +2 -3
- package/dist/button.type-j1ZdkkSl.d.cts +4 -0
- package/dist/button.type-j1ZdkkSl.d.ts +4 -0
- package/dist/card/index.cjs +2 -0
- package/dist/card/index.d.cts +6 -1
- package/dist/card/index.d.ts +6 -1
- package/dist/card/index.js +4 -2
- package/dist/carousel/index.js +1 -1
- package/dist/chart/index.cjs +1067 -0
- package/dist/chart/index.d.cts +218 -0
- package/dist/chart/index.d.ts +218 -0
- package/dist/chart/index.js +1026 -0
- package/dist/checkbox/index.js +1 -2
- package/dist/chip/index.js +1 -2
- package/dist/chunk-3XSXTM3G.js +661 -0
- package/dist/chunk-4KSZLONZ.js +79 -0
- package/dist/{chunk-DXXNBF5P.js → chunk-CZFDZPAS.js} +0 -5
- package/dist/{chunk-LTKYHG5V.js → chunk-GHCVNQET.js} +12 -5
- package/dist/chunk-I4V5Y5GD.js +76 -0
- package/dist/{chunk-F7WH4DMG.js → chunk-UI5L26KD.js} +1 -1
- package/dist/{chunk-LUBWRVI2.js → chunk-ULJSCNPE.js} +1 -1
- package/dist/chunk-URBEEDFX.js +79 -0
- package/dist/core/index.js +3 -5
- package/dist/datepicker/index.js +1 -2
- package/dist/divider/index.js +2 -3
- package/dist/drawer/index.cjs +310 -0
- package/dist/drawer/index.d.cts +58 -0
- package/dist/drawer/index.d.ts +58 -0
- package/dist/drawer/index.js +236 -0
- package/dist/{accordion → expansion-panel}/index.cjs +45 -45
- package/dist/{accordion → expansion-panel}/index.d.cts +30 -30
- package/dist/{accordion → expansion-panel}/index.d.ts +30 -30
- package/dist/{accordion → expansion-panel}/index.js +40 -41
- package/dist/fab/index.d.cts +3 -3
- package/dist/fab/index.d.ts +3 -3
- package/dist/fab/index.js +3 -4
- package/dist/fab-menu/index.d.cts +2 -2
- package/dist/fab-menu/index.d.ts +2 -2
- package/dist/fab-menu/index.js +3 -4
- package/dist/{fab.type-Ba0QMprb.d.ts → fab.type-CgIYqQlT.d.ts} +1 -1
- package/dist/{fab.type-U09H8B7D.d.cts → fab.type-l2vjG8-p.d.cts} +1 -1
- package/dist/feature-discovery/index.cjs +531 -0
- package/dist/feature-discovery/index.d.cts +82 -0
- package/dist/feature-discovery/index.d.ts +82 -0
- package/dist/feature-discovery/index.js +464 -0
- package/dist/indicator/index.js +2 -3
- package/dist/input/index.cjs +258 -164
- package/dist/input/index.d.cts +15 -1
- package/dist/input/index.d.ts +15 -1
- package/dist/input/index.js +219 -126
- package/dist/list/index.js +1 -2
- package/dist/menu/index.js +2 -2
- package/dist/menubox/index.cjs +369 -0
- package/dist/menubox/index.d.cts +98 -0
- package/dist/menubox/index.d.ts +98 -0
- package/dist/menubox/index.js +296 -0
- package/dist/pager/index.cjs +243 -0
- package/dist/pager/index.d.cts +93 -0
- package/dist/pager/index.d.ts +93 -0
- package/dist/pager/index.js +205 -0
- package/dist/progress/index.js +1 -2
- package/dist/radio/index.cjs +537 -0
- package/dist/radio/index.d.cts +145 -0
- package/dist/radio/index.d.ts +145 -0
- package/dist/radio/index.js +464 -0
- package/dist/segment-button/index.js +2 -2
- package/dist/select/index.js +22 -10
- package/dist/skeleton/index.js +2 -2
- package/dist/slider/index.cjs +655 -0
- package/dist/slider/index.d.cts +171 -0
- package/dist/slider/index.d.ts +171 -0
- package/dist/slider/index.js +575 -0
- package/dist/stepper/index.cjs +624 -0
- package/dist/stepper/index.d.cts +137 -0
- package/dist/stepper/index.d.ts +137 -0
- package/dist/stepper/index.js +549 -0
- package/dist/switch/index.js +1 -2
- package/dist/tabs/index.cjs +523 -0
- package/dist/tabs/index.d.cts +176 -0
- package/dist/tabs/index.d.ts +176 -0
- package/dist/tabs/index.js +438 -0
- package/dist/timepicker/index.cjs +1280 -0
- package/dist/timepicker/index.d.cts +215 -0
- package/dist/timepicker/index.d.ts +215 -0
- package/dist/timepicker/index.js +1181 -0
- package/dist/toolbar/index.cjs +395 -0
- package/dist/toolbar/index.d.cts +100 -0
- package/dist/toolbar/index.d.ts +100 -0
- package/dist/toolbar/index.js +325 -0
- package/dist/typography/index.js +1 -2
- package/dist/view/index.cjs +16 -2
- package/dist/view/index.js +16 -2
- package/package.json +73 -8
- package/dist/button.type-D8tzEBo7.d.ts +0 -104
- package/dist/button.type-ikaWzhIg.d.cts +0 -104
- package/dist/chunk-GBHQCAKW.js +0 -19
- package/dist/chunk-JEGEPGVU.js +0 -287
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
|
|
4
|
+
type ElevationLevel = 0 | 1 | 2 | 3 | 4;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Data item for a donut chart segment
|
|
8
|
+
*/
|
|
9
|
+
type DonutChartDataItem = {
|
|
10
|
+
/** Label text for the segment */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Numeric value of the segment */
|
|
13
|
+
value: number;
|
|
14
|
+
/** Hex color for the segment */
|
|
15
|
+
color: string;
|
|
16
|
+
/** Optional custom color for the label text */
|
|
17
|
+
labelColor?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Position of the legend relative to the chart
|
|
21
|
+
*/
|
|
22
|
+
type DonutChartLegendPosition = 'top' | 'left' | 'right' | 'bottom';
|
|
23
|
+
/**
|
|
24
|
+
* Props for DonutChartCard component
|
|
25
|
+
*/
|
|
26
|
+
type DonutChartCardProps = {
|
|
27
|
+
/** Array of data items to display */
|
|
28
|
+
data: DonutChartDataItem[];
|
|
29
|
+
/** Whether to show the legend. Default: true */
|
|
30
|
+
showLegend?: boolean;
|
|
31
|
+
/** Position of the legend. Default: 'bottom' */
|
|
32
|
+
legendPosition?: DonutChartLegendPosition;
|
|
33
|
+
/** Total value to display in the center */
|
|
34
|
+
total?: string | number;
|
|
35
|
+
/** Chart title displayed at the top */
|
|
36
|
+
title?: string;
|
|
37
|
+
/** Elevation level for shadow effect. Default: 0 */
|
|
38
|
+
elevation?: ElevationLevel;
|
|
39
|
+
/** Background color of the card. Default: '#6a6a6a30' */
|
|
40
|
+
backgroundColor?: string;
|
|
41
|
+
/** Text color for labels and values. Default: '#ffffff' */
|
|
42
|
+
textColor?: string;
|
|
43
|
+
/** Diameter of the chart in pixels. Default: 220 */
|
|
44
|
+
size?: number;
|
|
45
|
+
/** Width of the donut ring in pixels. Default: 24 */
|
|
46
|
+
strokeWidth?: number;
|
|
47
|
+
/** Additional styles for the card container */
|
|
48
|
+
style?: ViewStyle;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Data item for a vertical bar chart
|
|
52
|
+
*/
|
|
53
|
+
type VerticalBarChartDataItem = {
|
|
54
|
+
/** Label for the bar (X-axis) */
|
|
55
|
+
label: string;
|
|
56
|
+
/** Numeric value (height) of the bar */
|
|
57
|
+
value: number;
|
|
58
|
+
/** Optional custom color for the bar */
|
|
59
|
+
color?: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Props for VerticalBarChartCard component
|
|
63
|
+
*/
|
|
64
|
+
type VerticalBarChartCardProps = {
|
|
65
|
+
/** Array of data items to display */
|
|
66
|
+
data: VerticalBarChartDataItem[];
|
|
67
|
+
/** Chart title displayed at the top */
|
|
68
|
+
title?: string;
|
|
69
|
+
/** Elevation level for shadow effect. Default: 0 */
|
|
70
|
+
elevation?: ElevationLevel;
|
|
71
|
+
/** Background color of the card. Default: '#6a6a6a30' */
|
|
72
|
+
backgroundColor?: string;
|
|
73
|
+
/** Text color for labels and values. Default: '#ffffff' */
|
|
74
|
+
textColor?: string;
|
|
75
|
+
/** Height of the chart area in pixels. Default: 280 */
|
|
76
|
+
size?: number;
|
|
77
|
+
/** Whether to show X and Y axes. Default: false */
|
|
78
|
+
showAxes?: boolean;
|
|
79
|
+
/** Whether to abbreviate X-axis labels. Default: false */
|
|
80
|
+
abbreviateXAxisLabels?: boolean;
|
|
81
|
+
/** Max length for abbreviated labels. Default: 3 */
|
|
82
|
+
xAxisAbbreviationLength?: number;
|
|
83
|
+
/** Whether to show full legend below chart. Default: false */
|
|
84
|
+
showFullLegendBelow?: boolean;
|
|
85
|
+
/** Whether to space bars evenly. Default: false */
|
|
86
|
+
justifyBars?: boolean;
|
|
87
|
+
/** Additional styles for the card container */
|
|
88
|
+
style?: ViewStyle;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Data item for a pie chart segment
|
|
92
|
+
*/
|
|
93
|
+
type PieChartDataItem = {
|
|
94
|
+
/** Label text for the segment */
|
|
95
|
+
label: string;
|
|
96
|
+
/** Numeric value of the segment */
|
|
97
|
+
value: number;
|
|
98
|
+
/** Hex color for the segment */
|
|
99
|
+
color: string;
|
|
100
|
+
/** Optional custom color for the label text */
|
|
101
|
+
labelColor?: string;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Props for PieChartCard component
|
|
105
|
+
*/
|
|
106
|
+
type PieChartCardProps = {
|
|
107
|
+
/** Array of data items to display */
|
|
108
|
+
data: PieChartDataItem[];
|
|
109
|
+
/** Chart title displayed at the top */
|
|
110
|
+
title?: string;
|
|
111
|
+
/** Total value to display in header */
|
|
112
|
+
total?: string | number;
|
|
113
|
+
/** Whether to show the legend. Default: true */
|
|
114
|
+
showLegend?: boolean;
|
|
115
|
+
/** Position of the legend. Default: 'bottom' */
|
|
116
|
+
legendPosition?: DonutChartLegendPosition;
|
|
117
|
+
/** Elevation level for shadow effect. Default: 0 */
|
|
118
|
+
elevation?: ElevationLevel;
|
|
119
|
+
/** Background color of the card. Default: '#6a6a6a30' */
|
|
120
|
+
backgroundColor?: string;
|
|
121
|
+
/** Text color for labels and values. Default: '#ffffff' */
|
|
122
|
+
textColor?: string;
|
|
123
|
+
/** Diameter of the chart in pixels. Default: 220 */
|
|
124
|
+
size?: number;
|
|
125
|
+
/** Additional styles for the card container */
|
|
126
|
+
style?: ViewStyle;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Data item for a line chart point
|
|
130
|
+
*/
|
|
131
|
+
type LineChartDataItem = {
|
|
132
|
+
/** Label for the data point (X-axis) */
|
|
133
|
+
label: string;
|
|
134
|
+
/** Numeric value (Y-axis) */
|
|
135
|
+
value: number;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Line rendering mode
|
|
139
|
+
*/
|
|
140
|
+
type LineChartMode = 'smooth' | 'direct';
|
|
141
|
+
/**
|
|
142
|
+
* Props for LineChartCard component
|
|
143
|
+
*/
|
|
144
|
+
type LineChartCardProps = {
|
|
145
|
+
/** Array of data points to display */
|
|
146
|
+
data: LineChartDataItem[];
|
|
147
|
+
/** Chart title displayed at the top */
|
|
148
|
+
title?: string;
|
|
149
|
+
/** Elevation level for shadow effect. Default: 0 */
|
|
150
|
+
elevation?: ElevationLevel;
|
|
151
|
+
/** Background color of the card. Default: '#6a6a6a30' */
|
|
152
|
+
backgroundColor?: string;
|
|
153
|
+
/** Text color for labels and values. Default: '#ffffff' */
|
|
154
|
+
textColor?: string;
|
|
155
|
+
/** Height of the chart area in pixels. Default: 300 */
|
|
156
|
+
size?: number;
|
|
157
|
+
/** Whether to show X and Y axes. Default: false */
|
|
158
|
+
showAxes?: boolean;
|
|
159
|
+
/** Whether to show points at data values. Default: false */
|
|
160
|
+
showPoints?: boolean;
|
|
161
|
+
/** Line rendering mode. Default: 'smooth' */
|
|
162
|
+
lineMode?: LineChartMode;
|
|
163
|
+
/** Color of the line. Default: '#57C9ED' */
|
|
164
|
+
lineColor?: string;
|
|
165
|
+
/** Color of the area under the line. Default: transparent */
|
|
166
|
+
areaColor?: string;
|
|
167
|
+
/** Whether to abbreviate X-axis labels. Default: false */
|
|
168
|
+
abbreviateXAxisLabels?: boolean;
|
|
169
|
+
/** Max length for abbreviated labels. Default: 3 */
|
|
170
|
+
xAxisAbbreviationLength?: number;
|
|
171
|
+
/** Additional styles for the card container */
|
|
172
|
+
style?: ViewStyle;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Props for HeatmapChartCard component
|
|
176
|
+
*/
|
|
177
|
+
type HeatmapChartCardProps = {
|
|
178
|
+
/** 2D array of numeric values to display. Each inner array is a row. */
|
|
179
|
+
data: number[][];
|
|
180
|
+
/** Chart title displayed at the top */
|
|
181
|
+
title?: string;
|
|
182
|
+
/** Labels for columns (X-axis) */
|
|
183
|
+
xLabels?: string[];
|
|
184
|
+
/** Labels for rows (Y-axis) */
|
|
185
|
+
yLabels?: string[];
|
|
186
|
+
/** Whether to show numeric values inside cells. Default: false */
|
|
187
|
+
showValues?: boolean;
|
|
188
|
+
/** Whether to show color scale legend. Default: true */
|
|
189
|
+
showLegend?: boolean;
|
|
190
|
+
/** Start color for gradient (low values). Default: '#3B82F6' (blue) */
|
|
191
|
+
startColor?: string;
|
|
192
|
+
/** End color for gradient (high values). Default: '#EF4444' (red) */
|
|
193
|
+
endColor?: string;
|
|
194
|
+
/** Elevation level for shadow effect. Default: 0 */
|
|
195
|
+
elevation?: ElevationLevel;
|
|
196
|
+
/** Background color of the card. Default: '#6a6a6a30' */
|
|
197
|
+
backgroundColor?: string;
|
|
198
|
+
/** Text color for labels. Default: '#ffffff' */
|
|
199
|
+
textColor?: string;
|
|
200
|
+
/** Size of each cell in pixels. Default: 32 */
|
|
201
|
+
cellSize?: number;
|
|
202
|
+
/** Gap between cells in pixels. Default: 4 */
|
|
203
|
+
cellGap?: number;
|
|
204
|
+
/** Additional styles for the card container */
|
|
205
|
+
style?: ViewStyle;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
declare const DonutChartCard: React.FC<DonutChartCardProps>;
|
|
209
|
+
|
|
210
|
+
declare const VerticalBarChartCard: React.FC<VerticalBarChartCardProps>;
|
|
211
|
+
|
|
212
|
+
declare const PieChartCard: React.FC<PieChartCardProps>;
|
|
213
|
+
|
|
214
|
+
declare const LineChartCard: React.FC<LineChartCardProps>;
|
|
215
|
+
|
|
216
|
+
declare const HeatmapChartCard: React.FC<HeatmapChartCardProps>;
|
|
217
|
+
|
|
218
|
+
export { DonutChartCard, type DonutChartCardProps, type DonutChartDataItem, type DonutChartLegendPosition, HeatmapChartCard, type HeatmapChartCardProps, LineChartCard, type LineChartCardProps, type LineChartDataItem, type LineChartMode, PieChartCard, type PieChartCardProps, type PieChartDataItem, VerticalBarChartCard, type VerticalBarChartCardProps, type VerticalBarChartDataItem };
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
|
|
4
|
+
type ElevationLevel = 0 | 1 | 2 | 3 | 4;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Data item for a donut chart segment
|
|
8
|
+
*/
|
|
9
|
+
type DonutChartDataItem = {
|
|
10
|
+
/** Label text for the segment */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Numeric value of the segment */
|
|
13
|
+
value: number;
|
|
14
|
+
/** Hex color for the segment */
|
|
15
|
+
color: string;
|
|
16
|
+
/** Optional custom color for the label text */
|
|
17
|
+
labelColor?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Position of the legend relative to the chart
|
|
21
|
+
*/
|
|
22
|
+
type DonutChartLegendPosition = 'top' | 'left' | 'right' | 'bottom';
|
|
23
|
+
/**
|
|
24
|
+
* Props for DonutChartCard component
|
|
25
|
+
*/
|
|
26
|
+
type DonutChartCardProps = {
|
|
27
|
+
/** Array of data items to display */
|
|
28
|
+
data: DonutChartDataItem[];
|
|
29
|
+
/** Whether to show the legend. Default: true */
|
|
30
|
+
showLegend?: boolean;
|
|
31
|
+
/** Position of the legend. Default: 'bottom' */
|
|
32
|
+
legendPosition?: DonutChartLegendPosition;
|
|
33
|
+
/** Total value to display in the center */
|
|
34
|
+
total?: string | number;
|
|
35
|
+
/** Chart title displayed at the top */
|
|
36
|
+
title?: string;
|
|
37
|
+
/** Elevation level for shadow effect. Default: 0 */
|
|
38
|
+
elevation?: ElevationLevel;
|
|
39
|
+
/** Background color of the card. Default: '#6a6a6a30' */
|
|
40
|
+
backgroundColor?: string;
|
|
41
|
+
/** Text color for labels and values. Default: '#ffffff' */
|
|
42
|
+
textColor?: string;
|
|
43
|
+
/** Diameter of the chart in pixels. Default: 220 */
|
|
44
|
+
size?: number;
|
|
45
|
+
/** Width of the donut ring in pixels. Default: 24 */
|
|
46
|
+
strokeWidth?: number;
|
|
47
|
+
/** Additional styles for the card container */
|
|
48
|
+
style?: ViewStyle;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Data item for a vertical bar chart
|
|
52
|
+
*/
|
|
53
|
+
type VerticalBarChartDataItem = {
|
|
54
|
+
/** Label for the bar (X-axis) */
|
|
55
|
+
label: string;
|
|
56
|
+
/** Numeric value (height) of the bar */
|
|
57
|
+
value: number;
|
|
58
|
+
/** Optional custom color for the bar */
|
|
59
|
+
color?: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Props for VerticalBarChartCard component
|
|
63
|
+
*/
|
|
64
|
+
type VerticalBarChartCardProps = {
|
|
65
|
+
/** Array of data items to display */
|
|
66
|
+
data: VerticalBarChartDataItem[];
|
|
67
|
+
/** Chart title displayed at the top */
|
|
68
|
+
title?: string;
|
|
69
|
+
/** Elevation level for shadow effect. Default: 0 */
|
|
70
|
+
elevation?: ElevationLevel;
|
|
71
|
+
/** Background color of the card. Default: '#6a6a6a30' */
|
|
72
|
+
backgroundColor?: string;
|
|
73
|
+
/** Text color for labels and values. Default: '#ffffff' */
|
|
74
|
+
textColor?: string;
|
|
75
|
+
/** Height of the chart area in pixels. Default: 280 */
|
|
76
|
+
size?: number;
|
|
77
|
+
/** Whether to show X and Y axes. Default: false */
|
|
78
|
+
showAxes?: boolean;
|
|
79
|
+
/** Whether to abbreviate X-axis labels. Default: false */
|
|
80
|
+
abbreviateXAxisLabels?: boolean;
|
|
81
|
+
/** Max length for abbreviated labels. Default: 3 */
|
|
82
|
+
xAxisAbbreviationLength?: number;
|
|
83
|
+
/** Whether to show full legend below chart. Default: false */
|
|
84
|
+
showFullLegendBelow?: boolean;
|
|
85
|
+
/** Whether to space bars evenly. Default: false */
|
|
86
|
+
justifyBars?: boolean;
|
|
87
|
+
/** Additional styles for the card container */
|
|
88
|
+
style?: ViewStyle;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Data item for a pie chart segment
|
|
92
|
+
*/
|
|
93
|
+
type PieChartDataItem = {
|
|
94
|
+
/** Label text for the segment */
|
|
95
|
+
label: string;
|
|
96
|
+
/** Numeric value of the segment */
|
|
97
|
+
value: number;
|
|
98
|
+
/** Hex color for the segment */
|
|
99
|
+
color: string;
|
|
100
|
+
/** Optional custom color for the label text */
|
|
101
|
+
labelColor?: string;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Props for PieChartCard component
|
|
105
|
+
*/
|
|
106
|
+
type PieChartCardProps = {
|
|
107
|
+
/** Array of data items to display */
|
|
108
|
+
data: PieChartDataItem[];
|
|
109
|
+
/** Chart title displayed at the top */
|
|
110
|
+
title?: string;
|
|
111
|
+
/** Total value to display in header */
|
|
112
|
+
total?: string | number;
|
|
113
|
+
/** Whether to show the legend. Default: true */
|
|
114
|
+
showLegend?: boolean;
|
|
115
|
+
/** Position of the legend. Default: 'bottom' */
|
|
116
|
+
legendPosition?: DonutChartLegendPosition;
|
|
117
|
+
/** Elevation level for shadow effect. Default: 0 */
|
|
118
|
+
elevation?: ElevationLevel;
|
|
119
|
+
/** Background color of the card. Default: '#6a6a6a30' */
|
|
120
|
+
backgroundColor?: string;
|
|
121
|
+
/** Text color for labels and values. Default: '#ffffff' */
|
|
122
|
+
textColor?: string;
|
|
123
|
+
/** Diameter of the chart in pixels. Default: 220 */
|
|
124
|
+
size?: number;
|
|
125
|
+
/** Additional styles for the card container */
|
|
126
|
+
style?: ViewStyle;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Data item for a line chart point
|
|
130
|
+
*/
|
|
131
|
+
type LineChartDataItem = {
|
|
132
|
+
/** Label for the data point (X-axis) */
|
|
133
|
+
label: string;
|
|
134
|
+
/** Numeric value (Y-axis) */
|
|
135
|
+
value: number;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Line rendering mode
|
|
139
|
+
*/
|
|
140
|
+
type LineChartMode = 'smooth' | 'direct';
|
|
141
|
+
/**
|
|
142
|
+
* Props for LineChartCard component
|
|
143
|
+
*/
|
|
144
|
+
type LineChartCardProps = {
|
|
145
|
+
/** Array of data points to display */
|
|
146
|
+
data: LineChartDataItem[];
|
|
147
|
+
/** Chart title displayed at the top */
|
|
148
|
+
title?: string;
|
|
149
|
+
/** Elevation level for shadow effect. Default: 0 */
|
|
150
|
+
elevation?: ElevationLevel;
|
|
151
|
+
/** Background color of the card. Default: '#6a6a6a30' */
|
|
152
|
+
backgroundColor?: string;
|
|
153
|
+
/** Text color for labels and values. Default: '#ffffff' */
|
|
154
|
+
textColor?: string;
|
|
155
|
+
/** Height of the chart area in pixels. Default: 300 */
|
|
156
|
+
size?: number;
|
|
157
|
+
/** Whether to show X and Y axes. Default: false */
|
|
158
|
+
showAxes?: boolean;
|
|
159
|
+
/** Whether to show points at data values. Default: false */
|
|
160
|
+
showPoints?: boolean;
|
|
161
|
+
/** Line rendering mode. Default: 'smooth' */
|
|
162
|
+
lineMode?: LineChartMode;
|
|
163
|
+
/** Color of the line. Default: '#57C9ED' */
|
|
164
|
+
lineColor?: string;
|
|
165
|
+
/** Color of the area under the line. Default: transparent */
|
|
166
|
+
areaColor?: string;
|
|
167
|
+
/** Whether to abbreviate X-axis labels. Default: false */
|
|
168
|
+
abbreviateXAxisLabels?: boolean;
|
|
169
|
+
/** Max length for abbreviated labels. Default: 3 */
|
|
170
|
+
xAxisAbbreviationLength?: number;
|
|
171
|
+
/** Additional styles for the card container */
|
|
172
|
+
style?: ViewStyle;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Props for HeatmapChartCard component
|
|
176
|
+
*/
|
|
177
|
+
type HeatmapChartCardProps = {
|
|
178
|
+
/** 2D array of numeric values to display. Each inner array is a row. */
|
|
179
|
+
data: number[][];
|
|
180
|
+
/** Chart title displayed at the top */
|
|
181
|
+
title?: string;
|
|
182
|
+
/** Labels for columns (X-axis) */
|
|
183
|
+
xLabels?: string[];
|
|
184
|
+
/** Labels for rows (Y-axis) */
|
|
185
|
+
yLabels?: string[];
|
|
186
|
+
/** Whether to show numeric values inside cells. Default: false */
|
|
187
|
+
showValues?: boolean;
|
|
188
|
+
/** Whether to show color scale legend. Default: true */
|
|
189
|
+
showLegend?: boolean;
|
|
190
|
+
/** Start color for gradient (low values). Default: '#3B82F6' (blue) */
|
|
191
|
+
startColor?: string;
|
|
192
|
+
/** End color for gradient (high values). Default: '#EF4444' (red) */
|
|
193
|
+
endColor?: string;
|
|
194
|
+
/** Elevation level for shadow effect. Default: 0 */
|
|
195
|
+
elevation?: ElevationLevel;
|
|
196
|
+
/** Background color of the card. Default: '#6a6a6a30' */
|
|
197
|
+
backgroundColor?: string;
|
|
198
|
+
/** Text color for labels. Default: '#ffffff' */
|
|
199
|
+
textColor?: string;
|
|
200
|
+
/** Size of each cell in pixels. Default: 32 */
|
|
201
|
+
cellSize?: number;
|
|
202
|
+
/** Gap between cells in pixels. Default: 4 */
|
|
203
|
+
cellGap?: number;
|
|
204
|
+
/** Additional styles for the card container */
|
|
205
|
+
style?: ViewStyle;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
declare const DonutChartCard: React.FC<DonutChartCardProps>;
|
|
209
|
+
|
|
210
|
+
declare const VerticalBarChartCard: React.FC<VerticalBarChartCardProps>;
|
|
211
|
+
|
|
212
|
+
declare const PieChartCard: React.FC<PieChartCardProps>;
|
|
213
|
+
|
|
214
|
+
declare const LineChartCard: React.FC<LineChartCardProps>;
|
|
215
|
+
|
|
216
|
+
declare const HeatmapChartCard: React.FC<HeatmapChartCardProps>;
|
|
217
|
+
|
|
218
|
+
export { DonutChartCard, type DonutChartCardProps, type DonutChartDataItem, type DonutChartLegendPosition, HeatmapChartCard, type HeatmapChartCardProps, LineChartCard, type LineChartCardProps, type LineChartDataItem, type LineChartMode, PieChartCard, type PieChartCardProps, type PieChartDataItem, VerticalBarChartCard, type VerticalBarChartCardProps, type VerticalBarChartDataItem };
|