@onesaz/ui 0.3.7 → 0.3.9
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/index.d.ts +472 -15
- package/dist/index.js +2057 -933
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { Theme, AccentColor, GrayColor, RadiusPreset } from '@onesaz/tokens';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
5
5
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
6
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
6
7
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
7
8
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
9
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
@@ -364,6 +365,24 @@ interface FormGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
364
365
|
}
|
|
365
366
|
declare const FormGroup: React.ForwardRefExoticComponent<FormGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
366
367
|
|
|
368
|
+
interface SliderProps extends Omit<React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>, "onValueChange" | "value" | "defaultValue" | "onChange"> {
|
|
369
|
+
/** Current value */
|
|
370
|
+
value?: number;
|
|
371
|
+
/** Default value */
|
|
372
|
+
defaultValue?: number;
|
|
373
|
+
/** Change handler */
|
|
374
|
+
onChange?: (value: number) => void;
|
|
375
|
+
/** Show value label */
|
|
376
|
+
showValue?: boolean;
|
|
377
|
+
/** Value label position */
|
|
378
|
+
valuePosition?: "top" | "bottom" | "left" | "right";
|
|
379
|
+
/** Custom value formatter */
|
|
380
|
+
valueFormatter?: (value: number) => string;
|
|
381
|
+
/** Additional CSS classes */
|
|
382
|
+
className?: string;
|
|
383
|
+
}
|
|
384
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
385
|
+
|
|
367
386
|
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
368
387
|
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
369
388
|
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -475,24 +494,19 @@ interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
475
494
|
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
|
|
476
495
|
|
|
477
496
|
interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
dismissible?: boolean;
|
|
482
|
-
/** Callback when dismissed */
|
|
483
|
-
onDismiss?: () => void;
|
|
484
|
-
/** Icon to show (if undefined, a default icon is used based on variant) */
|
|
485
|
-
icon?: React.ReactNode;
|
|
486
|
-
/** Whether to show the default icon */
|
|
487
|
-
showIcon?: boolean;
|
|
497
|
+
variant?: "default" | "info" | "success" | "warning" | "error" | "destructive";
|
|
498
|
+
duration?: number | null;
|
|
499
|
+
onClose?: () => void;
|
|
488
500
|
}
|
|
489
|
-
declare const Alert: React.
|
|
501
|
+
declare const Alert: React.FC<AlertProps>;
|
|
490
502
|
interface AlertTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
503
|
+
hasDescription?: boolean;
|
|
504
|
+
variant?: string;
|
|
491
505
|
}
|
|
492
|
-
declare const AlertTitle: React.
|
|
506
|
+
declare const AlertTitle: React.FC<AlertTitleProps>;
|
|
493
507
|
interface AlertDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
494
508
|
}
|
|
495
|
-
declare const AlertDescription: React.
|
|
509
|
+
declare const AlertDescription: React.FC<AlertDescriptionProps>;
|
|
496
510
|
|
|
497
511
|
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
498
512
|
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -827,6 +841,13 @@ interface DataGridProps<TData = any> {
|
|
|
827
841
|
rowCount?: number;
|
|
828
842
|
pageSizeOptions?: number[];
|
|
829
843
|
sortingMode?: 'client' | 'server';
|
|
844
|
+
/** Initial sort model - array of { field: string, sort: 'asc' | 'desc' } */
|
|
845
|
+
initialSortModel?: {
|
|
846
|
+
field: string;
|
|
847
|
+
sort: 'asc' | 'desc';
|
|
848
|
+
}[];
|
|
849
|
+
/** If true, sorts by createdAt descending (latest first). Requires a 'createdAt' field in rows. */
|
|
850
|
+
sortLatestFirst?: boolean;
|
|
830
851
|
filterMode?: 'client' | 'server';
|
|
831
852
|
height?: number | string;
|
|
832
853
|
minHeight?: number | string;
|
|
@@ -874,7 +895,7 @@ interface DataGridProps<TData = any> {
|
|
|
874
895
|
disableColumnSelector?: boolean;
|
|
875
896
|
disableDensitySelector?: boolean;
|
|
876
897
|
}
|
|
877
|
-
declare function DataGrid<TData extends Record<string, any>>({ rows, columns, getRowId, loading, title, toolBar, checkboxSelection, rowSelectionModel, onRowSelectionModelChange, disableRowSelectionOnClick, columnVisibilityModel, onColumnVisibilityModelChange, paginationMode, paginationModel, onPaginationModelChange, rowCount, pageSizeOptions, sortingMode, filterMode, height, minHeight, maxHeight, density, showCellVerticalBorder, showColumnVerticalBorder, hideFooter, hideFooterPagination, virtualized, overscan, wrapText, getRowClassName, slotProps, className, sx, autoHeight, disableColumnSelector, onExport, exportFileName, resizableColumns, onColumnResize, }: DataGridProps<TData>): react_jsx_runtime.JSX.Element;
|
|
898
|
+
declare function DataGrid<TData extends Record<string, any>>({ rows, columns, getRowId, loading, title, toolBar, checkboxSelection, rowSelectionModel, onRowSelectionModelChange, disableRowSelectionOnClick, columnVisibilityModel, onColumnVisibilityModelChange, paginationMode, paginationModel, onPaginationModelChange, rowCount, pageSizeOptions, sortingMode, initialSortModel, sortLatestFirst, filterMode, height, minHeight, maxHeight, density, showCellVerticalBorder, showColumnVerticalBorder, hideFooter, hideFooterPagination, virtualized, overscan, wrapText, getRowClassName, slotProps, className, sx, autoHeight, disableColumnSelector, onExport, exportFileName, resizableColumns, onColumnResize, }: DataGridProps<TData>): react_jsx_runtime.JSX.Element;
|
|
878
899
|
declare namespace DataGrid {
|
|
879
900
|
var displayName: string;
|
|
880
901
|
}
|
|
@@ -929,6 +950,442 @@ interface ListDividerProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
|
929
950
|
}
|
|
930
951
|
declare const ListDivider: React.ForwardRefExoticComponent<ListDividerProps & React.RefAttributes<HTMLLIElement>>;
|
|
931
952
|
|
|
953
|
+
interface BarChartProps {
|
|
954
|
+
/** Chart data */
|
|
955
|
+
data: any[];
|
|
956
|
+
/** Data key for the bars */
|
|
957
|
+
dataKey: string;
|
|
958
|
+
/** Multiple data keys for grouped bars */
|
|
959
|
+
dataKeys?: Array<{
|
|
960
|
+
dataKey: string;
|
|
961
|
+
fill?: string;
|
|
962
|
+
name?: string;
|
|
963
|
+
}>;
|
|
964
|
+
/** Fill color for single bar */
|
|
965
|
+
fill?: string;
|
|
966
|
+
/** Bar name for legend */
|
|
967
|
+
name?: string;
|
|
968
|
+
/** Width of the chart */
|
|
969
|
+
width?: number | string;
|
|
970
|
+
/** Height of the chart */
|
|
971
|
+
height?: number | string;
|
|
972
|
+
/** Margin around the chart */
|
|
973
|
+
margin?: {
|
|
974
|
+
top?: number;
|
|
975
|
+
right?: number;
|
|
976
|
+
bottom?: number;
|
|
977
|
+
left?: number;
|
|
978
|
+
};
|
|
979
|
+
/** Show grid lines */
|
|
980
|
+
showGrid?: boolean;
|
|
981
|
+
/** Show tooltip */
|
|
982
|
+
showTooltip?: boolean;
|
|
983
|
+
/** Show legend */
|
|
984
|
+
showLegend?: boolean;
|
|
985
|
+
/** X-axis configuration */
|
|
986
|
+
xAxis?: {
|
|
987
|
+
dataKey?: string;
|
|
988
|
+
type?: 'number' | 'category';
|
|
989
|
+
hide?: boolean;
|
|
990
|
+
label?: string;
|
|
991
|
+
angle?: number;
|
|
992
|
+
textAnchor?: 'start' | 'middle' | 'end';
|
|
993
|
+
height?: number;
|
|
994
|
+
interval?: number | 'preserveStartEnd' | 'preserveStart' | 'preserveEnd';
|
|
995
|
+
tick?: {
|
|
996
|
+
fontSize?: number;
|
|
997
|
+
fontWeight?: string | number;
|
|
998
|
+
fill?: string;
|
|
999
|
+
};
|
|
1000
|
+
};
|
|
1001
|
+
/** Y-axis configuration */
|
|
1002
|
+
yAxis?: {
|
|
1003
|
+
type?: 'number' | 'category';
|
|
1004
|
+
hide?: boolean;
|
|
1005
|
+
label?: string;
|
|
1006
|
+
angle?: number;
|
|
1007
|
+
position?: 'insideLeft' | 'insideRight' | 'left' | 'right';
|
|
1008
|
+
tick?: {
|
|
1009
|
+
fontSize?: number;
|
|
1010
|
+
fontWeight?: string | number;
|
|
1011
|
+
fill?: string;
|
|
1012
|
+
};
|
|
1013
|
+
};
|
|
1014
|
+
/** Bar styling */
|
|
1015
|
+
barProps?: {
|
|
1016
|
+
radius?: number | [number, number, number, number];
|
|
1017
|
+
maxBarSize?: number;
|
|
1018
|
+
minPointSize?: number;
|
|
1019
|
+
barCategoryGap?: number | string;
|
|
1020
|
+
barGap?: number | string;
|
|
1021
|
+
};
|
|
1022
|
+
/** Label list configuration */
|
|
1023
|
+
labelList?: {
|
|
1024
|
+
dataKey?: string;
|
|
1025
|
+
position?: 'top' | 'bottom' | 'left' | 'right' | 'center' | 'inside' | 'outside';
|
|
1026
|
+
style?: React.CSSProperties;
|
|
1027
|
+
formatter?: (value: any, entry: any, index: number) => React.ReactNode;
|
|
1028
|
+
};
|
|
1029
|
+
/** Custom colors array */
|
|
1030
|
+
colors?: string[];
|
|
1031
|
+
/** Tooltip configuration */
|
|
1032
|
+
tooltip?: {
|
|
1033
|
+
formatter?: (value: any, name: string, props: any) => [React.ReactNode, string];
|
|
1034
|
+
labelFormatter?: (label: any, payload: any[]) => React.ReactNode;
|
|
1035
|
+
labelStyle?: React.CSSProperties;
|
|
1036
|
+
contentStyle?: React.CSSProperties;
|
|
1037
|
+
};
|
|
1038
|
+
/** Additional CSS classes */
|
|
1039
|
+
className?: string;
|
|
1040
|
+
}
|
|
1041
|
+
declare const BarChart: React.FC<BarChartProps>;
|
|
1042
|
+
interface LineChartProps {
|
|
1043
|
+
/** Chart data */
|
|
1044
|
+
data: any[];
|
|
1045
|
+
/** Data key for the line */
|
|
1046
|
+
dataKey: string;
|
|
1047
|
+
/** Multiple data keys for multiple lines */
|
|
1048
|
+
dataKeys?: Array<{
|
|
1049
|
+
dataKey: string;
|
|
1050
|
+
stroke?: string;
|
|
1051
|
+
name?: string;
|
|
1052
|
+
}>;
|
|
1053
|
+
/** Stroke color for single line */
|
|
1054
|
+
stroke?: string;
|
|
1055
|
+
/** Line name for legend */
|
|
1056
|
+
name?: string;
|
|
1057
|
+
/** Width of the chart */
|
|
1058
|
+
width?: number | string;
|
|
1059
|
+
/** Height of the chart */
|
|
1060
|
+
height?: number | string;
|
|
1061
|
+
/** Margin around the chart */
|
|
1062
|
+
margin?: {
|
|
1063
|
+
top?: number;
|
|
1064
|
+
right?: number;
|
|
1065
|
+
bottom?: number;
|
|
1066
|
+
left?: number;
|
|
1067
|
+
};
|
|
1068
|
+
/** Show grid lines */
|
|
1069
|
+
showGrid?: boolean;
|
|
1070
|
+
/** Show tooltip */
|
|
1071
|
+
showTooltip?: boolean;
|
|
1072
|
+
/** Show legend */
|
|
1073
|
+
showLegend?: boolean;
|
|
1074
|
+
/** X-axis configuration */
|
|
1075
|
+
xAxis?: {
|
|
1076
|
+
dataKey?: string;
|
|
1077
|
+
type?: 'number' | 'category';
|
|
1078
|
+
hide?: boolean;
|
|
1079
|
+
label?: string;
|
|
1080
|
+
};
|
|
1081
|
+
/** Y-axis configuration */
|
|
1082
|
+
yAxis?: {
|
|
1083
|
+
type?: 'number' | 'category';
|
|
1084
|
+
hide?: boolean;
|
|
1085
|
+
label?: string;
|
|
1086
|
+
};
|
|
1087
|
+
/** Additional CSS classes */
|
|
1088
|
+
className?: string;
|
|
1089
|
+
}
|
|
1090
|
+
declare const LineChart: React.FC<LineChartProps>;
|
|
1091
|
+
interface PieChartProps {
|
|
1092
|
+
/** Chart data */
|
|
1093
|
+
data: any[];
|
|
1094
|
+
/** Data key for the pie slices */
|
|
1095
|
+
dataKey: string;
|
|
1096
|
+
/** Name key for labels */
|
|
1097
|
+
nameKey?: string;
|
|
1098
|
+
/** Colors for pie slices */
|
|
1099
|
+
colors?: string[];
|
|
1100
|
+
/** Inner radius for donut effect (set to create donut chart) */
|
|
1101
|
+
innerRadius?: number;
|
|
1102
|
+
/** Outer radius */
|
|
1103
|
+
outerRadius?: number;
|
|
1104
|
+
/** Center coordinates */
|
|
1105
|
+
cx?: number | string;
|
|
1106
|
+
cy?: number | string;
|
|
1107
|
+
/** Width of the chart */
|
|
1108
|
+
width?: number | string;
|
|
1109
|
+
/** Height of the chart */
|
|
1110
|
+
height?: number | string;
|
|
1111
|
+
/** Show tooltip */
|
|
1112
|
+
showTooltip?: boolean;
|
|
1113
|
+
/** Show legend */
|
|
1114
|
+
showLegend?: boolean;
|
|
1115
|
+
/** Additional CSS classes */
|
|
1116
|
+
className?: string;
|
|
1117
|
+
}
|
|
1118
|
+
declare const PieChart: React.FC<PieChartProps>;
|
|
1119
|
+
interface AreaChartProps {
|
|
1120
|
+
/** Chart data */
|
|
1121
|
+
data: any[];
|
|
1122
|
+
/** Data key for the area */
|
|
1123
|
+
dataKey: string;
|
|
1124
|
+
/** Multiple data keys for stacked areas */
|
|
1125
|
+
dataKeys?: Array<{
|
|
1126
|
+
dataKey: string;
|
|
1127
|
+
fill?: string;
|
|
1128
|
+
stroke?: string;
|
|
1129
|
+
name?: string;
|
|
1130
|
+
}>;
|
|
1131
|
+
/** Fill color for single area */
|
|
1132
|
+
fill?: string;
|
|
1133
|
+
/** Stroke color for single area */
|
|
1134
|
+
stroke?: string;
|
|
1135
|
+
/** Area name for legend */
|
|
1136
|
+
name?: string;
|
|
1137
|
+
/** Width of the chart */
|
|
1138
|
+
width?: number | string;
|
|
1139
|
+
/** Height of the chart */
|
|
1140
|
+
height?: number | string;
|
|
1141
|
+
/** Margin around the chart */
|
|
1142
|
+
margin?: {
|
|
1143
|
+
top?: number;
|
|
1144
|
+
right?: number;
|
|
1145
|
+
bottom?: number;
|
|
1146
|
+
left?: number;
|
|
1147
|
+
};
|
|
1148
|
+
/** Show grid lines */
|
|
1149
|
+
showGrid?: boolean;
|
|
1150
|
+
/** Show tooltip */
|
|
1151
|
+
showTooltip?: boolean;
|
|
1152
|
+
/** Show legend */
|
|
1153
|
+
showLegend?: boolean;
|
|
1154
|
+
/** Stack areas on top of each other */
|
|
1155
|
+
stack?: boolean;
|
|
1156
|
+
/** X-axis configuration */
|
|
1157
|
+
xAxis?: {
|
|
1158
|
+
dataKey?: string;
|
|
1159
|
+
type?: 'number' | 'category';
|
|
1160
|
+
hide?: boolean;
|
|
1161
|
+
label?: string;
|
|
1162
|
+
};
|
|
1163
|
+
/** Y-axis configuration */
|
|
1164
|
+
yAxis?: {
|
|
1165
|
+
type?: 'number' | 'category';
|
|
1166
|
+
hide?: boolean;
|
|
1167
|
+
label?: string;
|
|
1168
|
+
};
|
|
1169
|
+
/** Additional CSS classes */
|
|
1170
|
+
className?: string;
|
|
1171
|
+
}
|
|
1172
|
+
declare const AreaChart: React.FC<AreaChartProps>;
|
|
1173
|
+
interface ScatterChartProps {
|
|
1174
|
+
/** Chart data */
|
|
1175
|
+
data: any[];
|
|
1176
|
+
/** X-axis data key */
|
|
1177
|
+
xDataKey: string;
|
|
1178
|
+
/** Y-axis data key */
|
|
1179
|
+
yDataKey: string;
|
|
1180
|
+
/** Fill color for points */
|
|
1181
|
+
fill?: string;
|
|
1182
|
+
/** Point name for legend */
|
|
1183
|
+
name?: string;
|
|
1184
|
+
/** Width of the chart */
|
|
1185
|
+
width?: number | string;
|
|
1186
|
+
/** Height of the chart */
|
|
1187
|
+
height?: number | string;
|
|
1188
|
+
/** Margin around the chart */
|
|
1189
|
+
margin?: {
|
|
1190
|
+
top?: number;
|
|
1191
|
+
right?: number;
|
|
1192
|
+
bottom?: number;
|
|
1193
|
+
left?: number;
|
|
1194
|
+
};
|
|
1195
|
+
/** Show grid lines */
|
|
1196
|
+
showGrid?: boolean;
|
|
1197
|
+
/** Show tooltip */
|
|
1198
|
+
showTooltip?: boolean;
|
|
1199
|
+
/** Show legend */
|
|
1200
|
+
showLegend?: boolean;
|
|
1201
|
+
/** X-axis configuration */
|
|
1202
|
+
xAxis?: {
|
|
1203
|
+
type?: 'number' | 'category';
|
|
1204
|
+
hide?: boolean;
|
|
1205
|
+
label?: string;
|
|
1206
|
+
};
|
|
1207
|
+
/** Y-axis configuration */
|
|
1208
|
+
yAxis?: {
|
|
1209
|
+
type?: 'number' | 'category';
|
|
1210
|
+
hide?: boolean;
|
|
1211
|
+
label?: string;
|
|
1212
|
+
};
|
|
1213
|
+
/** Additional CSS classes */
|
|
1214
|
+
className?: string;
|
|
1215
|
+
}
|
|
1216
|
+
declare const ScatterChart: React.FC<ScatterChartProps>;
|
|
1217
|
+
interface RadarChartProps {
|
|
1218
|
+
/** Chart data */
|
|
1219
|
+
data: any[];
|
|
1220
|
+
/** Data key for the radar values */
|
|
1221
|
+
dataKey: string;
|
|
1222
|
+
/** Name key for labels */
|
|
1223
|
+
nameKey: string;
|
|
1224
|
+
/** Fill color */
|
|
1225
|
+
fill?: string;
|
|
1226
|
+
/** Stroke color */
|
|
1227
|
+
stroke?: string;
|
|
1228
|
+
/** Radar name for legend */
|
|
1229
|
+
name?: string;
|
|
1230
|
+
/** Width of the chart */
|
|
1231
|
+
width?: number | string;
|
|
1232
|
+
/** Height of the chart */
|
|
1233
|
+
height?: number | string;
|
|
1234
|
+
/** Show tooltip */
|
|
1235
|
+
showTooltip?: boolean;
|
|
1236
|
+
/** Show legend */
|
|
1237
|
+
showLegend?: boolean;
|
|
1238
|
+
/** Additional CSS classes */
|
|
1239
|
+
className?: string;
|
|
1240
|
+
}
|
|
1241
|
+
declare const RadarChart: React.FC<RadarChartProps>;
|
|
1242
|
+
interface DonutChartProps {
|
|
1243
|
+
/** Chart data */
|
|
1244
|
+
data: any[];
|
|
1245
|
+
/** Data key for the donut slices */
|
|
1246
|
+
dataKey: string;
|
|
1247
|
+
/** Name key for labels */
|
|
1248
|
+
nameKey?: string;
|
|
1249
|
+
/** Colors for donut slices */
|
|
1250
|
+
colors?: string[];
|
|
1251
|
+
/** Inner radius */
|
|
1252
|
+
innerRadius?: number;
|
|
1253
|
+
/** Outer radius */
|
|
1254
|
+
outerRadius?: number;
|
|
1255
|
+
/** Center coordinates */
|
|
1256
|
+
cx?: number | string;
|
|
1257
|
+
cy?: number | string;
|
|
1258
|
+
/** Width of the chart */
|
|
1259
|
+
width?: number | string;
|
|
1260
|
+
/** Height of the chart */
|
|
1261
|
+
height?: number | string;
|
|
1262
|
+
/** Show tooltip */
|
|
1263
|
+
showTooltip?: boolean;
|
|
1264
|
+
/** Show legend */
|
|
1265
|
+
showLegend?: boolean;
|
|
1266
|
+
/** Advanced styling options */
|
|
1267
|
+
advancedStyling?: {
|
|
1268
|
+
/** Enable gradient effects */
|
|
1269
|
+
enableGradients?: boolean;
|
|
1270
|
+
/** Enable shadow effects */
|
|
1271
|
+
enableShadows?: boolean;
|
|
1272
|
+
/** Custom gradient definitions */
|
|
1273
|
+
gradients?: Array<{
|
|
1274
|
+
id: string;
|
|
1275
|
+
colors: [string, string];
|
|
1276
|
+
x1?: string;
|
|
1277
|
+
y1?: string;
|
|
1278
|
+
x2?: string;
|
|
1279
|
+
y2?: string;
|
|
1280
|
+
}>;
|
|
1281
|
+
/** Background circle styling */
|
|
1282
|
+
backgroundCircle?: {
|
|
1283
|
+
stroke?: string;
|
|
1284
|
+
strokeWidth?: number;
|
|
1285
|
+
filter?: string;
|
|
1286
|
+
};
|
|
1287
|
+
/** Progress arc styling */
|
|
1288
|
+
progressArc?: {
|
|
1289
|
+
strokeLinecap?: 'butt' | 'round' | 'square';
|
|
1290
|
+
filter?: string;
|
|
1291
|
+
};
|
|
1292
|
+
};
|
|
1293
|
+
/** Tooltip configuration */
|
|
1294
|
+
tooltip?: {
|
|
1295
|
+
formatter?: (value: any, name: string, props: any) => [React.ReactNode, string];
|
|
1296
|
+
labelFormatter?: (label: any, payload: any[]) => React.ReactNode;
|
|
1297
|
+
labelStyle?: React.CSSProperties;
|
|
1298
|
+
contentStyle?: React.CSSProperties;
|
|
1299
|
+
};
|
|
1300
|
+
/** Additional CSS classes */
|
|
1301
|
+
className?: string;
|
|
1302
|
+
}
|
|
1303
|
+
declare const DonutChart: React.FC<DonutChartProps>;
|
|
1304
|
+
interface ProgressCardProps {
|
|
1305
|
+
/** Question number or identifier */
|
|
1306
|
+
questionNum: string | number;
|
|
1307
|
+
/** Percentage value (0-100) */
|
|
1308
|
+
percentage: number;
|
|
1309
|
+
/** Optional click handler */
|
|
1310
|
+
onClick?: (questionNum: string | number) => void;
|
|
1311
|
+
/** Size of the donut chart */
|
|
1312
|
+
donutSize?: number;
|
|
1313
|
+
/** Stroke width for the progress arc */
|
|
1314
|
+
strokeWidth?: number;
|
|
1315
|
+
/** Background stroke color */
|
|
1316
|
+
backgroundColor?: string;
|
|
1317
|
+
/** Custom color logic based on percentage */
|
|
1318
|
+
getColor?: (percentage: number) => [string, string];
|
|
1319
|
+
/** Enable shadows */
|
|
1320
|
+
enableShadows?: boolean;
|
|
1321
|
+
/** Enable gradients */
|
|
1322
|
+
enableGradients?: boolean;
|
|
1323
|
+
/** Typography options */
|
|
1324
|
+
typography?: {
|
|
1325
|
+
questionFontSize?: string;
|
|
1326
|
+
percentageFontSize?: string;
|
|
1327
|
+
questionColor?: string;
|
|
1328
|
+
percentageColorAuto?: boolean;
|
|
1329
|
+
};
|
|
1330
|
+
/** Additional CSS classes */
|
|
1331
|
+
className?: string;
|
|
1332
|
+
}
|
|
1333
|
+
declare const ProgressCard: React.FC<ProgressCardProps>;
|
|
1334
|
+
interface ProgressDonutProps {
|
|
1335
|
+
/** Array of data items with value and label */
|
|
1336
|
+
data?: Array<{
|
|
1337
|
+
value: number;
|
|
1338
|
+
label?: string;
|
|
1339
|
+
[key: string]: any;
|
|
1340
|
+
}>;
|
|
1341
|
+
/** Width of the chart */
|
|
1342
|
+
width?: number | string;
|
|
1343
|
+
/** Height of the chart */
|
|
1344
|
+
height?: number | string;
|
|
1345
|
+
/** Inner radius for donut effect */
|
|
1346
|
+
innerRadius?: number;
|
|
1347
|
+
/** Outer radius */
|
|
1348
|
+
outerRadius?: number;
|
|
1349
|
+
/** Show tooltip */
|
|
1350
|
+
showTooltip?: boolean;
|
|
1351
|
+
/** Show legend */
|
|
1352
|
+
showLegend?: boolean;
|
|
1353
|
+
/** Custom color logic based on value */
|
|
1354
|
+
getColor?: (value: number) => string;
|
|
1355
|
+
/** Additional CSS classes */
|
|
1356
|
+
className?: string;
|
|
1357
|
+
}
|
|
1358
|
+
declare const ProgressDonut: React.FC<ProgressDonutProps>;
|
|
1359
|
+
interface MultiProgressDonutProps {
|
|
1360
|
+
/** Array of data items with value and label */
|
|
1361
|
+
data?: Array<{
|
|
1362
|
+
value: number;
|
|
1363
|
+
label?: string;
|
|
1364
|
+
[key: string]: any;
|
|
1365
|
+
}>;
|
|
1366
|
+
/** Size of each donut chart */
|
|
1367
|
+
size?: number;
|
|
1368
|
+
/** Outer radius */
|
|
1369
|
+
outerRadius?: number;
|
|
1370
|
+
/** Stroke width for the progress arc */
|
|
1371
|
+
strokeWidth?: number;
|
|
1372
|
+
/** Background stroke color */
|
|
1373
|
+
backgroundColor?: string;
|
|
1374
|
+
/** Background stroke width */
|
|
1375
|
+
backgroundStrokeWidth?: number;
|
|
1376
|
+
/** Show percentage text in center */
|
|
1377
|
+
showPercentage?: boolean;
|
|
1378
|
+
/** Custom color logic based on value */
|
|
1379
|
+
getColor?: (value: number) => [string, string];
|
|
1380
|
+
/** Enable shadows */
|
|
1381
|
+
enableShadows?: boolean;
|
|
1382
|
+
/** Enable gradients */
|
|
1383
|
+
enableGradients?: boolean;
|
|
1384
|
+
/** Additional CSS classes */
|
|
1385
|
+
className?: string;
|
|
1386
|
+
}
|
|
1387
|
+
declare const MultiProgressDonut: React.FC<MultiProgressDonutProps>;
|
|
1388
|
+
|
|
932
1389
|
interface BreadcrumbsProps extends React.HTMLAttributes<HTMLElement> {
|
|
933
1390
|
/** Custom separator element */
|
|
934
1391
|
separator?: React.ReactNode;
|
|
@@ -1214,4 +1671,4 @@ declare const RailPanelItem: React.ForwardRefExoticComponent<RailPanelItemProps
|
|
|
1214
1671
|
|
|
1215
1672
|
declare const Playground: () => react_jsx_runtime.JSX.Element;
|
|
1216
1673
|
|
|
1217
|
-
export { Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbPage, type BreadcrumbPageProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Caption, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, CircularProgress, type CircularProgressProps, type ColumnVisibilityModel, Combobox, type ComboboxMultipleProps, type ComboboxOption, type ComboboxProps, type ComboboxSingleProps, DataGrid, type DataGridProps, DataGrid as DataGridV0, DialogNamespace as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, FormControl, type FormControlProps, FormGroup, type FormGroupProps, FormHelperText, type FormHelperTextProps, FormLabel, type FormLabelProps, Grid, type GridColDef, type GridProps, type GridRenderCellParams, type GridRenderHeaderParams, type GridRowSelectionModel, type GridValueFormatterParams, type GridValueGetterParams, H1, H2, H3, H4, H5, H6, HStack, IconButton, type IconButtonProps, IconRail, IconRailContent, type IconRailContentProps, IconRailFooter, type IconRailFooterProps, IconRailHeader, type IconRailHeaderProps, IconRailItem, type IconRailItemProps, type IconRailProps, Input, InputAdornment, type InputAdornmentProps, type InputProps, Label, type LabelProps, LinearProgress, type LinearProgressProps, List, ListDivider, type ListDividerProps, ListItem, ListItemAvatar, type ListItemAvatarProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, NativeSelect, NativeSelectOption, type NativeSelectOptionProps, type NativeSelectProps, PaginationNamespace as Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, type PaginationModel, PaginationNext, PaginationPrevious, type PaginationProps, Playground, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type RadioProps, RailPanel, RailPanelGroup, type RailPanelGroupProps, RailPanelItem, type RailPanelItemProps, type RailPanelProps, SelectNamespace as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarRail, type SidebarRailProps, SidebarSubMenu, type SidebarSubMenuProps, SidebarToggle, type SidebarToggleProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonCard, type SkeletonCardProps, type SkeletonProps, SkeletonTableRow, type SkeletonTableRowProps, SkeletonText, type SkeletonTextProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, TableNamespace as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeContext, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, TopBar, TopBarBrand, type TopBarBrandProps, TopBarDivider, type TopBarDividerProps, TopBarNav, TopBarNavItem, type TopBarNavItemProps, type TopBarNavProps, type TopBarProps, TopBarSection, type TopBarSectionProps, Typography, type TypographyProps, UnderlineTabsContent, UnderlineTabsList, UnderlineTabsTrigger, type UnderlineTabsTriggerProps, VStack, VerticalTabs, VerticalTabsContent, VerticalTabsGroupLabel, type VerticalTabsGroupLabelProps, VerticalTabsList, VerticalTabsTrigger, type VerticalTabsTriggerProps, cn, useFormControl, useSidebar, useSidebarRail, useTheme };
|
|
1674
|
+
export { Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, AreaChart, type AreaChartProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, BarChart, type BarChartProps, Box, type BoxProps, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbPage, type BreadcrumbPageProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Caption, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, CircularProgress, type CircularProgressProps, type ColumnVisibilityModel, Combobox, type ComboboxMultipleProps, type ComboboxOption, type ComboboxProps, type ComboboxSingleProps, DataGrid, type DataGridProps, DataGrid as DataGridV0, DialogNamespace as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartProps, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, FormControl, type FormControlProps, FormGroup, type FormGroupProps, FormHelperText, type FormHelperTextProps, FormLabel, type FormLabelProps, Grid, type GridColDef, type GridProps, type GridRenderCellParams, type GridRenderHeaderParams, type GridRowSelectionModel, type GridValueFormatterParams, type GridValueGetterParams, H1, H2, H3, H4, H5, H6, HStack, IconButton, type IconButtonProps, IconRail, IconRailContent, type IconRailContentProps, IconRailFooter, type IconRailFooterProps, IconRailHeader, type IconRailHeaderProps, IconRailItem, type IconRailItemProps, type IconRailProps, Input, InputAdornment, type InputAdornmentProps, type InputProps, Label, type LabelProps, LineChart, type LineChartProps, LinearProgress, type LinearProgressProps, List, ListDivider, type ListDividerProps, ListItem, ListItemAvatar, type ListItemAvatarProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MultiProgressDonut, type MultiProgressDonutProps, NativeSelect, NativeSelectOption, type NativeSelectOptionProps, type NativeSelectProps, PaginationNamespace as Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, type PaginationModel, PaginationNext, PaginationPrevious, type PaginationProps, PieChart, type PieChartProps, Playground, Progress, ProgressCard, type ProgressCardProps, ProgressDonut, type ProgressDonutProps, type ProgressProps, RadarChart, type RadarChartProps, Radio, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type RadioProps, RailPanel, RailPanelGroup, type RailPanelGroupProps, RailPanelItem, type RailPanelItemProps, type RailPanelProps, ScatterChart, type ScatterChartProps, SelectNamespace as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarRail, type SidebarRailProps, SidebarSubMenu, type SidebarSubMenuProps, SidebarToggle, type SidebarToggleProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonCard, type SkeletonCardProps, type SkeletonProps, SkeletonTableRow, type SkeletonTableRowProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, Spinner, type SpinnerProps, Stack, type StackProps, Switch, type SwitchProps, TableNamespace as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextField, type TextFieldProps, Textarea, type TextareaProps, ThemeContext, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, TopBar, TopBarBrand, type TopBarBrandProps, TopBarDivider, type TopBarDividerProps, TopBarNav, TopBarNavItem, type TopBarNavItemProps, type TopBarNavProps, type TopBarProps, TopBarSection, type TopBarSectionProps, Typography, type TypographyProps, UnderlineTabsContent, UnderlineTabsList, UnderlineTabsTrigger, type UnderlineTabsTriggerProps, VStack, VerticalTabs, VerticalTabsContent, VerticalTabsGroupLabel, type VerticalTabsGroupLabelProps, VerticalTabsList, VerticalTabsTrigger, type VerticalTabsTriggerProps, cn, useFormControl, useSidebar, useSidebarRail, useTheme };
|