@rustic-ai/ui-components 0.0.4 → 0.0.5
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.
|
@@ -44,7 +44,7 @@ export interface RechartsTimeSeriesProps {
|
|
|
44
44
|
width?: number;
|
|
45
45
|
/** Chart type toggle will be hidden if the value is true. */
|
|
46
46
|
disableChartTypeToggle?: boolean;
|
|
47
|
-
/** Define the default chart type:
|
|
47
|
+
/** Define the default chart type: `line`, `bar`, or `area`. */
|
|
48
48
|
defaultChartType?: TimeSeriesType;
|
|
49
49
|
/** Pass a function to format y-axis label. Make sure to use tooltipFormatter and yAxisTickFormatter together so that the numbers are uniform. */
|
|
50
50
|
yAxisTickFormatter?: (value: number) => string;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import './table.css';
|
|
2
|
+
export interface TableHeader {
|
|
3
|
+
dataKey: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
}
|
|
2
6
|
export type TableProps = {
|
|
3
7
|
/** Data to be displayed in the table. */
|
|
4
8
|
data: Array<Record<string, string | number>>;
|
|
@@ -6,8 +10,7 @@ export type TableProps = {
|
|
|
6
10
|
title?: string;
|
|
7
11
|
/** Description of the table. */
|
|
8
12
|
description?: string;
|
|
9
|
-
|
|
10
|
-
headers?: string[];
|
|
13
|
+
headers?: TableHeader[];
|
|
11
14
|
};
|
|
12
15
|
export default function Table(props: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
13
16
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAcpB,MAAM,MAAM,UAAU,GAAG;IACvB,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAA;IAC5C,kGAAkG;IAClG,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAcpB,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAA;IAC5C,kGAAkG;IAClG,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,WAAW,EAAE,CAAA;CACxB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,2CAwD9C"}
|